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
1587 @%:@@%:@ --------- @%:@@%:@
1588 @%:@@%:@ Platform. @%:@@%:@
1589 @%:@@%:@ --------- @%:@@%:@
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"
1624 @%:@@%:@ ----------- @%:@@%:@
1625 @%:@@%:@ Core tests. @%:@@%:@
1626 @%:@@%:@ ----------- @%:@@%:@
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
1762 @%:@@%:@ ----------- @%:@@%:@
1763 @%:@@%:@ confdefs.h. @%:@@%:@
1764 @%:@@%:@ ----------- @%:@@%:@
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 __oline__ "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 ## There is no encapsulation within the following macros, do not change
7019 ## the running order or otherwise move them around unless you know exactly
7020 ## what you are doing...
7022 lt_prog_compiler_no_builtin_flag=
7024 if test "$GCC" = yes; then
7025 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7028 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7029 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7030 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 lt_cv_prog_compiler_rtti_exceptions=no
7034 ac_outfile=conftest.$ac_objext
7035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7036 lt_compiler_flag="-fno-rtti -fno-exceptions"
7037 # Insert the option either (1) after the last *FLAGS variable, or
7038 # (2) before a word containing "conftest.", or (3) at the end.
7039 # Note that $ac_compile itself does not contain backslashes and begins
7040 # with a dollar sign (not a hyphen), so the echo should work correctly.
7041 # The option is referenced via a variable to avoid confusing sed.
7042 lt_compile=`echo "$ac_compile" | $SED \
7043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7045 -e 's:$: $lt_compiler_flag:'`
7046 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7047 (eval "$lt_compile" 2>conftest.err)
7049 cat conftest.err >&5
7050 echo "$as_me:__oline__: \$? = $ac_status" >&5
7051 if (exit $ac_status) && test -s "$ac_outfile"; then
7052 # The compiler can only warn and ignore the option if not recognized
7053 # So say no if there are warnings other than the usual output.
7054 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7056 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7057 lt_cv_prog_compiler_rtti_exceptions=yes
7063 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7064 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7066 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7067 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7074 lt_prog_compiler_wl=
7075 lt_prog_compiler_pic=
7076 lt_prog_compiler_static=
7078 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7079 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7081 if test "$GCC" = yes; then
7082 lt_prog_compiler_wl='-Wl,'
7083 lt_prog_compiler_static='-static'
7087 # All AIX code is PIC.
7088 if test "$host_cpu" = ia64; then
7089 # AIX 5 now supports IA64 processor
7090 lt_prog_compiler_static='-Bstatic'
7095 # FIXME: we need at least 68020 code to build shared libraries, but
7096 # adding the `-m68020' flag to GCC prevents building anything better,
7098 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7101 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7102 # PIC is the default for these OSes.
7105 mingw* | cygwin* | pw32* | os2*)
7106 # This hack is so that the source file can tell whether it is being
7107 # built for inclusion in a dll (and should export symbols for example).
7108 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7109 # (--disable-auto-import) libraries
7110 lt_prog_compiler_pic='-DDLL_EXPORT'
7113 darwin* | rhapsody*)
7114 # PIC is the default on this platform
7115 # Common symbols not allowed in MH_DYLIB files
7116 lt_prog_compiler_pic='-fno-common'
7120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7121 # Instead, we relocate shared libraries at runtime.
7125 # Just because we use GCC doesn't mean we suddenly get shared libraries
7126 # on systems that don't support them.
7127 lt_prog_compiler_can_build_shared=no
7132 if test -d /usr/nec; then
7133 lt_prog_compiler_pic=-Kconform_pic
7138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7145 lt_prog_compiler_pic='-fPIC'
7151 lt_prog_compiler_pic='-fPIC'
7155 # PORTME Check for flag to pass linker flags through the system compiler.
7158 lt_prog_compiler_wl='-Wl,'
7159 if test "$host_cpu" = ia64; then
7160 # AIX 5 now supports IA64 processor
7161 lt_prog_compiler_static='-Bstatic'
7163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7167 # PIC is the default on this platform
7168 # Common symbols not allowed in MH_DYLIB files
7169 case $cc_basename in
7171 lt_prog_compiler_pic='-qnocommon'
7172 lt_prog_compiler_wl='-Wl,'
7177 mingw* | cygwin* | pw32* | os2*)
7178 # This hack is so that the source file can tell whether it is being
7179 # built for inclusion in a dll (and should export symbols for example).
7180 lt_prog_compiler_pic='-DDLL_EXPORT'
7183 hpux9* | hpux10* | hpux11*)
7184 lt_prog_compiler_wl='-Wl,'
7185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7192 lt_prog_compiler_pic='+Z'
7195 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7196 lt_prog_compiler_static='${wl}-a ${wl}archive'
7199 irix5* | irix6* | nonstopux*)
7200 lt_prog_compiler_wl='-Wl,'
7201 # PIC (with -KPIC) is the default.
7202 lt_prog_compiler_static='-non_shared'
7206 lt_prog_compiler_pic='-KPIC'
7207 lt_prog_compiler_static='-Bstatic'
7210 linux* | k*bsd*-gnu)
7211 case $cc_basename in
7213 lt_prog_compiler_wl='-Wl,'
7214 lt_prog_compiler_pic='-KPIC'
7215 lt_prog_compiler_static='-static'
7217 pgcc* | pgf77* | pgf90* | pgf95*)
7218 # Portland Group compilers (*not* the Pentium gcc compiler,
7219 # which looks to be a dead project)
7220 lt_prog_compiler_wl='-Wl,'
7221 lt_prog_compiler_pic='-fpic'
7222 lt_prog_compiler_static='-Bstatic'
7225 lt_prog_compiler_wl='-Wl,'
7226 # All Alpha code is PIC.
7227 lt_prog_compiler_static='-non_shared'
7230 case `$CC -V 2>&1 | sed 5q` in
7233 lt_prog_compiler_pic='-KPIC'
7234 lt_prog_compiler_static='-Bstatic'
7235 lt_prog_compiler_wl='-Wl,'
7238 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7239 lt_prog_compiler_pic='-KPIC'
7240 lt_prog_compiler_static='-Bstatic'
7241 lt_prog_compiler_wl=''
7248 osf3* | osf4* | osf5*)
7249 lt_prog_compiler_wl='-Wl,'
7250 # All OSF/1 code is PIC.
7251 lt_prog_compiler_static='-non_shared'
7255 lt_prog_compiler_static='-non_shared'
7259 lt_prog_compiler_pic='-KPIC'
7260 lt_prog_compiler_static='-Bstatic'
7261 case $cc_basename in
7263 lt_prog_compiler_wl='-Qoption ld ';;
7265 lt_prog_compiler_wl='-Wl,';;
7270 lt_prog_compiler_wl='-Qoption ld '
7271 lt_prog_compiler_pic='-PIC'
7272 lt_prog_compiler_static='-Bstatic'
7275 sysv4 | sysv4.2uw2* | sysv4.3*)
7276 lt_prog_compiler_wl='-Wl,'
7277 lt_prog_compiler_pic='-KPIC'
7278 lt_prog_compiler_static='-Bstatic'
7282 if test -d /usr/nec ;then
7283 lt_prog_compiler_pic='-Kconform_pic'
7284 lt_prog_compiler_static='-Bstatic'
7288 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7289 lt_prog_compiler_wl='-Wl,'
7290 lt_prog_compiler_pic='-KPIC'
7291 lt_prog_compiler_static='-Bstatic'
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_can_build_shared=no
7300 lt_prog_compiler_pic='-pic'
7301 lt_prog_compiler_static='-Bstatic'
7305 lt_prog_compiler_can_build_shared=no
7310 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7311 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7314 # Check to make sure the PIC flag actually works.
7316 if test -n "$lt_prog_compiler_pic"; then
7318 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7319 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7320 if test "${lt_prog_compiler_pic_works+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 lt_prog_compiler_pic_works=no
7324 ac_outfile=conftest.$ac_objext
7325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7327 # Insert the option either (1) after the last *FLAGS variable, or
7328 # (2) before a word containing "conftest.", or (3) at the end.
7329 # Note that $ac_compile itself does not contain backslashes and begins
7330 # with a dollar sign (not a hyphen), so the echo should work correctly.
7331 # The option is referenced via a variable to avoid confusing sed.
7332 lt_compile=`echo "$ac_compile" | $SED \
7333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7335 -e 's:$: $lt_compiler_flag:'`
7336 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7337 (eval "$lt_compile" 2>conftest.err)
7339 cat conftest.err >&5
7340 echo "$as_me:__oline__: \$? = $ac_status" >&5
7341 if (exit $ac_status) && test -s "$ac_outfile"; then
7342 # The compiler can only warn and ignore the option if not recognized
7343 # So say no if there are warnings other than the usual output.
7344 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7347 lt_prog_compiler_pic_works=yes
7353 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7354 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7356 if test x"$lt_prog_compiler_pic_works" = xyes; then
7357 case $lt_prog_compiler_pic in
7359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7362 lt_prog_compiler_pic=
7363 lt_prog_compiler_can_build_shared=no
7368 # For platforms which do not support PIC, -DPIC is meaningless:
7370 lt_prog_compiler_pic=
7373 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7378 # Check to make sure the static flag actually works.
7380 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7381 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7382 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7383 if test "${lt_prog_compiler_static_works+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 lt_prog_compiler_static_works=no
7387 save_LDFLAGS="$LDFLAGS"
7388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7391 # The linker can only warn and ignore the option if not recognized
7392 # So say no if there are warnings
7393 if test -s conftest.err; then
7394 # Append any errors to the config.log.
7395 cat conftest.err 1>&5
7396 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7398 if diff conftest.exp conftest.er2 >/dev/null; then
7399 lt_prog_compiler_static_works=yes
7402 lt_prog_compiler_static_works=yes
7406 LDFLAGS="$save_LDFLAGS"
7409 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7410 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7412 if test x"$lt_prog_compiler_static_works" = xyes; then
7415 lt_prog_compiler_static=
7419 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7420 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7421 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 lt_cv_prog_compiler_c_o=no
7425 $rm -r conftest 2>/dev/null
7429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7431 lt_compiler_flag="-o out/conftest2.$ac_objext"
7432 # Insert the option either (1) after the last *FLAGS variable, or
7433 # (2) before a word containing "conftest.", or (3) at the end.
7434 # Note that $ac_compile itself does not contain backslashes and begins
7435 # with a dollar sign (not a hyphen), so the echo should work correctly.
7436 lt_compile=`echo "$ac_compile" | $SED \
7437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7439 -e 's:$: $lt_compiler_flag:'`
7440 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7441 (eval "$lt_compile" 2>out/conftest.err)
7443 cat out/conftest.err >&5
7444 echo "$as_me:__oline__: \$? = $ac_status" >&5
7445 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7447 # The compiler can only warn and ignore the option if not recognized
7448 # So say no if there are warnings
7449 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7452 lt_cv_prog_compiler_c_o=yes
7457 # SGI C++ compiler will create directory out/ii_files/ for
7458 # template instantiation
7459 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7460 $rm out/* && rmdir out
7466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7467 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7470 hard_links="nottested"
7471 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7472 # do not overwrite the value of need_locks provided by the user
7473 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7474 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7479 ln conftest.a conftest.b 2>&5 || hard_links=no
7480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7481 { echo "$as_me:$LINENO: result: $hard_links" >&5
7482 echo "${ECHO_T}$hard_links" >&6; }
7483 if test "$hard_links" = no; then
7484 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7485 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7492 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7493 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7496 allow_undefined_flag=
7497 enable_shared_with_static_runtimes=no
7499 archive_expsym_cmds=
7500 old_archive_From_new_cmds=
7501 old_archive_from_expsyms_cmds=
7502 export_dynamic_flag_spec=
7503 whole_archive_flag_spec=
7504 thread_safe_flag_spec=
7505 hardcode_libdir_flag_spec=
7506 hardcode_libdir_flag_spec_ld=
7507 hardcode_libdir_separator=
7510 hardcode_shlibpath_var=unsupported
7511 link_all_deplibs=unknown
7512 hardcode_automatic=no
7515 always_export_symbols=no
7516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7517 # include_expsyms should be a list of space-separated symbols to be *always*
7518 # included in the symbol list
7520 # exclude_expsyms can be an extended regexp of symbols to exclude
7521 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7522 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7523 # as well as any symbol that contains `d'.
7524 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7525 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7526 # platforms (ab)use it in PIC code, but their linkers get confused if
7527 # the symbol is explicitly referenced. Since portable code cannot
7528 # rely on this symbol name, it's probably fine to never include it in
7529 # preloaded symbol tables.
7530 extract_expsyms_cmds=
7531 # Just being paranoid about ensuring that cc_basename is set.
7532 for cc_temp in $compiler""; do
7534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7540 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7543 cygwin* | mingw* | pw32*)
7544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7545 # When not using gcc, we currently assume that we are using
7546 # Microsoft Visual C++.
7547 if test "$GCC" != yes; then
7552 # we just hope/assume this is gcc and not c89 (= MSVC++)
7561 if test "$with_gnu_ld" = yes; then
7562 # If archive_cmds runs LD, not CC, wlarc should be empty
7565 # Set some defaults for GNU ld with shared library support. These
7566 # are reset later if shared libraries are not supported. Putting them
7567 # here allows them to be overridden if necessary.
7568 runpath_var=LD_RUN_PATH
7569 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7570 export_dynamic_flag_spec='${wl}--export-dynamic'
7571 # ancient GNU ld didn't support --whole-archive et. al.
7572 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7573 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7575 whole_archive_flag_spec=
7577 supports_anon_versioning=no
7578 case `$LD -v 2>/dev/null` in
7579 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7580 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7581 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7582 *\ 2.11.*) ;; # other 2.11 versions
7583 *) supports_anon_versioning=yes ;;
7586 # See if GNU ld supports shared libraries.
7588 aix3* | aix4* | aix5*)
7589 # On AIX/PPC, the GNU linker is very broken
7590 if test "$host_cpu" != ia64; then
7594 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7595 *** to be unable to reliably create shared libraries on AIX.
7596 *** Therefore, libtool is disabling shared libraries support. If you
7597 *** really care for shared libraries, you may want to modify your PATH
7598 *** so that a non-GNU linker is found, and then restart.
7605 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)'
7606 hardcode_libdir_flag_spec='-L$libdir'
7607 hardcode_minus_L=yes
7609 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7610 # that the semantics of dynamic libraries on AmigaOS, at least up
7611 # to version 4, is to share data among multiple programs linked
7612 # with the same dynamic library. Since this doesn't match the
7613 # behavior of shared libraries on other platforms, we can't use
7619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7620 allow_undefined_flag=unsupported
7621 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7622 # support --undefined. This deserves some investigation. FIXME
7623 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7629 cygwin* | mingw* | pw32*)
7630 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7631 # as there is no search path for DLLs.
7632 hardcode_libdir_flag_spec='-L$libdir'
7633 allow_undefined_flag=unsupported
7634 always_export_symbols=no
7635 enable_shared_with_static_runtimes=yes
7636 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7638 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7640 # If the export-symbols file already is a .def file (1st line
7641 # is EXPORTS), use it as is; otherwise, prepend...
7642 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7643 cp $export_symbols $output_objdir/$soname.def;
7645 echo EXPORTS > $output_objdir/$soname.def;
7646 cat $export_symbols >> $output_objdir/$soname.def;
7648 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7656 hardcode_shlibpath_var=no
7657 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7658 export_dynamic_flag_spec='${wl}-E'
7659 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7660 # Instead, shared libraries are loaded at an image base (0x10000000 by
7661 # default) and relocated if they conflict, which is a slow very memory
7662 # consuming and fragmenting process. To avoid this, we pick a random,
7663 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7664 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7665 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7666 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'
7669 gnu* | linux* | k*bsd*-gnu)
7670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7672 case $cc_basename,$host_cpu in
7673 pgcc*) # Portland Group C compiler
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'
7677 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7678 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'
7679 tmp_addflag=' $pic_flag -Mnomain' ;;
7680 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7681 tmp_addflag=' -i_dynamic' ;;
7682 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7683 tmp_addflag=' -i_dynamic -nofor_main' ;;
7684 ifc* | ifort*) # Intel Fortran compiler
7685 tmp_addflag=' -nofor_main' ;;
7687 case `$CC -V 2>&1 | sed 5q` in
7688 *Sun\ C*) # Sun C 5.9
7689 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'
7690 tmp_sharedflag='-G' ;;
7691 *Sun\ F*) # Sun Fortran 8.3
7692 tmp_sharedflag='-G' ;;
7694 tmp_sharedflag='-shared' ;;
7696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7698 if test $supports_anon_versioning = yes; then
7699 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7701 $echo "local: *; };" >> $output_objdir/$libname.ver~
7702 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7711 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7720 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7724 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7725 *** create shared libraries on Solaris systems. Therefore, libtool
7726 *** is disabling shared libraries support. We urge you to upgrade GNU
7727 *** binutils to release 2.9.1 or newer. Another option is to modify
7728 *** your PATH or compiler configuration so that the native linker is
7729 *** used, and then restart.
7732 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7741 case `$LD -v 2>&1` in
7742 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7746 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7747 *** reliably create shared libraries on SCO systems. Therefore, libtool
7748 *** is disabling shared libraries support. We urge you to upgrade GNU
7749 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7750 *** your PATH or compiler configuration so that the native linker is
7751 *** used, and then restart.
7756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7757 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7771 hardcode_shlibpath_var=no
7775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7784 if test "$ld_shlibs" = no; then
7786 hardcode_libdir_flag_spec=
7787 export_dynamic_flag_spec=
7788 whole_archive_flag_spec=
7791 # PORTME fill in a description of your system's linker (not GNU ld)
7794 allow_undefined_flag=unsupported
7795 always_export_symbols=yes
7796 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'
7797 # Note: this linker hardcodes the directories in LIBPATH if there
7798 # are no directories specified by -L.
7799 hardcode_minus_L=yes
7800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7801 # Neither direct hardcoding nor static linking is supported with a
7803 hardcode_direct=unsupported
7808 if test "$host_cpu" = ia64; then
7809 # On IA64, the linker does run time linking by default, so we don't
7810 # have to do anything special.
7811 aix_use_runtimelinking=no
7812 exp_sym_flag='-Bexport'
7815 # If we're using GNU nm, then we don't want the "-C" option.
7816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7817 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7818 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'
7820 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'
7822 aix_use_runtimelinking=no
7824 # Test if we are trying to use run time linking or normal
7825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7826 # need to do runtime linking.
7827 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7828 for ld_flag in $LDFLAGS; do
7829 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7830 aix_use_runtimelinking=yes
7837 exp_sym_flag='-bexport'
7838 no_entry_flag='-bnoentry'
7841 # When large executables or shared objects are built, AIX ld can
7842 # have problems creating the table of contents. If linking a library
7843 # or program results in "error TOC overflow" add -mminimal-toc to
7844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7849 hardcode_libdir_separator=':'
7850 link_all_deplibs=yes
7852 if test "$GCC" = yes; then
7853 case $host_os in aix4.[012]|aix4.[012].*)
7854 # We only want to do this on AIX 4.2 and lower, the check
7855 # below for broken collect2 doesn't work under 4.3+
7856 collect2name=`${CC} -print-prog-name=collect2`
7857 if test -f "$collect2name" && \
7858 strings "$collect2name" | grep resolve_lib_name >/dev/null
7860 # We have reworked collect2
7863 # We have old collect2
7864 hardcode_direct=unsupported
7865 # It fails to find uninstalled libraries when the uninstalled
7866 # path is not listed in the libpath. Setting hardcode_minus_L
7867 # to unsupported forces relinking
7868 hardcode_minus_L=yes
7869 hardcode_libdir_flag_spec='-L$libdir'
7870 hardcode_libdir_separator=
7874 shared_flag='-shared'
7875 if test "$aix_use_runtimelinking" = yes; then
7876 shared_flag="$shared_flag "'${wl}-G'
7880 if test "$host_cpu" = ia64; then
7881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7882 # chokes on -Wl,-G. The following line is correct:
7885 if test "$aix_use_runtimelinking" = yes; then
7886 shared_flag='${wl}-G'
7888 shared_flag='${wl}-bM:SRE'
7893 # It seems that -bexpall does not export symbols beginning with
7894 # underscore (_), so it is better to generate a list of symbols to export.
7895 always_export_symbols=yes
7896 if test "$aix_use_runtimelinking" = yes; then
7897 # Warning - without using the other runtime loading flags (-brtl),
7898 # -berok will link without error, but may produce a broken library.
7899 allow_undefined_flag='-berok'
7900 # Determine the default libpath from the value encoded in an empty executable.
7901 cat >conftest.$ac_ext <<_ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (ac_try="$ac_link"
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_link") 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest$ac_exeext &&
7933 $as_test_x conftest$ac_exeext; then
7935 lt_aix_libpath_sed='
7936 /Import File Strings/,/^$/ {
7942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7943 # Check for a 64-bit object if we didn't find anything.
7944 if test -z "$aix_libpath"; then
7945 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955 conftest$ac_exeext conftest.$ac_ext
7956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7959 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"
7961 if test "$host_cpu" = ia64; then
7962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7963 allow_undefined_flag="-z nodefs"
7964 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"
7966 # Determine the default libpath from the value encoded in an empty executable.
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (ac_try="$ac_link"
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_link") 2>conftest.er1
7991 grep -v '^ *+' conftest.er1 >conftest.err
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && {
7996 test -z "$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7998 } && test -s conftest$ac_exeext &&
7999 $as_test_x conftest$ac_exeext; then
8001 lt_aix_libpath_sed='
8002 /Import File Strings/,/^$/ {
8008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8009 # Check for a 64-bit object if we didn't find anything.
8010 if test -z "$aix_libpath"; then
8011 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021 conftest$ac_exeext conftest.$ac_ext
8022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8025 # Warning - without using the other run time loading flags,
8026 # -berok will link without error, but may produce a broken library.
8027 no_undefined_flag=' ${wl}-bernotok'
8028 allow_undefined_flag=' ${wl}-berok'
8029 # Exported symbols can be pulled into shared objects from archives
8030 whole_archive_flag_spec='$convenience'
8031 archive_cmds_need_lc=yes
8032 # This is similar to how AIX traditionally builds its shared libraries.
8033 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'
8039 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)'
8040 hardcode_libdir_flag_spec='-L$libdir'
8041 hardcode_minus_L=yes
8042 # see comment about different semantics on the GNU ld section
8047 export_dynamic_flag_spec=-rdynamic
8050 cygwin* | mingw* | pw32*)
8051 # When not using gcc, we currently assume that we are using
8052 # Microsoft Visual C++.
8053 # hardcode_libdir_flag_spec is actually meaningless, as there is
8054 # no search path for DLLs.
8055 hardcode_libdir_flag_spec=' '
8056 allow_undefined_flag=unsupported
8057 # Tell ltmain to make .lib files, not .a files.
8059 # Tell ltmain to make .dll files, not .so files.
8061 # FIXME: Setting linknames here is a bad hack.
8062 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8063 # The linker will automatically build a .lib file if we build a DLL.
8064 old_archive_From_new_cmds='true'
8065 # FIXME: Should let the user specify the lib program.
8066 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8067 fix_srcfile_path='`cygpath -w "$srcfile"`'
8068 enable_shared_with_static_runtimes=yes
8071 darwin* | rhapsody*)
8073 rhapsody* | darwin1.[012])
8074 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8077 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8078 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8080 case ${MACOSX_DEPLOYMENT_TARGET} in
8082 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8085 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8091 archive_cmds_need_lc=no
8093 hardcode_automatic=yes
8094 hardcode_shlibpath_var=unsupported
8095 whole_archive_flag_spec=''
8096 link_all_deplibs=yes
8097 if test "$GCC" = yes ; then
8098 output_verbose_link_cmd='echo'
8099 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8100 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8101 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8102 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}'
8103 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}'
8105 case $cc_basename in
8107 output_verbose_link_cmd='echo'
8108 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8109 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8110 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8111 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}'
8112 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}'
8122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123 hardcode_libdir_flag_spec='-L$libdir'
8124 hardcode_shlibpath_var=no
8131 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8132 # support. Future versions do this automatically, but an explicit c++rt0.o
8133 # does not break anything, and helps significantly (at the cost of a little
8136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8137 hardcode_libdir_flag_spec='-R$libdir'
8139 hardcode_shlibpath_var=no
8142 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8146 hardcode_minus_L=yes
8147 hardcode_shlibpath_var=no
8150 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8151 freebsd* | dragonfly*)
8152 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8153 hardcode_libdir_flag_spec='-R$libdir'
8155 hardcode_shlibpath_var=no
8159 if test "$GCC" = yes; then
8160 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'
8162 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'
8164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8165 hardcode_libdir_separator=:
8168 # hardcode_minus_L: Not really in the search PATH,
8169 # but as the default location of the library.
8170 hardcode_minus_L=yes
8171 export_dynamic_flag_spec='${wl}-E'
8175 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8176 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8178 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8180 if test "$with_gnu_ld" = no; then
8181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8182 hardcode_libdir_separator=:
8185 export_dynamic_flag_spec='${wl}-E'
8187 # hardcode_minus_L: Not really in the search PATH,
8188 # but as the default location of the library.
8189 hardcode_minus_L=yes
8194 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8197 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8209 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8212 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8215 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8219 if test "$with_gnu_ld" = no; then
8220 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8221 hardcode_libdir_separator=:
8225 hardcode_libdir_flag_spec_ld='+b $libdir'
8227 hardcode_shlibpath_var=no
8231 export_dynamic_flag_spec='${wl}-E'
8233 # hardcode_minus_L: Not really in the search PATH,
8234 # but as the default location of the library.
8235 hardcode_minus_L=yes
8241 irix5* | irix6* | nonstopux*)
8242 if test "$GCC" = yes; then
8243 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'
8245 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'
8246 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8249 hardcode_libdir_separator=:
8250 link_all_deplibs=yes
8254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8257 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8259 hardcode_libdir_flag_spec='-R$libdir'
8261 hardcode_shlibpath_var=no
8265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8268 hardcode_libdir_separator=:
8269 hardcode_shlibpath_var=no
8273 if test -f /usr/libexec/ld.so; then
8275 hardcode_shlibpath_var=no
8276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8280 export_dynamic_flag_spec='${wl}-E'
8283 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8285 hardcode_libdir_flag_spec='-R$libdir'
8288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8299 hardcode_libdir_flag_spec='-L$libdir'
8300 hardcode_minus_L=yes
8301 allow_undefined_flag=unsupported
8302 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'
8303 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8307 if test "$GCC" = yes; then
8308 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8309 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'
8311 allow_undefined_flag=' -expect_unresolved \*'
8312 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'
8314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8315 hardcode_libdir_separator=:
8318 osf4* | osf5*) # as osf3* with the addition of -msym flag
8319 if test "$GCC" = yes; then
8320 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8321 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'
8322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324 allow_undefined_flag=' -expect_unresolved \*'
8325 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'
8326 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8327 $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'
8329 # Both c and cxx compiler support -rpath directly
8330 hardcode_libdir_flag_spec='-rpath $libdir'
8332 hardcode_libdir_separator=:
8336 no_undefined_flag=' -z text'
8337 if test "$GCC" = yes; then
8339 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8340 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8341 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8344 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8345 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8346 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8348 hardcode_libdir_flag_spec='-R$libdir'
8349 hardcode_shlibpath_var=no
8351 solaris2.[0-5] | solaris2.[0-5].*) ;;
8353 # The compiler driver will combine and reorder linker options,
8354 # but understands `-z linker_flag'. GCC discards it without `$wl',
8355 # but is careful enough not to reorder.
8356 # Supported since Solaris 2.6 (maybe 2.5.1?)
8357 if test "$GCC" = yes; then
8358 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8360 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8364 link_all_deplibs=yes
8368 if test "x$host_vendor" = xsequent; then
8369 # Use $CC to link under sequent, because it throws in some extra .o
8370 # files that make .init and .fini sections work.
8371 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8373 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_libdir_flag_spec='-L$libdir'
8377 hardcode_minus_L=yes
8378 hardcode_shlibpath_var=no
8382 case $host_vendor in
8384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8385 hardcode_direct=yes # is this really true???
8388 ## LD is ld it makes a PLAMLIB
8389 ## CC just makes a GrossModule.
8390 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8391 reload_cmds='$CC -r -o $output$reload_objs'
8395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8396 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8399 runpath_var='LD_RUN_PATH'
8400 hardcode_shlibpath_var=no
8404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8405 hardcode_shlibpath_var=no
8406 export_dynamic_flag_spec='-Bexport'
8410 if test -d /usr/nec; then
8411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8412 hardcode_shlibpath_var=no
8413 runpath_var=LD_RUN_PATH
8414 hardcode_runpath_var=yes
8419 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8420 no_undefined_flag='${wl}-z,text'
8421 archive_cmds_need_lc=no
8422 hardcode_shlibpath_var=no
8423 runpath_var='LD_RUN_PATH'
8425 if test "$GCC" = yes; then
8426 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434 sysv5* | sco3.2v5* | sco5v6*)
8435 # Note: We can NOT use -z defs as we might desire, because we do not
8436 # link with -lc, and that would cause any symbols used from libc to
8437 # always be unresolved, which means just about no library would
8438 # ever link correctly. If we're not using GNU ld we use -z text
8439 # though, which does catch some bad symbols but isn't as heavy-handed
8441 no_undefined_flag='${wl}-z,text'
8442 allow_undefined_flag='${wl}-z,nodefs'
8443 archive_cmds_need_lc=no
8444 hardcode_shlibpath_var=no
8445 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8446 hardcode_libdir_separator=':'
8447 link_all_deplibs=yes
8448 export_dynamic_flag_spec='${wl}-Bexport'
8449 runpath_var='LD_RUN_PATH'
8451 if test "$GCC" = yes; then
8452 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8453 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8455 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462 hardcode_libdir_flag_spec='-L$libdir'
8463 hardcode_shlibpath_var=no
8472 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8473 echo "${ECHO_T}$ld_shlibs" >&6; }
8474 test "$ld_shlibs" = no && can_build_shared=no
8477 # Do we need to explicitly link libc?
8479 case "x$archive_cmds_need_lc" in
8481 # Assume -lc should be added
8482 archive_cmds_need_lc=yes
8484 if test "$enable_shared" = yes && test "$GCC" = yes; then
8485 case $archive_cmds in
8487 # FIXME: we may have to deal with multi-command sequences.
8490 # Test whether the compiler implicitly links with -lc since on some
8491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8492 # to ld, don't add -lc before -lgcc.
8493 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8494 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8499 (eval $ac_compile) 2>&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } 2>conftest.err; then
8505 libobjs=conftest.$ac_objext
8507 wl=$lt_prog_compiler_wl
8508 pic_flag=$lt_prog_compiler_pic
8514 lt_save_allow_undefined_flag=$allow_undefined_flag
8515 allow_undefined_flag=
8516 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8517 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }
8522 archive_cmds_need_lc=no
8524 archive_cmds_need_lc=yes
8526 allow_undefined_flag=$lt_save_allow_undefined_flag
8528 cat conftest.err 1>&5
8531 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8532 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8539 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8540 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8542 libname_spec='lib$name'
8550 shlibpath_overrides_runpath=unknown
8552 dynamic_linker="$host_os ld.so"
8553 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8555 if test "$GCC" = yes; then
8557 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8558 *) lt_awk_arg="/^libraries:/" ;;
8560 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8562 # if the path contains ";" then we assume it to be the separator
8563 # otherwise default to the standard path separator (i.e. ":") - it is
8564 # assumed that no part of a normal pathname contains ";" but that should
8565 # okay in the real world where ";" in dirpaths is itself problematic.
8566 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8568 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8570 # Ok, now we have the path, separated by spaces, we can step through it
8571 # and add multilib dir if necessary.
8572 lt_tmp_lt_search_path_spec=
8573 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8574 for lt_sys_path in $lt_search_path_spec; do
8575 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8576 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8578 test -d "$lt_sys_path" && \
8579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8582 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8583 BEGIN {RS=" "; FS="/|\n";} {
8586 for (lt_i = NF; lt_i > 0; lt_i--) {
8587 if ($lt_i != "" && $lt_i != ".") {
8588 if ($lt_i == "..") {
8591 if (lt_count == 0) {
8592 lt_foo="/" $lt_i lt_foo;
8599 if (lt_foo != "") { lt_freq[lt_foo]++; }
8600 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8602 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8604 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8606 need_lib_prefix=unknown
8607 hardcode_into_libs=no
8609 # when you set need_version to no, make sure it does not cause -set_version
8610 # flags to be left without arguments
8611 need_version=unknown
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8617 shlibpath_var=LIBPATH
8619 # AIX 3 has no versioning support, so we append a major version to the name.
8620 soname_spec='${libname}${release}${shared_ext}$major'
8627 hardcode_into_libs=yes
8628 if test "$host_cpu" = ia64; then
8629 # AIX 5 supports IA64
8630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8631 shlibpath_var=LD_LIBRARY_PATH
8633 # With GCC up to 2.95.x, collect2 would create an import file
8634 # for dependence libraries. The import file would start with
8635 # the line `#! .'. This would cause the generated library to
8636 # depend on `.', always an invalid library. This was fixed in
8637 # development snapshots of GCC prior to 3.0.
8639 aix4 | aix4.[01] | aix4.[01].*)
8640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8650 # soname into executable. Probably we can add versioning support to
8651 # collect2, so additional links can be useful in future.
8652 if test "$aix_use_runtimelinking" = yes; then
8653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8654 # instead of lib<name>.a to let people know that these are not
8655 # typical AIX shared libraries.
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8658 # We preserve .a as extension for shared libraries through AIX4.2
8659 # and later when we are not doing run time linking.
8660 library_names_spec='${libname}${release}.a $libname.a'
8661 soname_spec='${libname}${release}${shared_ext}$major'
8663 shlibpath_var=LIBPATH
8668 library_names_spec='$libname.ixlibrary $libname.a'
8669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8670 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'
8674 library_names_spec='${libname}${shared_ext}'
8675 dynamic_linker="$host_os ld.so"
8676 shlibpath_var=LIBRARY_PATH
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683 soname_spec='${libname}${release}${shared_ext}$major'
8684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8685 shlibpath_var=LD_LIBRARY_PATH
8686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8688 # the default ld.so.conf also contains /usr/contrib/lib and
8689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8690 # libtool to hard-code these into programs
8693 cygwin* | mingw* | pw32*)
8694 version_type=windows
8699 case $GCC,$host_os in
8700 yes,cygwin* | yes,mingw* | yes,pw32*)
8701 library_names_spec='$libname.dll.a'
8702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8703 postinstall_cmds='base_file=`basename \${file}`~
8704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8705 dldir=$destdir/`dirname \$dlpath`~
8706 test -d \$dldir || mkdir -p \$dldir~
8707 $install_prog $dir/$dlname \$dldir/$dlname~
8708 chmod a+x \$dldir/$dlname'
8709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8710 dlpath=$dir/\$dldll~
8712 shlibpath_overrides_runpath=yes
8716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8721 # MinGW DLLs use traditional 'lib' prefix
8722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8724 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8725 # It is most probably a Windows format PATH printed by
8726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8727 # path with ; separators, and with drive letters. We can handle the
8728 # drive letters (cygwin fileutils understands them), so leave them,
8729 # especially as we might pass files found there to a mingw objdump,
8730 # which wouldn't understand a cygwinified path. Ahh.
8731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8737 # pw32 DLLs use 'pw' prefix rather than 'lib'
8738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8747 dynamic_linker='Win32 ld.exe'
8748 # FIXME: first we should search . and the directory the executable is in
8752 darwin* | rhapsody*)
8753 dynamic_linker="$host_os dyld"
8757 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8758 soname_spec='${libname}${release}${major}$shared_ext'
8759 shlibpath_overrides_runpath=yes
8760 shlibpath_var=DYLD_LIBRARY_PATH
8761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8763 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 shlibpath_var=LD_LIBRARY_PATH
8780 freebsd* | dragonfly*)
8781 # DragonFly does not have aout. When/if they implement a new
8782 # versioning mechanism, adjust this.
8783 if test -x /usr/bin/objformat; then
8784 objformat=`/usr/bin/objformat`
8787 freebsd[123]*) objformat=aout ;;
8791 version_type=freebsd-$objformat
8792 case $version_type in
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8803 shlibpath_var=LD_LIBRARY_PATH
8806 shlibpath_overrides_runpath=yes
8808 freebsd3.[01]* | freebsdelf3.[01]*)
8809 shlibpath_overrides_runpath=yes
8810 hardcode_into_libs=yes
8812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8814 shlibpath_overrides_runpath=no
8815 hardcode_into_libs=yes
8817 *) # from 4.6 on, and DragonFly
8818 shlibpath_overrides_runpath=yes
8819 hardcode_into_libs=yes
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 hardcode_into_libs=yes
8834 hpux9* | hpux10* | hpux11*)
8835 # Give a soname corresponding to the major version so that dld.sl refuses to
8836 # link against other versions.
8843 hardcode_into_libs=yes
8844 dynamic_linker="$host_os dld.so"
8845 shlibpath_var=LD_LIBRARY_PATH
8846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 if test "X$HPUX_IA64_MODE" = X32; then
8850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8858 hardcode_into_libs=yes
8859 dynamic_linker="$host_os dld.sl"
8860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8869 dynamic_linker="$host_os dld.sl"
8870 shlibpath_var=SHLIB_PATH
8871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8877 postinstall_cmds='chmod 555 $lib'
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=no
8889 hardcode_into_libs=yes
8892 irix5* | irix6* | nonstopux*)
8894 nonstopux*) version_type=nonstopux ;;
8896 if test "$lt_cv_prog_gnu_ld" = yes; then
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8907 irix5* | nonstopux*)
8911 case $LD in # libtool.m4 will add one of these switches to LD
8912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8913 libsuff= shlibsuff= libmagic=32-bit;;
8914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8915 libsuff=32 shlibsuff=N32 libmagic=N32;;
8916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8918 *) libsuff= shlibsuff= libmagic=never-match;;
8922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8923 shlibpath_overrides_runpath=no
8924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8926 hardcode_into_libs=yes
8929 # No shared lib support for Linux oldld, aout, or coff.
8930 linux*oldld* | linux*aout* | linux*coff*)
8934 # This must be Linux ELF.
8935 linux* | k*bsd*-gnu)
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=no
8944 # This implies no fast_install, which is unacceptable.
8945 # Some rework will be needed to allow for fast_install
8946 # before this can be enabled.
8947 hardcode_into_libs=yes
8949 # find out which ABI we are using
8952 x86_64*|s390x*|powerpc64*)
8953 echo '#line __oline__ "configure"' > conftest.$ac_ext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955 (eval $ac_compile) 2>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; then
8959 case `/usr/bin/file conftest.$ac_objext` in
8962 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8970 # Append ld.so.conf contents to the search path
8971 if test -f /etc/ld.so.conf; then
8972 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' ' '`
8973 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8976 # We used to test for /lib/ld.so.1 and disable shared libraries on
8977 # powerpc, because MkLinux only supported shared libraries with the
8978 # GNU dynamic linker. Since this was broken with cross compilers,
8979 # most powerpc-linux boxes support dynamic linking these days and
8980 # people can always --disable-shared, the test was removed, and we
8981 # assume the GNU/Linux dynamic linker is in use.
8982 dynamic_linker='GNU/Linux ld.so'
8989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8992 dynamic_linker='NetBSD (a.out) ld.so'
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 dynamic_linker='NetBSD ld.elf_so'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=yes
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9022 sys_lib_dlsearch_path_spec="/usr/lib"
9024 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9026 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9027 *) need_version=no ;;
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9034 openbsd2.[89] | openbsd2.[89].*)
9035 shlibpath_overrides_runpath=no
9038 shlibpath_overrides_runpath=yes
9042 shlibpath_overrides_runpath=yes
9047 libname_spec='$name'
9050 library_names_spec='$libname${shared_ext} $libname.a'
9051 dynamic_linker='OS/2 ld.exe'
9052 shlibpath_var=LIBPATH
9055 osf3* | osf4* | osf5*)
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes
9078 hardcode_into_libs=yes
9079 # ldd complains unless libraries are executable
9080 postinstall_cmds='chmod +x $lib'
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 if test "$with_gnu_ld" = yes; then
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 case $host_vendor in
9102 shlibpath_overrides_runpath=no
9104 export_dynamic_flag_spec='${wl}-Blargedynsym'
9105 runpath_var=LD_RUN_PATH
9113 shlibpath_overrides_runpath=no
9114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9120 if test -d /usr/nec ;then
9122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9123 soname_spec='$libname${shared_ext}.$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9129 version_type=freebsd-elf
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 hardcode_into_libs=yes
9136 if test "$with_gnu_ld" = yes; then
9137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9138 shlibpath_overrides_runpath=no
9140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9141 shlibpath_overrides_runpath=yes
9144 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9148 sys_lib_dlsearch_path_spec='/usr/lib'
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9162 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9163 echo "${ECHO_T}$dynamic_linker" >&6; }
9164 test "$dynamic_linker" = no && can_build_shared=no
9166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9167 if test "$GCC" = yes; then
9168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9171 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9172 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9174 if test -n "$hardcode_libdir_flag_spec" || \
9175 test -n "$runpath_var" || \
9176 test "X$hardcode_automatic" = "Xyes" ; then
9178 # We can hardcode non-existant directories.
9179 if test "$hardcode_direct" != no &&
9180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9181 # have to relink, otherwise we might link with an installed library
9182 # when we should be linking with a yet-to-be-installed one
9183 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9184 test "$hardcode_minus_L" != no; then
9185 # Linking always hardcodes the temporary library directory.
9186 hardcode_action=relink
9188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9189 hardcode_action=immediate
9192 # We cannot hardcode anything, or else we can only hardcode existing
9194 hardcode_action=unsupported
9196 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9197 echo "${ECHO_T}$hardcode_action" >&6; }
9199 if test "$hardcode_action" = relink; then
9200 # Fast installation is not supported
9201 enable_fast_install=no
9202 elif test "$shlibpath_overrides_runpath" = yes ||
9203 test "$enable_shared" = no; then
9204 # Fast installation is not necessary
9205 enable_fast_install=needless
9210 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9211 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9212 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9213 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9214 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9215 { echo "$as_me:$LINENO: result: yes" >&5
9216 echo "${ECHO_T}yes" >&6; }
9218 # FIXME - insert some real tests, host_os isn't really good enough
9221 if test -n "$STRIP" ; then
9222 striplib="$STRIP -x"
9223 old_striplib="$STRIP -S"
9224 { echo "$as_me:$LINENO: result: yes" >&5
9225 echo "${ECHO_T}yes" >&6; }
9227 { echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6; }
9232 { echo "$as_me:$LINENO: result: no" >&5
9233 echo "${ECHO_T}no" >&6; }
9238 if test "x$enable_dlopen" != xyes; then
9239 enable_dlopen=unknown
9240 enable_dlopen_self=unknown
9241 enable_dlopen_self_static=unknown
9248 lt_cv_dlopen="load_add_on"
9250 lt_cv_dlopen_self=yes
9254 lt_cv_dlopen="LoadLibrary"
9259 lt_cv_dlopen="dlopen"
9264 # if libdl is installed we need to link against it
9265 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9266 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9267 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 ac_check_lib_save_LIBS=$LIBS
9272 cat >conftest.$ac_ext <<_ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (ac_try="$ac_link"
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301 (eval "$ac_link") 2>conftest.er1
9303 grep -v '^ *+' conftest.er1 >conftest.err
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && {
9308 test -z "$ac_c_werror_flag" ||
9309 test ! -s conftest.err
9310 } && test -s conftest$ac_exeext &&
9311 $as_test_x conftest$ac_exeext; then
9312 ac_cv_lib_dl_dlopen=yes
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_cv_lib_dl_dlopen=no
9320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9321 conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9324 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9325 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9326 if test $ac_cv_lib_dl_dlopen = yes; then
9327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9332 lt_cv_dlopen_self=yes
9339 { echo "$as_me:$LINENO: checking for shl_load" >&5
9340 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9341 if test "${ac_cv_func_shl_load+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 cat >conftest.$ac_ext <<_ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9352 #define shl_load innocuous_shl_load
9354 /* System header to define __stub macros and hopefully few prototypes,
9355 which can conflict with char shl_load (); below.
9356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 <limits.h> exists even on freestanding compilers. */
9360 # include <limits.h>
9362 # include <assert.h>
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9374 /* The GNU C library defines this for functions which it implements
9375 to always fail with ENOSYS. Some functions are actually named
9376 something starting with __ and the normal name is an alias. */
9377 #if defined __stub_shl_load || defined __stub___shl_load
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_link") 2>conftest.er1
9398 grep -v '^ *+' conftest.er1 >conftest.err
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } && {
9403 test -z "$ac_c_werror_flag" ||
9404 test ! -s conftest.err
9405 } && test -s conftest$ac_exeext &&
9406 $as_test_x conftest$ac_exeext; then
9407 ac_cv_func_shl_load=yes
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ac_cv_func_shl_load=no
9415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9416 conftest$ac_exeext conftest.$ac_ext
9418 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9419 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9420 if test $ac_cv_func_shl_load = yes; then
9421 lt_cv_dlopen="shl_load"
9423 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9424 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9425 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 ac_check_lib_save_LIBS=$LIBS
9430 cat >conftest.$ac_ext <<_ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9437 /* Override any GCC internal prototype to avoid an error.
9438 Use char because int might match the return type of a GCC
9439 builtin and then its argument prototype would still apply. */
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_link") 2>conftest.er1
9461 grep -v '^ *+' conftest.er1 >conftest.err
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && {
9466 test -z "$ac_c_werror_flag" ||
9467 test ! -s conftest.err
9468 } && test -s conftest$ac_exeext &&
9469 $as_test_x conftest$ac_exeext; then
9470 ac_cv_lib_dld_shl_load=yes
9472 echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9475 ac_cv_lib_dld_shl_load=no
9478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9479 conftest$ac_exeext conftest.$ac_ext
9480 LIBS=$ac_check_lib_save_LIBS
9482 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9483 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9484 if test $ac_cv_lib_dld_shl_load = yes; then
9485 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9487 { echo "$as_me:$LINENO: checking for dlopen" >&5
9488 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9489 if test "${ac_cv_func_dlopen+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 cat >conftest.$ac_ext <<_ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9500 #define dlopen innocuous_dlopen
9502 /* System header to define __stub macros and hopefully few prototypes,
9503 which can conflict with char dlopen (); below.
9504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9505 <limits.h> exists even on freestanding compilers. */
9508 # include <limits.h>
9510 # include <assert.h>
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined __stub_dlopen || defined __stub___dlopen
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (ac_try="$ac_link"
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_link") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1 >conftest.err
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest$ac_exeext &&
9554 $as_test_x conftest$ac_exeext; then
9555 ac_cv_func_dlopen=yes
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_cv_func_dlopen=no
9563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9564 conftest$ac_exeext conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9567 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9568 if test $ac_cv_func_dlopen = yes; then
9569 lt_cv_dlopen="dlopen"
9571 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9572 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 ac_check_lib_save_LIBS=$LIBS
9578 cat >conftest.$ac_ext <<_ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1 >conftest.err
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest$ac_exeext &&
9617 $as_test_x conftest$ac_exeext; then
9618 ac_cv_lib_dl_dlopen=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_cv_lib_dl_dlopen=no
9626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9627 conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9630 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9632 if test $ac_cv_lib_dl_dlopen = yes; then
9633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9635 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 ac_check_lib_save_LIBS=$LIBS
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9649 /* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_link") 2>conftest.er1
9673 grep -v '^ *+' conftest.er1 >conftest.err
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } && {
9678 test -z "$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 } && test -s conftest$ac_exeext &&
9681 $as_test_x conftest$ac_exeext; then
9682 ac_cv_lib_svld_dlopen=yes
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_cv_lib_svld_dlopen=no
9690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691 conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9694 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9695 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9696 if test $ac_cv_lib_svld_dlopen = yes; then
9697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9699 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9700 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 ac_check_lib_save_LIBS=$LIBS
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext &&
9745 $as_test_x conftest$ac_exeext; then
9746 ac_cv_lib_dld_dld_link=yes
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 ac_cv_lib_dld_dld_link=no
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755 conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9759 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9760 if test $ac_cv_lib_dld_dld_link = yes; then
9761 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9782 if test "x$lt_cv_dlopen" != xno; then
9788 case $lt_cv_dlopen in
9790 save_CPPFLAGS="$CPPFLAGS"
9791 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9793 save_LDFLAGS="$LDFLAGS"
9794 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9797 LIBS="$lt_cv_dlopen_libs $LIBS"
9799 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9800 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9801 if test "${lt_cv_dlopen_self+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 if test "$cross_compiling" = yes; then :
9805 lt_cv_dlopen_self=cross
9807 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9808 lt_status=$lt_dlunknown
9809 cat > conftest.$ac_ext <<EOF
9810 #line __oline__ "configure"
9811 #include "confdefs.h"
9820 # define LT_DLGLOBAL RTLD_GLOBAL
9823 # define LT_DLGLOBAL DL_GLOBAL
9825 # define LT_DLGLOBAL 0
9829 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9830 find out it does not work in some platform. */
9831 #ifndef LT_DLLAZY_OR_NOW
9833 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9836 # define LT_DLLAZY_OR_NOW DL_LAZY
9839 # define LT_DLLAZY_OR_NOW RTLD_NOW
9842 # define LT_DLLAZY_OR_NOW DL_NOW
9844 # define LT_DLLAZY_OR_NOW 0
9852 extern "C" void exit (int);
9855 void fnord() { int i=42;}
9858 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9859 int status = $lt_dlunknown;
9863 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9864 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9865 /* dlclose (self); */
9873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9874 (eval $ac_link) 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9878 (./conftest; exit; ) >&5 2>/dev/null
9881 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9882 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9883 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9886 # compilation failed
9887 lt_cv_dlopen_self=no
9894 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9895 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9897 if test "x$lt_cv_dlopen_self" = xyes; then
9898 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9899 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9900 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9901 if test "${lt_cv_dlopen_self_static+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 if test "$cross_compiling" = yes; then :
9905 lt_cv_dlopen_self_static=cross
9907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9908 lt_status=$lt_dlunknown
9909 cat > conftest.$ac_ext <<EOF
9910 #line __oline__ "configure"
9911 #include "confdefs.h"
9920 # define LT_DLGLOBAL RTLD_GLOBAL
9923 # define LT_DLGLOBAL DL_GLOBAL
9925 # define LT_DLGLOBAL 0
9929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9930 find out it does not work in some platform. */
9931 #ifndef LT_DLLAZY_OR_NOW
9933 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9936 # define LT_DLLAZY_OR_NOW DL_LAZY
9939 # define LT_DLLAZY_OR_NOW RTLD_NOW
9942 # define LT_DLLAZY_OR_NOW DL_NOW
9944 # define LT_DLLAZY_OR_NOW 0
9952 extern "C" void exit (int);
9955 void fnord() { int i=42;}
9958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9959 int status = $lt_dlunknown;
9963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9964 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9965 /* dlclose (self); */
9973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9974 (eval $ac_link) 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9978 (./conftest; exit; ) >&5 2>/dev/null
9981 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9982 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9983 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9986 # compilation failed
9987 lt_cv_dlopen_self_static=no
9994 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9998 CPPFLAGS="$save_CPPFLAGS"
9999 LDFLAGS="$save_LDFLAGS"
10004 case $lt_cv_dlopen_self in
10005 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10006 *) enable_dlopen_self=unknown ;;
10009 case $lt_cv_dlopen_self_static in
10010 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10011 *) enable_dlopen_self_static=unknown ;;
10016 # Report which library types will actually be built
10017 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10018 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10019 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10020 echo "${ECHO_T}$can_build_shared" >&6; }
10022 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10023 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10024 test "$can_build_shared" = "no" && enable_shared=no
10026 # On AIX, shared libraries and static libraries use the same namespace, and
10027 # are all built from PIC.
10030 test "$enable_shared" = yes && enable_static=no
10031 if test -n "$RANLIB"; then
10032 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10033 postinstall_cmds='$RANLIB $lib'
10038 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10039 test "$enable_shared" = yes && enable_static=no
10043 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10044 echo "${ECHO_T}$enable_shared" >&6; }
10046 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10047 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10048 # Make sure either enable_shared or enable_static is yes.
10049 test "$enable_shared" = yes || enable_static=yes
10050 { echo "$as_me:$LINENO: result: $enable_static" >&5
10051 echo "${ECHO_T}$enable_static" >&6; }
10053 # The else clause should only fire when bootstrapping the
10054 # libtool distribution, otherwise you forgot to ship ltmain.sh
10055 # with your package, and you will get complaints that there are
10056 # no rules to generate ltmain.sh.
10057 if test -f "$ltmain"; then
10058 # See if we are running on zsh, and set the options which allow our commands through
10059 # without removal of \ escapes.
10060 if test -n "${ZSH_VERSION+set}" ; then
10061 setopt NO_GLOB_SUBST
10063 # Now quote all the things that may contain metacharacters while being
10064 # careful not to overquote the AC_SUBSTed values. We take copies of the
10065 # variables and quote the copies for generation of the libtool script.
10066 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10068 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10069 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10070 deplibs_check_method reload_flag reload_cmds need_locks \
10071 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10072 lt_cv_sys_global_symbol_to_c_name_address \
10073 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10074 old_postinstall_cmds old_postuninstall_cmds \
10078 lt_prog_compiler_wl \
10079 lt_prog_compiler_pic \
10080 lt_prog_compiler_static \
10081 lt_prog_compiler_no_builtin_flag \
10082 export_dynamic_flag_spec \
10083 thread_safe_flag_spec \
10084 whole_archive_flag_spec \
10085 enable_shared_with_static_runtimes \
10087 old_archive_from_new_cmds \
10092 compiler_lib_search_path \
10094 archive_expsym_cmds \
10096 postuninstall_cmds \
10097 old_archive_from_expsyms_cmds \
10098 allow_undefined_flag \
10099 no_undefined_flag \
10100 export_symbols_cmds \
10101 hardcode_libdir_flag_spec \
10102 hardcode_libdir_flag_spec_ld \
10103 hardcode_libdir_separator \
10104 hardcode_automatic \
10106 module_expsym_cmds \
10107 lt_cv_prog_compiler_c_o \
10110 include_expsyms; do
10113 old_archive_cmds | \
10114 old_archive_from_new_cmds | \
10116 archive_expsym_cmds | \
10118 module_expsym_cmds | \
10119 old_archive_from_expsyms_cmds | \
10120 export_symbols_cmds | \
10121 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10122 postinstall_cmds | postuninstall_cmds | \
10123 old_postinstall_cmds | old_postuninstall_cmds | \
10124 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10125 # Double-quote double-evaled strings.
10126 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10135 *'\$0 --fallback-echo"')
10136 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10140 cfgfile="${ofile}T"
10141 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10143 { echo "$as_me:$LINENO: creating $ofile" >&5
10144 echo "$as_me: creating $ofile" >&6;}
10146 cat <<__EOF__ >> "$cfgfile"
10149 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10150 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10151 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10153 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10154 # Free Software Foundation, Inc.
10156 # This file is part of GNU Libtool:
10157 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10159 # This program is free software; you can redistribute it and/or modify
10160 # it under the terms of the GNU General Public License as published by
10161 # the Free Software Foundation; either version 2 of the License, or
10162 # (at your option) any later version.
10164 # This program is distributed in the hope that it will be useful, but
10165 # WITHOUT ANY WARRANTY; without even the implied warranty of
10166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10167 # General Public License for more details.
10169 # You should have received a copy of the GNU General Public License
10170 # along with this program; if not, write to the Free Software
10171 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10173 # As a special exception to the GNU General Public License, if you
10174 # distribute this file as part of a program that contains a
10175 # configuration script generated by Autoconf, you may include it under
10176 # the same distribution terms that you use for the rest of that program.
10178 # A sed program that does not truncate output.
10181 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10182 Xsed="$SED -e 1s/^X//"
10184 # The HP-UX ksh and POSIX shell print the target directory to stdout
10185 # if CDPATH is set.
10186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10188 # The names of the tagged configurations supported by this script.
10191 # ### BEGIN LIBTOOL CONFIG
10193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10195 # Shell to use when invoking shell scripts.
10198 # Whether or not to build shared libraries.
10199 build_libtool_libs=$enable_shared
10201 # Whether or not to build static libraries.
10202 build_old_libs=$enable_static
10204 # Whether or not to add -lc for building shared libraries.
10205 build_libtool_need_lc=$archive_cmds_need_lc
10207 # Whether or not to disallow shared libs when runtime libs are static
10208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10210 # Whether or not to optimize for fast installation.
10211 fast_install=$enable_fast_install
10214 host_alias=$host_alias
10218 # The build system.
10219 build_alias=$build_alias
10223 # An echo program that does not interpret backslashes.
10228 AR_FLAGS=$lt_AR_FLAGS
10233 # LTCC compiler flags.
10234 LTCFLAGS=$lt_LTCFLAGS
10236 # A language-specific compiler.
10239 # Is the compiler the GNU C compiler?
10242 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10243 gcc_ver=\`gcc -dumpversion\`
10248 # The linker used to build libraries.
10251 # Whether we need hard or soft links.
10254 # A BSD-compatible nm program.
10257 # A symbol stripping program
10260 # Used to examine libraries when file_magic_cmd begins "file"
10261 MAGIC_CMD=$MAGIC_CMD
10263 # Used on cygwin: DLL creation program.
10266 # Used on cygwin: object dumper.
10269 # Used on cygwin: assembler.
10272 # The name of the directory that contains temporary libtool files.
10275 # How to create reloadable object files.
10276 reload_flag=$lt_reload_flag
10277 reload_cmds=$lt_reload_cmds
10279 # How to pass a linker flag through the compiler.
10280 wl=$lt_lt_prog_compiler_wl
10282 # Object file suffix (normally "o").
10283 objext="$ac_objext"
10285 # Old archive suffix (normally "a").
10288 # Shared library suffix (normally ".so").
10289 shrext_cmds='$shrext_cmds'
10291 # Executable file suffix (normally "").
10294 # Additional compiler flags for building library objects.
10295 pic_flag=$lt_lt_prog_compiler_pic
10298 # What is the maximum length of a command?
10299 max_cmd_len=$lt_cv_sys_max_cmd_len
10301 # Does compiler simultaneously support -c and -o options?
10302 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10304 # Must we lock files when doing compilation?
10305 need_locks=$lt_need_locks
10307 # Do we need the lib prefix for modules?
10308 need_lib_prefix=$need_lib_prefix
10310 # Do we need a version for libraries?
10311 need_version=$need_version
10313 # Whether dlopen is supported.
10314 dlopen_support=$enable_dlopen
10316 # Whether dlopen of programs is supported.
10317 dlopen_self=$enable_dlopen_self
10319 # Whether dlopen of statically linked programs is supported.
10320 dlopen_self_static=$enable_dlopen_self_static
10322 # Compiler flag to prevent dynamic linking.
10323 link_static_flag=$lt_lt_prog_compiler_static
10325 # Compiler flag to turn off builtin functions.
10326 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10328 # Compiler flag to allow reflexive dlopens.
10329 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10331 # Compiler flag to generate shared objects directly from archives.
10332 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10334 # Compiler flag to generate thread-safe objects.
10335 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10337 # Library versioning type.
10338 version_type=$version_type
10340 # Format of library name prefix.
10341 libname_spec=$lt_libname_spec
10343 # List of archive names. First name is the real one, the rest are links.
10344 # The last name is the one that the linker finds with -lNAME.
10345 library_names_spec=$lt_library_names_spec
10347 # The coded name of the library, if different from the real name.
10348 soname_spec=$lt_soname_spec
10350 # Commands used to build and install an old-style archive.
10352 old_archive_cmds=$lt_old_archive_cmds
10353 old_postinstall_cmds=$lt_old_postinstall_cmds
10354 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10356 # Create an old-style archive from a shared archive.
10357 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10359 # Create a temporary old-style archive to link instead of a shared archive.
10360 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10362 # Commands used to build and install a shared archive.
10363 archive_cmds=$lt_archive_cmds
10364 archive_expsym_cmds=$lt_archive_expsym_cmds
10365 postinstall_cmds=$lt_postinstall_cmds
10366 postuninstall_cmds=$lt_postuninstall_cmds
10368 # Commands used to build a loadable module (assumed same as above if empty)
10369 module_cmds=$lt_module_cmds
10370 module_expsym_cmds=$lt_module_expsym_cmds
10372 # Commands to strip libraries.
10373 old_striplib=$lt_old_striplib
10374 striplib=$lt_striplib
10376 # Dependencies to place before the objects being linked to create a
10378 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10380 # Dependencies to place after the objects being linked to create a
10382 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10384 # Dependencies to place before the objects being linked to create a
10386 predeps=$lt_predeps
10388 # Dependencies to place after the objects being linked to create a
10390 postdeps=$lt_postdeps
10392 # The library search path used internally by the compiler when linking
10393 # a shared library.
10394 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10396 # Method to check whether dependent libraries are shared objects.
10397 deplibs_check_method=$lt_deplibs_check_method
10399 # Command to use when deplibs_check_method == file_magic.
10400 file_magic_cmd=$lt_file_magic_cmd
10402 # Flag that allows shared libraries with undefined symbols to be built.
10403 allow_undefined_flag=$lt_allow_undefined_flag
10405 # Flag that forces no undefined symbols.
10406 no_undefined_flag=$lt_no_undefined_flag
10408 # Commands used to finish a libtool library installation in a directory.
10409 finish_cmds=$lt_finish_cmds
10411 # Same as above, but a single script fragment to be evaled but not shown.
10412 finish_eval=$lt_finish_eval
10414 # Take the output of nm and produce a listing of raw symbols and C names.
10415 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10417 # Transform the output of nm in a proper C declaration
10418 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10420 # Transform the output of nm in a C name address pair
10421 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10423 # This is the shared library runtime path variable.
10424 runpath_var=$runpath_var
10426 # This is the shared library path variable.
10427 shlibpath_var=$shlibpath_var
10429 # Is shlibpath searched before the hard-coded library search path?
10430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10432 # How to hardcode a shared library path into an executable.
10433 hardcode_action=$hardcode_action
10435 # Whether we should hardcode library paths into libraries.
10436 hardcode_into_libs=$hardcode_into_libs
10438 # Flag to hardcode \$libdir into a binary during linking.
10439 # This must work even if \$libdir does not exist.
10440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10442 # If ld is used when linking, flag to hardcode \$libdir into
10443 # a binary during linking. This must work even if \$libdir does
10445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10447 # Whether we need a single -rpath flag with a separated argument.
10448 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10450 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10451 # resulting binary.
10452 hardcode_direct=$hardcode_direct
10454 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10455 # resulting binary.
10456 hardcode_minus_L=$hardcode_minus_L
10458 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10459 # the resulting binary.
10460 hardcode_shlibpath_var=$hardcode_shlibpath_var
10462 # Set to yes if building a shared library automatically hardcodes DIR into the library
10463 # and all subsequent libraries and executables linked against it.
10464 hardcode_automatic=$hardcode_automatic
10466 # Variables whose values should be saved in libtool wrapper scripts and
10467 # restored at relink time.
10468 variables_saved_for_relink="$variables_saved_for_relink"
10470 # Whether libtool must link a program against all its dependency libraries.
10471 link_all_deplibs=$link_all_deplibs
10473 # Compile-time system search path for libraries
10474 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"\`
10476 # Run-time system search path for libraries
10477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10479 # Fix the shell variable \$srcfile for the compiler.
10480 fix_srcfile_path=$lt_fix_srcfile_path
10482 # Set to yes if exported symbols are required.
10483 always_export_symbols=$always_export_symbols
10485 # The commands to list exported symbols.
10486 export_symbols_cmds=$lt_export_symbols_cmds
10488 # The commands to extract the exported symbol list from a shared archive.
10489 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10491 # Symbols that should not be listed in the preloaded symbols.
10492 exclude_expsyms=$lt_exclude_expsyms
10494 # Symbols that must always be exported.
10495 include_expsyms=$lt_include_expsyms
10497 # ### END LIBTOOL CONFIG
10504 cat <<\EOF >> "$cfgfile"
10506 # AIX sometimes has problems with the GCC collect2 program. For some
10507 # reason, if we set the COLLECT_NAMES environment variable, the problems
10508 # vanish in a puff of smoke.
10509 if test "X${COLLECT_NAMES+set}" != Xset; then
10511 export COLLECT_NAMES
10517 # We use sed instead of cat because bash on DJGPP gets confused if
10518 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10519 # text mode, it properly converts lines to CR/LF. This bash problem
10520 # is reportedly fixed, but why not run on old versions too?
10521 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10523 mv -f "$cfgfile" "$ofile" || \
10524 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10528 # If there is no Makefile yet, we rely on a make rule to execute
10529 # `config.status --recheck' to rerun these tests and create the
10530 # libtool script then.
10531 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10532 if test -f "$ltmain_in"; then
10533 test -f Makefile && make "$ltmain"
10539 ac_cpp='$CPP $CPPFLAGS'
10540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10547 # Check whether --with-tags was given.
10548 if test "${with_tags+set}" = set; then
10549 withval=$with_tags; tagnames="$withval"
10553 if test -f "$ltmain" && test -n "$tagnames"; then
10554 if test ! -f "${ofile}"; then
10555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10556 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10559 if test -z "$LTCC"; then
10560 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10561 if test -z "$LTCC"; then
10562 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10563 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10565 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10566 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10569 if test -z "$LTCFLAGS"; then
10570 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10573 # Extract list of available tagged configurations in $ofile.
10574 # Note that this assumes the entire list is on one line.
10575 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10578 for tagname in $tagnames; do
10580 # Check whether tagname contains only valid characters
10581 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10583 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10584 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10585 { (exit 1); exit 1; }; }
10589 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10591 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10592 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10593 { (exit 1); exit 1; }; }
10596 # Update the list of available tags.
10597 if test -n "$tagname"; then
10598 echo appending configuration tag \"$tagname\" to $ofile
10602 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10603 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10604 (test "X$CXX" != "Xg++"))) ; then
10606 ac_cpp='$CXXCPP $CPPFLAGS'
10607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10614 archive_cmds_need_lc_CXX=no
10615 allow_undefined_flag_CXX=
10616 always_export_symbols_CXX=no
10617 archive_expsym_cmds_CXX=
10618 export_dynamic_flag_spec_CXX=
10619 hardcode_direct_CXX=no
10620 hardcode_libdir_flag_spec_CXX=
10621 hardcode_libdir_flag_spec_ld_CXX=
10622 hardcode_libdir_separator_CXX=
10623 hardcode_minus_L_CXX=no
10624 hardcode_shlibpath_var_CXX=unsupported
10625 hardcode_automatic_CXX=no
10627 module_expsym_cmds_CXX=
10628 link_all_deplibs_CXX=unknown
10629 old_archive_cmds_CXX=$old_archive_cmds
10630 no_undefined_flag_CXX=
10631 whole_archive_flag_spec_CXX=
10632 enable_shared_with_static_runtimes_CXX=no
10634 # Dependencies to place before and after the object being linked:
10635 predep_objects_CXX=
10636 postdep_objects_CXX=
10639 compiler_lib_search_path_CXX=
10641 # Source file extension for C++ test sources.
10644 # Object file extension for compiled C++ test sources.
10648 # Code to be used in simple compile tests
10649 lt_simple_compile_test_code="int some_variable = 0;"
10651 # Code to be used in simple link tests
10652 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10654 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10656 # If no C compiler was specified, use CC.
10659 # If no C compiler flags were specified, use CFLAGS.
10660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10662 # Allow CC to be a program name with arguments.
10666 # save warnings/boilerplate of simple test code
10667 ac_outfile=conftest.$ac_objext
10668 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10669 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10670 _lt_compiler_boilerplate=`cat conftest.err`
10673 ac_outfile=conftest.$ac_objext
10674 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10675 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10676 _lt_linker_boilerplate=`cat conftest.err`
10680 # Allow CC to be a program name with arguments.
10685 lt_save_with_gnu_ld=$with_gnu_ld
10686 lt_save_path_LD=$lt_cv_path_LD
10687 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10688 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10690 $as_unset lt_cv_prog_gnu_ld
10692 if test -n "${lt_cv_path_LDCXX+set}"; then
10693 lt_cv_path_LD=$lt_cv_path_LDCXX
10695 $as_unset lt_cv_path_LD
10697 test -z "${LDCXX+set}" || LD=$LDCXX
10701 for cc_temp in $compiler""; do
10703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10712 # We don't want -fno-exception wen compiling C++ code, so set the
10713 # no_builtin_flag separately
10714 if test "$GXX" = yes; then
10715 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10717 lt_prog_compiler_no_builtin_flag_CXX=
10720 if test "$GXX" = yes; then
10721 # Set up default GNU C++ configuration
10724 # Check whether --with-gnu-ld was given.
10725 if test "${with_gnu_ld+set}" = set; then
10726 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10732 if test "$GCC" = yes; then
10733 # Check if gcc -print-prog-name=ld gives a path.
10734 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10735 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10738 # gcc leaves a trailing carriage return which upsets mingw
10739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10744 # Accept absolute paths.
10746 re_direlt='/[^/][^/]*/\.\./'
10747 # Canonicalize the pathname of ld
10748 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10750 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10752 test -z "$LD" && LD="$ac_prog"
10755 # If it fails, then pretend we aren't using GCC.
10759 # If it is relative, then search for the first ld in PATH.
10760 with_gnu_ld=unknown
10763 elif test "$with_gnu_ld" = yes; then
10764 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10765 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10767 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10768 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10770 if test "${lt_cv_path_LD+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 if test -z "$LD"; then
10774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10775 for ac_dir in $PATH; do
10777 test -z "$ac_dir" && ac_dir=.
10778 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10779 lt_cv_path_LD="$ac_dir/$ac_prog"
10780 # Check to see if the program is GNU ld. I'd rather use --version,
10781 # but apparently some variants of GNU ld only accept -v.
10782 # Break only if it was the GNU/non-GNU ld that we prefer.
10783 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10784 *GNU* | *'with BFD'*)
10785 test "$with_gnu_ld" != no && break
10788 test "$with_gnu_ld" != yes && break
10795 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10799 LD="$lt_cv_path_LD"
10800 if test -n "$LD"; then
10801 { echo "$as_me:$LINENO: result: $LD" >&5
10802 echo "${ECHO_T}$LD" >&6; }
10804 { echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6; }
10807 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10808 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10809 { (exit 1); exit 1; }; }
10810 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10811 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10812 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10816 case `$LD -v 2>&1 </dev/null` in
10817 *GNU* | *'with BFD'*)
10818 lt_cv_prog_gnu_ld=yes
10821 lt_cv_prog_gnu_ld=no
10825 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10826 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10827 with_gnu_ld=$lt_cv_prog_gnu_ld
10831 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10832 # archiving commands below assume that GNU ld is being used.
10833 if test "$with_gnu_ld" = yes; then
10834 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10835 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'
10837 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10840 # If archive_cmds runs LD, not CC, wlarc should be empty
10841 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10842 # investigate it a little bit more. (MM)
10845 # ancient GNU ld didn't support --whole-archive et. al.
10846 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10847 grep 'no-whole-archive' > /dev/null; then
10848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10850 whole_archive_flag_spec_CXX=
10856 # A generic and very simple default shared library creation
10857 # command for GNU C++ for the case where it uses the native
10858 # linker, instead of GNU ld. If possible, this setting should
10859 # overridden to take advantage of the native linker features on
10860 # the platform it is being used on.
10861 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10864 # Commands to make compiler produce verbose output that lists
10865 # what "hidden" libraries, object files and flags are used when
10866 # linking a shared library.
10867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10875 # PORTME: fill in a description of your system's C++ link characteristics
10876 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10877 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10881 # FIXME: insert proper C++ library support
10885 if test "$host_cpu" = ia64; then
10886 # On IA64, the linker does run time linking by default, so we don't
10887 # have to do anything special.
10888 aix_use_runtimelinking=no
10889 exp_sym_flag='-Bexport'
10892 aix_use_runtimelinking=no
10894 # Test if we are trying to use run time linking or normal
10895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10896 # need to do runtime linking.
10897 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10898 for ld_flag in $LDFLAGS; do
10901 aix_use_runtimelinking=yes
10909 exp_sym_flag='-bexport'
10910 no_entry_flag='-bnoentry'
10913 # When large executables or shared objects are built, AIX ld can
10914 # have problems creating the table of contents. If linking a library
10915 # or program results in "error TOC overflow" add -mminimal-toc to
10916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10919 archive_cmds_CXX=''
10920 hardcode_direct_CXX=yes
10921 hardcode_libdir_separator_CXX=':'
10922 link_all_deplibs_CXX=yes
10924 if test "$GXX" = yes; then
10925 case $host_os in aix4.[012]|aix4.[012].*)
10926 # We only want to do this on AIX 4.2 and lower, the check
10927 # below for broken collect2 doesn't work under 4.3+
10928 collect2name=`${CC} -print-prog-name=collect2`
10929 if test -f "$collect2name" && \
10930 strings "$collect2name" | grep resolve_lib_name >/dev/null
10932 # We have reworked collect2
10935 # We have old collect2
10936 hardcode_direct_CXX=unsupported
10937 # It fails to find uninstalled libraries when the uninstalled
10938 # path is not listed in the libpath. Setting hardcode_minus_L
10939 # to unsupported forces relinking
10940 hardcode_minus_L_CXX=yes
10941 hardcode_libdir_flag_spec_CXX='-L$libdir'
10942 hardcode_libdir_separator_CXX=
10946 shared_flag='-shared'
10947 if test "$aix_use_runtimelinking" = yes; then
10948 shared_flag="$shared_flag "'${wl}-G'
10952 if test "$host_cpu" = ia64; then
10953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10954 # chokes on -Wl,-G. The following line is correct:
10957 if test "$aix_use_runtimelinking" = yes; then
10958 shared_flag='${wl}-G'
10960 shared_flag='${wl}-bM:SRE'
10965 # It seems that -bexpall does not export symbols beginning with
10966 # underscore (_), so it is better to generate a list of symbols to export.
10967 always_export_symbols_CXX=yes
10968 if test "$aix_use_runtimelinking" = yes; then
10969 # Warning - without using the other runtime loading flags (-brtl),
10970 # -berok will link without error, but may produce a broken library.
10971 allow_undefined_flag_CXX='-berok'
10972 # Determine the default libpath from the value encoded in an empty executable.
10973 cat >conftest.$ac_ext <<_ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h. */
10988 rm -f conftest.$ac_objext conftest$ac_exeext
10989 if { (ac_try="$ac_link"
10990 case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_link") 2>conftest.er1
10997 grep -v '^ *+' conftest.er1 >conftest.err
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_cxx_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest$ac_exeext &&
11005 $as_test_x conftest$ac_exeext; then
11007 lt_aix_libpath_sed='
11008 /Import File Strings/,/^$/ {
11014 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11015 # Check for a 64-bit object if we didn't find anything.
11016 if test -z "$aix_libpath"; then
11017 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11027 conftest$ac_exeext conftest.$ac_ext
11028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11030 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11032 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"
11034 if test "$host_cpu" = ia64; then
11035 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11036 allow_undefined_flag_CXX="-z nodefs"
11037 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"
11039 # Determine the default libpath from the value encoded in an empty executable.
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } && {
11069 test -z "$ac_cxx_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest$ac_exeext &&
11072 $as_test_x conftest$ac_exeext; then
11074 lt_aix_libpath_sed='
11075 /Import File Strings/,/^$/ {
11081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11082 # Check for a 64-bit object if we didn't find anything.
11083 if test -z "$aix_libpath"; then
11084 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11094 conftest$ac_exeext conftest.$ac_ext
11095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11097 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11098 # Warning - without using the other run time loading flags,
11099 # -berok will link without error, but may produce a broken library.
11100 no_undefined_flag_CXX=' ${wl}-bernotok'
11101 allow_undefined_flag_CXX=' ${wl}-berok'
11102 # Exported symbols can be pulled into shared objects from archives
11103 whole_archive_flag_spec_CXX='$convenience'
11104 archive_cmds_need_lc_CXX=yes
11105 # This is similar to how AIX traditionally builds its shared libraries.
11106 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'
11112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11113 allow_undefined_flag_CXX=unsupported
11114 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11115 # support --undefined. This deserves some investigation. FIXME
11116 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11123 case $cc_basename in
11125 # FIXME: insert proper C++ library support
11131 cygwin* | mingw* | pw32*)
11132 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11133 # as there is no search path for DLLs.
11134 hardcode_libdir_flag_spec_CXX='-L$libdir'
11135 allow_undefined_flag_CXX=unsupported
11136 always_export_symbols_CXX=no
11137 enable_shared_with_static_runtimes_CXX=yes
11139 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11140 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'
11141 # If the export-symbols file already is a .def file (1st line
11142 # is EXPORTS), use it as is; otherwise, prepend...
11143 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11144 cp $export_symbols $output_objdir/$soname.def;
11146 echo EXPORTS > $output_objdir/$soname.def;
11147 cat $export_symbols >> $output_objdir/$soname.def;
11149 $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'
11154 darwin* | rhapsody*)
11156 rhapsody* | darwin1.[012])
11157 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11160 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11161 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11163 case ${MACOSX_DEPLOYMENT_TARGET} in
11165 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11168 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11174 archive_cmds_need_lc_CXX=no
11175 hardcode_direct_CXX=no
11176 hardcode_automatic_CXX=yes
11177 hardcode_shlibpath_var_CXX=unsupported
11178 whole_archive_flag_spec_CXX=''
11179 link_all_deplibs_CXX=yes
11181 if test "$GXX" = yes ; then
11182 lt_int_apple_cc_single_mod=no
11183 output_verbose_link_cmd='echo'
11184 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11185 lt_int_apple_cc_single_mod=yes
11187 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11188 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11190 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'
11192 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11194 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11195 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}'
11197 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}'
11199 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11201 case $cc_basename in
11203 output_verbose_link_cmd='echo'
11204 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'
11205 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11207 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}'
11208 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}'
11218 case $cc_basename in
11220 # FIXME: insert proper C++ library support
11224 # Green Hills C++ Compiler
11225 # FIXME: insert proper C++ library support
11229 # FIXME: insert proper C++ library support
11235 # C++ shared libraries reported to be fairly broken before switch to ELF
11239 archive_cmds_need_lc_CXX=no
11241 freebsd* | dragonfly*)
11242 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11249 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11250 hardcode_libdir_separator_CXX=:
11251 export_dynamic_flag_spec_CXX='${wl}-E'
11252 hardcode_direct_CXX=yes
11253 hardcode_minus_L_CXX=yes # Not in the search PATH,
11254 # but as the default
11255 # location of the library.
11257 case $cc_basename in
11259 # FIXME: insert proper C++ library support
11263 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'
11264 # Commands to make compiler produce verbose output that lists
11265 # what "hidden" libraries, object files and flags are used when
11266 # linking a shared library.
11268 # There doesn't appear to be a way to prevent this compiler from
11269 # explicitly linking system object files so we need to strip them
11270 # from the output so that they don't get included in the library
11272 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'
11275 if test "$GXX" = yes; then
11276 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'
11278 # FIXME: insert proper C++ library support
11285 if test $with_gnu_ld = no; then
11286 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11287 hardcode_libdir_separator_CXX=:
11292 export_dynamic_flag_spec_CXX='${wl}-E'
11298 hardcode_direct_CXX=no
11299 hardcode_shlibpath_var_CXX=no
11302 hardcode_direct_CXX=yes
11303 hardcode_minus_L_CXX=yes # Not in the search PATH,
11304 # but as the default
11305 # location of the library.
11309 case $cc_basename in
11311 # FIXME: insert proper C++ library support
11317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11326 # Commands to make compiler produce verbose output that lists
11327 # what "hidden" libraries, object files and flags are used when
11328 # linking a shared library.
11330 # There doesn't appear to be a way to prevent this compiler from
11331 # explicitly linking system object files so we need to strip them
11332 # from the output so that they don't get included in the library
11334 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'
11337 if test "$GXX" = yes; then
11338 if test $with_gnu_ld = no; then
11341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11347 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'
11352 # FIXME: insert proper C++ library support
11359 hardcode_direct_CXX=no
11360 hardcode_shlibpath_var_CXX=no
11361 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11362 export_dynamic_flag_spec_CXX='${wl}-E'
11363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11364 # Instead, shared libraries are loaded at an image base (0x10000000 by
11365 # default) and relocated if they conflict, which is a slow very memory
11366 # consuming and fragmenting process. To avoid this, we pick a random,
11367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11369 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'
11370 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'
11373 case $cc_basename in
11376 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'
11378 # Archives containing C++ object files must be created using
11379 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11380 # necessary to make sure instantiated templates are included
11382 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11385 if test "$GXX" = yes; then
11386 if test "$with_gnu_ld" = no; then
11387 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'
11389 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'
11392 link_all_deplibs_CXX=yes
11395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11396 hardcode_libdir_separator_CXX=:
11398 linux* | k*bsd*-gnu)
11399 case $cc_basename in
11401 # Kuck and Associates, Inc. (KAI) C++ Compiler
11403 # KCC will only create a shared library if the output file
11404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11405 # to its proper name (with version) after linking.
11406 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'
11407 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'
11408 # Commands to make compiler produce verbose output that lists
11409 # what "hidden" libraries, object files and flags are used when
11410 # linking a shared library.
11412 # There doesn't appear to be a way to prevent this compiler from
11413 # explicitly linking system object files so we need to strip them
11414 # from the output so that they don't get included in the library
11416 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'
11418 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11419 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11421 # Archives containing C++ object files must be created using
11422 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11423 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11428 # version 8.0 and above of icpc choke on multiply defined symbols
11429 # if we add $predep_objects and $postdep_objects, however 7.1 and
11430 # earlier do not add the objects themselves.
11431 case `$CC -V 2>&1` in
11433 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11434 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'
11436 *) # Version 8.0 or newer
11439 ia64*) tmp_idyn=' -i_dynamic';;
11441 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11442 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'
11445 archive_cmds_need_lc_CXX=no
11446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11448 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11451 # Portland Group C++ compiler
11452 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11453 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'
11455 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11457 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'
11461 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11462 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'
11464 runpath_var=LD_RUN_PATH
11465 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11466 hardcode_libdir_separator_CXX=:
11468 # Commands to make compiler produce verbose output that lists
11469 # what "hidden" libraries, object files and flags are used when
11470 # linking a shared library.
11472 # There doesn't appear to be a way to prevent this compiler from
11473 # explicitly linking system object files so we need to strip them
11474 # from the output so that they don't get included in the library
11476 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'
11479 case `$CC -V 2>&1 | sed 5q` in
11482 no_undefined_flag_CXX=' -zdefs'
11483 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11484 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'
11485 hardcode_libdir_flag_spec_CXX='-R$libdir'
11486 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'
11488 # Not sure whether something based on
11489 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11491 output_verbose_link_cmd='echo'
11493 # Archives containing C++ object files must be created using
11494 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11495 # necessary to make sure instantiated templates are included
11497 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11504 # FIXME: insert proper C++ library support
11508 # FIXME: insert proper C++ library support
11512 case $cc_basename in
11514 # FIXME: insert proper C++ library support
11518 # FIXME: insert proper C++ library support
11524 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11525 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11527 hardcode_libdir_flag_spec_CXX='-R$libdir'
11528 hardcode_direct_CXX=yes
11529 hardcode_shlibpath_var_CXX=no
11531 # Workaround some broken pre-1.5 toolchains
11532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11535 # C++ shared libraries are fairly broken
11539 if test -f /usr/libexec/ld.so; then
11540 hardcode_direct_CXX=yes
11541 hardcode_shlibpath_var_CXX=no
11542 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11545 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11546 export_dynamic_flag_spec_CXX='${wl}-E'
11547 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11549 output_verbose_link_cmd='echo'
11555 case $cc_basename in
11557 # Kuck and Associates, Inc. (KAI) C++ Compiler
11559 # KCC will only create a shared library if the output file
11560 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11561 # to its proper name (with version) after linking.
11562 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'
11564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11565 hardcode_libdir_separator_CXX=:
11567 # Archives containing C++ object files must be created using
11568 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11569 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11573 # Rational C++ 2.4.1
11574 # FIXME: insert proper C++ library support
11578 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11579 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'
11581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11582 hardcode_libdir_separator_CXX=:
11584 # Commands to make compiler produce verbose output that lists
11585 # what "hidden" libraries, object files and flags are used when
11586 # linking a shared library.
11588 # There doesn't appear to be a way to prevent this compiler from
11589 # explicitly linking system object files so we need to strip them
11590 # from the output so that they don't get included in the library
11592 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'
11595 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11596 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11597 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'
11599 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11600 hardcode_libdir_separator_CXX=:
11602 # Commands to make compiler produce verbose output that lists
11603 # what "hidden" libraries, object files and flags are used when
11604 # linking a shared library.
11605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11608 # FIXME: insert proper C++ library support
11615 case $cc_basename in
11617 # Kuck and Associates, Inc. (KAI) C++ Compiler
11619 # KCC will only create a shared library if the output file
11620 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11621 # to its proper name (with version) after linking.
11622 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'
11624 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11625 hardcode_libdir_separator_CXX=:
11627 # Archives containing C++ object files must be created using
11628 # the KAI C++ compiler.
11629 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11632 # Rational C++ 2.4.1
11633 # FIXME: insert proper C++ library support
11637 allow_undefined_flag_CXX=' -expect_unresolved \*'
11638 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'
11639 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11640 echo "-hidden">> $lib.exp~
11641 $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~
11644 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11645 hardcode_libdir_separator_CXX=:
11647 # Commands to make compiler produce verbose output that lists
11648 # what "hidden" libraries, object files and flags are used when
11649 # linking a shared library.
11651 # There doesn't appear to be a way to prevent this compiler from
11652 # explicitly linking system object files so we need to strip them
11653 # from the output so that they don't get included in the library
11655 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'
11658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11659 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11660 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'
11662 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11663 hardcode_libdir_separator_CXX=:
11665 # Commands to make compiler produce verbose output that lists
11666 # what "hidden" libraries, object files and flags are used when
11667 # linking a shared library.
11668 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11671 # FIXME: insert proper C++ library support
11678 # FIXME: insert proper C++ library support
11682 case $cc_basename in
11685 # FIXME: insert proper C++ library support
11690 # FIXME: insert proper C++ library support
11694 # FIXME: insert proper C++ library support
11700 case $cc_basename in
11702 # Sun C++ 4.2, 5.x and Centerline C++
11703 archive_cmds_need_lc_CXX=yes
11704 no_undefined_flag_CXX=' -zdefs'
11705 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11706 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11707 $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'
11709 hardcode_libdir_flag_spec_CXX='-R$libdir'
11710 hardcode_shlibpath_var_CXX=no
11712 solaris2.[0-5] | solaris2.[0-5].*) ;;
11714 # The compiler driver will combine and reorder linker options,
11715 # but understands `-z linker_flag'.
11716 # Supported since Solaris 2.6 (maybe 2.5.1?)
11717 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11720 link_all_deplibs_CXX=yes
11722 output_verbose_link_cmd='echo'
11724 # Archives containing C++ object files must be created using
11725 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11726 # necessary to make sure instantiated templates are included
11728 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11731 # Green Hills C++ Compiler
11732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11734 # The C++ compiler must be used to create the archive.
11735 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11738 # GNU C++ compiler with Solaris linker
11739 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11740 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11741 if $CC --version | grep -v '^2\.7' > /dev/null; then
11742 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11743 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11744 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11746 # Commands to make compiler produce verbose output that lists
11747 # what "hidden" libraries, object files and flags are used when
11748 # linking a shared library.
11749 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11751 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11753 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11754 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11755 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11757 # Commands to make compiler produce verbose output that lists
11758 # what "hidden" libraries, object files and flags are used when
11759 # linking a shared library.
11760 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11763 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11765 solaris2.[0-5] | solaris2.[0-5].*) ;;
11767 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11775 no_undefined_flag_CXX='${wl}-z,text'
11776 archive_cmds_need_lc_CXX=no
11777 hardcode_shlibpath_var_CXX=no
11778 runpath_var='LD_RUN_PATH'
11780 case $cc_basename in
11782 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11787 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11791 sysv5* | sco3.2v5* | sco5v6*)
11792 # Note: We can NOT use -z defs as we might desire, because we do not
11793 # link with -lc, and that would cause any symbols used from libc to
11794 # always be unresolved, which means just about no library would
11795 # ever link correctly. If we're not using GNU ld we use -z text
11796 # though, which does catch some bad symbols but isn't as heavy-handed
11798 # For security reasons, it is highly recommended that you always
11799 # use absolute paths for naming shared libraries, and exclude the
11800 # DT_RUNPATH tag from executables and libraries. But doing so
11801 # requires that you compile everything twice, which is a pain.
11802 # So that behaviour is only enabled if SCOABSPATH is set to a
11803 # non-empty value in the environment. Most likely only useful for
11804 # creating official distributions of packages.
11805 # This is a hack until libtool officially supports absolute path
11806 # names for shared libraries.
11807 no_undefined_flag_CXX='${wl}-z,text'
11808 allow_undefined_flag_CXX='${wl}-z,nodefs'
11809 archive_cmds_need_lc_CXX=no
11810 hardcode_shlibpath_var_CXX=no
11811 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11812 hardcode_libdir_separator_CXX=':'
11813 link_all_deplibs_CXX=yes
11814 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11815 runpath_var='LD_RUN_PATH'
11817 case $cc_basename in
11819 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11820 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11823 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11824 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11829 case $cc_basename in
11831 # NonStop-UX NCC 3.20
11832 # FIXME: insert proper C++ library support
11836 # FIXME: insert proper C++ library support
11842 # FIXME: insert proper C++ library support
11846 # FIXME: insert proper C++ library support
11850 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11851 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11852 test "$ld_shlibs_CXX" = no && can_build_shared=no
11858 ## There is no encapsulation within the following macros, do not change
11859 ## the running order or otherwise move them around unless you know exactly
11860 ## what you are doing...
11862 cat > conftest.$ac_ext <<EOF
11866 Foo (void) { a = 0; }
11872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; then
11877 # Parse the compiler output and extract the necessary
11878 # objects, libraries and library flags.
11880 # Sentinel used to keep track of whether or not we are before
11881 # the conftest object file.
11882 pre_test_object_deps_done=no
11884 # The `*' in the case matches for architectures that use `case' in
11885 # $output_verbose_cmd can trigger glob expansion during the loop
11886 # eval without this substitution.
11887 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11889 for p in `eval $output_verbose_link_cmd`; do
11893 # Some compilers place space between "-{L,R}" and the path.
11894 # Remove the space.
11895 if test $p = "-L" \
11896 || test $p = "-R"; then
11903 if test "$pre_test_object_deps_done" = no; then
11906 # Internal compiler library paths should come after those
11907 # provided the user. The postdeps already come after the
11908 # user supplied libs so there is no need to process them.
11909 if test -z "$compiler_lib_search_path_CXX"; then
11910 compiler_lib_search_path_CXX="${prev}${p}"
11912 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11915 # The "-l" case would never come before the object being
11916 # linked, so don't bother handling this case.
11919 if test -z "$postdeps_CXX"; then
11920 postdeps_CXX="${prev}${p}"
11922 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11928 # This assumes that the test object file only shows up
11929 # once in the compiler output.
11930 if test "$p" = "conftest.$objext"; then
11931 pre_test_object_deps_done=yes
11935 if test "$pre_test_object_deps_done" = no; then
11936 if test -z "$predep_objects_CXX"; then
11937 predep_objects_CXX="$p"
11939 predep_objects_CXX="$predep_objects_CXX $p"
11942 if test -z "$postdep_objects_CXX"; then
11943 postdep_objects_CXX="$p"
11945 postdep_objects_CXX="$postdep_objects_CXX $p"
11950 *) ;; # Ignore the rest.
11958 echo "libtool.m4: error: problem compiling CXX test program"
11961 $rm -f confest.$objext
11963 # PORTME: override above test on systems where it is broken
11966 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11967 # hack all around it, let's just trust "g++" to DTRT.
11968 predep_objects_CXX=
11969 postdep_objects_CXX=
11974 case `$CC -V 2>&1 | sed 5q` in
11978 # The more standards-conforming stlport4 library is
11979 # incompatible with the Cstd library. Avoid specifying
11980 # it if it's in CXXFLAGS. Ignore libCrun as
11981 # -library=stlport4 depends on it.
11982 case " $CXX $CXXFLAGS " in
11983 *" -library=stlport4 "*)
11984 solaris_use_stlport4=yes
11987 if test "$solaris_use_stlport4" != yes; then
11988 postdeps_CXX='-library=Cstd -library=Crun'
11995 case $cc_basename in
11997 # The more standards-conforming stlport4 library is
11998 # incompatible with the Cstd library. Avoid specifying
11999 # it if it's in CXXFLAGS. Ignore libCrun as
12000 # -library=stlport4 depends on it.
12001 case " $CXX $CXXFLAGS " in
12002 *" -library=stlport4 "*)
12003 solaris_use_stlport4=yes
12007 # Adding this requires a known-good setup of shared libraries for
12008 # Sun compiler versions before 5.6, else PIC objects from an old
12009 # archive will be linked into the output, leading to subtle bugs.
12010 if test "$solaris_use_stlport4" != yes; then
12011 postdeps_CXX='-library=Cstd -library=Crun'
12019 case " $postdeps_CXX " in
12020 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12023 lt_prog_compiler_wl_CXX=
12024 lt_prog_compiler_pic_CXX=
12025 lt_prog_compiler_static_CXX=
12027 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12028 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12030 # C++ specific cases for pic, static, wl, etc.
12031 if test "$GXX" = yes; then
12032 lt_prog_compiler_wl_CXX='-Wl,'
12033 lt_prog_compiler_static_CXX='-static'
12037 # All AIX code is PIC.
12038 if test "$host_cpu" = ia64; then
12039 # AIX 5 now supports IA64 processor
12040 lt_prog_compiler_static_CXX='-Bstatic'
12044 # FIXME: we need at least 68020 code to build shared libraries, but
12045 # adding the `-m68020' flag to GCC prevents building anything better,
12047 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12049 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12050 # PIC is the default for these OSes.
12052 mingw* | cygwin* | os2* | pw32*)
12053 # This hack is so that the source file can tell whether it is being
12054 # built for inclusion in a dll (and should export symbols for example).
12055 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12056 # (--disable-auto-import) libraries
12057 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12059 darwin* | rhapsody*)
12060 # PIC is the default on this platform
12061 # Common symbols not allowed in MH_DYLIB files
12062 lt_prog_compiler_pic_CXX='-fno-common'
12065 # DJGPP does not support shared libraries at all
12066 lt_prog_compiler_pic_CXX=
12069 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12070 # Instead, we relocate shared libraries at runtime.
12073 if test -d /usr/nec; then
12074 lt_prog_compiler_pic_CXX=-Kconform_pic
12078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12079 # not for PA HP-UX.
12084 lt_prog_compiler_pic_CXX='-fPIC'
12089 lt_prog_compiler_pic_CXX='-fPIC'
12095 # All AIX code is PIC.
12096 if test "$host_cpu" = ia64; then
12097 # AIX 5 now supports IA64 processor
12098 lt_prog_compiler_static_CXX='-Bstatic'
12100 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12104 case $cc_basename in
12106 # Green Hills C++ Compiler
12107 # _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"
12112 # PIC is the default on this platform
12113 # Common symbols not allowed in MH_DYLIB files
12114 case $cc_basename in
12116 lt_prog_compiler_pic_CXX='-qnocommon'
12117 lt_prog_compiler_wl_CXX='-Wl,'
12122 case $cc_basename in
12124 lt_prog_compiler_pic_CXX='-KPIC'
12127 # Green Hills C++ Compiler
12128 lt_prog_compiler_pic_CXX='-pic'
12134 freebsd* | dragonfly*)
12135 # FreeBSD uses GNU C++
12137 hpux9* | hpux10* | hpux11*)
12138 case $cc_basename in
12140 lt_prog_compiler_wl_CXX='-Wl,'
12141 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12142 if test "$host_cpu" != ia64; then
12143 lt_prog_compiler_pic_CXX='+Z'
12147 lt_prog_compiler_wl_CXX='-Wl,'
12148 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12154 lt_prog_compiler_pic_CXX='+Z'
12163 # This is c89, which is MS Visual C++ (no shared libs)
12164 # Anyone wants to do a port?
12166 irix5* | irix6* | nonstopux*)
12167 case $cc_basename in
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 lt_prog_compiler_static_CXX='-non_shared'
12171 # CC pic flag -KPIC is the default.
12177 linux* | k*bsd*-gnu)
12178 case $cc_basename in
12181 lt_prog_compiler_wl_CXX='--backend -Wl,'
12182 lt_prog_compiler_pic_CXX='-fPIC'
12186 lt_prog_compiler_wl_CXX='-Wl,'
12187 lt_prog_compiler_pic_CXX='-KPIC'
12188 lt_prog_compiler_static_CXX='-static'
12191 # Portland Group C++ compiler.
12192 lt_prog_compiler_wl_CXX='-Wl,'
12193 lt_prog_compiler_pic_CXX='-fpic'
12194 lt_prog_compiler_static_CXX='-Bstatic'
12198 # Make sure the PIC flag is empty. It appears that all Alpha
12199 # Linux and Compaq Tru64 Unix objects are PIC.
12200 lt_prog_compiler_pic_CXX=
12201 lt_prog_compiler_static_CXX='-non_shared'
12204 case `$CC -V 2>&1 | sed 5q` in
12207 lt_prog_compiler_pic_CXX='-KPIC'
12208 lt_prog_compiler_static_CXX='-Bstatic'
12209 lt_prog_compiler_wl_CXX='-Qoption ld '
12220 case $cc_basename in
12222 lt_prog_compiler_pic_CXX='-W c,exportall'
12230 osf3* | osf4* | osf5*)
12231 case $cc_basename in
12233 lt_prog_compiler_wl_CXX='--backend -Wl,'
12236 # Rational C++ 2.4.1
12237 lt_prog_compiler_pic_CXX='-pic'
12240 # Digital/Compaq C++
12241 lt_prog_compiler_wl_CXX='-Wl,'
12242 # Make sure the PIC flag is empty. It appears that all Alpha
12243 # Linux and Compaq Tru64 Unix objects are PIC.
12244 lt_prog_compiler_pic_CXX=
12245 lt_prog_compiler_static_CXX='-non_shared'
12254 case $cc_basename in
12256 # Sun C++ 4.2, 5.x and Centerline C++
12257 lt_prog_compiler_pic_CXX='-KPIC'
12258 lt_prog_compiler_static_CXX='-Bstatic'
12259 lt_prog_compiler_wl_CXX='-Qoption ld '
12262 # Green Hills C++ Compiler
12263 lt_prog_compiler_pic_CXX='-PIC'
12270 case $cc_basename in
12273 lt_prog_compiler_pic_CXX='-pic'
12274 lt_prog_compiler_static_CXX='-Bstatic'
12278 lt_prog_compiler_pic_CXX='-pic'
12285 case $cc_basename in
12287 # NonStop-UX NCC 3.20
12288 lt_prog_compiler_pic_CXX='-KPIC'
12294 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12295 case $cc_basename in
12297 lt_prog_compiler_wl_CXX='-Wl,'
12298 lt_prog_compiler_pic_CXX='-KPIC'
12299 lt_prog_compiler_static_CXX='-Bstatic'
12306 lt_prog_compiler_can_build_shared_CXX=no
12311 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12312 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12315 # Check to make sure the PIC flag actually works.
12317 if test -n "$lt_prog_compiler_pic_CXX"; then
12319 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12320 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12321 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 lt_prog_compiler_pic_works_CXX=no
12325 ac_outfile=conftest.$ac_objext
12326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12327 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12328 # Insert the option either (1) after the last *FLAGS variable, or
12329 # (2) before a word containing "conftest.", or (3) at the end.
12330 # Note that $ac_compile itself does not contain backslashes and begins
12331 # with a dollar sign (not a hyphen), so the echo should work correctly.
12332 # The option is referenced via a variable to avoid confusing sed.
12333 lt_compile=`echo "$ac_compile" | $SED \
12334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12336 -e 's:$: $lt_compiler_flag:'`
12337 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12338 (eval "$lt_compile" 2>conftest.err)
12340 cat conftest.err >&5
12341 echo "$as_me:__oline__: \$? = $ac_status" >&5
12342 if (exit $ac_status) && test -s "$ac_outfile"; then
12343 # The compiler can only warn and ignore the option if not recognized
12344 # So say no if there are warnings other than the usual output.
12345 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12348 lt_prog_compiler_pic_works_CXX=yes
12354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12355 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12357 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12358 case $lt_prog_compiler_pic_CXX in
12360 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12363 lt_prog_compiler_pic_CXX=
12364 lt_prog_compiler_can_build_shared_CXX=no
12369 # For platforms which do not support PIC, -DPIC is meaningless:
12371 lt_prog_compiler_pic_CXX=
12374 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12379 # Check to make sure the static flag actually works.
12381 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12382 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12383 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12384 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 lt_prog_compiler_static_works_CXX=no
12388 save_LDFLAGS="$LDFLAGS"
12389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12392 # The linker can only warn and ignore the option if not recognized
12393 # So say no if there are warnings
12394 if test -s conftest.err; then
12395 # Append any errors to the config.log.
12396 cat conftest.err 1>&5
12397 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12399 if diff conftest.exp conftest.er2 >/dev/null; then
12400 lt_prog_compiler_static_works_CXX=yes
12403 lt_prog_compiler_static_works_CXX=yes
12407 LDFLAGS="$save_LDFLAGS"
12410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12411 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12413 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12416 lt_prog_compiler_static_CXX=
12420 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12421 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12422 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 lt_cv_prog_compiler_c_o_CXX=no
12426 $rm -r conftest 2>/dev/null
12430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12432 lt_compiler_flag="-o out/conftest2.$ac_objext"
12433 # Insert the option either (1) after the last *FLAGS variable, or
12434 # (2) before a word containing "conftest.", or (3) at the end.
12435 # Note that $ac_compile itself does not contain backslashes and begins
12436 # with a dollar sign (not a hyphen), so the echo should work correctly.
12437 lt_compile=`echo "$ac_compile" | $SED \
12438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12440 -e 's:$: $lt_compiler_flag:'`
12441 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12442 (eval "$lt_compile" 2>out/conftest.err)
12444 cat out/conftest.err >&5
12445 echo "$as_me:__oline__: \$? = $ac_status" >&5
12446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12448 # The compiler can only warn and ignore the option if not recognized
12449 # So say no if there are warnings
12450 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12453 lt_cv_prog_compiler_c_o_CXX=yes
12458 # SGI C++ compiler will create directory out/ii_files/ for
12459 # template instantiation
12460 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12461 $rm out/* && rmdir out
12467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12468 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12471 hard_links="nottested"
12472 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12473 # do not overwrite the value of need_locks provided by the user
12474 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12480 ln conftest.a conftest.b 2>&5 || hard_links=no
12481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12482 { echo "$as_me:$LINENO: result: $hard_links" >&5
12483 echo "${ECHO_T}$hard_links" >&6; }
12484 if test "$hard_links" = no; then
12485 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12493 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12496 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12499 # If we're using GNU nm, then we don't want the "-C" option.
12500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12501 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12502 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'
12504 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'
12508 export_symbols_cmds_CXX="$ltdll_cmds"
12511 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'
12514 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12518 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12519 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12520 test "$ld_shlibs_CXX" = no && can_build_shared=no
12523 # Do we need to explicitly link libc?
12525 case "x$archive_cmds_need_lc_CXX" in
12527 # Assume -lc should be added
12528 archive_cmds_need_lc_CXX=yes
12530 if test "$enable_shared" = yes && test "$GCC" = yes; then
12531 case $archive_cmds_CXX in
12533 # FIXME: we may have to deal with multi-command sequences.
12536 # Test whether the compiler implicitly links with -lc since on some
12537 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12538 # to ld, don't add -lc before -lgcc.
12539 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12540 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545 (eval $ac_compile) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } 2>conftest.err; then
12551 libobjs=conftest.$ac_objext
12553 wl=$lt_prog_compiler_wl_CXX
12554 pic_flag=$lt_prog_compiler_pic_CXX
12560 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12561 allow_undefined_flag_CXX=
12562 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12563 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }
12568 archive_cmds_need_lc_CXX=no
12570 archive_cmds_need_lc_CXX=yes
12572 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12574 cat conftest.err 1>&5
12577 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12578 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12585 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12587 library_names_spec=
12588 libname_spec='lib$name'
12592 postuninstall_cmds=
12596 shlibpath_overrides_runpath=unknown
12598 dynamic_linker="$host_os ld.so"
12599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12601 need_lib_prefix=unknown
12602 hardcode_into_libs=no
12604 # when you set need_version to no, make sure it does not cause -set_version
12605 # flags to be left without arguments
12606 need_version=unknown
12611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12612 shlibpath_var=LIBPATH
12614 # AIX 3 has no versioning support, so we append a major version to the name.
12615 soname_spec='${libname}${release}${shared_ext}$major'
12622 hardcode_into_libs=yes
12623 if test "$host_cpu" = ia64; then
12624 # AIX 5 supports IA64
12625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12626 shlibpath_var=LD_LIBRARY_PATH
12628 # With GCC up to 2.95.x, collect2 would create an import file
12629 # for dependence libraries. The import file would start with
12630 # the line `#! .'. This would cause the generated library to
12631 # depend on `.', always an invalid library. This was fixed in
12632 # development snapshots of GCC prior to 3.0.
12634 aix4 | aix4.[01] | aix4.[01].*)
12635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12637 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12640 can_build_shared=no
12644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12645 # soname into executable. Probably we can add versioning support to
12646 # collect2, so additional links can be useful in future.
12647 if test "$aix_use_runtimelinking" = yes; then
12648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12649 # instead of lib<name>.a to let people know that these are not
12650 # typical AIX shared libraries.
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12653 # We preserve .a as extension for shared libraries through AIX4.2
12654 # and later when we are not doing run time linking.
12655 library_names_spec='${libname}${release}.a $libname.a'
12656 soname_spec='${libname}${release}${shared_ext}$major'
12658 shlibpath_var=LIBPATH
12663 library_names_spec='$libname.ixlibrary $libname.a'
12664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12665 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'
12669 library_names_spec='${libname}${shared_ext}'
12670 dynamic_linker="$host_os ld.so"
12671 shlibpath_var=LIBRARY_PATH
12677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12678 soname_spec='${libname}${release}${shared_ext}$major'
12679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12680 shlibpath_var=LD_LIBRARY_PATH
12681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12683 # the default ld.so.conf also contains /usr/contrib/lib and
12684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12685 # libtool to hard-code these into programs
12688 cygwin* | mingw* | pw32*)
12689 version_type=windows
12694 case $GCC,$host_os in
12695 yes,cygwin* | yes,mingw* | yes,pw32*)
12696 library_names_spec='$libname.dll.a'
12697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12698 postinstall_cmds='base_file=`basename \${file}`~
12699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12700 dldir=$destdir/`dirname \$dlpath`~
12701 test -d \$dldir || mkdir -p \$dldir~
12702 $install_prog $dir/$dlname \$dldir/$dlname~
12703 chmod a+x \$dldir/$dlname'
12704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12705 dlpath=$dir/\$dldll~
12707 shlibpath_overrides_runpath=yes
12711 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12716 # MinGW DLLs use traditional 'lib' prefix
12717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12719 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12720 # It is most probably a Windows format PATH printed by
12721 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12722 # path with ; separators, and with drive letters. We can handle the
12723 # drive letters (cygwin fileutils understands them), so leave them,
12724 # especially as we might pass files found there to a mingw objdump,
12725 # which wouldn't understand a cygwinified path. Ahh.
12726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12732 # pw32 DLLs use 'pw' prefix rather than 'lib'
12733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12742 dynamic_linker='Win32 ld.exe'
12743 # FIXME: first we should search . and the directory the executable is in
12747 darwin* | rhapsody*)
12748 dynamic_linker="$host_os dyld"
12749 version_type=darwin
12752 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12753 soname_spec='${libname}${release}${major}$shared_ext'
12754 shlibpath_overrides_runpath=yes
12755 shlibpath_var=DYLD_LIBRARY_PATH
12756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12766 soname_spec='${libname}${release}${shared_ext}$major'
12767 shlibpath_var=LD_LIBRARY_PATH
12774 freebsd* | dragonfly*)
12775 # DragonFly does not have aout. When/if they implement a new
12776 # versioning mechanism, adjust this.
12777 if test -x /usr/bin/objformat; then
12778 objformat=`/usr/bin/objformat`
12781 freebsd[123]*) objformat=aout ;;
12782 *) objformat=elf ;;
12785 version_type=freebsd-$objformat
12786 case $version_type in
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12797 shlibpath_var=LD_LIBRARY_PATH
12800 shlibpath_overrides_runpath=yes
12802 freebsd3.[01]* | freebsdelf3.[01]*)
12803 shlibpath_overrides_runpath=yes
12804 hardcode_into_libs=yes
12806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12808 shlibpath_overrides_runpath=no
12809 hardcode_into_libs=yes
12811 *) # from 4.6 on, and DragonFly
12812 shlibpath_overrides_runpath=yes
12813 hardcode_into_libs=yes
12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12823 soname_spec='${libname}${release}${shared_ext}$major'
12824 shlibpath_var=LD_LIBRARY_PATH
12825 hardcode_into_libs=yes
12828 hpux9* | hpux10* | hpux11*)
12829 # Give a soname corresponding to the major version so that dld.sl refuses to
12830 # link against other versions.
12837 hardcode_into_libs=yes
12838 dynamic_linker="$host_os dld.so"
12839 shlibpath_var=LD_LIBRARY_PATH
12840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 if test "X$HPUX_IA64_MODE" = X32; then
12844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12852 hardcode_into_libs=yes
12853 dynamic_linker="$host_os dld.sl"
12854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12857 soname_spec='${libname}${release}${shared_ext}$major'
12858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12863 dynamic_linker="$host_os dld.sl"
12864 shlibpath_var=SHLIB_PATH
12865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12867 soname_spec='${libname}${release}${shared_ext}$major'
12870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12871 postinstall_cmds='chmod 555 $lib'
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12881 shlibpath_var=LD_LIBRARY_PATH
12882 shlibpath_overrides_runpath=no
12883 hardcode_into_libs=yes
12886 irix5* | irix6* | nonstopux*)
12888 nonstopux*) version_type=nonstopux ;;
12890 if test "$lt_cv_prog_gnu_ld" = yes; then
12898 soname_spec='${libname}${release}${shared_ext}$major'
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12901 irix5* | nonstopux*)
12902 libsuff= shlibsuff=
12905 case $LD in # libtool.m4 will add one of these switches to LD
12906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12907 libsuff= shlibsuff= libmagic=32-bit;;
12908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12909 libsuff=32 shlibsuff=N32 libmagic=N32;;
12910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12912 *) libsuff= shlibsuff= libmagic=never-match;;
12916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12917 shlibpath_overrides_runpath=no
12918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12920 hardcode_into_libs=yes
12923 # No shared lib support for Linux oldld, aout, or coff.
12924 linux*oldld* | linux*aout* | linux*coff*)
12928 # This must be Linux ELF.
12929 linux* | k*bsd*-gnu)
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=no
12938 # This implies no fast_install, which is unacceptable.
12939 # Some rework will be needed to allow for fast_install
12940 # before this can be enabled.
12941 hardcode_into_libs=yes
12943 # find out which ABI we are using
12945 case "$host_cpu" in
12946 x86_64*|s390x*|powerpc64*)
12947 echo '#line __oline__ "configure"' > conftest.$ac_ext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; then
12953 case `/usr/bin/file conftest.$ac_objext` in
12956 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12964 # Append ld.so.conf contents to the search path
12965 if test -f /etc/ld.so.conf; then
12966 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' ' '`
12967 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12970 # We used to test for /lib/ld.so.1 and disable shared libraries on
12971 # powerpc, because MkLinux only supported shared libraries with the
12972 # GNU dynamic linker. Since this was broken with cross compilers,
12973 # most powerpc-linux boxes support dynamic linking these days and
12974 # people can always --disable-shared, the test was removed, and we
12975 # assume the GNU/Linux dynamic linker is in use.
12976 dynamic_linker='GNU/Linux ld.so'
12983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12986 dynamic_linker='NetBSD (a.out) ld.so'
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 dynamic_linker='NetBSD ld.elf_so'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 shlibpath_overrides_runpath=yes
12994 hardcode_into_libs=yes
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 shlibpath_overrides_runpath=yes
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 shlibpath_overrides_runpath=yes
13016 sys_lib_dlsearch_path_spec="/usr/lib"
13018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13021 *) need_version=no ;;
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13028 openbsd2.[89] | openbsd2.[89].*)
13029 shlibpath_overrides_runpath=no
13032 shlibpath_overrides_runpath=yes
13036 shlibpath_overrides_runpath=yes
13041 libname_spec='$name'
13044 library_names_spec='$libname${shared_ext} $libname.a'
13045 dynamic_linker='OS/2 ld.exe'
13046 shlibpath_var=LIBPATH
13049 osf3* | osf4* | osf5*)
13053 soname_spec='${libname}${release}${shared_ext}$major'
13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069 soname_spec='${libname}${release}${shared_ext}$major'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 shlibpath_overrides_runpath=yes
13072 hardcode_into_libs=yes
13073 # ldd complains unless libraries are executable
13074 postinstall_cmds='chmod +x $lib'
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 shlibpath_overrides_runpath=yes
13083 if test "$with_gnu_ld" = yes; then
13091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13092 soname_spec='${libname}${release}${shared_ext}$major'
13093 shlibpath_var=LD_LIBRARY_PATH
13094 case $host_vendor in
13096 shlibpath_overrides_runpath=no
13098 export_dynamic_flag_spec='${wl}-Blargedynsym'
13099 runpath_var=LD_RUN_PATH
13107 shlibpath_overrides_runpath=no
13108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13114 if test -d /usr/nec ;then
13116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13117 soname_spec='$libname${shared_ext}.$major'
13118 shlibpath_var=LD_LIBRARY_PATH
13122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13123 version_type=freebsd-elf
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 hardcode_into_libs=yes
13130 if test "$with_gnu_ld" = yes; then
13131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13132 shlibpath_overrides_runpath=no
13134 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13135 shlibpath_overrides_runpath=yes
13138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13142 sys_lib_dlsearch_path_spec='/usr/lib'
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148 soname_spec='${libname}${release}${shared_ext}$major'
13149 shlibpath_var=LD_LIBRARY_PATH
13156 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13157 echo "${ECHO_T}$dynamic_linker" >&6; }
13158 test "$dynamic_linker" = no && can_build_shared=no
13160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13161 if test "$GCC" = yes; then
13162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13165 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13167 hardcode_action_CXX=
13168 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13169 test -n "$runpath_var_CXX" || \
13170 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13172 # We can hardcode non-existant directories.
13173 if test "$hardcode_direct_CXX" != no &&
13174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13175 # have to relink, otherwise we might link with an installed library
13176 # when we should be linking with a yet-to-be-installed one
13177 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13178 test "$hardcode_minus_L_CXX" != no; then
13179 # Linking always hardcodes the temporary library directory.
13180 hardcode_action_CXX=relink
13182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13183 hardcode_action_CXX=immediate
13186 # We cannot hardcode anything, or else we can only hardcode existing
13188 hardcode_action_CXX=unsupported
13190 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13191 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13193 if test "$hardcode_action_CXX" = relink; then
13194 # Fast installation is not supported
13195 enable_fast_install=no
13196 elif test "$shlibpath_overrides_runpath" = yes ||
13197 test "$enable_shared" = no; then
13198 # Fast installation is not necessary
13199 enable_fast_install=needless
13203 # The else clause should only fire when bootstrapping the
13204 # libtool distribution, otherwise you forgot to ship ltmain.sh
13205 # with your package, and you will get complaints that there are
13206 # no rules to generate ltmain.sh.
13207 if test -f "$ltmain"; then
13208 # See if we are running on zsh, and set the options which allow our commands through
13209 # without removal of \ escapes.
13210 if test -n "${ZSH_VERSION+set}" ; then
13211 setopt NO_GLOB_SUBST
13213 # Now quote all the things that may contain metacharacters while being
13214 # careful not to overquote the AC_SUBSTed values. We take copies of the
13215 # variables and quote the copies for generation of the libtool script.
13216 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13218 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13219 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13220 deplibs_check_method reload_flag reload_cmds need_locks \
13221 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13222 lt_cv_sys_global_symbol_to_c_name_address \
13223 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13224 old_postinstall_cmds old_postuninstall_cmds \
13228 lt_prog_compiler_wl_CXX \
13229 lt_prog_compiler_pic_CXX \
13230 lt_prog_compiler_static_CXX \
13231 lt_prog_compiler_no_builtin_flag_CXX \
13232 export_dynamic_flag_spec_CXX \
13233 thread_safe_flag_spec_CXX \
13234 whole_archive_flag_spec_CXX \
13235 enable_shared_with_static_runtimes_CXX \
13236 old_archive_cmds_CXX \
13237 old_archive_from_new_cmds_CXX \
13238 predep_objects_CXX \
13239 postdep_objects_CXX \
13242 compiler_lib_search_path_CXX \
13244 archive_expsym_cmds_CXX \
13245 postinstall_cmds_CXX \
13246 postuninstall_cmds_CXX \
13247 old_archive_from_expsyms_cmds_CXX \
13248 allow_undefined_flag_CXX \
13249 no_undefined_flag_CXX \
13250 export_symbols_cmds_CXX \
13251 hardcode_libdir_flag_spec_CXX \
13252 hardcode_libdir_flag_spec_ld_CXX \
13253 hardcode_libdir_separator_CXX \
13254 hardcode_automatic_CXX \
13256 module_expsym_cmds_CXX \
13257 lt_cv_prog_compiler_c_o_CXX \
13258 fix_srcfile_path_CXX \
13259 exclude_expsyms_CXX \
13260 include_expsyms_CXX; do
13263 old_archive_cmds_CXX | \
13264 old_archive_from_new_cmds_CXX | \
13265 archive_cmds_CXX | \
13266 archive_expsym_cmds_CXX | \
13267 module_cmds_CXX | \
13268 module_expsym_cmds_CXX | \
13269 old_archive_from_expsyms_cmds_CXX | \
13270 export_symbols_cmds_CXX | \
13271 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13272 postinstall_cmds | postuninstall_cmds | \
13273 old_postinstall_cmds | old_postuninstall_cmds | \
13274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13275 # Double-quote double-evaled strings.
13276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13285 *'\$0 --fallback-echo"')
13286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13292 cat <<__EOF__ >> "$cfgfile"
13293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13297 # Shell to use when invoking shell scripts.
13300 # Whether or not to build shared libraries.
13301 build_libtool_libs=$enable_shared
13303 # Whether or not to build static libraries.
13304 build_old_libs=$enable_static
13306 # Whether or not to add -lc for building shared libraries.
13307 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13309 # Whether or not to disallow shared libs when runtime libs are static
13310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13312 # Whether or not to optimize for fast installation.
13313 fast_install=$enable_fast_install
13316 host_alias=$host_alias
13320 # The build system.
13321 build_alias=$build_alias
13325 # An echo program that does not interpret backslashes.
13330 AR_FLAGS=$lt_AR_FLAGS
13335 # LTCC compiler flags.
13336 LTCFLAGS=$lt_LTCFLAGS
13338 # A language-specific compiler.
13339 CC=$lt_compiler_CXX
13341 # Is the compiler the GNU C compiler?
13344 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13345 gcc_ver=\`gcc -dumpversion\`
13350 # The linker used to build libraries.
13353 # Whether we need hard or soft links.
13356 # A BSD-compatible nm program.
13359 # A symbol stripping program
13362 # Used to examine libraries when file_magic_cmd begins "file"
13363 MAGIC_CMD=$MAGIC_CMD
13365 # Used on cygwin: DLL creation program.
13368 # Used on cygwin: object dumper.
13371 # Used on cygwin: assembler.
13374 # The name of the directory that contains temporary libtool files.
13377 # How to create reloadable object files.
13378 reload_flag=$lt_reload_flag
13379 reload_cmds=$lt_reload_cmds
13381 # How to pass a linker flag through the compiler.
13382 wl=$lt_lt_prog_compiler_wl_CXX
13384 # Object file suffix (normally "o").
13385 objext="$ac_objext"
13387 # Old archive suffix (normally "a").
13390 # Shared library suffix (normally ".so").
13391 shrext_cmds='$shrext_cmds'
13393 # Executable file suffix (normally "").
13396 # Additional compiler flags for building library objects.
13397 pic_flag=$lt_lt_prog_compiler_pic_CXX
13400 # What is the maximum length of a command?
13401 max_cmd_len=$lt_cv_sys_max_cmd_len
13403 # Does compiler simultaneously support -c and -o options?
13404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13406 # Must we lock files when doing compilation?
13407 need_locks=$lt_need_locks
13409 # Do we need the lib prefix for modules?
13410 need_lib_prefix=$need_lib_prefix
13412 # Do we need a version for libraries?
13413 need_version=$need_version
13415 # Whether dlopen is supported.
13416 dlopen_support=$enable_dlopen
13418 # Whether dlopen of programs is supported.
13419 dlopen_self=$enable_dlopen_self
13421 # Whether dlopen of statically linked programs is supported.
13422 dlopen_self_static=$enable_dlopen_self_static
13424 # Compiler flag to prevent dynamic linking.
13425 link_static_flag=$lt_lt_prog_compiler_static_CXX
13427 # Compiler flag to turn off builtin functions.
13428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13430 # Compiler flag to allow reflexive dlopens.
13431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13433 # Compiler flag to generate shared objects directly from archives.
13434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13436 # Compiler flag to generate thread-safe objects.
13437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13439 # Library versioning type.
13440 version_type=$version_type
13442 # Format of library name prefix.
13443 libname_spec=$lt_libname_spec
13445 # List of archive names. First name is the real one, the rest are links.
13446 # The last name is the one that the linker finds with -lNAME.
13447 library_names_spec=$lt_library_names_spec
13449 # The coded name of the library, if different from the real name.
13450 soname_spec=$lt_soname_spec
13452 # Commands used to build and install an old-style archive.
13454 old_archive_cmds=$lt_old_archive_cmds_CXX
13455 old_postinstall_cmds=$lt_old_postinstall_cmds
13456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13458 # Create an old-style archive from a shared archive.
13459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13461 # Create a temporary old-style archive to link instead of a shared archive.
13462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13464 # Commands used to build and install a shared archive.
13465 archive_cmds=$lt_archive_cmds_CXX
13466 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13467 postinstall_cmds=$lt_postinstall_cmds
13468 postuninstall_cmds=$lt_postuninstall_cmds
13470 # Commands used to build a loadable module (assumed same as above if empty)
13471 module_cmds=$lt_module_cmds_CXX
13472 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13474 # Commands to strip libraries.
13475 old_striplib=$lt_old_striplib
13476 striplib=$lt_striplib
13478 # Dependencies to place before the objects being linked to create a
13480 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13482 # Dependencies to place after the objects being linked to create a
13484 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13486 # Dependencies to place before the objects being linked to create a
13488 predeps=$lt_predeps_CXX
13490 # Dependencies to place after the objects being linked to create a
13492 postdeps=$lt_postdeps_CXX
13494 # The library search path used internally by the compiler when linking
13495 # a shared library.
13496 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"\`
13498 # Method to check whether dependent libraries are shared objects.
13499 deplibs_check_method=$lt_deplibs_check_method
13501 # Command to use when deplibs_check_method == file_magic.
13502 file_magic_cmd=$lt_file_magic_cmd
13504 # Flag that allows shared libraries with undefined symbols to be built.
13505 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13507 # Flag that forces no undefined symbols.
13508 no_undefined_flag=$lt_no_undefined_flag_CXX
13510 # Commands used to finish a libtool library installation in a directory.
13511 finish_cmds=$lt_finish_cmds
13513 # Same as above, but a single script fragment to be evaled but not shown.
13514 finish_eval=$lt_finish_eval
13516 # Take the output of nm and produce a listing of raw symbols and C names.
13517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13519 # Transform the output of nm in a proper C declaration
13520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13522 # Transform the output of nm in a C name address pair
13523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13525 # This is the shared library runtime path variable.
13526 runpath_var=$runpath_var
13528 # This is the shared library path variable.
13529 shlibpath_var=$shlibpath_var
13531 # Is shlibpath searched before the hard-coded library search path?
13532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13534 # How to hardcode a shared library path into an executable.
13535 hardcode_action=$hardcode_action_CXX
13537 # Whether we should hardcode library paths into libraries.
13538 hardcode_into_libs=$hardcode_into_libs
13540 # Flag to hardcode \$libdir into a binary during linking.
13541 # This must work even if \$libdir does not exist.
13542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13544 # If ld is used when linking, flag to hardcode \$libdir into
13545 # a binary during linking. This must work even if \$libdir does
13547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13549 # Whether we need a single -rpath flag with a separated argument.
13550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13552 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13553 # resulting binary.
13554 hardcode_direct=$hardcode_direct_CXX
13556 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13557 # resulting binary.
13558 hardcode_minus_L=$hardcode_minus_L_CXX
13560 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13561 # the resulting binary.
13562 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13564 # Set to yes if building a shared library automatically hardcodes DIR into the library
13565 # and all subsequent libraries and executables linked against it.
13566 hardcode_automatic=$hardcode_automatic_CXX
13568 # Variables whose values should be saved in libtool wrapper scripts and
13569 # restored at relink time.
13570 variables_saved_for_relink="$variables_saved_for_relink"
13572 # Whether libtool must link a program against all its dependency libraries.
13573 link_all_deplibs=$link_all_deplibs_CXX
13575 # Compile-time system search path for libraries
13576 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"\`
13578 # Run-time system search path for libraries
13579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13581 # Fix the shell variable \$srcfile for the compiler.
13582 fix_srcfile_path=$lt_fix_srcfile_path
13584 # Set to yes if exported symbols are required.
13585 always_export_symbols=$always_export_symbols_CXX
13587 # The commands to list exported symbols.
13588 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13590 # The commands to extract the exported symbol list from a shared archive.
13591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13593 # Symbols that should not be listed in the preloaded symbols.
13594 exclude_expsyms=$lt_exclude_expsyms_CXX
13596 # Symbols that must always be exported.
13597 include_expsyms=$lt_include_expsyms_CXX
13599 # ### END LIBTOOL TAG CONFIG: $tagname
13605 # If there is no Makefile yet, we rely on a make rule to execute
13606 # `config.status --recheck' to rerun these tests and create the
13607 # libtool script then.
13608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13609 if test -f "$ltmain_in"; then
13610 test -f Makefile && make "$ltmain"
13616 ac_cpp='$CPP $CPPFLAGS'
13617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13625 with_gnu_ldcxx=$with_gnu_ld
13626 with_gnu_ld=$lt_save_with_gnu_ld
13627 lt_cv_path_LDCXX=$lt_cv_path_LD
13628 lt_cv_path_LD=$lt_save_path_LD
13629 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13630 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13638 if test -n "$F77" && test "X$F77" != "Xno"; then
13641 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13642 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13643 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13646 archive_cmds_need_lc_F77=no
13647 allow_undefined_flag_F77=
13648 always_export_symbols_F77=no
13649 archive_expsym_cmds_F77=
13650 export_dynamic_flag_spec_F77=
13651 hardcode_direct_F77=no
13652 hardcode_libdir_flag_spec_F77=
13653 hardcode_libdir_flag_spec_ld_F77=
13654 hardcode_libdir_separator_F77=
13655 hardcode_minus_L_F77=no
13656 hardcode_automatic_F77=no
13658 module_expsym_cmds_F77=
13659 link_all_deplibs_F77=unknown
13660 old_archive_cmds_F77=$old_archive_cmds
13661 no_undefined_flag_F77=
13662 whole_archive_flag_spec_F77=
13663 enable_shared_with_static_runtimes_F77=no
13665 # Source file extension for f77 test sources.
13668 # Object file extension for compiled f77 test sources.
13672 # Code to be used in simple compile tests
13673 lt_simple_compile_test_code="\
13679 # Code to be used in simple link tests
13680 lt_simple_link_test_code="\
13685 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13687 # If no C compiler was specified, use CC.
13690 # If no C compiler flags were specified, use CFLAGS.
13691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13693 # Allow CC to be a program name with arguments.
13697 # save warnings/boilerplate of simple test code
13698 ac_outfile=conftest.$ac_objext
13699 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13700 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13701 _lt_compiler_boilerplate=`cat conftest.err`
13704 ac_outfile=conftest.$ac_objext
13705 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13706 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13707 _lt_linker_boilerplate=`cat conftest.err`
13711 # Allow CC to be a program name with arguments.
13716 for cc_temp in $compiler""; do
13718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13724 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13727 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13728 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13729 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13730 echo "${ECHO_T}$can_build_shared" >&6; }
13732 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13733 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13734 test "$can_build_shared" = "no" && enable_shared=no
13736 # On AIX, shared libraries and static libraries use the same namespace, and
13737 # are all built from PIC.
13740 test "$enable_shared" = yes && enable_static=no
13741 if test -n "$RANLIB"; then
13742 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13743 postinstall_cmds='$RANLIB $lib'
13747 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13748 test "$enable_shared" = yes && enable_static=no
13752 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13753 echo "${ECHO_T}$enable_shared" >&6; }
13755 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13756 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13757 # Make sure either enable_shared or enable_static is yes.
13758 test "$enable_shared" = yes || enable_static=yes
13759 { echo "$as_me:$LINENO: result: $enable_static" >&5
13760 echo "${ECHO_T}$enable_static" >&6; }
13765 lt_prog_compiler_wl_F77=
13766 lt_prog_compiler_pic_F77=
13767 lt_prog_compiler_static_F77=
13769 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13770 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13772 if test "$GCC" = yes; then
13773 lt_prog_compiler_wl_F77='-Wl,'
13774 lt_prog_compiler_static_F77='-static'
13778 # All AIX code is PIC.
13779 if test "$host_cpu" = ia64; then
13780 # AIX 5 now supports IA64 processor
13781 lt_prog_compiler_static_F77='-Bstatic'
13786 # FIXME: we need at least 68020 code to build shared libraries, but
13787 # adding the `-m68020' flag to GCC prevents building anything better,
13789 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13792 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13793 # PIC is the default for these OSes.
13796 mingw* | cygwin* | pw32* | os2*)
13797 # This hack is so that the source file can tell whether it is being
13798 # built for inclusion in a dll (and should export symbols for example).
13799 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13800 # (--disable-auto-import) libraries
13801 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13804 darwin* | rhapsody*)
13805 # PIC is the default on this platform
13806 # Common symbols not allowed in MH_DYLIB files
13807 lt_prog_compiler_pic_F77='-fno-common'
13811 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13812 # Instead, we relocate shared libraries at runtime.
13816 # Just because we use GCC doesn't mean we suddenly get shared libraries
13817 # on systems that don't support them.
13818 lt_prog_compiler_can_build_shared_F77=no
13823 if test -d /usr/nec; then
13824 lt_prog_compiler_pic_F77=-Kconform_pic
13829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13830 # not for PA HP-UX.
13836 lt_prog_compiler_pic_F77='-fPIC'
13842 lt_prog_compiler_pic_F77='-fPIC'
13846 # PORTME Check for flag to pass linker flags through the system compiler.
13849 lt_prog_compiler_wl_F77='-Wl,'
13850 if test "$host_cpu" = ia64; then
13851 # AIX 5 now supports IA64 processor
13852 lt_prog_compiler_static_F77='-Bstatic'
13854 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13858 # PIC is the default on this platform
13859 # Common symbols not allowed in MH_DYLIB files
13860 case $cc_basename in
13862 lt_prog_compiler_pic_F77='-qnocommon'
13863 lt_prog_compiler_wl_F77='-Wl,'
13868 mingw* | cygwin* | pw32* | os2*)
13869 # This hack is so that the source file can tell whether it is being
13870 # built for inclusion in a dll (and should export symbols for example).
13871 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13874 hpux9* | hpux10* | hpux11*)
13875 lt_prog_compiler_wl_F77='-Wl,'
13876 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13877 # not for PA HP-UX.
13883 lt_prog_compiler_pic_F77='+Z'
13886 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13887 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13890 irix5* | irix6* | nonstopux*)
13891 lt_prog_compiler_wl_F77='-Wl,'
13892 # PIC (with -KPIC) is the default.
13893 lt_prog_compiler_static_F77='-non_shared'
13897 lt_prog_compiler_pic_F77='-KPIC'
13898 lt_prog_compiler_static_F77='-Bstatic'
13901 linux* | k*bsd*-gnu)
13902 case $cc_basename in
13904 lt_prog_compiler_wl_F77='-Wl,'
13905 lt_prog_compiler_pic_F77='-KPIC'
13906 lt_prog_compiler_static_F77='-static'
13908 pgcc* | pgf77* | pgf90* | pgf95*)
13909 # Portland Group compilers (*not* the Pentium gcc compiler,
13910 # which looks to be a dead project)
13911 lt_prog_compiler_wl_F77='-Wl,'
13912 lt_prog_compiler_pic_F77='-fpic'
13913 lt_prog_compiler_static_F77='-Bstatic'
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 # All Alpha code is PIC.
13918 lt_prog_compiler_static_F77='-non_shared'
13921 case `$CC -V 2>&1 | sed 5q` in
13924 lt_prog_compiler_pic_F77='-KPIC'
13925 lt_prog_compiler_static_F77='-Bstatic'
13926 lt_prog_compiler_wl_F77='-Wl,'
13929 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13930 lt_prog_compiler_pic_F77='-KPIC'
13931 lt_prog_compiler_static_F77='-Bstatic'
13932 lt_prog_compiler_wl_F77=''
13939 osf3* | osf4* | osf5*)
13940 lt_prog_compiler_wl_F77='-Wl,'
13941 # All OSF/1 code is PIC.
13942 lt_prog_compiler_static_F77='-non_shared'
13946 lt_prog_compiler_static_F77='-non_shared'
13950 lt_prog_compiler_pic_F77='-KPIC'
13951 lt_prog_compiler_static_F77='-Bstatic'
13952 case $cc_basename in
13953 f77* | f90* | f95*)
13954 lt_prog_compiler_wl_F77='-Qoption ld ';;
13956 lt_prog_compiler_wl_F77='-Wl,';;
13961 lt_prog_compiler_wl_F77='-Qoption ld '
13962 lt_prog_compiler_pic_F77='-PIC'
13963 lt_prog_compiler_static_F77='-Bstatic'
13966 sysv4 | sysv4.2uw2* | sysv4.3*)
13967 lt_prog_compiler_wl_F77='-Wl,'
13968 lt_prog_compiler_pic_F77='-KPIC'
13969 lt_prog_compiler_static_F77='-Bstatic'
13973 if test -d /usr/nec ;then
13974 lt_prog_compiler_pic_F77='-Kconform_pic'
13975 lt_prog_compiler_static_F77='-Bstatic'
13979 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13980 lt_prog_compiler_wl_F77='-Wl,'
13981 lt_prog_compiler_pic_F77='-KPIC'
13982 lt_prog_compiler_static_F77='-Bstatic'
13986 lt_prog_compiler_wl_F77='-Wl,'
13987 lt_prog_compiler_can_build_shared_F77=no
13991 lt_prog_compiler_pic_F77='-pic'
13992 lt_prog_compiler_static_F77='-Bstatic'
13996 lt_prog_compiler_can_build_shared_F77=no
14001 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14002 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14005 # Check to make sure the PIC flag actually works.
14007 if test -n "$lt_prog_compiler_pic_F77"; then
14009 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14010 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14011 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 lt_prog_compiler_pic_works_F77=no
14015 ac_outfile=conftest.$ac_objext
14016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14017 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14018 # Insert the option either (1) after the last *FLAGS variable, or
14019 # (2) before a word containing "conftest.", or (3) at the end.
14020 # Note that $ac_compile itself does not contain backslashes and begins
14021 # with a dollar sign (not a hyphen), so the echo should work correctly.
14022 # The option is referenced via a variable to avoid confusing sed.
14023 lt_compile=`echo "$ac_compile" | $SED \
14024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14026 -e 's:$: $lt_compiler_flag:'`
14027 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14028 (eval "$lt_compile" 2>conftest.err)
14030 cat conftest.err >&5
14031 echo "$as_me:__oline__: \$? = $ac_status" >&5
14032 if (exit $ac_status) && test -s "$ac_outfile"; then
14033 # The compiler can only warn and ignore the option if not recognized
14034 # So say no if there are warnings other than the usual output.
14035 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14037 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14038 lt_prog_compiler_pic_works_F77=yes
14044 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14045 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14047 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14048 case $lt_prog_compiler_pic_F77 in
14050 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14053 lt_prog_compiler_pic_F77=
14054 lt_prog_compiler_can_build_shared_F77=no
14059 # For platforms which do not support PIC, -DPIC is meaningless:
14061 lt_prog_compiler_pic_F77=
14064 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14069 # Check to make sure the static flag actually works.
14071 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14072 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14073 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14074 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 lt_prog_compiler_static_works_F77=no
14078 save_LDFLAGS="$LDFLAGS"
14079 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14080 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14081 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14082 # The linker can only warn and ignore the option if not recognized
14083 # So say no if there are warnings
14084 if test -s conftest.err; then
14085 # Append any errors to the config.log.
14086 cat conftest.err 1>&5
14087 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14089 if diff conftest.exp conftest.er2 >/dev/null; then
14090 lt_prog_compiler_static_works_F77=yes
14093 lt_prog_compiler_static_works_F77=yes
14097 LDFLAGS="$save_LDFLAGS"
14100 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14101 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14103 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14106 lt_prog_compiler_static_F77=
14110 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14111 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14112 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 lt_cv_prog_compiler_c_o_F77=no
14116 $rm -r conftest 2>/dev/null
14120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14122 lt_compiler_flag="-o out/conftest2.$ac_objext"
14123 # Insert the option either (1) after the last *FLAGS variable, or
14124 # (2) before a word containing "conftest.", or (3) at the end.
14125 # Note that $ac_compile itself does not contain backslashes and begins
14126 # with a dollar sign (not a hyphen), so the echo should work correctly.
14127 lt_compile=`echo "$ac_compile" | $SED \
14128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14130 -e 's:$: $lt_compiler_flag:'`
14131 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14132 (eval "$lt_compile" 2>out/conftest.err)
14134 cat out/conftest.err >&5
14135 echo "$as_me:__oline__: \$? = $ac_status" >&5
14136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14138 # The compiler can only warn and ignore the option if not recognized
14139 # So say no if there are warnings
14140 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14143 lt_cv_prog_compiler_c_o_F77=yes
14148 # SGI C++ compiler will create directory out/ii_files/ for
14149 # template instantiation
14150 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14151 $rm out/* && rmdir out
14157 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14158 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14161 hard_links="nottested"
14162 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14163 # do not overwrite the value of need_locks provided by the user
14164 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14165 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14170 ln conftest.a conftest.b 2>&5 || hard_links=no
14171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14172 { echo "$as_me:$LINENO: result: $hard_links" >&5
14173 echo "${ECHO_T}$hard_links" >&6; }
14174 if test "$hard_links" = no; then
14175 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14176 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14183 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14184 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14187 allow_undefined_flag_F77=
14188 enable_shared_with_static_runtimes_F77=no
14190 archive_expsym_cmds_F77=
14191 old_archive_From_new_cmds_F77=
14192 old_archive_from_expsyms_cmds_F77=
14193 export_dynamic_flag_spec_F77=
14194 whole_archive_flag_spec_F77=
14195 thread_safe_flag_spec_F77=
14196 hardcode_libdir_flag_spec_F77=
14197 hardcode_libdir_flag_spec_ld_F77=
14198 hardcode_libdir_separator_F77=
14199 hardcode_direct_F77=no
14200 hardcode_minus_L_F77=no
14201 hardcode_shlibpath_var_F77=unsupported
14202 link_all_deplibs_F77=unknown
14203 hardcode_automatic_F77=no
14205 module_expsym_cmds_F77=
14206 always_export_symbols_F77=no
14207 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14208 # include_expsyms should be a list of space-separated symbols to be *always*
14209 # included in the symbol list
14210 include_expsyms_F77=
14211 # exclude_expsyms can be an extended regexp of symbols to exclude
14212 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14213 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14214 # as well as any symbol that contains `d'.
14215 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14216 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14217 # platforms (ab)use it in PIC code, but their linkers get confused if
14218 # the symbol is explicitly referenced. Since portable code cannot
14219 # rely on this symbol name, it's probably fine to never include it in
14220 # preloaded symbol tables.
14221 extract_expsyms_cmds=
14222 # Just being paranoid about ensuring that cc_basename is set.
14223 for cc_temp in $compiler""; do
14225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14234 cygwin* | mingw* | pw32*)
14235 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14236 # When not using gcc, we currently assume that we are using
14237 # Microsoft Visual C++.
14238 if test "$GCC" != yes; then
14243 # we just hope/assume this is gcc and not c89 (= MSVC++)
14252 if test "$with_gnu_ld" = yes; then
14253 # If archive_cmds runs LD, not CC, wlarc should be empty
14256 # Set some defaults for GNU ld with shared library support. These
14257 # are reset later if shared libraries are not supported. Putting them
14258 # here allows them to be overridden if necessary.
14259 runpath_var=LD_RUN_PATH
14260 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14261 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14262 # ancient GNU ld didn't support --whole-archive et. al.
14263 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14264 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14266 whole_archive_flag_spec_F77=
14268 supports_anon_versioning=no
14269 case `$LD -v 2>/dev/null` in
14270 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14271 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14272 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14273 *\ 2.11.*) ;; # other 2.11 versions
14274 *) supports_anon_versioning=yes ;;
14277 # See if GNU ld supports shared libraries.
14279 aix3* | aix4* | aix5*)
14280 # On AIX/PPC, the GNU linker is very broken
14281 if test "$host_cpu" != ia64; then
14285 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14286 *** to be unable to reliably create shared libraries on AIX.
14287 *** Therefore, libtool is disabling shared libraries support. If you
14288 *** really care for shared libraries, you may want to modify your PATH
14289 *** so that a non-GNU linker is found, and then restart.
14296 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)'
14297 hardcode_libdir_flag_spec_F77='-L$libdir'
14298 hardcode_minus_L_F77=yes
14300 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14301 # that the semantics of dynamic libraries on AmigaOS, at least up
14302 # to version 4, is to share data among multiple programs linked
14303 # with the same dynamic library. Since this doesn't match the
14304 # behavior of shared libraries on other platforms, we can't use
14310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14311 allow_undefined_flag_F77=unsupported
14312 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14313 # support --undefined. This deserves some investigation. FIXME
14314 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320 cygwin* | mingw* | pw32*)
14321 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14322 # as there is no search path for DLLs.
14323 hardcode_libdir_flag_spec_F77='-L$libdir'
14324 allow_undefined_flag_F77=unsupported
14325 always_export_symbols_F77=no
14326 enable_shared_with_static_runtimes_F77=yes
14327 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14329 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14330 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14331 # If the export-symbols file already is a .def file (1st line
14332 # is EXPORTS), use it as is; otherwise, prepend...
14333 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14334 cp $export_symbols $output_objdir/$soname.def;
14336 echo EXPORTS > $output_objdir/$soname.def;
14337 cat $export_symbols >> $output_objdir/$soname.def;
14339 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14346 hardcode_direct_F77=no
14347 hardcode_shlibpath_var_F77=no
14348 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14349 export_dynamic_flag_spec_F77='${wl}-E'
14350 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14351 # Instead, shared libraries are loaded at an image base (0x10000000 by
14352 # default) and relocated if they conflict, which is a slow very memory
14353 # consuming and fragmenting process. To avoid this, we pick a random,
14354 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14355 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14356 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'
14357 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'
14360 gnu* | linux* | k*bsd*-gnu)
14361 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14363 case $cc_basename,$host_cpu in
14364 pgcc*) # Portland Group C compiler
14365 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'
14366 tmp_addflag=' $pic_flag'
14368 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14369 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'
14370 tmp_addflag=' $pic_flag -Mnomain' ;;
14371 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14372 tmp_addflag=' -i_dynamic' ;;
14373 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14374 tmp_addflag=' -i_dynamic -nofor_main' ;;
14375 ifc* | ifort*) # Intel Fortran compiler
14376 tmp_addflag=' -nofor_main' ;;
14378 case `$CC -V 2>&1 | sed 5q` in
14379 *Sun\ C*) # Sun C 5.9
14380 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'
14381 tmp_sharedflag='-G' ;;
14382 *Sun\ F*) # Sun Fortran 8.3
14383 tmp_sharedflag='-G' ;;
14385 tmp_sharedflag='-shared' ;;
14387 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14389 if test $supports_anon_versioning = yes; then
14390 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14392 $echo "local: *; };" >> $output_objdir/$libname.ver~
14393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14402 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14405 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14406 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14411 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14415 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14416 *** create shared libraries on Solaris systems. Therefore, libtool
14417 *** is disabling shared libraries support. We urge you to upgrade GNU
14418 *** binutils to release 2.9.1 or newer. Another option is to modify
14419 *** your PATH or compiler configuration so that the native linker is
14420 *** used, and then restart.
14423 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14424 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14425 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14432 case `$LD -v 2>&1` in
14433 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14437 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14438 *** reliably create shared libraries on SCO systems. Therefore, libtool
14439 *** is disabling shared libraries support. We urge you to upgrade GNU
14440 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14441 *** your PATH or compiler configuration so that the native linker is
14442 *** used, and then restart.
14447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14448 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14449 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14450 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14459 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14461 hardcode_direct_F77=yes
14462 hardcode_shlibpath_var_F77=no
14466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14467 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14468 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14475 if test "$ld_shlibs_F77" = no; then
14477 hardcode_libdir_flag_spec_F77=
14478 export_dynamic_flag_spec_F77=
14479 whole_archive_flag_spec_F77=
14482 # PORTME fill in a description of your system's linker (not GNU ld)
14485 allow_undefined_flag_F77=unsupported
14486 always_export_symbols_F77=yes
14487 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'
14488 # Note: this linker hardcodes the directories in LIBPATH if there
14489 # are no directories specified by -L.
14490 hardcode_minus_L_F77=yes
14491 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14492 # Neither direct hardcoding nor static linking is supported with a
14494 hardcode_direct_F77=unsupported
14499 if test "$host_cpu" = ia64; then
14500 # On IA64, the linker does run time linking by default, so we don't
14501 # have to do anything special.
14502 aix_use_runtimelinking=no
14503 exp_sym_flag='-Bexport'
14506 # If we're using GNU nm, then we don't want the "-C" option.
14507 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14508 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14509 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'
14511 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'
14513 aix_use_runtimelinking=no
14515 # Test if we are trying to use run time linking or normal
14516 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14517 # need to do runtime linking.
14518 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14519 for ld_flag in $LDFLAGS; do
14520 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14521 aix_use_runtimelinking=yes
14528 exp_sym_flag='-bexport'
14529 no_entry_flag='-bnoentry'
14532 # When large executables or shared objects are built, AIX ld can
14533 # have problems creating the table of contents. If linking a library
14534 # or program results in "error TOC overflow" add -mminimal-toc to
14535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14538 archive_cmds_F77=''
14539 hardcode_direct_F77=yes
14540 hardcode_libdir_separator_F77=':'
14541 link_all_deplibs_F77=yes
14543 if test "$GCC" = yes; then
14544 case $host_os in aix4.[012]|aix4.[012].*)
14545 # We only want to do this on AIX 4.2 and lower, the check
14546 # below for broken collect2 doesn't work under 4.3+
14547 collect2name=`${CC} -print-prog-name=collect2`
14548 if test -f "$collect2name" && \
14549 strings "$collect2name" | grep resolve_lib_name >/dev/null
14551 # We have reworked collect2
14554 # We have old collect2
14555 hardcode_direct_F77=unsupported
14556 # It fails to find uninstalled libraries when the uninstalled
14557 # path is not listed in the libpath. Setting hardcode_minus_L
14558 # to unsupported forces relinking
14559 hardcode_minus_L_F77=yes
14560 hardcode_libdir_flag_spec_F77='-L$libdir'
14561 hardcode_libdir_separator_F77=
14565 shared_flag='-shared'
14566 if test "$aix_use_runtimelinking" = yes; then
14567 shared_flag="$shared_flag "'${wl}-G'
14571 if test "$host_cpu" = ia64; then
14572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14573 # chokes on -Wl,-G. The following line is correct:
14576 if test "$aix_use_runtimelinking" = yes; then
14577 shared_flag='${wl}-G'
14579 shared_flag='${wl}-bM:SRE'
14584 # It seems that -bexpall does not export symbols beginning with
14585 # underscore (_), so it is better to generate a list of symbols to export.
14586 always_export_symbols_F77=yes
14587 if test "$aix_use_runtimelinking" = yes; then
14588 # Warning - without using the other runtime loading flags (-brtl),
14589 # -berok will link without error, but may produce a broken library.
14590 allow_undefined_flag_F77='-berok'
14591 # Determine the default libpath from the value encoded in an empty executable.
14592 cat >conftest.$ac_ext <<_ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_link") 2>conftest.er1
14606 grep -v '^ *+' conftest.er1 >conftest.err
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_f77_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest$ac_exeext &&
14614 $as_test_x conftest$ac_exeext; then
14616 lt_aix_libpath_sed='
14617 /Import File Strings/,/^$/ {
14623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14624 # Check for a 64-bit object if we didn't find anything.
14625 if test -z "$aix_libpath"; then
14626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14629 echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14636 conftest$ac_exeext conftest.$ac_ext
14637 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14639 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14640 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"
14642 if test "$host_cpu" = ia64; then
14643 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14644 allow_undefined_flag_F77="-z nodefs"
14645 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"
14647 # Determine the default libpath from the value encoded in an empty executable.
14648 cat >conftest.$ac_ext <<_ACEOF
14653 rm -f conftest.$ac_objext conftest$ac_exeext
14654 if { (ac_try="$ac_link"
14655 case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_link") 2>conftest.er1
14662 grep -v '^ *+' conftest.er1 >conftest.err
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } && {
14667 test -z "$ac_f77_werror_flag" ||
14668 test ! -s conftest.err
14669 } && test -s conftest$ac_exeext &&
14670 $as_test_x conftest$ac_exeext; then
14672 lt_aix_libpath_sed='
14673 /Import File Strings/,/^$/ {
14679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14680 # Check for a 64-bit object if we didn't find anything.
14681 if test -z "$aix_libpath"; then
14682 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14692 conftest$ac_exeext conftest.$ac_ext
14693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14695 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14696 # Warning - without using the other run time loading flags,
14697 # -berok will link without error, but may produce a broken library.
14698 no_undefined_flag_F77=' ${wl}-bernotok'
14699 allow_undefined_flag_F77=' ${wl}-berok'
14700 # Exported symbols can be pulled into shared objects from archives
14701 whole_archive_flag_spec_F77='$convenience'
14702 archive_cmds_need_lc_F77=yes
14703 # This is similar to how AIX traditionally builds its shared libraries.
14704 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'
14710 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)'
14711 hardcode_libdir_flag_spec_F77='-L$libdir'
14712 hardcode_minus_L_F77=yes
14713 # see comment about different semantics on the GNU ld section
14718 export_dynamic_flag_spec_F77=-rdynamic
14721 cygwin* | mingw* | pw32*)
14722 # When not using gcc, we currently assume that we are using
14723 # Microsoft Visual C++.
14724 # hardcode_libdir_flag_spec is actually meaningless, as there is
14725 # no search path for DLLs.
14726 hardcode_libdir_flag_spec_F77=' '
14727 allow_undefined_flag_F77=unsupported
14728 # Tell ltmain to make .lib files, not .a files.
14730 # Tell ltmain to make .dll files, not .so files.
14732 # FIXME: Setting linknames here is a bad hack.
14733 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14734 # The linker will automatically build a .lib file if we build a DLL.
14735 old_archive_From_new_cmds_F77='true'
14736 # FIXME: Should let the user specify the lib program.
14737 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14738 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14739 enable_shared_with_static_runtimes_F77=yes
14742 darwin* | rhapsody*)
14744 rhapsody* | darwin1.[012])
14745 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14748 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14749 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14751 case ${MACOSX_DEPLOYMENT_TARGET} in
14753 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14756 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14762 archive_cmds_need_lc_F77=no
14763 hardcode_direct_F77=no
14764 hardcode_automatic_F77=yes
14765 hardcode_shlibpath_var_F77=unsupported
14766 whole_archive_flag_spec_F77=''
14767 link_all_deplibs_F77=yes
14768 if test "$GCC" = yes ; then
14769 output_verbose_link_cmd='echo'
14770 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14771 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14772 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14773 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}'
14774 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}'
14776 case $cc_basename in
14778 output_verbose_link_cmd='echo'
14779 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14780 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14781 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14782 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}'
14783 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}'
14793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14794 hardcode_libdir_flag_spec_F77='-L$libdir'
14795 hardcode_shlibpath_var_F77=no
14802 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14803 # support. Future versions do this automatically, but an explicit c++rt0.o
14804 # does not break anything, and helps significantly (at the cost of a little
14807 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14808 hardcode_libdir_flag_spec_F77='-R$libdir'
14809 hardcode_direct_F77=yes
14810 hardcode_shlibpath_var_F77=no
14813 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14815 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14816 hardcode_direct_F77=yes
14817 hardcode_minus_L_F77=yes
14818 hardcode_shlibpath_var_F77=no
14821 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14822 freebsd* | dragonfly*)
14823 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14824 hardcode_libdir_flag_spec_F77='-R$libdir'
14825 hardcode_direct_F77=yes
14826 hardcode_shlibpath_var_F77=no
14830 if test "$GCC" = yes; then
14831 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'
14833 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'
14835 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14836 hardcode_libdir_separator_F77=:
14837 hardcode_direct_F77=yes
14839 # hardcode_minus_L: Not really in the search PATH,
14840 # but as the default location of the library.
14841 hardcode_minus_L_F77=yes
14842 export_dynamic_flag_spec_F77='${wl}-E'
14846 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14847 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14849 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14851 if test "$with_gnu_ld" = no; then
14852 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14853 hardcode_libdir_separator_F77=:
14855 hardcode_direct_F77=yes
14856 export_dynamic_flag_spec_F77='${wl}-E'
14858 # hardcode_minus_L: Not really in the search PATH,
14859 # but as the default location of the library.
14860 hardcode_minus_L_F77=yes
14865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14868 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14871 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14874 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14880 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14883 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14890 if test "$with_gnu_ld" = no; then
14891 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14892 hardcode_libdir_separator_F77=:
14896 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14897 hardcode_direct_F77=no
14898 hardcode_shlibpath_var_F77=no
14901 hardcode_direct_F77=yes
14902 export_dynamic_flag_spec_F77='${wl}-E'
14904 # hardcode_minus_L: Not really in the search PATH,
14905 # but as the default location of the library.
14906 hardcode_minus_L_F77=yes
14912 irix5* | irix6* | nonstopux*)
14913 if test "$GCC" = yes; then
14914 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'
14916 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'
14917 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14919 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14920 hardcode_libdir_separator_F77=:
14921 link_all_deplibs_F77=yes
14925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14926 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14928 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14930 hardcode_libdir_flag_spec_F77='-R$libdir'
14931 hardcode_direct_F77=yes
14932 hardcode_shlibpath_var_F77=no
14936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937 hardcode_direct_F77=yes
14938 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14939 hardcode_libdir_separator_F77=:
14940 hardcode_shlibpath_var_F77=no
14944 if test -f /usr/libexec/ld.so; then
14945 hardcode_direct_F77=yes
14946 hardcode_shlibpath_var_F77=no
14947 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14948 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14949 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14950 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14951 export_dynamic_flag_spec_F77='${wl}-E'
14954 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14955 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14956 hardcode_libdir_flag_spec_F77='-R$libdir'
14959 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14960 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14970 hardcode_libdir_flag_spec_F77='-L$libdir'
14971 hardcode_minus_L_F77=yes
14972 allow_undefined_flag_F77=unsupported
14973 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'
14974 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14978 if test "$GCC" = yes; then
14979 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14980 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'
14982 allow_undefined_flag_F77=' -expect_unresolved \*'
14983 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'
14985 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14986 hardcode_libdir_separator_F77=:
14989 osf4* | osf5*) # as osf3* with the addition of -msym flag
14990 if test "$GCC" = yes; then
14991 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14992 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'
14993 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14995 allow_undefined_flag_F77=' -expect_unresolved \*'
14996 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'
14997 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~
14998 $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'
15000 # Both c and cxx compiler support -rpath directly
15001 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15003 hardcode_libdir_separator_F77=:
15007 no_undefined_flag_F77=' -z text'
15008 if test "$GCC" = yes; then
15010 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15012 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15015 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15019 hardcode_libdir_flag_spec_F77='-R$libdir'
15020 hardcode_shlibpath_var_F77=no
15022 solaris2.[0-5] | solaris2.[0-5].*) ;;
15024 # The compiler driver will combine and reorder linker options,
15025 # but understands `-z linker_flag'. GCC discards it without `$wl',
15026 # but is careful enough not to reorder.
15027 # Supported since Solaris 2.6 (maybe 2.5.1?)
15028 if test "$GCC" = yes; then
15029 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15031 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15035 link_all_deplibs_F77=yes
15039 if test "x$host_vendor" = xsequent; then
15040 # Use $CC to link under sequent, because it throws in some extra .o
15041 # files that make .init and .fini sections work.
15042 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15044 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15046 hardcode_libdir_flag_spec_F77='-L$libdir'
15047 hardcode_direct_F77=yes
15048 hardcode_minus_L_F77=yes
15049 hardcode_shlibpath_var_F77=no
15053 case $host_vendor in
15055 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056 hardcode_direct_F77=yes # is this really true???
15059 ## LD is ld it makes a PLAMLIB
15060 ## CC just makes a GrossModule.
15061 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15062 reload_cmds_F77='$CC -r -o $output$reload_objs'
15063 hardcode_direct_F77=no
15066 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15067 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15070 runpath_var='LD_RUN_PATH'
15071 hardcode_shlibpath_var_F77=no
15075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15076 hardcode_shlibpath_var_F77=no
15077 export_dynamic_flag_spec_F77='-Bexport'
15081 if test -d /usr/nec; then
15082 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_shlibpath_var_F77=no
15084 runpath_var=LD_RUN_PATH
15085 hardcode_runpath_var=yes
15090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15091 no_undefined_flag_F77='${wl}-z,text'
15092 archive_cmds_need_lc_F77=no
15093 hardcode_shlibpath_var_F77=no
15094 runpath_var='LD_RUN_PATH'
15096 if test "$GCC" = yes; then
15097 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15098 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15100 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 sysv5* | sco3.2v5* | sco5v6*)
15106 # Note: We can NOT use -z defs as we might desire, because we do not
15107 # link with -lc, and that would cause any symbols used from libc to
15108 # always be unresolved, which means just about no library would
15109 # ever link correctly. If we're not using GNU ld we use -z text
15110 # though, which does catch some bad symbols but isn't as heavy-handed
15112 no_undefined_flag_F77='${wl}-z,text'
15113 allow_undefined_flag_F77='${wl}-z,nodefs'
15114 archive_cmds_need_lc_F77=no
15115 hardcode_shlibpath_var_F77=no
15116 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15117 hardcode_libdir_separator_F77=':'
15118 link_all_deplibs_F77=yes
15119 export_dynamic_flag_spec_F77='${wl}-Bexport'
15120 runpath_var='LD_RUN_PATH'
15122 if test "$GCC" = yes; then
15123 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15124 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15126 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15133 hardcode_libdir_flag_spec_F77='-L$libdir'
15134 hardcode_shlibpath_var_F77=no
15143 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15144 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15145 test "$ld_shlibs_F77" = no && can_build_shared=no
15148 # Do we need to explicitly link libc?
15150 case "x$archive_cmds_need_lc_F77" in
15152 # Assume -lc should be added
15153 archive_cmds_need_lc_F77=yes
15155 if test "$enable_shared" = yes && test "$GCC" = yes; then
15156 case $archive_cmds_F77 in
15158 # FIXME: we may have to deal with multi-command sequences.
15161 # Test whether the compiler implicitly links with -lc since on some
15162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15163 # to ld, don't add -lc before -lgcc.
15164 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15165 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170 (eval $ac_compile) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } 2>conftest.err; then
15176 libobjs=conftest.$ac_objext
15178 wl=$lt_prog_compiler_wl_F77
15179 pic_flag=$lt_prog_compiler_pic_F77
15185 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15186 allow_undefined_flag_F77=
15187 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15188 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }
15193 archive_cmds_need_lc_F77=no
15195 archive_cmds_need_lc_F77=yes
15197 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15199 cat conftest.err 1>&5
15202 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15203 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15210 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15211 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15212 library_names_spec=
15213 libname_spec='lib$name'
15217 postuninstall_cmds=
15221 shlibpath_overrides_runpath=unknown
15223 dynamic_linker="$host_os ld.so"
15224 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15226 need_lib_prefix=unknown
15227 hardcode_into_libs=no
15229 # when you set need_version to no, make sure it does not cause -set_version
15230 # flags to be left without arguments
15231 need_version=unknown
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15237 shlibpath_var=LIBPATH
15239 # AIX 3 has no versioning support, so we append a major version to the name.
15240 soname_spec='${libname}${release}${shared_ext}$major'
15247 hardcode_into_libs=yes
15248 if test "$host_cpu" = ia64; then
15249 # AIX 5 supports IA64
15250 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15251 shlibpath_var=LD_LIBRARY_PATH
15253 # With GCC up to 2.95.x, collect2 would create an import file
15254 # for dependence libraries. The import file would start with
15255 # the line `#! .'. This would cause the generated library to
15256 # depend on `.', always an invalid library. This was fixed in
15257 # development snapshots of GCC prior to 3.0.
15259 aix4 | aix4.[01] | aix4.[01].*)
15260 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15262 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15265 can_build_shared=no
15269 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15270 # soname into executable. Probably we can add versioning support to
15271 # collect2, so additional links can be useful in future.
15272 if test "$aix_use_runtimelinking" = yes; then
15273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15274 # instead of lib<name>.a to let people know that these are not
15275 # typical AIX shared libraries.
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 # We preserve .a as extension for shared libraries through AIX4.2
15279 # and later when we are not doing run time linking.
15280 library_names_spec='${libname}${release}.a $libname.a'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15283 shlibpath_var=LIBPATH
15288 library_names_spec='$libname.ixlibrary $libname.a'
15289 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15290 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'
15294 library_names_spec='${libname}${shared_ext}'
15295 dynamic_linker="$host_os ld.so"
15296 shlibpath_var=LIBRARY_PATH
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15307 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15308 # the default ld.so.conf also contains /usr/contrib/lib and
15309 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15310 # libtool to hard-code these into programs
15313 cygwin* | mingw* | pw32*)
15314 version_type=windows
15319 case $GCC,$host_os in
15320 yes,cygwin* | yes,mingw* | yes,pw32*)
15321 library_names_spec='$libname.dll.a'
15322 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15323 postinstall_cmds='base_file=`basename \${file}`~
15324 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15325 dldir=$destdir/`dirname \$dlpath`~
15326 test -d \$dldir || mkdir -p \$dldir~
15327 $install_prog $dir/$dlname \$dldir/$dlname~
15328 chmod a+x \$dldir/$dlname'
15329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15330 dlpath=$dir/\$dldll~
15332 shlibpath_overrides_runpath=yes
15336 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15337 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15338 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15341 # MinGW DLLs use traditional 'lib' prefix
15342 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15343 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15344 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15345 # It is most probably a Windows format PATH printed by
15346 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15347 # path with ; separators, and with drive letters. We can handle the
15348 # drive letters (cygwin fileutils understands them), so leave them,
15349 # especially as we might pass files found there to a mingw objdump,
15350 # which wouldn't understand a cygwinified path. Ahh.
15351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15357 # pw32 DLLs use 'pw' prefix rather than 'lib'
15358 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15364 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15367 dynamic_linker='Win32 ld.exe'
15368 # FIXME: first we should search . and the directory the executable is in
15372 darwin* | rhapsody*)
15373 dynamic_linker="$host_os dyld"
15374 version_type=darwin
15377 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15378 soname_spec='${libname}${release}${major}$shared_ext'
15379 shlibpath_overrides_runpath=yes
15380 shlibpath_var=DYLD_LIBRARY_PATH
15381 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15399 freebsd* | dragonfly*)
15400 # DragonFly does not have aout. When/if they implement a new
15401 # versioning mechanism, adjust this.
15402 if test -x /usr/bin/objformat; then
15403 objformat=`/usr/bin/objformat`
15406 freebsd[123]*) objformat=aout ;;
15407 *) objformat=elf ;;
15410 version_type=freebsd-$objformat
15411 case $version_type in
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15422 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=yes
15427 freebsd3.[01]* | freebsdelf3.[01]*)
15428 shlibpath_overrides_runpath=yes
15429 hardcode_into_libs=yes
15431 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15432 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15433 shlibpath_overrides_runpath=no
15434 hardcode_into_libs=yes
15436 *) # from 4.6 on, and DragonFly
15437 shlibpath_overrides_runpath=yes
15438 hardcode_into_libs=yes
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 hardcode_into_libs=yes
15453 hpux9* | hpux10* | hpux11*)
15454 # Give a soname corresponding to the major version so that dld.sl refuses to
15455 # link against other versions.
15462 hardcode_into_libs=yes
15463 dynamic_linker="$host_os dld.so"
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 if test "X$HPUX_IA64_MODE" = X32; then
15469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15477 hardcode_into_libs=yes
15478 dynamic_linker="$host_os dld.sl"
15479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15488 dynamic_linker="$host_os dld.sl"
15489 shlibpath_var=SHLIB_PATH
15490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 soname_spec='${libname}${release}${shared_ext}$major'
15495 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15496 postinstall_cmds='chmod 555 $lib'
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 shlibpath_overrides_runpath=no
15508 hardcode_into_libs=yes
15511 irix5* | irix6* | nonstopux*)
15513 nonstopux*) version_type=nonstopux ;;
15515 if test "$lt_cv_prog_gnu_ld" = yes; then
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15526 irix5* | nonstopux*)
15527 libsuff= shlibsuff=
15530 case $LD in # libtool.m4 will add one of these switches to LD
15531 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15532 libsuff= shlibsuff= libmagic=32-bit;;
15533 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15534 libsuff=32 shlibsuff=N32 libmagic=N32;;
15535 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15536 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15537 *) libsuff= shlibsuff= libmagic=never-match;;
15541 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15542 shlibpath_overrides_runpath=no
15543 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15544 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15545 hardcode_into_libs=yes
15548 # No shared lib support for Linux oldld, aout, or coff.
15549 linux*oldld* | linux*aout* | linux*coff*)
15553 # This must be Linux ELF.
15554 linux* | k*bsd*-gnu)
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=no
15563 # This implies no fast_install, which is unacceptable.
15564 # Some rework will be needed to allow for fast_install
15565 # before this can be enabled.
15566 hardcode_into_libs=yes
15568 # find out which ABI we are using
15570 case "$host_cpu" in
15571 x86_64*|s390x*|powerpc64*)
15572 echo '#line __oline__ "configure"' > conftest.$ac_ext
15573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574 (eval $ac_compile) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; then
15578 case `/usr/bin/file conftest.$ac_objext` in
15581 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15589 # Append ld.so.conf contents to the search path
15590 if test -f /etc/ld.so.conf; then
15591 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' ' '`
15592 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15595 # We used to test for /lib/ld.so.1 and disable shared libraries on
15596 # powerpc, because MkLinux only supported shared libraries with the
15597 # GNU dynamic linker. Since this was broken with cross compilers,
15598 # most powerpc-linux boxes support dynamic linking these days and
15599 # people can always --disable-shared, the test was removed, and we
15600 # assume the GNU/Linux dynamic linker is in use.
15601 dynamic_linker='GNU/Linux ld.so'
15608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15611 dynamic_linker='NetBSD (a.out) ld.so'
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15614 soname_spec='${libname}${release}${shared_ext}$major'
15615 dynamic_linker='NetBSD ld.elf_so'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes
15619 hardcode_into_libs=yes
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=yes
15641 sys_lib_dlsearch_path_spec="/usr/lib"
15643 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15645 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15646 *) need_version=no ;;
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15653 openbsd2.[89] | openbsd2.[89].*)
15654 shlibpath_overrides_runpath=no
15657 shlibpath_overrides_runpath=yes
15661 shlibpath_overrides_runpath=yes
15666 libname_spec='$name'
15669 library_names_spec='$libname${shared_ext} $libname.a'
15670 dynamic_linker='OS/2 ld.exe'
15671 shlibpath_var=LIBPATH
15674 osf3* | osf4* | osf5*)
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15682 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 shlibpath_var=LD_LIBRARY_PATH
15696 shlibpath_overrides_runpath=yes
15697 hardcode_into_libs=yes
15698 # ldd complains unless libraries are executable
15699 postinstall_cmds='chmod +x $lib'
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=yes
15708 if test "$with_gnu_ld" = yes; then
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 case $host_vendor in
15721 shlibpath_overrides_runpath=no
15723 export_dynamic_flag_spec='${wl}-Blargedynsym'
15724 runpath_var=LD_RUN_PATH
15732 shlibpath_overrides_runpath=no
15733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15739 if test -d /usr/nec ;then
15741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15742 soname_spec='$libname${shared_ext}.$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15748 version_type=freebsd-elf
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 hardcode_into_libs=yes
15755 if test "$with_gnu_ld" = yes; then
15756 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15757 shlibpath_overrides_runpath=no
15759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15760 shlibpath_overrides_runpath=yes
15763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15767 sys_lib_dlsearch_path_spec='/usr/lib'
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773 soname_spec='${libname}${release}${shared_ext}$major'
15774 shlibpath_var=LD_LIBRARY_PATH
15781 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15782 echo "${ECHO_T}$dynamic_linker" >&6; }
15783 test "$dynamic_linker" = no && can_build_shared=no
15785 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15786 if test "$GCC" = yes; then
15787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15790 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15791 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15792 hardcode_action_F77=
15793 if test -n "$hardcode_libdir_flag_spec_F77" || \
15794 test -n "$runpath_var_F77" || \
15795 test "X$hardcode_automatic_F77" = "Xyes" ; then
15797 # We can hardcode non-existant directories.
15798 if test "$hardcode_direct_F77" != no &&
15799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15800 # have to relink, otherwise we might link with an installed library
15801 # when we should be linking with a yet-to-be-installed one
15802 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15803 test "$hardcode_minus_L_F77" != no; then
15804 # Linking always hardcodes the temporary library directory.
15805 hardcode_action_F77=relink
15807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15808 hardcode_action_F77=immediate
15811 # We cannot hardcode anything, or else we can only hardcode existing
15813 hardcode_action_F77=unsupported
15815 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15816 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15818 if test "$hardcode_action_F77" = relink; then
15819 # Fast installation is not supported
15820 enable_fast_install=no
15821 elif test "$shlibpath_overrides_runpath" = yes ||
15822 test "$enable_shared" = no; then
15823 # Fast installation is not necessary
15824 enable_fast_install=needless
15828 # The else clause should only fire when bootstrapping the
15829 # libtool distribution, otherwise you forgot to ship ltmain.sh
15830 # with your package, and you will get complaints that there are
15831 # no rules to generate ltmain.sh.
15832 if test -f "$ltmain"; then
15833 # See if we are running on zsh, and set the options which allow our commands through
15834 # without removal of \ escapes.
15835 if test -n "${ZSH_VERSION+set}" ; then
15836 setopt NO_GLOB_SUBST
15838 # Now quote all the things that may contain metacharacters while being
15839 # careful not to overquote the AC_SUBSTed values. We take copies of the
15840 # variables and quote the copies for generation of the libtool script.
15841 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15843 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15844 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15845 deplibs_check_method reload_flag reload_cmds need_locks \
15846 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15847 lt_cv_sys_global_symbol_to_c_name_address \
15848 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15849 old_postinstall_cmds old_postuninstall_cmds \
15853 lt_prog_compiler_wl_F77 \
15854 lt_prog_compiler_pic_F77 \
15855 lt_prog_compiler_static_F77 \
15856 lt_prog_compiler_no_builtin_flag_F77 \
15857 export_dynamic_flag_spec_F77 \
15858 thread_safe_flag_spec_F77 \
15859 whole_archive_flag_spec_F77 \
15860 enable_shared_with_static_runtimes_F77 \
15861 old_archive_cmds_F77 \
15862 old_archive_from_new_cmds_F77 \
15863 predep_objects_F77 \
15864 postdep_objects_F77 \
15867 compiler_lib_search_path_F77 \
15869 archive_expsym_cmds_F77 \
15870 postinstall_cmds_F77 \
15871 postuninstall_cmds_F77 \
15872 old_archive_from_expsyms_cmds_F77 \
15873 allow_undefined_flag_F77 \
15874 no_undefined_flag_F77 \
15875 export_symbols_cmds_F77 \
15876 hardcode_libdir_flag_spec_F77 \
15877 hardcode_libdir_flag_spec_ld_F77 \
15878 hardcode_libdir_separator_F77 \
15879 hardcode_automatic_F77 \
15881 module_expsym_cmds_F77 \
15882 lt_cv_prog_compiler_c_o_F77 \
15883 fix_srcfile_path_F77 \
15884 exclude_expsyms_F77 \
15885 include_expsyms_F77; do
15888 old_archive_cmds_F77 | \
15889 old_archive_from_new_cmds_F77 | \
15890 archive_cmds_F77 | \
15891 archive_expsym_cmds_F77 | \
15892 module_cmds_F77 | \
15893 module_expsym_cmds_F77 | \
15894 old_archive_from_expsyms_cmds_F77 | \
15895 export_symbols_cmds_F77 | \
15896 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15897 postinstall_cmds | postuninstall_cmds | \
15898 old_postinstall_cmds | old_postuninstall_cmds | \
15899 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15900 # Double-quote double-evaled strings.
15901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15904 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15910 *'\$0 --fallback-echo"')
15911 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15917 cat <<__EOF__ >> "$cfgfile"
15918 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15920 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15922 # Shell to use when invoking shell scripts.
15925 # Whether or not to build shared libraries.
15926 build_libtool_libs=$enable_shared
15928 # Whether or not to build static libraries.
15929 build_old_libs=$enable_static
15931 # Whether or not to add -lc for building shared libraries.
15932 build_libtool_need_lc=$archive_cmds_need_lc_F77
15934 # Whether or not to disallow shared libs when runtime libs are static
15935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15937 # Whether or not to optimize for fast installation.
15938 fast_install=$enable_fast_install
15941 host_alias=$host_alias
15945 # The build system.
15946 build_alias=$build_alias
15950 # An echo program that does not interpret backslashes.
15955 AR_FLAGS=$lt_AR_FLAGS
15960 # LTCC compiler flags.
15961 LTCFLAGS=$lt_LTCFLAGS
15963 # A language-specific compiler.
15964 CC=$lt_compiler_F77
15966 # Is the compiler the GNU C compiler?
15969 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15970 gcc_ver=\`gcc -dumpversion\`
15975 # The linker used to build libraries.
15978 # Whether we need hard or soft links.
15981 # A BSD-compatible nm program.
15984 # A symbol stripping program
15987 # Used to examine libraries when file_magic_cmd begins "file"
15988 MAGIC_CMD=$MAGIC_CMD
15990 # Used on cygwin: DLL creation program.
15993 # Used on cygwin: object dumper.
15996 # Used on cygwin: assembler.
15999 # The name of the directory that contains temporary libtool files.
16002 # How to create reloadable object files.
16003 reload_flag=$lt_reload_flag
16004 reload_cmds=$lt_reload_cmds
16006 # How to pass a linker flag through the compiler.
16007 wl=$lt_lt_prog_compiler_wl_F77
16009 # Object file suffix (normally "o").
16010 objext="$ac_objext"
16012 # Old archive suffix (normally "a").
16015 # Shared library suffix (normally ".so").
16016 shrext_cmds='$shrext_cmds'
16018 # Executable file suffix (normally "").
16021 # Additional compiler flags for building library objects.
16022 pic_flag=$lt_lt_prog_compiler_pic_F77
16025 # What is the maximum length of a command?
16026 max_cmd_len=$lt_cv_sys_max_cmd_len
16028 # Does compiler simultaneously support -c and -o options?
16029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16031 # Must we lock files when doing compilation?
16032 need_locks=$lt_need_locks
16034 # Do we need the lib prefix for modules?
16035 need_lib_prefix=$need_lib_prefix
16037 # Do we need a version for libraries?
16038 need_version=$need_version
16040 # Whether dlopen is supported.
16041 dlopen_support=$enable_dlopen
16043 # Whether dlopen of programs is supported.
16044 dlopen_self=$enable_dlopen_self
16046 # Whether dlopen of statically linked programs is supported.
16047 dlopen_self_static=$enable_dlopen_self_static
16049 # Compiler flag to prevent dynamic linking.
16050 link_static_flag=$lt_lt_prog_compiler_static_F77
16052 # Compiler flag to turn off builtin functions.
16053 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16055 # Compiler flag to allow reflexive dlopens.
16056 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16058 # Compiler flag to generate shared objects directly from archives.
16059 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16061 # Compiler flag to generate thread-safe objects.
16062 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16064 # Library versioning type.
16065 version_type=$version_type
16067 # Format of library name prefix.
16068 libname_spec=$lt_libname_spec
16070 # List of archive names. First name is the real one, the rest are links.
16071 # The last name is the one that the linker finds with -lNAME.
16072 library_names_spec=$lt_library_names_spec
16074 # The coded name of the library, if different from the real name.
16075 soname_spec=$lt_soname_spec
16077 # Commands used to build and install an old-style archive.
16079 old_archive_cmds=$lt_old_archive_cmds_F77
16080 old_postinstall_cmds=$lt_old_postinstall_cmds
16081 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16083 # Create an old-style archive from a shared archive.
16084 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16086 # Create a temporary old-style archive to link instead of a shared archive.
16087 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16089 # Commands used to build and install a shared archive.
16090 archive_cmds=$lt_archive_cmds_F77
16091 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16092 postinstall_cmds=$lt_postinstall_cmds
16093 postuninstall_cmds=$lt_postuninstall_cmds
16095 # Commands used to build a loadable module (assumed same as above if empty)
16096 module_cmds=$lt_module_cmds_F77
16097 module_expsym_cmds=$lt_module_expsym_cmds_F77
16099 # Commands to strip libraries.
16100 old_striplib=$lt_old_striplib
16101 striplib=$lt_striplib
16103 # Dependencies to place before the objects being linked to create a
16105 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16107 # Dependencies to place after the objects being linked to create a
16109 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16111 # Dependencies to place before the objects being linked to create a
16113 predeps=$lt_predeps_F77
16115 # Dependencies to place after the objects being linked to create a
16117 postdeps=$lt_postdeps_F77
16119 # The library search path used internally by the compiler when linking
16120 # a shared library.
16121 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"\`
16123 # Method to check whether dependent libraries are shared objects.
16124 deplibs_check_method=$lt_deplibs_check_method
16126 # Command to use when deplibs_check_method == file_magic.
16127 file_magic_cmd=$lt_file_magic_cmd
16129 # Flag that allows shared libraries with undefined symbols to be built.
16130 allow_undefined_flag=$lt_allow_undefined_flag_F77
16132 # Flag that forces no undefined symbols.
16133 no_undefined_flag=$lt_no_undefined_flag_F77
16135 # Commands used to finish a libtool library installation in a directory.
16136 finish_cmds=$lt_finish_cmds
16138 # Same as above, but a single script fragment to be evaled but not shown.
16139 finish_eval=$lt_finish_eval
16141 # Take the output of nm and produce a listing of raw symbols and C names.
16142 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16144 # Transform the output of nm in a proper C declaration
16145 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16147 # Transform the output of nm in a C name address pair
16148 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16150 # This is the shared library runtime path variable.
16151 runpath_var=$runpath_var
16153 # This is the shared library path variable.
16154 shlibpath_var=$shlibpath_var
16156 # Is shlibpath searched before the hard-coded library search path?
16157 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16159 # How to hardcode a shared library path into an executable.
16160 hardcode_action=$hardcode_action_F77
16162 # Whether we should hardcode library paths into libraries.
16163 hardcode_into_libs=$hardcode_into_libs
16165 # Flag to hardcode \$libdir into a binary during linking.
16166 # This must work even if \$libdir does not exist.
16167 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16169 # If ld is used when linking, flag to hardcode \$libdir into
16170 # a binary during linking. This must work even if \$libdir does
16172 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16174 # Whether we need a single -rpath flag with a separated argument.
16175 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16177 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16178 # resulting binary.
16179 hardcode_direct=$hardcode_direct_F77
16181 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16182 # resulting binary.
16183 hardcode_minus_L=$hardcode_minus_L_F77
16185 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16186 # the resulting binary.
16187 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16189 # Set to yes if building a shared library automatically hardcodes DIR into the library
16190 # and all subsequent libraries and executables linked against it.
16191 hardcode_automatic=$hardcode_automatic_F77
16193 # Variables whose values should be saved in libtool wrapper scripts and
16194 # restored at relink time.
16195 variables_saved_for_relink="$variables_saved_for_relink"
16197 # Whether libtool must link a program against all its dependency libraries.
16198 link_all_deplibs=$link_all_deplibs_F77
16200 # Compile-time system search path for libraries
16201 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"\`
16203 # Run-time system search path for libraries
16204 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16206 # Fix the shell variable \$srcfile for the compiler.
16207 fix_srcfile_path=$lt_fix_srcfile_path
16209 # Set to yes if exported symbols are required.
16210 always_export_symbols=$always_export_symbols_F77
16212 # The commands to list exported symbols.
16213 export_symbols_cmds=$lt_export_symbols_cmds_F77
16215 # The commands to extract the exported symbol list from a shared archive.
16216 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16218 # Symbols that should not be listed in the preloaded symbols.
16219 exclude_expsyms=$lt_exclude_expsyms_F77
16221 # Symbols that must always be exported.
16222 include_expsyms=$lt_include_expsyms_F77
16224 # ### END LIBTOOL TAG CONFIG: $tagname
16230 # If there is no Makefile yet, we rely on a make rule to execute
16231 # `config.status --recheck' to rerun these tests and create the
16232 # libtool script then.
16233 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16234 if test -f "$ltmain_in"; then
16235 test -f Makefile && make "$ltmain"
16241 ac_cpp='$CPP $CPPFLAGS'
16242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16254 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16257 # Source file extension for Java test sources.
16260 # Object file extension for compiled Java test sources.
16264 # Code to be used in simple compile tests
16265 lt_simple_compile_test_code="class foo {}"
16267 # Code to be used in simple link tests
16268 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16272 # If no C compiler was specified, use CC.
16275 # If no C compiler flags were specified, use CFLAGS.
16276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16278 # Allow CC to be a program name with arguments.
16282 # save warnings/boilerplate of simple test code
16283 ac_outfile=conftest.$ac_objext
16284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16286 _lt_compiler_boilerplate=`cat conftest.err`
16289 ac_outfile=conftest.$ac_objext
16290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16292 _lt_linker_boilerplate=`cat conftest.err`
16296 # Allow CC to be a program name with arguments.
16301 for cc_temp in $compiler""; do
16303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16313 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16314 archive_cmds_need_lc_GCJ=no
16316 old_archive_cmds_GCJ=$old_archive_cmds
16319 ## There is no encapsulation within the following macros, do not change
16320 ## the running order or otherwise move them around unless you know exactly
16321 ## what you are doing...
16323 lt_prog_compiler_no_builtin_flag_GCJ=
16325 if test "$GCC" = yes; then
16326 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16329 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16330 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16331 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 lt_cv_prog_compiler_rtti_exceptions=no
16335 ac_outfile=conftest.$ac_objext
16336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16337 lt_compiler_flag="-fno-rtti -fno-exceptions"
16338 # Insert the option either (1) after the last *FLAGS variable, or
16339 # (2) before a word containing "conftest.", or (3) at the end.
16340 # Note that $ac_compile itself does not contain backslashes and begins
16341 # with a dollar sign (not a hyphen), so the echo should work correctly.
16342 # The option is referenced via a variable to avoid confusing sed.
16343 lt_compile=`echo "$ac_compile" | $SED \
16344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16346 -e 's:$: $lt_compiler_flag:'`
16347 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16348 (eval "$lt_compile" 2>conftest.err)
16350 cat conftest.err >&5
16351 echo "$as_me:__oline__: \$? = $ac_status" >&5
16352 if (exit $ac_status) && test -s "$ac_outfile"; then
16353 # The compiler can only warn and ignore the option if not recognized
16354 # So say no if there are warnings other than the usual output.
16355 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16357 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16358 lt_cv_prog_compiler_rtti_exceptions=yes
16364 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16365 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16367 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16368 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16375 lt_prog_compiler_wl_GCJ=
16376 lt_prog_compiler_pic_GCJ=
16377 lt_prog_compiler_static_GCJ=
16379 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16380 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16382 if test "$GCC" = yes; then
16383 lt_prog_compiler_wl_GCJ='-Wl,'
16384 lt_prog_compiler_static_GCJ='-static'
16388 # All AIX code is PIC.
16389 if test "$host_cpu" = ia64; then
16390 # AIX 5 now supports IA64 processor
16391 lt_prog_compiler_static_GCJ='-Bstatic'
16396 # FIXME: we need at least 68020 code to build shared libraries, but
16397 # adding the `-m68020' flag to GCC prevents building anything better,
16399 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16402 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16403 # PIC is the default for these OSes.
16406 mingw* | cygwin* | pw32* | os2*)
16407 # This hack is so that the source file can tell whether it is being
16408 # built for inclusion in a dll (and should export symbols for example).
16409 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16410 # (--disable-auto-import) libraries
16411 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16414 darwin* | rhapsody*)
16415 # PIC is the default on this platform
16416 # Common symbols not allowed in MH_DYLIB files
16417 lt_prog_compiler_pic_GCJ='-fno-common'
16421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16422 # Instead, we relocate shared libraries at runtime.
16426 # Just because we use GCC doesn't mean we suddenly get shared libraries
16427 # on systems that don't support them.
16428 lt_prog_compiler_can_build_shared_GCJ=no
16433 if test -d /usr/nec; then
16434 lt_prog_compiler_pic_GCJ=-Kconform_pic
16439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16440 # not for PA HP-UX.
16446 lt_prog_compiler_pic_GCJ='-fPIC'
16452 lt_prog_compiler_pic_GCJ='-fPIC'
16456 # PORTME Check for flag to pass linker flags through the system compiler.
16459 lt_prog_compiler_wl_GCJ='-Wl,'
16460 if test "$host_cpu" = ia64; then
16461 # AIX 5 now supports IA64 processor
16462 lt_prog_compiler_static_GCJ='-Bstatic'
16464 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16468 # PIC is the default on this platform
16469 # Common symbols not allowed in MH_DYLIB files
16470 case $cc_basename in
16472 lt_prog_compiler_pic_GCJ='-qnocommon'
16473 lt_prog_compiler_wl_GCJ='-Wl,'
16478 mingw* | cygwin* | pw32* | os2*)
16479 # This hack is so that the source file can tell whether it is being
16480 # built for inclusion in a dll (and should export symbols for example).
16481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16484 hpux9* | hpux10* | hpux11*)
16485 lt_prog_compiler_wl_GCJ='-Wl,'
16486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16487 # not for PA HP-UX.
16493 lt_prog_compiler_pic_GCJ='+Z'
16496 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16497 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16500 irix5* | irix6* | nonstopux*)
16501 lt_prog_compiler_wl_GCJ='-Wl,'
16502 # PIC (with -KPIC) is the default.
16503 lt_prog_compiler_static_GCJ='-non_shared'
16507 lt_prog_compiler_pic_GCJ='-KPIC'
16508 lt_prog_compiler_static_GCJ='-Bstatic'
16511 linux* | k*bsd*-gnu)
16512 case $cc_basename in
16514 lt_prog_compiler_wl_GCJ='-Wl,'
16515 lt_prog_compiler_pic_GCJ='-KPIC'
16516 lt_prog_compiler_static_GCJ='-static'
16518 pgcc* | pgf77* | pgf90* | pgf95*)
16519 # Portland Group compilers (*not* the Pentium gcc compiler,
16520 # which looks to be a dead project)
16521 lt_prog_compiler_wl_GCJ='-Wl,'
16522 lt_prog_compiler_pic_GCJ='-fpic'
16523 lt_prog_compiler_static_GCJ='-Bstatic'
16526 lt_prog_compiler_wl_GCJ='-Wl,'
16527 # All Alpha code is PIC.
16528 lt_prog_compiler_static_GCJ='-non_shared'
16531 case `$CC -V 2>&1 | sed 5q` in
16534 lt_prog_compiler_pic_GCJ='-KPIC'
16535 lt_prog_compiler_static_GCJ='-Bstatic'
16536 lt_prog_compiler_wl_GCJ='-Wl,'
16539 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16540 lt_prog_compiler_pic_GCJ='-KPIC'
16541 lt_prog_compiler_static_GCJ='-Bstatic'
16542 lt_prog_compiler_wl_GCJ=''
16549 osf3* | osf4* | osf5*)
16550 lt_prog_compiler_wl_GCJ='-Wl,'
16551 # All OSF/1 code is PIC.
16552 lt_prog_compiler_static_GCJ='-non_shared'
16556 lt_prog_compiler_static_GCJ='-non_shared'
16560 lt_prog_compiler_pic_GCJ='-KPIC'
16561 lt_prog_compiler_static_GCJ='-Bstatic'
16562 case $cc_basename in
16563 f77* | f90* | f95*)
16564 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16566 lt_prog_compiler_wl_GCJ='-Wl,';;
16571 lt_prog_compiler_wl_GCJ='-Qoption ld '
16572 lt_prog_compiler_pic_GCJ='-PIC'
16573 lt_prog_compiler_static_GCJ='-Bstatic'
16576 sysv4 | sysv4.2uw2* | sysv4.3*)
16577 lt_prog_compiler_wl_GCJ='-Wl,'
16578 lt_prog_compiler_pic_GCJ='-KPIC'
16579 lt_prog_compiler_static_GCJ='-Bstatic'
16583 if test -d /usr/nec ;then
16584 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16585 lt_prog_compiler_static_GCJ='-Bstatic'
16589 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16590 lt_prog_compiler_wl_GCJ='-Wl,'
16591 lt_prog_compiler_pic_GCJ='-KPIC'
16592 lt_prog_compiler_static_GCJ='-Bstatic'
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 lt_prog_compiler_can_build_shared_GCJ=no
16601 lt_prog_compiler_pic_GCJ='-pic'
16602 lt_prog_compiler_static_GCJ='-Bstatic'
16606 lt_prog_compiler_can_build_shared_GCJ=no
16611 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16612 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16615 # Check to make sure the PIC flag actually works.
16617 if test -n "$lt_prog_compiler_pic_GCJ"; then
16619 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16620 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16621 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 lt_prog_compiler_pic_works_GCJ=no
16625 ac_outfile=conftest.$ac_objext
16626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16627 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16628 # Insert the option either (1) after the last *FLAGS variable, or
16629 # (2) before a word containing "conftest.", or (3) at the end.
16630 # Note that $ac_compile itself does not contain backslashes and begins
16631 # with a dollar sign (not a hyphen), so the echo should work correctly.
16632 # The option is referenced via a variable to avoid confusing sed.
16633 lt_compile=`echo "$ac_compile" | $SED \
16634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16636 -e 's:$: $lt_compiler_flag:'`
16637 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16638 (eval "$lt_compile" 2>conftest.err)
16640 cat conftest.err >&5
16641 echo "$as_me:__oline__: \$? = $ac_status" >&5
16642 if (exit $ac_status) && test -s "$ac_outfile"; then
16643 # The compiler can only warn and ignore the option if not recognized
16644 # So say no if there are warnings other than the usual output.
16645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16648 lt_prog_compiler_pic_works_GCJ=yes
16654 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16655 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16657 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16658 case $lt_prog_compiler_pic_GCJ in
16660 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16663 lt_prog_compiler_pic_GCJ=
16664 lt_prog_compiler_can_build_shared_GCJ=no
16669 # For platforms which do not support PIC, -DPIC is meaningless:
16671 lt_prog_compiler_pic_GCJ=
16674 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16679 # Check to make sure the static flag actually works.
16681 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16682 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16683 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16684 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 lt_prog_compiler_static_works_GCJ=no
16688 save_LDFLAGS="$LDFLAGS"
16689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16692 # The linker can only warn and ignore the option if not recognized
16693 # So say no if there are warnings
16694 if test -s conftest.err; then
16695 # Append any errors to the config.log.
16696 cat conftest.err 1>&5
16697 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16699 if diff conftest.exp conftest.er2 >/dev/null; then
16700 lt_prog_compiler_static_works_GCJ=yes
16703 lt_prog_compiler_static_works_GCJ=yes
16707 LDFLAGS="$save_LDFLAGS"
16710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16711 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16713 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16716 lt_prog_compiler_static_GCJ=
16720 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16721 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16722 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16723 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 lt_cv_prog_compiler_c_o_GCJ=no
16726 $rm -r conftest 2>/dev/null
16730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16732 lt_compiler_flag="-o out/conftest2.$ac_objext"
16733 # Insert the option either (1) after the last *FLAGS variable, or
16734 # (2) before a word containing "conftest.", or (3) at the end.
16735 # Note that $ac_compile itself does not contain backslashes and begins
16736 # with a dollar sign (not a hyphen), so the echo should work correctly.
16737 lt_compile=`echo "$ac_compile" | $SED \
16738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16740 -e 's:$: $lt_compiler_flag:'`
16741 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16742 (eval "$lt_compile" 2>out/conftest.err)
16744 cat out/conftest.err >&5
16745 echo "$as_me:__oline__: \$? = $ac_status" >&5
16746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16748 # The compiler can only warn and ignore the option if not recognized
16749 # So say no if there are warnings
16750 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16753 lt_cv_prog_compiler_c_o_GCJ=yes
16758 # SGI C++ compiler will create directory out/ii_files/ for
16759 # template instantiation
16760 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16761 $rm out/* && rmdir out
16767 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16768 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16771 hard_links="nottested"
16772 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16773 # do not overwrite the value of need_locks provided by the user
16774 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16775 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16780 ln conftest.a conftest.b 2>&5 || hard_links=no
16781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16782 { echo "$as_me:$LINENO: result: $hard_links" >&5
16783 echo "${ECHO_T}$hard_links" >&6; }
16784 if test "$hard_links" = no; then
16785 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16786 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16793 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16794 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16797 allow_undefined_flag_GCJ=
16798 enable_shared_with_static_runtimes_GCJ=no
16800 archive_expsym_cmds_GCJ=
16801 old_archive_From_new_cmds_GCJ=
16802 old_archive_from_expsyms_cmds_GCJ=
16803 export_dynamic_flag_spec_GCJ=
16804 whole_archive_flag_spec_GCJ=
16805 thread_safe_flag_spec_GCJ=
16806 hardcode_libdir_flag_spec_GCJ=
16807 hardcode_libdir_flag_spec_ld_GCJ=
16808 hardcode_libdir_separator_GCJ=
16809 hardcode_direct_GCJ=no
16810 hardcode_minus_L_GCJ=no
16811 hardcode_shlibpath_var_GCJ=unsupported
16812 link_all_deplibs_GCJ=unknown
16813 hardcode_automatic_GCJ=no
16815 module_expsym_cmds_GCJ=
16816 always_export_symbols_GCJ=no
16817 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16818 # include_expsyms should be a list of space-separated symbols to be *always*
16819 # included in the symbol list
16820 include_expsyms_GCJ=
16821 # exclude_expsyms can be an extended regexp of symbols to exclude
16822 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16823 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16824 # as well as any symbol that contains `d'.
16825 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16826 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16827 # platforms (ab)use it in PIC code, but their linkers get confused if
16828 # the symbol is explicitly referenced. Since portable code cannot
16829 # rely on this symbol name, it's probably fine to never include it in
16830 # preloaded symbol tables.
16831 extract_expsyms_cmds=
16832 # Just being paranoid about ensuring that cc_basename is set.
16833 for cc_temp in $compiler""; do
16835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16844 cygwin* | mingw* | pw32*)
16845 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16846 # When not using gcc, we currently assume that we are using
16847 # Microsoft Visual C++.
16848 if test "$GCC" != yes; then
16853 # we just hope/assume this is gcc and not c89 (= MSVC++)
16862 if test "$with_gnu_ld" = yes; then
16863 # If archive_cmds runs LD, not CC, wlarc should be empty
16866 # Set some defaults for GNU ld with shared library support. These
16867 # are reset later if shared libraries are not supported. Putting them
16868 # here allows them to be overridden if necessary.
16869 runpath_var=LD_RUN_PATH
16870 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16871 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16872 # ancient GNU ld didn't support --whole-archive et. al.
16873 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16874 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16876 whole_archive_flag_spec_GCJ=
16878 supports_anon_versioning=no
16879 case `$LD -v 2>/dev/null` in
16880 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16881 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16882 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16883 *\ 2.11.*) ;; # other 2.11 versions
16884 *) supports_anon_versioning=yes ;;
16887 # See if GNU ld supports shared libraries.
16889 aix3* | aix4* | aix5*)
16890 # On AIX/PPC, the GNU linker is very broken
16891 if test "$host_cpu" != ia64; then
16895 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16896 *** to be unable to reliably create shared libraries on AIX.
16897 *** Therefore, libtool is disabling shared libraries support. If you
16898 *** really care for shared libraries, you may want to modify your PATH
16899 *** so that a non-GNU linker is found, and then restart.
16906 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)'
16907 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16908 hardcode_minus_L_GCJ=yes
16910 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16911 # that the semantics of dynamic libraries on AmigaOS, at least up
16912 # to version 4, is to share data among multiple programs linked
16913 # with the same dynamic library. Since this doesn't match the
16914 # behavior of shared libraries on other platforms, we can't use
16920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16921 allow_undefined_flag_GCJ=unsupported
16922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16923 # support --undefined. This deserves some investigation. FIXME
16924 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16930 cygwin* | mingw* | pw32*)
16931 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16932 # as there is no search path for DLLs.
16933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16934 allow_undefined_flag_GCJ=unsupported
16935 always_export_symbols_GCJ=no
16936 enable_shared_with_static_runtimes_GCJ=yes
16937 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16939 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16940 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16941 # If the export-symbols file already is a .def file (1st line
16942 # is EXPORTS), use it as is; otherwise, prepend...
16943 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16944 cp $export_symbols $output_objdir/$soname.def;
16946 echo EXPORTS > $output_objdir/$soname.def;
16947 cat $export_symbols >> $output_objdir/$soname.def;
16949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16956 hardcode_direct_GCJ=no
16957 hardcode_shlibpath_var_GCJ=no
16958 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16959 export_dynamic_flag_spec_GCJ='${wl}-E'
16960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16961 # Instead, shared libraries are loaded at an image base (0x10000000 by
16962 # default) and relocated if they conflict, which is a slow very memory
16963 # consuming and fragmenting process. To avoid this, we pick a random,
16964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16965 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16966 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'
16967 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'
16970 gnu* | linux* | k*bsd*-gnu)
16971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16973 case $cc_basename,$host_cpu in
16974 pgcc*) # Portland Group C compiler
16975 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'
16976 tmp_addflag=' $pic_flag'
16978 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16979 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'
16980 tmp_addflag=' $pic_flag -Mnomain' ;;
16981 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16982 tmp_addflag=' -i_dynamic' ;;
16983 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16984 tmp_addflag=' -i_dynamic -nofor_main' ;;
16985 ifc* | ifort*) # Intel Fortran compiler
16986 tmp_addflag=' -nofor_main' ;;
16988 case `$CC -V 2>&1 | sed 5q` in
16989 *Sun\ C*) # Sun C 5.9
16990 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'
16991 tmp_sharedflag='-G' ;;
16992 *Sun\ F*) # Sun Fortran 8.3
16993 tmp_sharedflag='-G' ;;
16995 tmp_sharedflag='-shared' ;;
16997 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16999 if test $supports_anon_versioning = yes; then
17000 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17002 $echo "local: *; };" >> $output_objdir/$libname.ver~
17003 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17012 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17015 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17021 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17025 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17026 *** create shared libraries on Solaris systems. Therefore, libtool
17027 *** is disabling shared libraries support. We urge you to upgrade GNU
17028 *** binutils to release 2.9.1 or newer. Another option is to modify
17029 *** your PATH or compiler configuration so that the native linker is
17030 *** used, and then restart.
17033 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17034 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17035 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17042 case `$LD -v 2>&1` in
17043 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17047 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17048 *** reliably create shared libraries on SCO systems. Therefore, libtool
17049 *** is disabling shared libraries support. We urge you to upgrade GNU
17050 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17051 *** your PATH or compiler configuration so that the native linker is
17052 *** used, and then restart.
17057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17058 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17059 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17060 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17069 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17071 hardcode_direct_GCJ=yes
17072 hardcode_shlibpath_var_GCJ=no
17076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17077 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17078 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17085 if test "$ld_shlibs_GCJ" = no; then
17087 hardcode_libdir_flag_spec_GCJ=
17088 export_dynamic_flag_spec_GCJ=
17089 whole_archive_flag_spec_GCJ=
17092 # PORTME fill in a description of your system's linker (not GNU ld)
17095 allow_undefined_flag_GCJ=unsupported
17096 always_export_symbols_GCJ=yes
17097 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'
17098 # Note: this linker hardcodes the directories in LIBPATH if there
17099 # are no directories specified by -L.
17100 hardcode_minus_L_GCJ=yes
17101 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17102 # Neither direct hardcoding nor static linking is supported with a
17104 hardcode_direct_GCJ=unsupported
17109 if test "$host_cpu" = ia64; then
17110 # On IA64, the linker does run time linking by default, so we don't
17111 # have to do anything special.
17112 aix_use_runtimelinking=no
17113 exp_sym_flag='-Bexport'
17116 # If we're using GNU nm, then we don't want the "-C" option.
17117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17118 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17119 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'
17121 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'
17123 aix_use_runtimelinking=no
17125 # Test if we are trying to use run time linking or normal
17126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17127 # need to do runtime linking.
17128 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17129 for ld_flag in $LDFLAGS; do
17130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17131 aix_use_runtimelinking=yes
17138 exp_sym_flag='-bexport'
17139 no_entry_flag='-bnoentry'
17142 # When large executables or shared objects are built, AIX ld can
17143 # have problems creating the table of contents. If linking a library
17144 # or program results in "error TOC overflow" add -mminimal-toc to
17145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17148 archive_cmds_GCJ=''
17149 hardcode_direct_GCJ=yes
17150 hardcode_libdir_separator_GCJ=':'
17151 link_all_deplibs_GCJ=yes
17153 if test "$GCC" = yes; then
17154 case $host_os in aix4.[012]|aix4.[012].*)
17155 # We only want to do this on AIX 4.2 and lower, the check
17156 # below for broken collect2 doesn't work under 4.3+
17157 collect2name=`${CC} -print-prog-name=collect2`
17158 if test -f "$collect2name" && \
17159 strings "$collect2name" | grep resolve_lib_name >/dev/null
17161 # We have reworked collect2
17164 # We have old collect2
17165 hardcode_direct_GCJ=unsupported
17166 # It fails to find uninstalled libraries when the uninstalled
17167 # path is not listed in the libpath. Setting hardcode_minus_L
17168 # to unsupported forces relinking
17169 hardcode_minus_L_GCJ=yes
17170 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17171 hardcode_libdir_separator_GCJ=
17175 shared_flag='-shared'
17176 if test "$aix_use_runtimelinking" = yes; then
17177 shared_flag="$shared_flag "'${wl}-G'
17181 if test "$host_cpu" = ia64; then
17182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17183 # chokes on -Wl,-G. The following line is correct:
17186 if test "$aix_use_runtimelinking" = yes; then
17187 shared_flag='${wl}-G'
17189 shared_flag='${wl}-bM:SRE'
17194 # It seems that -bexpall does not export symbols beginning with
17195 # underscore (_), so it is better to generate a list of symbols to export.
17196 always_export_symbols_GCJ=yes
17197 if test "$aix_use_runtimelinking" = yes; then
17198 # Warning - without using the other runtime loading flags (-brtl),
17199 # -berok will link without error, but may produce a broken library.
17200 allow_undefined_flag_GCJ='-berok'
17201 # Determine the default libpath from the value encoded in an empty executable.
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17217 rm -f conftest.$ac_objext conftest$ac_exeext
17218 if { (ac_try="$ac_link"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_link") 2>conftest.er1
17226 grep -v '^ *+' conftest.er1 >conftest.err
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && {
17231 test -z "$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 } && test -s conftest$ac_exeext &&
17234 $as_test_x conftest$ac_exeext; then
17236 lt_aix_libpath_sed='
17237 /Import File Strings/,/^$/ {
17243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17244 # Check for a 64-bit object if we didn't find anything.
17245 if test -z "$aix_libpath"; then
17246 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17256 conftest$ac_exeext conftest.$ac_ext
17257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17259 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17260 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"
17262 if test "$host_cpu" = ia64; then
17263 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17264 allow_undefined_flag_GCJ="-z nodefs"
17265 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"
17267 # Determine the default libpath from the value encoded in an empty executable.
17268 cat >conftest.$ac_ext <<_ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (ac_try="$ac_link"
17285 case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_link") 2>conftest.er1
17292 grep -v '^ *+' conftest.er1 >conftest.err
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } && {
17297 test -z "$ac_c_werror_flag" ||
17298 test ! -s conftest.err
17299 } && test -s conftest$ac_exeext &&
17300 $as_test_x conftest$ac_exeext; then
17302 lt_aix_libpath_sed='
17303 /Import File Strings/,/^$/ {
17309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17310 # Check for a 64-bit object if we didn't find anything.
17311 if test -z "$aix_libpath"; then
17312 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17322 conftest$ac_exeext conftest.$ac_ext
17323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17325 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17326 # Warning - without using the other run time loading flags,
17327 # -berok will link without error, but may produce a broken library.
17328 no_undefined_flag_GCJ=' ${wl}-bernotok'
17329 allow_undefined_flag_GCJ=' ${wl}-berok'
17330 # Exported symbols can be pulled into shared objects from archives
17331 whole_archive_flag_spec_GCJ='$convenience'
17332 archive_cmds_need_lc_GCJ=yes
17333 # This is similar to how AIX traditionally builds its shared libraries.
17334 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'
17340 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)'
17341 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17342 hardcode_minus_L_GCJ=yes
17343 # see comment about different semantics on the GNU ld section
17348 export_dynamic_flag_spec_GCJ=-rdynamic
17351 cygwin* | mingw* | pw32*)
17352 # When not using gcc, we currently assume that we are using
17353 # Microsoft Visual C++.
17354 # hardcode_libdir_flag_spec is actually meaningless, as there is
17355 # no search path for DLLs.
17356 hardcode_libdir_flag_spec_GCJ=' '
17357 allow_undefined_flag_GCJ=unsupported
17358 # Tell ltmain to make .lib files, not .a files.
17360 # Tell ltmain to make .dll files, not .so files.
17362 # FIXME: Setting linknames here is a bad hack.
17363 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17364 # The linker will automatically build a .lib file if we build a DLL.
17365 old_archive_From_new_cmds_GCJ='true'
17366 # FIXME: Should let the user specify the lib program.
17367 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17368 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17369 enable_shared_with_static_runtimes_GCJ=yes
17372 darwin* | rhapsody*)
17374 rhapsody* | darwin1.[012])
17375 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17378 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17379 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17381 case ${MACOSX_DEPLOYMENT_TARGET} in
17383 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17386 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17392 archive_cmds_need_lc_GCJ=no
17393 hardcode_direct_GCJ=no
17394 hardcode_automatic_GCJ=yes
17395 hardcode_shlibpath_var_GCJ=unsupported
17396 whole_archive_flag_spec_GCJ=''
17397 link_all_deplibs_GCJ=yes
17398 if test "$GCC" = yes ; then
17399 output_verbose_link_cmd='echo'
17400 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17401 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17402 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17403 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}'
17404 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}'
17406 case $cc_basename in
17408 output_verbose_link_cmd='echo'
17409 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17410 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17411 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17412 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}'
17413 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}'
17423 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17424 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17425 hardcode_shlibpath_var_GCJ=no
17432 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17433 # support. Future versions do this automatically, but an explicit c++rt0.o
17434 # does not break anything, and helps significantly (at the cost of a little
17437 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17438 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17439 hardcode_direct_GCJ=yes
17440 hardcode_shlibpath_var_GCJ=no
17443 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17445 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17446 hardcode_direct_GCJ=yes
17447 hardcode_minus_L_GCJ=yes
17448 hardcode_shlibpath_var_GCJ=no
17451 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17452 freebsd* | dragonfly*)
17453 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17454 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17455 hardcode_direct_GCJ=yes
17456 hardcode_shlibpath_var_GCJ=no
17460 if test "$GCC" = yes; then
17461 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'
17463 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'
17465 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17466 hardcode_libdir_separator_GCJ=:
17467 hardcode_direct_GCJ=yes
17469 # hardcode_minus_L: Not really in the search PATH,
17470 # but as the default location of the library.
17471 hardcode_minus_L_GCJ=yes
17472 export_dynamic_flag_spec_GCJ='${wl}-E'
17476 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17477 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17479 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17481 if test "$with_gnu_ld" = no; then
17482 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17483 hardcode_libdir_separator_GCJ=:
17485 hardcode_direct_GCJ=yes
17486 export_dynamic_flag_spec_GCJ='${wl}-E'
17488 # hardcode_minus_L: Not really in the search PATH,
17489 # but as the default location of the library.
17490 hardcode_minus_L_GCJ=yes
17495 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17498 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17510 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17513 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17516 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17520 if test "$with_gnu_ld" = no; then
17521 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17522 hardcode_libdir_separator_GCJ=:
17526 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17527 hardcode_direct_GCJ=no
17528 hardcode_shlibpath_var_GCJ=no
17531 hardcode_direct_GCJ=yes
17532 export_dynamic_flag_spec_GCJ='${wl}-E'
17534 # hardcode_minus_L: Not really in the search PATH,
17535 # but as the default location of the library.
17536 hardcode_minus_L_GCJ=yes
17542 irix5* | irix6* | nonstopux*)
17543 if test "$GCC" = yes; then
17544 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'
17546 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'
17547 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17550 hardcode_libdir_separator_GCJ=:
17551 link_all_deplibs_GCJ=yes
17555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17556 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17558 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17560 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17561 hardcode_direct_GCJ=yes
17562 hardcode_shlibpath_var_GCJ=no
17566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17567 hardcode_direct_GCJ=yes
17568 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17569 hardcode_libdir_separator_GCJ=:
17570 hardcode_shlibpath_var_GCJ=no
17574 if test -f /usr/libexec/ld.so; then
17575 hardcode_direct_GCJ=yes
17576 hardcode_shlibpath_var_GCJ=no
17577 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17578 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17579 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17580 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17581 export_dynamic_flag_spec_GCJ='${wl}-E'
17584 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17585 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17586 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17589 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17590 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17601 hardcode_minus_L_GCJ=yes
17602 allow_undefined_flag_GCJ=unsupported
17603 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'
17604 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17612 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17613 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'
17615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17616 hardcode_libdir_separator_GCJ=:
17619 osf4* | osf5*) # as osf3* with the addition of -msym flag
17620 if test "$GCC" = yes; then
17621 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17622 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'
17623 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17625 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17626 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'
17627 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~
17628 $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'
17630 # Both c and cxx compiler support -rpath directly
17631 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17633 hardcode_libdir_separator_GCJ=:
17637 no_undefined_flag_GCJ=' -z text'
17638 if test "$GCC" = yes; then
17640 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17641 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17642 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17645 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17646 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17649 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17650 hardcode_shlibpath_var_GCJ=no
17652 solaris2.[0-5] | solaris2.[0-5].*) ;;
17654 # The compiler driver will combine and reorder linker options,
17655 # but understands `-z linker_flag'. GCC discards it without `$wl',
17656 # but is careful enough not to reorder.
17657 # Supported since Solaris 2.6 (maybe 2.5.1?)
17658 if test "$GCC" = yes; then
17659 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17661 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17665 link_all_deplibs_GCJ=yes
17669 if test "x$host_vendor" = xsequent; then
17670 # Use $CC to link under sequent, because it throws in some extra .o
17671 # files that make .init and .fini sections work.
17672 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17674 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17676 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17677 hardcode_direct_GCJ=yes
17678 hardcode_minus_L_GCJ=yes
17679 hardcode_shlibpath_var_GCJ=no
17683 case $host_vendor in
17685 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_direct_GCJ=yes # is this really true???
17689 ## LD is ld it makes a PLAMLIB
17690 ## CC just makes a GrossModule.
17691 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17692 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17693 hardcode_direct_GCJ=no
17696 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17697 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17700 runpath_var='LD_RUN_PATH'
17701 hardcode_shlibpath_var_GCJ=no
17705 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17706 hardcode_shlibpath_var_GCJ=no
17707 export_dynamic_flag_spec_GCJ='-Bexport'
17711 if test -d /usr/nec; then
17712 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17713 hardcode_shlibpath_var_GCJ=no
17714 runpath_var=LD_RUN_PATH
17715 hardcode_runpath_var=yes
17720 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17721 no_undefined_flag_GCJ='${wl}-z,text'
17722 archive_cmds_need_lc_GCJ=no
17723 hardcode_shlibpath_var_GCJ=no
17724 runpath_var='LD_RUN_PATH'
17726 if test "$GCC" = yes; then
17727 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17728 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17730 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17731 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17735 sysv5* | sco3.2v5* | sco5v6*)
17736 # Note: We can NOT use -z defs as we might desire, because we do not
17737 # link with -lc, and that would cause any symbols used from libc to
17738 # always be unresolved, which means just about no library would
17739 # ever link correctly. If we're not using GNU ld we use -z text
17740 # though, which does catch some bad symbols but isn't as heavy-handed
17742 no_undefined_flag_GCJ='${wl}-z,text'
17743 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17744 archive_cmds_need_lc_GCJ=no
17745 hardcode_shlibpath_var_GCJ=no
17746 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17747 hardcode_libdir_separator_GCJ=':'
17748 link_all_deplibs_GCJ=yes
17749 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17750 runpath_var='LD_RUN_PATH'
17752 if test "$GCC" = yes; then
17753 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17754 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17757 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17763 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17764 hardcode_shlibpath_var_GCJ=no
17773 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17774 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17775 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17778 # Do we need to explicitly link libc?
17780 case "x$archive_cmds_need_lc_GCJ" in
17782 # Assume -lc should be added
17783 archive_cmds_need_lc_GCJ=yes
17785 if test "$enable_shared" = yes && test "$GCC" = yes; then
17786 case $archive_cmds_GCJ in
17788 # FIXME: we may have to deal with multi-command sequences.
17791 # Test whether the compiler implicitly links with -lc since on some
17792 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17793 # to ld, don't add -lc before -lgcc.
17794 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17795 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800 (eval $ac_compile) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } 2>conftest.err; then
17806 libobjs=conftest.$ac_objext
17808 wl=$lt_prog_compiler_wl_GCJ
17809 pic_flag=$lt_prog_compiler_pic_GCJ
17815 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17816 allow_undefined_flag_GCJ=
17817 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17818 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }
17823 archive_cmds_need_lc_GCJ=no
17825 archive_cmds_need_lc_GCJ=yes
17827 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17829 cat conftest.err 1>&5
17832 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17833 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17840 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17841 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17842 library_names_spec=
17843 libname_spec='lib$name'
17847 postuninstall_cmds=
17851 shlibpath_overrides_runpath=unknown
17853 dynamic_linker="$host_os ld.so"
17854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17856 need_lib_prefix=unknown
17857 hardcode_into_libs=no
17859 # when you set need_version to no, make sure it does not cause -set_version
17860 # flags to be left without arguments
17861 need_version=unknown
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17867 shlibpath_var=LIBPATH
17869 # AIX 3 has no versioning support, so we append a major version to the name.
17870 soname_spec='${libname}${release}${shared_ext}$major'
17877 hardcode_into_libs=yes
17878 if test "$host_cpu" = ia64; then
17879 # AIX 5 supports IA64
17880 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17881 shlibpath_var=LD_LIBRARY_PATH
17883 # With GCC up to 2.95.x, collect2 would create an import file
17884 # for dependence libraries. The import file would start with
17885 # the line `#! .'. This would cause the generated library to
17886 # depend on `.', always an invalid library. This was fixed in
17887 # development snapshots of GCC prior to 3.0.
17889 aix4 | aix4.[01] | aix4.[01].*)
17890 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17892 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17895 can_build_shared=no
17899 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17900 # soname into executable. Probably we can add versioning support to
17901 # collect2, so additional links can be useful in future.
17902 if test "$aix_use_runtimelinking" = yes; then
17903 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17904 # instead of lib<name>.a to let people know that these are not
17905 # typical AIX shared libraries.
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17908 # We preserve .a as extension for shared libraries through AIX4.2
17909 # and later when we are not doing run time linking.
17910 library_names_spec='${libname}${release}.a $libname.a'
17911 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LIBPATH
17918 library_names_spec='$libname.ixlibrary $libname.a'
17919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17920 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'
17924 library_names_spec='${libname}${shared_ext}'
17925 dynamic_linker="$host_os ld.so"
17926 shlibpath_var=LIBRARY_PATH
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17938 # the default ld.so.conf also contains /usr/contrib/lib and
17939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17940 # libtool to hard-code these into programs
17943 cygwin* | mingw* | pw32*)
17944 version_type=windows
17949 case $GCC,$host_os in
17950 yes,cygwin* | yes,mingw* | yes,pw32*)
17951 library_names_spec='$libname.dll.a'
17952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17953 postinstall_cmds='base_file=`basename \${file}`~
17954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17955 dldir=$destdir/`dirname \$dlpath`~
17956 test -d \$dldir || mkdir -p \$dldir~
17957 $install_prog $dir/$dlname \$dldir/$dlname~
17958 chmod a+x \$dldir/$dlname'
17959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17960 dlpath=$dir/\$dldll~
17962 shlibpath_overrides_runpath=yes
17966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17971 # MinGW DLLs use traditional 'lib' prefix
17972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17974 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17975 # It is most probably a Windows format PATH printed by
17976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17977 # path with ; separators, and with drive letters. We can handle the
17978 # drive letters (cygwin fileutils understands them), so leave them,
17979 # especially as we might pass files found there to a mingw objdump,
17980 # which wouldn't understand a cygwinified path. Ahh.
17981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17987 # pw32 DLLs use 'pw' prefix rather than 'lib'
17988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17997 dynamic_linker='Win32 ld.exe'
17998 # FIXME: first we should search . and the directory the executable is in
18002 darwin* | rhapsody*)
18003 dynamic_linker="$host_os dyld"
18004 version_type=darwin
18007 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18008 soname_spec='${libname}${release}${major}$shared_ext'
18009 shlibpath_overrides_runpath=yes
18010 shlibpath_var=DYLD_LIBRARY_PATH
18011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 shlibpath_var=LD_LIBRARY_PATH
18029 freebsd* | dragonfly*)
18030 # DragonFly does not have aout. When/if they implement a new
18031 # versioning mechanism, adjust this.
18032 if test -x /usr/bin/objformat; then
18033 objformat=`/usr/bin/objformat`
18036 freebsd[123]*) objformat=aout ;;
18037 *) objformat=elf ;;
18040 version_type=freebsd-$objformat
18041 case $version_type in
18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18052 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes
18057 freebsd3.[01]* | freebsdelf3.[01]*)
18058 shlibpath_overrides_runpath=yes
18059 hardcode_into_libs=yes
18061 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18062 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18063 shlibpath_overrides_runpath=no
18064 hardcode_into_libs=yes
18066 *) # from 4.6 on, and DragonFly
18067 shlibpath_overrides_runpath=yes
18068 hardcode_into_libs=yes
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 shlibpath_var=LD_LIBRARY_PATH
18080 hardcode_into_libs=yes
18083 hpux9* | hpux10* | hpux11*)
18084 # Give a soname corresponding to the major version so that dld.sl refuses to
18085 # link against other versions.
18092 hardcode_into_libs=yes
18093 dynamic_linker="$host_os dld.so"
18094 shlibpath_var=LD_LIBRARY_PATH
18095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18097 soname_spec='${libname}${release}${shared_ext}$major'
18098 if test "X$HPUX_IA64_MODE" = X32; then
18099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18107 hardcode_into_libs=yes
18108 dynamic_linker="$host_os dld.sl"
18109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112 soname_spec='${libname}${release}${shared_ext}$major'
18113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18118 dynamic_linker="$host_os dld.sl"
18119 shlibpath_var=SHLIB_PATH
18120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
18125 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18126 postinstall_cmds='chmod 555 $lib'
18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18134 soname_spec='${libname}${release}${shared_ext}$major'
18135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18136 shlibpath_var=LD_LIBRARY_PATH
18137 shlibpath_overrides_runpath=no
18138 hardcode_into_libs=yes
18141 irix5* | irix6* | nonstopux*)
18143 nonstopux*) version_type=nonstopux ;;
18145 if test "$lt_cv_prog_gnu_ld" = yes; then
18153 soname_spec='${libname}${release}${shared_ext}$major'
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18156 irix5* | nonstopux*)
18157 libsuff= shlibsuff=
18160 case $LD in # libtool.m4 will add one of these switches to LD
18161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18162 libsuff= shlibsuff= libmagic=32-bit;;
18163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18164 libsuff=32 shlibsuff=N32 libmagic=N32;;
18165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18166 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18167 *) libsuff= shlibsuff= libmagic=never-match;;
18171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18172 shlibpath_overrides_runpath=no
18173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18175 hardcode_into_libs=yes
18178 # No shared lib support for Linux oldld, aout, or coff.
18179 linux*oldld* | linux*aout* | linux*coff*)
18183 # This must be Linux ELF.
18184 linux* | k*bsd*-gnu)
18188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18189 soname_spec='${libname}${release}${shared_ext}$major'
18190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18191 shlibpath_var=LD_LIBRARY_PATH
18192 shlibpath_overrides_runpath=no
18193 # This implies no fast_install, which is unacceptable.
18194 # Some rework will be needed to allow for fast_install
18195 # before this can be enabled.
18196 hardcode_into_libs=yes
18198 # find out which ABI we are using
18200 case "$host_cpu" in
18201 x86_64*|s390x*|powerpc64*)
18202 echo '#line __oline__ "configure"' > conftest.$ac_ext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18204 (eval $ac_compile) 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; then
18208 case `/usr/bin/file conftest.$ac_objext` in
18211 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18219 # Append ld.so.conf contents to the search path
18220 if test -f /etc/ld.so.conf; then
18221 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' ' '`
18222 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18225 # We used to test for /lib/ld.so.1 and disable shared libraries on
18226 # powerpc, because MkLinux only supported shared libraries with the
18227 # GNU dynamic linker. Since this was broken with cross compilers,
18228 # most powerpc-linux boxes support dynamic linking these days and
18229 # people can always --disable-shared, the test was removed, and we
18230 # assume the GNU/Linux dynamic linker is in use.
18231 dynamic_linker='GNU/Linux ld.so'
18238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18241 dynamic_linker='NetBSD (a.out) ld.so'
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18244 soname_spec='${libname}${release}${shared_ext}$major'
18245 dynamic_linker='NetBSD ld.elf_so'
18247 shlibpath_var=LD_LIBRARY_PATH
18248 shlibpath_overrides_runpath=yes
18249 hardcode_into_libs=yes
18254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18255 shlibpath_var=LD_LIBRARY_PATH
18256 shlibpath_overrides_runpath=yes
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18264 soname_spec='${libname}${release}${shared_ext}$major'
18265 shlibpath_var=LD_LIBRARY_PATH
18266 shlibpath_overrides_runpath=yes
18271 sys_lib_dlsearch_path_spec="/usr/lib"
18273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18276 *) need_version=no ;;
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18280 shlibpath_var=LD_LIBRARY_PATH
18281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18283 openbsd2.[89] | openbsd2.[89].*)
18284 shlibpath_overrides_runpath=no
18287 shlibpath_overrides_runpath=yes
18291 shlibpath_overrides_runpath=yes
18296 libname_spec='$name'
18299 library_names_spec='$libname${shared_ext} $libname.a'
18300 dynamic_linker='OS/2 ld.exe'
18301 shlibpath_var=LIBPATH
18304 osf3* | osf4* | osf5*)
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310 shlibpath_var=LD_LIBRARY_PATH
18311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec='${libname}${release}${shared_ext}$major'
18325 shlibpath_var=LD_LIBRARY_PATH
18326 shlibpath_overrides_runpath=yes
18327 hardcode_into_libs=yes
18328 # ldd complains unless libraries are executable
18329 postinstall_cmds='chmod +x $lib'
18334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18336 shlibpath_var=LD_LIBRARY_PATH
18337 shlibpath_overrides_runpath=yes
18338 if test "$with_gnu_ld" = yes; then
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347 soname_spec='${libname}${release}${shared_ext}$major'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 case $host_vendor in
18351 shlibpath_overrides_runpath=no
18353 export_dynamic_flag_spec='${wl}-Blargedynsym'
18354 runpath_var=LD_RUN_PATH
18362 shlibpath_overrides_runpath=no
18363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18369 if test -d /usr/nec ;then
18371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18372 soname_spec='$libname${shared_ext}.$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18378 version_type=freebsd-elf
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18382 soname_spec='${libname}${release}${shared_ext}$major'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 hardcode_into_libs=yes
18385 if test "$with_gnu_ld" = yes; then
18386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18387 shlibpath_overrides_runpath=no
18389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18390 shlibpath_overrides_runpath=yes
18393 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18397 sys_lib_dlsearch_path_spec='/usr/lib'
18402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18403 soname_spec='${libname}${release}${shared_ext}$major'
18404 shlibpath_var=LD_LIBRARY_PATH
18411 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18412 echo "${ECHO_T}$dynamic_linker" >&6; }
18413 test "$dynamic_linker" = no && can_build_shared=no
18415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18416 if test "$GCC" = yes; then
18417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18420 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18422 hardcode_action_GCJ=
18423 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18424 test -n "$runpath_var_GCJ" || \
18425 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18427 # We can hardcode non-existant directories.
18428 if test "$hardcode_direct_GCJ" != no &&
18429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18430 # have to relink, otherwise we might link with an installed library
18431 # when we should be linking with a yet-to-be-installed one
18432 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18433 test "$hardcode_minus_L_GCJ" != no; then
18434 # Linking always hardcodes the temporary library directory.
18435 hardcode_action_GCJ=relink
18437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18438 hardcode_action_GCJ=immediate
18441 # We cannot hardcode anything, or else we can only hardcode existing
18443 hardcode_action_GCJ=unsupported
18445 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18446 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18448 if test "$hardcode_action_GCJ" = relink; then
18449 # Fast installation is not supported
18450 enable_fast_install=no
18451 elif test "$shlibpath_overrides_runpath" = yes ||
18452 test "$enable_shared" = no; then
18453 # Fast installation is not necessary
18454 enable_fast_install=needless
18458 # The else clause should only fire when bootstrapping the
18459 # libtool distribution, otherwise you forgot to ship ltmain.sh
18460 # with your package, and you will get complaints that there are
18461 # no rules to generate ltmain.sh.
18462 if test -f "$ltmain"; then
18463 # See if we are running on zsh, and set the options which allow our commands through
18464 # without removal of \ escapes.
18465 if test -n "${ZSH_VERSION+set}" ; then
18466 setopt NO_GLOB_SUBST
18468 # Now quote all the things that may contain metacharacters while being
18469 # careful not to overquote the AC_SUBSTed values. We take copies of the
18470 # variables and quote the copies for generation of the libtool script.
18471 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18475 deplibs_check_method reload_flag reload_cmds need_locks \
18476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18477 lt_cv_sys_global_symbol_to_c_name_address \
18478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18479 old_postinstall_cmds old_postuninstall_cmds \
18483 lt_prog_compiler_wl_GCJ \
18484 lt_prog_compiler_pic_GCJ \
18485 lt_prog_compiler_static_GCJ \
18486 lt_prog_compiler_no_builtin_flag_GCJ \
18487 export_dynamic_flag_spec_GCJ \
18488 thread_safe_flag_spec_GCJ \
18489 whole_archive_flag_spec_GCJ \
18490 enable_shared_with_static_runtimes_GCJ \
18491 old_archive_cmds_GCJ \
18492 old_archive_from_new_cmds_GCJ \
18493 predep_objects_GCJ \
18494 postdep_objects_GCJ \
18497 compiler_lib_search_path_GCJ \
18499 archive_expsym_cmds_GCJ \
18500 postinstall_cmds_GCJ \
18501 postuninstall_cmds_GCJ \
18502 old_archive_from_expsyms_cmds_GCJ \
18503 allow_undefined_flag_GCJ \
18504 no_undefined_flag_GCJ \
18505 export_symbols_cmds_GCJ \
18506 hardcode_libdir_flag_spec_GCJ \
18507 hardcode_libdir_flag_spec_ld_GCJ \
18508 hardcode_libdir_separator_GCJ \
18509 hardcode_automatic_GCJ \
18511 module_expsym_cmds_GCJ \
18512 lt_cv_prog_compiler_c_o_GCJ \
18513 fix_srcfile_path_GCJ \
18514 exclude_expsyms_GCJ \
18515 include_expsyms_GCJ; do
18518 old_archive_cmds_GCJ | \
18519 old_archive_from_new_cmds_GCJ | \
18520 archive_cmds_GCJ | \
18521 archive_expsym_cmds_GCJ | \
18522 module_cmds_GCJ | \
18523 module_expsym_cmds_GCJ | \
18524 old_archive_from_expsyms_cmds_GCJ | \
18525 export_symbols_cmds_GCJ | \
18526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527 postinstall_cmds | postuninstall_cmds | \
18528 old_postinstall_cmds | old_postuninstall_cmds | \
18529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530 # Double-quote double-evaled strings.
18531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18540 *'\$0 --fallback-echo"')
18541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18547 cat <<__EOF__ >> "$cfgfile"
18548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18552 # Shell to use when invoking shell scripts.
18555 # Whether or not to build shared libraries.
18556 build_libtool_libs=$enable_shared
18558 # Whether or not to build static libraries.
18559 build_old_libs=$enable_static
18561 # Whether or not to add -lc for building shared libraries.
18562 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18564 # Whether or not to disallow shared libs when runtime libs are static
18565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18567 # Whether or not to optimize for fast installation.
18568 fast_install=$enable_fast_install
18571 host_alias=$host_alias
18575 # The build system.
18576 build_alias=$build_alias
18580 # An echo program that does not interpret backslashes.
18585 AR_FLAGS=$lt_AR_FLAGS
18590 # LTCC compiler flags.
18591 LTCFLAGS=$lt_LTCFLAGS
18593 # A language-specific compiler.
18594 CC=$lt_compiler_GCJ
18596 # Is the compiler the GNU C compiler?
18599 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18600 gcc_ver=\`gcc -dumpversion\`
18605 # The linker used to build libraries.
18608 # Whether we need hard or soft links.
18611 # A BSD-compatible nm program.
18614 # A symbol stripping program
18617 # Used to examine libraries when file_magic_cmd begins "file"
18618 MAGIC_CMD=$MAGIC_CMD
18620 # Used on cygwin: DLL creation program.
18623 # Used on cygwin: object dumper.
18626 # Used on cygwin: assembler.
18629 # The name of the directory that contains temporary libtool files.
18632 # How to create reloadable object files.
18633 reload_flag=$lt_reload_flag
18634 reload_cmds=$lt_reload_cmds
18636 # How to pass a linker flag through the compiler.
18637 wl=$lt_lt_prog_compiler_wl_GCJ
18639 # Object file suffix (normally "o").
18640 objext="$ac_objext"
18642 # Old archive suffix (normally "a").
18645 # Shared library suffix (normally ".so").
18646 shrext_cmds='$shrext_cmds'
18648 # Executable file suffix (normally "").
18651 # Additional compiler flags for building library objects.
18652 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18655 # What is the maximum length of a command?
18656 max_cmd_len=$lt_cv_sys_max_cmd_len
18658 # Does compiler simultaneously support -c and -o options?
18659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18661 # Must we lock files when doing compilation?
18662 need_locks=$lt_need_locks
18664 # Do we need the lib prefix for modules?
18665 need_lib_prefix=$need_lib_prefix
18667 # Do we need a version for libraries?
18668 need_version=$need_version
18670 # Whether dlopen is supported.
18671 dlopen_support=$enable_dlopen
18673 # Whether dlopen of programs is supported.
18674 dlopen_self=$enable_dlopen_self
18676 # Whether dlopen of statically linked programs is supported.
18677 dlopen_self_static=$enable_dlopen_self_static
18679 # Compiler flag to prevent dynamic linking.
18680 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18682 # Compiler flag to turn off builtin functions.
18683 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18685 # Compiler flag to allow reflexive dlopens.
18686 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18688 # Compiler flag to generate shared objects directly from archives.
18689 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18691 # Compiler flag to generate thread-safe objects.
18692 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18694 # Library versioning type.
18695 version_type=$version_type
18697 # Format of library name prefix.
18698 libname_spec=$lt_libname_spec
18700 # List of archive names. First name is the real one, the rest are links.
18701 # The last name is the one that the linker finds with -lNAME.
18702 library_names_spec=$lt_library_names_spec
18704 # The coded name of the library, if different from the real name.
18705 soname_spec=$lt_soname_spec
18707 # Commands used to build and install an old-style archive.
18709 old_archive_cmds=$lt_old_archive_cmds_GCJ
18710 old_postinstall_cmds=$lt_old_postinstall_cmds
18711 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18713 # Create an old-style archive from a shared archive.
18714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18716 # Create a temporary old-style archive to link instead of a shared archive.
18717 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18719 # Commands used to build and install a shared archive.
18720 archive_cmds=$lt_archive_cmds_GCJ
18721 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18722 postinstall_cmds=$lt_postinstall_cmds
18723 postuninstall_cmds=$lt_postuninstall_cmds
18725 # Commands used to build a loadable module (assumed same as above if empty)
18726 module_cmds=$lt_module_cmds_GCJ
18727 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18729 # Commands to strip libraries.
18730 old_striplib=$lt_old_striplib
18731 striplib=$lt_striplib
18733 # Dependencies to place before the objects being linked to create a
18735 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18737 # Dependencies to place after the objects being linked to create a
18739 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18741 # Dependencies to place before the objects being linked to create a
18743 predeps=$lt_predeps_GCJ
18745 # Dependencies to place after the objects being linked to create a
18747 postdeps=$lt_postdeps_GCJ
18749 # The library search path used internally by the compiler when linking
18750 # a shared library.
18751 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"\`
18753 # Method to check whether dependent libraries are shared objects.
18754 deplibs_check_method=$lt_deplibs_check_method
18756 # Command to use when deplibs_check_method == file_magic.
18757 file_magic_cmd=$lt_file_magic_cmd
18759 # Flag that allows shared libraries with undefined symbols to be built.
18760 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18762 # Flag that forces no undefined symbols.
18763 no_undefined_flag=$lt_no_undefined_flag_GCJ
18765 # Commands used to finish a libtool library installation in a directory.
18766 finish_cmds=$lt_finish_cmds
18768 # Same as above, but a single script fragment to be evaled but not shown.
18769 finish_eval=$lt_finish_eval
18771 # Take the output of nm and produce a listing of raw symbols and C names.
18772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18774 # Transform the output of nm in a proper C declaration
18775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18777 # Transform the output of nm in a C name address pair
18778 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18780 # This is the shared library runtime path variable.
18781 runpath_var=$runpath_var
18783 # This is the shared library path variable.
18784 shlibpath_var=$shlibpath_var
18786 # Is shlibpath searched before the hard-coded library search path?
18787 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18789 # How to hardcode a shared library path into an executable.
18790 hardcode_action=$hardcode_action_GCJ
18792 # Whether we should hardcode library paths into libraries.
18793 hardcode_into_libs=$hardcode_into_libs
18795 # Flag to hardcode \$libdir into a binary during linking.
18796 # This must work even if \$libdir does not exist.
18797 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18799 # If ld is used when linking, flag to hardcode \$libdir into
18800 # a binary during linking. This must work even if \$libdir does
18802 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18804 # Whether we need a single -rpath flag with a separated argument.
18805 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18807 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18808 # resulting binary.
18809 hardcode_direct=$hardcode_direct_GCJ
18811 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18812 # resulting binary.
18813 hardcode_minus_L=$hardcode_minus_L_GCJ
18815 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18816 # the resulting binary.
18817 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18819 # Set to yes if building a shared library automatically hardcodes DIR into the library
18820 # and all subsequent libraries and executables linked against it.
18821 hardcode_automatic=$hardcode_automatic_GCJ
18823 # Variables whose values should be saved in libtool wrapper scripts and
18824 # restored at relink time.
18825 variables_saved_for_relink="$variables_saved_for_relink"
18827 # Whether libtool must link a program against all its dependency libraries.
18828 link_all_deplibs=$link_all_deplibs_GCJ
18830 # Compile-time system search path for libraries
18831 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"\`
18833 # Run-time system search path for libraries
18834 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18836 # Fix the shell variable \$srcfile for the compiler.
18837 fix_srcfile_path=$lt_fix_srcfile_path
18839 # Set to yes if exported symbols are required.
18840 always_export_symbols=$always_export_symbols_GCJ
18842 # The commands to list exported symbols.
18843 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18845 # The commands to extract the exported symbol list from a shared archive.
18846 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18848 # Symbols that should not be listed in the preloaded symbols.
18849 exclude_expsyms=$lt_exclude_expsyms_GCJ
18851 # Symbols that must always be exported.
18852 include_expsyms=$lt_include_expsyms_GCJ
18854 # ### END LIBTOOL TAG CONFIG: $tagname
18860 # If there is no Makefile yet, we rely on a make rule to execute
18861 # `config.status --recheck' to rerun these tests and create the
18862 # libtool script then.
18863 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18864 if test -f "$ltmain_in"; then
18865 test -f Makefile && make "$ltmain"
18871 ac_cpp='$CPP $CPPFLAGS'
18872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18886 # Source file extension for RC test sources.
18889 # Object file extension for compiled RC test sources.
18893 # Code to be used in simple compile tests
18894 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18896 # Code to be used in simple link tests
18897 lt_simple_link_test_code="$lt_simple_compile_test_code"
18899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18901 # If no C compiler was specified, use CC.
18904 # If no C compiler flags were specified, use CFLAGS.
18905 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18907 # Allow CC to be a program name with arguments.
18911 # save warnings/boilerplate of simple test code
18912 ac_outfile=conftest.$ac_objext
18913 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18914 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18915 _lt_compiler_boilerplate=`cat conftest.err`
18918 ac_outfile=conftest.$ac_objext
18919 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18920 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18921 _lt_linker_boilerplate=`cat conftest.err`
18925 # Allow CC to be a program name with arguments.
18930 for cc_temp in $compiler""; do
18932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18938 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18940 lt_cv_prog_compiler_c_o_RC=yes
18942 # The else clause should only fire when bootstrapping the
18943 # libtool distribution, otherwise you forgot to ship ltmain.sh
18944 # with your package, and you will get complaints that there are
18945 # no rules to generate ltmain.sh.
18946 if test -f "$ltmain"; then
18947 # See if we are running on zsh, and set the options which allow our commands through
18948 # without removal of \ escapes.
18949 if test -n "${ZSH_VERSION+set}" ; then
18950 setopt NO_GLOB_SUBST
18952 # Now quote all the things that may contain metacharacters while being
18953 # careful not to overquote the AC_SUBSTed values. We take copies of the
18954 # variables and quote the copies for generation of the libtool script.
18955 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18959 deplibs_check_method reload_flag reload_cmds need_locks \
18960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18961 lt_cv_sys_global_symbol_to_c_name_address \
18962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18963 old_postinstall_cmds old_postuninstall_cmds \
18967 lt_prog_compiler_wl_RC \
18968 lt_prog_compiler_pic_RC \
18969 lt_prog_compiler_static_RC \
18970 lt_prog_compiler_no_builtin_flag_RC \
18971 export_dynamic_flag_spec_RC \
18972 thread_safe_flag_spec_RC \
18973 whole_archive_flag_spec_RC \
18974 enable_shared_with_static_runtimes_RC \
18975 old_archive_cmds_RC \
18976 old_archive_from_new_cmds_RC \
18977 predep_objects_RC \
18978 postdep_objects_RC \
18981 compiler_lib_search_path_RC \
18983 archive_expsym_cmds_RC \
18984 postinstall_cmds_RC \
18985 postuninstall_cmds_RC \
18986 old_archive_from_expsyms_cmds_RC \
18987 allow_undefined_flag_RC \
18988 no_undefined_flag_RC \
18989 export_symbols_cmds_RC \
18990 hardcode_libdir_flag_spec_RC \
18991 hardcode_libdir_flag_spec_ld_RC \
18992 hardcode_libdir_separator_RC \
18993 hardcode_automatic_RC \
18995 module_expsym_cmds_RC \
18996 lt_cv_prog_compiler_c_o_RC \
18997 fix_srcfile_path_RC \
18998 exclude_expsyms_RC \
18999 include_expsyms_RC; do
19002 old_archive_cmds_RC | \
19003 old_archive_from_new_cmds_RC | \
19004 archive_cmds_RC | \
19005 archive_expsym_cmds_RC | \
19007 module_expsym_cmds_RC | \
19008 old_archive_from_expsyms_cmds_RC | \
19009 export_symbols_cmds_RC | \
19010 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19011 postinstall_cmds | postuninstall_cmds | \
19012 old_postinstall_cmds | old_postuninstall_cmds | \
19013 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19014 # Double-quote double-evaled strings.
19015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19024 *'\$0 --fallback-echo"')
19025 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19031 cat <<__EOF__ >> "$cfgfile"
19032 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19034 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19036 # Shell to use when invoking shell scripts.
19039 # Whether or not to build shared libraries.
19040 build_libtool_libs=$enable_shared
19042 # Whether or not to build static libraries.
19043 build_old_libs=$enable_static
19045 # Whether or not to add -lc for building shared libraries.
19046 build_libtool_need_lc=$archive_cmds_need_lc_RC
19048 # Whether or not to disallow shared libs when runtime libs are static
19049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19051 # Whether or not to optimize for fast installation.
19052 fast_install=$enable_fast_install
19055 host_alias=$host_alias
19059 # The build system.
19060 build_alias=$build_alias
19064 # An echo program that does not interpret backslashes.
19069 AR_FLAGS=$lt_AR_FLAGS
19074 # LTCC compiler flags.
19075 LTCFLAGS=$lt_LTCFLAGS
19077 # A language-specific compiler.
19080 # Is the compiler the GNU C compiler?
19083 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19084 gcc_ver=\`gcc -dumpversion\`
19089 # The linker used to build libraries.
19092 # Whether we need hard or soft links.
19095 # A BSD-compatible nm program.
19098 # A symbol stripping program
19101 # Used to examine libraries when file_magic_cmd begins "file"
19102 MAGIC_CMD=$MAGIC_CMD
19104 # Used on cygwin: DLL creation program.
19107 # Used on cygwin: object dumper.
19110 # Used on cygwin: assembler.
19113 # The name of the directory that contains temporary libtool files.
19116 # How to create reloadable object files.
19117 reload_flag=$lt_reload_flag
19118 reload_cmds=$lt_reload_cmds
19120 # How to pass a linker flag through the compiler.
19121 wl=$lt_lt_prog_compiler_wl_RC
19123 # Object file suffix (normally "o").
19124 objext="$ac_objext"
19126 # Old archive suffix (normally "a").
19129 # Shared library suffix (normally ".so").
19130 shrext_cmds='$shrext_cmds'
19132 # Executable file suffix (normally "").
19135 # Additional compiler flags for building library objects.
19136 pic_flag=$lt_lt_prog_compiler_pic_RC
19139 # What is the maximum length of a command?
19140 max_cmd_len=$lt_cv_sys_max_cmd_len
19142 # Does compiler simultaneously support -c and -o options?
19143 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19145 # Must we lock files when doing compilation?
19146 need_locks=$lt_need_locks
19148 # Do we need the lib prefix for modules?
19149 need_lib_prefix=$need_lib_prefix
19151 # Do we need a version for libraries?
19152 need_version=$need_version
19154 # Whether dlopen is supported.
19155 dlopen_support=$enable_dlopen
19157 # Whether dlopen of programs is supported.
19158 dlopen_self=$enable_dlopen_self
19160 # Whether dlopen of statically linked programs is supported.
19161 dlopen_self_static=$enable_dlopen_self_static
19163 # Compiler flag to prevent dynamic linking.
19164 link_static_flag=$lt_lt_prog_compiler_static_RC
19166 # Compiler flag to turn off builtin functions.
19167 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19169 # Compiler flag to allow reflexive dlopens.
19170 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19172 # Compiler flag to generate shared objects directly from archives.
19173 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19175 # Compiler flag to generate thread-safe objects.
19176 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19178 # Library versioning type.
19179 version_type=$version_type
19181 # Format of library name prefix.
19182 libname_spec=$lt_libname_spec
19184 # List of archive names. First name is the real one, the rest are links.
19185 # The last name is the one that the linker finds with -lNAME.
19186 library_names_spec=$lt_library_names_spec
19188 # The coded name of the library, if different from the real name.
19189 soname_spec=$lt_soname_spec
19191 # Commands used to build and install an old-style archive.
19193 old_archive_cmds=$lt_old_archive_cmds_RC
19194 old_postinstall_cmds=$lt_old_postinstall_cmds
19195 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19197 # Create an old-style archive from a shared archive.
19198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19200 # Create a temporary old-style archive to link instead of a shared archive.
19201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19203 # Commands used to build and install a shared archive.
19204 archive_cmds=$lt_archive_cmds_RC
19205 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19206 postinstall_cmds=$lt_postinstall_cmds
19207 postuninstall_cmds=$lt_postuninstall_cmds
19209 # Commands used to build a loadable module (assumed same as above if empty)
19210 module_cmds=$lt_module_cmds_RC
19211 module_expsym_cmds=$lt_module_expsym_cmds_RC
19213 # Commands to strip libraries.
19214 old_striplib=$lt_old_striplib
19215 striplib=$lt_striplib
19217 # Dependencies to place before the objects being linked to create a
19219 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19221 # Dependencies to place after the objects being linked to create a
19223 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19225 # Dependencies to place before the objects being linked to create a
19227 predeps=$lt_predeps_RC
19229 # Dependencies to place after the objects being linked to create a
19231 postdeps=$lt_postdeps_RC
19233 # The library search path used internally by the compiler when linking
19234 # a shared library.
19235 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"\`
19237 # Method to check whether dependent libraries are shared objects.
19238 deplibs_check_method=$lt_deplibs_check_method
19240 # Command to use when deplibs_check_method == file_magic.
19241 file_magic_cmd=$lt_file_magic_cmd
19243 # Flag that allows shared libraries with undefined symbols to be built.
19244 allow_undefined_flag=$lt_allow_undefined_flag_RC
19246 # Flag that forces no undefined symbols.
19247 no_undefined_flag=$lt_no_undefined_flag_RC
19249 # Commands used to finish a libtool library installation in a directory.
19250 finish_cmds=$lt_finish_cmds
19252 # Same as above, but a single script fragment to be evaled but not shown.
19253 finish_eval=$lt_finish_eval
19255 # Take the output of nm and produce a listing of raw symbols and C names.
19256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19258 # Transform the output of nm in a proper C declaration
19259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19261 # Transform the output of nm in a C name address pair
19262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19264 # This is the shared library runtime path variable.
19265 runpath_var=$runpath_var
19267 # This is the shared library path variable.
19268 shlibpath_var=$shlibpath_var
19270 # Is shlibpath searched before the hard-coded library search path?
19271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19273 # How to hardcode a shared library path into an executable.
19274 hardcode_action=$hardcode_action_RC
19276 # Whether we should hardcode library paths into libraries.
19277 hardcode_into_libs=$hardcode_into_libs
19279 # Flag to hardcode \$libdir into a binary during linking.
19280 # This must work even if \$libdir does not exist.
19281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19283 # If ld is used when linking, flag to hardcode \$libdir into
19284 # a binary during linking. This must work even if \$libdir does
19286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19288 # Whether we need a single -rpath flag with a separated argument.
19289 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19291 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19292 # resulting binary.
19293 hardcode_direct=$hardcode_direct_RC
19295 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19296 # resulting binary.
19297 hardcode_minus_L=$hardcode_minus_L_RC
19299 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19300 # the resulting binary.
19301 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19303 # Set to yes if building a shared library automatically hardcodes DIR into the library
19304 # and all subsequent libraries and executables linked against it.
19305 hardcode_automatic=$hardcode_automatic_RC
19307 # Variables whose values should be saved in libtool wrapper scripts and
19308 # restored at relink time.
19309 variables_saved_for_relink="$variables_saved_for_relink"
19311 # Whether libtool must link a program against all its dependency libraries.
19312 link_all_deplibs=$link_all_deplibs_RC
19314 # Compile-time system search path for libraries
19315 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"\`
19317 # Run-time system search path for libraries
19318 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19320 # Fix the shell variable \$srcfile for the compiler.
19321 fix_srcfile_path=$lt_fix_srcfile_path
19323 # Set to yes if exported symbols are required.
19324 always_export_symbols=$always_export_symbols_RC
19326 # The commands to list exported symbols.
19327 export_symbols_cmds=$lt_export_symbols_cmds_RC
19329 # The commands to extract the exported symbol list from a shared archive.
19330 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19332 # Symbols that should not be listed in the preloaded symbols.
19333 exclude_expsyms=$lt_exclude_expsyms_RC
19335 # Symbols that must always be exported.
19336 include_expsyms=$lt_include_expsyms_RC
19338 # ### END LIBTOOL TAG CONFIG: $tagname
19344 # If there is no Makefile yet, we rely on a make rule to execute
19345 # `config.status --recheck' to rerun these tests and create the
19346 # libtool script then.
19347 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19348 if test -f "$ltmain_in"; then
19349 test -f Makefile && make "$ltmain"
19355 ac_cpp='$CPP $CPPFLAGS'
19356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19365 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19366 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19367 { (exit 1); exit 1; }; }
19371 # Append the new tag name to the list of available tags.
19372 if test -n "$tagname" ; then
19373 available_tags="$available_tags $tagname"
19379 # Now substitute the updated list of available tags.
19380 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19381 mv "${ofile}T" "$ofile"
19385 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19386 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19387 { (exit 1); exit 1; }; }
19393 # This can be used to rebuild libtool when needed
19394 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19396 # Always use our own libtool.
19397 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19399 # Prevent multiple expansion
19422 ac_cpp='$CPP $CPPFLAGS'
19423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19429 ac_cpp='$CPP $CPPFLAGS'
19430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19433 if test -n "$ac_tool_prefix"; then
19434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19438 if test "${ac_cv_prog_CC+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 if test -n "$CC"; then
19442 ac_cv_prog_CC="$CC" # Let the user override the test.
19444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19445 for as_dir in $PATH
19448 test -z "$as_dir" && as_dir=.
19449 for ac_exec_ext in '' $ac_executable_extensions; do
19450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19462 if test -n "$CC"; then
19463 { echo "$as_me:$LINENO: result: $CC" >&5
19464 echo "${ECHO_T}$CC" >&6; }
19466 { echo "$as_me:$LINENO: result: no" >&5
19467 echo "${ECHO_T}no" >&6; }
19472 if test -z "$ac_cv_prog_CC"; then
19474 # Extract the first word of "gcc", so it can be a program name with args.
19475 set dummy gcc; ac_word=$2
19476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 if test -n "$ac_ct_CC"; then
19482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19485 for as_dir in $PATH
19488 test -z "$as_dir" && as_dir=.
19489 for ac_exec_ext in '' $ac_executable_extensions; do
19490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19491 ac_cv_prog_ac_ct_CC="gcc"
19492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19502 if test -n "$ac_ct_CC"; then
19503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19504 echo "${ECHO_T}$ac_ct_CC" >&6; }
19506 { echo "$as_me:$LINENO: result: no" >&5
19507 echo "${ECHO_T}no" >&6; }
19510 if test "x$ac_ct_CC" = x; then
19513 case $cross_compiling:$ac_tool_warned in
19515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19516 whose name does not start with the host triplet. If you think this
19517 configuration is useful to you, please write to autoconf@gnu.org." >&5
19518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19519 whose name does not start with the host triplet. If you think this
19520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19521 ac_tool_warned=yes ;;
19526 CC="$ac_cv_prog_CC"
19529 if test -z "$CC"; then
19530 if test -n "$ac_tool_prefix"; then
19531 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19532 set dummy ${ac_tool_prefix}cc; ac_word=$2
19533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19535 if test "${ac_cv_prog_CC+set}" = set; then
19536 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 if test -n "$CC"; then
19539 ac_cv_prog_CC="$CC" # Let the user override the test.
19541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19542 for as_dir in $PATH
19545 test -z "$as_dir" && as_dir=.
19546 for ac_exec_ext in '' $ac_executable_extensions; do
19547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19548 ac_cv_prog_CC="${ac_tool_prefix}cc"
19549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19559 if test -n "$CC"; then
19560 { echo "$as_me:$LINENO: result: $CC" >&5
19561 echo "${ECHO_T}$CC" >&6; }
19563 { echo "$as_me:$LINENO: result: no" >&5
19564 echo "${ECHO_T}no" >&6; }
19570 if test -z "$CC"; then
19571 # Extract the first word of "cc", so it can be a program name with args.
19572 set dummy cc; ac_word=$2
19573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19575 if test "${ac_cv_prog_CC+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 if test -n "$CC"; then
19579 ac_cv_prog_CC="$CC" # Let the user override the test.
19581 ac_prog_rejected=no
19582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19583 for as_dir in $PATH
19586 test -z "$as_dir" && as_dir=.
19587 for ac_exec_ext in '' $ac_executable_extensions; do
19588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19590 ac_prog_rejected=yes
19594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19601 if test $ac_prog_rejected = yes; then
19602 # We found a bogon in the path, so make sure we never use it.
19603 set dummy $ac_cv_prog_CC
19605 if test $@%:@ != 0; then
19606 # We chose a different compiler from the bogus one.
19607 # However, it has the same basename, so the bogon will be chosen
19608 # first if we set CC to just the basename; use the full file name.
19610 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19616 if test -n "$CC"; then
19617 { echo "$as_me:$LINENO: result: $CC" >&5
19618 echo "${ECHO_T}$CC" >&6; }
19620 { echo "$as_me:$LINENO: result: no" >&5
19621 echo "${ECHO_T}no" >&6; }
19626 if test -z "$CC"; then
19627 if test -n "$ac_tool_prefix"; then
19628 for ac_prog in cl.exe
19630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19634 if test "${ac_cv_prog_CC+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 if test -n "$CC"; then
19638 ac_cv_prog_CC="$CC" # Let the user override the test.
19640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19641 for as_dir in $PATH
19644 test -z "$as_dir" && as_dir=.
19645 for ac_exec_ext in '' $ac_executable_extensions; do
19646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19658 if test -n "$CC"; then
19659 { echo "$as_me:$LINENO: result: $CC" >&5
19660 echo "${ECHO_T}$CC" >&6; }
19662 { echo "$as_me:$LINENO: result: no" >&5
19663 echo "${ECHO_T}no" >&6; }
19667 test -n "$CC" && break
19670 if test -z "$CC"; then
19672 for ac_prog in cl.exe
19674 # Extract the first word of "$ac_prog", so it can be a program name with args.
19675 set dummy $ac_prog; ac_word=$2
19676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 if test -n "$ac_ct_CC"; then
19682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19685 for as_dir in $PATH
19688 test -z "$as_dir" && as_dir=.
19689 for ac_exec_ext in '' $ac_executable_extensions; do
19690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19691 ac_cv_prog_ac_ct_CC="$ac_prog"
19692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19702 if test -n "$ac_ct_CC"; then
19703 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19704 echo "${ECHO_T}$ac_ct_CC" >&6; }
19706 { echo "$as_me:$LINENO: result: no" >&5
19707 echo "${ECHO_T}no" >&6; }
19711 test -n "$ac_ct_CC" && break
19714 if test "x$ac_ct_CC" = x; then
19717 case $cross_compiling:$ac_tool_warned in
19719 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19720 whose name does not start with the host triplet. If you think this
19721 configuration is useful to you, please write to autoconf@gnu.org." >&5
19722 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19723 whose name does not start with the host triplet. If you think this
19724 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19725 ac_tool_warned=yes ;;
19734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19735 See \`config.log' for more details." >&5
19736 echo "$as_me: error: no acceptable C compiler found in \$PATH
19737 See \`config.log' for more details." >&2;}
19738 { (exit 1); exit 1; }; }
19740 # Provide some information about the compiler.
19741 echo "$as_me:$LINENO: checking for C compiler version" >&5
19742 ac_compiler=`set X $ac_compile; echo $2`
19743 { (ac_try="$ac_compiler --version >&5"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_compiler --version >&5") 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }
19753 { (ac_try="$ac_compiler -v >&5"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_compiler -v >&5") 2>&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }
19763 { (ac_try="$ac_compiler -V >&5"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compiler -V >&5") 2>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }
19774 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19775 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19776 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19797 rm -f conftest.$ac_objext
19798 if { (ac_try="$ac_compile"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_compile") 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } && {
19811 test -z "$ac_c_werror_flag" ||
19812 test ! -s conftest.err
19813 } && test -s conftest.$ac_objext; then
19814 ac_compiler_gnu=yes
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19826 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19827 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19828 GCC=`test $ac_compiler_gnu = yes && echo yes`
19829 ac_test_CFLAGS=${CFLAGS+set}
19830 ac_save_CFLAGS=$CFLAGS
19831 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19832 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19833 if test "${ac_cv_prog_cc_g+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 ac_save_c_werror_flag=$ac_c_werror_flag
19837 ac_c_werror_flag=yes
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_compile") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest.$ac_objext; then
19872 ac_cv_prog_cc_g=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19893 rm -f conftest.$ac_objext
19894 if { (ac_try="$ac_compile"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_compile") 2>conftest.er1
19902 grep -v '^ *+' conftest.er1 >conftest.err
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } && {
19907 test -z "$ac_c_werror_flag" ||
19908 test ! -s conftest.err
19909 } && test -s conftest.$ac_objext; then
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_c_werror_flag=$ac_save_c_werror_flag
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_compile") 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && {
19946 test -z "$ac_c_werror_flag" ||
19947 test ! -s conftest.err
19948 } && test -s conftest.$ac_objext; then
19949 ac_cv_prog_cc_g=yes
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964 ac_c_werror_flag=$ac_save_c_werror_flag
19966 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19968 if test "$ac_test_CFLAGS" = set; then
19969 CFLAGS=$ac_save_CFLAGS
19970 elif test $ac_cv_prog_cc_g = yes; then
19971 if test "$GCC" = yes; then
19977 if test "$GCC" = yes; then
19983 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19984 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19985 if test "${ac_cv_prog_cc_c89+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 ac_cv_prog_cc_c89=no
19990 cat >conftest.$ac_ext <<_ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19996 #include <stdarg.h>
19998 #include <sys/types.h>
19999 #include <sys/stat.h>
20000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20001 struct buf { int x; };
20002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20003 static char *e (p, i)
20009 static char *f (char * (*g) (char **, int), char **p, ...)
20014 s = g (p, va_arg (v,int));
20019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20020 function prototypes and stuff, but not '\xHH' hex character constants.
20021 These don't provoke an error unfortunately, instead are silently treated
20022 as 'x'. The following induces an error, until -std is added to get
20023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20024 array size at least. It's necessary to write '\x00'==0 to get something
20025 that's true only with -std. */
20026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20029 inside strings and character constants. */
20031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20033 int test (int i, double x);
20034 struct s1 {int (*f) (int a);};
20035 struct s2 {int (*f) (double a);};
20036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20050 CC="$ac_save_CC $ac_arg"
20051 rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_compile") 2>conftest.er1
20060 grep -v '^ *+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && {
20065 test -z "$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20067 } && test -s conftest.$ac_objext; then
20068 ac_cv_prog_cc_c89=$ac_arg
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20076 rm -f core conftest.err conftest.$ac_objext
20077 test "x$ac_cv_prog_cc_c89" != "xno" && break
20079 rm -f conftest.$ac_ext
20084 case "x$ac_cv_prog_cc_c89" in
20086 { echo "$as_me:$LINENO: result: none needed" >&5
20087 echo "${ECHO_T}none needed" >&6; } ;;
20089 { echo "$as_me:$LINENO: result: unsupported" >&5
20090 echo "${ECHO_T}unsupported" >&6; } ;;
20092 CC="$CC $ac_cv_prog_cc_c89"
20093 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20094 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20104 depcc="$CC" am_compiler_list=
20106 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20107 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20108 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20112 # We make a subdir and do the tests there. Otherwise we can end up
20113 # making bogus files that we don't know about and never remove. For
20114 # instance it was reported that on HP-UX the gcc test will end up
20115 # making a dummy file named `D' -- because `-MD' means `put the output
20118 # Copy depcomp to subdir because otherwise we won't find it if we're
20119 # using a relative directory.
20120 cp "$am_depcomp" conftest.dir
20122 # We will build objects and dependencies in a subdirectory because
20123 # it helps to detect inapplicable dependency modes. For instance
20124 # both Tru64's cc and ICC support -MD to output dependencies as a
20125 # side effect of compilation, but ICC will put the dependencies in
20126 # the current directory while Tru64 will put them in the object
20130 am_cv_CC_dependencies_compiler_type=none
20131 if test "$am_compiler_list" = ""; then
20132 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20134 for depmode in $am_compiler_list; do
20135 # Setup a source with many dependencies, because some compilers
20136 # like to wrap large dependency lists on column 80 (with \), and
20137 # we should not choose a depcomp mode which is confused by this.
20139 # We need to recreate these files for each test, as the compiler may
20140 # overwrite some of them when testing with obscure command lines.
20141 # This happens at least with the AIX C compiler.
20143 for i in 1 2 3 4 5 6; do
20144 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20146 # Solaris 8's {/usr,}/bin/sh.
20147 touch sub/conftst$i.h
20149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20153 # after this tag, mechanisms are not by side-effect, so they'll
20154 # only be used when explicitly requested
20155 if test "x$enable_dependency_tracking" = xyes; then
20163 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20164 # mode. It turns out that the SunPro C++ compiler does not properly
20165 # handle `-M -o', and we need to detect this.
20166 if depmode=$depmode \
20167 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20169 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20170 >/dev/null 2>conftest.err &&
20171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20173 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20175 # icc doesn't choke on unknown options, it will just issue warnings
20176 # or remarks (even with -Werror). So we grep stderr for any message
20177 # that says an option was ignored or not supported.
20178 # When given -MP, icc 7.0 and 7.1 complain thusly:
20179 # icc: Command line warning: ignoring option '-M'; no argument required
20180 # The diagnosis changed in icc 8.0:
20181 # icc: Command line remark: option '-MP' not supported
20182 if (grep 'ignoring option' conftest.err ||
20183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20184 am_cv_CC_dependencies_compiler_type=$depmode
20191 rm -rf conftest.dir
20193 am_cv_CC_dependencies_compiler_type=none
20197 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20198 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20202 test "x$enable_dependency_tracking" != xno \
20203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20204 am__fastdepCC_TRUE=
20205 am__fastdepCC_FALSE='#'
20207 am__fastdepCC_TRUE='#'
20208 am__fastdepCC_FALSE=
20213 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20214 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20215 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20216 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 cat >conftest.make <<\_ACEOF
20222 @echo '@@@%%%=$(MAKE)=@@@%%%'
20224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20226 *@@@%%%=?*=@@@%%%*)
20227 eval ac_cv_prog_make_${ac_make}_set=yes;;
20229 eval ac_cv_prog_make_${ac_make}_set=no;;
20231 rm -f conftest.make
20233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20234 { echo "$as_me:$LINENO: result: yes" >&5
20235 echo "${ECHO_T}yes" >&6; }
20238 { echo "$as_me:$LINENO: result: no" >&5
20239 echo "${ECHO_T}no" >&6; }
20240 SET_MAKE="MAKE=${MAKE-make}"
20244 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20245 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20246 if test "${ac_cv_header_stdc+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <stdlib.h>
20256 #include <stdarg.h>
20257 #include <string.h>
20268 rm -f conftest.$ac_objext
20269 if { (ac_try="$ac_compile"
20270 case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275 (eval "$ac_compile") 2>conftest.er1
20277 grep -v '^ *+' conftest.er1 >conftest.err
20279 cat conftest.err >&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } && {
20282 test -z "$ac_c_werror_flag" ||
20283 test ! -s conftest.err
20284 } && test -s conftest.$ac_objext; then
20285 ac_cv_header_stdc=yes
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20290 ac_cv_header_stdc=no
20293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295 if test $ac_cv_header_stdc = yes; then
20296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 #include <string.h>
20306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20307 $EGREP "memchr" >/dev/null 2>&1; then
20310 ac_cv_header_stdc=no
20316 if test $ac_cv_header_stdc = yes; then
20317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20318 cat >conftest.$ac_ext <<_ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 #include <stdlib.h>
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328 $EGREP "free" >/dev/null 2>&1; then
20331 ac_cv_header_stdc=no
20337 if test $ac_cv_header_stdc = yes; then
20338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20339 if test "$cross_compiling" = yes; then
20342 cat >conftest.$ac_ext <<_ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h. */
20349 #include <stdlib.h>
20350 #if ((' ' & 0x0FF) == 0x020)
20351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20354 # define ISLOWER(c) \
20355 (('a' <= (c) && (c) <= 'i') \
20356 || ('j' <= (c) && (c) <= 'r') \
20357 || ('s' <= (c) && (c) <= 'z'))
20358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20366 for (i = 0; i < 256; i++)
20367 if (XOR (islower (i), ISLOWER (i))
20368 || toupper (i) != TOUPPER (i))
20373 rm -f conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_link") 2>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20384 { (case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_try") 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20395 echo "$as_me: program exited with status $ac_status" >&5
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399 ( exit $ac_status )
20400 ac_cv_header_stdc=no
20402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20410 if test $ac_cv_header_stdc = yes; then
20412 cat >>confdefs.h <<\_ACEOF
20413 @%:@define STDC_HEADERS 1
20424 ac_header_dirent=no
20425 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20426 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20427 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20428 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 cat >conftest.$ac_ext <<_ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h. */
20438 #include <sys/types.h>
20450 rm -f conftest.$ac_objext
20451 if { (ac_try="$ac_compile"
20452 case "(($ac_try" in
20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454 *) ac_try_echo=$ac_try;;
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457 (eval "$ac_compile") 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } && {
20464 test -z "$ac_c_werror_flag" ||
20465 test ! -s conftest.err
20466 } && test -s conftest.$ac_objext; then
20467 eval "$as_ac_Header=yes"
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20472 eval "$as_ac_Header=no"
20475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20477 ac_res=`eval echo '${'$as_ac_Header'}'`
20478 { echo "$as_me:$LINENO: result: $ac_res" >&5
20479 echo "${ECHO_T}$ac_res" >&6; }
20480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20481 cat >>confdefs.h <<_ACEOF
20482 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20485 ac_header_dirent=$ac_hdr; break
20489 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20490 if test $ac_header_dirent = dirent.h; then
20491 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20492 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20493 if test "${ac_cv_search_opendir+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 ac_func_search_save_LIBS=$LIBS
20497 cat >conftest.$ac_ext <<_ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 /* Override any GCC internal prototype to avoid an error.
20505 Use char because int might match the return type of a GCC
20506 builtin and then its argument prototype would still apply. */
20519 for ac_lib in '' dir; do
20520 if test -z "$ac_lib"; then
20521 ac_res="none required"
20524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20526 rm -f conftest.$ac_objext conftest$ac_exeext
20527 if { (ac_try="$ac_link"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_link") 2>conftest.er1
20535 grep -v '^ *+' conftest.er1 >conftest.err
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest$ac_exeext &&
20543 $as_test_x conftest$ac_exeext; then
20544 ac_cv_search_opendir=$ac_res
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20554 if test "${ac_cv_search_opendir+set}" = set; then
20558 if test "${ac_cv_search_opendir+set}" = set; then
20561 ac_cv_search_opendir=no
20563 rm conftest.$ac_ext
20564 LIBS=$ac_func_search_save_LIBS
20566 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20567 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20568 ac_res=$ac_cv_search_opendir
20569 if test "$ac_res" != no; then
20570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20575 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20577 if test "${ac_cv_search_opendir+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 ac_func_search_save_LIBS=$LIBS
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20588 /* Override any GCC internal prototype to avoid an error.
20589 Use char because int might match the return type of a GCC
20590 builtin and then its argument prototype would still apply. */
20603 for ac_lib in '' x; do
20604 if test -z "$ac_lib"; then
20605 ac_res="none required"
20608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20610 rm -f conftest.$ac_objext conftest$ac_exeext
20611 if { (ac_try="$ac_link"
20612 case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_link") 2>conftest.er1
20619 grep -v '^ *+' conftest.er1 >conftest.err
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } && {
20624 test -z "$ac_c_werror_flag" ||
20625 test ! -s conftest.err
20626 } && test -s conftest$ac_exeext &&
20627 $as_test_x conftest$ac_exeext; then
20628 ac_cv_search_opendir=$ac_res
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20638 if test "${ac_cv_search_opendir+set}" = set; then
20642 if test "${ac_cv_search_opendir+set}" = set; then
20645 ac_cv_search_opendir=no
20647 rm conftest.$ac_ext
20648 LIBS=$ac_func_search_save_LIBS
20650 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20651 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20652 ac_res=$ac_cv_search_opendir
20653 if test "$ac_res" != no; then
20654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20662 for ac_header in unistd.h
20664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 ac_res=`eval echo '${'$as_ac_Header'}'`
20672 { echo "$as_me:$LINENO: result: $ac_res" >&5
20673 echo "${ECHO_T}$ac_res" >&6; }
20675 # Is the header compilable?
20676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 $ac_includes_default
20685 @%:@include <$ac_header>
20687 rm -f conftest.$ac_objext
20688 if { (ac_try="$ac_compile"
20689 case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694 (eval "$ac_compile") 2>conftest.er1
20696 grep -v '^ *+' conftest.er1 >conftest.err
20698 cat conftest.err >&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && {
20701 test -z "$ac_c_werror_flag" ||
20702 test ! -s conftest.err
20703 } && test -s conftest.$ac_objext; then
20704 ac_header_compiler=yes
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20709 ac_header_compiler=no
20712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20714 echo "${ECHO_T}$ac_header_compiler" >&6; }
20716 # Is the header present?
20717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20719 cat >conftest.$ac_ext <<_ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 @%:@include <$ac_header>
20727 if { (ac_try="$ac_cpp conftest.$ac_ext"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } >/dev/null && {
20740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20743 ac_header_preproc=yes
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 ac_header_preproc=no
20751 rm -f conftest.err conftest.$ac_ext
20752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20753 echo "${ECHO_T}$ac_header_preproc" >&6; }
20755 # So? What about this header?
20756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20762 ac_header_preproc=yes
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 eval "$as_ac_Header=\$ac_header_preproc"
20787 ac_res=`eval echo '${'$as_ac_Header'}'`
20788 { echo "$as_me:$LINENO: result: $ac_res" >&5
20789 echo "${ECHO_T}$ac_res" >&6; }
20792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20793 cat >>confdefs.h <<_ACEOF
20794 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20798 { { echo "$as_me:$LINENO: error: required header file missing" >&5
20799 echo "$as_me: error: required header file missing" >&2;}
20800 { (exit 1); exit 1; }; }
20810 for ac_header in sys/stat.h sys/wait.h sys/time.h sys/timeb.h
20812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 ac_res=`eval echo '${'$as_ac_Header'}'`
20820 { echo "$as_me:$LINENO: result: $ac_res" >&5
20821 echo "${ECHO_T}$ac_res" >&6; }
20823 # Is the header compilable?
20824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20826 cat >conftest.$ac_ext <<_ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 $ac_includes_default
20833 @%:@include <$ac_header>
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest.$ac_objext; then
20852 ac_header_compiler=yes
20854 echo "$as_me: failed program was:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20857 ac_header_compiler=no
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20862 echo "${ECHO_T}$ac_header_compiler" >&6; }
20864 # Is the header present?
20865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 @%:@include <$ac_header>
20875 if { (ac_try="$ac_cpp conftest.$ac_ext"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20883 grep -v '^ *+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } >/dev/null && {
20888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20891 ac_header_preproc=yes
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20896 ac_header_preproc=no
20899 rm -f conftest.err conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20901 echo "${ECHO_T}$ac_header_preproc" >&6; }
20903 # So? What about this header?
20904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20910 ac_header_preproc=yes
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 eval "$as_ac_Header=\$ac_header_preproc"
20935 ac_res=`eval echo '${'$as_ac_Header'}'`
20936 { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20941 cat >>confdefs.h <<_ACEOF
20942 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20950 # Check whether --enable-lua was given.
20951 if test "${enable_lua+set}" = set; then
20952 enableval=$enable_lua; case "${enableval}" in
20955 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-lua" >&5
20956 echo "$as_me: error: bad value ${enableval} for --enable-lua" >&2;}
20957 { (exit 1); exit 1; }; } ;;
20965 for ac_header in lua.h
20967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 ac_res=`eval echo '${'$as_ac_Header'}'`
20975 { echo "$as_me:$LINENO: result: $ac_res" >&5
20976 echo "${ECHO_T}$ac_res" >&6; }
20978 # Is the header compilable?
20979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 $ac_includes_default
20988 @%:@include <$ac_header>
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997 (eval "$ac_compile") 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } && {
21004 test -z "$ac_c_werror_flag" ||
21005 test ! -s conftest.err
21006 } && test -s conftest.$ac_objext; then
21007 ac_header_compiler=yes
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_header_compiler=no
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21017 echo "${ECHO_T}$ac_header_compiler" >&6; }
21019 # Is the header present?
21020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21022 cat >conftest.$ac_ext <<_ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 @%:@include <$ac_header>
21030 if { (ac_try="$ac_cpp conftest.$ac_ext"
21031 case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21038 grep -v '^ *+' conftest.er1 >conftest.err
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } >/dev/null && {
21043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21044 test ! -s conftest.err
21046 ac_header_preproc=yes
21048 echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21051 ac_header_preproc=no
21054 rm -f conftest.err conftest.$ac_ext
21055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21056 echo "${ECHO_T}$ac_header_preproc" >&6; }
21058 # So? What about this header?
21059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21065 ac_header_preproc=yes
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 eval "$as_ac_Header=\$ac_header_preproc"
21090 ac_res=`eval echo '${'$as_ac_Header'}'`
21091 { echo "$as_me:$LINENO: result: $ac_res" >&5
21092 echo "${ECHO_T}$ac_res" >&6; }
21095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21096 cat >>confdefs.h <<_ACEOF
21097 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21107 if test x$lua = xtrue; then
21108 { echo "$as_me:$LINENO: Will build the Lua module" >&5
21109 echo "$as_me: Will build the Lua module" >&6;}
21111 { echo "$as_me:$LINENO: Skipping the lua module" >&5
21112 echo "$as_me: Skipping the lua module" >&6;}
21116 if test x$lua = xtrue; then
21127 for ac_func in access atoi
21129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21143 #define $ac_func innocuous_$ac_func
21145 /* System header to define __stub macros and hopefully few prototypes,
21146 which can conflict with char $ac_func (); below.
21147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21148 <limits.h> exists even on freestanding compilers. */
21151 # include <limits.h>
21153 # include <assert.h>
21158 /* Override any GCC internal prototype to avoid an error.
21159 Use char because int might match the return type of a GCC
21160 builtin and then its argument prototype would still apply. */
21165 /* The GNU C library defines this for functions which it implements
21166 to always fail with ENOSYS. Some functions are actually named
21167 something starting with __ and the normal name is an alias. */
21168 #if defined __stub_$ac_func || defined __stub___$ac_func
21175 return $ac_func ();
21180 rm -f conftest.$ac_objext conftest$ac_exeext
21181 if { (ac_try="$ac_link"
21182 case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_link") 2>conftest.er1
21189 grep -v '^ *+' conftest.er1 >conftest.err
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } && {
21194 test -z "$ac_c_werror_flag" ||
21195 test ! -s conftest.err
21196 } && test -s conftest$ac_exeext &&
21197 $as_test_x conftest$ac_exeext; then
21198 eval "$as_ac_var=yes"
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21203 eval "$as_ac_var=no"
21206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21207 conftest$ac_exeext conftest.$ac_ext
21209 ac_res=`eval echo '${'$as_ac_var'}'`
21210 { echo "$as_me:$LINENO: result: $ac_res" >&5
21211 echo "${ECHO_T}$ac_res" >&6; }
21212 if test `eval echo '${'$as_ac_var'}'` = yes; then
21213 cat >>confdefs.h <<_ACEOF
21214 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21218 { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
21219 echo "$as_me: error: required standard library function missing" >&2;}
21220 { (exit 1); exit 1; }; }
21230 for ac_func in snprintf gettimeofday ftime mkstemp mktemp
21232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21246 #define $ac_func innocuous_$ac_func
21248 /* System header to define __stub macros and hopefully few prototypes,
21249 which can conflict with char $ac_func (); below.
21250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21251 <limits.h> exists even on freestanding compilers. */
21254 # include <limits.h>
21256 # include <assert.h>
21261 /* Override any GCC internal prototype to avoid an error.
21262 Use char because int might match the return type of a GCC
21263 builtin and then its argument prototype would still apply. */
21268 /* The GNU C library defines this for functions which it implements
21269 to always fail with ENOSYS. Some functions are actually named
21270 something starting with __ and the normal name is an alias. */
21271 #if defined __stub_$ac_func || defined __stub___$ac_func
21278 return $ac_func ();
21283 rm -f conftest.$ac_objext conftest$ac_exeext
21284 if { (ac_try="$ac_link"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_link") 2>conftest.er1
21292 grep -v '^ *+' conftest.er1 >conftest.err
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } && {
21297 test -z "$ac_c_werror_flag" ||
21298 test ! -s conftest.err
21299 } && test -s conftest$ac_exeext &&
21300 $as_test_x conftest$ac_exeext; then
21301 eval "$as_ac_var=yes"
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 eval "$as_ac_var=no"
21309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21310 conftest$ac_exeext conftest.$ac_ext
21312 ac_res=`eval echo '${'$as_ac_var'}'`
21313 { echo "$as_me:$LINENO: result: $ac_res" >&5
21314 echo "${ECHO_T}$ac_res" >&6; }
21315 if test `eval echo '${'$as_ac_var'}'` = yes; then
21316 cat >>confdefs.h <<_ACEOF
21317 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21326 { echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
21327 echo $ECHO_N "checking for st_mtim in struct stat... $ECHO_C" >&6; }
21328 if test "${ac_cv_struct_st_mtim+set}" = set; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <sys/types.h>
21338 #include <sys/stat.h>
21342 struct stat s; s.st_mtim;
21347 rm -f conftest.$ac_objext
21348 if { (ac_try="$ac_compile"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_compile") 2>conftest.er1
21356 grep -v '^ *+' conftest.er1 >conftest.err
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } && {
21361 test -z "$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21363 } && test -s conftest.$ac_objext; then
21364 ac_cv_struct_st_mtim=yes
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_cv_struct_st_mtim=no
21372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
21375 echo "${ECHO_T}$ac_cv_struct_st_mtim" >&6; }
21376 if test $ac_cv_struct_st_mtim = yes; then
21378 cat >>confdefs.h <<\_ACEOF
21379 @%:@define HAVE_ST_MTIM 1
21386 ac_config_files="$ac_config_files Makefile"
21388 cat >confcache <<\_ACEOF
21389 # This file is a shell script that caches the results of configure
21390 # tests run on this system so they can be shared between configure
21391 # scripts and configure runs, see configure's option --config-cache.
21392 # It is not useful on other systems. If it contains results you don't
21393 # want to keep, you may remove or edit it.
21395 # config.status only pays attention to the cache file if you give it
21396 # the --recheck option to rerun configure.
21398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21400 # following values.
21404 # The following way of writing the cache mishandles newlines in values,
21405 # but we know of no workaround that is simple, portable, and efficient.
21406 # So, we kill variables containing newlines.
21407 # Ultrix sh set writes to stderr and can't be redirected directly,
21408 # and sets the high bit in the cache file unless we assign to the vars.
21410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21411 eval ac_val=\$$ac_var
21415 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21416 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21419 _ | IFS | as_nl) ;; #(
21420 *) $as_unset $ac_var ;;
21426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21427 *${as_nl}ac_space=\ *)
21428 # `set' does not quote correctly, so add quotes (double-quote
21429 # substitution turns \\\\ into \\, and sed turns \\ into \).
21432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21435 # `set' quotes correctly as required by POSIX, so do not add quotes.
21436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21450 if test -w "$cache_file"; then
21451 test "x$cache_file" != "x/dev/null" &&
21452 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21453 echo "$as_me: updating cache $cache_file" >&6;}
21454 cat confcache >$cache_file
21456 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21457 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21463 # Let make expand exec_prefix.
21464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21466 DEFS=-DHAVE_CONFIG_H
21470 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21471 # 1. Remove the extension, and $U if already installed.
21472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21473 ac_i=`echo "$ac_i" | sed "$ac_script"`
21474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21475 # will be set to the directory where LIBOBJS objects are built.
21476 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21477 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21479 LIB@&t@OBJS=$ac_libobjs
21481 LTLIBOBJS=$ac_ltlibobjs
21484 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21485 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21486 Usually this means the macro was only invoked conditionally." >&5
21487 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21488 Usually this means the macro was only invoked conditionally." >&2;}
21489 { (exit 1); exit 1; }; }
21491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21492 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21493 Usually this means the macro was only invoked conditionally." >&5
21494 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21495 Usually this means the macro was only invoked conditionally." >&2;}
21496 { (exit 1); exit 1; }; }
21498 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21499 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21500 Usually this means the macro was only invoked conditionally." >&5
21501 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&2;}
21503 { (exit 1); exit 1; }; }
21505 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21506 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21507 Usually this means the macro was only invoked conditionally." >&5
21508 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21509 Usually this means the macro was only invoked conditionally." >&2;}
21510 { (exit 1); exit 1; }; }
21512 if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
21513 { { echo "$as_me:$LINENO: error: conditional \"WITH_LUA\" was never defined.
21514 Usually this means the macro was only invoked conditionally." >&5
21515 echo "$as_me: error: conditional \"WITH_LUA\" was never defined.
21516 Usually this means the macro was only invoked conditionally." >&2;}
21517 { (exit 1); exit 1; }; }
21520 : ${CONFIG_STATUS=./config.status}
21521 ac_clean_files_save=$ac_clean_files
21522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21523 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21524 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21525 cat >$CONFIG_STATUS <<_ACEOF
21527 # Generated by $as_me.
21528 # Run this file to recreate the current configuration.
21529 # Compiler output produced by configure, useful for debugging
21530 # configure, is in config.log if it exists.
21533 ac_cs_recheck=false
21535 SHELL=\${CONFIG_SHELL-$SHELL}
21538 cat >>$CONFIG_STATUS <<\_ACEOF
21539 ## --------------------- ##
21540 ## M4sh Initialization. ##
21541 ## --------------------- ##
21543 # Be more Bourne compatible
21544 DUALCASE=1; export DUALCASE # for MKS sh
21545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21549 # is contrary to our usage. Disable this feature.
21550 alias -g '${1+"$@"}'='"$@"'
21551 setopt NO_GLOB_SUBST
21553 case `(set -o) 2>/dev/null` in
21554 *posix*) set -o posix ;;
21563 # Avoid depending upon Character Ranges.
21564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21567 as_cr_digits='0123456789'
21568 as_cr_alnum=$as_cr_Letters$as_cr_digits
21570 # The user is always right.
21571 if test "${PATH_SEPARATOR+set}" != set; then
21572 echo "#! /bin/sh" >conf$$.sh
21573 echo "exit 0" >>conf$$.sh
21575 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21583 # Support unset when possible.
21584 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21592 # We need space, tab and new line, in precisely that order. Quoting is
21593 # there to prevent editors from complaining about space-tab.
21594 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21595 # splitting by setting IFS to empty value.)
21600 # Find who we are. Look in the path if we contain no directory separator.
21602 *[\\/]* ) as_myself=$0 ;;
21603 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21604 for as_dir in $PATH
21607 test -z "$as_dir" && as_dir=.
21608 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21614 # We did not find ourselves, most probably we were run as `sh COMMAND'
21615 # in which case we are not to be found in the path.
21616 if test "x$as_myself" = x; then
21619 if test ! -f "$as_myself"; then
21620 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21621 { (exit 1); exit 1; }
21624 # Work around bugs in pre-3.0 UWIN ksh.
21625 for as_var in ENV MAIL MAILPATH
21626 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21634 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21635 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21636 LC_TELEPHONE LC_TIME
21638 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21639 eval $as_var=C; export $as_var
21641 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21645 # Required to use basename.
21646 if expr a : '\(a\)' >/dev/null 2>&1 &&
21647 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21653 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21654 as_basename=basename
21660 # Name of the executable.
21661 as_me=`$as_basename -- "$0" ||
21662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21663 X"$0" : 'X\(//\)$' \| \
21664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21666 sed '/^.*\/\([^/][^/]*\)\/*$/{
21685 as_lineno_1=$LINENO
21686 as_lineno_2=$LINENO
21687 test "x$as_lineno_1" != "x$as_lineno_2" &&
21688 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21690 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21691 # uniformly replaced by the line number. The first 'sed' inserts a
21692 # line-number line after each line using $LINENO; the second 'sed'
21693 # does the real work. The second script uses 'N' to pair each
21694 # line-number line with the line containing $LINENO, and appends
21695 # trailing '-' during substitution so that $LINENO is not a special
21696 # case at line end.
21697 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21698 # scripts with optimization help from Paolo Bonzini. Blame Lee
21699 # E. McMahon (1931-1989) for sed's syntax. :-)
21711 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21714 ' >$as_me.lineno &&
21715 chmod +x "$as_me.lineno" ||
21716 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21717 { (exit 1); exit 1; }; }
21719 # Don't try to exec as it changes $[0], causing all sort of problems
21720 # (the dirname of $[0] is not the place where we might find the
21721 # original and so on. Autoconf is especially sensitive to this).
21722 . "./$as_me.lineno"
21723 # Exit status is that of the last command.
21728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21734 ECHO_C= ECHO_N= ECHO_T=
21735 case `echo -n x` in
21737 case `echo 'x\c'` in
21738 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21745 if expr a : '\(a\)' >/dev/null 2>&1 &&
21746 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21752 rm -f conf$$ conf$$.exe conf$$.file
21753 if test -d conf$$.dir; then
21754 rm -f conf$$.dir/conf$$.file
21760 if ln -s conf$$.file conf$$ 2>/dev/null; then
21762 # ... but there are two gotchas:
21763 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21764 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21765 # In both cases, we have to default to `cp -p'.
21766 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21768 elif ln conf$$.file conf$$ 2>/dev/null; then
21773 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21774 rmdir conf$$.dir 2>/dev/null
21776 if mkdir -p . 2>/dev/null; then
21779 test -d ./-p && rmdir ./-p
21783 if test -x / >/dev/null 2>&1; then
21784 as_test_x='test -x'
21786 if ls -dL / >/dev/null 2>&1; then
21793 if test -d "$1"; then
21799 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21800 ???[sx]*):;;*)false;;esac;fi
21804 as_executable_p=$as_test_x
21806 # Sed expression to map a string onto a valid CPP name.
21807 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21809 # Sed expression to map a string onto a valid variable name.
21810 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21815 # Save the log message, to keep $[0] and so on meaningful, and to
21816 # report actual input values of CONFIG_FILES etc. instead of their
21817 # values after options handling.
21819 This file was extended by $as_me, which was
21820 generated by GNU Autoconf 2.61. Invocation command line was
21822 CONFIG_FILES = $CONFIG_FILES
21823 CONFIG_HEADERS = $CONFIG_HEADERS
21824 CONFIG_LINKS = $CONFIG_LINKS
21825 CONFIG_COMMANDS = $CONFIG_COMMANDS
21828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21833 cat >>$CONFIG_STATUS <<_ACEOF
21834 # Files that config.status was made for.
21835 config_files="$ac_config_files"
21836 config_headers="$ac_config_headers"
21837 config_commands="$ac_config_commands"
21841 cat >>$CONFIG_STATUS <<\_ACEOF
21843 \`$as_me' instantiates files from templates according to the
21844 current configuration.
21846 Usage: $0 [OPTIONS] [FILE]...
21848 -h, --help print this help, then exit
21849 -V, --version print version number and configuration settings, then exit
21850 -q, --quiet do not print progress messages
21851 -d, --debug don't remove temporary files
21852 --recheck update $as_me by reconfiguring in the same conditions
21853 --file=FILE[:TEMPLATE]
21854 instantiate the configuration file FILE
21855 --header=FILE[:TEMPLATE]
21856 instantiate the configuration header FILE
21858 Configuration files:
21861 Configuration headers:
21864 Configuration commands:
21867 Report bugs to <bug-autoconf@gnu.org>."
21870 cat >>$CONFIG_STATUS <<_ACEOF
21873 configured by $0, generated by GNU Autoconf 2.61,
21874 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21876 Copyright (C) 2006 Free Software Foundation, Inc.
21877 This config.status script is free software; the Free Software Foundation
21878 gives unlimited permission to copy, distribute and modify it."
21886 cat >>$CONFIG_STATUS <<\_ACEOF
21887 # If no file are specified by the user, then we need to provide default
21888 # value. By we need to know if files were specified by the user.
21894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21906 # Handling of the options.
21907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21910 echo "$ac_cs_version"; exit ;;
21911 --debug | --debu | --deb | --de | --d | -d )
21913 --file | --fil | --fi | --f )
21915 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21916 ac_need_defaults=false;;
21917 --header | --heade | --head | --hea )
21919 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21920 ac_need_defaults=false;;
21922 # Conflict between --help and --header
21923 { echo "$as_me: error: ambiguous option: $1
21924 Try \`$0 --help' for more information." >&2
21925 { (exit 1); exit 1; }; };;
21926 --help | --hel | -h )
21927 echo "$ac_cs_usage"; exit ;;
21928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21929 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21932 # This is an error.
21933 -*) { echo "$as_me: error: unrecognized option: $1
21934 Try \`$0 --help' for more information." >&2
21935 { (exit 1); exit 1; }; } ;;
21937 *) ac_config_targets="$ac_config_targets $1"
21938 ac_need_defaults=false ;;
21944 ac_configure_extra_args=
21946 if $ac_cs_silent; then
21948 ac_configure_extra_args="$ac_configure_extra_args --silent"
21952 cat >>$CONFIG_STATUS <<_ACEOF
21953 if \$ac_cs_recheck; then
21954 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21955 CONFIG_SHELL=$SHELL
21956 export CONFIG_SHELL
21957 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21961 cat >>$CONFIG_STATUS <<\_ACEOF
21965 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21966 @%:@@%:@ Running $as_me. @%:@@%:@
21972 cat >>$CONFIG_STATUS <<_ACEOF
21976 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21980 cat >>$CONFIG_STATUS <<\_ACEOF
21982 # Handling of arguments.
21983 for ac_config_target in $ac_config_targets
21985 case $ac_config_target in
21986 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21987 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21988 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21990 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21991 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21992 { (exit 1); exit 1; }; };;
21997 # If the user did not use the arguments to specify the items to instantiate,
21998 # then the envvar interface is used. Set only those that are not.
21999 # We use the long form for the default assignment because of an extremely
22000 # bizarre bug on SunOS 4.1.3.
22001 if $ac_need_defaults; then
22002 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22003 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22004 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22007 # Have a temporary directory for convenience. Make it in the build tree
22008 # simply because there is no reason against having it here, and in addition,
22009 # creating and moving files from /tmp can sometimes cause problems.
22010 # Hook for its removal unless debugging.
22011 # Note that there is a small window in which the directory will not be cleaned:
22012 # after its creation but before its name has been assigned to `$tmp'.
22016 trap 'exit_status=$?
22017 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22019 trap '{ (exit 1); exit 1; }' 1 2 13 15
22021 # Create a (secure) tmp directory for tmp files.
22024 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22025 test -n "$tmp" && test -d "$tmp"
22028 tmp=./conf$$-$RANDOM
22029 (umask 077 && mkdir "$tmp")
22032 echo "$me: cannot create a temporary directory in ." >&2
22033 { (exit 1); exit 1; }
22037 # Set up the sed scripts for CONFIG_FILES section.
22040 # No need to generate the scripts if there are no CONFIG_FILES.
22041 # This happens for instance when ./config.status config.h
22042 if test -n "$CONFIG_FILES"; then
22049 for ac_last_try in false false false false false :; do
22050 cat >conf$$subs.sed <<_ACEOF
22051 SHELL!$SHELL$ac_delim
22052 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22053 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22054 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22055 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22056 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22057 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22058 exec_prefix!$exec_prefix$ac_delim
22059 prefix!$prefix$ac_delim
22060 program_transform_name!$program_transform_name$ac_delim
22061 bindir!$bindir$ac_delim
22062 sbindir!$sbindir$ac_delim
22063 libexecdir!$libexecdir$ac_delim
22064 datarootdir!$datarootdir$ac_delim
22065 datadir!$datadir$ac_delim
22066 sysconfdir!$sysconfdir$ac_delim
22067 sharedstatedir!$sharedstatedir$ac_delim
22068 localstatedir!$localstatedir$ac_delim
22069 includedir!$includedir$ac_delim
22070 oldincludedir!$oldincludedir$ac_delim
22071 docdir!$docdir$ac_delim
22072 infodir!$infodir$ac_delim
22073 htmldir!$htmldir$ac_delim
22074 dvidir!$dvidir$ac_delim
22075 pdfdir!$pdfdir$ac_delim
22076 psdir!$psdir$ac_delim
22077 libdir!$libdir$ac_delim
22078 localedir!$localedir$ac_delim
22079 mandir!$mandir$ac_delim
22080 DEFS!$DEFS$ac_delim
22081 ECHO_C!$ECHO_C$ac_delim
22082 ECHO_N!$ECHO_N$ac_delim
22083 ECHO_T!$ECHO_T$ac_delim
22084 LIBS!$LIBS$ac_delim
22085 build_alias!$build_alias$ac_delim
22086 host_alias!$host_alias$ac_delim
22087 target_alias!$target_alias$ac_delim
22088 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22089 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22090 INSTALL_DATA!$INSTALL_DATA$ac_delim
22091 am__isrc!$am__isrc$ac_delim
22092 CYGPATH_W!$CYGPATH_W$ac_delim
22093 PACKAGE!$PACKAGE$ac_delim
22094 VERSION!$VERSION$ac_delim
22095 ACLOCAL!$ACLOCAL$ac_delim
22096 AUTOCONF!$AUTOCONF$ac_delim
22097 AUTOMAKE!$AUTOMAKE$ac_delim
22098 AUTOHEADER!$AUTOHEADER$ac_delim
22099 MAKEINFO!$MAKEINFO$ac_delim
22100 install_sh!$install_sh$ac_delim
22101 STRIP!$STRIP$ac_delim
22102 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22103 mkdir_p!$mkdir_p$ac_delim
22105 SET_MAKE!$SET_MAKE$ac_delim
22106 am__leading_dot!$am__leading_dot$ac_delim
22107 AMTAR!$AMTAR$ac_delim
22108 am__tar!$am__tar$ac_delim
22109 am__untar!$am__untar$ac_delim
22110 build!$build$ac_delim
22111 build_cpu!$build_cpu$ac_delim
22112 build_vendor!$build_vendor$ac_delim
22113 build_os!$build_os$ac_delim
22114 host!$host$ac_delim
22115 host_cpu!$host_cpu$ac_delim
22116 host_vendor!$host_vendor$ac_delim
22117 host_os!$host_os$ac_delim
22119 CFLAGS!$CFLAGS$ac_delim
22120 LDFLAGS!$LDFLAGS$ac_delim
22121 CPPFLAGS!$CPPFLAGS$ac_delim
22122 ac_ct_CC!$ac_ct_CC$ac_delim
22123 EXEEXT!$EXEEXT$ac_delim
22124 OBJEXT!$OBJEXT$ac_delim
22125 DEPDIR!$DEPDIR$ac_delim
22126 am__include!$am__include$ac_delim
22127 am__quote!$am__quote$ac_delim
22128 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22129 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22130 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22131 CCDEPMODE!$CCDEPMODE$ac_delim
22132 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22133 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22135 GREP!$GREP$ac_delim
22136 EGREP!$EGREP$ac_delim
22137 LN_S!$LN_S$ac_delim
22138 ECHO!$ECHO$ac_delim
22140 RANLIB!$RANLIB$ac_delim
22143 CXXFLAGS!$CXXFLAGS$ac_delim
22144 ac_ct_CXX!$ac_ct_CXX$ac_delim
22145 CXXDEPMODE!$CXXDEPMODE$ac_delim
22146 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22147 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22150 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22152 elif $ac_last_try; then
22153 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22154 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22155 { (exit 1); exit 1; }; }
22157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22161 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22162 if test -n "$ac_eof"; then
22163 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22164 ac_eof=`expr $ac_eof + 1`
22167 cat >>$CONFIG_STATUS <<_ACEOF
22168 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22172 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22173 s/^/s,@/; s/!/@,|#_!!_#|/
22176 s/'"$ac_delim"'$/,g/; t
22178 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22179 ' >>$CONFIG_STATUS <conf$$subs.sed
22180 rm -f conf$$subs.sed
22181 cat >>$CONFIG_STATUS <<_ACEOF
22187 for ac_last_try in false false false false false :; do
22188 cat >conf$$subs.sed <<_ACEOF
22189 CXXCPP!$CXXCPP$ac_delim
22191 FFLAGS!$FFLAGS$ac_delim
22192 ac_ct_F77!$ac_ct_F77$ac_delim
22193 LIBTOOL!$LIBTOOL$ac_delim
22194 WITH_LUA_TRUE!$WITH_LUA_TRUE$ac_delim
22195 WITH_LUA_FALSE!$WITH_LUA_FALSE$ac_delim
22196 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
22197 LTLIBOBJS!$LTLIBOBJS$ac_delim
22200 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22202 elif $ac_last_try; then
22203 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22204 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22205 { (exit 1); exit 1; }; }
22207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22211 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22212 if test -n "$ac_eof"; then
22213 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22214 ac_eof=`expr $ac_eof + 1`
22217 cat >>$CONFIG_STATUS <<_ACEOF
22218 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22223 s/^/s,@/; s/!/@,|#_!!_#|/
22226 s/'"$ac_delim"'$/,g/; t
22228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22229 ' >>$CONFIG_STATUS <conf$$subs.sed
22230 rm -f conf$$subs.sed
22231 cat >>$CONFIG_STATUS <<_ACEOF
22238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22240 # trailing colons and then remove the whole line if VPATH becomes empty
22241 # (actually we leave an empty line to preserve line numbers).
22242 if test "x$srcdir" = x.; then
22243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22244 s/:*\$(srcdir):*/:/
22245 s/:*\${srcdir}:*/:/
22247 s/^\([^=]*=[ ]*\):*/\1/
22253 cat >>$CONFIG_STATUS <<\_ACEOF
22254 fi # test -n "$CONFIG_FILES"
22257 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22260 :[FHLC]) ac_mode=$ac_tag; continue;;
22262 case $ac_mode$ac_tag in
22264 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22265 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22266 { (exit 1); exit 1; }; };;
22267 :[FH]-) ac_tag=-:-;;
22268 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22285 -) ac_f="$tmp/stdin";;
22286 *) # Look for the file first in the build tree, then in the source tree
22287 # (if the path is not absolute). The absolute path cannot be DOS-style,
22288 # because $ac_f cannot contain `:'.
22292 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22294 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22295 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22296 { (exit 1); exit 1; }; };;
22298 ac_file_inputs="$ac_file_inputs $ac_f"
22301 # Let's still pretend it is `configure' which instantiates (i.e., don't
22302 # use $as_me), people would be surprised to read:
22303 # /* config.h. Generated by config.status. */
22304 configure_input="Generated from "`IFS=:
22305 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22306 if test x"$ac_file" != x-; then
22307 configure_input="$ac_file. $configure_input"
22308 { echo "$as_me:$LINENO: creating $ac_file" >&5
22309 echo "$as_me: creating $ac_file" >&6;}
22313 *:-:* | *:-) cat >"$tmp/stdin";;
22318 ac_dir=`$as_dirname -- "$ac_file" ||
22319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22320 X"$ac_file" : 'X\(//\)[^/]' \| \
22321 X"$ac_file" : 'X\(//\)$' \| \
22322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22328 /^X\(\/\/\)[^/].*/{
22343 -*) as_dir=./$as_dir;;
22345 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22349 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22350 *) as_qdir=$as_dir;;
22352 as_dirs="'$as_qdir' $as_dirs"
22353 as_dir=`$as_dirname -- "$as_dir" ||
22354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22355 X"$as_dir" : 'X\(//\)[^/]' \| \
22356 X"$as_dir" : 'X\(//\)$' \| \
22357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22363 /^X\(\/\/\)[^/].*/{
22376 test -d "$as_dir" && break
22378 test -z "$as_dirs" || eval "mkdir $as_dirs"
22379 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22381 { (exit 1); exit 1; }; }; }
22385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22387 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22388 # A ".." for each directory in $ac_dir_suffix.
22389 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22390 case $ac_top_builddir_sub in
22391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22395 ac_abs_top_builddir=$ac_pwd
22396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22397 # for backward compatibility:
22398 ac_top_builddir=$ac_top_build_prefix
22401 .) # We are building in place.
22403 ac_top_srcdir=$ac_top_builddir_sub
22404 ac_abs_top_srcdir=$ac_pwd ;;
22405 [\\/]* | ?:[\\/]* ) # Absolute name.
22406 ac_srcdir=$srcdir$ac_dir_suffix;
22407 ac_top_srcdir=$srcdir
22408 ac_abs_top_srcdir=$srcdir ;;
22409 *) # Relative name.
22410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22411 ac_top_srcdir=$ac_top_build_prefix$srcdir
22412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22425 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22427 ac_MKDIR_P=$MKDIR_P
22429 [\\/$]* | ?:[\\/]* ) ;;
22430 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22434 cat >>$CONFIG_STATUS <<\_ACEOF
22435 # If the template does not know about datarootdir, expand it.
22436 # FIXME: This hack should be removed a few years after 2.60.
22437 ac_datarootdir_hack=; ac_datarootdir_seen=
22439 case `sed -n '/datarootdir/ {
22448 ' $ac_file_inputs` in
22449 *datarootdir*) ac_datarootdir_seen=yes;;
22450 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22451 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22452 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22454 cat >>$CONFIG_STATUS <<_ACEOF
22455 ac_datarootdir_hack='
22456 s&@datadir@&$datadir&g
22457 s&@docdir@&$docdir&g
22458 s&@infodir@&$infodir&g
22459 s&@localedir@&$localedir&g
22460 s&@mandir@&$mandir&g
22461 s&\\\${datarootdir}&$datarootdir&g' ;;
22465 # Neutralize VPATH when `$srcdir' = `.'.
22466 # Shell code in configure.ac might set extrasub.
22467 # FIXME: do we really want to maintain this feature?
22468 cat >>$CONFIG_STATUS <<_ACEOF
22472 cat >>$CONFIG_STATUS <<\_ACEOF
22474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22475 s&@configure_input@&$configure_input&;t t
22476 s&@top_builddir@&$ac_top_builddir_sub&;t t
22477 s&@srcdir@&$ac_srcdir&;t t
22478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22479 s&@top_srcdir@&$ac_top_srcdir&;t t
22480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22481 s&@builddir@&$ac_builddir&;t t
22482 s&@abs_builddir@&$ac_abs_builddir&;t t
22483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22484 s&@INSTALL@&$ac_INSTALL&;t t
22485 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22486 $ac_datarootdir_hack
22487 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22489 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22490 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22491 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22492 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22493 which seems to be undefined. Please make sure it is defined." >&5
22494 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22495 which seems to be undefined. Please make sure it is defined." >&2;}
22499 -) cat "$tmp/out"; rm -f "$tmp/out";;
22500 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22509 # Transform confdefs.h into a sed script `conftest.defines', that
22510 # substitutes the proper values into config.h.in to produce config.h.
22511 rm -f conftest.defines conftest.tail
22512 # First, append a space to every undef/define line, to ease matching.
22513 echo 's/$/ /' >conftest.defines
22514 # Then, protect against being on the right side of a sed subst, or in
22515 # an unquoted here document, in config.status. If some macros were
22516 # called several times there might be several #defines for the same
22517 # symbol, which is useless. But do not sort them, since the last
22518 # AC_DEFINE must be honored.
22519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22520 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22521 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22522 # PARAMS is the parameter list in the macro definition--in most cases, it's
22523 # just an empty string.
22524 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22525 ac_dB='\\)[ (].*,\\1define\\2'
22533 s/^[ ]*#[ ]*define[ ][ ]*//
22538 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22539 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22540 ' >>conftest.defines
22542 # Remove the space that was appended to ease matching.
22543 # Then replace #undef with comments. This is necessary, for
22544 # example, in the case of _POSIX_SOURCE, which is predefined and required
22545 # on some systems where configure will not decide to define it.
22546 # (The regexp can be short, since the line contains either #define or #undef.)
22548 s,^[ #]*u.*,/* & */,' >>conftest.defines
22550 # Break up conftest.defines:
22551 ac_max_sed_lines=50
22553 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22554 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22555 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22557 ac_in='$ac_file_inputs'
22558 ac_out='"$tmp/out1"'
22559 ac_nxt='"$tmp/out2"'
22563 # Write a here document:
22564 cat >>$CONFIG_STATUS <<_ACEOF
22565 # First, check the format of the line:
22566 cat >"\$tmp/defines.sed" <<\\CEOF
22567 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22568 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22572 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22574 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22575 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22576 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22577 grep . conftest.tail >/dev/null || break
22578 rm -f conftest.defines
22579 mv conftest.tail conftest.defines
22581 rm -f conftest.defines conftest.tail
22583 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22584 cat >>$CONFIG_STATUS <<\_ACEOF
22585 if test x"$ac_file" != x-; then
22586 echo "/* $configure_input */" >"$tmp/config.h"
22587 cat "$ac_result" >>"$tmp/config.h"
22588 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22589 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22590 echo "$as_me: $ac_file is unchanged" >&6;}
22593 mv "$tmp/config.h" $ac_file
22596 echo "/* $configure_input */"
22600 # Compute $ac_file's index in $config_headers.
22603 for _am_header in $config_headers :; do
22604 case $_am_header in
22605 $_am_arg | $_am_arg:* )
22608 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22613 X"$_am_arg" : 'X\(//\)[^/]' \| \
22614 X"$_am_arg" : 'X\(//\)$' \| \
22615 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22621 /^X\(\/\/\)[^/].*/{
22633 s/.*/./; q'`/stamp-h$_am_stamp_count
22636 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22637 echo "$as_me: executing $ac_file commands" >&6;}
22642 case $ac_file$ac_mode in
22643 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22644 # Strip MF so we end up with the name of the file.
22645 mf=`echo "$mf" | sed -e 's/:.*$//'`
22646 # Check whether this is an Automake generated Makefile or not.
22647 # We used to match only the files named `Makefile.in', but
22648 # some people rename them; so instead we look at the file content.
22649 # Grep'ing the first line is not enough: some people post-process
22650 # each Makefile.in and add a new line on top of each file to say so.
22651 # Grep'ing the whole file is not good either: AIX grep has a line
22652 # limit of 2048, but all sed's we know have understand at least 4000.
22653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22654 dirpart=`$as_dirname -- "$mf" ||
22655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22656 X"$mf" : 'X\(//\)[^/]' \| \
22657 X"$mf" : 'X\(//\)$' \| \
22658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22664 /^X\(\/\/\)[^/].*/{
22680 # Extract the definition of DEPDIR, am__include, and am__quote
22681 # from the Makefile without running `make'.
22682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22683 test -z "$DEPDIR" && continue
22684 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22685 test -z "am__include" && continue
22686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22687 # When using ansi2knr, U may be empty or an underscore; expand it
22688 U=`sed -n 's/^U = //p' < "$mf"`
22689 # Find all dependency output files, they are included files with
22690 # $(DEPDIR) in their names. We invoke sed twice because it is the
22691 # simplest approach to changing $(DEPDIR) to its actual value in the
22693 for file in `sed -n "
22694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22696 # Make sure the directory exists.
22697 test -f "$dirpart/$file" && continue
22698 fdir=`$as_dirname -- "$file" ||
22699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22700 X"$file" : 'X\(//\)[^/]' \| \
22701 X"$file" : 'X\(//\)$' \| \
22702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22708 /^X\(\/\/\)[^/].*/{
22721 { as_dir=$dirpart/$fdir
22723 -*) as_dir=./$as_dir;;
22725 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22729 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22730 *) as_qdir=$as_dir;;
22732 as_dirs="'$as_qdir' $as_dirs"
22733 as_dir=`$as_dirname -- "$as_dir" ||
22734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22735 X"$as_dir" : 'X\(//\)[^/]' \| \
22736 X"$as_dir" : 'X\(//\)$' \| \
22737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22743 /^X\(\/\/\)[^/].*/{
22756 test -d "$as_dir" && break
22758 test -z "$as_dirs" || eval "mkdir $as_dirs"
22759 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22760 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22761 { (exit 1); exit 1; }; }; }
22762 # echo "creating $dirpart/$file"
22763 echo '# dummy' > "$dirpart/$file"
22772 { (exit 0); exit 0; }
22774 chmod +x $CONFIG_STATUS
22775 ac_clean_files=$ac_clean_files_save
22778 # configure is writing to config.log, and then calls config.status.
22779 # config.status does its own redirection, appending to config.log.
22780 # Unfortunately, on DOS this fails, as config.log is still kept open
22781 # by configure, so config.status won't be able to write to it; its
22782 # output is simply discarded. So we exec the FD to /dev/null,
22783 # effectively closing config.log, so it can be properly (re)opened and
22784 # appended to by config.status. When coming back to configure, we
22785 # need to make the FD available again.
22786 if test "$no_create" != yes; then
22788 ac_config_status_args=
22789 test "$silent" = yes &&
22790 ac_config_status_args="$ac_config_status_args --quiet"
22792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22795 # would make configure fail if this is the last instruction.
22796 $ac_cs_success || { (exit 1); exit 1; }