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
877 ac_precious_vars='build_alias
894 # Initialize some variables set by options.
896 ac_init_version=false
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
906 program_transform_name=s,x,x,
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999 { (exit 1); exit 1; }; }
1000 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001 eval enable_$ac_feature=no ;;
1003 -docdir | --docdir | --docdi | --doc | --do)
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1013 -enable-* | --enable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=\$ac_optarg ;;
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 htmldir=$ac_optarg ;;
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1065 -libdir | --libdir | --libdi | --libd)
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1156 -psdir | --psdir | --psdi | --psd | --ps)
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 sbindir=$ac_optarg ;;
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 sharedstatedir=$ac_optarg ;;
1182 -site | --site | --sit)
1184 -site=* | --site=* | --sit=*)
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1211 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 { echo "$as_me: error: invalid package name: $ac_package" >&2
1215 { (exit 1); exit 1; }; }
1216 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217 eval with_$ac_package=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=no ;;
1229 # Obsolete; use --with-x.
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) { echo "$as_me: error: unrecognized option: $ac_option
1247 Try \`$0 --help' for more information." >&2
1248 { (exit 1); exit 1; }; }
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256 { (exit 1); exit 1; }; }
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 { echo "$as_me: error: missing argument to $ac_option" >&2
1274 { (exit 1); exit 1; }; }
1277 # Be sure to have absolute directory names.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 { echo "$as_me: error: Working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$0" ||
1331 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$0" : 'X\(//\)[^/]' \| \
1333 X"$0" : 'X\(//\)$' \| \
1334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures this package to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 if test -n "$ac_init_help"; then
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1476 --enable-lua build lua module (default is no)
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1484 --with-tags[=TAGS] include additional configurations [automatic]
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1497 CXXCPP C++ preprocessor
1498 F77 Fortran 77 compiler command
1499 FFLAGS Fortran 77 compiler flags
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1565 generated by GNU Autoconf 2.61
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1578 It was created by $as_me, which was
1579 generated by GNU Autoconf 2.61. Invocation command line was
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_must_keep_next=false
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 -* ) ac_must_keep_next=true ;;
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1695 # The following way of writing the cache mishandles newlines in values,
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1732 for ac_var in $ac_subst_vars
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1742 if test -n "$ac_subst_files"; then
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1749 for ac_var in $ac_subst_files
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1760 if test -s confdefs.h; then
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1851 # Check that the precious variables saved in the cache have kept the same
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 am__api_version='1.10'
1926 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1927 if test -f "$ac_dir/install-sh"; then
1929 ac_install_sh="$ac_aux_dir/install-sh -c"
1931 elif test -f "$ac_dir/install.sh"; then
1933 ac_install_sh="$ac_aux_dir/install.sh -c"
1935 elif test -f "$ac_dir/shtool"; then
1937 ac_install_sh="$ac_aux_dir/shtool install -c"
1941 if test -z "$ac_aux_dir"; then
1942 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1943 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1944 { (exit 1); exit 1; }; }
1947 # These three variables are undocumented and unsupported,
1948 # and are intended to be withdrawn in a future Autoconf release.
1949 # They can cause serious problems if a builder's source tree is in a directory
1950 # whose full name contains unusual characters.
1951 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1952 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1953 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1956 # Find a good install program. We prefer a C program (faster),
1957 # so one script is as good as another. But avoid the broken or
1958 # incompatible versions:
1959 # SysV /etc/install, /usr/sbin/install
1960 # SunOS /usr/etc/install
1961 # IRIX /sbin/install
1963 # AmigaOS /C/install, which installs bootblocks on floppy discs
1964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967 # OS/2's system install, which has a completely different semantic
1968 # ./install, which can be erroneously created by make from ./install.sh.
1969 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1971 if test -z "$INSTALL"; then
1972 if test "${ac_cv_path_install+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 # Account for people who put trailing slashes in PATH elements.
1982 ./ | .// | /cC/* | \
1983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1987 # OSF1 and SCO ODT 3.0 have their own names for install.
1988 # Don't use installbsd from OSF since it installs stuff as root
1990 for ac_prog in ginstall scoinst install; do
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1993 if test $ac_prog = install &&
1994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995 # AIX install. It has an incompatible calling convention.
1997 elif test $ac_prog = install &&
1998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999 # program-specific install script used by HP pwplus--don't use.
2002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2015 if test "${ac_cv_path_install+set}" = set; then
2016 INSTALL=$ac_cv_path_install
2018 # As a last resort, use the slow shell script. Don't cache a
2019 # value for INSTALL within a source directory, because that will
2020 # break other packages using the cache if that directory is
2021 # removed, or if the value is a relative name.
2022 INSTALL=$ac_install_sh
2025 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2026 echo "${ECHO_T}$INSTALL" >&6; }
2028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2029 # It thinks the first close brace ends the variable substitution.
2030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2032 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2034 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2036 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2037 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2040 echo timestamp > conftest.file
2041 # Do `set' in a subshell so we don't clobber the current shell's
2042 # arguments. Must try -L first in case configure is actually a
2043 # symlink; some systems play weird games with the mod time of symlinks
2044 # (eg FreeBSD returns the mod time of the symlink's containing
2047 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2048 if test "$*" = "X"; then
2050 set X `ls -t $srcdir/configure conftest.file`
2053 if test "$*" != "X $srcdir/configure conftest.file" \
2054 && test "$*" != "X conftest.file $srcdir/configure"; then
2056 # If neither matched, then we have a broken ls. This can happen
2057 # if, for instance, CONFIG_SHELL is bash and it inherits a
2058 # broken ls alias from the environment. This has actually
2059 # happened. Such a system could not be considered "sane".
2060 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2061 alias in your environment" >&5
2062 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2063 alias in your environment" >&2;}
2064 { (exit 1); exit 1; }; }
2067 test "$2" = conftest.file
2073 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2074 Check your system clock" >&5
2075 echo "$as_me: error: newly created file is older than distributed files!
2076 Check your system clock" >&2;}
2077 { (exit 1); exit 1; }; }
2079 { echo "$as_me:$LINENO: result: yes" >&5
2080 echo "${ECHO_T}yes" >&6; }
2081 test "$program_prefix" != NONE &&
2082 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2083 # Use a double $ so make ignores it.
2084 test "$program_suffix" != NONE &&
2085 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2086 # Double any \ or $. echo might interpret backslashes.
2087 # By default was `s,x,x', remove it if useless.
2088 cat <<\_ACEOF >conftest.sed
2089 s/[\\$]/&&/g;s/;s,x,x,$//
2091 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2094 # expand $ac_aux_dir to an absolute path
2095 am_aux_dir=`cd $ac_aux_dir && pwd`
2097 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2098 # Use eval to expand $SHELL
2099 if eval "$MISSING --run true"; then
2100 am_missing_run="$MISSING --run "
2103 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2104 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2107 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2108 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2109 if test -z "$MKDIR_P"; then
2110 if test "${ac_cv_path_mkdir+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2117 test -z "$as_dir" && as_dir=.
2118 for ac_prog in mkdir gmkdir; do
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2121 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2122 'mkdir (GNU coreutils) '* | \
2123 'mkdir (coreutils) '* | \
2124 'mkdir (fileutils) '4.1*)
2125 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2135 if test "${ac_cv_path_mkdir+set}" = set; then
2136 MKDIR_P="$ac_cv_path_mkdir -p"
2138 # As a last resort, use the slow shell script. Don't cache a
2139 # value for MKDIR_P within a source directory, because that will
2140 # break other packages using the cache if that directory is
2141 # removed, or if the value is a relative name.
2142 test -d ./--version && rmdir ./--version
2143 MKDIR_P="$ac_install_sh -d"
2146 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2147 echo "${ECHO_T}$MKDIR_P" >&6; }
2151 [\\/$]* | ?:[\\/]*) ;;
2152 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2155 for ac_prog in gawk mawk nawk awk
2157 # Extract the first word of "$ac_prog", so it can be a program name with args.
2158 set dummy $ac_prog; ac_word=$2
2159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161 if test "${ac_cv_prog_AWK+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 if test -n "$AWK"; then
2165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174 ac_cv_prog_AWK="$ac_prog"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 if test -n "$AWK"; then
2186 { echo "$as_me:$LINENO: result: $AWK" >&5
2187 echo "${ECHO_T}$AWK" >&6; }
2189 { echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6; }
2194 test -n "$AWK" && break
2197 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2198 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2199 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 cat >conftest.make <<\_ACEOF
2206 @echo '@@@%%%=$(MAKE)=@@@%%%'
2208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2211 eval ac_cv_prog_make_${ac_make}_set=yes;;
2213 eval ac_cv_prog_make_${ac_make}_set=no;;
2217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2218 { echo "$as_me:$LINENO: result: yes" >&5
2219 echo "${ECHO_T}yes" >&6; }
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224 SET_MAKE="MAKE=${MAKE-make}"
2227 rm -rf .tst 2>/dev/null
2228 mkdir .tst 2>/dev/null
2229 if test -d .tst; then
2234 rmdir .tst 2>/dev/null
2236 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2237 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2238 # is not polluted with repeated "-I."
2239 am__isrc=' -I$(srcdir)'
2240 # test to see if srcdir already configured
2241 if test -f $srcdir/config.status; then
2242 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2243 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2244 { (exit 1); exit 1; }; }
2248 # test whether we have cygpath
2249 if test -z "$CYGPATH_W"; then
2250 if (cygpath --version) >/dev/null 2>/dev/null; then
2251 CYGPATH_W='cygpath -w'
2258 # Define the identity of the package.
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE "$PACKAGE"
2268 cat >>confdefs.h <<_ACEOF
2269 #define VERSION "$VERSION"
2272 # Some tools Automake needs.
2274 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2277 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2280 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2283 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2286 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2288 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2290 # Installed binaries are usually stripped using `strip' when the user
2291 # run `make install-strip'. However `strip' might not be the right
2292 # tool to use in cross-compilation environments, therefore Automake
2293 # will honor the `STRIP' environment variable to overrule this program.
2294 if test "$cross_compiling" != no; then
2295 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}strip; ac_word=$2
2298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300 if test "${ac_cv_prog_STRIP+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 if test -n "$STRIP"; then
2304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 STRIP=$ac_cv_prog_STRIP
2324 if test -n "$STRIP"; then
2325 { echo "$as_me:$LINENO: result: $STRIP" >&5
2326 echo "${ECHO_T}$STRIP" >&6; }
2328 { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2334 if test -z "$ac_cv_prog_STRIP"; then
2336 # Extract the first word of "strip", so it can be a program name with args.
2337 set dummy strip; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$ac_ct_STRIP"; then
2344 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_ac_ct_STRIP="strip"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2364 if test -n "$ac_ct_STRIP"; then
2365 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2366 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2372 if test "x$ac_ct_STRIP" = x; then
2375 case $cross_compiling:$ac_tool_warned in
2377 { echo "$as_me:$LINENO: 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." >&5
2380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet. If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2383 ac_tool_warned=yes ;;
2388 STRIP="$ac_cv_prog_STRIP"
2392 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2394 # We need awk for the "check" target. The system "awk" is bad on
2396 # Always define AMTAR for backward compatibility.
2398 AMTAR=${AMTAR-"${am_missing_run}tar"}
2400 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2406 ac_config_headers="$ac_config_headers config.h"
2408 # Check whether --enable-shared was given.
2409 if test "${enable_shared+set}" = set; then
2410 enableval=$enable_shared; p=${PACKAGE-default}
2412 yes) enable_shared=yes ;;
2413 no) enable_shared=no ;;
2416 # Look at the argument we got. We use all the common list separators.
2417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2418 for pkg in $enableval; do
2420 if test "X$pkg" = "X$p"; then
2432 # Check whether --enable-static was given.
2433 if test "${enable_static+set}" = set; then
2434 enableval=$enable_static; p=${PACKAGE-default}
2436 yes) enable_static=yes ;;
2437 no) enable_static=no ;;
2440 # Look at the argument we got. We use all the common list separators.
2441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2442 for pkg in $enableval; do
2444 if test "X$pkg" = "X$p"; then
2456 # Check whether --enable-fast-install was given.
2457 if test "${enable_fast_install+set}" = set; then
2458 enableval=$enable_fast_install; p=${PACKAGE-default}
2460 yes) enable_fast_install=yes ;;
2461 no) enable_fast_install=no ;;
2463 enable_fast_install=no
2464 # Look at the argument we got. We use all the common list separators.
2465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2466 for pkg in $enableval; do
2468 if test "X$pkg" = "X$p"; then
2469 enable_fast_install=yes
2476 enable_fast_install=yes
2480 # Make sure we can run config.sub.
2481 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2482 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2483 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2484 { (exit 1); exit 1; }; }
2486 { echo "$as_me:$LINENO: checking build system type" >&5
2487 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2488 if test "${ac_cv_build+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 ac_build_alias=$build_alias
2492 test "x$ac_build_alias" = x &&
2493 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2494 test "x$ac_build_alias" = x &&
2495 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2496 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2497 { (exit 1); exit 1; }; }
2498 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2499 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2500 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2501 { (exit 1); exit 1; }; }
2504 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2505 echo "${ECHO_T}$ac_cv_build" >&6; }
2506 case $ac_cv_build in
2508 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2509 echo "$as_me: error: invalid value of canonical build" >&2;}
2510 { (exit 1); exit 1; }; };;
2513 ac_save_IFS=$IFS; IFS='-'
2519 # Remember, the first character of IFS is used to create $*,
2520 # except with old shells:
2523 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2526 { echo "$as_me:$LINENO: checking host system type" >&5
2527 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2528 if test "${ac_cv_host+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 if test "x$host_alias" = x; then
2532 ac_cv_host=$ac_cv_build
2534 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2535 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2536 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2537 { (exit 1); exit 1; }; }
2541 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2542 echo "${ECHO_T}$ac_cv_host" >&6; }
2545 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2546 echo "$as_me: error: invalid value of canonical host" >&2;}
2547 { (exit 1); exit 1; }; };;
2550 ac_save_IFS=$IFS; IFS='-'
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2560 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2563 DEPDIR="${am__leading_dot}deps"
2565 ac_config_commands="$ac_config_commands depfiles"
2568 am_make=${MAKE-make}
2569 cat > confinc << 'END'
2574 # If we don't find an include directive, just comment out the code.
2575 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2576 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2580 # First try GNU make style include.
2581 echo "include confinc" > confmf
2582 # We grep out `Entering directory' and `Leaving directory'
2583 # messages which can occur if `w' ends up in MAKEFLAGS.
2584 # In particular we don't look at `^make:' because GNU make might
2585 # be invoked under some other name (usually "gmake"), in which
2586 # case it prints its new name instead of `make'.
2587 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2592 # Now try BSD make style include.
2593 if test "$am__include" = "#"; then
2594 echo '.include "confinc"' > confmf
2595 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2596 am__include=.include
2603 { echo "$as_me:$LINENO: result: $_am_result" >&5
2604 echo "${ECHO_T}$_am_result" >&6; }
2605 rm -f confinc confmf
2607 # Check whether --enable-dependency-tracking was given.
2608 if test "${enable_dependency_tracking+set}" = set; then
2609 enableval=$enable_dependency_tracking;
2612 if test "x$enable_dependency_tracking" != xno; then
2613 am_depcomp="$ac_aux_dir/depcomp"
2616 if test "x$enable_dependency_tracking" != xno; then
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2669 if test -z "$ac_cv_prog_CC"; then
2671 # Extract the first word of "gcc", so it can be a program name with args.
2672 set dummy gcc; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_ac_ct_CC="gcc"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699 if test -n "$ac_ct_CC"; then
2700 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2701 echo "${ECHO_T}$ac_ct_CC" >&6; }
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2707 if test "x$ac_ct_CC" = x; then
2710 case $cross_compiling:$ac_tool_warned in
2712 { echo "$as_me:$LINENO: 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." >&5
2715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet. If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2718 ac_tool_warned=yes ;;
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC="${ac_tool_prefix}cc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test -n "$CC"; then
2757 { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2767 if test -z "$CC"; then
2768 # Extract the first word of "cc", so it can be a program name with args.
2769 set dummy cc; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_CC+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787 ac_prog_rejected=yes
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy $ac_cv_prog_CC
2802 if test $# != 0; then
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2813 if test -n "$CC"; then
2814 { echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6; }
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog in cl.exe
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CC"; then
2856 { echo "$as_me:$LINENO: result: $CC" >&5
2857 echo "${ECHO_T}$CC" >&6; }
2859 { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2864 test -n "$CC" && break
2867 if test -z "$CC"; then
2869 for ac_prog in cl.exe
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_ac_ct_CC="$ac_prog"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901 echo "${ECHO_T}$ac_ct_CC" >&6; }
2903 { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2908 test -n "$ac_ct_CC" && break
2911 if test "x$ac_ct_CC" = x; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { echo "$as_me:$LINENO: 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." >&5
2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2920 whose name does not start with the host triplet. If you think this
2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2922 ac_tool_warned=yes ;;
2931 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
2937 # Provide some information about the compiler.
2938 echo "$as_me:$LINENO: checking for C compiler version" >&5
2939 ac_compiler=`set X $ac_compile; echo $2`
2940 { (ac_try="$ac_compiler --version >&5"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compiler --version >&5") 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }
2950 { (ac_try="$ac_compiler -v >&5"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compiler -v >&5") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960 { (ac_try="$ac_compiler -V >&5"
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compiler -V >&5") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2986 ac_clean_files_save=$ac_clean_files
2987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2991 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2995 # List of possible output files, starting from the most likely.
2996 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2997 # only as a last resort. b.out is created by i960 compilers.
2998 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3000 # The IRIX 6 linker writes into existing files which may not be
3001 # executable, retaining their permissions. Remove them first so a
3002 # subsequent execution test works.
3004 for ac_file in $ac_files
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3008 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3013 if { (ac_try="$ac_link_default"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_link_default") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; then
3023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3026 # so that the user can short-circuit this test for compilers unknown to
3028 for ac_file in $ac_files ''
3030 test -f "$ac_file" || continue
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3035 # We found the default executable, but exeext='' is most
3039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3043 # We set ac_cv_exeext here because the later test for it is not
3044 # safe: cross compilers may not add the suffix if given an `-o'
3045 # argument, so we may need to know it at that point already.
3046 # Even if this section looks crufty: it has the advantage of
3053 test "$ac_cv_exeext" = no && ac_cv_exeext=
3059 { echo "$as_me:$LINENO: result: $ac_file" >&5
3060 echo "${ECHO_T}$ac_file" >&6; }
3061 if test -z "$ac_file"; then
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: C compiler cannot create executables
3068 See \`config.log' for more details." >&2;}
3069 { (exit 77); exit 77; }; }
3072 ac_exeext=$ac_cv_exeext
3074 # Check that the compiler produces executables we can run. If not, either
3075 # the compiler is broken, or we cross compile.
3076 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3077 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3078 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3079 # If not cross compiling, check that we can run a simple program.
3080 if test "$cross_compiling" != yes; then
3081 if { ac_try='./$ac_file'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3093 if test "$cross_compiling" = maybe; then
3096 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3097 If you meant to cross compile, use \`--host'.
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: cannot run C compiled programs.
3100 If you meant to cross compile, use \`--host'.
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3106 { echo "$as_me:$LINENO: result: yes" >&5
3107 echo "${ECHO_T}yes" >&6; }
3109 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3110 ac_clean_files=$ac_clean_files_save
3111 # Check that the compiler produces executables we can run. If not, either
3112 # the compiler is broken, or we cross compile.
3113 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3114 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3115 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3116 echo "${ECHO_T}$cross_compiling" >&6; }
3118 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3119 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3120 if { (ac_try="$ac_link"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_link") 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; then
3130 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3131 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe'), while it won't with
3134 for ac_file in conftest.exe conftest conftest.*; do
3135 test -f "$ac_file" || continue
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3138 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3151 rm -f conftest$ac_cv_exeext
3152 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3153 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3155 rm -f conftest.$ac_ext
3156 EXEEXT=$ac_cv_exeext
3158 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3159 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3160 if test "${ac_cv_objext+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 cat >conftest.$ac_ext <<_ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3178 rm -f conftest.o conftest.obj
3179 if { (ac_try="$ac_compile"
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; then
3189 for ac_file in conftest.o conftest.obj conftest.*; do
3190 test -f "$ac_file" || continue;
3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3202 See \`config.log' for more details." >&5
3203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3204 See \`config.log' for more details." >&2;}
3205 { (exit 1); exit 1; }; }
3208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3210 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3211 echo "${ECHO_T}$ac_cv_objext" >&6; }
3212 OBJEXT=$ac_cv_objext
3214 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3237 rm -f conftest.$ac_objext
3238 if { (ac_try="$ac_compile"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3266 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3267 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3268 GCC=`test $ac_compiler_gnu = yes && echo yes`
3269 ac_test_CFLAGS=${CFLAGS+set}
3270 ac_save_CFLAGS=$CFLAGS
3271 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3272 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3273 if test "${ac_cv_prog_cc_g+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 ac_save_c_werror_flag=$ac_c_werror_flag
3277 ac_c_werror_flag=yes
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_c_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_c_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3372 rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_compile") 2>conftest.er1
3381 grep -v '^ *+' conftest.er1 >conftest.err
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } && {
3386 test -z "$ac_c_werror_flag" ||
3387 test ! -s conftest.err
3388 } && test -s conftest.$ac_objext; then
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 ac_c_werror_flag=$ac_save_c_werror_flag
3406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3407 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3408 if test "$ac_test_CFLAGS" = set; then
3409 CFLAGS=$ac_save_CFLAGS
3410 elif test $ac_cv_prog_cc_g = yes; then
3411 if test "$GCC" = yes; then
3417 if test "$GCC" = yes; then
3423 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3424 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3425 if test "${ac_cv_prog_cc_c89+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 ac_cv_prog_cc_c89=no
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3438 #include <sys/types.h>
3439 #include <sys/stat.h>
3440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3441 struct buf { int x; };
3442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3443 static char *e (p, i)
3449 static char *f (char * (*g) (char **, int), char **p, ...)
3454 s = g (p, va_arg (v,int));
3459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3460 function prototypes and stuff, but not '\xHH' hex character constants.
3461 These don't provoke an error unfortunately, instead are silently treated
3462 as 'x'. The following induces an error, until -std is added to get
3463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3464 array size at least. It's necessary to write '\x00'==0 to get something
3465 that's true only with -std. */
3466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3469 inside strings and character constants. */
3471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3473 int test (int i, double x);
3474 struct s1 {int (*f) (int a);};
3475 struct s2 {int (*f) (double a);};
3476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3490 CC="$ac_save_CC $ac_arg"
3491 rm -f conftest.$ac_objext
3492 if { (ac_try="$ac_compile"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_compile") 2>conftest.er1
3500 grep -v '^ *+' conftest.er1 >conftest.err
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } && {
3505 test -z "$ac_c_werror_flag" ||
3506 test ! -s conftest.err
3507 } && test -s conftest.$ac_objext; then
3508 ac_cv_prog_cc_c89=$ac_arg
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3516 rm -f core conftest.err conftest.$ac_objext
3517 test "x$ac_cv_prog_cc_c89" != "xno" && break
3519 rm -f conftest.$ac_ext
3524 case "x$ac_cv_prog_cc_c89" in
3526 { echo "$as_me:$LINENO: result: none needed" >&5
3527 echo "${ECHO_T}none needed" >&6; } ;;
3529 { echo "$as_me:$LINENO: result: unsupported" >&5
3530 echo "${ECHO_T}unsupported" >&6; } ;;
3532 CC="$CC $ac_cv_prog_cc_c89"
3533 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3534 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 depcc="$CC" am_compiler_list=
3546 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3547 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3548 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3552 # We make a subdir and do the tests there. Otherwise we can end up
3553 # making bogus files that we don't know about and never remove. For
3554 # instance it was reported that on HP-UX the gcc test will end up
3555 # making a dummy file named `D' -- because `-MD' means `put the output
3558 # Copy depcomp to subdir because otherwise we won't find it if we're
3559 # using a relative directory.
3560 cp "$am_depcomp" conftest.dir
3562 # We will build objects and dependencies in a subdirectory because
3563 # it helps to detect inapplicable dependency modes. For instance
3564 # both Tru64's cc and ICC support -MD to output dependencies as a
3565 # side effect of compilation, but ICC will put the dependencies in
3566 # the current directory while Tru64 will put them in the object
3570 am_cv_CC_dependencies_compiler_type=none
3571 if test "$am_compiler_list" = ""; then
3572 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3574 for depmode in $am_compiler_list; do
3575 # Setup a source with many dependencies, because some compilers
3576 # like to wrap large dependency lists on column 80 (with \), and
3577 # we should not choose a depcomp mode which is confused by this.
3579 # We need to recreate these files for each test, as the compiler may
3580 # overwrite some of them when testing with obscure command lines.
3581 # This happens at least with the AIX C compiler.
3583 for i in 1 2 3 4 5 6; do
3584 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3585 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3586 # Solaris 8's {/usr,}/bin/sh.
3587 touch sub/conftst$i.h
3589 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3593 # after this tag, mechanisms are not by side-effect, so they'll
3594 # only be used when explicitly requested
3595 if test "x$enable_dependency_tracking" = xyes; then
3603 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3604 # mode. It turns out that the SunPro C++ compiler does not properly
3605 # handle `-M -o', and we need to detect this.
3606 if depmode=$depmode \
3607 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3609 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3610 >/dev/null 2>conftest.err &&
3611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3613 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3615 # icc doesn't choke on unknown options, it will just issue warnings
3616 # or remarks (even with -Werror). So we grep stderr for any message
3617 # that says an option was ignored or not supported.
3618 # When given -MP, icc 7.0 and 7.1 complain thusly:
3619 # icc: Command line warning: ignoring option '-M'; no argument required
3620 # The diagnosis changed in icc 8.0:
3621 # icc: Command line remark: option '-MP' not supported
3622 if (grep 'ignoring option' conftest.err ||
3623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3624 am_cv_CC_dependencies_compiler_type=$depmode
3633 am_cv_CC_dependencies_compiler_type=none
3637 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3638 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3642 test "x$enable_dependency_tracking" != xno \
3643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3645 am__fastdepCC_FALSE='#'
3647 am__fastdepCC_TRUE='#'
3648 am__fastdepCC_FALSE=
3652 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3653 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3654 if test "${lt_cv_path_SED+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 # Loop through the user's path and test for sed and gsed.
3658 # Then use that list of sed's as ones to test for truncation.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for lt_ac_prog in sed gsed; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3667 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3675 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3676 # along with /bin/sed that truncates output.
3677 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3678 test ! -f $lt_ac_sed && continue
3679 cat /dev/null > conftest.in
3681 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3682 # Check for GNU sed and select it if it is found.
3683 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3684 lt_cv_path_SED=$lt_ac_sed
3688 cat conftest.in conftest.in >conftest.tmp
3689 mv conftest.tmp conftest.in
3690 cp conftest.in conftest.nl
3692 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3693 cmp -s conftest.out conftest.nl || break
3694 # 10000 chars as input seems more than enough
3695 test $lt_ac_count -gt 10 && break
3696 lt_ac_count=`expr $lt_ac_count + 1`
3697 if test $lt_ac_count -gt $lt_ac_max; then
3698 lt_ac_max=$lt_ac_count
3699 lt_cv_path_SED=$lt_ac_sed
3708 { echo "$as_me:$LINENO: result: $SED" >&5
3709 echo "${ECHO_T}$SED" >&6; }
3711 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3712 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3713 if test "${ac_cv_path_GREP+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 # Extract the first word of "grep ggrep" to use in msg output
3717 if test -z "$GREP"; then
3718 set dummy grep ggrep; ac_prog_name=$2
3719 if test "${ac_cv_path_GREP+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_path_GREP_found=false
3723 # Loop through the user's path and test for each of PROGNAME-LIST
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3728 test -z "$as_dir" && as_dir=.
3729 for ac_prog in grep ggrep; do
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3732 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3733 # Check for GNU ac_path_GREP and select it if it is found.
3734 # Check for GNU $ac_path_GREP
3735 case `"$ac_path_GREP" --version 2>&1` in
3737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3740 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3743 cat "conftest.in" "conftest.in" >"conftest.tmp"
3744 mv "conftest.tmp" "conftest.in"
3745 cp "conftest.in" "conftest.nl"
3746 echo 'GREP' >> "conftest.nl"
3747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749 ac_count=`expr $ac_count + 1`
3750 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3751 # Best one so far, save it but keep looking for a better one
3752 ac_cv_path_GREP="$ac_path_GREP"
3753 ac_path_GREP_max=$ac_count
3755 # 10*(2^10) chars as input seems more than enough
3756 test $ac_count -gt 10 && break
3758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3762 $ac_path_GREP_found && break 3
3772 GREP="$ac_cv_path_GREP"
3773 if test -z "$GREP"; then
3774 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3776 { (exit 1); exit 1; }; }
3780 ac_cv_path_GREP=$GREP
3785 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3786 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3787 GREP="$ac_cv_path_GREP"
3790 { echo "$as_me:$LINENO: checking for egrep" >&5
3791 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_EGREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3796 then ac_cv_path_EGREP="$GREP -E"
3798 # Extract the first word of "egrep" to use in msg output
3799 if test -z "$EGREP"; then
3800 set dummy egrep; ac_prog_name=$2
3801 if test "${ac_cv_path_EGREP+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 ac_path_EGREP_found=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810 test -z "$as_dir" && as_dir=.
3811 for ac_prog in egrep; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3814 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3815 # Check for GNU ac_path_EGREP and select it if it is found.
3816 # Check for GNU $ac_path_EGREP
3817 case `"$ac_path_EGREP" --version 2>&1` in
3819 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3822 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3825 cat "conftest.in" "conftest.in" >"conftest.tmp"
3826 mv "conftest.tmp" "conftest.in"
3827 cp "conftest.in" "conftest.nl"
3828 echo 'EGREP' >> "conftest.nl"
3829 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831 ac_count=`expr $ac_count + 1`
3832 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3833 # Best one so far, save it but keep looking for a better one
3834 ac_cv_path_EGREP="$ac_path_EGREP"
3835 ac_path_EGREP_max=$ac_count
3837 # 10*(2^10) chars as input seems more than enough
3838 test $ac_count -gt 10 && break
3840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3844 $ac_path_EGREP_found && break 3
3854 EGREP="$ac_cv_path_EGREP"
3855 if test -z "$EGREP"; then
3856 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3857 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3858 { (exit 1); exit 1; }; }
3862 ac_cv_path_EGREP=$EGREP
3868 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3869 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3870 EGREP="$ac_cv_path_EGREP"
3874 # Check whether --with-gnu-ld was given.
3875 if test "${with_gnu_ld+set}" = set; then
3876 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3882 if test "$GCC" = yes; then
3883 # Check if gcc -print-prog-name=ld gives a path.
3884 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3885 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3888 # gcc leaves a trailing carriage return which upsets mingw
3889 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3891 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3894 # Accept absolute paths.
3896 re_direlt='/[^/][^/]*/\.\./'
3897 # Canonicalize the pathname of ld
3898 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3899 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3900 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3902 test -z "$LD" && LD="$ac_prog"
3905 # If it fails, then pretend we aren't using GCC.
3909 # If it is relative, then search for the first ld in PATH.
3913 elif test "$with_gnu_ld" = yes; then
3914 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3915 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3917 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3918 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3920 if test "${lt_cv_path_LD+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -z "$LD"; then
3924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3925 for ac_dir in $PATH; do
3927 test -z "$ac_dir" && ac_dir=.
3928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3929 lt_cv_path_LD="$ac_dir/$ac_prog"
3930 # Check to see if the program is GNU ld. I'd rather use --version,
3931 # but apparently some variants of GNU ld only accept -v.
3932 # Break only if it was the GNU/non-GNU ld that we prefer.
3933 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3934 *GNU* | *'with BFD'*)
3935 test "$with_gnu_ld" != no && break
3938 test "$with_gnu_ld" != yes && break
3945 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3950 if test -n "$LD"; then
3951 { echo "$as_me:$LINENO: result: $LD" >&5
3952 echo "${ECHO_T}$LD" >&6; }
3954 { echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6; }
3957 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3958 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3959 { (exit 1); exit 1; }; }
3960 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3961 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3962 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3966 case `$LD -v 2>&1 </dev/null` in
3967 *GNU* | *'with BFD'*)
3968 lt_cv_prog_gnu_ld=yes
3971 lt_cv_prog_gnu_ld=no
3975 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3976 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3977 with_gnu_ld=$lt_cv_prog_gnu_ld
3980 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3981 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3982 if test "${lt_cv_ld_reload_flag+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 lt_cv_ld_reload_flag='-r'
3987 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3988 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3989 reload_flag=$lt_cv_ld_reload_flag
3990 case $reload_flag in
3992 *) reload_flag=" $reload_flag" ;;
3994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3997 if test "$GCC" = yes; then
3998 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4005 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4006 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4007 if test "${lt_cv_path_NM+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 if test -n "$NM"; then
4011 # Let the user override the test.
4014 lt_nm_to_check="${ac_tool_prefix}nm"
4015 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4016 lt_nm_to_check="$lt_nm_to_check nm"
4018 for lt_tmp_nm in $lt_nm_to_check; do
4019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4020 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4022 test -z "$ac_dir" && ac_dir=.
4023 tmp_nm="$ac_dir/$lt_tmp_nm"
4024 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4025 # Check to see if the nm accepts a BSD-compat flag.
4026 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4027 # nm: unknown option "B" ignored
4028 # Tru64's nm complains that /dev/null is an invalid object file
4029 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4030 */dev/null* | *'Invalid file or object type'*)
4031 lt_cv_path_NM="$tmp_nm -B"
4035 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4037 lt_cv_path_NM="$tmp_nm -p"
4041 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4042 continue # so that we can try to find one that supports BSD flags
4051 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4054 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4055 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4058 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4059 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4061 if test "$LN_S" = "ln -s"; then
4062 { echo "$as_me:$LINENO: result: yes" >&5
4063 echo "${ECHO_T}yes" >&6; }
4065 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4066 echo "${ECHO_T}no, using $LN_S" >&6; }
4069 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4070 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4071 if test "${lt_cv_deplibs_check_method+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 lt_cv_file_magic_cmd='$MAGIC_CMD'
4075 lt_cv_file_magic_test_file=
4076 lt_cv_deplibs_check_method='unknown'
4077 # Need to set the preceding variable on all platforms that support
4078 # interlibrary dependencies.
4079 # 'none' -- dependencies not supported.
4080 # `unknown' -- same as none, but documents that we really don't know.
4081 # 'pass_all' -- all dependencies passed with no checks.
4082 # 'test_compile' -- check by making test program.
4083 # 'file_magic [[regex]]' -- check by looking for files in library path
4084 # which responds to the $file_magic_cmd with a given extended regex.
4085 # If you have `file' or equivalent on your system and you're not sure
4086 # whether `pass_all' will *always* work, you probably want this one.
4090 lt_cv_deplibs_check_method=pass_all
4094 lt_cv_deplibs_check_method=pass_all
4098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4099 lt_cv_file_magic_cmd='/usr/bin/file -L'
4100 lt_cv_file_magic_test_file=/shlib/libc.so
4104 # func_win32_libid is a shell function defined in ltmain.sh
4105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4106 lt_cv_file_magic_cmd='func_win32_libid'
4110 # Base MSYS/MinGW do not provide the 'file' command needed by
4111 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4112 # unless we find 'file', for example because we are cross-compiling.
4113 if ( file / ) >/dev/null 2>&1; then
4114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4115 lt_cv_file_magic_cmd='func_win32_libid'
4117 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4118 lt_cv_file_magic_cmd='$OBJDUMP -f'
4122 darwin* | rhapsody*)
4123 lt_cv_deplibs_check_method=pass_all
4126 freebsd* | dragonfly*)
4127 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4130 # Not sure whether the presence of OpenBSD here was a mistake.
4131 # Let's accept both of them until this is cleared up.
4132 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4133 lt_cv_file_magic_cmd=/usr/bin/file
4134 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4138 lt_cv_deplibs_check_method=pass_all
4143 lt_cv_deplibs_check_method=pass_all
4146 hpux10.20* | hpux11*)
4147 lt_cv_file_magic_cmd=/usr/bin/file
4150 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4151 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4154 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]'
4155 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4159 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4165 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4169 irix5* | irix6* | nonstopux*)
4171 *-32|*"-32 ") libmagic=32-bit;;
4172 *-n32|*"-n32 ") libmagic=N32;;
4173 *-64|*"-64 ") libmagic=64-bit;;
4174 *) libmagic=never-match;;
4176 lt_cv_deplibs_check_method=pass_all
4179 # This must be Linux ELF.
4180 linux* | k*bsd*-gnu)
4181 lt_cv_deplibs_check_method=pass_all
4185 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4194 lt_cv_file_magic_cmd=/usr/bin/file
4195 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4199 lt_cv_deplibs_check_method=unknown
4203 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4210 osf3* | osf4* | osf5*)
4211 lt_cv_deplibs_check_method=pass_all
4215 lt_cv_deplibs_check_method=pass_all
4219 lt_cv_deplibs_check_method=pass_all
4223 case $host_vendor in
4225 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]'
4226 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4229 lt_cv_deplibs_check_method=pass_all
4232 lt_cv_file_magic_cmd='/bin/file'
4233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4236 lt_cv_file_magic_cmd='/bin/file'
4237 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4238 lt_cv_file_magic_test_file=/lib/libc.so
4241 lt_cv_deplibs_check_method=pass_all
4244 lt_cv_deplibs_check_method=pass_all
4249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4250 lt_cv_deplibs_check_method=pass_all
4255 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4256 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4257 file_magic_cmd=$lt_cv_file_magic_cmd
4258 deplibs_check_method=$lt_cv_deplibs_check_method
4259 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4264 # If no C compiler was specified, use CC.
4267 # If no C compiler flags were specified, use CFLAGS.
4268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4270 # Allow CC to be a program name with arguments.
4274 # Check whether --enable-libtool-lock was given.
4275 if test "${enable_libtool_lock+set}" = set; then
4276 enableval=$enable_libtool_lock;
4279 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4281 # Some flags need to be propagated to the compiler or linker for good
4285 # Find out which ABI we are using.
4286 echo 'int i;' > conftest.$ac_ext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; then
4292 case `/usr/bin/file conftest.$ac_objext` in
4304 # Find out which ABI we are using.
4305 echo '#line 4305 "configure"' > conftest.$ac_ext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; then
4311 if test "$lt_cv_prog_gnu_ld" = yes; then
4312 case `/usr/bin/file conftest.$ac_objext` in
4314 LD="${LD-ld} -melf32bsmip"
4317 LD="${LD-ld} -melf32bmipn32"
4320 LD="${LD-ld} -melf64bmip"
4324 case `/usr/bin/file conftest.$ac_objext` in
4340 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4341 s390*-*linux*|sparc*-*linux*)
4342 # Find out which ABI we are using.
4343 echo 'int i;' > conftest.$ac_ext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; then
4349 case `/usr/bin/file conftest.o` in
4352 x86_64-*kfreebsd*-gnu)
4353 LD="${LD-ld} -m elf_i386_fbsd"
4356 LD="${LD-ld} -m elf_i386"
4358 ppc64-*linux*|powerpc64-*linux*)
4359 LD="${LD-ld} -m elf32ppclinux"
4362 LD="${LD-ld} -m elf_s390"
4365 LD="${LD-ld} -m elf32_sparc"
4371 x86_64-*kfreebsd*-gnu)
4372 LD="${LD-ld} -m elf_x86_64_fbsd"
4375 LD="${LD-ld} -m elf_x86_64"
4377 ppc*-*linux*|powerpc*-*linux*)
4378 LD="${LD-ld} -m elf64ppc"
4381 LD="${LD-ld} -m elf64_s390"
4384 LD="${LD-ld} -m elf64_sparc"
4394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4395 SAVE_CFLAGS="$CFLAGS"
4396 CFLAGS="$CFLAGS -belf"
4397 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4398 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4399 if test "${lt_cv_cc_needs_belf+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4423 rm -f conftest.$ac_objext conftest$ac_exeext
4424 if { (ac_try="$ac_link"
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_link") 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && {
4437 test -z "$ac_c_werror_flag" ||
4438 test ! -s conftest.err
4439 } && test -s conftest$ac_exeext &&
4440 $as_test_x conftest$ac_exeext; then
4441 lt_cv_cc_needs_belf=yes
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 lt_cv_cc_needs_belf=no
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450 conftest$ac_exeext conftest.$ac_ext
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4459 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4460 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4462 CFLAGS="$SAVE_CFLAGS"
4466 # Find out which ABI we are using.
4467 echo 'int i;' > conftest.$ac_ext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; then
4473 case `/usr/bin/file conftest.o` in
4475 case $lt_cv_prog_gnu_ld in
4476 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4477 *) LD="${LD-ld} -64" ;;
4488 need_locks="$enable_libtool_lock"
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4498 # On Suns, sometimes $CPP names a directory.
4499 if test -n "$CPP" && test -d "$CPP"; then
4502 if test -z "$CPP"; then
4503 if test "${ac_cv_prog_CPP+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 # Double quotes because CPP needs to be expanded
4507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4510 for ac_c_preproc_warn_flag in '' yes
4512 # Use a header file that comes with gcc, so configuring glibc
4513 # with a fresh cross-compiler works.
4514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4515 # <limits.h> exists even on freestanding compilers.
4516 # On the NeXT, cc -E runs the code through the compiler's parser,
4517 # not just through cpp. "Syntax error" is here to catch this case.
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4525 # include <limits.h>
4527 # include <assert.h>
4531 if { (ac_try="$ac_cpp conftest.$ac_ext"
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } >/dev/null && {
4544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 # Broken: fails on valid input.
4556 rm -f conftest.err conftest.$ac_ext
4558 # OK, works on sane cases. Now check whether nonexistent headers
4559 # can be detected and how.
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #include <ac_nonexistent.h>
4568 if { (ac_try="$ac_cpp conftest.$ac_ext"
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } >/dev/null && {
4581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4584 # Broken: success on invalid input.
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 # Passes both tests.
4595 rm -f conftest.err conftest.$ac_ext
4598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599 rm -f conftest.err conftest.$ac_ext
4600 if $ac_preproc_ok; then
4612 { echo "$as_me:$LINENO: result: $CPP" >&5
4613 echo "${ECHO_T}$CPP" >&6; }
4615 for ac_c_preproc_warn_flag in '' yes
4617 # Use a header file that comes with gcc, so configuring glibc
4618 # with a fresh cross-compiler works.
4619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4620 # <limits.h> exists even on freestanding compilers.
4621 # On the NeXT, cc -E runs the code through the compiler's parser,
4622 # not just through cpp. "Syntax error" is here to catch this case.
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4630 # include <limits.h>
4632 # include <assert.h>
4636 if { (ac_try="$ac_cpp conftest.$ac_ext"
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4644 grep -v '^ *+' conftest.er1 >conftest.err
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } >/dev/null && {
4649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 # Broken: fails on valid input.
4661 rm -f conftest.err conftest.$ac_ext
4663 # OK, works on sane cases. Now check whether nonexistent headers
4664 # can be detected and how.
4665 cat >conftest.$ac_ext <<_ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 #include <ac_nonexistent.h>
4673 if { (ac_try="$ac_cpp conftest.$ac_ext"
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4681 grep -v '^ *+' conftest.er1 >conftest.err
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } >/dev/null && {
4686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4687 test ! -s conftest.err
4689 # Broken: success on invalid input.
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 # Passes both tests.
4700 rm -f conftest.err conftest.$ac_ext
4703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4704 rm -f conftest.err conftest.$ac_ext
4705 if $ac_preproc_ok; then
4708 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4711 See \`config.log' for more details." >&2;}
4712 { (exit 1); exit 1; }; }
4716 ac_cpp='$CPP $CPPFLAGS'
4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4723 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4724 if test "${ac_cv_header_stdc+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4746 rm -f conftest.$ac_objext
4747 if { (ac_try="$ac_compile"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_compile") 2>conftest.er1
4755 grep -v '^ *+' conftest.er1 >conftest.err
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && {
4760 test -z "$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest.$ac_objext; then
4763 ac_cv_header_stdc=yes
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_cv_header_stdc=no
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 if test $ac_cv_header_stdc = yes; then
4774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4775 cat >conftest.$ac_ext <<_ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785 $EGREP "memchr" >/dev/null 2>&1; then
4788 ac_cv_header_stdc=no
4794 if test $ac_cv_header_stdc = yes; then
4795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806 $EGREP "free" >/dev/null 2>&1; then
4809 ac_cv_header_stdc=no
4815 if test $ac_cv_header_stdc = yes; then
4816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4817 if test "$cross_compiling" = yes; then
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4828 #if ((' ' & 0x0FF) == 0x020)
4829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4832 # define ISLOWER(c) \
4833 (('a' <= (c) && (c) <= 'i') \
4834 || ('j' <= (c) && (c) <= 'r') \
4835 || ('s' <= (c) && (c) <= 'z'))
4836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4844 for (i = 0; i < 256; i++)
4845 if (XOR (islower (i), ISLOWER (i))
4846 || toupper (i) != TOUPPER (i))
4851 rm -f conftest$ac_exeext
4852 if { (ac_try="$ac_link"
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_link") 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4862 { (case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_try") 2>&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4873 echo "$as_me: program exited with status $ac_status" >&5
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_cv_header_stdc=no
4880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4886 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4887 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4888 if test $ac_cv_header_stdc = yes; then
4890 cat >>confdefs.h <<\_ACEOF
4891 #define STDC_HEADERS 1
4896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4907 inttypes.h stdint.h unistd.h
4909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 $ac_includes_default
4923 #include <$ac_header>
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4942 eval "$as_ac_Header=yes"
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 eval "$as_ac_Header=no"
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_res=`eval echo '${'$as_ac_Header'}'`
4953 { echo "$as_me:$LINENO: result: $ac_res" >&5
4954 echo "${ECHO_T}$ac_res" >&6; }
4955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4956 cat >>confdefs.h <<_ACEOF
4957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4966 for ac_header in dlfcn.h
4968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 ac_res=`eval echo '${'$as_ac_Header'}'`
4976 { echo "$as_me:$LINENO: result: $ac_res" >&5
4977 echo "${ECHO_T}$ac_res" >&6; }
4979 # Is the header compilable?
4980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4982 cat >conftest.$ac_ext <<_ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 $ac_includes_default
4989 #include <$ac_header>
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_compile") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5008 ac_header_compiler=yes
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 ac_header_compiler=no
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5018 echo "${ECHO_T}$ac_header_compiler" >&6; }
5020 # Is the header present?
5021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <$ac_header>
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5039 grep -v '^ *+' conftest.er1 >conftest.err
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } >/dev/null && {
5044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5045 test ! -s conftest.err
5047 ac_header_preproc=yes
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052 ac_header_preproc=no
5055 rm -f conftest.err conftest.$ac_ext
5056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5057 echo "${ECHO_T}$ac_header_preproc" >&6; }
5059 # So? What about this header?
5060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5066 ac_header_preproc=yes
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 eval "$as_ac_Header=\$ac_header_preproc"
5091 ac_res=`eval echo '${'$as_ac_Header'}'`
5092 { echo "$as_me:$LINENO: result: $ac_res" >&5
5093 echo "${ECHO_T}$ac_res" >&6; }
5096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5097 cat >>confdefs.h <<_ACEOF
5098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5106 ac_cpp='$CXXCPP $CPPFLAGS'
5107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5110 if test -z "$CXX"; then
5111 if test -n "$CCC"; then
5114 if test -n "$ac_tool_prefix"; then
5115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5121 if test "${ac_cv_prog_CXX+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 if test -n "$CXX"; then
5125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 if test -n "$CXX"; then
5146 { echo "$as_me:$LINENO: result: $CXX" >&5
5147 echo "${ECHO_T}$CXX" >&6; }
5149 { echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6; }
5154 test -n "$CXX" && break
5157 if test -z "$CXX"; then
5159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5161 # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 if test -n "$ac_ct_CXX"; then
5169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ac_ct_CXX="$ac_prog"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5189 if test -n "$ac_ct_CXX"; then
5190 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5191 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5193 { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5198 test -n "$ac_ct_CXX" && break
5201 if test "x$ac_ct_CXX" = x; then
5204 case $cross_compiling:$ac_tool_warned in
5206 { echo "$as_me:$LINENO: 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." >&5
5209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5210 whose name does not start with the host triplet. If you think this
5211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5212 ac_tool_warned=yes ;;
5220 # Provide some information about the compiler.
5221 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5222 ac_compiler=`set X $ac_compile; echo $2`
5223 { (ac_try="$ac_compiler --version >&5"
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_compiler --version >&5") 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }
5233 { (ac_try="$ac_compiler -v >&5"
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_compiler -v >&5") 2>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }
5243 { (ac_try="$ac_compiler -V >&5"
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_compiler -V >&5") 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }
5254 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5255 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5256 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5277 rm -f conftest.$ac_objext
5278 if { (ac_try="$ac_compile"
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 (eval "$ac_compile") 2>conftest.er1
5286 grep -v '^ *+' conftest.er1 >conftest.err
5288 cat conftest.err >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && {
5291 test -z "$ac_cxx_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest.$ac_objext; then
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5306 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5307 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5308 GXX=`test $ac_compiler_gnu = yes && echo yes`
5309 ac_test_CXXFLAGS=${CXXFLAGS+set}
5310 ac_save_CXXFLAGS=$CXXFLAGS
5311 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5312 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5313 if test "${ac_cv_prog_cxx_g+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5317 ac_cxx_werror_flag=yes
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_compile") 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && {
5349 test -z "$ac_cxx_werror_flag" ||
5350 test ! -s conftest.err
5351 } && test -s conftest.$ac_objext; then
5352 ac_cv_prog_cxx_g=yes
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_cxx_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5397 cat >conftest.$ac_ext <<_ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5412 rm -f conftest.$ac_objext
5413 if { (ac_try="$ac_compile"
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_compile") 2>conftest.er1
5421 grep -v '^ *+' conftest.er1 >conftest.err
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && {
5426 test -z "$ac_cxx_werror_flag" ||
5427 test ! -s conftest.err
5428 } && test -s conftest.$ac_objext; then
5429 ac_cv_prog_cxx_g=yes
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5446 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5447 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5448 if test "$ac_test_CXXFLAGS" = set; then
5449 CXXFLAGS=$ac_save_CXXFLAGS
5450 elif test $ac_cv_prog_cxx_g = yes; then
5451 if test "$GXX" = yes; then
5457 if test "$GXX" = yes; then
5464 ac_cpp='$CXXCPP $CPPFLAGS'
5465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5469 depcc="$CXX" am_compiler_list=
5471 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5472 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5473 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5477 # We make a subdir and do the tests there. Otherwise we can end up
5478 # making bogus files that we don't know about and never remove. For
5479 # instance it was reported that on HP-UX the gcc test will end up
5480 # making a dummy file named `D' -- because `-MD' means `put the output
5483 # Copy depcomp to subdir because otherwise we won't find it if we're
5484 # using a relative directory.
5485 cp "$am_depcomp" conftest.dir
5487 # We will build objects and dependencies in a subdirectory because
5488 # it helps to detect inapplicable dependency modes. For instance
5489 # both Tru64's cc and ICC support -MD to output dependencies as a
5490 # side effect of compilation, but ICC will put the dependencies in
5491 # the current directory while Tru64 will put them in the object
5495 am_cv_CXX_dependencies_compiler_type=none
5496 if test "$am_compiler_list" = ""; then
5497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5499 for depmode in $am_compiler_list; do
5500 # Setup a source with many dependencies, because some compilers
5501 # like to wrap large dependency lists on column 80 (with \), and
5502 # we should not choose a depcomp mode which is confused by this.
5504 # We need to recreate these files for each test, as the compiler may
5505 # overwrite some of them when testing with obscure command lines.
5506 # This happens at least with the AIX C compiler.
5508 for i in 1 2 3 4 5 6; do
5509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5511 # Solaris 8's {/usr,}/bin/sh.
5512 touch sub/conftst$i.h
5514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5518 # after this tag, mechanisms are not by side-effect, so they'll
5519 # only be used when explicitly requested
5520 if test "x$enable_dependency_tracking" = xyes; then
5528 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5529 # mode. It turns out that the SunPro C++ compiler does not properly
5530 # handle `-M -o', and we need to detect this.
5531 if depmode=$depmode \
5532 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5534 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5535 >/dev/null 2>conftest.err &&
5536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5538 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5540 # icc doesn't choke on unknown options, it will just issue warnings
5541 # or remarks (even with -Werror). So we grep stderr for any message
5542 # that says an option was ignored or not supported.
5543 # When given -MP, icc 7.0 and 7.1 complain thusly:
5544 # icc: Command line warning: ignoring option '-M'; no argument required
5545 # The diagnosis changed in icc 8.0:
5546 # icc: Command line remark: option '-MP' not supported
5547 if (grep 'ignoring option' conftest.err ||
5548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5549 am_cv_CXX_dependencies_compiler_type=$depmode
5558 am_cv_CXX_dependencies_compiler_type=none
5562 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5563 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5564 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5567 test "x$enable_dependency_tracking" != xno \
5568 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5569 am__fastdepCXX_TRUE=
5570 am__fastdepCXX_FALSE='#'
5572 am__fastdepCXX_TRUE='#'
5573 am__fastdepCXX_FALSE=
5579 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5580 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5581 (test "X$CXX" != "Xg++"))) ; then
5583 ac_cpp='$CXXCPP $CPPFLAGS'
5584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5587 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5588 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5589 if test -z "$CXXCPP"; then
5590 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 # Double quotes because CXXCPP needs to be expanded
5594 for CXXCPP in "$CXX -E" "/lib/cpp"
5597 for ac_cxx_preproc_warn_flag in '' yes
5599 # Use a header file that comes with gcc, so configuring glibc
5600 # with a fresh cross-compiler works.
5601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602 # <limits.h> exists even on freestanding compilers.
5603 # On the NeXT, cc -E runs the code through the compiler's parser,
5604 # not just through cpp. "Syntax error" is here to catch this case.
5605 cat >conftest.$ac_ext <<_ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5612 # include <limits.h>
5614 # include <assert.h>
5618 if { (ac_try="$ac_cpp conftest.$ac_ext"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } >/dev/null && {
5631 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5632 test ! -s conftest.err
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 # Broken: fails on valid input.
5643 rm -f conftest.err conftest.$ac_ext
5645 # OK, works on sane cases. Now check whether nonexistent headers
5646 # can be detected and how.
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null && {
5668 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5669 test ! -s conftest.err
5671 # Broken: success on invalid input.
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 # Passes both tests.
5682 rm -f conftest.err conftest.$ac_ext
5685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5686 rm -f conftest.err conftest.$ac_ext
5687 if $ac_preproc_ok; then
5692 ac_cv_prog_CXXCPP=$CXXCPP
5695 CXXCPP=$ac_cv_prog_CXXCPP
5697 ac_cv_prog_CXXCPP=$CXXCPP
5699 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5700 echo "${ECHO_T}$CXXCPP" >&6; }
5702 for ac_cxx_preproc_warn_flag in '' yes
5704 # Use a header file that comes with gcc, so configuring glibc
5705 # with a fresh cross-compiler works.
5706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707 # <limits.h> exists even on freestanding compilers.
5708 # On the NeXT, cc -E runs the code through the compiler's parser,
5709 # not just through cpp. "Syntax error" is here to catch this case.
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5717 # include <limits.h>
5719 # include <assert.h>
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5737 test ! -s conftest.err
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 # Broken: fails on valid input.
5748 rm -f conftest.err conftest.$ac_ext
5750 # OK, works on sane cases. Now check whether nonexistent headers
5751 # can be detected and how.
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <ac_nonexistent.h>
5760 if { (ac_try="$ac_cpp conftest.$ac_ext"
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } >/dev/null && {
5773 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5774 test ! -s conftest.err
5776 # Broken: success on invalid input.
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 # Passes both tests.
5787 rm -f conftest.err conftest.$ac_ext
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.$ac_ext
5792 if $ac_preproc_ok; then
5795 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5796 See \`config.log' for more details." >&5
5797 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5798 See \`config.log' for more details." >&2;}
5799 { (exit 1); exit 1; }; }
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5815 if test -n "$ac_tool_prefix"; then
5816 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
5818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_F77+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 if test -n "$F77"; then
5826 ac_cv_prog_F77="$F77" # Let the user override the test.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 if test -n "$F77"; then
5847 { echo "$as_me:$LINENO: result: $F77" >&5
5848 echo "${ECHO_T}$F77" >&6; }
5850 { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5855 test -n "$F77" && break
5858 if test -z "$F77"; then
5860 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
5862 # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if test -n "$ac_ct_F77"; then
5870 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_F77="$ac_prog"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5890 if test -n "$ac_ct_F77"; then
5891 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5892 echo "${ECHO_T}$ac_ct_F77" >&6; }
5894 { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5899 test -n "$ac_ct_F77" && break
5902 if test "x$ac_ct_F77" = x; then
5905 case $cross_compiling:$ac_tool_warned in
5907 { echo "$as_me:$LINENO: 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." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet. If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5920 # Provide some information about the compiler.
5921 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5922 ac_compiler=`set X $ac_compile; echo $2`
5923 { (ac_try="$ac_compiler --version >&5"
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_compiler --version >&5") 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }
5933 { (ac_try="$ac_compiler -v >&5"
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compiler -v >&5") 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }
5943 { (ac_try="$ac_compiler -V >&5"
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compiler -V >&5") 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }
5955 # If we don't use `.F' as extension, the preprocessor is not run on the
5956 # input file. (Note that this only needs to work for GNU compilers.)
5959 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5960 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5961 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 cat >conftest.$ac_ext <<_ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_compile") 2>conftest.er1
5981 grep -v '^ *+' conftest.er1 >conftest.err
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && {
5986 test -z "$ac_f77_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest.$ac_objext; then
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6001 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6002 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6004 ac_test_FFLAGS=${FFLAGS+set}
6005 ac_save_FFLAGS=$FFLAGS
6007 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6008 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6009 if test "${ac_cv_prog_f77_g+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 cat >conftest.$ac_ext <<_ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6027 grep -v '^ *+' conftest.er1 >conftest.err
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_f77_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.$ac_objext; then
6035 ac_cv_prog_f77_g=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6047 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6048 if test "$ac_test_FFLAGS" = set; then
6049 FFLAGS=$ac_save_FFLAGS
6050 elif test $ac_cv_prog_f77_g = yes; then
6051 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6057 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6064 G77=`test $ac_compiler_gnu = yes && echo yes`
6066 ac_cpp='$CPP $CPPFLAGS'
6067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6073 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6075 # find the maximum length of command line arguments
6076 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6077 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6078 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 # On DJGPP, this test can blow up pretty badly due to problems in libc
6087 # (any single argument exceeding 2000 bytes causes a buffer overrun
6088 # during glob expansion). Even if it were fixed, the result of this
6089 # check would be larger than it should be.
6090 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6094 # Under GNU Hurd, this test is not required because there is
6095 # no limit to the length of command line arguments.
6096 # Libtool will interpret -1 as no limit whatsoever
6097 lt_cv_sys_max_cmd_len=-1;
6101 # On Win9x/ME, this test blows up -- it succeeds, but takes
6102 # about 5 minutes as the teststring grows exponentially.
6103 # Worse, since 9x/ME are not pre-emptively multitasking,
6104 # you end up with a "frozen" computer, even though with patience
6105 # the test eventually succeeds (with a max line length of 256k).
6106 # Instead, let's just punt: use the minimum linelength reported by
6107 # all of the supported platforms: 8192 (on NT/2K/XP).
6108 lt_cv_sys_max_cmd_len=8192;
6112 # On AmigaOS with pdksh, this test takes hours, literally.
6113 # So we just punt and use a minimum line length of 8192.
6114 lt_cv_sys_max_cmd_len=8192;
6117 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6118 # This has been around since 386BSD, at least. Likely further.
6119 if test -x /sbin/sysctl; then
6120 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6121 elif test -x /usr/sbin/sysctl; then
6122 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6124 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6126 # And add a safety zone
6127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6132 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6133 lt_cv_sys_max_cmd_len=196608
6137 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6138 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6139 # nice to cause kernel panics so lets avoid the loop below.
6140 # First set a reasonable default.
6141 lt_cv_sys_max_cmd_len=16384
6143 if test -x /sbin/sysconfig; then
6144 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6145 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6150 lt_cv_sys_max_cmd_len=102400
6152 sysv5* | sco5v6* | sysv4.2uw2*)
6153 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6154 if test -n "$kargmax"; then
6155 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6157 lt_cv_sys_max_cmd_len=32768
6161 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6162 if test -n "$lt_cv_sys_max_cmd_len"; then
6163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6166 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6167 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6168 = "XX$teststring") >/dev/null 2>&1 &&
6169 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6170 lt_cv_sys_max_cmd_len=$new_result &&
6171 test $i != 17 # 1/2 MB should be enough
6174 teststring=$teststring$teststring
6177 # Add a significant safety factor because C++ compilers can tack on massive
6178 # amounts of additional arguments before passing them to the linker.
6179 # It appears as though 1/2 is a usable value.
6180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6187 if test -n $lt_cv_sys_max_cmd_len ; then
6188 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6189 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6191 { echo "$as_me:$LINENO: result: none" >&5
6192 echo "${ECHO_T}none" >&6; }
6199 # Check for command to grab the raw symbol name followed by C symbol from nm.
6200 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6201 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6202 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 # These are sane defaults that work on at least a few old systems.
6207 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6209 # Character class describing NM global symbol codes.
6210 symcode='[BCDEGRST]'
6212 # Regexp to match symbols that can be accessed directly from C.
6213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6215 # Transform an extracted symbol line into a proper C declaration
6216 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6218 # Transform an extracted symbol line into symbol name and symbol address
6219 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'"
6221 # Define system-specific variables.
6226 cygwin* | mingw* | pw32*)
6227 symcode='[ABCDGISTW]'
6229 hpux*) # Its linker distinguishes data from code symbols
6230 if test "$host_cpu" = ia64; then
6231 symcode='[ABCDEGRST]'
6233 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6234 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'"
6236 linux* | k*bsd*-gnu)
6237 if test "$host_cpu" = ia64; then
6238 symcode='[ABCDGIRSTW]'
6239 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6240 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6244 symcode='[BCDEGRST]'
6247 symcode='[BCDEGQRST]'
6258 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6266 # Handle CRLF in mingw tool chain
6270 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6274 # If we're using GNU nm, then use its standard symbol codes.
6275 case `$NM -V 2>&1` in
6276 *GNU* | *'with BFD'*)
6277 symcode='[ABCDGIRSTW]' ;;
6280 # Try without a prefix undercore, then with it.
6281 for ac_symprfx in "" "_"; do
6283 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6284 symxfrm="\\1 $ac_symprfx\\2 \\2"
6286 # Write the raw and C identifiers.
6287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6289 # Check to see that the pipe works correctly.
6293 cat > conftest.$ac_ext <<EOF
6298 void nm_test_func(){}
6302 int main(){nm_test_var='a';nm_test_func();return(0);}
6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; then
6310 # Now try to grab the symbols.
6312 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6313 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && test -s "$nlist"; then
6317 # Try sorting and uniquifying the output.
6318 if sort "$nlist" | uniq > "$nlist"T; then
6319 mv -f "$nlist"T "$nlist"
6324 # Make sure that we snagged all the symbols we need.
6325 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6326 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6327 cat <<EOF > conftest.$ac_ext
6333 # Now generate the symbol file.
6334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6336 cat <<EOF >> conftest.$ac_ext
6337 #if defined (__STDC__) && __STDC__
6338 # define lt_ptr_t void *
6340 # define lt_ptr_t char *
6344 /* The mapping between symbol names and symbols. */
6349 lt_preloaded_symbols[] =
6352 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6353 cat <<\EOF >> conftest.$ac_ext
6361 # Now try linking the two files.
6362 mv conftest.$ac_objext conftstm.$ac_objext
6363 lt_save_LIBS="$LIBS"
6364 lt_save_CFLAGS="$CFLAGS"
6365 LIBS="conftstm.$ac_objext"
6366 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368 (eval $ac_link) 2>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6374 LIBS="$lt_save_LIBS"
6375 CFLAGS="$lt_save_CFLAGS"
6377 echo "cannot find nm_test_func in $nlist" >&5
6380 echo "cannot find nm_test_var in $nlist" >&5
6383 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6386 echo "$progname: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6389 rm -f conftest* conftst*
6391 # Do not use the global_symbol_pipe unless it works.
6392 if test "$pipe_works" = yes; then
6395 lt_cv_sys_global_symbol_pipe=
6401 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6402 lt_cv_sys_global_symbol_to_cdecl=
6404 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6405 { echo "$as_me:$LINENO: result: failed" >&5
6406 echo "${ECHO_T}failed" >&6; }
6408 { echo "$as_me:$LINENO: result: ok" >&5
6409 echo "${ECHO_T}ok" >&6; }
6412 { echo "$as_me:$LINENO: checking for objdir" >&5
6413 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6414 if test "${lt_cv_objdir+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 rm -f .libs 2>/dev/null
6418 mkdir .libs 2>/dev/null
6419 if test -d .libs; then
6422 # MS-DOS does not allow filenames that begin with a dot.
6425 rmdir .libs 2>/dev/null
6427 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6428 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6429 objdir=$lt_cv_objdir
6437 # AIX sometimes has problems with the GCC collect2 program. For some
6438 # reason, if we set the COLLECT_NAMES environment variable, the problems
6439 # vanish in a puff of smoke.
6440 if test "X${COLLECT_NAMES+set}" != Xset; then
6442 export COLLECT_NAMES
6447 # Sed substitution that helps us do robust quoting. It backslashifies
6448 # metacharacters that are still active within double-quoted strings.
6449 Xsed='sed -e 1s/^X//'
6450 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6452 # Same as above, but do not quote variable references.
6453 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6455 # Sed substitution to delay expansion of an escaped shell variable in a
6456 # double_quote_subst'ed string.
6457 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6459 # Sed substitution to avoid accidental globbing in evaled expressions
6460 no_glob_subst='s/\*/\\\*/g'
6466 default_ofile=libtool
6467 can_build_shared=yes
6469 # All known linkers require a `.a' archive for static linking (except MSVC,
6470 # which needs '.lib').
6472 ltmain="$ac_aux_dir/ltmain.sh"
6473 ofile="$default_ofile"
6474 with_gnu_ld="$lt_cv_prog_gnu_ld"
6476 if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ar; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_prog_AR+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 if test -n "$AR"; then
6485 ac_cv_prog_AR="$AR" # Let the user override the test.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_AR="${ac_tool_prefix}ar"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 if test -n "$AR"; then
6506 { echo "$as_me:$LINENO: result: $AR" >&5
6507 echo "${ECHO_T}$AR" >&6; }
6509 { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6515 if test -z "$ac_cv_prog_AR"; then
6517 # Extract the first word of "ar", so it can be a program name with args.
6518 set dummy ar; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 if test -n "$ac_ct_AR"; then
6525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_prog_ac_ct_AR="ar"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6545 if test -n "$ac_ct_AR"; then
6546 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6547 echo "${ECHO_T}$ac_ct_AR" >&6; }
6549 { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6553 if test "x$ac_ct_AR" = x; then
6556 case $cross_compiling:$ac_tool_warned in
6558 { echo "$as_me:$LINENO: 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." >&5
6561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet. If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564 ac_tool_warned=yes ;;
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_prog_RANLIB+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 if test -n "$RANLIB"; then
6581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 RANLIB=$ac_cv_prog_RANLIB
6601 if test -n "$RANLIB"; then
6602 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6603 echo "${ECHO_T}$RANLIB" >&6; }
6605 { echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6; }
6611 if test -z "$ac_cv_prog_RANLIB"; then
6612 ac_ct_RANLIB=$RANLIB
6613 # Extract the first word of "ranlib", so it can be a program name with args.
6614 set dummy ranlib; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 if test -n "$ac_ct_RANLIB"; then
6621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_ac_ct_RANLIB="ranlib"
6631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6641 if test -n "$ac_ct_RANLIB"; then
6642 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6643 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6645 { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6649 if test "x$ac_ct_RANLIB" = x; then
6652 case $cross_compiling:$ac_tool_warned in
6654 { echo "$as_me:$LINENO: 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." >&5
6657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6658 whose name does not start with the host triplet. If you think this
6659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6660 ac_tool_warned=yes ;;
6662 RANLIB=$ac_ct_RANLIB
6665 RANLIB="$ac_cv_prog_RANLIB"
6668 if test -n "$ac_tool_prefix"; then
6669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}strip; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_prog_STRIP+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 if test -n "$STRIP"; then
6677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 STRIP=$ac_cv_prog_STRIP
6697 if test -n "$STRIP"; then
6698 { echo "$as_me:$LINENO: result: $STRIP" >&5
6699 echo "${ECHO_T}$STRIP" >&6; }
6701 { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6707 if test -z "$ac_cv_prog_STRIP"; then
6709 # Extract the first word of "strip", so it can be a program name with args.
6710 set dummy strip; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 if test -n "$ac_ct_STRIP"; then
6717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_ac_ct_STRIP="strip"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6737 if test -n "$ac_ct_STRIP"; then
6738 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6739 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6745 if test "x$ac_ct_STRIP" = x; then
6748 case $cross_compiling:$ac_tool_warned in
6750 { echo "$as_me:$LINENO: 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." >&5
6753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6754 whose name does not start with the host triplet. If you think this
6755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6756 ac_tool_warned=yes ;;
6761 STRIP="$ac_cv_prog_STRIP"
6766 old_CFLAGS="$CFLAGS"
6768 # Set sane defaults for various variables
6769 test -z "$AR" && AR=ar
6770 test -z "$AR_FLAGS" && AR_FLAGS=cru
6771 test -z "$AS" && AS=as
6772 test -z "$CC" && CC=cc
6773 test -z "$LTCC" && LTCC=$CC
6774 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6775 test -z "$DLLTOOL" && DLLTOOL=dlltool
6776 test -z "$LD" && LD=ld
6777 test -z "$LN_S" && LN_S="ln -s"
6778 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6779 test -z "$NM" && NM=nm
6780 test -z "$SED" && SED=sed
6781 test -z "$OBJDUMP" && OBJDUMP=objdump
6782 test -z "$RANLIB" && RANLIB=:
6783 test -z "$STRIP" && STRIP=:
6784 test -z "$ac_objext" && ac_objext=o
6786 # Determine commands to create old-style static archives.
6787 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6788 old_postinstall_cmds='chmod 644 $oldlib'
6789 old_postuninstall_cmds=
6791 if test -n "$RANLIB"; then
6794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6797 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6800 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6803 for cc_temp in $compiler""; do
6805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6814 # Only perform the check for file, if the check method requires it
6815 case $deplibs_check_method in
6817 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6818 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6819 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6820 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6828 lt_save_MAGIC_CMD="$MAGIC_CMD"
6829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6831 for ac_dir in $ac_dummy; do
6833 test -z "$ac_dir" && ac_dir=.
6834 if test -f $ac_dir/${ac_tool_prefix}file; then
6835 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6836 if test -n "$file_magic_test_file"; then
6837 case $deplibs_check_method in
6839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6842 $EGREP "$file_magic_regex" > /dev/null; then
6847 *** Warning: the command libtool uses to detect shared libraries,
6848 *** $file_magic_cmd, produces output that libtool cannot recognize.
6849 *** The result is that libtool may fail to recognize shared libraries
6850 *** as such. This will affect the creation of libtool libraries that
6851 *** depend on shared libraries, but programs linked with such libtool
6852 *** libraries will work regardless of this problem. Nevertheless, you
6853 *** may want to report the problem to your system manager and/or to
6854 *** bug-libtool@gnu.org
6864 MAGIC_CMD="$lt_save_MAGIC_CMD"
6869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6870 if test -n "$MAGIC_CMD"; then
6871 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6872 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6874 { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6878 if test -z "$lt_cv_path_MAGIC_CMD"; then
6879 if test -n "$ac_tool_prefix"; then
6880 { echo "$as_me:$LINENO: checking for file" >&5
6881 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6882 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6890 lt_save_MAGIC_CMD="$MAGIC_CMD"
6891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6892 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6893 for ac_dir in $ac_dummy; do
6895 test -z "$ac_dir" && ac_dir=.
6896 if test -f $ac_dir/file; then
6897 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6898 if test -n "$file_magic_test_file"; then
6899 case $deplibs_check_method in
6901 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6903 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6904 $EGREP "$file_magic_regex" > /dev/null; then
6909 *** Warning: the command libtool uses to detect shared libraries,
6910 *** $file_magic_cmd, produces output that libtool cannot recognize.
6911 *** The result is that libtool may fail to recognize shared libraries
6912 *** as such. This will affect the creation of libtool libraries that
6913 *** depend on shared libraries, but programs linked with such libtool
6914 *** libraries will work regardless of this problem. Nevertheless, you
6915 *** may want to report the problem to your system manager and/or to
6916 *** bug-libtool@gnu.org
6926 MAGIC_CMD="$lt_save_MAGIC_CMD"
6931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6932 if test -n "$MAGIC_CMD"; then
6933 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6934 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6952 # Check whether --enable-libtool-lock was given.
6953 if test "${enable_libtool_lock+set}" = set; then
6954 enableval=$enable_libtool_lock;
6957 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6960 # Check whether --with-pic was given.
6961 if test "${with_pic+set}" = set; then
6962 withval=$with_pic; pic_mode="$withval"
6967 test -z "$pic_mode" && pic_mode=default
6969 # Use C for the default configuration in the libtool script
6973 ac_cpp='$CPP $CPPFLAGS'
6974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6979 # Source file extension for C test sources.
6982 # Object file extension for compiled C test sources.
6986 # Code to be used in simple compile tests
6987 lt_simple_compile_test_code="int some_variable = 0;"
6989 # Code to be used in simple link tests
6990 lt_simple_link_test_code='int main(){return(0);}'
6993 # If no C compiler was specified, use CC.
6996 # If no C compiler flags were specified, use CFLAGS.
6997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6999 # Allow CC to be a program name with arguments.
7003 # save warnings/boilerplate of simple test code
7004 ac_outfile=conftest.$ac_objext
7005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7007 _lt_compiler_boilerplate=`cat conftest.err`
7010 ac_outfile=conftest.$ac_objext
7011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7013 _lt_linker_boilerplate=`cat conftest.err`
7018 lt_prog_compiler_no_builtin_flag=
7020 if test "$GCC" = yes; then
7021 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7024 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7025 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7026 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 lt_cv_prog_compiler_rtti_exceptions=no
7030 ac_outfile=conftest.$ac_objext
7031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7032 lt_compiler_flag="-fno-rtti -fno-exceptions"
7033 # Insert the option either (1) after the last *FLAGS variable, or
7034 # (2) before a word containing "conftest.", or (3) at the end.
7035 # Note that $ac_compile itself does not contain backslashes and begins
7036 # with a dollar sign (not a hyphen), so the echo should work correctly.
7037 # The option is referenced via a variable to avoid confusing sed.
7038 lt_compile=`echo "$ac_compile" | $SED \
7039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7041 -e 's:$: $lt_compiler_flag:'`
7042 (eval echo "\"\$as_me:7042: $lt_compile\"" >&5)
7043 (eval "$lt_compile" 2>conftest.err)
7045 cat conftest.err >&5
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 if (exit $ac_status) && test -s "$ac_outfile"; then
7048 # The compiler can only warn and ignore the option if not recognized
7049 # So say no if there are warnings other than the usual output.
7050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7053 lt_cv_prog_compiler_rtti_exceptions=yes
7059 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7060 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7062 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7063 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7070 lt_prog_compiler_wl=
7071 lt_prog_compiler_pic=
7072 lt_prog_compiler_static=
7074 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7075 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7077 if test "$GCC" = yes; then
7078 lt_prog_compiler_wl='-Wl,'
7079 lt_prog_compiler_static='-static'
7083 # All AIX code is PIC.
7084 if test "$host_cpu" = ia64; then
7085 # AIX 5 now supports IA64 processor
7086 lt_prog_compiler_static='-Bstatic'
7091 # FIXME: we need at least 68020 code to build shared libraries, but
7092 # adding the `-m68020' flag to GCC prevents building anything better,
7094 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7098 # PIC is the default for these OSes.
7101 mingw* | cygwin* | pw32* | os2*)
7102 # This hack is so that the source file can tell whether it is being
7103 # built for inclusion in a dll (and should export symbols for example).
7104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7105 # (--disable-auto-import) libraries
7106 lt_prog_compiler_pic='-DDLL_EXPORT'
7109 darwin* | rhapsody*)
7110 # PIC is the default on this platform
7111 # Common symbols not allowed in MH_DYLIB files
7112 lt_prog_compiler_pic='-fno-common'
7116 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7117 # Instead, we relocate shared libraries at runtime.
7121 # Just because we use GCC doesn't mean we suddenly get shared libraries
7122 # on systems that don't support them.
7123 lt_prog_compiler_can_build_shared=no
7128 if test -d /usr/nec; then
7129 lt_prog_compiler_pic=-Kconform_pic
7134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7141 lt_prog_compiler_pic='-fPIC'
7147 lt_prog_compiler_pic='-fPIC'
7151 # PORTME Check for flag to pass linker flags through the system compiler.
7154 lt_prog_compiler_wl='-Wl,'
7155 if test "$host_cpu" = ia64; then
7156 # AIX 5 now supports IA64 processor
7157 lt_prog_compiler_static='-Bstatic'
7159 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7163 # PIC is the default on this platform
7164 # Common symbols not allowed in MH_DYLIB files
7165 case $cc_basename in
7167 lt_prog_compiler_pic='-qnocommon'
7168 lt_prog_compiler_wl='-Wl,'
7173 mingw* | cygwin* | pw32* | os2*)
7174 # This hack is so that the source file can tell whether it is being
7175 # built for inclusion in a dll (and should export symbols for example).
7176 lt_prog_compiler_pic='-DDLL_EXPORT'
7179 hpux9* | hpux10* | hpux11*)
7180 lt_prog_compiler_wl='-Wl,'
7181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7188 lt_prog_compiler_pic='+Z'
7191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7192 lt_prog_compiler_static='${wl}-a ${wl}archive'
7195 irix5* | irix6* | nonstopux*)
7196 lt_prog_compiler_wl='-Wl,'
7197 # PIC (with -KPIC) is the default.
7198 lt_prog_compiler_static='-non_shared'
7202 lt_prog_compiler_pic='-KPIC'
7203 lt_prog_compiler_static='-Bstatic'
7206 linux* | k*bsd*-gnu)
7207 case $cc_basename in
7209 lt_prog_compiler_wl='-Wl,'
7210 lt_prog_compiler_pic='-KPIC'
7211 lt_prog_compiler_static='-static'
7213 pgcc* | pgf77* | pgf90* | pgf95*)
7214 # Portland Group compilers (*not* the Pentium gcc compiler,
7215 # which looks to be a dead project)
7216 lt_prog_compiler_wl='-Wl,'
7217 lt_prog_compiler_pic='-fpic'
7218 lt_prog_compiler_static='-Bstatic'
7221 lt_prog_compiler_wl='-Wl,'
7222 # All Alpha code is PIC.
7223 lt_prog_compiler_static='-non_shared'
7226 case `$CC -V 2>&1 | sed 5q` in
7229 lt_prog_compiler_pic='-KPIC'
7230 lt_prog_compiler_static='-Bstatic'
7231 lt_prog_compiler_wl='-Wl,'
7234 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7235 lt_prog_compiler_pic='-KPIC'
7236 lt_prog_compiler_static='-Bstatic'
7237 lt_prog_compiler_wl=''
7244 osf3* | osf4* | osf5*)
7245 lt_prog_compiler_wl='-Wl,'
7246 # All OSF/1 code is PIC.
7247 lt_prog_compiler_static='-non_shared'
7251 lt_prog_compiler_static='-non_shared'
7255 lt_prog_compiler_pic='-KPIC'
7256 lt_prog_compiler_static='-Bstatic'
7257 case $cc_basename in
7259 lt_prog_compiler_wl='-Qoption ld ';;
7261 lt_prog_compiler_wl='-Wl,';;
7266 lt_prog_compiler_wl='-Qoption ld '
7267 lt_prog_compiler_pic='-PIC'
7268 lt_prog_compiler_static='-Bstatic'
7271 sysv4 | sysv4.2uw2* | sysv4.3*)
7272 lt_prog_compiler_wl='-Wl,'
7273 lt_prog_compiler_pic='-KPIC'
7274 lt_prog_compiler_static='-Bstatic'
7278 if test -d /usr/nec ;then
7279 lt_prog_compiler_pic='-Kconform_pic'
7280 lt_prog_compiler_static='-Bstatic'
7284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7285 lt_prog_compiler_wl='-Wl,'
7286 lt_prog_compiler_pic='-KPIC'
7287 lt_prog_compiler_static='-Bstatic'
7291 lt_prog_compiler_wl='-Wl,'
7292 lt_prog_compiler_can_build_shared=no
7296 lt_prog_compiler_pic='-pic'
7297 lt_prog_compiler_static='-Bstatic'
7301 lt_prog_compiler_can_build_shared=no
7306 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7307 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7310 # Check to make sure the PIC flag actually works.
7312 if test -n "$lt_prog_compiler_pic"; then
7314 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7315 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7316 if test "${lt_prog_compiler_pic_works+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 lt_prog_compiler_pic_works=no
7320 ac_outfile=conftest.$ac_objext
7321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7322 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7323 # Insert the option either (1) after the last *FLAGS variable, or
7324 # (2) before a word containing "conftest.", or (3) at the end.
7325 # Note that $ac_compile itself does not contain backslashes and begins
7326 # with a dollar sign (not a hyphen), so the echo should work correctly.
7327 # The option is referenced via a variable to avoid confusing sed.
7328 lt_compile=`echo "$ac_compile" | $SED \
7329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7331 -e 's:$: $lt_compiler_flag:'`
7332 (eval echo "\"\$as_me:7332: $lt_compile\"" >&5)
7333 (eval "$lt_compile" 2>conftest.err)
7335 cat conftest.err >&5
7336 echo "$as_me:7336: \$? = $ac_status" >&5
7337 if (exit $ac_status) && test -s "$ac_outfile"; then
7338 # The compiler can only warn and ignore the option if not recognized
7339 # So say no if there are warnings other than the usual output.
7340 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7343 lt_prog_compiler_pic_works=yes
7349 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7350 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7352 if test x"$lt_prog_compiler_pic_works" = xyes; then
7353 case $lt_prog_compiler_pic in
7355 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7358 lt_prog_compiler_pic=
7359 lt_prog_compiler_can_build_shared=no
7364 # For platforms which do not support PIC, -DPIC is meaningless:
7366 lt_prog_compiler_pic=
7369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7374 # Check to make sure the static flag actually works.
7376 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7377 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7378 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7379 if test "${lt_prog_compiler_static_works+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 lt_prog_compiler_static_works=no
7383 save_LDFLAGS="$LDFLAGS"
7384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7387 # The linker can only warn and ignore the option if not recognized
7388 # So say no if there are warnings
7389 if test -s conftest.err; then
7390 # Append any errors to the config.log.
7391 cat conftest.err 1>&5
7392 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7394 if diff conftest.exp conftest.er2 >/dev/null; then
7395 lt_prog_compiler_static_works=yes
7398 lt_prog_compiler_static_works=yes
7402 LDFLAGS="$save_LDFLAGS"
7405 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7406 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7408 if test x"$lt_prog_compiler_static_works" = xyes; then
7411 lt_prog_compiler_static=
7415 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7416 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7417 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 lt_cv_prog_compiler_c_o=no
7421 $rm -r conftest 2>/dev/null
7425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7427 lt_compiler_flag="-o out/conftest2.$ac_objext"
7428 # Insert the option either (1) after the last *FLAGS variable, or
7429 # (2) before a word containing "conftest.", or (3) at the end.
7430 # Note that $ac_compile itself does not contain backslashes and begins
7431 # with a dollar sign (not a hyphen), so the echo should work correctly.
7432 lt_compile=`echo "$ac_compile" | $SED \
7433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7435 -e 's:$: $lt_compiler_flag:'`
7436 (eval echo "\"\$as_me:7436: $lt_compile\"" >&5)
7437 (eval "$lt_compile" 2>out/conftest.err)
7439 cat out/conftest.err >&5
7440 echo "$as_me:7440: \$? = $ac_status" >&5
7441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7443 # The compiler can only warn and ignore the option if not recognized
7444 # So say no if there are warnings
7445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7448 lt_cv_prog_compiler_c_o=yes
7453 # SGI C++ compiler will create directory out/ii_files/ for
7454 # template instantiation
7455 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7456 $rm out/* && rmdir out
7462 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7463 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7466 hard_links="nottested"
7467 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7468 # do not overwrite the value of need_locks provided by the user
7469 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7470 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7475 ln conftest.a conftest.b 2>&5 || hard_links=no
7476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7477 { echo "$as_me:$LINENO: result: $hard_links" >&5
7478 echo "${ECHO_T}$hard_links" >&6; }
7479 if test "$hard_links" = no; then
7480 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7481 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7488 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7489 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7492 allow_undefined_flag=
7493 enable_shared_with_static_runtimes=no
7495 archive_expsym_cmds=
7496 old_archive_From_new_cmds=
7497 old_archive_from_expsyms_cmds=
7498 export_dynamic_flag_spec=
7499 whole_archive_flag_spec=
7500 thread_safe_flag_spec=
7501 hardcode_libdir_flag_spec=
7502 hardcode_libdir_flag_spec_ld=
7503 hardcode_libdir_separator=
7506 hardcode_shlibpath_var=unsupported
7507 link_all_deplibs=unknown
7508 hardcode_automatic=no
7511 always_export_symbols=no
7512 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7513 # include_expsyms should be a list of space-separated symbols to be *always*
7514 # included in the symbol list
7516 # exclude_expsyms can be an extended regexp of symbols to exclude
7517 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7518 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7519 # as well as any symbol that contains `d'.
7520 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7521 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7522 # platforms (ab)use it in PIC code, but their linkers get confused if
7523 # the symbol is explicitly referenced. Since portable code cannot
7524 # rely on this symbol name, it's probably fine to never include it in
7525 # preloaded symbol tables.
7526 extract_expsyms_cmds=
7527 # Just being paranoid about ensuring that cc_basename is set.
7528 for cc_temp in $compiler""; do
7530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7539 cygwin* | mingw* | pw32*)
7540 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7541 # When not using gcc, we currently assume that we are using
7542 # Microsoft Visual C++.
7543 if test "$GCC" != yes; then
7548 # we just hope/assume this is gcc and not c89 (= MSVC++)
7557 if test "$with_gnu_ld" = yes; then
7558 # If archive_cmds runs LD, not CC, wlarc should be empty
7561 # Set some defaults for GNU ld with shared library support. These
7562 # are reset later if shared libraries are not supported. Putting them
7563 # here allows them to be overridden if necessary.
7564 runpath_var=LD_RUN_PATH
7565 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7566 export_dynamic_flag_spec='${wl}--export-dynamic'
7567 # ancient GNU ld didn't support --whole-archive et. al.
7568 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7569 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7571 whole_archive_flag_spec=
7573 supports_anon_versioning=no
7574 case `$LD -v 2>/dev/null` in
7575 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7576 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7577 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7578 *\ 2.11.*) ;; # other 2.11 versions
7579 *) supports_anon_versioning=yes ;;
7582 # See if GNU ld supports shared libraries.
7584 aix3* | aix4* | aix5*)
7585 # On AIX/PPC, the GNU linker is very broken
7586 if test "$host_cpu" != ia64; then
7590 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7591 *** to be unable to reliably create shared libraries on AIX.
7592 *** Therefore, libtool is disabling shared libraries support. If you
7593 *** really care for shared libraries, you may want to modify your PATH
7594 *** so that a non-GNU linker is found, and then restart.
7601 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)'
7602 hardcode_libdir_flag_spec='-L$libdir'
7603 hardcode_minus_L=yes
7605 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7606 # that the semantics of dynamic libraries on AmigaOS, at least up
7607 # to version 4, is to share data among multiple programs linked
7608 # with the same dynamic library. Since this doesn't match the
7609 # behavior of shared libraries on other platforms, we can't use
7615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7616 allow_undefined_flag=unsupported
7617 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7618 # support --undefined. This deserves some investigation. FIXME
7619 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7625 cygwin* | mingw* | pw32*)
7626 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7627 # as there is no search path for DLLs.
7628 hardcode_libdir_flag_spec='-L$libdir'
7629 allow_undefined_flag=unsupported
7630 always_export_symbols=no
7631 enable_shared_with_static_runtimes=yes
7632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7634 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7636 # If the export-symbols file already is a .def file (1st line
7637 # is EXPORTS), use it as is; otherwise, prepend...
7638 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7639 cp $export_symbols $output_objdir/$soname.def;
7641 echo EXPORTS > $output_objdir/$soname.def;
7642 cat $export_symbols >> $output_objdir/$soname.def;
7644 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7652 hardcode_shlibpath_var=no
7653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7654 export_dynamic_flag_spec='${wl}-E'
7655 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7656 # Instead, shared libraries are loaded at an image base (0x10000000 by
7657 # default) and relocated if they conflict, which is a slow very memory
7658 # consuming and fragmenting process. To avoid this, we pick a random,
7659 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7660 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7662 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'
7665 gnu* | linux* | k*bsd*-gnu)
7666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7668 case $cc_basename,$host_cpu in
7669 pgcc*) # Portland Group C compiler
7670 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'
7671 tmp_addflag=' $pic_flag'
7673 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7674 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'
7675 tmp_addflag=' $pic_flag -Mnomain' ;;
7676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7677 tmp_addflag=' -i_dynamic' ;;
7678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7679 tmp_addflag=' -i_dynamic -nofor_main' ;;
7680 ifc* | ifort*) # Intel Fortran compiler
7681 tmp_addflag=' -nofor_main' ;;
7683 case `$CC -V 2>&1 | sed 5q` in
7684 *Sun\ C*) # Sun C 5.9
7685 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'
7686 tmp_sharedflag='-G' ;;
7687 *Sun\ F*) # Sun Fortran 8.3
7688 tmp_sharedflag='-G' ;;
7690 tmp_sharedflag='-shared' ;;
7692 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7694 if test $supports_anon_versioning = yes; then
7695 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7697 $echo "local: *; };" >> $output_objdir/$libname.ver~
7698 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7707 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7716 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7721 *** create shared libraries on Solaris systems. Therefore, libtool
7722 *** is disabling shared libraries support. We urge you to upgrade GNU
7723 *** binutils to release 2.9.1 or newer. Another option is to modify
7724 *** your PATH or compiler configuration so that the native linker is
7725 *** used, and then restart.
7728 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7737 case `$LD -v 2>&1` in
7738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7743 *** reliably create shared libraries on SCO systems. Therefore, libtool
7744 *** is disabling shared libraries support. We urge you to upgrade GNU
7745 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7746 *** your PATH or compiler configuration so that the native linker is
7747 *** used, and then restart.
7752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7753 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7764 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7767 hardcode_shlibpath_var=no
7771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7780 if test "$ld_shlibs" = no; then
7782 hardcode_libdir_flag_spec=
7783 export_dynamic_flag_spec=
7784 whole_archive_flag_spec=
7787 # PORTME fill in a description of your system's linker (not GNU ld)
7790 allow_undefined_flag=unsupported
7791 always_export_symbols=yes
7792 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'
7793 # Note: this linker hardcodes the directories in LIBPATH if there
7794 # are no directories specified by -L.
7795 hardcode_minus_L=yes
7796 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7797 # Neither direct hardcoding nor static linking is supported with a
7799 hardcode_direct=unsupported
7804 if test "$host_cpu" = ia64; then
7805 # On IA64, the linker does run time linking by default, so we don't
7806 # have to do anything special.
7807 aix_use_runtimelinking=no
7808 exp_sym_flag='-Bexport'
7811 # If we're using GNU nm, then we don't want the "-C" option.
7812 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7813 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7814 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'
7816 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'
7818 aix_use_runtimelinking=no
7820 # Test if we are trying to use run time linking or normal
7821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7822 # need to do runtime linking.
7823 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7824 for ld_flag in $LDFLAGS; do
7825 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7826 aix_use_runtimelinking=yes
7833 exp_sym_flag='-bexport'
7834 no_entry_flag='-bnoentry'
7837 # When large executables or shared objects are built, AIX ld can
7838 # have problems creating the table of contents. If linking a library
7839 # or program results in "error TOC overflow" add -mminimal-toc to
7840 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7841 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7845 hardcode_libdir_separator=':'
7846 link_all_deplibs=yes
7848 if test "$GCC" = yes; then
7849 case $host_os in aix4.[012]|aix4.[012].*)
7850 # We only want to do this on AIX 4.2 and lower, the check
7851 # below for broken collect2 doesn't work under 4.3+
7852 collect2name=`${CC} -print-prog-name=collect2`
7853 if test -f "$collect2name" && \
7854 strings "$collect2name" | grep resolve_lib_name >/dev/null
7856 # We have reworked collect2
7859 # We have old collect2
7860 hardcode_direct=unsupported
7861 # It fails to find uninstalled libraries when the uninstalled
7862 # path is not listed in the libpath. Setting hardcode_minus_L
7863 # to unsupported forces relinking
7864 hardcode_minus_L=yes
7865 hardcode_libdir_flag_spec='-L$libdir'
7866 hardcode_libdir_separator=
7870 shared_flag='-shared'
7871 if test "$aix_use_runtimelinking" = yes; then
7872 shared_flag="$shared_flag "'${wl}-G'
7876 if test "$host_cpu" = ia64; then
7877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7878 # chokes on -Wl,-G. The following line is correct:
7881 if test "$aix_use_runtimelinking" = yes; then
7882 shared_flag='${wl}-G'
7884 shared_flag='${wl}-bM:SRE'
7889 # It seems that -bexpall does not export symbols beginning with
7890 # underscore (_), so it is better to generate a list of symbols to export.
7891 always_export_symbols=yes
7892 if test "$aix_use_runtimelinking" = yes; then
7893 # Warning - without using the other runtime loading flags (-brtl),
7894 # -berok will link without error, but may produce a broken library.
7895 allow_undefined_flag='-berok'
7896 # Determine the default libpath from the value encoded in an empty executable.
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (ac_try="$ac_link"
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_link") 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } && {
7926 test -z "$ac_c_werror_flag" ||
7927 test ! -s conftest.err
7928 } && test -s conftest$ac_exeext &&
7929 $as_test_x conftest$ac_exeext; then
7931 lt_aix_libpath_sed='
7932 /Import File Strings/,/^$/ {
7938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7939 # Check for a 64-bit object if we didn't find anything.
7940 if test -z "$aix_libpath"; then
7941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7951 conftest$ac_exeext conftest.$ac_ext
7952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7954 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7955 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"
7957 if test "$host_cpu" = ia64; then
7958 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7959 allow_undefined_flag="-z nodefs"
7960 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"
7962 # Determine the default libpath from the value encoded in an empty executable.
7963 cat >conftest.$ac_ext <<_ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7978 rm -f conftest.$ac_objext conftest$ac_exeext
7979 if { (ac_try="$ac_link"
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_link") 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest$ac_exeext &&
7995 $as_test_x conftest$ac_exeext; then
7997 lt_aix_libpath_sed='
7998 /Import File Strings/,/^$/ {
8004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8005 # Check for a 64-bit object if we didn't find anything.
8006 if test -z "$aix_libpath"; then
8007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8017 conftest$ac_exeext conftest.$ac_ext
8018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8020 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8021 # Warning - without using the other run time loading flags,
8022 # -berok will link without error, but may produce a broken library.
8023 no_undefined_flag=' ${wl}-bernotok'
8024 allow_undefined_flag=' ${wl}-berok'
8025 # Exported symbols can be pulled into shared objects from archives
8026 whole_archive_flag_spec='$convenience'
8027 archive_cmds_need_lc=yes
8028 # This is similar to how AIX traditionally builds its shared libraries.
8029 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'
8035 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)'
8036 hardcode_libdir_flag_spec='-L$libdir'
8037 hardcode_minus_L=yes
8038 # see comment about different semantics on the GNU ld section
8043 export_dynamic_flag_spec=-rdynamic
8046 cygwin* | mingw* | pw32*)
8047 # When not using gcc, we currently assume that we are using
8048 # Microsoft Visual C++.
8049 # hardcode_libdir_flag_spec is actually meaningless, as there is
8050 # no search path for DLLs.
8051 hardcode_libdir_flag_spec=' '
8052 allow_undefined_flag=unsupported
8053 # Tell ltmain to make .lib files, not .a files.
8055 # Tell ltmain to make .dll files, not .so files.
8057 # FIXME: Setting linknames here is a bad hack.
8058 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8059 # The linker will automatically build a .lib file if we build a DLL.
8060 old_archive_From_new_cmds='true'
8061 # FIXME: Should let the user specify the lib program.
8062 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8063 fix_srcfile_path='`cygpath -w "$srcfile"`'
8064 enable_shared_with_static_runtimes=yes
8067 darwin* | rhapsody*)
8069 rhapsody* | darwin1.[012])
8070 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8073 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8074 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8076 case ${MACOSX_DEPLOYMENT_TARGET} in
8078 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8081 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8087 archive_cmds_need_lc=no
8089 hardcode_automatic=yes
8090 hardcode_shlibpath_var=unsupported
8091 whole_archive_flag_spec=''
8092 link_all_deplibs=yes
8093 if test "$GCC" = yes ; then
8094 output_verbose_link_cmd='echo'
8095 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8096 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8097 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8098 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}'
8099 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}'
8101 case $cc_basename in
8103 output_verbose_link_cmd='echo'
8104 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8105 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8107 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}'
8108 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}'
8118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8119 hardcode_libdir_flag_spec='-L$libdir'
8120 hardcode_shlibpath_var=no
8127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8128 # support. Future versions do this automatically, but an explicit c++rt0.o
8129 # does not break anything, and helps significantly (at the cost of a little
8132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8133 hardcode_libdir_flag_spec='-R$libdir'
8135 hardcode_shlibpath_var=no
8138 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8142 hardcode_minus_L=yes
8143 hardcode_shlibpath_var=no
8146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8147 freebsd* | dragonfly*)
8148 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8149 hardcode_libdir_flag_spec='-R$libdir'
8151 hardcode_shlibpath_var=no
8155 if test "$GCC" = yes; then
8156 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'
8158 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'
8160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8161 hardcode_libdir_separator=:
8164 # hardcode_minus_L: Not really in the search PATH,
8165 # but as the default location of the library.
8166 hardcode_minus_L=yes
8167 export_dynamic_flag_spec='${wl}-E'
8171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8174 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8176 if test "$with_gnu_ld" = no; then
8177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8178 hardcode_libdir_separator=:
8181 export_dynamic_flag_spec='${wl}-E'
8183 # hardcode_minus_L: Not really in the search PATH,
8184 # but as the default location of the library.
8185 hardcode_minus_L=yes
8190 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8193 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8196 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8205 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8208 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8211 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8215 if test "$with_gnu_ld" = no; then
8216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8217 hardcode_libdir_separator=:
8221 hardcode_libdir_flag_spec_ld='+b $libdir'
8223 hardcode_shlibpath_var=no
8227 export_dynamic_flag_spec='${wl}-E'
8229 # hardcode_minus_L: Not really in the search PATH,
8230 # but as the default location of the library.
8231 hardcode_minus_L=yes
8237 irix5* | irix6* | nonstopux*)
8238 if test "$GCC" = yes; then
8239 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'
8241 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'
8242 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8245 hardcode_libdir_separator=:
8246 link_all_deplibs=yes
8250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8255 hardcode_libdir_flag_spec='-R$libdir'
8257 hardcode_shlibpath_var=no
8261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8264 hardcode_libdir_separator=:
8265 hardcode_shlibpath_var=no
8269 if test -f /usr/libexec/ld.so; then
8271 hardcode_shlibpath_var=no
8272 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8273 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8274 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8276 export_dynamic_flag_spec='${wl}-E'
8279 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8281 hardcode_libdir_flag_spec='-R$libdir'
8284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8295 hardcode_libdir_flag_spec='-L$libdir'
8296 hardcode_minus_L=yes
8297 allow_undefined_flag=unsupported
8298 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'
8299 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8303 if test "$GCC" = yes; then
8304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8305 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'
8307 allow_undefined_flag=' -expect_unresolved \*'
8308 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'
8310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311 hardcode_libdir_separator=:
8314 osf4* | osf5*) # as osf3* with the addition of -msym flag
8315 if test "$GCC" = yes; then
8316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8317 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'
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320 allow_undefined_flag=' -expect_unresolved \*'
8321 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'
8322 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8323 $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'
8325 # Both c and cxx compiler support -rpath directly
8326 hardcode_libdir_flag_spec='-rpath $libdir'
8328 hardcode_libdir_separator=:
8332 no_undefined_flag=' -z text'
8333 if test "$GCC" = yes; then
8335 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8336 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8337 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8340 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8344 hardcode_libdir_flag_spec='-R$libdir'
8345 hardcode_shlibpath_var=no
8347 solaris2.[0-5] | solaris2.[0-5].*) ;;
8349 # The compiler driver will combine and reorder linker options,
8350 # but understands `-z linker_flag'. GCC discards it without `$wl',
8351 # but is careful enough not to reorder.
8352 # Supported since Solaris 2.6 (maybe 2.5.1?)
8353 if test "$GCC" = yes; then
8354 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8356 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8360 link_all_deplibs=yes
8364 if test "x$host_vendor" = xsequent; then
8365 # Use $CC to link under sequent, because it throws in some extra .o
8366 # files that make .init and .fini sections work.
8367 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8369 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8371 hardcode_libdir_flag_spec='-L$libdir'
8373 hardcode_minus_L=yes
8374 hardcode_shlibpath_var=no
8378 case $host_vendor in
8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_direct=yes # is this really true???
8384 ## LD is ld it makes a PLAMLIB
8385 ## CC just makes a GrossModule.
8386 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8387 reload_cmds='$CC -r -o $output$reload_objs'
8391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8392 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8395 runpath_var='LD_RUN_PATH'
8396 hardcode_shlibpath_var=no
8400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401 hardcode_shlibpath_var=no
8402 export_dynamic_flag_spec='-Bexport'
8406 if test -d /usr/nec; then
8407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_shlibpath_var=no
8409 runpath_var=LD_RUN_PATH
8410 hardcode_runpath_var=yes
8415 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8416 no_undefined_flag='${wl}-z,text'
8417 archive_cmds_need_lc=no
8418 hardcode_shlibpath_var=no
8419 runpath_var='LD_RUN_PATH'
8421 if test "$GCC" = yes; then
8422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430 sysv5* | sco3.2v5* | sco5v6*)
8431 # Note: We can NOT use -z defs as we might desire, because we do not
8432 # link with -lc, and that would cause any symbols used from libc to
8433 # always be unresolved, which means just about no library would
8434 # ever link correctly. If we're not using GNU ld we use -z text
8435 # though, which does catch some bad symbols but isn't as heavy-handed
8437 no_undefined_flag='${wl}-z,text'
8438 allow_undefined_flag='${wl}-z,nodefs'
8439 archive_cmds_need_lc=no
8440 hardcode_shlibpath_var=no
8441 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8442 hardcode_libdir_separator=':'
8443 link_all_deplibs=yes
8444 export_dynamic_flag_spec='${wl}-Bexport'
8445 runpath_var='LD_RUN_PATH'
8447 if test "$GCC" = yes; then
8448 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8452 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_shlibpath_var=no
8468 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8469 echo "${ECHO_T}$ld_shlibs" >&6; }
8470 test "$ld_shlibs" = no && can_build_shared=no
8473 # Do we need to explicitly link libc?
8475 case "x$archive_cmds_need_lc" in
8477 # Assume -lc should be added
8478 archive_cmds_need_lc=yes
8480 if test "$enable_shared" = yes && test "$GCC" = yes; then
8481 case $archive_cmds in
8483 # FIXME: we may have to deal with multi-command sequences.
8486 # Test whether the compiler implicitly links with -lc since on some
8487 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8488 # to ld, don't add -lc before -lgcc.
8489 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8490 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } 2>conftest.err; then
8501 libobjs=conftest.$ac_objext
8503 wl=$lt_prog_compiler_wl
8504 pic_flag=$lt_prog_compiler_pic
8510 lt_save_allow_undefined_flag=$allow_undefined_flag
8511 allow_undefined_flag=
8512 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8513 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }
8518 archive_cmds_need_lc=no
8520 archive_cmds_need_lc=yes
8522 allow_undefined_flag=$lt_save_allow_undefined_flag
8524 cat conftest.err 1>&5
8527 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8528 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8535 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8536 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8538 libname_spec='lib$name'
8546 shlibpath_overrides_runpath=unknown
8548 dynamic_linker="$host_os ld.so"
8549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8551 if test "$GCC" = yes; then
8553 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8554 *) lt_awk_arg="/^libraries:/" ;;
8556 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8557 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8558 # if the path contains ";" then we assume it to be the separator
8559 # otherwise default to the standard path separator (i.e. ":") - it is
8560 # assumed that no part of a normal pathname contains ";" but that should
8561 # okay in the real world where ";" in dirpaths is itself problematic.
8562 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8564 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8566 # Ok, now we have the path, separated by spaces, we can step through it
8567 # and add multilib dir if necessary.
8568 lt_tmp_lt_search_path_spec=
8569 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8570 for lt_sys_path in $lt_search_path_spec; do
8571 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8574 test -d "$lt_sys_path" && \
8575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8578 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8579 BEGIN {RS=" "; FS="/|\n";} {
8582 for (lt_i = NF; lt_i > 0; lt_i--) {
8583 if ($lt_i != "" && $lt_i != ".") {
8584 if ($lt_i == "..") {
8587 if (lt_count == 0) {
8588 lt_foo="/" $lt_i lt_foo;
8595 if (lt_foo != "") { lt_freq[lt_foo]++; }
8596 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8598 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8602 need_lib_prefix=unknown
8603 hardcode_into_libs=no
8605 # when you set need_version to no, make sure it does not cause -set_version
8606 # flags to be left without arguments
8607 need_version=unknown
8612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8613 shlibpath_var=LIBPATH
8615 # AIX 3 has no versioning support, so we append a major version to the name.
8616 soname_spec='${libname}${release}${shared_ext}$major'
8623 hardcode_into_libs=yes
8624 if test "$host_cpu" = ia64; then
8625 # AIX 5 supports IA64
8626 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8627 shlibpath_var=LD_LIBRARY_PATH
8629 # With GCC up to 2.95.x, collect2 would create an import file
8630 # for dependence libraries. The import file would start with
8631 # the line `#! .'. This would cause the generated library to
8632 # depend on `.', always an invalid library. This was fixed in
8633 # development snapshots of GCC prior to 3.0.
8635 aix4 | aix4.[01] | aix4.[01].*)
8636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8638 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8645 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8646 # soname into executable. Probably we can add versioning support to
8647 # collect2, so additional links can be useful in future.
8648 if test "$aix_use_runtimelinking" = yes; then
8649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8650 # instead of lib<name>.a to let people know that these are not
8651 # typical AIX shared libraries.
8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8654 # We preserve .a as extension for shared libraries through AIX4.2
8655 # and later when we are not doing run time linking.
8656 library_names_spec='${libname}${release}.a $libname.a'
8657 soname_spec='${libname}${release}${shared_ext}$major'
8659 shlibpath_var=LIBPATH
8664 library_names_spec='$libname.ixlibrary $libname.a'
8665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8666 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'
8670 library_names_spec='${libname}${shared_ext}'
8671 dynamic_linker="$host_os ld.so"
8672 shlibpath_var=LIBRARY_PATH
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679 soname_spec='${libname}${release}${shared_ext}$major'
8680 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8683 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8684 # the default ld.so.conf also contains /usr/contrib/lib and
8685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8686 # libtool to hard-code these into programs
8689 cygwin* | mingw* | pw32*)
8690 version_type=windows
8695 case $GCC,$host_os in
8696 yes,cygwin* | yes,mingw* | yes,pw32*)
8697 library_names_spec='$libname.dll.a'
8698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8699 postinstall_cmds='base_file=`basename \${file}`~
8700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8701 dldir=$destdir/`dirname \$dlpath`~
8702 test -d \$dldir || mkdir -p \$dldir~
8703 $install_prog $dir/$dlname \$dldir/$dlname~
8704 chmod a+x \$dldir/$dlname'
8705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8706 dlpath=$dir/\$dldll~
8708 shlibpath_overrides_runpath=yes
8712 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8713 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8714 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8717 # MinGW DLLs use traditional 'lib' prefix
8718 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8720 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8721 # It is most probably a Windows format PATH printed by
8722 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8723 # path with ; separators, and with drive letters. We can handle the
8724 # drive letters (cygwin fileutils understands them), so leave them,
8725 # especially as we might pass files found there to a mingw objdump,
8726 # which wouldn't understand a cygwinified path. Ahh.
8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8733 # pw32 DLLs use 'pw' prefix rather than 'lib'
8734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8740 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8743 dynamic_linker='Win32 ld.exe'
8744 # FIXME: first we should search . and the directory the executable is in
8748 darwin* | rhapsody*)
8749 dynamic_linker="$host_os dyld"
8753 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8754 soname_spec='${libname}${release}${major}$shared_ext'
8755 shlibpath_overrides_runpath=yes
8756 shlibpath_var=DYLD_LIBRARY_PATH
8757 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8759 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 shlibpath_var=LD_LIBRARY_PATH
8776 freebsd* | dragonfly*)
8777 # DragonFly does not have aout. When/if they implement a new
8778 # versioning mechanism, adjust this.
8779 if test -x /usr/bin/objformat; then
8780 objformat=`/usr/bin/objformat`
8783 freebsd[123]*) objformat=aout ;;
8787 version_type=freebsd-$objformat
8788 case $version_type in
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8799 shlibpath_var=LD_LIBRARY_PATH
8802 shlibpath_overrides_runpath=yes
8804 freebsd3.[01]* | freebsdelf3.[01]*)
8805 shlibpath_overrides_runpath=yes
8806 hardcode_into_libs=yes
8808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8810 shlibpath_overrides_runpath=no
8811 hardcode_into_libs=yes
8813 *) # from 4.6 on, and DragonFly
8814 shlibpath_overrides_runpath=yes
8815 hardcode_into_libs=yes
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 hardcode_into_libs=yes
8830 hpux9* | hpux10* | hpux11*)
8831 # Give a soname corresponding to the major version so that dld.sl refuses to
8832 # link against other versions.
8839 hardcode_into_libs=yes
8840 dynamic_linker="$host_os dld.so"
8841 shlibpath_var=LD_LIBRARY_PATH
8842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 if test "X$HPUX_IA64_MODE" = X32; then
8846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8854 hardcode_into_libs=yes
8855 dynamic_linker="$host_os dld.sl"
8856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8865 dynamic_linker="$host_os dld.sl"
8866 shlibpath_var=SHLIB_PATH
8867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869 soname_spec='${libname}${release}${shared_ext}$major'
8872 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8873 postinstall_cmds='chmod 555 $lib'
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=no
8885 hardcode_into_libs=yes
8888 irix5* | irix6* | nonstopux*)
8890 nonstopux*) version_type=nonstopux ;;
8892 if test "$lt_cv_prog_gnu_ld" = yes; then
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8903 irix5* | nonstopux*)
8907 case $LD in # libtool.m4 will add one of these switches to LD
8908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8909 libsuff= shlibsuff= libmagic=32-bit;;
8910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8911 libsuff=32 shlibsuff=N32 libmagic=N32;;
8912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8913 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8914 *) libsuff= shlibsuff= libmagic=never-match;;
8918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8919 shlibpath_overrides_runpath=no
8920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8922 hardcode_into_libs=yes
8925 # No shared lib support for Linux oldld, aout, or coff.
8926 linux*oldld* | linux*aout* | linux*coff*)
8930 # This must be Linux ELF.
8931 linux* | k*bsd*-gnu)
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=no
8940 # This implies no fast_install, which is unacceptable.
8941 # Some rework will be needed to allow for fast_install
8942 # before this can be enabled.
8943 hardcode_into_libs=yes
8945 # find out which ABI we are using
8948 x86_64*|s390x*|powerpc64*)
8949 echo '#line 8949 "configure"' > conftest.$ac_ext
8950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8951 (eval $ac_compile) 2>&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; then
8955 case `/usr/bin/file conftest.$ac_objext` in
8958 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8966 # Append ld.so.conf contents to the search path
8967 if test -f /etc/ld.so.conf; then
8968 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' ' '`
8969 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8972 # We used to test for /lib/ld.so.1 and disable shared libraries on
8973 # powerpc, because MkLinux only supported shared libraries with the
8974 # GNU dynamic linker. Since this was broken with cross compilers,
8975 # most powerpc-linux boxes support dynamic linking these days and
8976 # people can always --disable-shared, the test was removed, and we
8977 # assume the GNU/Linux dynamic linker is in use.
8978 dynamic_linker='GNU/Linux ld.so'
8985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8988 dynamic_linker='NetBSD (a.out) ld.so'
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 dynamic_linker='NetBSD ld.elf_so'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=yes
8996 hardcode_into_libs=yes
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=yes
9018 sys_lib_dlsearch_path_spec="/usr/lib"
9020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9023 *) need_version=no ;;
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9030 openbsd2.[89] | openbsd2.[89].*)
9031 shlibpath_overrides_runpath=no
9034 shlibpath_overrides_runpath=yes
9038 shlibpath_overrides_runpath=yes
9043 libname_spec='$name'
9046 library_names_spec='$libname${shared_ext} $libname.a'
9047 dynamic_linker='OS/2 ld.exe'
9048 shlibpath_var=LIBPATH
9051 osf3* | osf4* | osf5*)
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 hardcode_into_libs=yes
9075 # ldd complains unless libraries are executable
9076 postinstall_cmds='chmod +x $lib'
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9085 if test "$with_gnu_ld" = yes; then
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 case $host_vendor in
9098 shlibpath_overrides_runpath=no
9100 export_dynamic_flag_spec='${wl}-Blargedynsym'
9101 runpath_var=LD_RUN_PATH
9109 shlibpath_overrides_runpath=no
9110 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9116 if test -d /usr/nec ;then
9118 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9119 soname_spec='$libname${shared_ext}.$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9125 version_type=freebsd-elf
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 hardcode_into_libs=yes
9132 if test "$with_gnu_ld" = yes; then
9133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9134 shlibpath_overrides_runpath=no
9136 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9137 shlibpath_overrides_runpath=yes
9140 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9144 sys_lib_dlsearch_path_spec='/usr/lib'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9158 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9159 echo "${ECHO_T}$dynamic_linker" >&6; }
9160 test "$dynamic_linker" = no && can_build_shared=no
9162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9163 if test "$GCC" = yes; then
9164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9167 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9170 if test -n "$hardcode_libdir_flag_spec" || \
9171 test -n "$runpath_var" || \
9172 test "X$hardcode_automatic" = "Xyes" ; then
9174 # We can hardcode non-existant directories.
9175 if test "$hardcode_direct" != no &&
9176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9177 # have to relink, otherwise we might link with an installed library
9178 # when we should be linking with a yet-to-be-installed one
9179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9180 test "$hardcode_minus_L" != no; then
9181 # Linking always hardcodes the temporary library directory.
9182 hardcode_action=relink
9184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9185 hardcode_action=immediate
9188 # We cannot hardcode anything, or else we can only hardcode existing
9190 hardcode_action=unsupported
9192 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9193 echo "${ECHO_T}$hardcode_action" >&6; }
9195 if test "$hardcode_action" = relink; then
9196 # Fast installation is not supported
9197 enable_fast_install=no
9198 elif test "$shlibpath_overrides_runpath" = yes ||
9199 test "$enable_shared" = no; then
9200 # Fast installation is not necessary
9201 enable_fast_install=needless
9206 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9207 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9208 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9211 { echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6; }
9214 # FIXME - insert some real tests, host_os isn't really good enough
9217 if test -n "$STRIP" ; then
9218 striplib="$STRIP -x"
9219 old_striplib="$STRIP -S"
9220 { echo "$as_me:$LINENO: result: yes" >&5
9221 echo "${ECHO_T}yes" >&6; }
9223 { echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6; }
9228 { echo "$as_me:$LINENO: result: no" >&5
9229 echo "${ECHO_T}no" >&6; }
9234 if test "x$enable_dlopen" != xyes; then
9235 enable_dlopen=unknown
9236 enable_dlopen_self=unknown
9237 enable_dlopen_self_static=unknown
9244 lt_cv_dlopen="load_add_on"
9246 lt_cv_dlopen_self=yes
9250 lt_cv_dlopen="LoadLibrary"
9255 lt_cv_dlopen="dlopen"
9260 # if libdl is installed we need to link against it
9261 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9262 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 ac_check_lib_save_LIBS=$LIBS
9268 cat >conftest.$ac_ext <<_ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (ac_try="$ac_link"
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_link") 2>conftest.er1
9299 grep -v '^ *+' conftest.er1 >conftest.err
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest$ac_exeext &&
9307 $as_test_x conftest$ac_exeext; then
9308 ac_cv_lib_dl_dlopen=yes
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_cv_lib_dl_dlopen=no
9316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9320 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9321 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9322 if test $ac_cv_lib_dl_dlopen = yes; then
9323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9328 lt_cv_dlopen_self=yes
9335 { echo "$as_me:$LINENO: checking for shl_load" >&5
9336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9337 if test "${ac_cv_func_shl_load+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9348 #define shl_load innocuous_shl_load
9350 /* System header to define __stub macros and hopefully few prototypes,
9351 which can conflict with char shl_load (); below.
9352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353 <limits.h> exists even on freestanding compilers. */
9356 # include <limits.h>
9358 # include <assert.h>
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9370 /* The GNU C library defines this for functions which it implements
9371 to always fail with ENOSYS. Some functions are actually named
9372 something starting with __ and the normal name is an alias. */
9373 #if defined __stub_shl_load || defined __stub___shl_load
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (ac_try="$ac_link"
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_link") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest$ac_exeext &&
9402 $as_test_x conftest$ac_exeext; then
9403 ac_cv_func_shl_load=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_func_shl_load=no
9411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412 conftest$ac_exeext conftest.$ac_ext
9414 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9415 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9416 if test $ac_cv_func_shl_load = yes; then
9417 lt_cv_dlopen="shl_load"
9419 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9420 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9421 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 ac_check_lib_save_LIBS=$LIBS
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>conftest.er1
9457 grep -v '^ *+' conftest.er1 >conftest.err
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && {
9462 test -z "$ac_c_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest$ac_exeext &&
9465 $as_test_x conftest$ac_exeext; then
9466 ac_cv_lib_dld_shl_load=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_cv_lib_dld_shl_load=no
9474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9480 if test $ac_cv_lib_dld_shl_load = yes; then
9481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9483 { echo "$as_me:$LINENO: checking for dlopen" >&5
9484 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_dlopen+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 cat >conftest.$ac_ext <<_ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496 #define dlopen innocuous_dlopen
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char dlopen (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9504 # include <limits.h>
9506 # include <assert.h>
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined __stub_dlopen || defined __stub___dlopen
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest$ac_exeext &&
9550 $as_test_x conftest$ac_exeext; then
9551 ac_cv_func_dlopen=yes
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_func_dlopen=no
9559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560 conftest$ac_exeext conftest.$ac_ext
9562 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9564 if test $ac_cv_func_dlopen = yes; then
9565 lt_cv_dlopen="dlopen"
9567 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 ac_check_lib_save_LIBS=$LIBS
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9605 grep -v '^ *+' conftest.er1 >conftest.err
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest$ac_exeext &&
9613 $as_test_x conftest$ac_exeext; then
9614 ac_cv_lib_dl_dlopen=yes
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_cv_lib_dl_dlopen=no
9622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9626 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9628 if test $ac_cv_lib_dl_dlopen = yes; then
9629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9631 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9632 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9633 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 ac_check_lib_save_LIBS=$LIBS
9638 cat >conftest.$ac_ext <<_ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9645 /* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (ac_try="$ac_link"
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_link") 2>conftest.er1
9669 grep -v '^ *+' conftest.er1 >conftest.err
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest$ac_exeext &&
9677 $as_test_x conftest$ac_exeext; then
9678 ac_cv_lib_svld_dlopen=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_lib_svld_dlopen=no
9686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9687 conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9691 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9692 if test $ac_cv_lib_svld_dlopen = yes; then
9693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9695 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9696 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9697 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 ac_check_lib_save_LIBS=$LIBS
9702 cat >conftest.$ac_ext <<_ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9709 /* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } && {
9738 test -z "$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 } && test -s conftest$ac_exeext &&
9741 $as_test_x conftest$ac_exeext; then
9742 ac_cv_lib_dld_dld_link=yes
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_cv_lib_dld_dld_link=no
9750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9755 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9756 if test $ac_cv_lib_dld_dld_link = yes; then
9757 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9778 if test "x$lt_cv_dlopen" != xno; then
9784 case $lt_cv_dlopen in
9786 save_CPPFLAGS="$CPPFLAGS"
9787 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9789 save_LDFLAGS="$LDFLAGS"
9790 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9793 LIBS="$lt_cv_dlopen_libs $LIBS"
9795 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9796 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9797 if test "${lt_cv_dlopen_self+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 if test "$cross_compiling" = yes; then :
9801 lt_cv_dlopen_self=cross
9803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9804 lt_status=$lt_dlunknown
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9806 "configure"
9807 #include "confdefs.h"
9816 # define LT_DLGLOBAL RTLD_GLOBAL
9819 # define LT_DLGLOBAL DL_GLOBAL
9821 # define LT_DLGLOBAL 0
9825 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9826 find out it does not work in some platform. */
9827 #ifndef LT_DLLAZY_OR_NOW
9829 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9832 # define LT_DLLAZY_OR_NOW DL_LAZY
9835 # define LT_DLLAZY_OR_NOW RTLD_NOW
9838 # define LT_DLLAZY_OR_NOW DL_NOW
9840 # define LT_DLLAZY_OR_NOW 0
9848 extern "C" void exit (int);
9851 void fnord() { int i=42;}
9854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9855 int status = $lt_dlunknown;
9859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9860 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9861 /* dlclose (self); */
9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870 (eval $ac_link) 2>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9874 (./conftest; exit; ) >&5 2>/dev/null
9877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9879 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9882 # compilation failed
9883 lt_cv_dlopen_self=no
9890 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9891 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9893 if test "x$lt_cv_dlopen_self" = xyes; then
9894 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9895 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9896 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9897 if test "${lt_cv_dlopen_self_static+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 if test "$cross_compiling" = yes; then :
9901 lt_cv_dlopen_self_static=cross
9903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9904 lt_status=$lt_dlunknown
9905 cat > conftest.$ac_ext <<EOF
9906 #line 9906 "configure"
9907 #include "confdefs.h"
9916 # define LT_DLGLOBAL RTLD_GLOBAL
9919 # define LT_DLGLOBAL DL_GLOBAL
9921 # define LT_DLGLOBAL 0
9925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9926 find out it does not work in some platform. */
9927 #ifndef LT_DLLAZY_OR_NOW
9929 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9932 # define LT_DLLAZY_OR_NOW DL_LAZY
9935 # define LT_DLLAZY_OR_NOW RTLD_NOW
9938 # define LT_DLLAZY_OR_NOW DL_NOW
9940 # define LT_DLLAZY_OR_NOW 0
9948 extern "C" void exit (int);
9951 void fnord() { int i=42;}
9954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9955 int status = $lt_dlunknown;
9959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9961 /* dlclose (self); */
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9974 (./conftest; exit; ) >&5 2>/dev/null
9977 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9978 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9979 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9982 # compilation failed
9983 lt_cv_dlopen_self_static=no
9990 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9991 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9994 CPPFLAGS="$save_CPPFLAGS"
9995 LDFLAGS="$save_LDFLAGS"
10000 case $lt_cv_dlopen_self in
10001 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10002 *) enable_dlopen_self=unknown ;;
10005 case $lt_cv_dlopen_self_static in
10006 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10007 *) enable_dlopen_self_static=unknown ;;
10012 # Report which library types will actually be built
10013 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10014 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10015 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10016 echo "${ECHO_T}$can_build_shared" >&6; }
10018 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10019 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10020 test "$can_build_shared" = "no" && enable_shared=no
10022 # On AIX, shared libraries and static libraries use the same namespace, and
10023 # are all built from PIC.
10026 test "$enable_shared" = yes && enable_static=no
10027 if test -n "$RANLIB"; then
10028 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10029 postinstall_cmds='$RANLIB $lib'
10034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10035 test "$enable_shared" = yes && enable_static=no
10039 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10040 echo "${ECHO_T}$enable_shared" >&6; }
10042 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10043 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10044 # Make sure either enable_shared or enable_static is yes.
10045 test "$enable_shared" = yes || enable_static=yes
10046 { echo "$as_me:$LINENO: result: $enable_static" >&5
10047 echo "${ECHO_T}$enable_static" >&6; }
10049 # The else clause should only fire when bootstrapping the
10050 # libtool distribution, otherwise you forgot to ship ltmain.sh
10051 # with your package, and you will get complaints that there are
10052 # no rules to generate ltmain.sh.
10053 if test -f "$ltmain"; then
10054 # See if we are running on zsh, and set the options which allow our commands through
10055 # without removal of \ escapes.
10056 if test -n "${ZSH_VERSION+set}" ; then
10057 setopt NO_GLOB_SUBST
10059 # Now quote all the things that may contain metacharacters while being
10060 # careful not to overquote the AC_SUBSTed values. We take copies of the
10061 # variables and quote the copies for generation of the libtool script.
10062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10066 deplibs_check_method reload_flag reload_cmds need_locks \
10067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10068 lt_cv_sys_global_symbol_to_c_name_address \
10069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10070 old_postinstall_cmds old_postuninstall_cmds \
10074 lt_prog_compiler_wl \
10075 lt_prog_compiler_pic \
10076 lt_prog_compiler_static \
10077 lt_prog_compiler_no_builtin_flag \
10078 export_dynamic_flag_spec \
10079 thread_safe_flag_spec \
10080 whole_archive_flag_spec \
10081 enable_shared_with_static_runtimes \
10083 old_archive_from_new_cmds \
10088 compiler_lib_search_path \
10090 archive_expsym_cmds \
10092 postuninstall_cmds \
10093 old_archive_from_expsyms_cmds \
10094 allow_undefined_flag \
10095 no_undefined_flag \
10096 export_symbols_cmds \
10097 hardcode_libdir_flag_spec \
10098 hardcode_libdir_flag_spec_ld \
10099 hardcode_libdir_separator \
10100 hardcode_automatic \
10102 module_expsym_cmds \
10103 lt_cv_prog_compiler_c_o \
10106 include_expsyms; do
10109 old_archive_cmds | \
10110 old_archive_from_new_cmds | \
10112 archive_expsym_cmds | \
10114 module_expsym_cmds | \
10115 old_archive_from_expsyms_cmds | \
10116 export_symbols_cmds | \
10117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10118 postinstall_cmds | postuninstall_cmds | \
10119 old_postinstall_cmds | old_postuninstall_cmds | \
10120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10121 # Double-quote double-evaled strings.
10122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10131 *'\$0 --fallback-echo"')
10132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10136 cfgfile="${ofile}T"
10137 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10139 { echo "$as_me:$LINENO: creating $ofile" >&5
10140 echo "$as_me: creating $ofile" >&6;}
10142 cat <<__EOF__ >> "$cfgfile"
10145 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10146 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10150 # Free Software Foundation, Inc.
10152 # This file is part of GNU Libtool:
10153 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10155 # This program is free software; you can redistribute it and/or modify
10156 # it under the terms of the GNU General Public License as published by
10157 # the Free Software Foundation; either version 2 of the License, or
10158 # (at your option) any later version.
10160 # This program is distributed in the hope that it will be useful, but
10161 # WITHOUT ANY WARRANTY; without even the implied warranty of
10162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10163 # General Public License for more details.
10165 # You should have received a copy of the GNU General Public License
10166 # along with this program; if not, write to the Free Software
10167 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10169 # As a special exception to the GNU General Public License, if you
10170 # distribute this file as part of a program that contains a
10171 # configuration script generated by Autoconf, you may include it under
10172 # the same distribution terms that you use for the rest of that program.
10174 # A sed program that does not truncate output.
10177 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10178 Xsed="$SED -e 1s/^X//"
10180 # The HP-UX ksh and POSIX shell print the target directory to stdout
10181 # if CDPATH is set.
10182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10184 # The names of the tagged configurations supported by this script.
10187 # ### BEGIN LIBTOOL CONFIG
10189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10191 # Shell to use when invoking shell scripts.
10194 # Whether or not to build shared libraries.
10195 build_libtool_libs=$enable_shared
10197 # Whether or not to build static libraries.
10198 build_old_libs=$enable_static
10200 # Whether or not to add -lc for building shared libraries.
10201 build_libtool_need_lc=$archive_cmds_need_lc
10203 # Whether or not to disallow shared libs when runtime libs are static
10204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10206 # Whether or not to optimize for fast installation.
10207 fast_install=$enable_fast_install
10210 host_alias=$host_alias
10214 # The build system.
10215 build_alias=$build_alias
10219 # An echo program that does not interpret backslashes.
10224 AR_FLAGS=$lt_AR_FLAGS
10229 # LTCC compiler flags.
10230 LTCFLAGS=$lt_LTCFLAGS
10232 # A language-specific compiler.
10235 # Is the compiler the GNU C compiler?
10238 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10239 gcc_ver=\`gcc -dumpversion\`
10244 # The linker used to build libraries.
10247 # Whether we need hard or soft links.
10250 # A BSD-compatible nm program.
10253 # A symbol stripping program
10256 # Used to examine libraries when file_magic_cmd begins "file"
10257 MAGIC_CMD=$MAGIC_CMD
10259 # Used on cygwin: DLL creation program.
10262 # Used on cygwin: object dumper.
10265 # Used on cygwin: assembler.
10268 # The name of the directory that contains temporary libtool files.
10271 # How to create reloadable object files.
10272 reload_flag=$lt_reload_flag
10273 reload_cmds=$lt_reload_cmds
10275 # How to pass a linker flag through the compiler.
10276 wl=$lt_lt_prog_compiler_wl
10278 # Object file suffix (normally "o").
10279 objext="$ac_objext"
10281 # Old archive suffix (normally "a").
10284 # Shared library suffix (normally ".so").
10285 shrext_cmds='$shrext_cmds'
10287 # Executable file suffix (normally "").
10290 # Additional compiler flags for building library objects.
10291 pic_flag=$lt_lt_prog_compiler_pic
10294 # What is the maximum length of a command?
10295 max_cmd_len=$lt_cv_sys_max_cmd_len
10297 # Does compiler simultaneously support -c and -o options?
10298 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10300 # Must we lock files when doing compilation?
10301 need_locks=$lt_need_locks
10303 # Do we need the lib prefix for modules?
10304 need_lib_prefix=$need_lib_prefix
10306 # Do we need a version for libraries?
10307 need_version=$need_version
10309 # Whether dlopen is supported.
10310 dlopen_support=$enable_dlopen
10312 # Whether dlopen of programs is supported.
10313 dlopen_self=$enable_dlopen_self
10315 # Whether dlopen of statically linked programs is supported.
10316 dlopen_self_static=$enable_dlopen_self_static
10318 # Compiler flag to prevent dynamic linking.
10319 link_static_flag=$lt_lt_prog_compiler_static
10321 # Compiler flag to turn off builtin functions.
10322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10324 # Compiler flag to allow reflexive dlopens.
10325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10327 # Compiler flag to generate shared objects directly from archives.
10328 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10330 # Compiler flag to generate thread-safe objects.
10331 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10333 # Library versioning type.
10334 version_type=$version_type
10336 # Format of library name prefix.
10337 libname_spec=$lt_libname_spec
10339 # List of archive names. First name is the real one, the rest are links.
10340 # The last name is the one that the linker finds with -lNAME.
10341 library_names_spec=$lt_library_names_spec
10343 # The coded name of the library, if different from the real name.
10344 soname_spec=$lt_soname_spec
10346 # Commands used to build and install an old-style archive.
10348 old_archive_cmds=$lt_old_archive_cmds
10349 old_postinstall_cmds=$lt_old_postinstall_cmds
10350 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10352 # Create an old-style archive from a shared archive.
10353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10355 # Create a temporary old-style archive to link instead of a shared archive.
10356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10358 # Commands used to build and install a shared archive.
10359 archive_cmds=$lt_archive_cmds
10360 archive_expsym_cmds=$lt_archive_expsym_cmds
10361 postinstall_cmds=$lt_postinstall_cmds
10362 postuninstall_cmds=$lt_postuninstall_cmds
10364 # Commands used to build a loadable module (assumed same as above if empty)
10365 module_cmds=$lt_module_cmds
10366 module_expsym_cmds=$lt_module_expsym_cmds
10368 # Commands to strip libraries.
10369 old_striplib=$lt_old_striplib
10370 striplib=$lt_striplib
10372 # Dependencies to place before the objects being linked to create a
10374 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10376 # Dependencies to place after the objects being linked to create a
10378 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10380 # Dependencies to place before the objects being linked to create a
10382 predeps=$lt_predeps
10384 # Dependencies to place after the objects being linked to create a
10386 postdeps=$lt_postdeps
10388 # The library search path used internally by the compiler when linking
10389 # a shared library.
10390 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10392 # Method to check whether dependent libraries are shared objects.
10393 deplibs_check_method=$lt_deplibs_check_method
10395 # Command to use when deplibs_check_method == file_magic.
10396 file_magic_cmd=$lt_file_magic_cmd
10398 # Flag that allows shared libraries with undefined symbols to be built.
10399 allow_undefined_flag=$lt_allow_undefined_flag
10401 # Flag that forces no undefined symbols.
10402 no_undefined_flag=$lt_no_undefined_flag
10404 # Commands used to finish a libtool library installation in a directory.
10405 finish_cmds=$lt_finish_cmds
10407 # Same as above, but a single script fragment to be evaled but not shown.
10408 finish_eval=$lt_finish_eval
10410 # Take the output of nm and produce a listing of raw symbols and C names.
10411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10413 # Transform the output of nm in a proper C declaration
10414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10416 # Transform the output of nm in a C name address pair
10417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10419 # This is the shared library runtime path variable.
10420 runpath_var=$runpath_var
10422 # This is the shared library path variable.
10423 shlibpath_var=$shlibpath_var
10425 # Is shlibpath searched before the hard-coded library search path?
10426 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10428 # How to hardcode a shared library path into an executable.
10429 hardcode_action=$hardcode_action
10431 # Whether we should hardcode library paths into libraries.
10432 hardcode_into_libs=$hardcode_into_libs
10434 # Flag to hardcode \$libdir into a binary during linking.
10435 # This must work even if \$libdir does not exist.
10436 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10438 # If ld is used when linking, flag to hardcode \$libdir into
10439 # a binary during linking. This must work even if \$libdir does
10441 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10443 # Whether we need a single -rpath flag with a separated argument.
10444 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10446 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10447 # resulting binary.
10448 hardcode_direct=$hardcode_direct
10450 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10451 # resulting binary.
10452 hardcode_minus_L=$hardcode_minus_L
10454 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10455 # the resulting binary.
10456 hardcode_shlibpath_var=$hardcode_shlibpath_var
10458 # Set to yes if building a shared library automatically hardcodes DIR into the library
10459 # and all subsequent libraries and executables linked against it.
10460 hardcode_automatic=$hardcode_automatic
10462 # Variables whose values should be saved in libtool wrapper scripts and
10463 # restored at relink time.
10464 variables_saved_for_relink="$variables_saved_for_relink"
10466 # Whether libtool must link a program against all its dependency libraries.
10467 link_all_deplibs=$link_all_deplibs
10469 # Compile-time system search path for libraries
10470 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"\`
10472 # Run-time system search path for libraries
10473 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10475 # Fix the shell variable \$srcfile for the compiler.
10476 fix_srcfile_path=$lt_fix_srcfile_path
10478 # Set to yes if exported symbols are required.
10479 always_export_symbols=$always_export_symbols
10481 # The commands to list exported symbols.
10482 export_symbols_cmds=$lt_export_symbols_cmds
10484 # The commands to extract the exported symbol list from a shared archive.
10485 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10487 # Symbols that should not be listed in the preloaded symbols.
10488 exclude_expsyms=$lt_exclude_expsyms
10490 # Symbols that must always be exported.
10491 include_expsyms=$lt_include_expsyms
10493 # ### END LIBTOOL CONFIG
10500 cat <<\EOF >> "$cfgfile"
10502 # AIX sometimes has problems with the GCC collect2 program. For some
10503 # reason, if we set the COLLECT_NAMES environment variable, the problems
10504 # vanish in a puff of smoke.
10505 if test "X${COLLECT_NAMES+set}" != Xset; then
10507 export COLLECT_NAMES
10513 # We use sed instead of cat because bash on DJGPP gets confused if
10514 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10515 # text mode, it properly converts lines to CR/LF. This bash problem
10516 # is reportedly fixed, but why not run on old versions too?
10517 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10519 mv -f "$cfgfile" "$ofile" || \
10520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10524 # If there is no Makefile yet, we rely on a make rule to execute
10525 # `config.status --recheck' to rerun these tests and create the
10526 # libtool script then.
10527 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10528 if test -f "$ltmain_in"; then
10529 test -f Makefile && make "$ltmain"
10535 ac_cpp='$CPP $CPPFLAGS'
10536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10543 # Check whether --with-tags was given.
10544 if test "${with_tags+set}" = set; then
10545 withval=$with_tags; tagnames="$withval"
10549 if test -f "$ltmain" && test -n "$tagnames"; then
10550 if test ! -f "${ofile}"; then
10551 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10552 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10555 if test -z "$LTCC"; then
10556 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10557 if test -z "$LTCC"; then
10558 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10559 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10561 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10562 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10565 if test -z "$LTCFLAGS"; then
10566 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10569 # Extract list of available tagged configurations in $ofile.
10570 # Note that this assumes the entire list is on one line.
10571 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10574 for tagname in $tagnames; do
10576 # Check whether tagname contains only valid characters
10577 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10579 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10580 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10581 { (exit 1); exit 1; }; }
10585 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10587 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10588 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10589 { (exit 1); exit 1; }; }
10592 # Update the list of available tags.
10593 if test -n "$tagname"; then
10594 echo appending configuration tag \"$tagname\" to $ofile
10598 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10599 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10600 (test "X$CXX" != "Xg++"))) ; then
10602 ac_cpp='$CXXCPP $CPPFLAGS'
10603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10610 archive_cmds_need_lc_CXX=no
10611 allow_undefined_flag_CXX=
10612 always_export_symbols_CXX=no
10613 archive_expsym_cmds_CXX=
10614 export_dynamic_flag_spec_CXX=
10615 hardcode_direct_CXX=no
10616 hardcode_libdir_flag_spec_CXX=
10617 hardcode_libdir_flag_spec_ld_CXX=
10618 hardcode_libdir_separator_CXX=
10619 hardcode_minus_L_CXX=no
10620 hardcode_shlibpath_var_CXX=unsupported
10621 hardcode_automatic_CXX=no
10623 module_expsym_cmds_CXX=
10624 link_all_deplibs_CXX=unknown
10625 old_archive_cmds_CXX=$old_archive_cmds
10626 no_undefined_flag_CXX=
10627 whole_archive_flag_spec_CXX=
10628 enable_shared_with_static_runtimes_CXX=no
10630 # Dependencies to place before and after the object being linked:
10631 predep_objects_CXX=
10632 postdep_objects_CXX=
10635 compiler_lib_search_path_CXX=
10637 # Source file extension for C++ test sources.
10640 # Object file extension for compiled C++ test sources.
10644 # Code to be used in simple compile tests
10645 lt_simple_compile_test_code="int some_variable = 0;"
10647 # Code to be used in simple link tests
10648 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10652 # If no C compiler was specified, use CC.
10655 # If no C compiler flags were specified, use CFLAGS.
10656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10658 # Allow CC to be a program name with arguments.
10662 # save warnings/boilerplate of simple test code
10663 ac_outfile=conftest.$ac_objext
10664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10666 _lt_compiler_boilerplate=`cat conftest.err`
10669 ac_outfile=conftest.$ac_objext
10670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10672 _lt_linker_boilerplate=`cat conftest.err`
10676 # Allow CC to be a program name with arguments.
10681 lt_save_with_gnu_ld=$with_gnu_ld
10682 lt_save_path_LD=$lt_cv_path_LD
10683 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10684 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10686 $as_unset lt_cv_prog_gnu_ld
10688 if test -n "${lt_cv_path_LDCXX+set}"; then
10689 lt_cv_path_LD=$lt_cv_path_LDCXX
10691 $as_unset lt_cv_path_LD
10693 test -z "${LDCXX+set}" || LD=$LDCXX
10697 for cc_temp in $compiler""; do
10699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10705 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10708 # We don't want -fno-exception wen compiling C++ code, so set the
10709 # no_builtin_flag separately
10710 if test "$GXX" = yes; then
10711 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10713 lt_prog_compiler_no_builtin_flag_CXX=
10716 if test "$GXX" = yes; then
10717 # Set up default GNU C++ configuration
10720 # Check whether --with-gnu-ld was given.
10721 if test "${with_gnu_ld+set}" = set; then
10722 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10728 if test "$GCC" = yes; then
10729 # Check if gcc -print-prog-name=ld gives a path.
10730 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10731 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10734 # gcc leaves a trailing carriage return which upsets mingw
10735 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10737 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10740 # Accept absolute paths.
10742 re_direlt='/[^/][^/]*/\.\./'
10743 # Canonicalize the pathname of ld
10744 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10745 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10746 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10748 test -z "$LD" && LD="$ac_prog"
10751 # If it fails, then pretend we aren't using GCC.
10755 # If it is relative, then search for the first ld in PATH.
10756 with_gnu_ld=unknown
10759 elif test "$with_gnu_ld" = yes; then
10760 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10761 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10763 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10764 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10766 if test "${lt_cv_path_LD+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 if test -z "$LD"; then
10770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10771 for ac_dir in $PATH; do
10773 test -z "$ac_dir" && ac_dir=.
10774 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10775 lt_cv_path_LD="$ac_dir/$ac_prog"
10776 # Check to see if the program is GNU ld. I'd rather use --version,
10777 # but apparently some variants of GNU ld only accept -v.
10778 # Break only if it was the GNU/non-GNU ld that we prefer.
10779 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10780 *GNU* | *'with BFD'*)
10781 test "$with_gnu_ld" != no && break
10784 test "$with_gnu_ld" != yes && break
10791 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10795 LD="$lt_cv_path_LD"
10796 if test -n "$LD"; then
10797 { echo "$as_me:$LINENO: result: $LD" >&5
10798 echo "${ECHO_T}$LD" >&6; }
10800 { echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6; }
10803 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10804 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10805 { (exit 1); exit 1; }; }
10806 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10807 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10808 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10812 case `$LD -v 2>&1 </dev/null` in
10813 *GNU* | *'with BFD'*)
10814 lt_cv_prog_gnu_ld=yes
10817 lt_cv_prog_gnu_ld=no
10821 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10822 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10823 with_gnu_ld=$lt_cv_prog_gnu_ld
10827 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10828 # archiving commands below assume that GNU ld is being used.
10829 if test "$with_gnu_ld" = yes; then
10830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10831 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'
10833 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10834 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10836 # If archive_cmds runs LD, not CC, wlarc should be empty
10837 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10838 # investigate it a little bit more. (MM)
10841 # ancient GNU ld didn't support --whole-archive et. al.
10842 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10843 grep 'no-whole-archive' > /dev/null; then
10844 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10846 whole_archive_flag_spec_CXX=
10852 # A generic and very simple default shared library creation
10853 # command for GNU C++ for the case where it uses the native
10854 # linker, instead of GNU ld. If possible, this setting should
10855 # overridden to take advantage of the native linker features on
10856 # the platform it is being used on.
10857 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10860 # Commands to make compiler produce verbose output that lists
10861 # what "hidden" libraries, object files and flags are used when
10862 # linking a shared library.
10863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10871 # PORTME: fill in a description of your system's C++ link characteristics
10872 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10873 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10877 # FIXME: insert proper C++ library support
10881 if test "$host_cpu" = ia64; then
10882 # On IA64, the linker does run time linking by default, so we don't
10883 # have to do anything special.
10884 aix_use_runtimelinking=no
10885 exp_sym_flag='-Bexport'
10888 aix_use_runtimelinking=no
10890 # Test if we are trying to use run time linking or normal
10891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10892 # need to do runtime linking.
10893 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10894 for ld_flag in $LDFLAGS; do
10897 aix_use_runtimelinking=yes
10905 exp_sym_flag='-bexport'
10906 no_entry_flag='-bnoentry'
10909 # When large executables or shared objects are built, AIX ld can
10910 # have problems creating the table of contents. If linking a library
10911 # or program results in "error TOC overflow" add -mminimal-toc to
10912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10915 archive_cmds_CXX=''
10916 hardcode_direct_CXX=yes
10917 hardcode_libdir_separator_CXX=':'
10918 link_all_deplibs_CXX=yes
10920 if test "$GXX" = yes; then
10921 case $host_os in aix4.[012]|aix4.[012].*)
10922 # We only want to do this on AIX 4.2 and lower, the check
10923 # below for broken collect2 doesn't work under 4.3+
10924 collect2name=`${CC} -print-prog-name=collect2`
10925 if test -f "$collect2name" && \
10926 strings "$collect2name" | grep resolve_lib_name >/dev/null
10928 # We have reworked collect2
10931 # We have old collect2
10932 hardcode_direct_CXX=unsupported
10933 # It fails to find uninstalled libraries when the uninstalled
10934 # path is not listed in the libpath. Setting hardcode_minus_L
10935 # to unsupported forces relinking
10936 hardcode_minus_L_CXX=yes
10937 hardcode_libdir_flag_spec_CXX='-L$libdir'
10938 hardcode_libdir_separator_CXX=
10942 shared_flag='-shared'
10943 if test "$aix_use_runtimelinking" = yes; then
10944 shared_flag="$shared_flag "'${wl}-G'
10948 if test "$host_cpu" = ia64; then
10949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10950 # chokes on -Wl,-G. The following line is correct:
10953 if test "$aix_use_runtimelinking" = yes; then
10954 shared_flag='${wl}-G'
10956 shared_flag='${wl}-bM:SRE'
10961 # It seems that -bexpall does not export symbols beginning with
10962 # underscore (_), so it is better to generate a list of symbols to export.
10963 always_export_symbols_CXX=yes
10964 if test "$aix_use_runtimelinking" = yes; then
10965 # Warning - without using the other runtime loading flags (-brtl),
10966 # -berok will link without error, but may produce a broken library.
10967 allow_undefined_flag_CXX='-berok'
10968 # Determine the default libpath from the value encoded in an empty executable.
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_link") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_cxx_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest$ac_exeext &&
11001 $as_test_x conftest$ac_exeext; then
11003 lt_aix_libpath_sed='
11004 /Import File Strings/,/^$/ {
11010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11011 # Check for a 64-bit object if we didn't find anything.
11012 if test -z "$aix_libpath"; then
11013 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11023 conftest$ac_exeext conftest.$ac_ext
11024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11026 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11028 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"
11030 if test "$host_cpu" = ia64; then
11031 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11032 allow_undefined_flag_CXX="-z nodefs"
11033 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"
11035 # Determine the default libpath from the value encoded in an empty executable.
11036 cat >conftest.$ac_ext <<_ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_link") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_cxx_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest$ac_exeext &&
11068 $as_test_x conftest$ac_exeext; then
11070 lt_aix_libpath_sed='
11071 /Import File Strings/,/^$/ {
11077 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11078 # Check for a 64-bit object if we didn't find anything.
11079 if test -z "$aix_libpath"; then
11080 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11093 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11094 # Warning - without using the other run time loading flags,
11095 # -berok will link without error, but may produce a broken library.
11096 no_undefined_flag_CXX=' ${wl}-bernotok'
11097 allow_undefined_flag_CXX=' ${wl}-berok'
11098 # Exported symbols can be pulled into shared objects from archives
11099 whole_archive_flag_spec_CXX='$convenience'
11100 archive_cmds_need_lc_CXX=yes
11101 # This is similar to how AIX traditionally builds its shared libraries.
11102 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'
11108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11109 allow_undefined_flag_CXX=unsupported
11110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11111 # support --undefined. This deserves some investigation. FIXME
11112 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11119 case $cc_basename in
11121 # FIXME: insert proper C++ library support
11127 cygwin* | mingw* | pw32*)
11128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11129 # as there is no search path for DLLs.
11130 hardcode_libdir_flag_spec_CXX='-L$libdir'
11131 allow_undefined_flag_CXX=unsupported
11132 always_export_symbols_CXX=no
11133 enable_shared_with_static_runtimes_CXX=yes
11135 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11136 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'
11137 # If the export-symbols file already is a .def file (1st line
11138 # is EXPORTS), use it as is; otherwise, prepend...
11139 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11140 cp $export_symbols $output_objdir/$soname.def;
11142 echo EXPORTS > $output_objdir/$soname.def;
11143 cat $export_symbols >> $output_objdir/$soname.def;
11145 $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'
11150 darwin* | rhapsody*)
11152 rhapsody* | darwin1.[012])
11153 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11156 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11157 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11159 case ${MACOSX_DEPLOYMENT_TARGET} in
11161 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11164 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11170 archive_cmds_need_lc_CXX=no
11171 hardcode_direct_CXX=no
11172 hardcode_automatic_CXX=yes
11173 hardcode_shlibpath_var_CXX=unsupported
11174 whole_archive_flag_spec_CXX=''
11175 link_all_deplibs_CXX=yes
11177 if test "$GXX" = yes ; then
11178 lt_int_apple_cc_single_mod=no
11179 output_verbose_link_cmd='echo'
11180 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11181 lt_int_apple_cc_single_mod=yes
11183 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11184 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11186 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'
11188 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11189 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11190 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11191 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}'
11193 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}'
11195 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}'
11197 case $cc_basename in
11199 output_verbose_link_cmd='echo'
11200 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'
11201 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11202 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11203 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}'
11204 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}'
11214 case $cc_basename in
11216 # FIXME: insert proper C++ library support
11220 # Green Hills C++ Compiler
11221 # FIXME: insert proper C++ library support
11225 # FIXME: insert proper C++ library support
11231 # C++ shared libraries reported to be fairly broken before switch to ELF
11235 archive_cmds_need_lc_CXX=no
11237 freebsd* | dragonfly*)
11238 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11245 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11246 hardcode_libdir_separator_CXX=:
11247 export_dynamic_flag_spec_CXX='${wl}-E'
11248 hardcode_direct_CXX=yes
11249 hardcode_minus_L_CXX=yes # Not in the search PATH,
11250 # but as the default
11251 # location of the library.
11253 case $cc_basename in
11255 # FIXME: insert proper C++ library support
11259 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'
11260 # Commands to make compiler produce verbose output that lists
11261 # what "hidden" libraries, object files and flags are used when
11262 # linking a shared library.
11264 # There doesn't appear to be a way to prevent this compiler from
11265 # explicitly linking system object files so we need to strip them
11266 # from the output so that they don't get included in the library
11268 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'
11271 if test "$GXX" = yes; then
11272 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'
11274 # FIXME: insert proper C++ library support
11281 if test $with_gnu_ld = no; then
11282 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11283 hardcode_libdir_separator_CXX=:
11288 export_dynamic_flag_spec_CXX='${wl}-E'
11294 hardcode_direct_CXX=no
11295 hardcode_shlibpath_var_CXX=no
11298 hardcode_direct_CXX=yes
11299 hardcode_minus_L_CXX=yes # Not in the search PATH,
11300 # but as the default
11301 # location of the library.
11305 case $cc_basename in
11307 # FIXME: insert proper C++ library support
11313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11319 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11322 # Commands to make compiler produce verbose output that lists
11323 # what "hidden" libraries, object files and flags are used when
11324 # linking a shared library.
11326 # There doesn't appear to be a way to prevent this compiler from
11327 # explicitly linking system object files so we need to strip them
11328 # from the output so that they don't get included in the library
11330 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'
11333 if test "$GXX" = yes; then
11334 if test $with_gnu_ld = no; then
11337 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11340 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11343 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'
11348 # FIXME: insert proper C++ library support
11355 hardcode_direct_CXX=no
11356 hardcode_shlibpath_var_CXX=no
11357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11358 export_dynamic_flag_spec_CXX='${wl}-E'
11359 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11360 # Instead, shared libraries are loaded at an image base (0x10000000 by
11361 # default) and relocated if they conflict, which is a slow very memory
11362 # consuming and fragmenting process. To avoid this, we pick a random,
11363 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11364 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11365 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'
11366 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'
11369 case $cc_basename in
11372 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'
11374 # Archives containing C++ object files must be created using
11375 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11376 # necessary to make sure instantiated templates are included
11378 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11381 if test "$GXX" = yes; then
11382 if test "$with_gnu_ld" = no; then
11383 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'
11385 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'
11388 link_all_deplibs_CXX=yes
11391 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11392 hardcode_libdir_separator_CXX=:
11394 linux* | k*bsd*-gnu)
11395 case $cc_basename in
11397 # Kuck and Associates, Inc. (KAI) C++ Compiler
11399 # KCC will only create a shared library if the output file
11400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11401 # to its proper name (with version) after linking.
11402 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'
11403 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'
11404 # Commands to make compiler produce verbose output that lists
11405 # what "hidden" libraries, object files and flags are used when
11406 # linking a shared library.
11408 # There doesn't appear to be a way to prevent this compiler from
11409 # explicitly linking system object files so we need to strip them
11410 # from the output so that they don't get included in the library
11412 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'
11414 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11415 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11417 # Archives containing C++ object files must be created using
11418 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11419 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11424 # version 8.0 and above of icpc choke on multiply defined symbols
11425 # if we add $predep_objects and $postdep_objects, however 7.1 and
11426 # earlier do not add the objects themselves.
11427 case `$CC -V 2>&1` in
11429 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11430 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'
11432 *) # Version 8.0 or newer
11435 ia64*) tmp_idyn=' -i_dynamic';;
11437 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11438 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'
11441 archive_cmds_need_lc_CXX=no
11442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11444 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11447 # Portland Group C++ compiler
11448 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11449 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'
11451 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11452 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11453 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'
11457 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11458 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'
11460 runpath_var=LD_RUN_PATH
11461 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11462 hardcode_libdir_separator_CXX=:
11464 # Commands to make compiler produce verbose output that lists
11465 # what "hidden" libraries, object files and flags are used when
11466 # linking a shared library.
11468 # There doesn't appear to be a way to prevent this compiler from
11469 # explicitly linking system object files so we need to strip them
11470 # from the output so that they don't get included in the library
11472 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'
11475 case `$CC -V 2>&1 | sed 5q` in
11478 no_undefined_flag_CXX=' -zdefs'
11479 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11480 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'
11481 hardcode_libdir_flag_spec_CXX='-R$libdir'
11482 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'
11484 # Not sure whether something based on
11485 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11487 output_verbose_link_cmd='echo'
11489 # Archives containing C++ object files must be created using
11490 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11491 # necessary to make sure instantiated templates are included
11493 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11500 # FIXME: insert proper C++ library support
11504 # FIXME: insert proper C++ library support
11508 case $cc_basename in
11510 # FIXME: insert proper C++ library support
11514 # FIXME: insert proper C++ library support
11520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11521 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11523 hardcode_libdir_flag_spec_CXX='-R$libdir'
11524 hardcode_direct_CXX=yes
11525 hardcode_shlibpath_var_CXX=no
11527 # Workaround some broken pre-1.5 toolchains
11528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11531 # C++ shared libraries are fairly broken
11535 if test -f /usr/libexec/ld.so; then
11536 hardcode_direct_CXX=yes
11537 hardcode_shlibpath_var_CXX=no
11538 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11541 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11542 export_dynamic_flag_spec_CXX='${wl}-E'
11543 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11545 output_verbose_link_cmd='echo'
11551 case $cc_basename in
11553 # Kuck and Associates, Inc. (KAI) C++ Compiler
11555 # KCC will only create a shared library if the output file
11556 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11557 # to its proper name (with version) after linking.
11558 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'
11560 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11561 hardcode_libdir_separator_CXX=:
11563 # Archives containing C++ object files must be created using
11564 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11565 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11569 # Rational C++ 2.4.1
11570 # FIXME: insert proper C++ library support
11574 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11575 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'
11577 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578 hardcode_libdir_separator_CXX=:
11580 # Commands to make compiler produce verbose output that lists
11581 # what "hidden" libraries, object files and flags are used when
11582 # linking a shared library.
11584 # There doesn't appear to be a way to prevent this compiler from
11585 # explicitly linking system object files so we need to strip them
11586 # from the output so that they don't get included in the library
11588 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'
11591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11593 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'
11595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11596 hardcode_libdir_separator_CXX=:
11598 # Commands to make compiler produce verbose output that lists
11599 # what "hidden" libraries, object files and flags are used when
11600 # linking a shared library.
11601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11604 # FIXME: insert proper C++ library support
11611 case $cc_basename in
11613 # Kuck and Associates, Inc. (KAI) C++ Compiler
11615 # KCC will only create a shared library if the output file
11616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11617 # to its proper name (with version) after linking.
11618 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'
11620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11621 hardcode_libdir_separator_CXX=:
11623 # Archives containing C++ object files must be created using
11624 # the KAI C++ compiler.
11625 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11628 # Rational C++ 2.4.1
11629 # FIXME: insert proper C++ library support
11633 allow_undefined_flag_CXX=' -expect_unresolved \*'
11634 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'
11635 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11636 echo "-hidden">> $lib.exp~
11637 $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~
11640 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11641 hardcode_libdir_separator_CXX=:
11643 # Commands to make compiler produce verbose output that lists
11644 # what "hidden" libraries, object files and flags are used when
11645 # linking a shared library.
11647 # There doesn't appear to be a way to prevent this compiler from
11648 # explicitly linking system object files so we need to strip them
11649 # from the output so that they don't get included in the library
11651 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'
11654 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11655 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11656 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'
11658 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11659 hardcode_libdir_separator_CXX=:
11661 # Commands to make compiler produce verbose output that lists
11662 # what "hidden" libraries, object files and flags are used when
11663 # linking a shared library.
11664 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11667 # FIXME: insert proper C++ library support
11674 # FIXME: insert proper C++ library support
11678 case $cc_basename in
11681 # FIXME: insert proper C++ library support
11686 # FIXME: insert proper C++ library support
11690 # FIXME: insert proper C++ library support
11696 case $cc_basename in
11698 # Sun C++ 4.2, 5.x and Centerline C++
11699 archive_cmds_need_lc_CXX=yes
11700 no_undefined_flag_CXX=' -zdefs'
11701 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11703 $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'
11705 hardcode_libdir_flag_spec_CXX='-R$libdir'
11706 hardcode_shlibpath_var_CXX=no
11708 solaris2.[0-5] | solaris2.[0-5].*) ;;
11710 # The compiler driver will combine and reorder linker options,
11711 # but understands `-z linker_flag'.
11712 # Supported since Solaris 2.6 (maybe 2.5.1?)
11713 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11716 link_all_deplibs_CXX=yes
11718 output_verbose_link_cmd='echo'
11720 # Archives containing C++ object files must be created using
11721 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11722 # necessary to make sure instantiated templates are included
11724 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11727 # Green Hills C++ Compiler
11728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11730 # The C++ compiler must be used to create the archive.
11731 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11734 # GNU C++ compiler with Solaris linker
11735 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11736 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11737 if $CC --version | grep -v '^2\.7' > /dev/null; then
11738 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11739 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11740 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11742 # Commands to make compiler produce verbose output that lists
11743 # what "hidden" libraries, object files and flags are used when
11744 # linking a shared library.
11745 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11747 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11749 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11750 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11751 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11753 # Commands to make compiler produce verbose output that lists
11754 # what "hidden" libraries, object files and flags are used when
11755 # linking a shared library.
11756 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11759 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11761 solaris2.[0-5] | solaris2.[0-5].*) ;;
11763 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11771 no_undefined_flag_CXX='${wl}-z,text'
11772 archive_cmds_need_lc_CXX=no
11773 hardcode_shlibpath_var_CXX=no
11774 runpath_var='LD_RUN_PATH'
11776 case $cc_basename in
11778 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11787 sysv5* | sco3.2v5* | sco5v6*)
11788 # Note: We can NOT use -z defs as we might desire, because we do not
11789 # link with -lc, and that would cause any symbols used from libc to
11790 # always be unresolved, which means just about no library would
11791 # ever link correctly. If we're not using GNU ld we use -z text
11792 # though, which does catch some bad symbols but isn't as heavy-handed
11794 # For security reasons, it is highly recommended that you always
11795 # use absolute paths for naming shared libraries, and exclude the
11796 # DT_RUNPATH tag from executables and libraries. But doing so
11797 # requires that you compile everything twice, which is a pain.
11798 # So that behaviour is only enabled if SCOABSPATH is set to a
11799 # non-empty value in the environment. Most likely only useful for
11800 # creating official distributions of packages.
11801 # This is a hack until libtool officially supports absolute path
11802 # names for shared libraries.
11803 no_undefined_flag_CXX='${wl}-z,text'
11804 allow_undefined_flag_CXX='${wl}-z,nodefs'
11805 archive_cmds_need_lc_CXX=no
11806 hardcode_shlibpath_var_CXX=no
11807 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11808 hardcode_libdir_separator_CXX=':'
11809 link_all_deplibs_CXX=yes
11810 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11811 runpath_var='LD_RUN_PATH'
11813 case $cc_basename in
11815 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11819 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11820 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11825 case $cc_basename in
11827 # NonStop-UX NCC 3.20
11828 # FIXME: insert proper C++ library support
11832 # FIXME: insert proper C++ library support
11838 # FIXME: insert proper C++ library support
11842 # FIXME: insert proper C++ library support
11846 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11847 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11848 test "$ld_shlibs_CXX" = no && can_build_shared=no
11854 cat > conftest.$ac_ext <<EOF
11858 Foo (void) { a = 0; }
11864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11865 (eval $ac_compile) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; then
11869 # Parse the compiler output and extract the necessary
11870 # objects, libraries and library flags.
11872 # Sentinel used to keep track of whether or not we are before
11873 # the conftest object file.
11874 pre_test_object_deps_done=no
11876 # The `*' in the case matches for architectures that use `case' in
11877 # $output_verbose_cmd can trigger glob expansion during the loop
11878 # eval without this substitution.
11879 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11881 for p in `eval $output_verbose_link_cmd`; do
11885 # Some compilers place space between "-{L,R}" and the path.
11886 # Remove the space.
11887 if test $p = "-L" \
11888 || test $p = "-R"; then
11895 if test "$pre_test_object_deps_done" = no; then
11898 # Internal compiler library paths should come after those
11899 # provided the user. The postdeps already come after the
11900 # user supplied libs so there is no need to process them.
11901 if test -z "$compiler_lib_search_path_CXX"; then
11902 compiler_lib_search_path_CXX="${prev}${p}"
11904 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11907 # The "-l" case would never come before the object being
11908 # linked, so don't bother handling this case.
11911 if test -z "$postdeps_CXX"; then
11912 postdeps_CXX="${prev}${p}"
11914 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11920 # This assumes that the test object file only shows up
11921 # once in the compiler output.
11922 if test "$p" = "conftest.$objext"; then
11923 pre_test_object_deps_done=yes
11927 if test "$pre_test_object_deps_done" = no; then
11928 if test -z "$predep_objects_CXX"; then
11929 predep_objects_CXX="$p"
11931 predep_objects_CXX="$predep_objects_CXX $p"
11934 if test -z "$postdep_objects_CXX"; then
11935 postdep_objects_CXX="$p"
11937 postdep_objects_CXX="$postdep_objects_CXX $p"
11942 *) ;; # Ignore the rest.
11950 echo "libtool.m4: error: problem compiling CXX test program"
11953 $rm -f confest.$objext
11955 # PORTME: override above test on systems where it is broken
11958 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11959 # hack all around it, let's just trust "g++" to DTRT.
11960 predep_objects_CXX=
11961 postdep_objects_CXX=
11966 case `$CC -V 2>&1 | sed 5q` in
11970 # The more standards-conforming stlport4 library is
11971 # incompatible with the Cstd library. Avoid specifying
11972 # it if it's in CXXFLAGS. Ignore libCrun as
11973 # -library=stlport4 depends on it.
11974 case " $CXX $CXXFLAGS " in
11975 *" -library=stlport4 "*)
11976 solaris_use_stlport4=yes
11979 if test "$solaris_use_stlport4" != yes; then
11980 postdeps_CXX='-library=Cstd -library=Crun'
11987 case $cc_basename in
11989 # The more standards-conforming stlport4 library is
11990 # incompatible with the Cstd library. Avoid specifying
11991 # it if it's in CXXFLAGS. Ignore libCrun as
11992 # -library=stlport4 depends on it.
11993 case " $CXX $CXXFLAGS " in
11994 *" -library=stlport4 "*)
11995 solaris_use_stlport4=yes
11999 # Adding this requires a known-good setup of shared libraries for
12000 # Sun compiler versions before 5.6, else PIC objects from an old
12001 # archive will be linked into the output, leading to subtle bugs.
12002 if test "$solaris_use_stlport4" != yes; then
12003 postdeps_CXX='-library=Cstd -library=Crun'
12011 case " $postdeps_CXX " in
12012 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12015 lt_prog_compiler_wl_CXX=
12016 lt_prog_compiler_pic_CXX=
12017 lt_prog_compiler_static_CXX=
12019 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12020 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12022 # C++ specific cases for pic, static, wl, etc.
12023 if test "$GXX" = yes; then
12024 lt_prog_compiler_wl_CXX='-Wl,'
12025 lt_prog_compiler_static_CXX='-static'
12029 # All AIX code is PIC.
12030 if test "$host_cpu" = ia64; then
12031 # AIX 5 now supports IA64 processor
12032 lt_prog_compiler_static_CXX='-Bstatic'
12036 # FIXME: we need at least 68020 code to build shared libraries, but
12037 # adding the `-m68020' flag to GCC prevents building anything better,
12039 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12041 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12042 # PIC is the default for these OSes.
12044 mingw* | cygwin* | os2* | pw32*)
12045 # This hack is so that the source file can tell whether it is being
12046 # built for inclusion in a dll (and should export symbols for example).
12047 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12048 # (--disable-auto-import) libraries
12049 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12051 darwin* | rhapsody*)
12052 # PIC is the default on this platform
12053 # Common symbols not allowed in MH_DYLIB files
12054 lt_prog_compiler_pic_CXX='-fno-common'
12057 # DJGPP does not support shared libraries at all
12058 lt_prog_compiler_pic_CXX=
12061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12062 # Instead, we relocate shared libraries at runtime.
12065 if test -d /usr/nec; then
12066 lt_prog_compiler_pic_CXX=-Kconform_pic
12070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12071 # not for PA HP-UX.
12076 lt_prog_compiler_pic_CXX='-fPIC'
12081 lt_prog_compiler_pic_CXX='-fPIC'
12087 # All AIX code is PIC.
12088 if test "$host_cpu" = ia64; then
12089 # AIX 5 now supports IA64 processor
12090 lt_prog_compiler_static_CXX='-Bstatic'
12092 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12096 case $cc_basename in
12098 # Green Hills C++ Compiler
12099 # _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"
12104 # PIC is the default on this platform
12105 # Common symbols not allowed in MH_DYLIB files
12106 case $cc_basename in
12108 lt_prog_compiler_pic_CXX='-qnocommon'
12109 lt_prog_compiler_wl_CXX='-Wl,'
12114 case $cc_basename in
12116 lt_prog_compiler_pic_CXX='-KPIC'
12119 # Green Hills C++ Compiler
12120 lt_prog_compiler_pic_CXX='-pic'
12126 freebsd* | dragonfly*)
12127 # FreeBSD uses GNU C++
12129 hpux9* | hpux10* | hpux11*)
12130 case $cc_basename in
12132 lt_prog_compiler_wl_CXX='-Wl,'
12133 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12134 if test "$host_cpu" != ia64; then
12135 lt_prog_compiler_pic_CXX='+Z'
12139 lt_prog_compiler_wl_CXX='-Wl,'
12140 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12146 lt_prog_compiler_pic_CXX='+Z'
12155 # This is c89, which is MS Visual C++ (no shared libs)
12156 # Anyone wants to do a port?
12158 irix5* | irix6* | nonstopux*)
12159 case $cc_basename in
12161 lt_prog_compiler_wl_CXX='-Wl,'
12162 lt_prog_compiler_static_CXX='-non_shared'
12163 # CC pic flag -KPIC is the default.
12169 linux* | k*bsd*-gnu)
12170 case $cc_basename in
12173 lt_prog_compiler_wl_CXX='--backend -Wl,'
12174 lt_prog_compiler_pic_CXX='-fPIC'
12178 lt_prog_compiler_wl_CXX='-Wl,'
12179 lt_prog_compiler_pic_CXX='-KPIC'
12180 lt_prog_compiler_static_CXX='-static'
12183 # Portland Group C++ compiler.
12184 lt_prog_compiler_wl_CXX='-Wl,'
12185 lt_prog_compiler_pic_CXX='-fpic'
12186 lt_prog_compiler_static_CXX='-Bstatic'
12190 # Make sure the PIC flag is empty. It appears that all Alpha
12191 # Linux and Compaq Tru64 Unix objects are PIC.
12192 lt_prog_compiler_pic_CXX=
12193 lt_prog_compiler_static_CXX='-non_shared'
12196 case `$CC -V 2>&1 | sed 5q` in
12199 lt_prog_compiler_pic_CXX='-KPIC'
12200 lt_prog_compiler_static_CXX='-Bstatic'
12201 lt_prog_compiler_wl_CXX='-Qoption ld '
12212 case $cc_basename in
12214 lt_prog_compiler_pic_CXX='-W c,exportall'
12222 osf3* | osf4* | osf5*)
12223 case $cc_basename in
12225 lt_prog_compiler_wl_CXX='--backend -Wl,'
12228 # Rational C++ 2.4.1
12229 lt_prog_compiler_pic_CXX='-pic'
12232 # Digital/Compaq C++
12233 lt_prog_compiler_wl_CXX='-Wl,'
12234 # Make sure the PIC flag is empty. It appears that all Alpha
12235 # Linux and Compaq Tru64 Unix objects are PIC.
12236 lt_prog_compiler_pic_CXX=
12237 lt_prog_compiler_static_CXX='-non_shared'
12246 case $cc_basename in
12248 # Sun C++ 4.2, 5.x and Centerline C++
12249 lt_prog_compiler_pic_CXX='-KPIC'
12250 lt_prog_compiler_static_CXX='-Bstatic'
12251 lt_prog_compiler_wl_CXX='-Qoption ld '
12254 # Green Hills C++ Compiler
12255 lt_prog_compiler_pic_CXX='-PIC'
12262 case $cc_basename in
12265 lt_prog_compiler_pic_CXX='-pic'
12266 lt_prog_compiler_static_CXX='-Bstatic'
12270 lt_prog_compiler_pic_CXX='-pic'
12277 case $cc_basename in
12279 # NonStop-UX NCC 3.20
12280 lt_prog_compiler_pic_CXX='-KPIC'
12286 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12287 case $cc_basename in
12289 lt_prog_compiler_wl_CXX='-Wl,'
12290 lt_prog_compiler_pic_CXX='-KPIC'
12291 lt_prog_compiler_static_CXX='-Bstatic'
12298 lt_prog_compiler_can_build_shared_CXX=no
12303 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12304 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12307 # Check to make sure the PIC flag actually works.
12309 if test -n "$lt_prog_compiler_pic_CXX"; then
12311 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12313 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 lt_prog_compiler_pic_works_CXX=no
12317 ac_outfile=conftest.$ac_objext
12318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12319 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12320 # Insert the option either (1) after the last *FLAGS variable, or
12321 # (2) before a word containing "conftest.", or (3) at the end.
12322 # Note that $ac_compile itself does not contain backslashes and begins
12323 # with a dollar sign (not a hyphen), so the echo should work correctly.
12324 # The option is referenced via a variable to avoid confusing sed.
12325 lt_compile=`echo "$ac_compile" | $SED \
12326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12328 -e 's:$: $lt_compiler_flag:'`
12329 (eval echo "\"\$as_me:12329: $lt_compile\"" >&5)
12330 (eval "$lt_compile" 2>conftest.err)
12332 cat conftest.err >&5
12333 echo "$as_me:12333: \$? = $ac_status" >&5
12334 if (exit $ac_status) && test -s "$ac_outfile"; then
12335 # The compiler can only warn and ignore the option if not recognized
12336 # So say no if there are warnings other than the usual output.
12337 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12340 lt_prog_compiler_pic_works_CXX=yes
12346 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12347 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12349 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12350 case $lt_prog_compiler_pic_CXX in
12352 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12355 lt_prog_compiler_pic_CXX=
12356 lt_prog_compiler_can_build_shared_CXX=no
12361 # For platforms which do not support PIC, -DPIC is meaningless:
12363 lt_prog_compiler_pic_CXX=
12366 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12371 # Check to make sure the static flag actually works.
12373 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12374 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12375 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12376 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 lt_prog_compiler_static_works_CXX=no
12380 save_LDFLAGS="$LDFLAGS"
12381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12382 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12384 # The linker can only warn and ignore the option if not recognized
12385 # So say no if there are warnings
12386 if test -s conftest.err; then
12387 # Append any errors to the config.log.
12388 cat conftest.err 1>&5
12389 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12391 if diff conftest.exp conftest.er2 >/dev/null; then
12392 lt_prog_compiler_static_works_CXX=yes
12395 lt_prog_compiler_static_works_CXX=yes
12399 LDFLAGS="$save_LDFLAGS"
12402 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12403 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12405 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12408 lt_prog_compiler_static_CXX=
12412 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12413 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12414 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 lt_cv_prog_compiler_c_o_CXX=no
12418 $rm -r conftest 2>/dev/null
12422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12424 lt_compiler_flag="-o out/conftest2.$ac_objext"
12425 # Insert the option either (1) after the last *FLAGS variable, or
12426 # (2) before a word containing "conftest.", or (3) at the end.
12427 # Note that $ac_compile itself does not contain backslashes and begins
12428 # with a dollar sign (not a hyphen), so the echo should work correctly.
12429 lt_compile=`echo "$ac_compile" | $SED \
12430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12432 -e 's:$: $lt_compiler_flag:'`
12433 (eval echo "\"\$as_me:12433: $lt_compile\"" >&5)
12434 (eval "$lt_compile" 2>out/conftest.err)
12436 cat out/conftest.err >&5
12437 echo "$as_me:12437: \$? = $ac_status" >&5
12438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12440 # The compiler can only warn and ignore the option if not recognized
12441 # So say no if there are warnings
12442 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12445 lt_cv_prog_compiler_c_o_CXX=yes
12450 # SGI C++ compiler will create directory out/ii_files/ for
12451 # template instantiation
12452 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12453 $rm out/* && rmdir out
12459 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12460 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12463 hard_links="nottested"
12464 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12465 # do not overwrite the value of need_locks provided by the user
12466 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12467 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12472 ln conftest.a conftest.b 2>&5 || hard_links=no
12473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12474 { echo "$as_me:$LINENO: result: $hard_links" >&5
12475 echo "${ECHO_T}$hard_links" >&6; }
12476 if test "$hard_links" = no; then
12477 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12478 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12485 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12486 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12488 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12491 # If we're using GNU nm, then we don't want the "-C" option.
12492 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12493 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12494 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'
12496 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'
12500 export_symbols_cmds_CXX="$ltdll_cmds"
12503 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'
12506 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12510 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12511 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12512 test "$ld_shlibs_CXX" = no && can_build_shared=no
12515 # Do we need to explicitly link libc?
12517 case "x$archive_cmds_need_lc_CXX" in
12519 # Assume -lc should be added
12520 archive_cmds_need_lc_CXX=yes
12522 if test "$enable_shared" = yes && test "$GCC" = yes; then
12523 case $archive_cmds_CXX in
12525 # FIXME: we may have to deal with multi-command sequences.
12528 # Test whether the compiler implicitly links with -lc since on some
12529 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12530 # to ld, don't add -lc before -lgcc.
12531 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12532 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } 2>conftest.err; then
12543 libobjs=conftest.$ac_objext
12545 wl=$lt_prog_compiler_wl_CXX
12546 pic_flag=$lt_prog_compiler_pic_CXX
12552 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12553 allow_undefined_flag_CXX=
12554 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12555 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }
12560 archive_cmds_need_lc_CXX=no
12562 archive_cmds_need_lc_CXX=yes
12564 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12566 cat conftest.err 1>&5
12569 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12570 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12577 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12578 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12579 library_names_spec=
12580 libname_spec='lib$name'
12584 postuninstall_cmds=
12588 shlibpath_overrides_runpath=unknown
12590 dynamic_linker="$host_os ld.so"
12591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12593 need_lib_prefix=unknown
12594 hardcode_into_libs=no
12596 # when you set need_version to no, make sure it does not cause -set_version
12597 # flags to be left without arguments
12598 need_version=unknown
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12604 shlibpath_var=LIBPATH
12606 # AIX 3 has no versioning support, so we append a major version to the name.
12607 soname_spec='${libname}${release}${shared_ext}$major'
12614 hardcode_into_libs=yes
12615 if test "$host_cpu" = ia64; then
12616 # AIX 5 supports IA64
12617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12618 shlibpath_var=LD_LIBRARY_PATH
12620 # With GCC up to 2.95.x, collect2 would create an import file
12621 # for dependence libraries. The import file would start with
12622 # the line `#! .'. This would cause the generated library to
12623 # depend on `.', always an invalid library. This was fixed in
12624 # development snapshots of GCC prior to 3.0.
12626 aix4 | aix4.[01] | aix4.[01].*)
12627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12632 can_build_shared=no
12636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12637 # soname into executable. Probably we can add versioning support to
12638 # collect2, so additional links can be useful in future.
12639 if test "$aix_use_runtimelinking" = yes; then
12640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12641 # instead of lib<name>.a to let people know that these are not
12642 # typical AIX shared libraries.
12643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12645 # We preserve .a as extension for shared libraries through AIX4.2
12646 # and later when we are not doing run time linking.
12647 library_names_spec='${libname}${release}.a $libname.a'
12648 soname_spec='${libname}${release}${shared_ext}$major'
12650 shlibpath_var=LIBPATH
12655 library_names_spec='$libname.ixlibrary $libname.a'
12656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12657 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'
12661 library_names_spec='${libname}${shared_ext}'
12662 dynamic_linker="$host_os ld.so"
12663 shlibpath_var=LIBRARY_PATH
12669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12670 soname_spec='${libname}${release}${shared_ext}$major'
12671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12672 shlibpath_var=LD_LIBRARY_PATH
12673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12675 # the default ld.so.conf also contains /usr/contrib/lib and
12676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12677 # libtool to hard-code these into programs
12680 cygwin* | mingw* | pw32*)
12681 version_type=windows
12686 case $GCC,$host_os in
12687 yes,cygwin* | yes,mingw* | yes,pw32*)
12688 library_names_spec='$libname.dll.a'
12689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12690 postinstall_cmds='base_file=`basename \${file}`~
12691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12692 dldir=$destdir/`dirname \$dlpath`~
12693 test -d \$dldir || mkdir -p \$dldir~
12694 $install_prog $dir/$dlname \$dldir/$dlname~
12695 chmod a+x \$dldir/$dlname'
12696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12697 dlpath=$dir/\$dldll~
12699 shlibpath_overrides_runpath=yes
12703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12705 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12708 # MinGW DLLs use traditional 'lib' prefix
12709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12711 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12712 # It is most probably a Windows format PATH printed by
12713 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12714 # path with ; separators, and with drive letters. We can handle the
12715 # drive letters (cygwin fileutils understands them), so leave them,
12716 # especially as we might pass files found there to a mingw objdump,
12717 # which wouldn't understand a cygwinified path. Ahh.
12718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12724 # pw32 DLLs use 'pw' prefix rather than 'lib'
12725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12734 dynamic_linker='Win32 ld.exe'
12735 # FIXME: first we should search . and the directory the executable is in
12739 darwin* | rhapsody*)
12740 dynamic_linker="$host_os dyld"
12741 version_type=darwin
12744 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12745 soname_spec='${libname}${release}${major}$shared_ext'
12746 shlibpath_overrides_runpath=yes
12747 shlibpath_var=DYLD_LIBRARY_PATH
12748 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12758 soname_spec='${libname}${release}${shared_ext}$major'
12759 shlibpath_var=LD_LIBRARY_PATH
12766 freebsd* | dragonfly*)
12767 # DragonFly does not have aout. When/if they implement a new
12768 # versioning mechanism, adjust this.
12769 if test -x /usr/bin/objformat; then
12770 objformat=`/usr/bin/objformat`
12773 freebsd[123]*) objformat=aout ;;
12774 *) objformat=elf ;;
12777 version_type=freebsd-$objformat
12778 case $version_type in
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12789 shlibpath_var=LD_LIBRARY_PATH
12792 shlibpath_overrides_runpath=yes
12794 freebsd3.[01]* | freebsdelf3.[01]*)
12795 shlibpath_overrides_runpath=yes
12796 hardcode_into_libs=yes
12798 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12799 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12800 shlibpath_overrides_runpath=no
12801 hardcode_into_libs=yes
12803 *) # from 4.6 on, and DragonFly
12804 shlibpath_overrides_runpath=yes
12805 hardcode_into_libs=yes
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12815 soname_spec='${libname}${release}${shared_ext}$major'
12816 shlibpath_var=LD_LIBRARY_PATH
12817 hardcode_into_libs=yes
12820 hpux9* | hpux10* | hpux11*)
12821 # Give a soname corresponding to the major version so that dld.sl refuses to
12822 # link against other versions.
12829 hardcode_into_libs=yes
12830 dynamic_linker="$host_os dld.so"
12831 shlibpath_var=LD_LIBRARY_PATH
12832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12834 soname_spec='${libname}${release}${shared_ext}$major'
12835 if test "X$HPUX_IA64_MODE" = X32; then
12836 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12838 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12844 hardcode_into_libs=yes
12845 dynamic_linker="$host_os dld.sl"
12846 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12849 soname_spec='${libname}${release}${shared_ext}$major'
12850 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12855 dynamic_linker="$host_os dld.sl"
12856 shlibpath_var=SHLIB_PATH
12857 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12859 soname_spec='${libname}${release}${shared_ext}$major'
12862 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12863 postinstall_cmds='chmod 555 $lib'
12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12871 soname_spec='${libname}${release}${shared_ext}$major'
12872 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12873 shlibpath_var=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath=no
12875 hardcode_into_libs=yes
12878 irix5* | irix6* | nonstopux*)
12880 nonstopux*) version_type=nonstopux ;;
12882 if test "$lt_cv_prog_gnu_ld" = yes; then
12890 soname_spec='${libname}${release}${shared_ext}$major'
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12893 irix5* | nonstopux*)
12894 libsuff= shlibsuff=
12897 case $LD in # libtool.m4 will add one of these switches to LD
12898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12899 libsuff= shlibsuff= libmagic=32-bit;;
12900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12901 libsuff=32 shlibsuff=N32 libmagic=N32;;
12902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12903 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12904 *) libsuff= shlibsuff= libmagic=never-match;;
12908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12909 shlibpath_overrides_runpath=no
12910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12912 hardcode_into_libs=yes
12915 # No shared lib support for Linux oldld, aout, or coff.
12916 linux*oldld* | linux*aout* | linux*coff*)
12920 # This must be Linux ELF.
12921 linux* | k*bsd*-gnu)
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926 soname_spec='${libname}${release}${shared_ext}$major'
12927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=no
12930 # This implies no fast_install, which is unacceptable.
12931 # Some rework will be needed to allow for fast_install
12932 # before this can be enabled.
12933 hardcode_into_libs=yes
12935 # find out which ABI we are using
12937 case "$host_cpu" in
12938 x86_64*|s390x*|powerpc64*)
12939 echo '#line 12939 "configure"' > conftest.$ac_ext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12941 (eval $ac_compile) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; then
12945 case `/usr/bin/file conftest.$ac_objext` in
12948 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12956 # Append ld.so.conf contents to the search path
12957 if test -f /etc/ld.so.conf; then
12958 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' ' '`
12959 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12962 # We used to test for /lib/ld.so.1 and disable shared libraries on
12963 # powerpc, because MkLinux only supported shared libraries with the
12964 # GNU dynamic linker. Since this was broken with cross compilers,
12965 # most powerpc-linux boxes support dynamic linking these days and
12966 # people can always --disable-shared, the test was removed, and we
12967 # assume the GNU/Linux dynamic linker is in use.
12968 dynamic_linker='GNU/Linux ld.so'
12975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12978 dynamic_linker='NetBSD (a.out) ld.so'
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12981 soname_spec='${libname}${release}${shared_ext}$major'
12982 dynamic_linker='NetBSD ld.elf_so'
12984 shlibpath_var=LD_LIBRARY_PATH
12985 shlibpath_overrides_runpath=yes
12986 hardcode_into_libs=yes
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 shlibpath_overrides_runpath=yes
13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001 soname_spec='${libname}${release}${shared_ext}$major'
13002 shlibpath_var=LD_LIBRARY_PATH
13003 shlibpath_overrides_runpath=yes
13008 sys_lib_dlsearch_path_spec="/usr/lib"
13010 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13012 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13013 *) need_version=no ;;
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13020 openbsd2.[89] | openbsd2.[89].*)
13021 shlibpath_overrides_runpath=no
13024 shlibpath_overrides_runpath=yes
13028 shlibpath_overrides_runpath=yes
13033 libname_spec='$name'
13036 library_names_spec='$libname${shared_ext} $libname.a'
13037 dynamic_linker='OS/2 ld.exe'
13038 shlibpath_var=LIBPATH
13041 osf3* | osf4* | osf5*)
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047 shlibpath_var=LD_LIBRARY_PATH
13048 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13049 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061 soname_spec='${libname}${release}${shared_ext}$major'
13062 shlibpath_var=LD_LIBRARY_PATH
13063 shlibpath_overrides_runpath=yes
13064 hardcode_into_libs=yes
13065 # ldd complains unless libraries are executable
13066 postinstall_cmds='chmod +x $lib'
13071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13073 shlibpath_var=LD_LIBRARY_PATH
13074 shlibpath_overrides_runpath=yes
13075 if test "$with_gnu_ld" = yes; then
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 case $host_vendor in
13088 shlibpath_overrides_runpath=no
13090 export_dynamic_flag_spec='${wl}-Blargedynsym'
13091 runpath_var=LD_RUN_PATH
13099 shlibpath_overrides_runpath=no
13100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13106 if test -d /usr/nec ;then
13108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13109 soname_spec='$libname${shared_ext}.$major'
13110 shlibpath_var=LD_LIBRARY_PATH
13114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13115 version_type=freebsd-elf
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13119 soname_spec='${libname}${release}${shared_ext}$major'
13120 shlibpath_var=LD_LIBRARY_PATH
13121 hardcode_into_libs=yes
13122 if test "$with_gnu_ld" = yes; then
13123 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13124 shlibpath_overrides_runpath=no
13126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13127 shlibpath_overrides_runpath=yes
13130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13134 sys_lib_dlsearch_path_spec='/usr/lib'
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 shlibpath_var=LD_LIBRARY_PATH
13148 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13149 echo "${ECHO_T}$dynamic_linker" >&6; }
13150 test "$dynamic_linker" = no && can_build_shared=no
13152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13153 if test "$GCC" = yes; then
13154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13157 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13158 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13159 hardcode_action_CXX=
13160 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13161 test -n "$runpath_var_CXX" || \
13162 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13164 # We can hardcode non-existant directories.
13165 if test "$hardcode_direct_CXX" != no &&
13166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13167 # have to relink, otherwise we might link with an installed library
13168 # when we should be linking with a yet-to-be-installed one
13169 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13170 test "$hardcode_minus_L_CXX" != no; then
13171 # Linking always hardcodes the temporary library directory.
13172 hardcode_action_CXX=relink
13174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13175 hardcode_action_CXX=immediate
13178 # We cannot hardcode anything, or else we can only hardcode existing
13180 hardcode_action_CXX=unsupported
13182 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13183 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13185 if test "$hardcode_action_CXX" = relink; then
13186 # Fast installation is not supported
13187 enable_fast_install=no
13188 elif test "$shlibpath_overrides_runpath" = yes ||
13189 test "$enable_shared" = no; then
13190 # Fast installation is not necessary
13191 enable_fast_install=needless
13195 # The else clause should only fire when bootstrapping the
13196 # libtool distribution, otherwise you forgot to ship ltmain.sh
13197 # with your package, and you will get complaints that there are
13198 # no rules to generate ltmain.sh.
13199 if test -f "$ltmain"; then
13200 # See if we are running on zsh, and set the options which allow our commands through
13201 # without removal of \ escapes.
13202 if test -n "${ZSH_VERSION+set}" ; then
13203 setopt NO_GLOB_SUBST
13205 # Now quote all the things that may contain metacharacters while being
13206 # careful not to overquote the AC_SUBSTed values. We take copies of the
13207 # variables and quote the copies for generation of the libtool script.
13208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13212 deplibs_check_method reload_flag reload_cmds need_locks \
13213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13214 lt_cv_sys_global_symbol_to_c_name_address \
13215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13216 old_postinstall_cmds old_postuninstall_cmds \
13220 lt_prog_compiler_wl_CXX \
13221 lt_prog_compiler_pic_CXX \
13222 lt_prog_compiler_static_CXX \
13223 lt_prog_compiler_no_builtin_flag_CXX \
13224 export_dynamic_flag_spec_CXX \
13225 thread_safe_flag_spec_CXX \
13226 whole_archive_flag_spec_CXX \
13227 enable_shared_with_static_runtimes_CXX \
13228 old_archive_cmds_CXX \
13229 old_archive_from_new_cmds_CXX \
13230 predep_objects_CXX \
13231 postdep_objects_CXX \
13234 compiler_lib_search_path_CXX \
13236 archive_expsym_cmds_CXX \
13237 postinstall_cmds_CXX \
13238 postuninstall_cmds_CXX \
13239 old_archive_from_expsyms_cmds_CXX \
13240 allow_undefined_flag_CXX \
13241 no_undefined_flag_CXX \
13242 export_symbols_cmds_CXX \
13243 hardcode_libdir_flag_spec_CXX \
13244 hardcode_libdir_flag_spec_ld_CXX \
13245 hardcode_libdir_separator_CXX \
13246 hardcode_automatic_CXX \
13248 module_expsym_cmds_CXX \
13249 lt_cv_prog_compiler_c_o_CXX \
13250 fix_srcfile_path_CXX \
13251 exclude_expsyms_CXX \
13252 include_expsyms_CXX; do
13255 old_archive_cmds_CXX | \
13256 old_archive_from_new_cmds_CXX | \
13257 archive_cmds_CXX | \
13258 archive_expsym_cmds_CXX | \
13259 module_cmds_CXX | \
13260 module_expsym_cmds_CXX | \
13261 old_archive_from_expsyms_cmds_CXX | \
13262 export_symbols_cmds_CXX | \
13263 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13264 postinstall_cmds | postuninstall_cmds | \
13265 old_postinstall_cmds | old_postuninstall_cmds | \
13266 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13267 # Double-quote double-evaled strings.
13268 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13277 *'\$0 --fallback-echo"')
13278 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13284 cat <<__EOF__ >> "$cfgfile"
13285 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13287 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13289 # Shell to use when invoking shell scripts.
13292 # Whether or not to build shared libraries.
13293 build_libtool_libs=$enable_shared
13295 # Whether or not to build static libraries.
13296 build_old_libs=$enable_static
13298 # Whether or not to add -lc for building shared libraries.
13299 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13301 # Whether or not to disallow shared libs when runtime libs are static
13302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13304 # Whether or not to optimize for fast installation.
13305 fast_install=$enable_fast_install
13308 host_alias=$host_alias
13312 # The build system.
13313 build_alias=$build_alias
13317 # An echo program that does not interpret backslashes.
13322 AR_FLAGS=$lt_AR_FLAGS
13327 # LTCC compiler flags.
13328 LTCFLAGS=$lt_LTCFLAGS
13330 # A language-specific compiler.
13331 CC=$lt_compiler_CXX
13333 # Is the compiler the GNU C compiler?
13336 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13337 gcc_ver=\`gcc -dumpversion\`
13342 # The linker used to build libraries.
13345 # Whether we need hard or soft links.
13348 # A BSD-compatible nm program.
13351 # A symbol stripping program
13354 # Used to examine libraries when file_magic_cmd begins "file"
13355 MAGIC_CMD=$MAGIC_CMD
13357 # Used on cygwin: DLL creation program.
13360 # Used on cygwin: object dumper.
13363 # Used on cygwin: assembler.
13366 # The name of the directory that contains temporary libtool files.
13369 # How to create reloadable object files.
13370 reload_flag=$lt_reload_flag
13371 reload_cmds=$lt_reload_cmds
13373 # How to pass a linker flag through the compiler.
13374 wl=$lt_lt_prog_compiler_wl_CXX
13376 # Object file suffix (normally "o").
13377 objext="$ac_objext"
13379 # Old archive suffix (normally "a").
13382 # Shared library suffix (normally ".so").
13383 shrext_cmds='$shrext_cmds'
13385 # Executable file suffix (normally "").
13388 # Additional compiler flags for building library objects.
13389 pic_flag=$lt_lt_prog_compiler_pic_CXX
13392 # What is the maximum length of a command?
13393 max_cmd_len=$lt_cv_sys_max_cmd_len
13395 # Does compiler simultaneously support -c and -o options?
13396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13398 # Must we lock files when doing compilation?
13399 need_locks=$lt_need_locks
13401 # Do we need the lib prefix for modules?
13402 need_lib_prefix=$need_lib_prefix
13404 # Do we need a version for libraries?
13405 need_version=$need_version
13407 # Whether dlopen is supported.
13408 dlopen_support=$enable_dlopen
13410 # Whether dlopen of programs is supported.
13411 dlopen_self=$enable_dlopen_self
13413 # Whether dlopen of statically linked programs is supported.
13414 dlopen_self_static=$enable_dlopen_self_static
13416 # Compiler flag to prevent dynamic linking.
13417 link_static_flag=$lt_lt_prog_compiler_static_CXX
13419 # Compiler flag to turn off builtin functions.
13420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13422 # Compiler flag to allow reflexive dlopens.
13423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13425 # Compiler flag to generate shared objects directly from archives.
13426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13428 # Compiler flag to generate thread-safe objects.
13429 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13431 # Library versioning type.
13432 version_type=$version_type
13434 # Format of library name prefix.
13435 libname_spec=$lt_libname_spec
13437 # List of archive names. First name is the real one, the rest are links.
13438 # The last name is the one that the linker finds with -lNAME.
13439 library_names_spec=$lt_library_names_spec
13441 # The coded name of the library, if different from the real name.
13442 soname_spec=$lt_soname_spec
13444 # Commands used to build and install an old-style archive.
13446 old_archive_cmds=$lt_old_archive_cmds_CXX
13447 old_postinstall_cmds=$lt_old_postinstall_cmds
13448 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13450 # Create an old-style archive from a shared archive.
13451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13453 # Create a temporary old-style archive to link instead of a shared archive.
13454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13456 # Commands used to build and install a shared archive.
13457 archive_cmds=$lt_archive_cmds_CXX
13458 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13459 postinstall_cmds=$lt_postinstall_cmds
13460 postuninstall_cmds=$lt_postuninstall_cmds
13462 # Commands used to build a loadable module (assumed same as above if empty)
13463 module_cmds=$lt_module_cmds_CXX
13464 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13466 # Commands to strip libraries.
13467 old_striplib=$lt_old_striplib
13468 striplib=$lt_striplib
13470 # Dependencies to place before the objects being linked to create a
13472 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13474 # Dependencies to place after the objects being linked to create a
13476 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13478 # Dependencies to place before the objects being linked to create a
13480 predeps=$lt_predeps_CXX
13482 # Dependencies to place after the objects being linked to create a
13484 postdeps=$lt_postdeps_CXX
13486 # The library search path used internally by the compiler when linking
13487 # a shared library.
13488 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"\`
13490 # Method to check whether dependent libraries are shared objects.
13491 deplibs_check_method=$lt_deplibs_check_method
13493 # Command to use when deplibs_check_method == file_magic.
13494 file_magic_cmd=$lt_file_magic_cmd
13496 # Flag that allows shared libraries with undefined symbols to be built.
13497 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13499 # Flag that forces no undefined symbols.
13500 no_undefined_flag=$lt_no_undefined_flag_CXX
13502 # Commands used to finish a libtool library installation in a directory.
13503 finish_cmds=$lt_finish_cmds
13505 # Same as above, but a single script fragment to be evaled but not shown.
13506 finish_eval=$lt_finish_eval
13508 # Take the output of nm and produce a listing of raw symbols and C names.
13509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13511 # Transform the output of nm in a proper C declaration
13512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13514 # Transform the output of nm in a C name address pair
13515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13517 # This is the shared library runtime path variable.
13518 runpath_var=$runpath_var
13520 # This is the shared library path variable.
13521 shlibpath_var=$shlibpath_var
13523 # Is shlibpath searched before the hard-coded library search path?
13524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13526 # How to hardcode a shared library path into an executable.
13527 hardcode_action=$hardcode_action_CXX
13529 # Whether we should hardcode library paths into libraries.
13530 hardcode_into_libs=$hardcode_into_libs
13532 # Flag to hardcode \$libdir into a binary during linking.
13533 # This must work even if \$libdir does not exist.
13534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13536 # If ld is used when linking, flag to hardcode \$libdir into
13537 # a binary during linking. This must work even if \$libdir does
13539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13541 # Whether we need a single -rpath flag with a separated argument.
13542 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13545 # resulting binary.
13546 hardcode_direct=$hardcode_direct_CXX
13548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13549 # resulting binary.
13550 hardcode_minus_L=$hardcode_minus_L_CXX
13552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13553 # the resulting binary.
13554 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13556 # Set to yes if building a shared library automatically hardcodes DIR into the library
13557 # and all subsequent libraries and executables linked against it.
13558 hardcode_automatic=$hardcode_automatic_CXX
13560 # Variables whose values should be saved in libtool wrapper scripts and
13561 # restored at relink time.
13562 variables_saved_for_relink="$variables_saved_for_relink"
13564 # Whether libtool must link a program against all its dependency libraries.
13565 link_all_deplibs=$link_all_deplibs_CXX
13567 # Compile-time system search path for libraries
13568 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"\`
13570 # Run-time system search path for libraries
13571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13573 # Fix the shell variable \$srcfile for the compiler.
13574 fix_srcfile_path=$lt_fix_srcfile_path
13576 # Set to yes if exported symbols are required.
13577 always_export_symbols=$always_export_symbols_CXX
13579 # The commands to list exported symbols.
13580 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13582 # The commands to extract the exported symbol list from a shared archive.
13583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13585 # Symbols that should not be listed in the preloaded symbols.
13586 exclude_expsyms=$lt_exclude_expsyms_CXX
13588 # Symbols that must always be exported.
13589 include_expsyms=$lt_include_expsyms_CXX
13591 # ### END LIBTOOL TAG CONFIG: $tagname
13597 # If there is no Makefile yet, we rely on a make rule to execute
13598 # `config.status --recheck' to rerun these tests and create the
13599 # libtool script then.
13600 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13601 if test -f "$ltmain_in"; then
13602 test -f Makefile && make "$ltmain"
13608 ac_cpp='$CPP $CPPFLAGS'
13609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13617 with_gnu_ldcxx=$with_gnu_ld
13618 with_gnu_ld=$lt_save_with_gnu_ld
13619 lt_cv_path_LDCXX=$lt_cv_path_LD
13620 lt_cv_path_LD=$lt_save_path_LD
13621 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13622 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13630 if test -n "$F77" && test "X$F77" != "Xno"; then
13633 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13634 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13638 archive_cmds_need_lc_F77=no
13639 allow_undefined_flag_F77=
13640 always_export_symbols_F77=no
13641 archive_expsym_cmds_F77=
13642 export_dynamic_flag_spec_F77=
13643 hardcode_direct_F77=no
13644 hardcode_libdir_flag_spec_F77=
13645 hardcode_libdir_flag_spec_ld_F77=
13646 hardcode_libdir_separator_F77=
13647 hardcode_minus_L_F77=no
13648 hardcode_automatic_F77=no
13650 module_expsym_cmds_F77=
13651 link_all_deplibs_F77=unknown
13652 old_archive_cmds_F77=$old_archive_cmds
13653 no_undefined_flag_F77=
13654 whole_archive_flag_spec_F77=
13655 enable_shared_with_static_runtimes_F77=no
13657 # Source file extension for f77 test sources.
13660 # Object file extension for compiled f77 test sources.
13664 # Code to be used in simple compile tests
13665 lt_simple_compile_test_code="\
13671 # Code to be used in simple link tests
13672 lt_simple_link_test_code="\
13677 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13679 # If no C compiler was specified, use CC.
13682 # If no C compiler flags were specified, use CFLAGS.
13683 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13685 # Allow CC to be a program name with arguments.
13689 # save warnings/boilerplate of simple test code
13690 ac_outfile=conftest.$ac_objext
13691 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13692 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13693 _lt_compiler_boilerplate=`cat conftest.err`
13696 ac_outfile=conftest.$ac_objext
13697 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13698 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13699 _lt_linker_boilerplate=`cat conftest.err`
13703 # Allow CC to be a program name with arguments.
13708 for cc_temp in $compiler""; do
13710 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13711 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13716 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13719 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13720 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13721 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13722 echo "${ECHO_T}$can_build_shared" >&6; }
13724 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13725 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13726 test "$can_build_shared" = "no" && enable_shared=no
13728 # On AIX, shared libraries and static libraries use the same namespace, and
13729 # are all built from PIC.
13732 test "$enable_shared" = yes && enable_static=no
13733 if test -n "$RANLIB"; then
13734 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13735 postinstall_cmds='$RANLIB $lib'
13739 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13740 test "$enable_shared" = yes && enable_static=no
13744 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13745 echo "${ECHO_T}$enable_shared" >&6; }
13747 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13748 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13749 # Make sure either enable_shared or enable_static is yes.
13750 test "$enable_shared" = yes || enable_static=yes
13751 { echo "$as_me:$LINENO: result: $enable_static" >&5
13752 echo "${ECHO_T}$enable_static" >&6; }
13757 lt_prog_compiler_wl_F77=
13758 lt_prog_compiler_pic_F77=
13759 lt_prog_compiler_static_F77=
13761 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13762 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13764 if test "$GCC" = yes; then
13765 lt_prog_compiler_wl_F77='-Wl,'
13766 lt_prog_compiler_static_F77='-static'
13770 # All AIX code is PIC.
13771 if test "$host_cpu" = ia64; then
13772 # AIX 5 now supports IA64 processor
13773 lt_prog_compiler_static_F77='-Bstatic'
13778 # FIXME: we need at least 68020 code to build shared libraries, but
13779 # adding the `-m68020' flag to GCC prevents building anything better,
13781 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13784 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13785 # PIC is the default for these OSes.
13788 mingw* | cygwin* | pw32* | os2*)
13789 # This hack is so that the source file can tell whether it is being
13790 # built for inclusion in a dll (and should export symbols for example).
13791 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13792 # (--disable-auto-import) libraries
13793 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13796 darwin* | rhapsody*)
13797 # PIC is the default on this platform
13798 # Common symbols not allowed in MH_DYLIB files
13799 lt_prog_compiler_pic_F77='-fno-common'
13803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13804 # Instead, we relocate shared libraries at runtime.
13808 # Just because we use GCC doesn't mean we suddenly get shared libraries
13809 # on systems that don't support them.
13810 lt_prog_compiler_can_build_shared_F77=no
13815 if test -d /usr/nec; then
13816 lt_prog_compiler_pic_F77=-Kconform_pic
13821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13822 # not for PA HP-UX.
13828 lt_prog_compiler_pic_F77='-fPIC'
13834 lt_prog_compiler_pic_F77='-fPIC'
13838 # PORTME Check for flag to pass linker flags through the system compiler.
13841 lt_prog_compiler_wl_F77='-Wl,'
13842 if test "$host_cpu" = ia64; then
13843 # AIX 5 now supports IA64 processor
13844 lt_prog_compiler_static_F77='-Bstatic'
13846 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13850 # PIC is the default on this platform
13851 # Common symbols not allowed in MH_DYLIB files
13852 case $cc_basename in
13854 lt_prog_compiler_pic_F77='-qnocommon'
13855 lt_prog_compiler_wl_F77='-Wl,'
13860 mingw* | cygwin* | pw32* | os2*)
13861 # This hack is so that the source file can tell whether it is being
13862 # built for inclusion in a dll (and should export symbols for example).
13863 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13866 hpux9* | hpux10* | hpux11*)
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13869 # not for PA HP-UX.
13875 lt_prog_compiler_pic_F77='+Z'
13878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13879 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13882 irix5* | irix6* | nonstopux*)
13883 lt_prog_compiler_wl_F77='-Wl,'
13884 # PIC (with -KPIC) is the default.
13885 lt_prog_compiler_static_F77='-non_shared'
13889 lt_prog_compiler_pic_F77='-KPIC'
13890 lt_prog_compiler_static_F77='-Bstatic'
13893 linux* | k*bsd*-gnu)
13894 case $cc_basename in
13896 lt_prog_compiler_wl_F77='-Wl,'
13897 lt_prog_compiler_pic_F77='-KPIC'
13898 lt_prog_compiler_static_F77='-static'
13900 pgcc* | pgf77* | pgf90* | pgf95*)
13901 # Portland Group compilers (*not* the Pentium gcc compiler,
13902 # which looks to be a dead project)
13903 lt_prog_compiler_wl_F77='-Wl,'
13904 lt_prog_compiler_pic_F77='-fpic'
13905 lt_prog_compiler_static_F77='-Bstatic'
13908 lt_prog_compiler_wl_F77='-Wl,'
13909 # All Alpha code is PIC.
13910 lt_prog_compiler_static_F77='-non_shared'
13913 case `$CC -V 2>&1 | sed 5q` in
13916 lt_prog_compiler_pic_F77='-KPIC'
13917 lt_prog_compiler_static_F77='-Bstatic'
13918 lt_prog_compiler_wl_F77='-Wl,'
13921 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13922 lt_prog_compiler_pic_F77='-KPIC'
13923 lt_prog_compiler_static_F77='-Bstatic'
13924 lt_prog_compiler_wl_F77=''
13931 osf3* | osf4* | osf5*)
13932 lt_prog_compiler_wl_F77='-Wl,'
13933 # All OSF/1 code is PIC.
13934 lt_prog_compiler_static_F77='-non_shared'
13938 lt_prog_compiler_static_F77='-non_shared'
13942 lt_prog_compiler_pic_F77='-KPIC'
13943 lt_prog_compiler_static_F77='-Bstatic'
13944 case $cc_basename in
13945 f77* | f90* | f95*)
13946 lt_prog_compiler_wl_F77='-Qoption ld ';;
13948 lt_prog_compiler_wl_F77='-Wl,';;
13953 lt_prog_compiler_wl_F77='-Qoption ld '
13954 lt_prog_compiler_pic_F77='-PIC'
13955 lt_prog_compiler_static_F77='-Bstatic'
13958 sysv4 | sysv4.2uw2* | sysv4.3*)
13959 lt_prog_compiler_wl_F77='-Wl,'
13960 lt_prog_compiler_pic_F77='-KPIC'
13961 lt_prog_compiler_static_F77='-Bstatic'
13965 if test -d /usr/nec ;then
13966 lt_prog_compiler_pic_F77='-Kconform_pic'
13967 lt_prog_compiler_static_F77='-Bstatic'
13971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13972 lt_prog_compiler_wl_F77='-Wl,'
13973 lt_prog_compiler_pic_F77='-KPIC'
13974 lt_prog_compiler_static_F77='-Bstatic'
13978 lt_prog_compiler_wl_F77='-Wl,'
13979 lt_prog_compiler_can_build_shared_F77=no
13983 lt_prog_compiler_pic_F77='-pic'
13984 lt_prog_compiler_static_F77='-Bstatic'
13988 lt_prog_compiler_can_build_shared_F77=no
13993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13994 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13997 # Check to make sure the PIC flag actually works.
13999 if test -n "$lt_prog_compiler_pic_F77"; then
14001 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14003 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 lt_prog_compiler_pic_works_F77=no
14007 ac_outfile=conftest.$ac_objext
14008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14009 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14010 # Insert the option either (1) after the last *FLAGS variable, or
14011 # (2) before a word containing "conftest.", or (3) at the end.
14012 # Note that $ac_compile itself does not contain backslashes and begins
14013 # with a dollar sign (not a hyphen), so the echo should work correctly.
14014 # The option is referenced via a variable to avoid confusing sed.
14015 lt_compile=`echo "$ac_compile" | $SED \
14016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14018 -e 's:$: $lt_compiler_flag:'`
14019 (eval echo "\"\$as_me:14019: $lt_compile\"" >&5)
14020 (eval "$lt_compile" 2>conftest.err)
14022 cat conftest.err >&5
14023 echo "$as_me:14023: \$? = $ac_status" >&5
14024 if (exit $ac_status) && test -s "$ac_outfile"; then
14025 # The compiler can only warn and ignore the option if not recognized
14026 # So say no if there are warnings other than the usual output.
14027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14030 lt_prog_compiler_pic_works_F77=yes
14036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14037 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14039 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14040 case $lt_prog_compiler_pic_F77 in
14042 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14045 lt_prog_compiler_pic_F77=
14046 lt_prog_compiler_can_build_shared_F77=no
14051 # For platforms which do not support PIC, -DPIC is meaningless:
14053 lt_prog_compiler_pic_F77=
14056 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14061 # Check to make sure the static flag actually works.
14063 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14064 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14066 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 lt_prog_compiler_static_works_F77=no
14070 save_LDFLAGS="$LDFLAGS"
14071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14074 # The linker can only warn and ignore the option if not recognized
14075 # So say no if there are warnings
14076 if test -s conftest.err; then
14077 # Append any errors to the config.log.
14078 cat conftest.err 1>&5
14079 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14081 if diff conftest.exp conftest.er2 >/dev/null; then
14082 lt_prog_compiler_static_works_F77=yes
14085 lt_prog_compiler_static_works_F77=yes
14089 LDFLAGS="$save_LDFLAGS"
14092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14093 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14095 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14098 lt_prog_compiler_static_F77=
14102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14104 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 lt_cv_prog_compiler_c_o_F77=no
14108 $rm -r conftest 2>/dev/null
14112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14114 lt_compiler_flag="-o out/conftest2.$ac_objext"
14115 # Insert the option either (1) after the last *FLAGS variable, or
14116 # (2) before a word containing "conftest.", or (3) at the end.
14117 # Note that $ac_compile itself does not contain backslashes and begins
14118 # with a dollar sign (not a hyphen), so the echo should work correctly.
14119 lt_compile=`echo "$ac_compile" | $SED \
14120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14122 -e 's:$: $lt_compiler_flag:'`
14123 (eval echo "\"\$as_me:14123: $lt_compile\"" >&5)
14124 (eval "$lt_compile" 2>out/conftest.err)
14126 cat out/conftest.err >&5
14127 echo "$as_me:14127: \$? = $ac_status" >&5
14128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14130 # The compiler can only warn and ignore the option if not recognized
14131 # So say no if there are warnings
14132 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14135 lt_cv_prog_compiler_c_o_F77=yes
14140 # SGI C++ compiler will create directory out/ii_files/ for
14141 # template instantiation
14142 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14143 $rm out/* && rmdir out
14149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14153 hard_links="nottested"
14154 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14155 # do not overwrite the value of need_locks provided by the user
14156 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14157 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14162 ln conftest.a conftest.b 2>&5 || hard_links=no
14163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14164 { echo "$as_me:$LINENO: result: $hard_links" >&5
14165 echo "${ECHO_T}$hard_links" >&6; }
14166 if test "$hard_links" = no; then
14167 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14168 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14175 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14176 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14179 allow_undefined_flag_F77=
14180 enable_shared_with_static_runtimes_F77=no
14182 archive_expsym_cmds_F77=
14183 old_archive_From_new_cmds_F77=
14184 old_archive_from_expsyms_cmds_F77=
14185 export_dynamic_flag_spec_F77=
14186 whole_archive_flag_spec_F77=
14187 thread_safe_flag_spec_F77=
14188 hardcode_libdir_flag_spec_F77=
14189 hardcode_libdir_flag_spec_ld_F77=
14190 hardcode_libdir_separator_F77=
14191 hardcode_direct_F77=no
14192 hardcode_minus_L_F77=no
14193 hardcode_shlibpath_var_F77=unsupported
14194 link_all_deplibs_F77=unknown
14195 hardcode_automatic_F77=no
14197 module_expsym_cmds_F77=
14198 always_export_symbols_F77=no
14199 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14200 # include_expsyms should be a list of space-separated symbols to be *always*
14201 # included in the symbol list
14202 include_expsyms_F77=
14203 # exclude_expsyms can be an extended regexp of symbols to exclude
14204 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14205 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14206 # as well as any symbol that contains `d'.
14207 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14208 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14209 # platforms (ab)use it in PIC code, but their linkers get confused if
14210 # the symbol is explicitly referenced. Since portable code cannot
14211 # rely on this symbol name, it's probably fine to never include it in
14212 # preloaded symbol tables.
14213 extract_expsyms_cmds=
14214 # Just being paranoid about ensuring that cc_basename is set.
14215 for cc_temp in $compiler""; do
14217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14226 cygwin* | mingw* | pw32*)
14227 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14228 # When not using gcc, we currently assume that we are using
14229 # Microsoft Visual C++.
14230 if test "$GCC" != yes; then
14235 # we just hope/assume this is gcc and not c89 (= MSVC++)
14244 if test "$with_gnu_ld" = yes; then
14245 # If archive_cmds runs LD, not CC, wlarc should be empty
14248 # Set some defaults for GNU ld with shared library support. These
14249 # are reset later if shared libraries are not supported. Putting them
14250 # here allows them to be overridden if necessary.
14251 runpath_var=LD_RUN_PATH
14252 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14253 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14254 # ancient GNU ld didn't support --whole-archive et. al.
14255 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14256 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14258 whole_archive_flag_spec_F77=
14260 supports_anon_versioning=no
14261 case `$LD -v 2>/dev/null` in
14262 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14263 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14264 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14265 *\ 2.11.*) ;; # other 2.11 versions
14266 *) supports_anon_versioning=yes ;;
14269 # See if GNU ld supports shared libraries.
14271 aix3* | aix4* | aix5*)
14272 # On AIX/PPC, the GNU linker is very broken
14273 if test "$host_cpu" != ia64; then
14277 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14278 *** to be unable to reliably create shared libraries on AIX.
14279 *** Therefore, libtool is disabling shared libraries support. If you
14280 *** really care for shared libraries, you may want to modify your PATH
14281 *** so that a non-GNU linker is found, and then restart.
14288 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)'
14289 hardcode_libdir_flag_spec_F77='-L$libdir'
14290 hardcode_minus_L_F77=yes
14292 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14293 # that the semantics of dynamic libraries on AmigaOS, at least up
14294 # to version 4, is to share data among multiple programs linked
14295 # with the same dynamic library. Since this doesn't match the
14296 # behavior of shared libraries on other platforms, we can't use
14302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14303 allow_undefined_flag_F77=unsupported
14304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14305 # support --undefined. This deserves some investigation. FIXME
14306 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14312 cygwin* | mingw* | pw32*)
14313 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14314 # as there is no search path for DLLs.
14315 hardcode_libdir_flag_spec_F77='-L$libdir'
14316 allow_undefined_flag_F77=unsupported
14317 always_export_symbols_F77=no
14318 enable_shared_with_static_runtimes_F77=yes
14319 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14321 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14322 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14323 # If the export-symbols file already is a .def file (1st line
14324 # is EXPORTS), use it as is; otherwise, prepend...
14325 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14326 cp $export_symbols $output_objdir/$soname.def;
14328 echo EXPORTS > $output_objdir/$soname.def;
14329 cat $export_symbols >> $output_objdir/$soname.def;
14331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14338 hardcode_direct_F77=no
14339 hardcode_shlibpath_var_F77=no
14340 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14341 export_dynamic_flag_spec_F77='${wl}-E'
14342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14343 # Instead, shared libraries are loaded at an image base (0x10000000 by
14344 # default) and relocated if they conflict, which is a slow very memory
14345 # consuming and fragmenting process. To avoid this, we pick a random,
14346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14348 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'
14349 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'
14352 gnu* | linux* | k*bsd*-gnu)
14353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14355 case $cc_basename,$host_cpu in
14356 pgcc*) # Portland Group C compiler
14357 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'
14358 tmp_addflag=' $pic_flag'
14360 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14361 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'
14362 tmp_addflag=' $pic_flag -Mnomain' ;;
14363 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14364 tmp_addflag=' -i_dynamic' ;;
14365 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14366 tmp_addflag=' -i_dynamic -nofor_main' ;;
14367 ifc* | ifort*) # Intel Fortran compiler
14368 tmp_addflag=' -nofor_main' ;;
14370 case `$CC -V 2>&1 | sed 5q` in
14371 *Sun\ C*) # Sun C 5.9
14372 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'
14373 tmp_sharedflag='-G' ;;
14374 *Sun\ F*) # Sun Fortran 8.3
14375 tmp_sharedflag='-G' ;;
14377 tmp_sharedflag='-shared' ;;
14379 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14381 if test $supports_anon_versioning = yes; then
14382 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14384 $echo "local: *; };" >> $output_objdir/$libname.ver~
14385 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14394 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14397 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14398 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14403 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14408 *** create shared libraries on Solaris systems. Therefore, libtool
14409 *** is disabling shared libraries support. We urge you to upgrade GNU
14410 *** binutils to release 2.9.1 or newer. Another option is to modify
14411 *** your PATH or compiler configuration so that the native linker is
14412 *** used, and then restart.
14415 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14416 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14417 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14424 case `$LD -v 2>&1` in
14425 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14429 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14430 *** reliably create shared libraries on SCO systems. Therefore, libtool
14431 *** is disabling shared libraries support. We urge you to upgrade GNU
14432 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14433 *** your PATH or compiler configuration so that the native linker is
14434 *** used, and then restart.
14439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14440 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14441 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14442 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14451 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_direct_F77=yes
14454 hardcode_shlibpath_var_F77=no
14458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14459 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14460 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14467 if test "$ld_shlibs_F77" = no; then
14469 hardcode_libdir_flag_spec_F77=
14470 export_dynamic_flag_spec_F77=
14471 whole_archive_flag_spec_F77=
14474 # PORTME fill in a description of your system's linker (not GNU ld)
14477 allow_undefined_flag_F77=unsupported
14478 always_export_symbols_F77=yes
14479 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'
14480 # Note: this linker hardcodes the directories in LIBPATH if there
14481 # are no directories specified by -L.
14482 hardcode_minus_L_F77=yes
14483 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14484 # Neither direct hardcoding nor static linking is supported with a
14486 hardcode_direct_F77=unsupported
14491 if test "$host_cpu" = ia64; then
14492 # On IA64, the linker does run time linking by default, so we don't
14493 # have to do anything special.
14494 aix_use_runtimelinking=no
14495 exp_sym_flag='-Bexport'
14498 # If we're using GNU nm, then we don't want the "-C" option.
14499 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14500 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14501 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'
14503 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'
14505 aix_use_runtimelinking=no
14507 # Test if we are trying to use run time linking or normal
14508 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14509 # need to do runtime linking.
14510 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14511 for ld_flag in $LDFLAGS; do
14512 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14513 aix_use_runtimelinking=yes
14520 exp_sym_flag='-bexport'
14521 no_entry_flag='-bnoentry'
14524 # When large executables or shared objects are built, AIX ld can
14525 # have problems creating the table of contents. If linking a library
14526 # or program results in "error TOC overflow" add -mminimal-toc to
14527 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14528 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14530 archive_cmds_F77=''
14531 hardcode_direct_F77=yes
14532 hardcode_libdir_separator_F77=':'
14533 link_all_deplibs_F77=yes
14535 if test "$GCC" = yes; then
14536 case $host_os in aix4.[012]|aix4.[012].*)
14537 # We only want to do this on AIX 4.2 and lower, the check
14538 # below for broken collect2 doesn't work under 4.3+
14539 collect2name=`${CC} -print-prog-name=collect2`
14540 if test -f "$collect2name" && \
14541 strings "$collect2name" | grep resolve_lib_name >/dev/null
14543 # We have reworked collect2
14546 # We have old collect2
14547 hardcode_direct_F77=unsupported
14548 # It fails to find uninstalled libraries when the uninstalled
14549 # path is not listed in the libpath. Setting hardcode_minus_L
14550 # to unsupported forces relinking
14551 hardcode_minus_L_F77=yes
14552 hardcode_libdir_flag_spec_F77='-L$libdir'
14553 hardcode_libdir_separator_F77=
14557 shared_flag='-shared'
14558 if test "$aix_use_runtimelinking" = yes; then
14559 shared_flag="$shared_flag "'${wl}-G'
14563 if test "$host_cpu" = ia64; then
14564 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14565 # chokes on -Wl,-G. The following line is correct:
14568 if test "$aix_use_runtimelinking" = yes; then
14569 shared_flag='${wl}-G'
14571 shared_flag='${wl}-bM:SRE'
14576 # It seems that -bexpall does not export symbols beginning with
14577 # underscore (_), so it is better to generate a list of symbols to export.
14578 always_export_symbols_F77=yes
14579 if test "$aix_use_runtimelinking" = yes; then
14580 # Warning - without using the other runtime loading flags (-brtl),
14581 # -berok will link without error, but may produce a broken library.
14582 allow_undefined_flag_F77='-berok'
14583 # Determine the default libpath from the value encoded in an empty executable.
14584 cat >conftest.$ac_ext <<_ACEOF
14589 rm -f conftest.$ac_objext conftest$ac_exeext
14590 if { (ac_try="$ac_link"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_link") 2>conftest.er1
14598 grep -v '^ *+' conftest.er1 >conftest.err
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_f77_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest$ac_exeext &&
14606 $as_test_x conftest$ac_exeext; then
14608 lt_aix_libpath_sed='
14609 /Import File Strings/,/^$/ {
14615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14616 # Check for a 64-bit object if we didn't find anything.
14617 if test -z "$aix_libpath"; then
14618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14628 conftest$ac_exeext conftest.$ac_ext
14629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14631 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14632 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"
14634 if test "$host_cpu" = ia64; then
14635 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14636 allow_undefined_flag_F77="-z nodefs"
14637 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"
14639 # Determine the default libpath from the value encoded in an empty executable.
14640 cat >conftest.$ac_ext <<_ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_f77_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest$ac_exeext &&
14662 $as_test_x conftest$ac_exeext; then
14664 lt_aix_libpath_sed='
14665 /Import File Strings/,/^$/ {
14671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14672 # Check for a 64-bit object if we didn't find anything.
14673 if test -z "$aix_libpath"; then
14674 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14684 conftest$ac_exeext conftest.$ac_ext
14685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14687 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14688 # Warning - without using the other run time loading flags,
14689 # -berok will link without error, but may produce a broken library.
14690 no_undefined_flag_F77=' ${wl}-bernotok'
14691 allow_undefined_flag_F77=' ${wl}-berok'
14692 # Exported symbols can be pulled into shared objects from archives
14693 whole_archive_flag_spec_F77='$convenience'
14694 archive_cmds_need_lc_F77=yes
14695 # This is similar to how AIX traditionally builds its shared libraries.
14696 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'
14702 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)'
14703 hardcode_libdir_flag_spec_F77='-L$libdir'
14704 hardcode_minus_L_F77=yes
14705 # see comment about different semantics on the GNU ld section
14710 export_dynamic_flag_spec_F77=-rdynamic
14713 cygwin* | mingw* | pw32*)
14714 # When not using gcc, we currently assume that we are using
14715 # Microsoft Visual C++.
14716 # hardcode_libdir_flag_spec is actually meaningless, as there is
14717 # no search path for DLLs.
14718 hardcode_libdir_flag_spec_F77=' '
14719 allow_undefined_flag_F77=unsupported
14720 # Tell ltmain to make .lib files, not .a files.
14722 # Tell ltmain to make .dll files, not .so files.
14724 # FIXME: Setting linknames here is a bad hack.
14725 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14726 # The linker will automatically build a .lib file if we build a DLL.
14727 old_archive_From_new_cmds_F77='true'
14728 # FIXME: Should let the user specify the lib program.
14729 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14730 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14731 enable_shared_with_static_runtimes_F77=yes
14734 darwin* | rhapsody*)
14736 rhapsody* | darwin1.[012])
14737 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14740 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14741 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14743 case ${MACOSX_DEPLOYMENT_TARGET} in
14745 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14748 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14754 archive_cmds_need_lc_F77=no
14755 hardcode_direct_F77=no
14756 hardcode_automatic_F77=yes
14757 hardcode_shlibpath_var_F77=unsupported
14758 whole_archive_flag_spec_F77=''
14759 link_all_deplibs_F77=yes
14760 if test "$GCC" = yes ; then
14761 output_verbose_link_cmd='echo'
14762 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14763 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14764 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14765 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}'
14766 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}'
14768 case $cc_basename in
14770 output_verbose_link_cmd='echo'
14771 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14772 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14773 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14774 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}'
14775 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}'
14785 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786 hardcode_libdir_flag_spec_F77='-L$libdir'
14787 hardcode_shlibpath_var_F77=no
14794 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14795 # support. Future versions do this automatically, but an explicit c++rt0.o
14796 # does not break anything, and helps significantly (at the cost of a little
14799 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14800 hardcode_libdir_flag_spec_F77='-R$libdir'
14801 hardcode_direct_F77=yes
14802 hardcode_shlibpath_var_F77=no
14805 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14807 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14808 hardcode_direct_F77=yes
14809 hardcode_minus_L_F77=yes
14810 hardcode_shlibpath_var_F77=no
14813 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14814 freebsd* | dragonfly*)
14815 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14816 hardcode_libdir_flag_spec_F77='-R$libdir'
14817 hardcode_direct_F77=yes
14818 hardcode_shlibpath_var_F77=no
14822 if test "$GCC" = yes; then
14823 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'
14825 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'
14827 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14828 hardcode_libdir_separator_F77=:
14829 hardcode_direct_F77=yes
14831 # hardcode_minus_L: Not really in the search PATH,
14832 # but as the default location of the library.
14833 hardcode_minus_L_F77=yes
14834 export_dynamic_flag_spec_F77='${wl}-E'
14838 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14839 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14841 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14843 if test "$with_gnu_ld" = no; then
14844 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14845 hardcode_libdir_separator_F77=:
14847 hardcode_direct_F77=yes
14848 export_dynamic_flag_spec_F77='${wl}-E'
14850 # hardcode_minus_L: Not really in the search PATH,
14851 # but as the default location of the library.
14852 hardcode_minus_L_F77=yes
14857 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14860 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14863 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14866 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14872 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14875 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14878 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14882 if test "$with_gnu_ld" = no; then
14883 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14884 hardcode_libdir_separator_F77=:
14888 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14889 hardcode_direct_F77=no
14890 hardcode_shlibpath_var_F77=no
14893 hardcode_direct_F77=yes
14894 export_dynamic_flag_spec_F77='${wl}-E'
14896 # hardcode_minus_L: Not really in the search PATH,
14897 # but as the default location of the library.
14898 hardcode_minus_L_F77=yes
14904 irix5* | irix6* | nonstopux*)
14905 if test "$GCC" = yes; then
14906 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'
14908 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'
14909 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14911 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14912 hardcode_libdir_separator_F77=:
14913 link_all_deplibs_F77=yes
14917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14918 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14920 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14922 hardcode_libdir_flag_spec_F77='-R$libdir'
14923 hardcode_direct_F77=yes
14924 hardcode_shlibpath_var_F77=no
14928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929 hardcode_direct_F77=yes
14930 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14931 hardcode_libdir_separator_F77=:
14932 hardcode_shlibpath_var_F77=no
14936 if test -f /usr/libexec/ld.so; then
14937 hardcode_direct_F77=yes
14938 hardcode_shlibpath_var_F77=no
14939 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14940 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14941 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14942 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14943 export_dynamic_flag_spec_F77='${wl}-E'
14946 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14947 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14948 hardcode_libdir_flag_spec_F77='-R$libdir'
14951 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14952 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14962 hardcode_libdir_flag_spec_F77='-L$libdir'
14963 hardcode_minus_L_F77=yes
14964 allow_undefined_flag_F77=unsupported
14965 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'
14966 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14970 if test "$GCC" = yes; then
14971 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14972 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'
14974 allow_undefined_flag_F77=' -expect_unresolved \*'
14975 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'
14977 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14978 hardcode_libdir_separator_F77=:
14981 osf4* | osf5*) # as osf3* with the addition of -msym flag
14982 if test "$GCC" = yes; then
14983 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14984 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'
14985 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14987 allow_undefined_flag_F77=' -expect_unresolved \*'
14988 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'
14989 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~
14990 $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'
14992 # Both c and cxx compiler support -rpath directly
14993 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14995 hardcode_libdir_separator_F77=:
14999 no_undefined_flag_F77=' -z text'
15000 if test "$GCC" = yes; then
15002 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15003 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15004 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15007 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15011 hardcode_libdir_flag_spec_F77='-R$libdir'
15012 hardcode_shlibpath_var_F77=no
15014 solaris2.[0-5] | solaris2.[0-5].*) ;;
15016 # The compiler driver will combine and reorder linker options,
15017 # but understands `-z linker_flag'. GCC discards it without `$wl',
15018 # but is careful enough not to reorder.
15019 # Supported since Solaris 2.6 (maybe 2.5.1?)
15020 if test "$GCC" = yes; then
15021 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15023 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15027 link_all_deplibs_F77=yes
15031 if test "x$host_vendor" = xsequent; then
15032 # Use $CC to link under sequent, because it throws in some extra .o
15033 # files that make .init and .fini sections work.
15034 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15036 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15038 hardcode_libdir_flag_spec_F77='-L$libdir'
15039 hardcode_direct_F77=yes
15040 hardcode_minus_L_F77=yes
15041 hardcode_shlibpath_var_F77=no
15045 case $host_vendor in
15047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15048 hardcode_direct_F77=yes # is this really true???
15051 ## LD is ld it makes a PLAMLIB
15052 ## CC just makes a GrossModule.
15053 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15054 reload_cmds_F77='$CC -r -o $output$reload_objs'
15055 hardcode_direct_F77=no
15058 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15059 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15062 runpath_var='LD_RUN_PATH'
15063 hardcode_shlibpath_var_F77=no
15067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068 hardcode_shlibpath_var_F77=no
15069 export_dynamic_flag_spec_F77='-Bexport'
15073 if test -d /usr/nec; then
15074 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_shlibpath_var_F77=no
15076 runpath_var=LD_RUN_PATH
15077 hardcode_runpath_var=yes
15082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15083 no_undefined_flag_F77='${wl}-z,text'
15084 archive_cmds_need_lc_F77=no
15085 hardcode_shlibpath_var_F77=no
15086 runpath_var='LD_RUN_PATH'
15088 if test "$GCC" = yes; then
15089 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 sysv5* | sco3.2v5* | sco5v6*)
15098 # Note: We can NOT use -z defs as we might desire, because we do not
15099 # link with -lc, and that would cause any symbols used from libc to
15100 # always be unresolved, which means just about no library would
15101 # ever link correctly. If we're not using GNU ld we use -z text
15102 # though, which does catch some bad symbols but isn't as heavy-handed
15104 no_undefined_flag_F77='${wl}-z,text'
15105 allow_undefined_flag_F77='${wl}-z,nodefs'
15106 archive_cmds_need_lc_F77=no
15107 hardcode_shlibpath_var_F77=no
15108 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15109 hardcode_libdir_separator_F77=':'
15110 link_all_deplibs_F77=yes
15111 export_dynamic_flag_spec_F77='${wl}-Bexport'
15112 runpath_var='LD_RUN_PATH'
15114 if test "$GCC" = yes; then
15115 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15116 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15118 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15119 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15124 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125 hardcode_libdir_flag_spec_F77='-L$libdir'
15126 hardcode_shlibpath_var_F77=no
15135 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15136 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15137 test "$ld_shlibs_F77" = no && can_build_shared=no
15140 # Do we need to explicitly link libc?
15142 case "x$archive_cmds_need_lc_F77" in
15144 # Assume -lc should be added
15145 archive_cmds_need_lc_F77=yes
15147 if test "$enable_shared" = yes && test "$GCC" = yes; then
15148 case $archive_cmds_F77 in
15150 # FIXME: we may have to deal with multi-command sequences.
15153 # Test whether the compiler implicitly links with -lc since on some
15154 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15155 # to ld, don't add -lc before -lgcc.
15156 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15157 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162 (eval $ac_compile) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } 2>conftest.err; then
15168 libobjs=conftest.$ac_objext
15170 wl=$lt_prog_compiler_wl_F77
15171 pic_flag=$lt_prog_compiler_pic_F77
15177 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15178 allow_undefined_flag_F77=
15179 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15180 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }
15185 archive_cmds_need_lc_F77=no
15187 archive_cmds_need_lc_F77=yes
15189 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15191 cat conftest.err 1>&5
15194 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15195 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15202 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15203 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15204 library_names_spec=
15205 libname_spec='lib$name'
15209 postuninstall_cmds=
15213 shlibpath_overrides_runpath=unknown
15215 dynamic_linker="$host_os ld.so"
15216 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15218 need_lib_prefix=unknown
15219 hardcode_into_libs=no
15221 # when you set need_version to no, make sure it does not cause -set_version
15222 # flags to be left without arguments
15223 need_version=unknown
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15229 shlibpath_var=LIBPATH
15231 # AIX 3 has no versioning support, so we append a major version to the name.
15232 soname_spec='${libname}${release}${shared_ext}$major'
15239 hardcode_into_libs=yes
15240 if test "$host_cpu" = ia64; then
15241 # AIX 5 supports IA64
15242 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15243 shlibpath_var=LD_LIBRARY_PATH
15245 # With GCC up to 2.95.x, collect2 would create an import file
15246 # for dependence libraries. The import file would start with
15247 # the line `#! .'. This would cause the generated library to
15248 # depend on `.', always an invalid library. This was fixed in
15249 # development snapshots of GCC prior to 3.0.
15251 aix4 | aix4.[01] | aix4.[01].*)
15252 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15254 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15257 can_build_shared=no
15261 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15262 # soname into executable. Probably we can add versioning support to
15263 # collect2, so additional links can be useful in future.
15264 if test "$aix_use_runtimelinking" = yes; then
15265 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15266 # instead of lib<name>.a to let people know that these are not
15267 # typical AIX shared libraries.
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 # We preserve .a as extension for shared libraries through AIX4.2
15271 # and later when we are not doing run time linking.
15272 library_names_spec='${libname}${release}.a $libname.a'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15275 shlibpath_var=LIBPATH
15280 library_names_spec='$libname.ixlibrary $libname.a'
15281 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15282 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'
15286 library_names_spec='${libname}${shared_ext}'
15287 dynamic_linker="$host_os ld.so"
15288 shlibpath_var=LIBRARY_PATH
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295 soname_spec='${libname}${release}${shared_ext}$major'
15296 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15297 shlibpath_var=LD_LIBRARY_PATH
15298 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15299 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15300 # the default ld.so.conf also contains /usr/contrib/lib and
15301 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15302 # libtool to hard-code these into programs
15305 cygwin* | mingw* | pw32*)
15306 version_type=windows
15311 case $GCC,$host_os in
15312 yes,cygwin* | yes,mingw* | yes,pw32*)
15313 library_names_spec='$libname.dll.a'
15314 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15315 postinstall_cmds='base_file=`basename \${file}`~
15316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15317 dldir=$destdir/`dirname \$dlpath`~
15318 test -d \$dldir || mkdir -p \$dldir~
15319 $install_prog $dir/$dlname \$dldir/$dlname~
15320 chmod a+x \$dldir/$dlname'
15321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15322 dlpath=$dir/\$dldll~
15324 shlibpath_overrides_runpath=yes
15328 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15329 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15333 # MinGW DLLs use traditional 'lib' prefix
15334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15335 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15336 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15337 # It is most probably a Windows format PATH printed by
15338 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15339 # path with ; separators, and with drive letters. We can handle the
15340 # drive letters (cygwin fileutils understands them), so leave them,
15341 # especially as we might pass files found there to a mingw objdump,
15342 # which wouldn't understand a cygwinified path. Ahh.
15343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15349 # pw32 DLLs use 'pw' prefix rather than 'lib'
15350 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15356 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15359 dynamic_linker='Win32 ld.exe'
15360 # FIXME: first we should search . and the directory the executable is in
15364 darwin* | rhapsody*)
15365 dynamic_linker="$host_os dyld"
15366 version_type=darwin
15369 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15370 soname_spec='${libname}${release}${major}$shared_ext'
15371 shlibpath_overrides_runpath=yes
15372 shlibpath_var=DYLD_LIBRARY_PATH
15373 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 shlibpath_var=LD_LIBRARY_PATH
15391 freebsd* | dragonfly*)
15392 # DragonFly does not have aout. When/if they implement a new
15393 # versioning mechanism, adjust this.
15394 if test -x /usr/bin/objformat; then
15395 objformat=`/usr/bin/objformat`
15398 freebsd[123]*) objformat=aout ;;
15399 *) objformat=elf ;;
15402 version_type=freebsd-$objformat
15403 case $version_type in
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15414 shlibpath_var=LD_LIBRARY_PATH
15417 shlibpath_overrides_runpath=yes
15419 freebsd3.[01]* | freebsdelf3.[01]*)
15420 shlibpath_overrides_runpath=yes
15421 hardcode_into_libs=yes
15423 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15424 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15425 shlibpath_overrides_runpath=no
15426 hardcode_into_libs=yes
15428 *) # from 4.6 on, and DragonFly
15429 shlibpath_overrides_runpath=yes
15430 hardcode_into_libs=yes
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 hardcode_into_libs=yes
15445 hpux9* | hpux10* | hpux11*)
15446 # Give a soname corresponding to the major version so that dld.sl refuses to
15447 # link against other versions.
15454 hardcode_into_libs=yes
15455 dynamic_linker="$host_os dld.so"
15456 shlibpath_var=LD_LIBRARY_PATH
15457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 if test "X$HPUX_IA64_MODE" = X32; then
15461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15469 hardcode_into_libs=yes
15470 dynamic_linker="$host_os dld.sl"
15471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15480 dynamic_linker="$host_os dld.sl"
15481 shlibpath_var=SHLIB_PATH
15482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15487 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15488 postinstall_cmds='chmod 555 $lib'
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15498 shlibpath_var=LD_LIBRARY_PATH
15499 shlibpath_overrides_runpath=no
15500 hardcode_into_libs=yes
15503 irix5* | irix6* | nonstopux*)
15505 nonstopux*) version_type=nonstopux ;;
15507 if test "$lt_cv_prog_gnu_ld" = yes; then
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15518 irix5* | nonstopux*)
15519 libsuff= shlibsuff=
15522 case $LD in # libtool.m4 will add one of these switches to LD
15523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15524 libsuff= shlibsuff= libmagic=32-bit;;
15525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15526 libsuff=32 shlibsuff=N32 libmagic=N32;;
15527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15529 *) libsuff= shlibsuff= libmagic=never-match;;
15533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15534 shlibpath_overrides_runpath=no
15535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15537 hardcode_into_libs=yes
15540 # No shared lib support for Linux oldld, aout, or coff.
15541 linux*oldld* | linux*aout* | linux*coff*)
15545 # This must be Linux ELF.
15546 linux* | k*bsd*-gnu)
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=no
15555 # This implies no fast_install, which is unacceptable.
15556 # Some rework will be needed to allow for fast_install
15557 # before this can be enabled.
15558 hardcode_into_libs=yes
15560 # find out which ABI we are using
15562 case "$host_cpu" in
15563 x86_64*|s390x*|powerpc64*)
15564 echo '#line 15564 "configure"' > conftest.$ac_ext
15565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15566 (eval $ac_compile) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; then
15570 case `/usr/bin/file conftest.$ac_objext` in
15573 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15581 # Append ld.so.conf contents to the search path
15582 if test -f /etc/ld.so.conf; then
15583 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' ' '`
15584 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15587 # We used to test for /lib/ld.so.1 and disable shared libraries on
15588 # powerpc, because MkLinux only supported shared libraries with the
15589 # GNU dynamic linker. Since this was broken with cross compilers,
15590 # most powerpc-linux boxes support dynamic linking these days and
15591 # people can always --disable-shared, the test was removed, and we
15592 # assume the GNU/Linux dynamic linker is in use.
15593 dynamic_linker='GNU/Linux ld.so'
15600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15603 dynamic_linker='NetBSD (a.out) ld.so'
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15606 soname_spec='${libname}${release}${shared_ext}$major'
15607 dynamic_linker='NetBSD ld.elf_so'
15609 shlibpath_var=LD_LIBRARY_PATH
15610 shlibpath_overrides_runpath=yes
15611 hardcode_into_libs=yes
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes
15633 sys_lib_dlsearch_path_spec="/usr/lib"
15635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15637 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15638 *) need_version=no ;;
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15645 openbsd2.[89] | openbsd2.[89].*)
15646 shlibpath_overrides_runpath=no
15649 shlibpath_overrides_runpath=yes
15653 shlibpath_overrides_runpath=yes
15658 libname_spec='$name'
15661 library_names_spec='$libname${shared_ext} $libname.a'
15662 dynamic_linker='OS/2 ld.exe'
15663 shlibpath_var=LIBPATH
15666 osf3* | osf4* | osf5*)
15670 soname_spec='${libname}${release}${shared_ext}$major'
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 shlibpath_overrides_runpath=yes
15689 hardcode_into_libs=yes
15690 # ldd complains unless libraries are executable
15691 postinstall_cmds='chmod +x $lib'
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15697 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=yes
15700 if test "$with_gnu_ld" = yes; then
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709 soname_spec='${libname}${release}${shared_ext}$major'
15710 shlibpath_var=LD_LIBRARY_PATH
15711 case $host_vendor in
15713 shlibpath_overrides_runpath=no
15715 export_dynamic_flag_spec='${wl}-Blargedynsym'
15716 runpath_var=LD_RUN_PATH
15724 shlibpath_overrides_runpath=no
15725 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15731 if test -d /usr/nec ;then
15733 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15734 soname_spec='$libname${shared_ext}.$major'
15735 shlibpath_var=LD_LIBRARY_PATH
15739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15740 version_type=freebsd-elf
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15744 soname_spec='${libname}${release}${shared_ext}$major'
15745 shlibpath_var=LD_LIBRARY_PATH
15746 hardcode_into_libs=yes
15747 if test "$with_gnu_ld" = yes; then
15748 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15749 shlibpath_overrides_runpath=no
15751 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15752 shlibpath_overrides_runpath=yes
15755 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15759 sys_lib_dlsearch_path_spec='/usr/lib'
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 shlibpath_var=LD_LIBRARY_PATH
15773 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15774 echo "${ECHO_T}$dynamic_linker" >&6; }
15775 test "$dynamic_linker" = no && can_build_shared=no
15777 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15778 if test "$GCC" = yes; then
15779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15782 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15783 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15784 hardcode_action_F77=
15785 if test -n "$hardcode_libdir_flag_spec_F77" || \
15786 test -n "$runpath_var_F77" || \
15787 test "X$hardcode_automatic_F77" = "Xyes" ; then
15789 # We can hardcode non-existant directories.
15790 if test "$hardcode_direct_F77" != no &&
15791 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15792 # have to relink, otherwise we might link with an installed library
15793 # when we should be linking with a yet-to-be-installed one
15794 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15795 test "$hardcode_minus_L_F77" != no; then
15796 # Linking always hardcodes the temporary library directory.
15797 hardcode_action_F77=relink
15799 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15800 hardcode_action_F77=immediate
15803 # We cannot hardcode anything, or else we can only hardcode existing
15805 hardcode_action_F77=unsupported
15807 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15808 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15810 if test "$hardcode_action_F77" = relink; then
15811 # Fast installation is not supported
15812 enable_fast_install=no
15813 elif test "$shlibpath_overrides_runpath" = yes ||
15814 test "$enable_shared" = no; then
15815 # Fast installation is not necessary
15816 enable_fast_install=needless
15820 # The else clause should only fire when bootstrapping the
15821 # libtool distribution, otherwise you forgot to ship ltmain.sh
15822 # with your package, and you will get complaints that there are
15823 # no rules to generate ltmain.sh.
15824 if test -f "$ltmain"; then
15825 # See if we are running on zsh, and set the options which allow our commands through
15826 # without removal of \ escapes.
15827 if test -n "${ZSH_VERSION+set}" ; then
15828 setopt NO_GLOB_SUBST
15830 # Now quote all the things that may contain metacharacters while being
15831 # careful not to overquote the AC_SUBSTed values. We take copies of the
15832 # variables and quote the copies for generation of the libtool script.
15833 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15837 deplibs_check_method reload_flag reload_cmds need_locks \
15838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15839 lt_cv_sys_global_symbol_to_c_name_address \
15840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15841 old_postinstall_cmds old_postuninstall_cmds \
15845 lt_prog_compiler_wl_F77 \
15846 lt_prog_compiler_pic_F77 \
15847 lt_prog_compiler_static_F77 \
15848 lt_prog_compiler_no_builtin_flag_F77 \
15849 export_dynamic_flag_spec_F77 \
15850 thread_safe_flag_spec_F77 \
15851 whole_archive_flag_spec_F77 \
15852 enable_shared_with_static_runtimes_F77 \
15853 old_archive_cmds_F77 \
15854 old_archive_from_new_cmds_F77 \
15855 predep_objects_F77 \
15856 postdep_objects_F77 \
15859 compiler_lib_search_path_F77 \
15861 archive_expsym_cmds_F77 \
15862 postinstall_cmds_F77 \
15863 postuninstall_cmds_F77 \
15864 old_archive_from_expsyms_cmds_F77 \
15865 allow_undefined_flag_F77 \
15866 no_undefined_flag_F77 \
15867 export_symbols_cmds_F77 \
15868 hardcode_libdir_flag_spec_F77 \
15869 hardcode_libdir_flag_spec_ld_F77 \
15870 hardcode_libdir_separator_F77 \
15871 hardcode_automatic_F77 \
15873 module_expsym_cmds_F77 \
15874 lt_cv_prog_compiler_c_o_F77 \
15875 fix_srcfile_path_F77 \
15876 exclude_expsyms_F77 \
15877 include_expsyms_F77; do
15880 old_archive_cmds_F77 | \
15881 old_archive_from_new_cmds_F77 | \
15882 archive_cmds_F77 | \
15883 archive_expsym_cmds_F77 | \
15884 module_cmds_F77 | \
15885 module_expsym_cmds_F77 | \
15886 old_archive_from_expsyms_cmds_F77 | \
15887 export_symbols_cmds_F77 | \
15888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15889 postinstall_cmds | postuninstall_cmds | \
15890 old_postinstall_cmds | old_postuninstall_cmds | \
15891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15892 # Double-quote double-evaled strings.
15893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15902 *'\$0 --fallback-echo"')
15903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15909 cat <<__EOF__ >> "$cfgfile"
15910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15914 # Shell to use when invoking shell scripts.
15917 # Whether or not to build shared libraries.
15918 build_libtool_libs=$enable_shared
15920 # Whether or not to build static libraries.
15921 build_old_libs=$enable_static
15923 # Whether or not to add -lc for building shared libraries.
15924 build_libtool_need_lc=$archive_cmds_need_lc_F77
15926 # Whether or not to disallow shared libs when runtime libs are static
15927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15929 # Whether or not to optimize for fast installation.
15930 fast_install=$enable_fast_install
15933 host_alias=$host_alias
15937 # The build system.
15938 build_alias=$build_alias
15942 # An echo program that does not interpret backslashes.
15947 AR_FLAGS=$lt_AR_FLAGS
15952 # LTCC compiler flags.
15953 LTCFLAGS=$lt_LTCFLAGS
15955 # A language-specific compiler.
15956 CC=$lt_compiler_F77
15958 # Is the compiler the GNU C compiler?
15961 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15962 gcc_ver=\`gcc -dumpversion\`
15967 # The linker used to build libraries.
15970 # Whether we need hard or soft links.
15973 # A BSD-compatible nm program.
15976 # A symbol stripping program
15979 # Used to examine libraries when file_magic_cmd begins "file"
15980 MAGIC_CMD=$MAGIC_CMD
15982 # Used on cygwin: DLL creation program.
15985 # Used on cygwin: object dumper.
15988 # Used on cygwin: assembler.
15991 # The name of the directory that contains temporary libtool files.
15994 # How to create reloadable object files.
15995 reload_flag=$lt_reload_flag
15996 reload_cmds=$lt_reload_cmds
15998 # How to pass a linker flag through the compiler.
15999 wl=$lt_lt_prog_compiler_wl_F77
16001 # Object file suffix (normally "o").
16002 objext="$ac_objext"
16004 # Old archive suffix (normally "a").
16007 # Shared library suffix (normally ".so").
16008 shrext_cmds='$shrext_cmds'
16010 # Executable file suffix (normally "").
16013 # Additional compiler flags for building library objects.
16014 pic_flag=$lt_lt_prog_compiler_pic_F77
16017 # What is the maximum length of a command?
16018 max_cmd_len=$lt_cv_sys_max_cmd_len
16020 # Does compiler simultaneously support -c and -o options?
16021 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16023 # Must we lock files when doing compilation?
16024 need_locks=$lt_need_locks
16026 # Do we need the lib prefix for modules?
16027 need_lib_prefix=$need_lib_prefix
16029 # Do we need a version for libraries?
16030 need_version=$need_version
16032 # Whether dlopen is supported.
16033 dlopen_support=$enable_dlopen
16035 # Whether dlopen of programs is supported.
16036 dlopen_self=$enable_dlopen_self
16038 # Whether dlopen of statically linked programs is supported.
16039 dlopen_self_static=$enable_dlopen_self_static
16041 # Compiler flag to prevent dynamic linking.
16042 link_static_flag=$lt_lt_prog_compiler_static_F77
16044 # Compiler flag to turn off builtin functions.
16045 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16047 # Compiler flag to allow reflexive dlopens.
16048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16050 # Compiler flag to generate shared objects directly from archives.
16051 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16053 # Compiler flag to generate thread-safe objects.
16054 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16056 # Library versioning type.
16057 version_type=$version_type
16059 # Format of library name prefix.
16060 libname_spec=$lt_libname_spec
16062 # List of archive names. First name is the real one, the rest are links.
16063 # The last name is the one that the linker finds with -lNAME.
16064 library_names_spec=$lt_library_names_spec
16066 # The coded name of the library, if different from the real name.
16067 soname_spec=$lt_soname_spec
16069 # Commands used to build and install an old-style archive.
16071 old_archive_cmds=$lt_old_archive_cmds_F77
16072 old_postinstall_cmds=$lt_old_postinstall_cmds
16073 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16075 # Create an old-style archive from a shared archive.
16076 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16078 # Create a temporary old-style archive to link instead of a shared archive.
16079 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16081 # Commands used to build and install a shared archive.
16082 archive_cmds=$lt_archive_cmds_F77
16083 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16084 postinstall_cmds=$lt_postinstall_cmds
16085 postuninstall_cmds=$lt_postuninstall_cmds
16087 # Commands used to build a loadable module (assumed same as above if empty)
16088 module_cmds=$lt_module_cmds_F77
16089 module_expsym_cmds=$lt_module_expsym_cmds_F77
16091 # Commands to strip libraries.
16092 old_striplib=$lt_old_striplib
16093 striplib=$lt_striplib
16095 # Dependencies to place before the objects being linked to create a
16097 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16099 # Dependencies to place after the objects being linked to create a
16101 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16103 # Dependencies to place before the objects being linked to create a
16105 predeps=$lt_predeps_F77
16107 # Dependencies to place after the objects being linked to create a
16109 postdeps=$lt_postdeps_F77
16111 # The library search path used internally by the compiler when linking
16112 # a shared library.
16113 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"\`
16115 # Method to check whether dependent libraries are shared objects.
16116 deplibs_check_method=$lt_deplibs_check_method
16118 # Command to use when deplibs_check_method == file_magic.
16119 file_magic_cmd=$lt_file_magic_cmd
16121 # Flag that allows shared libraries with undefined symbols to be built.
16122 allow_undefined_flag=$lt_allow_undefined_flag_F77
16124 # Flag that forces no undefined symbols.
16125 no_undefined_flag=$lt_no_undefined_flag_F77
16127 # Commands used to finish a libtool library installation in a directory.
16128 finish_cmds=$lt_finish_cmds
16130 # Same as above, but a single script fragment to be evaled but not shown.
16131 finish_eval=$lt_finish_eval
16133 # Take the output of nm and produce a listing of raw symbols and C names.
16134 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16136 # Transform the output of nm in a proper C declaration
16137 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16139 # Transform the output of nm in a C name address pair
16140 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16142 # This is the shared library runtime path variable.
16143 runpath_var=$runpath_var
16145 # This is the shared library path variable.
16146 shlibpath_var=$shlibpath_var
16148 # Is shlibpath searched before the hard-coded library search path?
16149 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16151 # How to hardcode a shared library path into an executable.
16152 hardcode_action=$hardcode_action_F77
16154 # Whether we should hardcode library paths into libraries.
16155 hardcode_into_libs=$hardcode_into_libs
16157 # Flag to hardcode \$libdir into a binary during linking.
16158 # This must work even if \$libdir does not exist.
16159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16161 # If ld is used when linking, flag to hardcode \$libdir into
16162 # a binary during linking. This must work even if \$libdir does
16164 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16166 # Whether we need a single -rpath flag with a separated argument.
16167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16169 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16170 # resulting binary.
16171 hardcode_direct=$hardcode_direct_F77
16173 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16174 # resulting binary.
16175 hardcode_minus_L=$hardcode_minus_L_F77
16177 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16178 # the resulting binary.
16179 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16181 # Set to yes if building a shared library automatically hardcodes DIR into the library
16182 # and all subsequent libraries and executables linked against it.
16183 hardcode_automatic=$hardcode_automatic_F77
16185 # Variables whose values should be saved in libtool wrapper scripts and
16186 # restored at relink time.
16187 variables_saved_for_relink="$variables_saved_for_relink"
16189 # Whether libtool must link a program against all its dependency libraries.
16190 link_all_deplibs=$link_all_deplibs_F77
16192 # Compile-time system search path for libraries
16193 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"\`
16195 # Run-time system search path for libraries
16196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16198 # Fix the shell variable \$srcfile for the compiler.
16199 fix_srcfile_path=$lt_fix_srcfile_path
16201 # Set to yes if exported symbols are required.
16202 always_export_symbols=$always_export_symbols_F77
16204 # The commands to list exported symbols.
16205 export_symbols_cmds=$lt_export_symbols_cmds_F77
16207 # The commands to extract the exported symbol list from a shared archive.
16208 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16210 # Symbols that should not be listed in the preloaded symbols.
16211 exclude_expsyms=$lt_exclude_expsyms_F77
16213 # Symbols that must always be exported.
16214 include_expsyms=$lt_include_expsyms_F77
16216 # ### END LIBTOOL TAG CONFIG: $tagname
16222 # If there is no Makefile yet, we rely on a make rule to execute
16223 # `config.status --recheck' to rerun these tests and create the
16224 # libtool script then.
16225 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16226 if test -f "$ltmain_in"; then
16227 test -f Makefile && make "$ltmain"
16233 ac_cpp='$CPP $CPPFLAGS'
16234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16246 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16249 # Source file extension for Java test sources.
16252 # Object file extension for compiled Java test sources.
16256 # Code to be used in simple compile tests
16257 lt_simple_compile_test_code="class foo {}"
16259 # Code to be used in simple link tests
16260 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16264 # If no C compiler was specified, use CC.
16267 # If no C compiler flags were specified, use CFLAGS.
16268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16270 # Allow CC to be a program name with arguments.
16274 # save warnings/boilerplate of simple test code
16275 ac_outfile=conftest.$ac_objext
16276 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16278 _lt_compiler_boilerplate=`cat conftest.err`
16281 ac_outfile=conftest.$ac_objext
16282 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16284 _lt_linker_boilerplate=`cat conftest.err`
16288 # Allow CC to be a program name with arguments.
16293 for cc_temp in $compiler""; do
16295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16305 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16306 archive_cmds_need_lc_GCJ=no
16308 old_archive_cmds_GCJ=$old_archive_cmds
16311 lt_prog_compiler_no_builtin_flag_GCJ=
16313 if test "$GCC" = yes; then
16314 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16317 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16318 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16319 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 lt_cv_prog_compiler_rtti_exceptions=no
16323 ac_outfile=conftest.$ac_objext
16324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16325 lt_compiler_flag="-fno-rtti -fno-exceptions"
16326 # Insert the option either (1) after the last *FLAGS variable, or
16327 # (2) before a word containing "conftest.", or (3) at the end.
16328 # Note that $ac_compile itself does not contain backslashes and begins
16329 # with a dollar sign (not a hyphen), so the echo should work correctly.
16330 # The option is referenced via a variable to avoid confusing sed.
16331 lt_compile=`echo "$ac_compile" | $SED \
16332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16334 -e 's:$: $lt_compiler_flag:'`
16335 (eval echo "\"\$as_me:16335: $lt_compile\"" >&5)
16336 (eval "$lt_compile" 2>conftest.err)
16338 cat conftest.err >&5
16339 echo "$as_me:16339: \$? = $ac_status" >&5
16340 if (exit $ac_status) && test -s "$ac_outfile"; then
16341 # The compiler can only warn and ignore the option if not recognized
16342 # So say no if there are warnings other than the usual output.
16343 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16345 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16346 lt_cv_prog_compiler_rtti_exceptions=yes
16352 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16353 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16355 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16356 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16363 lt_prog_compiler_wl_GCJ=
16364 lt_prog_compiler_pic_GCJ=
16365 lt_prog_compiler_static_GCJ=
16367 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16368 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16370 if test "$GCC" = yes; then
16371 lt_prog_compiler_wl_GCJ='-Wl,'
16372 lt_prog_compiler_static_GCJ='-static'
16376 # All AIX code is PIC.
16377 if test "$host_cpu" = ia64; then
16378 # AIX 5 now supports IA64 processor
16379 lt_prog_compiler_static_GCJ='-Bstatic'
16384 # FIXME: we need at least 68020 code to build shared libraries, but
16385 # adding the `-m68020' flag to GCC prevents building anything better,
16387 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16390 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16391 # PIC is the default for these OSes.
16394 mingw* | cygwin* | pw32* | os2*)
16395 # This hack is so that the source file can tell whether it is being
16396 # built for inclusion in a dll (and should export symbols for example).
16397 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16398 # (--disable-auto-import) libraries
16399 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16402 darwin* | rhapsody*)
16403 # PIC is the default on this platform
16404 # Common symbols not allowed in MH_DYLIB files
16405 lt_prog_compiler_pic_GCJ='-fno-common'
16409 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16410 # Instead, we relocate shared libraries at runtime.
16414 # Just because we use GCC doesn't mean we suddenly get shared libraries
16415 # on systems that don't support them.
16416 lt_prog_compiler_can_build_shared_GCJ=no
16421 if test -d /usr/nec; then
16422 lt_prog_compiler_pic_GCJ=-Kconform_pic
16427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16428 # not for PA HP-UX.
16434 lt_prog_compiler_pic_GCJ='-fPIC'
16440 lt_prog_compiler_pic_GCJ='-fPIC'
16444 # PORTME Check for flag to pass linker flags through the system compiler.
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 if test "$host_cpu" = ia64; then
16449 # AIX 5 now supports IA64 processor
16450 lt_prog_compiler_static_GCJ='-Bstatic'
16452 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16456 # PIC is the default on this platform
16457 # Common symbols not allowed in MH_DYLIB files
16458 case $cc_basename in
16460 lt_prog_compiler_pic_GCJ='-qnocommon'
16461 lt_prog_compiler_wl_GCJ='-Wl,'
16466 mingw* | cygwin* | pw32* | os2*)
16467 # This hack is so that the source file can tell whether it is being
16468 # built for inclusion in a dll (and should export symbols for example).
16469 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16472 hpux9* | hpux10* | hpux11*)
16473 lt_prog_compiler_wl_GCJ='-Wl,'
16474 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16475 # not for PA HP-UX.
16481 lt_prog_compiler_pic_GCJ='+Z'
16484 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16485 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16488 irix5* | irix6* | nonstopux*)
16489 lt_prog_compiler_wl_GCJ='-Wl,'
16490 # PIC (with -KPIC) is the default.
16491 lt_prog_compiler_static_GCJ='-non_shared'
16495 lt_prog_compiler_pic_GCJ='-KPIC'
16496 lt_prog_compiler_static_GCJ='-Bstatic'
16499 linux* | k*bsd*-gnu)
16500 case $cc_basename in
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 lt_prog_compiler_pic_GCJ='-KPIC'
16504 lt_prog_compiler_static_GCJ='-static'
16506 pgcc* | pgf77* | pgf90* | pgf95*)
16507 # Portland Group compilers (*not* the Pentium gcc compiler,
16508 # which looks to be a dead project)
16509 lt_prog_compiler_wl_GCJ='-Wl,'
16510 lt_prog_compiler_pic_GCJ='-fpic'
16511 lt_prog_compiler_static_GCJ='-Bstatic'
16514 lt_prog_compiler_wl_GCJ='-Wl,'
16515 # All Alpha code is PIC.
16516 lt_prog_compiler_static_GCJ='-non_shared'
16519 case `$CC -V 2>&1 | sed 5q` in
16522 lt_prog_compiler_pic_GCJ='-KPIC'
16523 lt_prog_compiler_static_GCJ='-Bstatic'
16524 lt_prog_compiler_wl_GCJ='-Wl,'
16527 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16528 lt_prog_compiler_pic_GCJ='-KPIC'
16529 lt_prog_compiler_static_GCJ='-Bstatic'
16530 lt_prog_compiler_wl_GCJ=''
16537 osf3* | osf4* | osf5*)
16538 lt_prog_compiler_wl_GCJ='-Wl,'
16539 # All OSF/1 code is PIC.
16540 lt_prog_compiler_static_GCJ='-non_shared'
16544 lt_prog_compiler_static_GCJ='-non_shared'
16548 lt_prog_compiler_pic_GCJ='-KPIC'
16549 lt_prog_compiler_static_GCJ='-Bstatic'
16550 case $cc_basename in
16551 f77* | f90* | f95*)
16552 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16554 lt_prog_compiler_wl_GCJ='-Wl,';;
16559 lt_prog_compiler_wl_GCJ='-Qoption ld '
16560 lt_prog_compiler_pic_GCJ='-PIC'
16561 lt_prog_compiler_static_GCJ='-Bstatic'
16564 sysv4 | sysv4.2uw2* | sysv4.3*)
16565 lt_prog_compiler_wl_GCJ='-Wl,'
16566 lt_prog_compiler_pic_GCJ='-KPIC'
16567 lt_prog_compiler_static_GCJ='-Bstatic'
16571 if test -d /usr/nec ;then
16572 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16573 lt_prog_compiler_static_GCJ='-Bstatic'
16577 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16578 lt_prog_compiler_wl_GCJ='-Wl,'
16579 lt_prog_compiler_pic_GCJ='-KPIC'
16580 lt_prog_compiler_static_GCJ='-Bstatic'
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16585 lt_prog_compiler_can_build_shared_GCJ=no
16589 lt_prog_compiler_pic_GCJ='-pic'
16590 lt_prog_compiler_static_GCJ='-Bstatic'
16594 lt_prog_compiler_can_build_shared_GCJ=no
16599 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16600 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16603 # Check to make sure the PIC flag actually works.
16605 if test -n "$lt_prog_compiler_pic_GCJ"; then
16607 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16608 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16609 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 lt_prog_compiler_pic_works_GCJ=no
16613 ac_outfile=conftest.$ac_objext
16614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16615 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16616 # Insert the option either (1) after the last *FLAGS variable, or
16617 # (2) before a word containing "conftest.", or (3) at the end.
16618 # Note that $ac_compile itself does not contain backslashes and begins
16619 # with a dollar sign (not a hyphen), so the echo should work correctly.
16620 # The option is referenced via a variable to avoid confusing sed.
16621 lt_compile=`echo "$ac_compile" | $SED \
16622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16624 -e 's:$: $lt_compiler_flag:'`
16625 (eval echo "\"\$as_me:16625: $lt_compile\"" >&5)
16626 (eval "$lt_compile" 2>conftest.err)
16628 cat conftest.err >&5
16629 echo "$as_me:16629: \$? = $ac_status" >&5
16630 if (exit $ac_status) && test -s "$ac_outfile"; then
16631 # The compiler can only warn and ignore the option if not recognized
16632 # So say no if there are warnings other than the usual output.
16633 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16636 lt_prog_compiler_pic_works_GCJ=yes
16642 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16643 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16645 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16646 case $lt_prog_compiler_pic_GCJ in
16648 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16651 lt_prog_compiler_pic_GCJ=
16652 lt_prog_compiler_can_build_shared_GCJ=no
16657 # For platforms which do not support PIC, -DPIC is meaningless:
16659 lt_prog_compiler_pic_GCJ=
16662 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16667 # Check to make sure the static flag actually works.
16669 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16670 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16671 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16672 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 lt_prog_compiler_static_works_GCJ=no
16676 save_LDFLAGS="$LDFLAGS"
16677 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16678 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16679 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16680 # The linker can only warn and ignore the option if not recognized
16681 # So say no if there are warnings
16682 if test -s conftest.err; then
16683 # Append any errors to the config.log.
16684 cat conftest.err 1>&5
16685 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16687 if diff conftest.exp conftest.er2 >/dev/null; then
16688 lt_prog_compiler_static_works_GCJ=yes
16691 lt_prog_compiler_static_works_GCJ=yes
16695 LDFLAGS="$save_LDFLAGS"
16698 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16699 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16701 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16704 lt_prog_compiler_static_GCJ=
16708 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16709 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16710 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 lt_cv_prog_compiler_c_o_GCJ=no
16714 $rm -r conftest 2>/dev/null
16718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16720 lt_compiler_flag="-o out/conftest2.$ac_objext"
16721 # Insert the option either (1) after the last *FLAGS variable, or
16722 # (2) before a word containing "conftest.", or (3) at the end.
16723 # Note that $ac_compile itself does not contain backslashes and begins
16724 # with a dollar sign (not a hyphen), so the echo should work correctly.
16725 lt_compile=`echo "$ac_compile" | $SED \
16726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16728 -e 's:$: $lt_compiler_flag:'`
16729 (eval echo "\"\$as_me:16729: $lt_compile\"" >&5)
16730 (eval "$lt_compile" 2>out/conftest.err)
16732 cat out/conftest.err >&5
16733 echo "$as_me:16733: \$? = $ac_status" >&5
16734 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16736 # The compiler can only warn and ignore the option if not recognized
16737 # So say no if there are warnings
16738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16739 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16740 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16741 lt_cv_prog_compiler_c_o_GCJ=yes
16746 # SGI C++ compiler will create directory out/ii_files/ for
16747 # template instantiation
16748 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16749 $rm out/* && rmdir out
16755 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16756 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16759 hard_links="nottested"
16760 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16761 # do not overwrite the value of need_locks provided by the user
16762 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16763 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16768 ln conftest.a conftest.b 2>&5 || hard_links=no
16769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770 { echo "$as_me:$LINENO: result: $hard_links" >&5
16771 echo "${ECHO_T}$hard_links" >&6; }
16772 if test "$hard_links" = no; then
16773 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16774 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16781 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16782 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16785 allow_undefined_flag_GCJ=
16786 enable_shared_with_static_runtimes_GCJ=no
16788 archive_expsym_cmds_GCJ=
16789 old_archive_From_new_cmds_GCJ=
16790 old_archive_from_expsyms_cmds_GCJ=
16791 export_dynamic_flag_spec_GCJ=
16792 whole_archive_flag_spec_GCJ=
16793 thread_safe_flag_spec_GCJ=
16794 hardcode_libdir_flag_spec_GCJ=
16795 hardcode_libdir_flag_spec_ld_GCJ=
16796 hardcode_libdir_separator_GCJ=
16797 hardcode_direct_GCJ=no
16798 hardcode_minus_L_GCJ=no
16799 hardcode_shlibpath_var_GCJ=unsupported
16800 link_all_deplibs_GCJ=unknown
16801 hardcode_automatic_GCJ=no
16803 module_expsym_cmds_GCJ=
16804 always_export_symbols_GCJ=no
16805 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16806 # include_expsyms should be a list of space-separated symbols to be *always*
16807 # included in the symbol list
16808 include_expsyms_GCJ=
16809 # exclude_expsyms can be an extended regexp of symbols to exclude
16810 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16811 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16812 # as well as any symbol that contains `d'.
16813 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16814 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16815 # platforms (ab)use it in PIC code, but their linkers get confused if
16816 # the symbol is explicitly referenced. Since portable code cannot
16817 # rely on this symbol name, it's probably fine to never include it in
16818 # preloaded symbol tables.
16819 extract_expsyms_cmds=
16820 # Just being paranoid about ensuring that cc_basename is set.
16821 for cc_temp in $compiler""; do
16823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16829 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16832 cygwin* | mingw* | pw32*)
16833 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16834 # When not using gcc, we currently assume that we are using
16835 # Microsoft Visual C++.
16836 if test "$GCC" != yes; then
16841 # we just hope/assume this is gcc and not c89 (= MSVC++)
16850 if test "$with_gnu_ld" = yes; then
16851 # If archive_cmds runs LD, not CC, wlarc should be empty
16854 # Set some defaults for GNU ld with shared library support. These
16855 # are reset later if shared libraries are not supported. Putting them
16856 # here allows them to be overridden if necessary.
16857 runpath_var=LD_RUN_PATH
16858 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16859 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16860 # ancient GNU ld didn't support --whole-archive et. al.
16861 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16862 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16864 whole_archive_flag_spec_GCJ=
16866 supports_anon_versioning=no
16867 case `$LD -v 2>/dev/null` in
16868 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16869 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16870 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16871 *\ 2.11.*) ;; # other 2.11 versions
16872 *) supports_anon_versioning=yes ;;
16875 # See if GNU ld supports shared libraries.
16877 aix3* | aix4* | aix5*)
16878 # On AIX/PPC, the GNU linker is very broken
16879 if test "$host_cpu" != ia64; then
16883 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16884 *** to be unable to reliably create shared libraries on AIX.
16885 *** Therefore, libtool is disabling shared libraries support. If you
16886 *** really care for shared libraries, you may want to modify your PATH
16887 *** so that a non-GNU linker is found, and then restart.
16894 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)'
16895 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16896 hardcode_minus_L_GCJ=yes
16898 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16899 # that the semantics of dynamic libraries on AmigaOS, at least up
16900 # to version 4, is to share data among multiple programs linked
16901 # with the same dynamic library. Since this doesn't match the
16902 # behavior of shared libraries on other platforms, we can't use
16908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16909 allow_undefined_flag_GCJ=unsupported
16910 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16911 # support --undefined. This deserves some investigation. FIXME
16912 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16918 cygwin* | mingw* | pw32*)
16919 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16920 # as there is no search path for DLLs.
16921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16922 allow_undefined_flag_GCJ=unsupported
16923 always_export_symbols_GCJ=no
16924 enable_shared_with_static_runtimes_GCJ=yes
16925 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16927 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16928 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16929 # If the export-symbols file already is a .def file (1st line
16930 # is EXPORTS), use it as is; otherwise, prepend...
16931 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16932 cp $export_symbols $output_objdir/$soname.def;
16934 echo EXPORTS > $output_objdir/$soname.def;
16935 cat $export_symbols >> $output_objdir/$soname.def;
16937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16944 hardcode_direct_GCJ=no
16945 hardcode_shlibpath_var_GCJ=no
16946 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16947 export_dynamic_flag_spec_GCJ='${wl}-E'
16948 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16949 # Instead, shared libraries are loaded at an image base (0x10000000 by
16950 # default) and relocated if they conflict, which is a slow very memory
16951 # consuming and fragmenting process. To avoid this, we pick a random,
16952 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16953 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16954 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'
16955 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'
16958 gnu* | linux* | k*bsd*-gnu)
16959 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16961 case $cc_basename,$host_cpu in
16962 pgcc*) # Portland Group C compiler
16963 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'
16964 tmp_addflag=' $pic_flag'
16966 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16967 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'
16968 tmp_addflag=' $pic_flag -Mnomain' ;;
16969 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16970 tmp_addflag=' -i_dynamic' ;;
16971 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16972 tmp_addflag=' -i_dynamic -nofor_main' ;;
16973 ifc* | ifort*) # Intel Fortran compiler
16974 tmp_addflag=' -nofor_main' ;;
16976 case `$CC -V 2>&1 | sed 5q` in
16977 *Sun\ C*) # Sun C 5.9
16978 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'
16979 tmp_sharedflag='-G' ;;
16980 *Sun\ F*) # Sun Fortran 8.3
16981 tmp_sharedflag='-G' ;;
16983 tmp_sharedflag='-shared' ;;
16985 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16987 if test $supports_anon_versioning = yes; then
16988 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16990 $echo "local: *; };" >> $output_objdir/$libname.ver~
16991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17000 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17004 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17009 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17014 *** create shared libraries on Solaris systems. Therefore, libtool
17015 *** is disabling shared libraries support. We urge you to upgrade GNU
17016 *** binutils to release 2.9.1 or newer. Another option is to modify
17017 *** your PATH or compiler configuration so that the native linker is
17018 *** used, and then restart.
17021 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17022 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17023 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17030 case `$LD -v 2>&1` in
17031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17036 *** reliably create shared libraries on SCO systems. Therefore, libtool
17037 *** is disabling shared libraries support. We urge you to upgrade GNU
17038 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17039 *** your PATH or compiler configuration so that the native linker is
17040 *** used, and then restart.
17045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17046 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17048 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17057 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_direct_GCJ=yes
17060 hardcode_shlibpath_var_GCJ=no
17064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17065 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17073 if test "$ld_shlibs_GCJ" = no; then
17075 hardcode_libdir_flag_spec_GCJ=
17076 export_dynamic_flag_spec_GCJ=
17077 whole_archive_flag_spec_GCJ=
17080 # PORTME fill in a description of your system's linker (not GNU ld)
17083 allow_undefined_flag_GCJ=unsupported
17084 always_export_symbols_GCJ=yes
17085 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'
17086 # Note: this linker hardcodes the directories in LIBPATH if there
17087 # are no directories specified by -L.
17088 hardcode_minus_L_GCJ=yes
17089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17090 # Neither direct hardcoding nor static linking is supported with a
17092 hardcode_direct_GCJ=unsupported
17097 if test "$host_cpu" = ia64; then
17098 # On IA64, the linker does run time linking by default, so we don't
17099 # have to do anything special.
17100 aix_use_runtimelinking=no
17101 exp_sym_flag='-Bexport'
17104 # If we're using GNU nm, then we don't want the "-C" option.
17105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17106 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17107 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'
17109 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'
17111 aix_use_runtimelinking=no
17113 # Test if we are trying to use run time linking or normal
17114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17115 # need to do runtime linking.
17116 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17117 for ld_flag in $LDFLAGS; do
17118 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17119 aix_use_runtimelinking=yes
17126 exp_sym_flag='-bexport'
17127 no_entry_flag='-bnoentry'
17130 # When large executables or shared objects are built, AIX ld can
17131 # have problems creating the table of contents. If linking a library
17132 # or program results in "error TOC overflow" add -mminimal-toc to
17133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17136 archive_cmds_GCJ=''
17137 hardcode_direct_GCJ=yes
17138 hardcode_libdir_separator_GCJ=':'
17139 link_all_deplibs_GCJ=yes
17141 if test "$GCC" = yes; then
17142 case $host_os in aix4.[012]|aix4.[012].*)
17143 # We only want to do this on AIX 4.2 and lower, the check
17144 # below for broken collect2 doesn't work under 4.3+
17145 collect2name=`${CC} -print-prog-name=collect2`
17146 if test -f "$collect2name" && \
17147 strings "$collect2name" | grep resolve_lib_name >/dev/null
17149 # We have reworked collect2
17152 # We have old collect2
17153 hardcode_direct_GCJ=unsupported
17154 # It fails to find uninstalled libraries when the uninstalled
17155 # path is not listed in the libpath. Setting hardcode_minus_L
17156 # to unsupported forces relinking
17157 hardcode_minus_L_GCJ=yes
17158 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17159 hardcode_libdir_separator_GCJ=
17163 shared_flag='-shared'
17164 if test "$aix_use_runtimelinking" = yes; then
17165 shared_flag="$shared_flag "'${wl}-G'
17169 if test "$host_cpu" = ia64; then
17170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17171 # chokes on -Wl,-G. The following line is correct:
17174 if test "$aix_use_runtimelinking" = yes; then
17175 shared_flag='${wl}-G'
17177 shared_flag='${wl}-bM:SRE'
17182 # It seems that -bexpall does not export symbols beginning with
17183 # underscore (_), so it is better to generate a list of symbols to export.
17184 always_export_symbols_GCJ=yes
17185 if test "$aix_use_runtimelinking" = yes; then
17186 # Warning - without using the other runtime loading flags (-brtl),
17187 # -berok will link without error, but may produce a broken library.
17188 allow_undefined_flag_GCJ='-berok'
17189 # Determine the default libpath from the value encoded in an empty executable.
17190 cat >conftest.$ac_ext <<_ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
17207 case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_link") 2>conftest.er1
17214 grep -v '^ *+' conftest.er1 >conftest.err
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } && {
17219 test -z "$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17221 } && test -s conftest$ac_exeext &&
17222 $as_test_x conftest$ac_exeext; then
17224 lt_aix_libpath_sed='
17225 /Import File Strings/,/^$/ {
17231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17232 # Check for a 64-bit object if we didn't find anything.
17233 if test -z "$aix_libpath"; then
17234 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17244 conftest$ac_exeext conftest.$ac_ext
17245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17247 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17248 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"
17250 if test "$host_cpu" = ia64; then
17251 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17252 allow_undefined_flag_GCJ="-z nodefs"
17253 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"
17255 # Determine the default libpath from the value encoded in an empty executable.
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest$ac_exeext &&
17288 $as_test_x conftest$ac_exeext; then
17290 lt_aix_libpath_sed='
17291 /Import File Strings/,/^$/ {
17297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17298 # Check for a 64-bit object if we didn't find anything.
17299 if test -z "$aix_libpath"; then
17300 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17310 conftest$ac_exeext conftest.$ac_ext
17311 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17313 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17314 # Warning - without using the other run time loading flags,
17315 # -berok will link without error, but may produce a broken library.
17316 no_undefined_flag_GCJ=' ${wl}-bernotok'
17317 allow_undefined_flag_GCJ=' ${wl}-berok'
17318 # Exported symbols can be pulled into shared objects from archives
17319 whole_archive_flag_spec_GCJ='$convenience'
17320 archive_cmds_need_lc_GCJ=yes
17321 # This is similar to how AIX traditionally builds its shared libraries.
17322 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'
17328 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)'
17329 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17330 hardcode_minus_L_GCJ=yes
17331 # see comment about different semantics on the GNU ld section
17336 export_dynamic_flag_spec_GCJ=-rdynamic
17339 cygwin* | mingw* | pw32*)
17340 # When not using gcc, we currently assume that we are using
17341 # Microsoft Visual C++.
17342 # hardcode_libdir_flag_spec is actually meaningless, as there is
17343 # no search path for DLLs.
17344 hardcode_libdir_flag_spec_GCJ=' '
17345 allow_undefined_flag_GCJ=unsupported
17346 # Tell ltmain to make .lib files, not .a files.
17348 # Tell ltmain to make .dll files, not .so files.
17350 # FIXME: Setting linknames here is a bad hack.
17351 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17352 # The linker will automatically build a .lib file if we build a DLL.
17353 old_archive_From_new_cmds_GCJ='true'
17354 # FIXME: Should let the user specify the lib program.
17355 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17356 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17357 enable_shared_with_static_runtimes_GCJ=yes
17360 darwin* | rhapsody*)
17362 rhapsody* | darwin1.[012])
17363 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17366 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17367 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17369 case ${MACOSX_DEPLOYMENT_TARGET} in
17371 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17374 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17380 archive_cmds_need_lc_GCJ=no
17381 hardcode_direct_GCJ=no
17382 hardcode_automatic_GCJ=yes
17383 hardcode_shlibpath_var_GCJ=unsupported
17384 whole_archive_flag_spec_GCJ=''
17385 link_all_deplibs_GCJ=yes
17386 if test "$GCC" = yes ; then
17387 output_verbose_link_cmd='echo'
17388 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17389 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17390 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17391 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}'
17392 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}'
17394 case $cc_basename in
17396 output_verbose_link_cmd='echo'
17397 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17398 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17400 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}'
17401 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}'
17411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17413 hardcode_shlibpath_var_GCJ=no
17420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17421 # support. Future versions do this automatically, but an explicit c++rt0.o
17422 # does not break anything, and helps significantly (at the cost of a little
17425 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17426 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17427 hardcode_direct_GCJ=yes
17428 hardcode_shlibpath_var_GCJ=no
17431 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17433 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17434 hardcode_direct_GCJ=yes
17435 hardcode_minus_L_GCJ=yes
17436 hardcode_shlibpath_var_GCJ=no
17439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17440 freebsd* | dragonfly*)
17441 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17442 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17443 hardcode_direct_GCJ=yes
17444 hardcode_shlibpath_var_GCJ=no
17448 if test "$GCC" = yes; then
17449 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'
17451 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'
17453 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17454 hardcode_libdir_separator_GCJ=:
17455 hardcode_direct_GCJ=yes
17457 # hardcode_minus_L: Not really in the search PATH,
17458 # but as the default location of the library.
17459 hardcode_minus_L_GCJ=yes
17460 export_dynamic_flag_spec_GCJ='${wl}-E'
17464 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17465 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17469 if test "$with_gnu_ld" = no; then
17470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17471 hardcode_libdir_separator_GCJ=:
17473 hardcode_direct_GCJ=yes
17474 export_dynamic_flag_spec_GCJ='${wl}-E'
17476 # hardcode_minus_L: Not really in the search PATH,
17477 # but as the default location of the library.
17478 hardcode_minus_L_GCJ=yes
17483 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17486 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17489 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17492 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17498 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17508 if test "$with_gnu_ld" = no; then
17509 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17510 hardcode_libdir_separator_GCJ=:
17514 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17515 hardcode_direct_GCJ=no
17516 hardcode_shlibpath_var_GCJ=no
17519 hardcode_direct_GCJ=yes
17520 export_dynamic_flag_spec_GCJ='${wl}-E'
17522 # hardcode_minus_L: Not really in the search PATH,
17523 # but as the default location of the library.
17524 hardcode_minus_L_GCJ=yes
17530 irix5* | irix6* | nonstopux*)
17531 if test "$GCC" = yes; then
17532 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'
17534 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'
17535 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17537 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17538 hardcode_libdir_separator_GCJ=:
17539 link_all_deplibs_GCJ=yes
17543 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17544 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17546 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17548 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17549 hardcode_direct_GCJ=yes
17550 hardcode_shlibpath_var_GCJ=no
17554 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17555 hardcode_direct_GCJ=yes
17556 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17557 hardcode_libdir_separator_GCJ=:
17558 hardcode_shlibpath_var_GCJ=no
17562 if test -f /usr/libexec/ld.so; then
17563 hardcode_direct_GCJ=yes
17564 hardcode_shlibpath_var_GCJ=no
17565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17566 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17567 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17568 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17569 export_dynamic_flag_spec_GCJ='${wl}-E'
17572 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17573 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17574 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17577 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17578 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17589 hardcode_minus_L_GCJ=yes
17590 allow_undefined_flag_GCJ=unsupported
17591 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'
17592 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17596 if test "$GCC" = yes; then
17597 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17598 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'
17600 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17601 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'
17603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17604 hardcode_libdir_separator_GCJ=:
17607 osf4* | osf5*) # as osf3* with the addition of -msym flag
17608 if test "$GCC" = yes; then
17609 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17610 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'
17611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17613 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17614 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'
17615 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~
17616 $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'
17618 # Both c and cxx compiler support -rpath directly
17619 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17621 hardcode_libdir_separator_GCJ=:
17625 no_undefined_flag_GCJ=' -z text'
17626 if test "$GCC" = yes; then
17628 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17629 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17630 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17633 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17634 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17637 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17638 hardcode_shlibpath_var_GCJ=no
17640 solaris2.[0-5] | solaris2.[0-5].*) ;;
17642 # The compiler driver will combine and reorder linker options,
17643 # but understands `-z linker_flag'. GCC discards it without `$wl',
17644 # but is careful enough not to reorder.
17645 # Supported since Solaris 2.6 (maybe 2.5.1?)
17646 if test "$GCC" = yes; then
17647 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17649 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17653 link_all_deplibs_GCJ=yes
17657 if test "x$host_vendor" = xsequent; then
17658 # Use $CC to link under sequent, because it throws in some extra .o
17659 # files that make .init and .fini sections work.
17660 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17662 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17665 hardcode_direct_GCJ=yes
17666 hardcode_minus_L_GCJ=yes
17667 hardcode_shlibpath_var_GCJ=no
17671 case $host_vendor in
17673 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674 hardcode_direct_GCJ=yes # is this really true???
17677 ## LD is ld it makes a PLAMLIB
17678 ## CC just makes a GrossModule.
17679 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17680 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17681 hardcode_direct_GCJ=no
17684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17685 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17688 runpath_var='LD_RUN_PATH'
17689 hardcode_shlibpath_var_GCJ=no
17693 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17694 hardcode_shlibpath_var_GCJ=no
17695 export_dynamic_flag_spec_GCJ='-Bexport'
17699 if test -d /usr/nec; then
17700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_shlibpath_var_GCJ=no
17702 runpath_var=LD_RUN_PATH
17703 hardcode_runpath_var=yes
17708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17709 no_undefined_flag_GCJ='${wl}-z,text'
17710 archive_cmds_need_lc_GCJ=no
17711 hardcode_shlibpath_var_GCJ=no
17712 runpath_var='LD_RUN_PATH'
17714 if test "$GCC" = yes; then
17715 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17716 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17718 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17719 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17723 sysv5* | sco3.2v5* | sco5v6*)
17724 # Note: We can NOT use -z defs as we might desire, because we do not
17725 # link with -lc, and that would cause any symbols used from libc to
17726 # always be unresolved, which means just about no library would
17727 # ever link correctly. If we're not using GNU ld we use -z text
17728 # though, which does catch some bad symbols but isn't as heavy-handed
17730 no_undefined_flag_GCJ='${wl}-z,text'
17731 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17732 archive_cmds_need_lc_GCJ=no
17733 hardcode_shlibpath_var_GCJ=no
17734 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17735 hardcode_libdir_separator_GCJ=':'
17736 link_all_deplibs_GCJ=yes
17737 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17738 runpath_var='LD_RUN_PATH'
17740 if test "$GCC" = yes; then
17741 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17742 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17744 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17745 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17752 hardcode_shlibpath_var_GCJ=no
17761 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17762 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17763 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17766 # Do we need to explicitly link libc?
17768 case "x$archive_cmds_need_lc_GCJ" in
17770 # Assume -lc should be added
17771 archive_cmds_need_lc_GCJ=yes
17773 if test "$enable_shared" = yes && test "$GCC" = yes; then
17774 case $archive_cmds_GCJ in
17776 # FIXME: we may have to deal with multi-command sequences.
17779 # Test whether the compiler implicitly links with -lc since on some
17780 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17781 # to ld, don't add -lc before -lgcc.
17782 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17783 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17788 (eval $ac_compile) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } 2>conftest.err; then
17794 libobjs=conftest.$ac_objext
17796 wl=$lt_prog_compiler_wl_GCJ
17797 pic_flag=$lt_prog_compiler_pic_GCJ
17803 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17804 allow_undefined_flag_GCJ=
17805 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17806 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }
17811 archive_cmds_need_lc_GCJ=no
17813 archive_cmds_need_lc_GCJ=yes
17815 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17817 cat conftest.err 1>&5
17820 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17821 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17828 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17829 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17830 library_names_spec=
17831 libname_spec='lib$name'
17835 postuninstall_cmds=
17839 shlibpath_overrides_runpath=unknown
17841 dynamic_linker="$host_os ld.so"
17842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17844 need_lib_prefix=unknown
17845 hardcode_into_libs=no
17847 # when you set need_version to no, make sure it does not cause -set_version
17848 # flags to be left without arguments
17849 need_version=unknown
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17855 shlibpath_var=LIBPATH
17857 # AIX 3 has no versioning support, so we append a major version to the name.
17858 soname_spec='${libname}${release}${shared_ext}$major'
17865 hardcode_into_libs=yes
17866 if test "$host_cpu" = ia64; then
17867 # AIX 5 supports IA64
17868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17869 shlibpath_var=LD_LIBRARY_PATH
17871 # With GCC up to 2.95.x, collect2 would create an import file
17872 # for dependence libraries. The import file would start with
17873 # the line `#! .'. This would cause the generated library to
17874 # depend on `.', always an invalid library. This was fixed in
17875 # development snapshots of GCC prior to 3.0.
17877 aix4 | aix4.[01] | aix4.[01].*)
17878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17883 can_build_shared=no
17887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17888 # soname into executable. Probably we can add versioning support to
17889 # collect2, so additional links can be useful in future.
17890 if test "$aix_use_runtimelinking" = yes; then
17891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17892 # instead of lib<name>.a to let people know that these are not
17893 # typical AIX shared libraries.
17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 # We preserve .a as extension for shared libraries through AIX4.2
17897 # and later when we are not doing run time linking.
17898 library_names_spec='${libname}${release}.a $libname.a'
17899 soname_spec='${libname}${release}${shared_ext}$major'
17901 shlibpath_var=LIBPATH
17906 library_names_spec='$libname.ixlibrary $libname.a'
17907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17908 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'
17912 library_names_spec='${libname}${shared_ext}'
17913 dynamic_linker="$host_os ld.so"
17914 shlibpath_var=LIBRARY_PATH
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17921 soname_spec='${libname}${release}${shared_ext}$major'
17922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17923 shlibpath_var=LD_LIBRARY_PATH
17924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17926 # the default ld.so.conf also contains /usr/contrib/lib and
17927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17928 # libtool to hard-code these into programs
17931 cygwin* | mingw* | pw32*)
17932 version_type=windows
17937 case $GCC,$host_os in
17938 yes,cygwin* | yes,mingw* | yes,pw32*)
17939 library_names_spec='$libname.dll.a'
17940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17941 postinstall_cmds='base_file=`basename \${file}`~
17942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17943 dldir=$destdir/`dirname \$dlpath`~
17944 test -d \$dldir || mkdir -p \$dldir~
17945 $install_prog $dir/$dlname \$dldir/$dlname~
17946 chmod a+x \$dldir/$dlname'
17947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17948 dlpath=$dir/\$dldll~
17950 shlibpath_overrides_runpath=yes
17954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17959 # MinGW DLLs use traditional 'lib' prefix
17960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17963 # It is most probably a Windows format PATH printed by
17964 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17965 # path with ; separators, and with drive letters. We can handle the
17966 # drive letters (cygwin fileutils understands them), so leave them,
17967 # especially as we might pass files found there to a mingw objdump,
17968 # which wouldn't understand a cygwinified path. Ahh.
17969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17975 # pw32 DLLs use 'pw' prefix rather than 'lib'
17976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17985 dynamic_linker='Win32 ld.exe'
17986 # FIXME: first we should search . and the directory the executable is in
17990 darwin* | rhapsody*)
17991 dynamic_linker="$host_os dyld"
17992 version_type=darwin
17995 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17996 soname_spec='${libname}${release}${major}$shared_ext'
17997 shlibpath_overrides_runpath=yes
17998 shlibpath_var=DYLD_LIBRARY_PATH
17999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18009 soname_spec='${libname}${release}${shared_ext}$major'
18010 shlibpath_var=LD_LIBRARY_PATH
18017 freebsd* | dragonfly*)
18018 # DragonFly does not have aout. When/if they implement a new
18019 # versioning mechanism, adjust this.
18020 if test -x /usr/bin/objformat; then
18021 objformat=`/usr/bin/objformat`
18024 freebsd[123]*) objformat=aout ;;
18025 *) objformat=elf ;;
18028 version_type=freebsd-$objformat
18029 case $version_type in
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18040 shlibpath_var=LD_LIBRARY_PATH
18043 shlibpath_overrides_runpath=yes
18045 freebsd3.[01]* | freebsdelf3.[01]*)
18046 shlibpath_overrides_runpath=yes
18047 hardcode_into_libs=yes
18049 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18050 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18051 shlibpath_overrides_runpath=no
18052 hardcode_into_libs=yes
18054 *) # from 4.6 on, and DragonFly
18055 shlibpath_overrides_runpath=yes
18056 hardcode_into_libs=yes
18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18066 soname_spec='${libname}${release}${shared_ext}$major'
18067 shlibpath_var=LD_LIBRARY_PATH
18068 hardcode_into_libs=yes
18071 hpux9* | hpux10* | hpux11*)
18072 # Give a soname corresponding to the major version so that dld.sl refuses to
18073 # link against other versions.
18080 hardcode_into_libs=yes
18081 dynamic_linker="$host_os dld.so"
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 if test "X$HPUX_IA64_MODE" = X32; then
18087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18095 hardcode_into_libs=yes
18096 dynamic_linker="$host_os dld.sl"
18097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18106 dynamic_linker="$host_os dld.sl"
18107 shlibpath_var=SHLIB_PATH
18108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110 soname_spec='${libname}${release}${shared_ext}$major'
18113 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18114 postinstall_cmds='chmod 555 $lib'
18121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18122 soname_spec='${libname}${release}${shared_ext}$major'
18123 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18124 shlibpath_var=LD_LIBRARY_PATH
18125 shlibpath_overrides_runpath=no
18126 hardcode_into_libs=yes
18129 irix5* | irix6* | nonstopux*)
18131 nonstopux*) version_type=nonstopux ;;
18133 if test "$lt_cv_prog_gnu_ld" = yes; then
18141 soname_spec='${libname}${release}${shared_ext}$major'
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18144 irix5* | nonstopux*)
18145 libsuff= shlibsuff=
18148 case $LD in # libtool.m4 will add one of these switches to LD
18149 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18150 libsuff= shlibsuff= libmagic=32-bit;;
18151 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18152 libsuff=32 shlibsuff=N32 libmagic=N32;;
18153 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18154 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18155 *) libsuff= shlibsuff= libmagic=never-match;;
18159 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18160 shlibpath_overrides_runpath=no
18161 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18162 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18163 hardcode_into_libs=yes
18166 # No shared lib support for Linux oldld, aout, or coff.
18167 linux*oldld* | linux*aout* | linux*coff*)
18171 # This must be Linux ELF.
18172 linux* | k*bsd*-gnu)
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18179 shlibpath_var=LD_LIBRARY_PATH
18180 shlibpath_overrides_runpath=no
18181 # This implies no fast_install, which is unacceptable.
18182 # Some rework will be needed to allow for fast_install
18183 # before this can be enabled.
18184 hardcode_into_libs=yes
18186 # find out which ABI we are using
18188 case "$host_cpu" in
18189 x86_64*|s390x*|powerpc64*)
18190 echo '#line 18190 "configure"' > conftest.$ac_ext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192 (eval $ac_compile) 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; then
18196 case `/usr/bin/file conftest.$ac_objext` in
18199 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18207 # Append ld.so.conf contents to the search path
18208 if test -f /etc/ld.so.conf; then
18209 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' ' '`
18210 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18213 # We used to test for /lib/ld.so.1 and disable shared libraries on
18214 # powerpc, because MkLinux only supported shared libraries with the
18215 # GNU dynamic linker. Since this was broken with cross compilers,
18216 # most powerpc-linux boxes support dynamic linking these days and
18217 # people can always --disable-shared, the test was removed, and we
18218 # assume the GNU/Linux dynamic linker is in use.
18219 dynamic_linker='GNU/Linux ld.so'
18226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18229 dynamic_linker='NetBSD (a.out) ld.so'
18231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18232 soname_spec='${libname}${release}${shared_ext}$major'
18233 dynamic_linker='NetBSD ld.elf_so'
18235 shlibpath_var=LD_LIBRARY_PATH
18236 shlibpath_overrides_runpath=yes
18237 hardcode_into_libs=yes
18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18243 shlibpath_var=LD_LIBRARY_PATH
18244 shlibpath_overrides_runpath=yes
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 shlibpath_overrides_runpath=yes
18259 sys_lib_dlsearch_path_spec="/usr/lib"
18261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18263 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18264 *) need_version=no ;;
18266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18268 shlibpath_var=LD_LIBRARY_PATH
18269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18271 openbsd2.[89] | openbsd2.[89].*)
18272 shlibpath_overrides_runpath=no
18275 shlibpath_overrides_runpath=yes
18279 shlibpath_overrides_runpath=yes
18284 libname_spec='$name'
18287 library_names_spec='$libname${shared_ext} $libname.a'
18288 dynamic_linker='OS/2 ld.exe'
18289 shlibpath_var=LIBPATH
18292 osf3* | osf4* | osf5*)
18296 soname_spec='${libname}${release}${shared_ext}$major'
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298 shlibpath_var=LD_LIBRARY_PATH
18299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 shlibpath_var=LD_LIBRARY_PATH
18314 shlibpath_overrides_runpath=yes
18315 hardcode_into_libs=yes
18316 # ldd complains unless libraries are executable
18317 postinstall_cmds='chmod +x $lib'
18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 shlibpath_overrides_runpath=yes
18326 if test "$with_gnu_ld" = yes; then
18334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18335 soname_spec='${libname}${release}${shared_ext}$major'
18336 shlibpath_var=LD_LIBRARY_PATH
18337 case $host_vendor in
18339 shlibpath_overrides_runpath=no
18341 export_dynamic_flag_spec='${wl}-Blargedynsym'
18342 runpath_var=LD_RUN_PATH
18350 shlibpath_overrides_runpath=no
18351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18357 if test -d /usr/nec ;then
18359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18360 soname_spec='$libname${shared_ext}.$major'
18361 shlibpath_var=LD_LIBRARY_PATH
18365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18366 version_type=freebsd-elf
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 hardcode_into_libs=yes
18373 if test "$with_gnu_ld" = yes; then
18374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18375 shlibpath_overrides_runpath=no
18377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18378 shlibpath_overrides_runpath=yes
18381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18385 sys_lib_dlsearch_path_spec='/usr/lib'
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391 soname_spec='${libname}${release}${shared_ext}$major'
18392 shlibpath_var=LD_LIBRARY_PATH
18399 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18400 echo "${ECHO_T}$dynamic_linker" >&6; }
18401 test "$dynamic_linker" = no && can_build_shared=no
18403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18404 if test "$GCC" = yes; then
18405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18408 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18410 hardcode_action_GCJ=
18411 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18412 test -n "$runpath_var_GCJ" || \
18413 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18415 # We can hardcode non-existant directories.
18416 if test "$hardcode_direct_GCJ" != no &&
18417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18418 # have to relink, otherwise we might link with an installed library
18419 # when we should be linking with a yet-to-be-installed one
18420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18421 test "$hardcode_minus_L_GCJ" != no; then
18422 # Linking always hardcodes the temporary library directory.
18423 hardcode_action_GCJ=relink
18425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18426 hardcode_action_GCJ=immediate
18429 # We cannot hardcode anything, or else we can only hardcode existing
18431 hardcode_action_GCJ=unsupported
18433 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18434 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18436 if test "$hardcode_action_GCJ" = relink; then
18437 # Fast installation is not supported
18438 enable_fast_install=no
18439 elif test "$shlibpath_overrides_runpath" = yes ||
18440 test "$enable_shared" = no; then
18441 # Fast installation is not necessary
18442 enable_fast_install=needless
18446 # The else clause should only fire when bootstrapping the
18447 # libtool distribution, otherwise you forgot to ship ltmain.sh
18448 # with your package, and you will get complaints that there are
18449 # no rules to generate ltmain.sh.
18450 if test -f "$ltmain"; then
18451 # See if we are running on zsh, and set the options which allow our commands through
18452 # without removal of \ escapes.
18453 if test -n "${ZSH_VERSION+set}" ; then
18454 setopt NO_GLOB_SUBST
18456 # Now quote all the things that may contain metacharacters while being
18457 # careful not to overquote the AC_SUBSTed values. We take copies of the
18458 # variables and quote the copies for generation of the libtool script.
18459 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18461 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18462 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18463 deplibs_check_method reload_flag reload_cmds need_locks \
18464 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18465 lt_cv_sys_global_symbol_to_c_name_address \
18466 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18467 old_postinstall_cmds old_postuninstall_cmds \
18471 lt_prog_compiler_wl_GCJ \
18472 lt_prog_compiler_pic_GCJ \
18473 lt_prog_compiler_static_GCJ \
18474 lt_prog_compiler_no_builtin_flag_GCJ \
18475 export_dynamic_flag_spec_GCJ \
18476 thread_safe_flag_spec_GCJ \
18477 whole_archive_flag_spec_GCJ \
18478 enable_shared_with_static_runtimes_GCJ \
18479 old_archive_cmds_GCJ \
18480 old_archive_from_new_cmds_GCJ \
18481 predep_objects_GCJ \
18482 postdep_objects_GCJ \
18485 compiler_lib_search_path_GCJ \
18487 archive_expsym_cmds_GCJ \
18488 postinstall_cmds_GCJ \
18489 postuninstall_cmds_GCJ \
18490 old_archive_from_expsyms_cmds_GCJ \
18491 allow_undefined_flag_GCJ \
18492 no_undefined_flag_GCJ \
18493 export_symbols_cmds_GCJ \
18494 hardcode_libdir_flag_spec_GCJ \
18495 hardcode_libdir_flag_spec_ld_GCJ \
18496 hardcode_libdir_separator_GCJ \
18497 hardcode_automatic_GCJ \
18499 module_expsym_cmds_GCJ \
18500 lt_cv_prog_compiler_c_o_GCJ \
18501 fix_srcfile_path_GCJ \
18502 exclude_expsyms_GCJ \
18503 include_expsyms_GCJ; do
18506 old_archive_cmds_GCJ | \
18507 old_archive_from_new_cmds_GCJ | \
18508 archive_cmds_GCJ | \
18509 archive_expsym_cmds_GCJ | \
18510 module_cmds_GCJ | \
18511 module_expsym_cmds_GCJ | \
18512 old_archive_from_expsyms_cmds_GCJ | \
18513 export_symbols_cmds_GCJ | \
18514 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18515 postinstall_cmds | postuninstall_cmds | \
18516 old_postinstall_cmds | old_postuninstall_cmds | \
18517 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18518 # Double-quote double-evaled strings.
18519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18528 *'\$0 --fallback-echo"')
18529 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18535 cat <<__EOF__ >> "$cfgfile"
18536 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18540 # Shell to use when invoking shell scripts.
18543 # Whether or not to build shared libraries.
18544 build_libtool_libs=$enable_shared
18546 # Whether or not to build static libraries.
18547 build_old_libs=$enable_static
18549 # Whether or not to add -lc for building shared libraries.
18550 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18552 # Whether or not to disallow shared libs when runtime libs are static
18553 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18555 # Whether or not to optimize for fast installation.
18556 fast_install=$enable_fast_install
18559 host_alias=$host_alias
18563 # The build system.
18564 build_alias=$build_alias
18568 # An echo program that does not interpret backslashes.
18573 AR_FLAGS=$lt_AR_FLAGS
18578 # LTCC compiler flags.
18579 LTCFLAGS=$lt_LTCFLAGS
18581 # A language-specific compiler.
18582 CC=$lt_compiler_GCJ
18584 # Is the compiler the GNU C compiler?
18587 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18588 gcc_ver=\`gcc -dumpversion\`
18593 # The linker used to build libraries.
18596 # Whether we need hard or soft links.
18599 # A BSD-compatible nm program.
18602 # A symbol stripping program
18605 # Used to examine libraries when file_magic_cmd begins "file"
18606 MAGIC_CMD=$MAGIC_CMD
18608 # Used on cygwin: DLL creation program.
18611 # Used on cygwin: object dumper.
18614 # Used on cygwin: assembler.
18617 # The name of the directory that contains temporary libtool files.
18620 # How to create reloadable object files.
18621 reload_flag=$lt_reload_flag
18622 reload_cmds=$lt_reload_cmds
18624 # How to pass a linker flag through the compiler.
18625 wl=$lt_lt_prog_compiler_wl_GCJ
18627 # Object file suffix (normally "o").
18628 objext="$ac_objext"
18630 # Old archive suffix (normally "a").
18633 # Shared library suffix (normally ".so").
18634 shrext_cmds='$shrext_cmds'
18636 # Executable file suffix (normally "").
18639 # Additional compiler flags for building library objects.
18640 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18643 # What is the maximum length of a command?
18644 max_cmd_len=$lt_cv_sys_max_cmd_len
18646 # Does compiler simultaneously support -c and -o options?
18647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18649 # Must we lock files when doing compilation?
18650 need_locks=$lt_need_locks
18652 # Do we need the lib prefix for modules?
18653 need_lib_prefix=$need_lib_prefix
18655 # Do we need a version for libraries?
18656 need_version=$need_version
18658 # Whether dlopen is supported.
18659 dlopen_support=$enable_dlopen
18661 # Whether dlopen of programs is supported.
18662 dlopen_self=$enable_dlopen_self
18664 # Whether dlopen of statically linked programs is supported.
18665 dlopen_self_static=$enable_dlopen_self_static
18667 # Compiler flag to prevent dynamic linking.
18668 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18670 # Compiler flag to turn off builtin functions.
18671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18673 # Compiler flag to allow reflexive dlopens.
18674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18676 # Compiler flag to generate shared objects directly from archives.
18677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18679 # Compiler flag to generate thread-safe objects.
18680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18682 # Library versioning type.
18683 version_type=$version_type
18685 # Format of library name prefix.
18686 libname_spec=$lt_libname_spec
18688 # List of archive names. First name is the real one, the rest are links.
18689 # The last name is the one that the linker finds with -lNAME.
18690 library_names_spec=$lt_library_names_spec
18692 # The coded name of the library, if different from the real name.
18693 soname_spec=$lt_soname_spec
18695 # Commands used to build and install an old-style archive.
18697 old_archive_cmds=$lt_old_archive_cmds_GCJ
18698 old_postinstall_cmds=$lt_old_postinstall_cmds
18699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18701 # Create an old-style archive from a shared archive.
18702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18704 # Create a temporary old-style archive to link instead of a shared archive.
18705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18707 # Commands used to build and install a shared archive.
18708 archive_cmds=$lt_archive_cmds_GCJ
18709 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18710 postinstall_cmds=$lt_postinstall_cmds
18711 postuninstall_cmds=$lt_postuninstall_cmds
18713 # Commands used to build a loadable module (assumed same as above if empty)
18714 module_cmds=$lt_module_cmds_GCJ
18715 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18717 # Commands to strip libraries.
18718 old_striplib=$lt_old_striplib
18719 striplib=$lt_striplib
18721 # Dependencies to place before the objects being linked to create a
18723 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18725 # Dependencies to place after the objects being linked to create a
18727 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18729 # Dependencies to place before the objects being linked to create a
18731 predeps=$lt_predeps_GCJ
18733 # Dependencies to place after the objects being linked to create a
18735 postdeps=$lt_postdeps_GCJ
18737 # The library search path used internally by the compiler when linking
18738 # a shared library.
18739 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"\`
18741 # Method to check whether dependent libraries are shared objects.
18742 deplibs_check_method=$lt_deplibs_check_method
18744 # Command to use when deplibs_check_method == file_magic.
18745 file_magic_cmd=$lt_file_magic_cmd
18747 # Flag that allows shared libraries with undefined symbols to be built.
18748 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18750 # Flag that forces no undefined symbols.
18751 no_undefined_flag=$lt_no_undefined_flag_GCJ
18753 # Commands used to finish a libtool library installation in a directory.
18754 finish_cmds=$lt_finish_cmds
18756 # Same as above, but a single script fragment to be evaled but not shown.
18757 finish_eval=$lt_finish_eval
18759 # Take the output of nm and produce a listing of raw symbols and C names.
18760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18762 # Transform the output of nm in a proper C declaration
18763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18765 # Transform the output of nm in a C name address pair
18766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18768 # This is the shared library runtime path variable.
18769 runpath_var=$runpath_var
18771 # This is the shared library path variable.
18772 shlibpath_var=$shlibpath_var
18774 # Is shlibpath searched before the hard-coded library search path?
18775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18777 # How to hardcode a shared library path into an executable.
18778 hardcode_action=$hardcode_action_GCJ
18780 # Whether we should hardcode library paths into libraries.
18781 hardcode_into_libs=$hardcode_into_libs
18783 # Flag to hardcode \$libdir into a binary during linking.
18784 # This must work even if \$libdir does not exist.
18785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18787 # If ld is used when linking, flag to hardcode \$libdir into
18788 # a binary during linking. This must work even if \$libdir does
18790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18792 # Whether we need a single -rpath flag with a separated argument.
18793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_direct=$hardcode_direct_GCJ
18799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800 # resulting binary.
18801 hardcode_minus_L=$hardcode_minus_L_GCJ
18803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804 # the resulting binary.
18805 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18807 # Set to yes if building a shared library automatically hardcodes DIR into the library
18808 # and all subsequent libraries and executables linked against it.
18809 hardcode_automatic=$hardcode_automatic_GCJ
18811 # Variables whose values should be saved in libtool wrapper scripts and
18812 # restored at relink time.
18813 variables_saved_for_relink="$variables_saved_for_relink"
18815 # Whether libtool must link a program against all its dependency libraries.
18816 link_all_deplibs=$link_all_deplibs_GCJ
18818 # Compile-time system search path for libraries
18819 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"\`
18821 # Run-time system search path for libraries
18822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18824 # Fix the shell variable \$srcfile for the compiler.
18825 fix_srcfile_path=$lt_fix_srcfile_path
18827 # Set to yes if exported symbols are required.
18828 always_export_symbols=$always_export_symbols_GCJ
18830 # The commands to list exported symbols.
18831 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18833 # The commands to extract the exported symbol list from a shared archive.
18834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18836 # Symbols that should not be listed in the preloaded symbols.
18837 exclude_expsyms=$lt_exclude_expsyms_GCJ
18839 # Symbols that must always be exported.
18840 include_expsyms=$lt_include_expsyms_GCJ
18842 # ### END LIBTOOL TAG CONFIG: $tagname
18848 # If there is no Makefile yet, we rely on a make rule to execute
18849 # `config.status --recheck' to rerun these tests and create the
18850 # libtool script then.
18851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852 if test -f "$ltmain_in"; then
18853 test -f Makefile && make "$ltmain"
18859 ac_cpp='$CPP $CPPFLAGS'
18860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18874 # Source file extension for RC test sources.
18877 # Object file extension for compiled RC test sources.
18881 # Code to be used in simple compile tests
18882 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18884 # Code to be used in simple link tests
18885 lt_simple_link_test_code="$lt_simple_compile_test_code"
18887 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18889 # If no C compiler was specified, use CC.
18892 # If no C compiler flags were specified, use CFLAGS.
18893 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18895 # Allow CC to be a program name with arguments.
18899 # save warnings/boilerplate of simple test code
18900 ac_outfile=conftest.$ac_objext
18901 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18903 _lt_compiler_boilerplate=`cat conftest.err`
18906 ac_outfile=conftest.$ac_objext
18907 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18909 _lt_linker_boilerplate=`cat conftest.err`
18913 # Allow CC to be a program name with arguments.
18918 for cc_temp in $compiler""; do
18920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18928 lt_cv_prog_compiler_c_o_RC=yes
18930 # The else clause should only fire when bootstrapping the
18931 # libtool distribution, otherwise you forgot to ship ltmain.sh
18932 # with your package, and you will get complaints that there are
18933 # no rules to generate ltmain.sh.
18934 if test -f "$ltmain"; then
18935 # See if we are running on zsh, and set the options which allow our commands through
18936 # without removal of \ escapes.
18937 if test -n "${ZSH_VERSION+set}" ; then
18938 setopt NO_GLOB_SUBST
18940 # Now quote all the things that may contain metacharacters while being
18941 # careful not to overquote the AC_SUBSTed values. We take copies of the
18942 # variables and quote the copies for generation of the libtool script.
18943 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18945 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18946 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18947 deplibs_check_method reload_flag reload_cmds need_locks \
18948 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18949 lt_cv_sys_global_symbol_to_c_name_address \
18950 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18951 old_postinstall_cmds old_postuninstall_cmds \
18955 lt_prog_compiler_wl_RC \
18956 lt_prog_compiler_pic_RC \
18957 lt_prog_compiler_static_RC \
18958 lt_prog_compiler_no_builtin_flag_RC \
18959 export_dynamic_flag_spec_RC \
18960 thread_safe_flag_spec_RC \
18961 whole_archive_flag_spec_RC \
18962 enable_shared_with_static_runtimes_RC \
18963 old_archive_cmds_RC \
18964 old_archive_from_new_cmds_RC \
18965 predep_objects_RC \
18966 postdep_objects_RC \
18969 compiler_lib_search_path_RC \
18971 archive_expsym_cmds_RC \
18972 postinstall_cmds_RC \
18973 postuninstall_cmds_RC \
18974 old_archive_from_expsyms_cmds_RC \
18975 allow_undefined_flag_RC \
18976 no_undefined_flag_RC \
18977 export_symbols_cmds_RC \
18978 hardcode_libdir_flag_spec_RC \
18979 hardcode_libdir_flag_spec_ld_RC \
18980 hardcode_libdir_separator_RC \
18981 hardcode_automatic_RC \
18983 module_expsym_cmds_RC \
18984 lt_cv_prog_compiler_c_o_RC \
18985 fix_srcfile_path_RC \
18986 exclude_expsyms_RC \
18987 include_expsyms_RC; do
18990 old_archive_cmds_RC | \
18991 old_archive_from_new_cmds_RC | \
18992 archive_cmds_RC | \
18993 archive_expsym_cmds_RC | \
18995 module_expsym_cmds_RC | \
18996 old_archive_from_expsyms_cmds_RC | \
18997 export_symbols_cmds_RC | \
18998 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18999 postinstall_cmds | postuninstall_cmds | \
19000 old_postinstall_cmds | old_postuninstall_cmds | \
19001 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19002 # Double-quote double-evaled strings.
19003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19006 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19012 *'\$0 --fallback-echo"')
19013 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19019 cat <<__EOF__ >> "$cfgfile"
19020 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19024 # Shell to use when invoking shell scripts.
19027 # Whether or not to build shared libraries.
19028 build_libtool_libs=$enable_shared
19030 # Whether or not to build static libraries.
19031 build_old_libs=$enable_static
19033 # Whether or not to add -lc for building shared libraries.
19034 build_libtool_need_lc=$archive_cmds_need_lc_RC
19036 # Whether or not to disallow shared libs when runtime libs are static
19037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19039 # Whether or not to optimize for fast installation.
19040 fast_install=$enable_fast_install
19043 host_alias=$host_alias
19047 # The build system.
19048 build_alias=$build_alias
19052 # An echo program that does not interpret backslashes.
19057 AR_FLAGS=$lt_AR_FLAGS
19062 # LTCC compiler flags.
19063 LTCFLAGS=$lt_LTCFLAGS
19065 # A language-specific compiler.
19068 # Is the compiler the GNU C compiler?
19071 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19072 gcc_ver=\`gcc -dumpversion\`
19077 # The linker used to build libraries.
19080 # Whether we need hard or soft links.
19083 # A BSD-compatible nm program.
19086 # A symbol stripping program
19089 # Used to examine libraries when file_magic_cmd begins "file"
19090 MAGIC_CMD=$MAGIC_CMD
19092 # Used on cygwin: DLL creation program.
19095 # Used on cygwin: object dumper.
19098 # Used on cygwin: assembler.
19101 # The name of the directory that contains temporary libtool files.
19104 # How to create reloadable object files.
19105 reload_flag=$lt_reload_flag
19106 reload_cmds=$lt_reload_cmds
19108 # How to pass a linker flag through the compiler.
19109 wl=$lt_lt_prog_compiler_wl_RC
19111 # Object file suffix (normally "o").
19112 objext="$ac_objext"
19114 # Old archive suffix (normally "a").
19117 # Shared library suffix (normally ".so").
19118 shrext_cmds='$shrext_cmds'
19120 # Executable file suffix (normally "").
19123 # Additional compiler flags for building library objects.
19124 pic_flag=$lt_lt_prog_compiler_pic_RC
19127 # What is the maximum length of a command?
19128 max_cmd_len=$lt_cv_sys_max_cmd_len
19130 # Does compiler simultaneously support -c and -o options?
19131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19133 # Must we lock files when doing compilation?
19134 need_locks=$lt_need_locks
19136 # Do we need the lib prefix for modules?
19137 need_lib_prefix=$need_lib_prefix
19139 # Do we need a version for libraries?
19140 need_version=$need_version
19142 # Whether dlopen is supported.
19143 dlopen_support=$enable_dlopen
19145 # Whether dlopen of programs is supported.
19146 dlopen_self=$enable_dlopen_self
19148 # Whether dlopen of statically linked programs is supported.
19149 dlopen_self_static=$enable_dlopen_self_static
19151 # Compiler flag to prevent dynamic linking.
19152 link_static_flag=$lt_lt_prog_compiler_static_RC
19154 # Compiler flag to turn off builtin functions.
19155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19157 # Compiler flag to allow reflexive dlopens.
19158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19160 # Compiler flag to generate shared objects directly from archives.
19161 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19163 # Compiler flag to generate thread-safe objects.
19164 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19166 # Library versioning type.
19167 version_type=$version_type
19169 # Format of library name prefix.
19170 libname_spec=$lt_libname_spec
19172 # List of archive names. First name is the real one, the rest are links.
19173 # The last name is the one that the linker finds with -lNAME.
19174 library_names_spec=$lt_library_names_spec
19176 # The coded name of the library, if different from the real name.
19177 soname_spec=$lt_soname_spec
19179 # Commands used to build and install an old-style archive.
19181 old_archive_cmds=$lt_old_archive_cmds_RC
19182 old_postinstall_cmds=$lt_old_postinstall_cmds
19183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19185 # Create an old-style archive from a shared archive.
19186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19188 # Create a temporary old-style archive to link instead of a shared archive.
19189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19191 # Commands used to build and install a shared archive.
19192 archive_cmds=$lt_archive_cmds_RC
19193 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19194 postinstall_cmds=$lt_postinstall_cmds
19195 postuninstall_cmds=$lt_postuninstall_cmds
19197 # Commands used to build a loadable module (assumed same as above if empty)
19198 module_cmds=$lt_module_cmds_RC
19199 module_expsym_cmds=$lt_module_expsym_cmds_RC
19201 # Commands to strip libraries.
19202 old_striplib=$lt_old_striplib
19203 striplib=$lt_striplib
19205 # Dependencies to place before the objects being linked to create a
19207 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19209 # Dependencies to place after the objects being linked to create a
19211 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19213 # Dependencies to place before the objects being linked to create a
19215 predeps=$lt_predeps_RC
19217 # Dependencies to place after the objects being linked to create a
19219 postdeps=$lt_postdeps_RC
19221 # The library search path used internally by the compiler when linking
19222 # a shared library.
19223 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"\`
19225 # Method to check whether dependent libraries are shared objects.
19226 deplibs_check_method=$lt_deplibs_check_method
19228 # Command to use when deplibs_check_method == file_magic.
19229 file_magic_cmd=$lt_file_magic_cmd
19231 # Flag that allows shared libraries with undefined symbols to be built.
19232 allow_undefined_flag=$lt_allow_undefined_flag_RC
19234 # Flag that forces no undefined symbols.
19235 no_undefined_flag=$lt_no_undefined_flag_RC
19237 # Commands used to finish a libtool library installation in a directory.
19238 finish_cmds=$lt_finish_cmds
19240 # Same as above, but a single script fragment to be evaled but not shown.
19241 finish_eval=$lt_finish_eval
19243 # Take the output of nm and produce a listing of raw symbols and C names.
19244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19246 # Transform the output of nm in a proper C declaration
19247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19249 # Transform the output of nm in a C name address pair
19250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19252 # This is the shared library runtime path variable.
19253 runpath_var=$runpath_var
19255 # This is the shared library path variable.
19256 shlibpath_var=$shlibpath_var
19258 # Is shlibpath searched before the hard-coded library search path?
19259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19261 # How to hardcode a shared library path into an executable.
19262 hardcode_action=$hardcode_action_RC
19264 # Whether we should hardcode library paths into libraries.
19265 hardcode_into_libs=$hardcode_into_libs
19267 # Flag to hardcode \$libdir into a binary during linking.
19268 # This must work even if \$libdir does not exist.
19269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19271 # If ld is used when linking, flag to hardcode \$libdir into
19272 # a binary during linking. This must work even if \$libdir does
19274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19276 # Whether we need a single -rpath flag with a separated argument.
19277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19280 # resulting binary.
19281 hardcode_direct=$hardcode_direct_RC
19283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19284 # resulting binary.
19285 hardcode_minus_L=$hardcode_minus_L_RC
19287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19288 # the resulting binary.
19289 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19291 # Set to yes if building a shared library automatically hardcodes DIR into the library
19292 # and all subsequent libraries and executables linked against it.
19293 hardcode_automatic=$hardcode_automatic_RC
19295 # Variables whose values should be saved in libtool wrapper scripts and
19296 # restored at relink time.
19297 variables_saved_for_relink="$variables_saved_for_relink"
19299 # Whether libtool must link a program against all its dependency libraries.
19300 link_all_deplibs=$link_all_deplibs_RC
19302 # Compile-time system search path for libraries
19303 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"\`
19305 # Run-time system search path for libraries
19306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19308 # Fix the shell variable \$srcfile for the compiler.
19309 fix_srcfile_path=$lt_fix_srcfile_path
19311 # Set to yes if exported symbols are required.
19312 always_export_symbols=$always_export_symbols_RC
19314 # The commands to list exported symbols.
19315 export_symbols_cmds=$lt_export_symbols_cmds_RC
19317 # The commands to extract the exported symbol list from a shared archive.
19318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19320 # Symbols that should not be listed in the preloaded symbols.
19321 exclude_expsyms=$lt_exclude_expsyms_RC
19323 # Symbols that must always be exported.
19324 include_expsyms=$lt_include_expsyms_RC
19326 # ### END LIBTOOL TAG CONFIG: $tagname
19332 # If there is no Makefile yet, we rely on a make rule to execute
19333 # `config.status --recheck' to rerun these tests and create the
19334 # libtool script then.
19335 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19336 if test -f "$ltmain_in"; then
19337 test -f Makefile && make "$ltmain"
19343 ac_cpp='$CPP $CPPFLAGS'
19344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19353 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19354 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19355 { (exit 1); exit 1; }; }
19359 # Append the new tag name to the list of available tags.
19360 if test -n "$tagname" ; then
19361 available_tags="$available_tags $tagname"
19367 # Now substitute the updated list of available tags.
19368 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19369 mv "${ofile}T" "$ofile"
19373 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19374 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19375 { (exit 1); exit 1; }; }
19381 # This can be used to rebuild libtool when needed
19382 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19384 # Always use our own libtool.
19385 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19387 # Prevent multiple expansion
19410 ac_cpp='$CPP $CPPFLAGS'
19411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19417 ac_cpp='$CPP $CPPFLAGS'
19418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19421 if test -n "$ac_tool_prefix"; then
19422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19426 if test "${ac_cv_prog_CC+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 if test -n "$CC"; then
19430 ac_cv_prog_CC="$CC" # Let the user override the test.
19432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19433 for as_dir in $PATH
19436 test -z "$as_dir" && as_dir=.
19437 for ac_exec_ext in '' $ac_executable_extensions; do
19438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19450 if test -n "$CC"; then
19451 { echo "$as_me:$LINENO: result: $CC" >&5
19452 echo "${ECHO_T}$CC" >&6; }
19454 { echo "$as_me:$LINENO: result: no" >&5
19455 echo "${ECHO_T}no" >&6; }
19460 if test -z "$ac_cv_prog_CC"; then
19462 # Extract the first word of "gcc", so it can be a program name with args.
19463 set dummy gcc; ac_word=$2
19464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 if test -n "$ac_ct_CC"; then
19470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19473 for as_dir in $PATH
19476 test -z "$as_dir" && as_dir=.
19477 for ac_exec_ext in '' $ac_executable_extensions; do
19478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19479 ac_cv_prog_ac_ct_CC="gcc"
19480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19490 if test -n "$ac_ct_CC"; then
19491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19492 echo "${ECHO_T}$ac_ct_CC" >&6; }
19494 { echo "$as_me:$LINENO: result: no" >&5
19495 echo "${ECHO_T}no" >&6; }
19498 if test "x$ac_ct_CC" = x; then
19501 case $cross_compiling:$ac_tool_warned in
19503 { echo "$as_me:$LINENO: 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." >&5
19506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19507 whose name does not start with the host triplet. If you think this
19508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19509 ac_tool_warned=yes ;;
19514 CC="$ac_cv_prog_CC"
19517 if test -z "$CC"; then
19518 if test -n "$ac_tool_prefix"; then
19519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19520 set dummy ${ac_tool_prefix}cc; ac_word=$2
19521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19523 if test "${ac_cv_prog_CC+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 if test -n "$CC"; then
19527 ac_cv_prog_CC="$CC" # Let the user override the test.
19529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19530 for as_dir in $PATH
19533 test -z "$as_dir" && as_dir=.
19534 for ac_exec_ext in '' $ac_executable_extensions; do
19535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19536 ac_cv_prog_CC="${ac_tool_prefix}cc"
19537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19547 if test -n "$CC"; then
19548 { echo "$as_me:$LINENO: result: $CC" >&5
19549 echo "${ECHO_T}$CC" >&6; }
19551 { echo "$as_me:$LINENO: result: no" >&5
19552 echo "${ECHO_T}no" >&6; }
19558 if test -z "$CC"; then
19559 # Extract the first word of "cc", so it can be a program name with args.
19560 set dummy cc; ac_word=$2
19561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19563 if test "${ac_cv_prog_CC+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19566 if test -n "$CC"; then
19567 ac_cv_prog_CC="$CC" # Let the user override the test.
19569 ac_prog_rejected=no
19570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19571 for as_dir in $PATH
19574 test -z "$as_dir" && as_dir=.
19575 for ac_exec_ext in '' $ac_executable_extensions; do
19576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19578 ac_prog_rejected=yes
19582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19589 if test $ac_prog_rejected = yes; then
19590 # We found a bogon in the path, so make sure we never use it.
19591 set dummy $ac_cv_prog_CC
19593 if test $# != 0; then
19594 # We chose a different compiler from the bogus one.
19595 # However, it has the same basename, so the bogon will be chosen
19596 # first if we set CC to just the basename; use the full file name.
19598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19604 if test -n "$CC"; then
19605 { echo "$as_me:$LINENO: result: $CC" >&5
19606 echo "${ECHO_T}$CC" >&6; }
19608 { echo "$as_me:$LINENO: result: no" >&5
19609 echo "${ECHO_T}no" >&6; }
19614 if test -z "$CC"; then
19615 if test -n "$ac_tool_prefix"; then
19616 for ac_prog in cl.exe
19618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19622 if test "${ac_cv_prog_CC+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 if test -n "$CC"; then
19626 ac_cv_prog_CC="$CC" # Let the user override the test.
19628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19629 for as_dir in $PATH
19632 test -z "$as_dir" && as_dir=.
19633 for ac_exec_ext in '' $ac_executable_extensions; do
19634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19646 if test -n "$CC"; then
19647 { echo "$as_me:$LINENO: result: $CC" >&5
19648 echo "${ECHO_T}$CC" >&6; }
19650 { echo "$as_me:$LINENO: result: no" >&5
19651 echo "${ECHO_T}no" >&6; }
19655 test -n "$CC" && break
19658 if test -z "$CC"; then
19660 for ac_prog in cl.exe
19662 # Extract the first word of "$ac_prog", so it can be a program name with args.
19663 set dummy $ac_prog; ac_word=$2
19664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 if test -n "$ac_ct_CC"; then
19670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19673 for as_dir in $PATH
19676 test -z "$as_dir" && as_dir=.
19677 for ac_exec_ext in '' $ac_executable_extensions; do
19678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19679 ac_cv_prog_ac_ct_CC="$ac_prog"
19680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19690 if test -n "$ac_ct_CC"; then
19691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19692 echo "${ECHO_T}$ac_ct_CC" >&6; }
19694 { echo "$as_me:$LINENO: result: no" >&5
19695 echo "${ECHO_T}no" >&6; }
19699 test -n "$ac_ct_CC" && break
19702 if test "x$ac_ct_CC" = x; then
19705 case $cross_compiling:$ac_tool_warned in
19707 { echo "$as_me:$LINENO: 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." >&5
19710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19711 whose name does not start with the host triplet. If you think this
19712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19713 ac_tool_warned=yes ;;
19722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19723 See \`config.log' for more details." >&5
19724 echo "$as_me: error: no acceptable C compiler found in \$PATH
19725 See \`config.log' for more details." >&2;}
19726 { (exit 1); exit 1; }; }
19728 # Provide some information about the compiler.
19729 echo "$as_me:$LINENO: checking for C compiler version" >&5
19730 ac_compiler=`set X $ac_compile; echo $2`
19731 { (ac_try="$ac_compiler --version >&5"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_compiler --version >&5") 2>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }
19741 { (ac_try="$ac_compiler -v >&5"
19742 case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_compiler -v >&5") 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }
19751 { (ac_try="$ac_compiler -V >&5"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_compiler -V >&5") 2>&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }
19762 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19763 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19764 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19785 rm -f conftest.$ac_objext
19786 if { (ac_try="$ac_compile"
19787 case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_compile") 2>conftest.er1
19794 grep -v '^ *+' conftest.er1 >conftest.err
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } && {
19799 test -z "$ac_c_werror_flag" ||
19800 test ! -s conftest.err
19801 } && test -s conftest.$ac_objext; then
19802 ac_compiler_gnu=yes
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19814 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19815 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19816 GCC=`test $ac_compiler_gnu = yes && echo yes`
19817 ac_test_CFLAGS=${CFLAGS+set}
19818 ac_save_CFLAGS=$CFLAGS
19819 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19820 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19821 if test "${ac_cv_prog_cc_g+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 ac_save_c_werror_flag=$ac_c_werror_flag
19825 ac_c_werror_flag=yes
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19843 rm -f conftest.$ac_objext
19844 if { (ac_try="$ac_compile"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_compile") 2>conftest.er1
19852 grep -v '^ *+' conftest.er1 >conftest.err
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } && {
19857 test -z "$ac_c_werror_flag" ||
19858 test ! -s conftest.err
19859 } && test -s conftest.$ac_objext; then
19860 ac_cv_prog_cc_g=yes
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19881 rm -f conftest.$ac_objext
19882 if { (ac_try="$ac_compile"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_compile") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest.$ac_objext; then
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_c_werror_flag=$ac_save_c_werror_flag
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_compile") 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } && {
19934 test -z "$ac_c_werror_flag" ||
19935 test ! -s conftest.err
19936 } && test -s conftest.$ac_objext; then
19937 ac_cv_prog_cc_g=yes
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 ac_c_werror_flag=$ac_save_c_werror_flag
19954 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19955 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19956 if test "$ac_test_CFLAGS" = set; then
19957 CFLAGS=$ac_save_CFLAGS
19958 elif test $ac_cv_prog_cc_g = yes; then
19959 if test "$GCC" = yes; then
19965 if test "$GCC" = yes; then
19971 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19972 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19973 if test "${ac_cv_prog_cc_c89+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 ac_cv_prog_cc_c89=no
19978 cat >conftest.$ac_ext <<_ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19984 #include <stdarg.h>
19986 #include <sys/types.h>
19987 #include <sys/stat.h>
19988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19989 struct buf { int x; };
19990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19991 static char *e (p, i)
19997 static char *f (char * (*g) (char **, int), char **p, ...)
20002 s = g (p, va_arg (v,int));
20007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20008 function prototypes and stuff, but not '\xHH' hex character constants.
20009 These don't provoke an error unfortunately, instead are silently treated
20010 as 'x'. The following induces an error, until -std is added to get
20011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20012 array size at least. It's necessary to write '\x00'==0 to get something
20013 that's true only with -std. */
20014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20017 inside strings and character constants. */
20019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20021 int test (int i, double x);
20022 struct s1 {int (*f) (int a);};
20023 struct s2 {int (*f) (double a);};
20024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20036 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20038 CC="$ac_save_CC $ac_arg"
20039 rm -f conftest.$ac_objext
20040 if { (ac_try="$ac_compile"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_compile") 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } && {
20053 test -z "$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 } && test -s conftest.$ac_objext; then
20056 ac_cv_prog_cc_c89=$ac_arg
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20064 rm -f core conftest.err conftest.$ac_objext
20065 test "x$ac_cv_prog_cc_c89" != "xno" && break
20067 rm -f conftest.$ac_ext
20072 case "x$ac_cv_prog_cc_c89" in
20074 { echo "$as_me:$LINENO: result: none needed" >&5
20075 echo "${ECHO_T}none needed" >&6; } ;;
20077 { echo "$as_me:$LINENO: result: unsupported" >&5
20078 echo "${ECHO_T}unsupported" >&6; } ;;
20080 CC="$CC $ac_cv_prog_cc_c89"
20081 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20082 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20087 ac_cpp='$CPP $CPPFLAGS'
20088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20092 depcc="$CC" am_compiler_list=
20094 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20095 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20096 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20100 # We make a subdir and do the tests there. Otherwise we can end up
20101 # making bogus files that we don't know about and never remove. For
20102 # instance it was reported that on HP-UX the gcc test will end up
20103 # making a dummy file named `D' -- because `-MD' means `put the output
20106 # Copy depcomp to subdir because otherwise we won't find it if we're
20107 # using a relative directory.
20108 cp "$am_depcomp" conftest.dir
20110 # We will build objects and dependencies in a subdirectory because
20111 # it helps to detect inapplicable dependency modes. For instance
20112 # both Tru64's cc and ICC support -MD to output dependencies as a
20113 # side effect of compilation, but ICC will put the dependencies in
20114 # the current directory while Tru64 will put them in the object
20118 am_cv_CC_dependencies_compiler_type=none
20119 if test "$am_compiler_list" = ""; then
20120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20122 for depmode in $am_compiler_list; do
20123 # Setup a source with many dependencies, because some compilers
20124 # like to wrap large dependency lists on column 80 (with \), and
20125 # we should not choose a depcomp mode which is confused by this.
20127 # We need to recreate these files for each test, as the compiler may
20128 # overwrite some of them when testing with obscure command lines.
20129 # This happens at least with the AIX C compiler.
20131 for i in 1 2 3 4 5 6; do
20132 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20133 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20134 # Solaris 8's {/usr,}/bin/sh.
20135 touch sub/conftst$i.h
20137 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20141 # after this tag, mechanisms are not by side-effect, so they'll
20142 # only be used when explicitly requested
20143 if test "x$enable_dependency_tracking" = xyes; then
20151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20152 # mode. It turns out that the SunPro C++ compiler does not properly
20153 # handle `-M -o', and we need to detect this.
20154 if depmode=$depmode \
20155 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20156 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20157 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20158 >/dev/null 2>conftest.err &&
20159 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20160 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20161 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20162 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20163 # icc doesn't choke on unknown options, it will just issue warnings
20164 # or remarks (even with -Werror). So we grep stderr for any message
20165 # that says an option was ignored or not supported.
20166 # When given -MP, icc 7.0 and 7.1 complain thusly:
20167 # icc: Command line warning: ignoring option '-M'; no argument required
20168 # The diagnosis changed in icc 8.0:
20169 # icc: Command line remark: option '-MP' not supported
20170 if (grep 'ignoring option' conftest.err ||
20171 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20172 am_cv_CC_dependencies_compiler_type=$depmode
20179 rm -rf conftest.dir
20181 am_cv_CC_dependencies_compiler_type=none
20185 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20186 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20187 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20190 test "x$enable_dependency_tracking" != xno \
20191 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20192 am__fastdepCC_TRUE=
20193 am__fastdepCC_FALSE='#'
20195 am__fastdepCC_TRUE='#'
20196 am__fastdepCC_FALSE=
20201 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20202 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20203 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20204 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 cat >conftest.make <<\_ACEOF
20210 @echo '@@@%%%=$(MAKE)=@@@%%%'
20212 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20214 *@@@%%%=?*=@@@%%%*)
20215 eval ac_cv_prog_make_${ac_make}_set=yes;;
20217 eval ac_cv_prog_make_${ac_make}_set=no;;
20219 rm -f conftest.make
20221 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20222 { echo "$as_me:$LINENO: result: yes" >&5
20223 echo "${ECHO_T}yes" >&6; }
20226 { echo "$as_me:$LINENO: result: no" >&5
20227 echo "${ECHO_T}no" >&6; }
20228 SET_MAKE="MAKE=${MAKE-make}"
20232 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20234 if test "${ac_cv_header_stdc+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 #include <stdlib.h>
20244 #include <stdarg.h>
20245 #include <string.h>
20256 rm -f conftest.$ac_objext
20257 if { (ac_try="$ac_compile"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_compile") 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest.$ac_objext; then
20273 ac_cv_header_stdc=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_cv_header_stdc=no
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 if test $ac_cv_header_stdc = yes; then
20284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20285 cat >conftest.$ac_ext <<_ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h. */
20291 #include <string.h>
20294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20295 $EGREP "memchr" >/dev/null 2>&1; then
20298 ac_cv_header_stdc=no
20304 if test $ac_cv_header_stdc = yes; then
20305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 #include <stdlib.h>
20315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20316 $EGREP "free" >/dev/null 2>&1; then
20319 ac_cv_header_stdc=no
20325 if test $ac_cv_header_stdc = yes; then
20326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20327 if test "$cross_compiling" = yes; then
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20337 #include <stdlib.h>
20338 #if ((' ' & 0x0FF) == 0x020)
20339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20342 # define ISLOWER(c) \
20343 (('a' <= (c) && (c) <= 'i') \
20344 || ('j' <= (c) && (c) <= 'r') \
20345 || ('s' <= (c) && (c) <= 'z'))
20346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20354 for (i = 0; i < 256; i++)
20355 if (XOR (islower (i), ISLOWER (i))
20356 || toupper (i) != TOUPPER (i))
20361 rm -f conftest$ac_exeext
20362 if { (ac_try="$ac_link"
20363 case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_link") 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20372 { (case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_try") 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20383 echo "$as_me: program exited with status $ac_status" >&5
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ( exit $ac_status )
20388 ac_cv_header_stdc=no
20390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20396 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20397 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20398 if test $ac_cv_header_stdc = yes; then
20400 cat >>confdefs.h <<\_ACEOF
20401 #define STDC_HEADERS 1
20412 ac_header_dirent=no
20413 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20414 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20415 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20416 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 cat >conftest.$ac_ext <<_ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426 #include <sys/types.h>
20438 rm -f conftest.$ac_objext
20439 if { (ac_try="$ac_compile"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_compile") 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest.$ac_objext; then
20455 eval "$as_ac_Header=yes"
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 eval "$as_ac_Header=no"
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465 ac_res=`eval echo '${'$as_ac_Header'}'`
20466 { echo "$as_me:$LINENO: result: $ac_res" >&5
20467 echo "${ECHO_T}$ac_res" >&6; }
20468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20469 cat >>confdefs.h <<_ACEOF
20470 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20473 ac_header_dirent=$ac_hdr; break
20477 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20478 if test $ac_header_dirent = dirent.h; then
20479 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20480 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20481 if test "${ac_cv_search_opendir+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 ac_func_search_save_LIBS=$LIBS
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20492 /* Override any GCC internal prototype to avoid an error.
20493 Use char because int might match the return type of a GCC
20494 builtin and then its argument prototype would still apply. */
20507 for ac_lib in '' dir; do
20508 if test -z "$ac_lib"; then
20509 ac_res="none required"
20512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } && {
20528 test -z "$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 } && test -s conftest$ac_exeext &&
20531 $as_test_x conftest$ac_exeext; then
20532 ac_cv_search_opendir=$ac_res
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20542 if test "${ac_cv_search_opendir+set}" = set; then
20546 if test "${ac_cv_search_opendir+set}" = set; then
20549 ac_cv_search_opendir=no
20551 rm conftest.$ac_ext
20552 LIBS=$ac_func_search_save_LIBS
20554 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20555 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20556 ac_res=$ac_cv_search_opendir
20557 if test "$ac_res" != no; then
20558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20563 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20564 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20565 if test "${ac_cv_search_opendir+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 ac_func_search_save_LIBS=$LIBS
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20576 /* Override any GCC internal prototype to avoid an error.
20577 Use char because int might match the return type of a GCC
20578 builtin and then its argument prototype would still apply. */
20591 for ac_lib in '' x; do
20592 if test -z "$ac_lib"; then
20593 ac_res="none required"
20596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20598 rm -f conftest.$ac_objext conftest$ac_exeext
20599 if { (ac_try="$ac_link"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_link") 2>conftest.er1
20607 grep -v '^ *+' conftest.er1 >conftest.err
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && {
20612 test -z "$ac_c_werror_flag" ||
20613 test ! -s conftest.err
20614 } && test -s conftest$ac_exeext &&
20615 $as_test_x conftest$ac_exeext; then
20616 ac_cv_search_opendir=$ac_res
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20626 if test "${ac_cv_search_opendir+set}" = set; then
20630 if test "${ac_cv_search_opendir+set}" = set; then
20633 ac_cv_search_opendir=no
20635 rm conftest.$ac_ext
20636 LIBS=$ac_func_search_save_LIBS
20638 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20639 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20640 ac_res=$ac_cv_search_opendir
20641 if test "$ac_res" != no; then
20642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20650 for ac_header in unistd.h
20652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 ac_res=`eval echo '${'$as_ac_Header'}'`
20660 { echo "$as_me:$LINENO: result: $ac_res" >&5
20661 echo "${ECHO_T}$ac_res" >&6; }
20663 # Is the header compilable?
20664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 $ac_includes_default
20673 #include <$ac_header>
20675 rm -f conftest.$ac_objext
20676 if { (ac_try="$ac_compile"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_compile") 2>conftest.er1
20684 grep -v '^ *+' conftest.er1 >conftest.err
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } && {
20689 test -z "$ac_c_werror_flag" ||
20690 test ! -s conftest.err
20691 } && test -s conftest.$ac_objext; then
20692 ac_header_compiler=yes
20694 echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 ac_header_compiler=no
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20702 echo "${ECHO_T}$ac_header_compiler" >&6; }
20704 # Is the header present?
20705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20707 cat >conftest.$ac_ext <<_ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 #include <$ac_header>
20715 if { (ac_try="$ac_cpp conftest.$ac_ext"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } >/dev/null && {
20728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20729 test ! -s conftest.err
20731 ac_header_preproc=yes
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ac_header_preproc=no
20739 rm -f conftest.err conftest.$ac_ext
20740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20741 echo "${ECHO_T}$ac_header_preproc" >&6; }
20743 # So? What about this header?
20744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20750 ac_header_preproc=yes
20753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 eval "$as_ac_Header=\$ac_header_preproc"
20775 ac_res=`eval echo '${'$as_ac_Header'}'`
20776 { echo "$as_me:$LINENO: result: $ac_res" >&5
20777 echo "${ECHO_T}$ac_res" >&6; }
20780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20781 cat >>confdefs.h <<_ACEOF
20782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20786 { { echo "$as_me:$LINENO: error: required header file missing" >&5
20787 echo "$as_me: error: required header file missing" >&2;}
20788 { (exit 1); exit 1; }; }
20798 for ac_header in sys/stat.h sys/wait.h sys/time.h sys/timeb.h
20800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20807 ac_res=`eval echo '${'$as_ac_Header'}'`
20808 { echo "$as_me:$LINENO: result: $ac_res" >&5
20809 echo "${ECHO_T}$ac_res" >&6; }
20811 # Is the header compilable?
20812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20814 cat >conftest.$ac_ext <<_ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 $ac_includes_default
20821 #include <$ac_header>
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_compile") 2>conftest.er1
20832 grep -v '^ *+' conftest.er1 >conftest.err
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest.$ac_objext; then
20840 ac_header_compiler=yes
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ac_header_compiler=no
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20850 echo "${ECHO_T}$ac_header_compiler" >&6; }
20852 # Is the header present?
20853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20855 cat >conftest.$ac_ext <<_ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 #include <$ac_header>
20863 if { (ac_try="$ac_cpp conftest.$ac_ext"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20871 grep -v '^ *+' conftest.er1 >conftest.err
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } >/dev/null && {
20876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20879 ac_header_preproc=yes
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_header_preproc=no
20887 rm -f conftest.err conftest.$ac_ext
20888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20889 echo "${ECHO_T}$ac_header_preproc" >&6; }
20891 # So? What about this header?
20892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20898 ac_header_preproc=yes
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 eval "$as_ac_Header=\$ac_header_preproc"
20923 ac_res=`eval echo '${'$as_ac_Header'}'`
20924 { echo "$as_me:$LINENO: result: $ac_res" >&5
20925 echo "${ECHO_T}$ac_res" >&6; }
20928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20929 cat >>confdefs.h <<_ACEOF
20930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20938 # Check whether --enable-lua was given.
20939 if test "${enable_lua+set}" = set; then
20940 enableval=$enable_lua; case "${enableval}" in
20943 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-lua" >&5
20944 echo "$as_me: error: bad value ${enableval} for --enable-lua" >&2;}
20945 { (exit 1); exit 1; }; } ;;
20953 for ac_header in lua.h
20955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 ac_res=`eval echo '${'$as_ac_Header'}'`
20963 { echo "$as_me:$LINENO: result: $ac_res" >&5
20964 echo "${ECHO_T}$ac_res" >&6; }
20966 # Is the header compilable?
20967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 $ac_includes_default
20976 #include <$ac_header>
20978 rm -f conftest.$ac_objext
20979 if { (ac_try="$ac_compile"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_compile") 2>conftest.er1
20987 grep -v '^ *+' conftest.er1 >conftest.err
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest.$ac_objext; then
20995 ac_header_compiler=yes
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 ac_header_compiler=no
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21005 echo "${ECHO_T}$ac_header_compiler" >&6; }
21007 # Is the header present?
21008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21010 cat >conftest.$ac_ext <<_ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 #include <$ac_header>
21018 if { (ac_try="$ac_cpp conftest.$ac_ext"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21026 grep -v '^ *+' conftest.er1 >conftest.err
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } >/dev/null && {
21031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21034 ac_header_preproc=yes
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 ac_header_preproc=no
21042 rm -f conftest.err conftest.$ac_ext
21043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21044 echo "${ECHO_T}$ac_header_preproc" >&6; }
21046 # So? What about this header?
21047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21053 ac_header_preproc=yes
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21076 eval "$as_ac_Header=\$ac_header_preproc"
21078 ac_res=`eval echo '${'$as_ac_Header'}'`
21079 { echo "$as_me:$LINENO: result: $ac_res" >&5
21080 echo "${ECHO_T}$ac_res" >&6; }
21083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21084 cat >>confdefs.h <<_ACEOF
21085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21095 if test x$lua = xtrue; then
21096 { echo "$as_me:$LINENO: Will build the Lua module" >&5
21097 echo "$as_me: Will build the Lua module" >&6;}
21099 { echo "$as_me:$LINENO: Skipping the lua module" >&5
21100 echo "$as_me: Skipping the lua module" >&6;}
21104 if test x$lua = xtrue; then
21115 for ac_func in access atoi
21117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21131 #define $ac_func innocuous_$ac_func
21133 /* System header to define __stub macros and hopefully few prototypes,
21134 which can conflict with char $ac_func (); below.
21135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21136 <limits.h> exists even on freestanding compilers. */
21139 # include <limits.h>
21141 # include <assert.h>
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21153 /* The GNU C library defines this for functions which it implements
21154 to always fail with ENOSYS. Some functions are actually named
21155 something starting with __ and the normal name is an alias. */
21156 #if defined __stub_$ac_func || defined __stub___$ac_func
21163 return $ac_func ();
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175 (eval "$ac_link") 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && {
21182 test -z "$ac_c_werror_flag" ||
21183 test ! -s conftest.err
21184 } && test -s conftest$ac_exeext &&
21185 $as_test_x conftest$ac_exeext; then
21186 eval "$as_ac_var=yes"
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 eval "$as_ac_var=no"
21194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195 conftest$ac_exeext conftest.$ac_ext
21197 ac_res=`eval echo '${'$as_ac_var'}'`
21198 { echo "$as_me:$LINENO: result: $ac_res" >&5
21199 echo "${ECHO_T}$ac_res" >&6; }
21200 if test `eval echo '${'$as_ac_var'}'` = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21206 { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
21207 echo "$as_me: error: required standard library function missing" >&2;}
21208 { (exit 1); exit 1; }; }
21218 for ac_func in snprintf gettimeofday ftime mkstemp mktemp
21220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21224 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21234 #define $ac_func innocuous_$ac_func
21236 /* System header to define __stub macros and hopefully few prototypes,
21237 which can conflict with char $ac_func (); below.
21238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21239 <limits.h> exists even on freestanding compilers. */
21242 # include <limits.h>
21244 # include <assert.h>
21249 /* Override any GCC internal prototype to avoid an error.
21250 Use char because int might match the return type of a GCC
21251 builtin and then its argument prototype would still apply. */
21256 /* The GNU C library defines this for functions which it implements
21257 to always fail with ENOSYS. Some functions are actually named
21258 something starting with __ and the normal name is an alias. */
21259 #if defined __stub_$ac_func || defined __stub___$ac_func
21266 return $ac_func ();
21271 rm -f conftest.$ac_objext conftest$ac_exeext
21272 if { (ac_try="$ac_link"
21273 case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_link") 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && {
21285 test -z "$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 } && test -s conftest$ac_exeext &&
21288 $as_test_x conftest$ac_exeext; then
21289 eval "$as_ac_var=yes"
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 eval "$as_ac_var=no"
21297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21298 conftest$ac_exeext conftest.$ac_ext
21300 ac_res=`eval echo '${'$as_ac_var'}'`
21301 { echo "$as_me:$LINENO: result: $ac_res" >&5
21302 echo "${ECHO_T}$ac_res" >&6; }
21303 if test `eval echo '${'$as_ac_var'}'` = yes; then
21304 cat >>confdefs.h <<_ACEOF
21305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21314 { echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
21315 echo $ECHO_N "checking for st_mtim in struct stat... $ECHO_C" >&6; }
21316 if test "${ac_cv_struct_st_mtim+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21319 cat >conftest.$ac_ext <<_ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 #include <sys/types.h>
21326 #include <sys/stat.h>
21330 struct stat s; s.st_mtim;
21335 rm -f conftest.$ac_objext
21336 if { (ac_try="$ac_compile"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_compile") 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && {
21349 test -z "$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 } && test -s conftest.$ac_objext; then
21352 ac_cv_struct_st_mtim=yes
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ac_cv_struct_st_mtim=no
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
21363 echo "${ECHO_T}$ac_cv_struct_st_mtim" >&6; }
21364 if test $ac_cv_struct_st_mtim = yes; then
21366 cat >>confdefs.h <<\_ACEOF
21367 #define HAVE_ST_MTIM 1
21374 ac_config_files="$ac_config_files Makefile"
21376 cat >confcache <<\_ACEOF
21377 # This file is a shell script that caches the results of configure
21378 # tests run on this system so they can be shared between configure
21379 # scripts and configure runs, see configure's option --config-cache.
21380 # It is not useful on other systems. If it contains results you don't
21381 # want to keep, you may remove or edit it.
21383 # config.status only pays attention to the cache file if you give it
21384 # the --recheck option to rerun configure.
21386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21388 # following values.
21392 # The following way of writing the cache mishandles newlines in values,
21393 # but we know of no workaround that is simple, portable, and efficient.
21394 # So, we kill variables containing newlines.
21395 # Ultrix sh set writes to stderr and can't be redirected directly,
21396 # and sets the high bit in the cache file unless we assign to the vars.
21398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21399 eval ac_val=\$$ac_var
21403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21407 _ | IFS | as_nl) ;; #(
21408 *) $as_unset $ac_var ;;
21414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21415 *${as_nl}ac_space=\ *)
21416 # `set' does not quote correctly, so add quotes (double-quote
21417 # substitution turns \\\\ into \\, and sed turns \\ into \).
21420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21423 # `set' quotes correctly as required by POSIX, so do not add quotes.
21424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21438 if test -w "$cache_file"; then
21439 test "x$cache_file" != "x/dev/null" &&
21440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21441 echo "$as_me: updating cache $cache_file" >&6;}
21442 cat confcache >$cache_file
21444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21451 # Let make expand exec_prefix.
21452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21454 DEFS=-DHAVE_CONFIG_H
21458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21459 # 1. Remove the extension, and $U if already installed.
21460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21461 ac_i=`echo "$ac_i" | sed "$ac_script"`
21462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21463 # will be set to the directory where LIBOBJS objects are built.
21464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21467 LIBOBJS=$ac_libobjs
21469 LTLIBOBJS=$ac_ltlibobjs
21472 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21473 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21474 Usually this means the macro was only invoked conditionally." >&5
21475 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21476 Usually this means the macro was only invoked conditionally." >&2;}
21477 { (exit 1); exit 1; }; }
21479 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21480 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21481 Usually this means the macro was only invoked conditionally." >&5
21482 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21483 Usually this means the macro was only invoked conditionally." >&2;}
21484 { (exit 1); exit 1; }; }
21486 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21487 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21488 Usually this means the macro was only invoked conditionally." >&5
21489 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21490 Usually this means the macro was only invoked conditionally." >&2;}
21491 { (exit 1); exit 1; }; }
21493 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21494 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21495 Usually this means the macro was only invoked conditionally." >&5
21496 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21497 Usually this means the macro was only invoked conditionally." >&2;}
21498 { (exit 1); exit 1; }; }
21500 if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
21501 { { echo "$as_me:$LINENO: error: conditional \"WITH_LUA\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&5
21503 echo "$as_me: error: conditional \"WITH_LUA\" was never defined.
21504 Usually this means the macro was only invoked conditionally." >&2;}
21505 { (exit 1); exit 1; }; }
21508 : ${CONFIG_STATUS=./config.status}
21509 ac_clean_files_save=$ac_clean_files
21510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21513 cat >$CONFIG_STATUS <<_ACEOF
21515 # Generated by $as_me.
21516 # Run this file to recreate the current configuration.
21517 # Compiler output produced by configure, useful for debugging
21518 # configure, is in config.log if it exists.
21521 ac_cs_recheck=false
21523 SHELL=\${CONFIG_SHELL-$SHELL}
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21527 ## --------------------- ##
21528 ## M4sh Initialization. ##
21529 ## --------------------- ##
21531 # Be more Bourne compatible
21532 DUALCASE=1; export DUALCASE # for MKS sh
21533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21536 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21537 # is contrary to our usage. Disable this feature.
21538 alias -g '${1+"$@"}'='"$@"'
21539 setopt NO_GLOB_SUBST
21541 case `(set -o) 2>/dev/null` in
21542 *posix*) set -o posix ;;
21551 # Avoid depending upon Character Ranges.
21552 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21553 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21554 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21555 as_cr_digits='0123456789'
21556 as_cr_alnum=$as_cr_Letters$as_cr_digits
21558 # The user is always right.
21559 if test "${PATH_SEPARATOR+set}" != set; then
21560 echo "#! /bin/sh" >conf$$.sh
21561 echo "exit 0" >>conf$$.sh
21563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21571 # Support unset when possible.
21572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21580 # We need space, tab and new line, in precisely that order. Quoting is
21581 # there to prevent editors from complaining about space-tab.
21582 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21583 # splitting by setting IFS to empty value.)
21588 # Find who we are. Look in the path if we contain no directory separator.
21590 *[\\/]* ) as_myself=$0 ;;
21591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21592 for as_dir in $PATH
21595 test -z "$as_dir" && as_dir=.
21596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21602 # We did not find ourselves, most probably we were run as `sh COMMAND'
21603 # in which case we are not to be found in the path.
21604 if test "x$as_myself" = x; then
21607 if test ! -f "$as_myself"; then
21608 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21609 { (exit 1); exit 1; }
21612 # Work around bugs in pre-3.0 UWIN ksh.
21613 for as_var in ENV MAIL MAILPATH
21614 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21622 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21623 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21624 LC_TELEPHONE LC_TIME
21626 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21627 eval $as_var=C; export $as_var
21629 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21633 # Required to use basename.
21634 if expr a : '\(a\)' >/dev/null 2>&1 &&
21635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21642 as_basename=basename
21648 # Name of the executable.
21649 as_me=`$as_basename -- "$0" ||
21650 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21651 X"$0" : 'X\(//\)$' \| \
21652 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21654 sed '/^.*\/\([^/][^/]*\)\/*$/{
21673 as_lineno_1=$LINENO
21674 as_lineno_2=$LINENO
21675 test "x$as_lineno_1" != "x$as_lineno_2" &&
21676 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21678 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21679 # uniformly replaced by the line number. The first 'sed' inserts a
21680 # line-number line after each line using $LINENO; the second 'sed'
21681 # does the real work. The second script uses 'N' to pair each
21682 # line-number line with the line containing $LINENO, and appends
21683 # trailing '-' during substitution so that $LINENO is not a special
21684 # case at line end.
21685 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21686 # scripts with optimization help from Paolo Bonzini. Blame Lee
21687 # E. McMahon (1931-1989) for sed's syntax. :-)
21699 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21702 ' >$as_me.lineno &&
21703 chmod +x "$as_me.lineno" ||
21704 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21705 { (exit 1); exit 1; }; }
21707 # Don't try to exec as it changes $[0], causing all sort of problems
21708 # (the dirname of $[0] is not the place where we might find the
21709 # original and so on. Autoconf is especially sensitive to this).
21710 . "./$as_me.lineno"
21711 # Exit status is that of the last command.
21716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21722 ECHO_C= ECHO_N= ECHO_T=
21723 case `echo -n x` in
21725 case `echo 'x\c'` in
21726 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21733 if expr a : '\(a\)' >/dev/null 2>&1 &&
21734 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21740 rm -f conf$$ conf$$.exe conf$$.file
21741 if test -d conf$$.dir; then
21742 rm -f conf$$.dir/conf$$.file
21748 if ln -s conf$$.file conf$$ 2>/dev/null; then
21750 # ... but there are two gotchas:
21751 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21752 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21753 # In both cases, we have to default to `cp -p'.
21754 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21756 elif ln conf$$.file conf$$ 2>/dev/null; then
21761 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21762 rmdir conf$$.dir 2>/dev/null
21764 if mkdir -p . 2>/dev/null; then
21767 test -d ./-p && rmdir ./-p
21771 if test -x / >/dev/null 2>&1; then
21772 as_test_x='test -x'
21774 if ls -dL / >/dev/null 2>&1; then
21781 if test -d "$1"; then
21787 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21788 ???[sx]*):;;*)false;;esac;fi
21792 as_executable_p=$as_test_x
21794 # Sed expression to map a string onto a valid CPP name.
21795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21797 # Sed expression to map a string onto a valid variable name.
21798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21803 # Save the log message, to keep $[0] and so on meaningful, and to
21804 # report actual input values of CONFIG_FILES etc. instead of their
21805 # values after options handling.
21807 This file was extended by $as_me, which was
21808 generated by GNU Autoconf 2.61. Invocation command line was
21810 CONFIG_FILES = $CONFIG_FILES
21811 CONFIG_HEADERS = $CONFIG_HEADERS
21812 CONFIG_LINKS = $CONFIG_LINKS
21813 CONFIG_COMMANDS = $CONFIG_COMMANDS
21816 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21821 cat >>$CONFIG_STATUS <<_ACEOF
21822 # Files that config.status was made for.
21823 config_files="$ac_config_files"
21824 config_headers="$ac_config_headers"
21825 config_commands="$ac_config_commands"
21829 cat >>$CONFIG_STATUS <<\_ACEOF
21831 \`$as_me' instantiates files from templates according to the
21832 current configuration.
21834 Usage: $0 [OPTIONS] [FILE]...
21836 -h, --help print this help, then exit
21837 -V, --version print version number and configuration settings, then exit
21838 -q, --quiet do not print progress messages
21839 -d, --debug don't remove temporary files
21840 --recheck update $as_me by reconfiguring in the same conditions
21841 --file=FILE[:TEMPLATE]
21842 instantiate the configuration file FILE
21843 --header=FILE[:TEMPLATE]
21844 instantiate the configuration header FILE
21846 Configuration files:
21849 Configuration headers:
21852 Configuration commands:
21855 Report bugs to <bug-autoconf@gnu.org>."
21858 cat >>$CONFIG_STATUS <<_ACEOF
21861 configured by $0, generated by GNU Autoconf 2.61,
21862 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21864 Copyright (C) 2006 Free Software Foundation, Inc.
21865 This config.status script is free software; the Free Software Foundation
21866 gives unlimited permission to copy, distribute and modify it."
21874 cat >>$CONFIG_STATUS <<\_ACEOF
21875 # If no file are specified by the user, then we need to provide default
21876 # value. By we need to know if files were specified by the user.
21882 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21883 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21894 # Handling of the options.
21895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21897 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21898 echo "$ac_cs_version"; exit ;;
21899 --debug | --debu | --deb | --de | --d | -d )
21901 --file | --fil | --fi | --f )
21903 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21904 ac_need_defaults=false;;
21905 --header | --heade | --head | --hea )
21907 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21908 ac_need_defaults=false;;
21910 # Conflict between --help and --header
21911 { echo "$as_me: error: ambiguous option: $1
21912 Try \`$0 --help' for more information." >&2
21913 { (exit 1); exit 1; }; };;
21914 --help | --hel | -h )
21915 echo "$ac_cs_usage"; exit ;;
21916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21917 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21920 # This is an error.
21921 -*) { echo "$as_me: error: unrecognized option: $1
21922 Try \`$0 --help' for more information." >&2
21923 { (exit 1); exit 1; }; } ;;
21925 *) ac_config_targets="$ac_config_targets $1"
21926 ac_need_defaults=false ;;
21932 ac_configure_extra_args=
21934 if $ac_cs_silent; then
21936 ac_configure_extra_args="$ac_configure_extra_args --silent"
21940 cat >>$CONFIG_STATUS <<_ACEOF
21941 if \$ac_cs_recheck; then
21942 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21943 CONFIG_SHELL=$SHELL
21944 export CONFIG_SHELL
21945 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21949 cat >>$CONFIG_STATUS <<\_ACEOF
21953 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21954 ## Running $as_me. ##
21960 cat >>$CONFIG_STATUS <<_ACEOF
21964 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21968 cat >>$CONFIG_STATUS <<\_ACEOF
21970 # Handling of arguments.
21971 for ac_config_target in $ac_config_targets
21973 case $ac_config_target in
21974 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21976 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21978 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21979 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21980 { (exit 1); exit 1; }; };;
21985 # If the user did not use the arguments to specify the items to instantiate,
21986 # then the envvar interface is used. Set only those that are not.
21987 # We use the long form for the default assignment because of an extremely
21988 # bizarre bug on SunOS 4.1.3.
21989 if $ac_need_defaults; then
21990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21992 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21995 # Have a temporary directory for convenience. Make it in the build tree
21996 # simply because there is no reason against having it here, and in addition,
21997 # creating and moving files from /tmp can sometimes cause problems.
21998 # Hook for its removal unless debugging.
21999 # Note that there is a small window in which the directory will not be cleaned:
22000 # after its creation but before its name has been assigned to `$tmp'.
22004 trap 'exit_status=$?
22005 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22007 trap '{ (exit 1); exit 1; }' 1 2 13 15
22009 # Create a (secure) tmp directory for tmp files.
22012 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22013 test -n "$tmp" && test -d "$tmp"
22016 tmp=./conf$$-$RANDOM
22017 (umask 077 && mkdir "$tmp")
22020 echo "$me: cannot create a temporary directory in ." >&2
22021 { (exit 1); exit 1; }
22025 # Set up the sed scripts for CONFIG_FILES section.
22028 # No need to generate the scripts if there are no CONFIG_FILES.
22029 # This happens for instance when ./config.status config.h
22030 if test -n "$CONFIG_FILES"; then
22037 for ac_last_try in false false false false false :; do
22038 cat >conf$$subs.sed <<_ACEOF
22039 SHELL!$SHELL$ac_delim
22040 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22041 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22042 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22043 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22044 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22045 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22046 exec_prefix!$exec_prefix$ac_delim
22047 prefix!$prefix$ac_delim
22048 program_transform_name!$program_transform_name$ac_delim
22049 bindir!$bindir$ac_delim
22050 sbindir!$sbindir$ac_delim
22051 libexecdir!$libexecdir$ac_delim
22052 datarootdir!$datarootdir$ac_delim
22053 datadir!$datadir$ac_delim
22054 sysconfdir!$sysconfdir$ac_delim
22055 sharedstatedir!$sharedstatedir$ac_delim
22056 localstatedir!$localstatedir$ac_delim
22057 includedir!$includedir$ac_delim
22058 oldincludedir!$oldincludedir$ac_delim
22059 docdir!$docdir$ac_delim
22060 infodir!$infodir$ac_delim
22061 htmldir!$htmldir$ac_delim
22062 dvidir!$dvidir$ac_delim
22063 pdfdir!$pdfdir$ac_delim
22064 psdir!$psdir$ac_delim
22065 libdir!$libdir$ac_delim
22066 localedir!$localedir$ac_delim
22067 mandir!$mandir$ac_delim
22068 DEFS!$DEFS$ac_delim
22069 ECHO_C!$ECHO_C$ac_delim
22070 ECHO_N!$ECHO_N$ac_delim
22071 ECHO_T!$ECHO_T$ac_delim
22072 LIBS!$LIBS$ac_delim
22073 build_alias!$build_alias$ac_delim
22074 host_alias!$host_alias$ac_delim
22075 target_alias!$target_alias$ac_delim
22076 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22077 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22078 INSTALL_DATA!$INSTALL_DATA$ac_delim
22079 am__isrc!$am__isrc$ac_delim
22080 CYGPATH_W!$CYGPATH_W$ac_delim
22081 PACKAGE!$PACKAGE$ac_delim
22082 VERSION!$VERSION$ac_delim
22083 ACLOCAL!$ACLOCAL$ac_delim
22084 AUTOCONF!$AUTOCONF$ac_delim
22085 AUTOMAKE!$AUTOMAKE$ac_delim
22086 AUTOHEADER!$AUTOHEADER$ac_delim
22087 MAKEINFO!$MAKEINFO$ac_delim
22088 install_sh!$install_sh$ac_delim
22089 STRIP!$STRIP$ac_delim
22090 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22091 mkdir_p!$mkdir_p$ac_delim
22093 SET_MAKE!$SET_MAKE$ac_delim
22094 am__leading_dot!$am__leading_dot$ac_delim
22095 AMTAR!$AMTAR$ac_delim
22096 am__tar!$am__tar$ac_delim
22097 am__untar!$am__untar$ac_delim
22098 build!$build$ac_delim
22099 build_cpu!$build_cpu$ac_delim
22100 build_vendor!$build_vendor$ac_delim
22101 build_os!$build_os$ac_delim
22102 host!$host$ac_delim
22103 host_cpu!$host_cpu$ac_delim
22104 host_vendor!$host_vendor$ac_delim
22105 host_os!$host_os$ac_delim
22107 CFLAGS!$CFLAGS$ac_delim
22108 LDFLAGS!$LDFLAGS$ac_delim
22109 CPPFLAGS!$CPPFLAGS$ac_delim
22110 ac_ct_CC!$ac_ct_CC$ac_delim
22111 EXEEXT!$EXEEXT$ac_delim
22112 OBJEXT!$OBJEXT$ac_delim
22113 DEPDIR!$DEPDIR$ac_delim
22114 am__include!$am__include$ac_delim
22115 am__quote!$am__quote$ac_delim
22116 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22117 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22118 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22119 CCDEPMODE!$CCDEPMODE$ac_delim
22120 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22121 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22123 GREP!$GREP$ac_delim
22124 EGREP!$EGREP$ac_delim
22125 LN_S!$LN_S$ac_delim
22126 ECHO!$ECHO$ac_delim
22128 RANLIB!$RANLIB$ac_delim
22131 CXXFLAGS!$CXXFLAGS$ac_delim
22132 ac_ct_CXX!$ac_ct_CXX$ac_delim
22133 CXXDEPMODE!$CXXDEPMODE$ac_delim
22134 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22135 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22138 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22140 elif $ac_last_try; then
22141 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22142 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22143 { (exit 1); exit 1; }; }
22145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22149 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22150 if test -n "$ac_eof"; then
22151 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22152 ac_eof=`expr $ac_eof + 1`
22155 cat >>$CONFIG_STATUS <<_ACEOF
22156 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22160 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22161 s/^/s,@/; s/!/@,|#_!!_#|/
22164 s/'"$ac_delim"'$/,g/; t
22166 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22167 ' >>$CONFIG_STATUS <conf$$subs.sed
22168 rm -f conf$$subs.sed
22169 cat >>$CONFIG_STATUS <<_ACEOF
22175 for ac_last_try in false false false false false :; do
22176 cat >conf$$subs.sed <<_ACEOF
22177 CXXCPP!$CXXCPP$ac_delim
22179 FFLAGS!$FFLAGS$ac_delim
22180 ac_ct_F77!$ac_ct_F77$ac_delim
22181 LIBTOOL!$LIBTOOL$ac_delim
22182 WITH_LUA_TRUE!$WITH_LUA_TRUE$ac_delim
22183 WITH_LUA_FALSE!$WITH_LUA_FALSE$ac_delim
22184 LIBOBJS!$LIBOBJS$ac_delim
22185 LTLIBOBJS!$LTLIBOBJS$ac_delim
22188 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22190 elif $ac_last_try; then
22191 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22192 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22193 { (exit 1); exit 1; }; }
22195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22199 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22200 if test -n "$ac_eof"; then
22201 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22202 ac_eof=`expr $ac_eof + 1`
22205 cat >>$CONFIG_STATUS <<_ACEOF
22206 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22210 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22211 s/^/s,@/; s/!/@,|#_!!_#|/
22214 s/'"$ac_delim"'$/,g/; t
22216 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22217 ' >>$CONFIG_STATUS <conf$$subs.sed
22218 rm -f conf$$subs.sed
22219 cat >>$CONFIG_STATUS <<_ACEOF
22226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22228 # trailing colons and then remove the whole line if VPATH becomes empty
22229 # (actually we leave an empty line to preserve line numbers).
22230 if test "x$srcdir" = x.; then
22231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22232 s/:*\$(srcdir):*/:/
22233 s/:*\${srcdir}:*/:/
22235 s/^\([^=]*=[ ]*\):*/\1/
22241 cat >>$CONFIG_STATUS <<\_ACEOF
22242 fi # test -n "$CONFIG_FILES"
22245 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22248 :[FHLC]) ac_mode=$ac_tag; continue;;
22250 case $ac_mode$ac_tag in
22252 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22253 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22254 { (exit 1); exit 1; }; };;
22255 :[FH]-) ac_tag=-:-;;
22256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22273 -) ac_f="$tmp/stdin";;
22274 *) # Look for the file first in the build tree, then in the source tree
22275 # (if the path is not absolute). The absolute path cannot be DOS-style,
22276 # because $ac_f cannot contain `:'.
22280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22282 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22283 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22284 { (exit 1); exit 1; }; };;
22286 ac_file_inputs="$ac_file_inputs $ac_f"
22289 # Let's still pretend it is `configure' which instantiates (i.e., don't
22290 # use $as_me), people would be surprised to read:
22291 # /* config.h. Generated by config.status. */
22292 configure_input="Generated from "`IFS=:
22293 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22294 if test x"$ac_file" != x-; then
22295 configure_input="$ac_file. $configure_input"
22296 { echo "$as_me:$LINENO: creating $ac_file" >&5
22297 echo "$as_me: creating $ac_file" >&6;}
22301 *:-:* | *:-) cat >"$tmp/stdin";;
22306 ac_dir=`$as_dirname -- "$ac_file" ||
22307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22308 X"$ac_file" : 'X\(//\)[^/]' \| \
22309 X"$ac_file" : 'X\(//\)$' \| \
22310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22316 /^X\(\/\/\)[^/].*/{
22331 -*) as_dir=./$as_dir;;
22333 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22337 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22338 *) as_qdir=$as_dir;;
22340 as_dirs="'$as_qdir' $as_dirs"
22341 as_dir=`$as_dirname -- "$as_dir" ||
22342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343 X"$as_dir" : 'X\(//\)[^/]' \| \
22344 X"$as_dir" : 'X\(//\)$' \| \
22345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22351 /^X\(\/\/\)[^/].*/{
22364 test -d "$as_dir" && break
22366 test -z "$as_dirs" || eval "mkdir $as_dirs"
22367 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22368 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22369 { (exit 1); exit 1; }; }; }
22373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22376 # A ".." for each directory in $ac_dir_suffix.
22377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22378 case $ac_top_builddir_sub in
22379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22383 ac_abs_top_builddir=$ac_pwd
22384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22385 # for backward compatibility:
22386 ac_top_builddir=$ac_top_build_prefix
22389 .) # We are building in place.
22391 ac_top_srcdir=$ac_top_builddir_sub
22392 ac_abs_top_srcdir=$ac_pwd ;;
22393 [\\/]* | ?:[\\/]* ) # Absolute name.
22394 ac_srcdir=$srcdir$ac_dir_suffix;
22395 ac_top_srcdir=$srcdir
22396 ac_abs_top_srcdir=$srcdir ;;
22397 *) # Relative name.
22398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22399 ac_top_srcdir=$ac_top_build_prefix$srcdir
22400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22415 ac_MKDIR_P=$MKDIR_P
22417 [\\/$]* | ?:[\\/]* ) ;;
22418 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22422 cat >>$CONFIG_STATUS <<\_ACEOF
22423 # If the template does not know about datarootdir, expand it.
22424 # FIXME: This hack should be removed a few years after 2.60.
22425 ac_datarootdir_hack=; ac_datarootdir_seen=
22427 case `sed -n '/datarootdir/ {
22436 ' $ac_file_inputs` in
22437 *datarootdir*) ac_datarootdir_seen=yes;;
22438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22439 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22440 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22442 cat >>$CONFIG_STATUS <<_ACEOF
22443 ac_datarootdir_hack='
22444 s&@datadir@&$datadir&g
22445 s&@docdir@&$docdir&g
22446 s&@infodir@&$infodir&g
22447 s&@localedir@&$localedir&g
22448 s&@mandir@&$mandir&g
22449 s&\\\${datarootdir}&$datarootdir&g' ;;
22453 # Neutralize VPATH when `$srcdir' = `.'.
22454 # Shell code in configure.ac might set extrasub.
22455 # FIXME: do we really want to maintain this feature?
22456 cat >>$CONFIG_STATUS <<_ACEOF
22460 cat >>$CONFIG_STATUS <<\_ACEOF
22462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22463 s&@configure_input@&$configure_input&;t t
22464 s&@top_builddir@&$ac_top_builddir_sub&;t t
22465 s&@srcdir@&$ac_srcdir&;t t
22466 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22467 s&@top_srcdir@&$ac_top_srcdir&;t t
22468 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22469 s&@builddir@&$ac_builddir&;t t
22470 s&@abs_builddir@&$ac_abs_builddir&;t t
22471 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22472 s&@INSTALL@&$ac_INSTALL&;t t
22473 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22474 $ac_datarootdir_hack
22475 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22477 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22478 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22479 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22480 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22481 which seems to be undefined. Please make sure it is defined." >&5
22482 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22483 which seems to be undefined. Please make sure it is defined." >&2;}
22487 -) cat "$tmp/out"; rm -f "$tmp/out";;
22488 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22497 # Transform confdefs.h into a sed script `conftest.defines', that
22498 # substitutes the proper values into config.h.in to produce config.h.
22499 rm -f conftest.defines conftest.tail
22500 # First, append a space to every undef/define line, to ease matching.
22501 echo 's/$/ /' >conftest.defines
22502 # Then, protect against being on the right side of a sed subst, or in
22503 # an unquoted here document, in config.status. If some macros were
22504 # called several times there might be several #defines for the same
22505 # symbol, which is useless. But do not sort them, since the last
22506 # AC_DEFINE must be honored.
22507 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22508 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22509 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22510 # PARAMS is the parameter list in the macro definition--in most cases, it's
22511 # just an empty string.
22512 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22513 ac_dB='\\)[ (].*,\\1define\\2'
22521 s/^[ ]*#[ ]*define[ ][ ]*//
22526 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22527 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22528 ' >>conftest.defines
22530 # Remove the space that was appended to ease matching.
22531 # Then replace #undef with comments. This is necessary, for
22532 # example, in the case of _POSIX_SOURCE, which is predefined and required
22533 # on some systems where configure will not decide to define it.
22534 # (The regexp can be short, since the line contains either #define or #undef.)
22536 s,^[ #]*u.*,/* & */,' >>conftest.defines
22538 # Break up conftest.defines:
22539 ac_max_sed_lines=50
22541 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22542 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22543 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22545 ac_in='$ac_file_inputs'
22546 ac_out='"$tmp/out1"'
22547 ac_nxt='"$tmp/out2"'
22551 # Write a here document:
22552 cat >>$CONFIG_STATUS <<_ACEOF
22553 # First, check the format of the line:
22554 cat >"\$tmp/defines.sed" <<\\CEOF
22555 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22556 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22560 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22562 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22563 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22564 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22565 grep . conftest.tail >/dev/null || break
22566 rm -f conftest.defines
22567 mv conftest.tail conftest.defines
22569 rm -f conftest.defines conftest.tail
22571 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22572 cat >>$CONFIG_STATUS <<\_ACEOF
22573 if test x"$ac_file" != x-; then
22574 echo "/* $configure_input */" >"$tmp/config.h"
22575 cat "$ac_result" >>"$tmp/config.h"
22576 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22578 echo "$as_me: $ac_file is unchanged" >&6;}
22581 mv "$tmp/config.h" $ac_file
22584 echo "/* $configure_input */"
22588 # Compute $ac_file's index in $config_headers.
22591 for _am_header in $config_headers :; do
22592 case $_am_header in
22593 $_am_arg | $_am_arg:* )
22596 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22599 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22600 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22601 X"$_am_arg" : 'X\(//\)[^/]' \| \
22602 X"$_am_arg" : 'X\(//\)$' \| \
22603 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22609 /^X\(\/\/\)[^/].*/{
22621 s/.*/./; q'`/stamp-h$_am_stamp_count
22624 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22625 echo "$as_me: executing $ac_file commands" >&6;}
22630 case $ac_file$ac_mode in
22631 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22632 # Strip MF so we end up with the name of the file.
22633 mf=`echo "$mf" | sed -e 's/:.*$//'`
22634 # Check whether this is an Automake generated Makefile or not.
22635 # We used to match only the files named `Makefile.in', but
22636 # some people rename them; so instead we look at the file content.
22637 # Grep'ing the first line is not enough: some people post-process
22638 # each Makefile.in and add a new line on top of each file to say so.
22639 # Grep'ing the whole file is not good either: AIX grep has a line
22640 # limit of 2048, but all sed's we know have understand at least 4000.
22641 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22642 dirpart=`$as_dirname -- "$mf" ||
22643 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22644 X"$mf" : 'X\(//\)[^/]' \| \
22645 X"$mf" : 'X\(//\)$' \| \
22646 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22652 /^X\(\/\/\)[^/].*/{
22668 # Extract the definition of DEPDIR, am__include, and am__quote
22669 # from the Makefile without running `make'.
22670 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22671 test -z "$DEPDIR" && continue
22672 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22673 test -z "am__include" && continue
22674 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22675 # When using ansi2knr, U may be empty or an underscore; expand it
22676 U=`sed -n 's/^U = //p' < "$mf"`
22677 # Find all dependency output files, they are included files with
22678 # $(DEPDIR) in their names. We invoke sed twice because it is the
22679 # simplest approach to changing $(DEPDIR) to its actual value in the
22681 for file in `sed -n "
22682 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22683 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22684 # Make sure the directory exists.
22685 test -f "$dirpart/$file" && continue
22686 fdir=`$as_dirname -- "$file" ||
22687 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22688 X"$file" : 'X\(//\)[^/]' \| \
22689 X"$file" : 'X\(//\)$' \| \
22690 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22696 /^X\(\/\/\)[^/].*/{
22709 { as_dir=$dirpart/$fdir
22711 -*) as_dir=./$as_dir;;
22713 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22717 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22718 *) as_qdir=$as_dir;;
22720 as_dirs="'$as_qdir' $as_dirs"
22721 as_dir=`$as_dirname -- "$as_dir" ||
22722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22723 X"$as_dir" : 'X\(//\)[^/]' \| \
22724 X"$as_dir" : 'X\(//\)$' \| \
22725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22731 /^X\(\/\/\)[^/].*/{
22744 test -d "$as_dir" && break
22746 test -z "$as_dirs" || eval "mkdir $as_dirs"
22747 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22748 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22749 { (exit 1); exit 1; }; }; }
22750 # echo "creating $dirpart/$file"
22751 echo '# dummy' > "$dirpart/$file"
22760 { (exit 0); exit 0; }
22762 chmod +x $CONFIG_STATUS
22763 ac_clean_files=$ac_clean_files_save
22766 # configure is writing to config.log, and then calls config.status.
22767 # config.status does its own redirection, appending to config.log.
22768 # Unfortunately, on DOS this fails, as config.log is still kept open
22769 # by configure, so config.status won't be able to write to it; its
22770 # output is simply discarded. So we exec the FD to /dev/null,
22771 # effectively closing config.log, so it can be properly (re)opened and
22772 # appended to by config.status. When coming back to configure, we
22773 # need to make the FD available again.
22774 if test "$no_create" != yes; then
22776 ac_config_status_args=
22777 test "$silent" = yes &&
22778 ac_config_status_args="$ac_config_status_args --quiet"
22780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22783 # would make configure fail if this is the last instruction.
22784 $ac_cs_success || { (exit 1); exit 1; }