2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.1.2.
5 # Report bugs to <opensource@google.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='glog'
731 PACKAGE_VERSION='0.1.2'
732 PACKAGE_STRING='glog 0.1.2'
733 PACKAGE_BUGREPORT='opensource@google.com'
735 ac_unique_file="README"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
879 ENABLE_FRAME_POINTERS_TRUE
880 ENABLE_FRAME_POINTERS_FALSE
888 ac_google_start_namespace
889 ac_google_end_namespace
891 ac_cv_cxx_using_operator
892 ac_cv___attribute___noreturn
893 ac_cv___attribute___printf_4_5
894 ac_cv_have___builtin_expect
896 ac_cv_have_systypes_h
897 ac_cv_have_inttypes_h
907 ac_precious_vars='build_alias
924 # Initialize some variables set by options.
926 ac_init_version=false
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
936 program_transform_name=s,x,x,
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1012 -datadir | --datadir | --datadi | --datad)
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1024 -disable-* | --disable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=no ;;
1033 -docdir | --docdir | --docdi | --doc | --do)
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1043 -enable-* | --enable-*)
1044 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=\$ac_optarg ;;
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 htmldir=$ac_optarg ;;
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1095 -libdir | --libdir | --libdi | --libd)
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1186 -psdir | --psdir | --psdi | --psd | --ps)
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 sbindir=$ac_optarg ;;
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 sharedstatedir=$ac_optarg ;;
1212 -site | --site | --sit)
1214 -site=* | --site=* | --sit=*)
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1241 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=\$ac_optarg ;;
1249 -without-* | --without-*)
1250 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=no ;;
1259 # Obsolete; use --with-x.
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1276 -*) { echo "$as_me: error: unrecognized option: $ac_option
1277 Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286 { (exit 1); exit 1; }; }
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1291 # FIXME: should be removed in autoconf 3.0.
1292 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301 if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 { echo "$as_me: error: missing argument to $ac_option" >&2
1304 { (exit 1); exit 1; }; }
1307 # Be sure to have absolute directory names.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1313 eval ac_val=\$$ac_var
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1327 target=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343 test "$silent" = yes && exec 6>/dev/null
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 { echo "$as_me: error: Working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$0" ||
1361 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$0" : 'X\(//\)[^/]' \| \
1363 X"$0" : 'X\(//\)$' \| \
1364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1388 ac_srcdir_defaulted=no
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393 { (exit 1); exit 1; }; }
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398 { (exit 1); exit 1; }; }
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 # Report the --help message.
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1424 \`configure' configures glog 0.1.2 to adapt to many kinds of systems.
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1431 Defaults for the options are specified in brackets.
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1455 For better control, use the options below.
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of glog 0.1.2:";;
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --disable-dependency-tracking speeds up one-time build
1502 --enable-dependency-tracking do not reject slow dependency extractors
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-static[=PKGS] build static libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --enable-frame-pointers On x86_64 systems, compile with
1509 -fno-omit-frame-pointer (see INSTALL)
1510 --enable-namespace=FOO to define these Google
1511 classes in the FOO namespace. --disable-namespace
1512 to define them in the global namespace. Default
1513 is to define them in namespace google.
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1519 --with-pic try to use only PIC/non-PIC objects [default=use
1521 --with-tags[=TAGS] include additional configurations [automatic]
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1532 CXX C++ compiler command
1533 CXXFLAGS C++ compiler flags
1534 CXXCPP C++ preprocessor
1535 F77 Fortran 77 compiler command
1536 FFLAGS Fortran 77 compiler flags
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1541 Report bugs to <opensource@google.com>.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" || continue
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1569 .) # We are building in place.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1602 glog configure 0.1.2
1603 generated by GNU Autoconf 2.61
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1616 It was created by glog $as_me 0.1.2, which was
1617 generated by GNU Autoconf 2.61. Invocation command line was
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 test -z "$as_dir" && as_dir=.
1653 echo "PATH: $as_dir"
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_must_keep_next=false
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706 -* ) ac_must_keep_next=true ;;
1709 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log. We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1733 # The following way of writing the cache mishandles newlines in values,
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1740 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1744 _ | IFS | as_nl) ;; #(
1745 *) $as_unset $ac_var ;;
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1770 for ac_var in $ac_subst_vars
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 echo "$ac_var='\''$ac_val'\''"
1780 if test -n "$ac_subst_files"; then
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1787 for ac_var in $ac_subst_files
1789 eval ac_val=\$$ac_var
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 echo "$ac_var='\''$ac_val'\''"
1798 if test -s confdefs.h; then
1808 test "$ac_signal" != 0 &&
1809 echo "$as_me: caught signal $ac_signal"
1810 echo "$as_me: exit $exit_status"
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1816 for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1824 # Predefined preprocessor variables.
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854 set x "$CONFIG_SITE"
1855 elif test "x$prefix" != xNONE; then
1856 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 set x "$ac_default_prefix/share/config.site" \
1859 "$ac_default_prefix/etc/config.site"
1864 if test -r "$ac_site_file"; then
1865 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1872 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 echo "$as_me: loading cache $cache_file" >&6;}
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1884 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 echo "$as_me: creating cache $cache_file" >&6;}
1889 # Check that the precious variables saved in the cache have kept the same
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1912 echo "$as_me: former value: $ac_old_val" >&2;}
1913 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1914 echo "$as_me: current value: $ac_new_val" >&2;}
1915 ac_cache_corrupted=:
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1921 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930 if $ac_cache_corrupted; then
1931 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969 # The argument here is just something that should be in the current directory
1970 # (for sanity checking)
1972 am__api_version='1.10'
1975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976 if test -f "$ac_dir/install-sh"; then
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1980 elif test -f "$ac_dir/install.sh"; then
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1984 elif test -f "$ac_dir/shtool"; then
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1990 if test -z "$ac_aux_dir"; then
1991 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993 { (exit 1); exit 1; }; }
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2005 # Find a good install program. We prefer a C program (faster),
2006 # so one script is as good as another. But avoid the broken or
2007 # incompatible versions:
2008 # SysV /etc/install, /usr/sbin/install
2009 # SunOS /usr/etc/install
2010 # IRIX /sbin/install
2012 # AmigaOS /C/install, which installs bootblocks on floppy discs
2013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016 # OS/2's system install, which has a completely different semantic
2017 # ./install, which can be erroneously created by make from ./install.sh.
2018 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL=$ac_cv_path_install
2067 # As a last resort, use the slow shell script. Don't cache a
2068 # value for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the value is a relative name.
2071 INSTALL=$ac_install_sh
2074 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2075 echo "${ECHO_T}$INSTALL" >&6; }
2077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078 # It thinks the first close brace ends the variable substitution.
2079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2085 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2086 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089 echo timestamp > conftest.file
2090 # Do `set' in a subshell so we don't clobber the current shell's
2091 # arguments. Must try -L first in case configure is actually a
2092 # symlink; some systems play weird games with the mod time of symlinks
2093 # (eg FreeBSD returns the mod time of the symlink's containing
2096 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2097 if test "$*" = "X"; then
2099 set X `ls -t $srcdir/configure conftest.file`
2102 if test "$*" != "X $srcdir/configure conftest.file" \
2103 && test "$*" != "X conftest.file $srcdir/configure"; then
2105 # If neither matched, then we have a broken ls. This can happen
2106 # if, for instance, CONFIG_SHELL is bash and it inherits a
2107 # broken ls alias from the environment. This has actually
2108 # happened. Such a system could not be considered "sane".
2109 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2110 alias in your environment" >&5
2111 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2112 alias in your environment" >&2;}
2113 { (exit 1); exit 1; }; }
2116 test "$2" = conftest.file
2122 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2123 Check your system clock" >&5
2124 echo "$as_me: error: newly created file is older than distributed files!
2125 Check your system clock" >&2;}
2126 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6; }
2130 test "$program_prefix" != NONE &&
2131 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132 # Use a double $ so make ignores it.
2133 test "$program_suffix" != NONE &&
2134 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135 # Double any \ or $. echo might interpret backslashes.
2136 # By default was `s,x,x', remove it if useless.
2137 cat <<\_ACEOF >conftest.sed
2138 s/[\\$]/&&/g;s/;s,x,x,$//
2140 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143 # expand $ac_aux_dir to an absolute path
2144 am_aux_dir=`cd $ac_aux_dir && pwd`
2146 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2147 # Use eval to expand $SHELL
2148 if eval "$MISSING --run true"; then
2149 am_missing_run="$MISSING --run "
2152 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2153 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2157 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2158 if test -z "$MKDIR_P"; then
2159 if test "${ac_cv_path_mkdir+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2166 test -z "$as_dir" && as_dir=.
2167 for ac_prog in mkdir gmkdir; do
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2171 'mkdir (GNU coreutils) '* | \
2172 'mkdir (coreutils) '* | \
2173 'mkdir (fileutils) '4.1*)
2174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2184 if test "${ac_cv_path_mkdir+set}" = set; then
2185 MKDIR_P="$ac_cv_path_mkdir -p"
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for MKDIR_P within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 test -d ./--version && rmdir ./--version
2192 MKDIR_P="$ac_install_sh -d"
2195 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2196 echo "${ECHO_T}$MKDIR_P" >&6; }
2200 [\\/$]* | ?:[\\/]*) ;;
2201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204 for ac_prog in gawk mawk nawk awk
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_AWK+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$AWK"; then
2214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_AWK="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 if test -n "$AWK"; then
2235 { echo "$as_me:$LINENO: result: $AWK" >&5
2236 echo "${ECHO_T}$AWK" >&6; }
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2243 test -n "$AWK" && break
2246 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2247 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2248 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2249 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 cat >conftest.make <<\_ACEOF
2255 @echo '@@@%%%=$(MAKE)=@@@%%%'
2257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2260 eval ac_cv_prog_make_${ac_make}_set=yes;;
2262 eval ac_cv_prog_make_${ac_make}_set=no;;
2266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2271 { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2273 SET_MAKE="MAKE=${MAKE-make}"
2276 rm -rf .tst 2>/dev/null
2277 mkdir .tst 2>/dev/null
2278 if test -d .tst; then
2283 rmdir .tst 2>/dev/null
2285 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2286 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2287 # is not polluted with repeated "-I."
2288 am__isrc=' -I$(srcdir)'
2289 # test to see if srcdir already configured
2290 if test -f $srcdir/config.status; then
2291 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293 { (exit 1); exit 1; }; }
2297 # test whether we have cygpath
2298 if test -z "$CYGPATH_W"; then
2299 if (cygpath --version) >/dev/null 2>/dev/null; then
2300 CYGPATH_W='cygpath -w'
2307 # Define the identity of the package.
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE "$PACKAGE"
2317 cat >>confdefs.h <<_ACEOF
2318 #define VERSION "$VERSION"
2321 # Some tools Automake needs.
2323 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2337 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2339 # Installed binaries are usually stripped using `strip' when the user
2340 # run `make install-strip'. However `strip' might not be the right
2341 # tool to use in cross-compilation environments, therefore Automake
2342 # will honor the `STRIP' environment variable to overrule this program.
2343 if test "$cross_compiling" != no; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 STRIP=$ac_cv_prog_STRIP
2373 if test -n "$STRIP"; then
2374 { echo "$as_me:$LINENO: result: $STRIP" >&5
2375 echo "${ECHO_T}$STRIP" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2383 if test -z "$ac_cv_prog_STRIP"; then
2385 # Extract the first word of "strip", so it can be a program name with args.
2386 set dummy strip; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$ac_ct_STRIP"; then
2393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_STRIP="strip"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413 if test -n "$ac_ct_STRIP"; then
2414 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2415 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2421 if test "x$ac_ct_STRIP" = x; then
2424 case $cross_compiling:$ac_tool_warned in
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2437 STRIP="$ac_cv_prog_STRIP"
2441 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2443 # We need awk for the "check" target. The system "awk" is bad on
2445 # Always define AMTAR for backward compatibility.
2447 AMTAR=${AMTAR-"${am_missing_run}tar"}
2449 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2455 ac_config_headers="$ac_config_headers src/config.h"
2458 # Checks for programs.
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 if test -n "$ac_tool_prefix"; then
2465 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2466 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469 if test "${ac_cv_prog_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 if test -n "$CC"; then
2494 { echo "$as_me:$LINENO: result: $CC" >&5
2495 echo "${ECHO_T}$CC" >&6; }
2497 { echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6; }
2503 if test -z "$ac_cv_prog_CC"; then
2505 # Extract the first word of "gcc", so it can be a program name with args.
2506 set dummy gcc; ac_word=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 if test -n "$ac_ct_CC"; then
2513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_ac_ct_CC="gcc"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 echo "${ECHO_T}$ac_ct_CC" >&6; }
2537 { echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6; }
2541 if test "x$ac_ct_CC" = x; then
2544 case $cross_compiling:$ac_tool_warned in
2546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2547 whose name does not start with the host triplet. If you think this
2548 configuration is useful to you, please write to autoconf@gnu.org." >&5
2549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2550 whose name does not start with the host triplet. If you think this
2551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2552 ac_tool_warned=yes ;;
2560 if test -z "$CC"; then
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}cc; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_CC="${ac_tool_prefix}cc"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test -n "$CC"; then
2591 { echo "$as_me:$LINENO: result: $CC" >&5
2592 echo "${ECHO_T}$CC" >&6; }
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2601 if test -z "$CC"; then
2602 # Extract the first word of "cc", so it can be a program name with args.
2603 set dummy cc; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2621 ac_prog_rejected=yes
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 if test $ac_prog_rejected = yes; then
2633 # We found a bogon in the path, so make sure we never use it.
2634 set dummy $ac_cv_prog_CC
2636 if test $# != 0; then
2637 # We chose a different compiler from the bogus one.
2638 # However, it has the same basename, so the bogon will be chosen
2639 # first if we set CC to just the basename; use the full file name.
2641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2647 if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2657 if test -z "$CC"; then
2658 if test -n "$ac_tool_prefix"; then
2659 for ac_prog in cl.exe
2661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 if test -n "$CC"; then
2690 { echo "$as_me:$LINENO: result: $CC" >&5
2691 echo "${ECHO_T}$CC" >&6; }
2693 { echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6; }
2698 test -n "$CC" && break
2701 if test -z "$CC"; then
2703 for ac_prog in cl.exe
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 if test -n "$ac_ct_CC"; then
2713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_ac_ct_CC="$ac_prog"
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733 if test -n "$ac_ct_CC"; then
2734 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2735 echo "${ECHO_T}$ac_ct_CC" >&6; }
2737 { echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6; }
2742 test -n "$ac_ct_CC" && break
2745 if test "x$ac_ct_CC" = x; then
2748 case $cross_compiling:$ac_tool_warned in
2750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2751 whose name does not start with the host triplet. If you think this
2752 configuration is useful to you, please write to autoconf@gnu.org." >&5
2753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2754 whose name does not start with the host triplet. If you think this
2755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2756 ac_tool_warned=yes ;;
2765 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2766 See \`config.log' for more details." >&5
2767 echo "$as_me: error: no acceptable C compiler found in \$PATH
2768 See \`config.log' for more details." >&2;}
2769 { (exit 1); exit 1; }; }
2771 # Provide some information about the compiler.
2772 echo "$as_me:$LINENO: checking for C compiler version" >&5
2773 ac_compiler=`set X $ac_compile; echo $2`
2774 { (ac_try="$ac_compiler --version >&5"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compiler --version >&5") 2>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }
2784 { (ac_try="$ac_compiler -v >&5"
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compiler -v >&5") 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }
2794 { (ac_try="$ac_compiler -V >&5"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compiler -V >&5") 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }
2805 cat >conftest.$ac_ext <<_ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2820 ac_clean_files_save=$ac_clean_files
2821 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2822 # Try to create an executable without -o first, disregard a.out.
2823 # It will help us diagnose broken compilers, and finding out an intuition
2825 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2826 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2827 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2829 # List of possible output files, starting from the most likely.
2830 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2831 # only as a last resort. b.out is created by i960 compilers.
2832 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2834 # The IRIX 6 linker writes into existing files which may not be
2835 # executable, retaining their permissions. Remove them first so a
2836 # subsequent execution test works.
2838 for ac_file in $ac_files
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2842 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2847 if { (ac_try="$ac_link_default"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_link_default") 2>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; then
2857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2859 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2860 # so that the user can short-circuit this test for compilers unknown to
2862 for ac_file in $ac_files ''
2864 test -f "$ac_file" || continue
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2869 # We found the default executable, but exeext='' is most
2873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2877 # We set ac_cv_exeext here because the later test for it is not
2878 # safe: cross compilers may not add the suffix if given an `-o'
2879 # argument, so we may need to know it at that point already.
2880 # Even if this section looks crufty: it has the advantage of
2887 test "$ac_cv_exeext" = no && ac_cv_exeext=
2893 { echo "$as_me:$LINENO: result: $ac_file" >&5
2894 echo "${ECHO_T}$ac_file" >&6; }
2895 if test -z "$ac_file"; then
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2899 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2900 See \`config.log' for more details." >&5
2901 echo "$as_me: error: C compiler cannot create executables
2902 See \`config.log' for more details." >&2;}
2903 { (exit 77); exit 77; }; }
2906 ac_exeext=$ac_cv_exeext
2908 # Check that the compiler produces executables we can run. If not, either
2909 # the compiler is broken, or we cross compile.
2910 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2911 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2912 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2913 # If not cross compiling, check that we can run a simple program.
2914 if test "$cross_compiling" != yes; then
2915 if { ac_try='./$ac_file'
2916 { (case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_try") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2927 if test "$cross_compiling" = maybe; then
2930 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2931 If you meant to cross compile, use \`--host'.
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot run C compiled programs.
2934 If you meant to cross compile, use \`--host'.
2935 See \`config.log' for more details." >&2;}
2936 { (exit 1); exit 1; }; }
2940 { echo "$as_me:$LINENO: result: yes" >&5
2941 echo "${ECHO_T}yes" >&6; }
2943 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2944 ac_clean_files=$ac_clean_files_save
2945 # Check that the compiler produces executables we can run. If not, either
2946 # the compiler is broken, or we cross compile.
2947 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2948 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2949 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2950 echo "${ECHO_T}$cross_compiling" >&6; }
2952 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2953 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2954 if { (ac_try="$ac_link"
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_link") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; then
2964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2966 # work properly (i.e., refer to `conftest.exe'), while it won't with
2968 for ac_file in conftest.exe conftest conftest.*; do
2969 test -f "$ac_file" || continue
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2978 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2981 See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }
2985 rm -f conftest$ac_cv_exeext
2986 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2987 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2989 rm -f conftest.$ac_ext
2990 EXEEXT=$ac_cv_exeext
2992 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2993 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2994 if test "${ac_cv_objext+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3012 rm -f conftest.o conftest.obj
3013 if { (ac_try="$ac_compile"
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_compile") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; then
3023 for ac_file in conftest.o conftest.obj conftest.*; do
3024 test -f "$ac_file" || continue;
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3027 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3044 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3045 echo "${ECHO_T}$ac_cv_objext" >&6; }
3046 OBJEXT=$ac_cv_objext
3048 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3049 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3050 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compile") 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } && {
3085 test -z "$ac_c_werror_flag" ||
3086 test ! -s conftest.err
3087 } && test -s conftest.$ac_objext; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3100 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3101 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3102 GCC=`test $ac_compiler_gnu = yes && echo yes`
3103 ac_test_CFLAGS=${CFLAGS+set}
3104 ac_save_CFLAGS=$CFLAGS
3105 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3106 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3107 if test "${ac_cv_prog_cc_g+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 ac_save_c_werror_flag=$ac_c_werror_flag
3111 ac_c_werror_flag=yes
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } && {
3181 test -z "$ac_c_werror_flag" ||
3182 test ! -s conftest.err
3183 } && test -s conftest.$ac_objext; then
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_c_werror_flag=$ac_save_c_werror_flag
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3215 grep -v '^ *+' conftest.er1 >conftest.err
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && {
3220 test -z "$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 } && test -s conftest.$ac_objext; then
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_c_werror_flag=$ac_save_c_werror_flag
3240 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3241 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3242 if test "$ac_test_CFLAGS" = set; then
3243 CFLAGS=$ac_save_CFLAGS
3244 elif test $ac_cv_prog_cc_g = yes; then
3245 if test "$GCC" = yes; then
3251 if test "$GCC" = yes; then
3257 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3258 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3259 if test "${ac_cv_prog_cc_c89+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 ac_cv_prog_cc_c89=no
3264 cat >conftest.$ac_ext <<_ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3272 #include <sys/types.h>
3273 #include <sys/stat.h>
3274 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3275 struct buf { int x; };
3276 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3277 static char *e (p, i)
3283 static char *f (char * (*g) (char **, int), char **p, ...)
3288 s = g (p, va_arg (v,int));
3293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3294 function prototypes and stuff, but not '\xHH' hex character constants.
3295 These don't provoke an error unfortunately, instead are silently treated
3296 as 'x'. The following induces an error, until -std is added to get
3297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3298 array size at least. It's necessary to write '\x00'==0 to get something
3299 that's true only with -std. */
3300 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3303 inside strings and character constants. */
3305 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3307 int test (int i, double x);
3308 struct s1 {int (*f) (int a);};
3309 struct s2 {int (*f) (double a);};
3310 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3316 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3324 CC="$ac_save_CC $ac_arg"
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3334 grep -v '^ *+' conftest.er1 >conftest.err
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3342 ac_cv_prog_cc_c89=$ac_arg
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f core conftest.err conftest.$ac_objext
3351 test "x$ac_cv_prog_cc_c89" != "xno" && break
3353 rm -f conftest.$ac_ext
3358 case "x$ac_cv_prog_cc_c89" in
3360 { echo "$as_me:$LINENO: result: none needed" >&5
3361 echo "${ECHO_T}none needed" >&6; } ;;
3363 { echo "$as_me:$LINENO: result: unsupported" >&5
3364 echo "${ECHO_T}unsupported" >&6; } ;;
3366 CC="$CC $ac_cv_prog_cc_c89"
3367 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 DEPDIR="${am__leading_dot}deps"
3379 ac_config_commands="$ac_config_commands depfiles"
3382 am_make=${MAKE-make}
3383 cat > confinc << 'END'
3388 # If we don't find an include directive, just comment out the code.
3389 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3390 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3394 # First try GNU make style include.
3395 echo "include confinc" > confmf
3396 # We grep out `Entering directory' and `Leaving directory'
3397 # messages which can occur if `w' ends up in MAKEFLAGS.
3398 # In particular we don't look at `^make:' because GNU make might
3399 # be invoked under some other name (usually "gmake"), in which
3400 # case it prints its new name instead of `make'.
3401 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3406 # Now try BSD make style include.
3407 if test "$am__include" = "#"; then
3408 echo '.include "confinc"' > confmf
3409 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3410 am__include=.include
3417 { echo "$as_me:$LINENO: result: $_am_result" >&5
3418 echo "${ECHO_T}$_am_result" >&6; }
3419 rm -f confinc confmf
3421 # Check whether --enable-dependency-tracking was given.
3422 if test "${enable_dependency_tracking+set}" = set; then
3423 enableval=$enable_dependency_tracking;
3426 if test "x$enable_dependency_tracking" != xno; then
3427 am_depcomp="$ac_aux_dir/depcomp"
3430 if test "x$enable_dependency_tracking" != xno; then
3440 depcc="$CC" am_compiler_list=
3442 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3443 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3444 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3448 # We make a subdir and do the tests there. Otherwise we can end up
3449 # making bogus files that we don't know about and never remove. For
3450 # instance it was reported that on HP-UX the gcc test will end up
3451 # making a dummy file named `D' -- because `-MD' means `put the output
3454 # Copy depcomp to subdir because otherwise we won't find it if we're
3455 # using a relative directory.
3456 cp "$am_depcomp" conftest.dir
3458 # We will build objects and dependencies in a subdirectory because
3459 # it helps to detect inapplicable dependency modes. For instance
3460 # both Tru64's cc and ICC support -MD to output dependencies as a
3461 # side effect of compilation, but ICC will put the dependencies in
3462 # the current directory while Tru64 will put them in the object
3466 am_cv_CC_dependencies_compiler_type=none
3467 if test "$am_compiler_list" = ""; then
3468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3470 for depmode in $am_compiler_list; do
3471 # Setup a source with many dependencies, because some compilers
3472 # like to wrap large dependency lists on column 80 (with \), and
3473 # we should not choose a depcomp mode which is confused by this.
3475 # We need to recreate these files for each test, as the compiler may
3476 # overwrite some of them when testing with obscure command lines.
3477 # This happens at least with the AIX C compiler.
3479 for i in 1 2 3 4 5 6; do
3480 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3481 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3482 # Solaris 8's {/usr,}/bin/sh.
3483 touch sub/conftst$i.h
3485 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3489 # after this tag, mechanisms are not by side-effect, so they'll
3490 # only be used when explicitly requested
3491 if test "x$enable_dependency_tracking" = xyes; then
3499 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3500 # mode. It turns out that the SunPro C++ compiler does not properly
3501 # handle `-M -o', and we need to detect this.
3502 if depmode=$depmode \
3503 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3504 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3505 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3506 >/dev/null 2>conftest.err &&
3507 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3508 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3509 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3510 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3511 # icc doesn't choke on unknown options, it will just issue warnings
3512 # or remarks (even with -Werror). So we grep stderr for any message
3513 # that says an option was ignored or not supported.
3514 # When given -MP, icc 7.0 and 7.1 complain thusly:
3515 # icc: Command line warning: ignoring option '-M'; no argument required
3516 # The diagnosis changed in icc 8.0:
3517 # icc: Command line remark: option '-MP' not supported
3518 if (grep 'ignoring option' conftest.err ||
3519 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3520 am_cv_CC_dependencies_compiler_type=$depmode
3529 am_cv_CC_dependencies_compiler_type=none
3533 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3534 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3535 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3538 test "x$enable_dependency_tracking" != xno \
3539 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3541 am__fastdepCC_FALSE='#'
3543 am__fastdepCC_TRUE='#'
3544 am__fastdepCC_FALSE=
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3554 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3555 # On Suns, sometimes $CPP names a directory.
3556 if test -n "$CPP" && test -d "$CPP"; then
3559 if test -z "$CPP"; then
3560 if test "${ac_cv_prog_CPP+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 # Double quotes because CPP needs to be expanded
3564 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3567 for ac_c_preproc_warn_flag in '' yes
3569 # Use a header file that comes with gcc, so configuring glibc
3570 # with a fresh cross-compiler works.
3571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572 # <limits.h> exists even on freestanding compilers.
3573 # On the NeXT, cc -E runs the code through the compiler's parser,
3574 # not just through cpp. "Syntax error" is here to catch this case.
3575 cat >conftest.$ac_ext <<_ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3582 # include <limits.h>
3584 # include <assert.h>
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null && {
3601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 # Broken: fails on valid input.
3613 rm -f conftest.err conftest.$ac_ext
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat >conftest.$ac_ext <<_ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <ac_nonexistent.h>
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1 >conftest.err
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } >/dev/null && {
3638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3641 # Broken: success on invalid input.
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 # Passes both tests.
3652 rm -f conftest.err conftest.$ac_ext
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.err conftest.$ac_ext
3657 if $ac_preproc_ok; then
3669 { echo "$as_me:$LINENO: result: $CPP" >&5
3670 echo "${ECHO_T}$CPP" >&6; }
3672 for ac_c_preproc_warn_flag in '' yes
3674 # Use a header file that comes with gcc, so configuring glibc
3675 # with a fresh cross-compiler works.
3676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3677 # <limits.h> exists even on freestanding compilers.
3678 # On the NeXT, cc -E runs the code through the compiler's parser,
3679 # not just through cpp. "Syntax error" is here to catch this case.
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3687 # include <limits.h>
3689 # include <assert.h>
3693 if { (ac_try="$ac_cpp conftest.$ac_ext"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3701 grep -v '^ *+' conftest.er1 >conftest.err
3703 cat conftest.err >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } >/dev/null && {
3706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3707 test ! -s conftest.err
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 # Broken: fails on valid input.
3718 rm -f conftest.err conftest.$ac_ext
3720 # OK, works on sane cases. Now check whether nonexistent headers
3721 # can be detected and how.
3722 cat >conftest.$ac_ext <<_ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 #include <ac_nonexistent.h>
3730 if { (ac_try="$ac_cpp conftest.$ac_ext"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3738 grep -v '^ *+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } >/dev/null && {
3743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3744 test ! -s conftest.err
3746 # Broken: success on invalid input.
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 # Passes both tests.
3757 rm -f conftest.err conftest.$ac_ext
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761 rm -f conftest.err conftest.$ac_ext
3762 if $ac_preproc_ok; then
3765 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details." >&5
3767 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3768 See \`config.log' for more details." >&2;}
3769 { (exit 1); exit 1; }; }
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 ac_cpp='$CXXCPP $CPPFLAGS'
3780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3783 if test -z "$CXX"; then
3784 if test -n "$CCC"; then
3787 if test -n "$ac_tool_prefix"; then
3788 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3794 if test "${ac_cv_prog_CXX+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 if test -n "$CXX"; then
3798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 if test -n "$CXX"; then
3819 { echo "$as_me:$LINENO: result: $CXX" >&5
3820 echo "${ECHO_T}$CXX" >&6; }
3822 { echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6; }
3827 test -n "$CXX" && break
3830 if test -z "$CXX"; then
3832 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3834 # Extract the first word of "$ac_prog", so it can be a program name with args.
3835 set dummy $ac_prog; ac_word=$2
3836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 if test -n "$ac_ct_CXX"; then
3842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_ac_ct_CXX="$ac_prog"
3852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3862 if test -n "$ac_ct_CXX"; then
3863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3866 { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3871 test -n "$ac_ct_CXX" && break
3874 if test "x$ac_ct_CXX" = x; then
3877 case $cross_compiling:$ac_tool_warned in
3879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3880 whose name does not start with the host triplet. If you think this
3881 configuration is useful to you, please write to autoconf@gnu.org." >&5
3882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3883 whose name does not start with the host triplet. If you think this
3884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3885 ac_tool_warned=yes ;;
3893 # Provide some information about the compiler.
3894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3895 ac_compiler=`set X $ac_compile; echo $2`
3896 { (ac_try="$ac_compiler --version >&5"
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_compiler --version >&5") 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }
3906 { (ac_try="$ac_compiler -v >&5"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_compiler -v >&5") 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }
3916 { (ac_try="$ac_compiler -V >&5"
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_compiler -V >&5") 2>&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }
3927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3950 rm -f conftest.$ac_objext
3951 if { (ac_try="$ac_compile"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_cxx_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3979 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3980 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3981 GXX=`test $ac_compiler_gnu = yes && echo yes`
3982 ac_test_CXXFLAGS=${CXXFLAGS+set}
3983 ac_save_CXXFLAGS=$CXXFLAGS
3984 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3985 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3986 if test "${ac_cv_prog_cxx_g+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3990 ac_cxx_werror_flag=yes
3993 cat >conftest.$ac_ext <<_ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compile") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1 >conftest.err
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_cxx_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest.$ac_objext; then
4025 ac_cv_prog_cxx_g=yes
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4031 cat >conftest.$ac_ext <<_ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4046 rm -f conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_compile") 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } && {
4060 test -z "$ac_cxx_werror_flag" ||
4061 test ! -s conftest.err
4062 } && test -s conftest.$ac_objext; then
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_cxx_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest.$ac_objext; then
4102 ac_cv_prog_cxx_g=yes
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4119 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4120 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4121 if test "$ac_test_CXXFLAGS" = set; then
4122 CXXFLAGS=$ac_save_CXXFLAGS
4123 elif test $ac_cv_prog_cxx_g = yes; then
4124 if test "$GXX" = yes; then
4130 if test "$GXX" = yes; then
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 depcc="$CXX" am_compiler_list=
4144 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4145 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4146 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4150 # We make a subdir and do the tests there. Otherwise we can end up
4151 # making bogus files that we don't know about and never remove. For
4152 # instance it was reported that on HP-UX the gcc test will end up
4153 # making a dummy file named `D' -- because `-MD' means `put the output
4156 # Copy depcomp to subdir because otherwise we won't find it if we're
4157 # using a relative directory.
4158 cp "$am_depcomp" conftest.dir
4160 # We will build objects and dependencies in a subdirectory because
4161 # it helps to detect inapplicable dependency modes. For instance
4162 # both Tru64's cc and ICC support -MD to output dependencies as a
4163 # side effect of compilation, but ICC will put the dependencies in
4164 # the current directory while Tru64 will put them in the object
4168 am_cv_CXX_dependencies_compiler_type=none
4169 if test "$am_compiler_list" = ""; then
4170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4172 for depmode in $am_compiler_list; do
4173 # Setup a source with many dependencies, because some compilers
4174 # like to wrap large dependency lists on column 80 (with \), and
4175 # we should not choose a depcomp mode which is confused by this.
4177 # We need to recreate these files for each test, as the compiler may
4178 # overwrite some of them when testing with obscure command lines.
4179 # This happens at least with the AIX C compiler.
4181 for i in 1 2 3 4 5 6; do
4182 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4183 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4184 # Solaris 8's {/usr,}/bin/sh.
4185 touch sub/conftst$i.h
4187 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4191 # after this tag, mechanisms are not by side-effect, so they'll
4192 # only be used when explicitly requested
4193 if test "x$enable_dependency_tracking" = xyes; then
4201 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4202 # mode. It turns out that the SunPro C++ compiler does not properly
4203 # handle `-M -o', and we need to detect this.
4204 if depmode=$depmode \
4205 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4206 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4207 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4208 >/dev/null 2>conftest.err &&
4209 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4211 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4213 # icc doesn't choke on unknown options, it will just issue warnings
4214 # or remarks (even with -Werror). So we grep stderr for any message
4215 # that says an option was ignored or not supported.
4216 # When given -MP, icc 7.0 and 7.1 complain thusly:
4217 # icc: Command line warning: ignoring option '-M'; no argument required
4218 # The diagnosis changed in icc 8.0:
4219 # icc: Command line remark: option '-MP' not supported
4220 if (grep 'ignoring option' conftest.err ||
4221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4222 am_cv_CXX_dependencies_compiler_type=$depmode
4231 am_cv_CXX_dependencies_compiler_type=none
4235 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4236 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4237 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4240 test "x$enable_dependency_tracking" != xno \
4241 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4242 am__fastdepCXX_TRUE=
4243 am__fastdepCXX_FALSE='#'
4245 am__fastdepCXX_TRUE='#'
4246 am__fastdepCXX_FALSE=
4250 if test "$GCC" = yes; then
4257 # let the Makefile know if we're gcc
4259 # Check whether --enable-shared was given.
4260 if test "${enable_shared+set}" = set; then
4261 enableval=$enable_shared; p=${PACKAGE-default}
4263 yes) enable_shared=yes ;;
4264 no) enable_shared=no ;;
4267 # Look at the argument we got. We use all the common list separators.
4268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4269 for pkg in $enableval; do
4271 if test "X$pkg" = "X$p"; then
4283 # Check whether --enable-static was given.
4284 if test "${enable_static+set}" = set; then
4285 enableval=$enable_static; p=${PACKAGE-default}
4287 yes) enable_static=yes ;;
4288 no) enable_static=no ;;
4291 # Look at the argument we got. We use all the common list separators.
4292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4293 for pkg in $enableval; do
4295 if test "X$pkg" = "X$p"; then
4307 # Check whether --enable-fast-install was given.
4308 if test "${enable_fast_install+set}" = set; then
4309 enableval=$enable_fast_install; p=${PACKAGE-default}
4311 yes) enable_fast_install=yes ;;
4312 no) enable_fast_install=no ;;
4314 enable_fast_install=no
4315 # Look at the argument we got. We use all the common list separators.
4316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317 for pkg in $enableval; do
4319 if test "X$pkg" = "X$p"; then
4320 enable_fast_install=yes
4327 enable_fast_install=yes
4331 # Make sure we can run config.sub.
4332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4333 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4334 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4335 { (exit 1); exit 1; }; }
4337 { echo "$as_me:$LINENO: checking build system type" >&5
4338 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4339 if test "${ac_cv_build+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 ac_build_alias=$build_alias
4343 test "x$ac_build_alias" = x &&
4344 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4345 test "x$ac_build_alias" = x &&
4346 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4347 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4348 { (exit 1); exit 1; }; }
4349 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4350 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4351 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4352 { (exit 1); exit 1; }; }
4355 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4356 echo "${ECHO_T}$ac_cv_build" >&6; }
4357 case $ac_cv_build in
4359 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4360 echo "$as_me: error: invalid value of canonical build" >&2;}
4361 { (exit 1); exit 1; }; };;
4364 ac_save_IFS=$IFS; IFS='-'
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4377 { echo "$as_me:$LINENO: checking host system type" >&5
4378 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4379 if test "${ac_cv_host+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 if test "x$host_alias" = x; then
4383 ac_cv_host=$ac_cv_build
4385 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4386 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4387 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4388 { (exit 1); exit 1; }; }
4392 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4393 echo "${ECHO_T}$ac_cv_host" >&6; }
4396 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4397 echo "$as_me: error: invalid value of canonical host" >&2;}
4398 { (exit 1); exit 1; }; };;
4401 ac_save_IFS=$IFS; IFS='-'
4407 # Remember, the first character of IFS is used to create $*,
4408 # except with old shells:
4411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4414 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4415 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4416 if test "${lt_cv_path_SED+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 # Loop through the user's path and test for sed and gsed.
4420 # Then use that list of sed's as ones to test for truncation.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for lt_ac_prog in sed gsed; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4429 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4437 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4438 # along with /bin/sed that truncates output.
4439 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4440 test ! -f $lt_ac_sed && continue
4441 cat /dev/null > conftest.in
4443 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4444 # Check for GNU sed and select it if it is found.
4445 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4446 lt_cv_path_SED=$lt_ac_sed
4450 cat conftest.in conftest.in >conftest.tmp
4451 mv conftest.tmp conftest.in
4452 cp conftest.in conftest.nl
4454 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4455 cmp -s conftest.out conftest.nl || break
4456 # 10000 chars as input seems more than enough
4457 test $lt_ac_count -gt 10 && break
4458 lt_ac_count=`expr $lt_ac_count + 1`
4459 if test $lt_ac_count -gt $lt_ac_max; then
4460 lt_ac_max=$lt_ac_count
4461 lt_cv_path_SED=$lt_ac_sed
4470 { echo "$as_me:$LINENO: result: $SED" >&5
4471 echo "${ECHO_T}$SED" >&6; }
4473 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4474 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4475 if test "${ac_cv_path_GREP+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 # Extract the first word of "grep ggrep" to use in msg output
4479 if test -z "$GREP"; then
4480 set dummy grep ggrep; ac_prog_name=$2
4481 if test "${ac_cv_path_GREP+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 ac_path_GREP_found=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490 test -z "$as_dir" && as_dir=.
4491 for ac_prog in grep ggrep; do
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4494 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4495 # Check for GNU ac_path_GREP and select it if it is found.
4496 # Check for GNU $ac_path_GREP
4497 case `"$ac_path_GREP" --version 2>&1` in
4499 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4502 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4505 cat "conftest.in" "conftest.in" >"conftest.tmp"
4506 mv "conftest.tmp" "conftest.in"
4507 cp "conftest.in" "conftest.nl"
4508 echo 'GREP' >> "conftest.nl"
4509 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511 ac_count=`expr $ac_count + 1`
4512 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4513 # Best one so far, save it but keep looking for a better one
4514 ac_cv_path_GREP="$ac_path_GREP"
4515 ac_path_GREP_max=$ac_count
4517 # 10*(2^10) chars as input seems more than enough
4518 test $ac_count -gt 10 && break
4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 $ac_path_GREP_found && break 3
4534 GREP="$ac_cv_path_GREP"
4535 if test -z "$GREP"; then
4536 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4537 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4538 { (exit 1); exit 1; }; }
4542 ac_cv_path_GREP=$GREP
4547 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4548 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4549 GREP="$ac_cv_path_GREP"
4552 { echo "$as_me:$LINENO: checking for egrep" >&5
4553 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4554 if test "${ac_cv_path_EGREP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4558 then ac_cv_path_EGREP="$GREP -E"
4560 # Extract the first word of "egrep" to use in msg output
4561 if test -z "$EGREP"; then
4562 set dummy egrep; ac_prog_name=$2
4563 if test "${ac_cv_path_EGREP+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 ac_path_EGREP_found=false
4567 # Loop through the user's path and test for each of PROGNAME-LIST
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 test -z "$as_dir" && as_dir=.
4573 for ac_prog in egrep; do
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4576 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4577 # Check for GNU ac_path_EGREP and select it if it is found.
4578 # Check for GNU $ac_path_EGREP
4579 case `"$ac_path_EGREP" --version 2>&1` in
4581 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4584 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4587 cat "conftest.in" "conftest.in" >"conftest.tmp"
4588 mv "conftest.tmp" "conftest.in"
4589 cp "conftest.in" "conftest.nl"
4590 echo 'EGREP' >> "conftest.nl"
4591 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593 ac_count=`expr $ac_count + 1`
4594 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4595 # Best one so far, save it but keep looking for a better one
4596 ac_cv_path_EGREP="$ac_path_EGREP"
4597 ac_path_EGREP_max=$ac_count
4599 # 10*(2^10) chars as input seems more than enough
4600 test $ac_count -gt 10 && break
4602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 $ac_path_EGREP_found && break 3
4616 EGREP="$ac_cv_path_EGREP"
4617 if test -z "$EGREP"; then
4618 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4619 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4620 { (exit 1); exit 1; }; }
4624 ac_cv_path_EGREP=$EGREP
4630 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4631 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4632 EGREP="$ac_cv_path_EGREP"
4636 # Check whether --with-gnu-ld was given.
4637 if test "${with_gnu_ld+set}" = set; then
4638 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4644 if test "$GCC" = yes; then
4645 # Check if gcc -print-prog-name=ld gives a path.
4646 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4647 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4650 # gcc leaves a trailing carriage return which upsets mingw
4651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4656 # Accept absolute paths.
4658 re_direlt='/[^/][^/]*/\.\./'
4659 # Canonicalize the pathname of ld
4660 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4661 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4662 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4664 test -z "$LD" && LD="$ac_prog"
4667 # If it fails, then pretend we aren't using GCC.
4671 # If it is relative, then search for the first ld in PATH.
4675 elif test "$with_gnu_ld" = yes; then
4676 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4677 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4679 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4680 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4682 if test "${lt_cv_path_LD+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 if test -z "$LD"; then
4686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4687 for ac_dir in $PATH; do
4689 test -z "$ac_dir" && ac_dir=.
4690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4691 lt_cv_path_LD="$ac_dir/$ac_prog"
4692 # Check to see if the program is GNU ld. I'd rather use --version,
4693 # but apparently some variants of GNU ld only accept -v.
4694 # Break only if it was the GNU/non-GNU ld that we prefer.
4695 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4696 *GNU* | *'with BFD'*)
4697 test "$with_gnu_ld" != no && break
4700 test "$with_gnu_ld" != yes && break
4707 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4712 if test -n "$LD"; then
4713 { echo "$as_me:$LINENO: result: $LD" >&5
4714 echo "${ECHO_T}$LD" >&6; }
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4719 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4720 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4721 { (exit 1); exit 1; }; }
4722 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4723 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4724 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4728 case `$LD -v 2>&1 </dev/null` in
4729 *GNU* | *'with BFD'*)
4730 lt_cv_prog_gnu_ld=yes
4733 lt_cv_prog_gnu_ld=no
4737 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4738 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4739 with_gnu_ld=$lt_cv_prog_gnu_ld
4742 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4743 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4744 if test "${lt_cv_ld_reload_flag+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 lt_cv_ld_reload_flag='-r'
4749 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4750 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4751 reload_flag=$lt_cv_ld_reload_flag
4752 case $reload_flag in
4754 *) reload_flag=" $reload_flag" ;;
4756 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4759 if test "$GCC" = yes; then
4760 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4762 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4767 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4768 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4769 if test "${lt_cv_path_NM+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 if test -n "$NM"; then
4773 # Let the user override the test.
4776 lt_nm_to_check="${ac_tool_prefix}nm"
4777 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4778 lt_nm_to_check="$lt_nm_to_check nm"
4780 for lt_tmp_nm in $lt_nm_to_check; do
4781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4784 test -z "$ac_dir" && ac_dir=.
4785 tmp_nm="$ac_dir/$lt_tmp_nm"
4786 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4787 # Check to see if the nm accepts a BSD-compat flag.
4788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4789 # nm: unknown option "B" ignored
4790 # Tru64's nm complains that /dev/null is an invalid object file
4791 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4792 */dev/null* | *'Invalid file or object type'*)
4793 lt_cv_path_NM="$tmp_nm -B"
4797 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4799 lt_cv_path_NM="$tmp_nm -p"
4803 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4804 continue # so that we can try to find one that supports BSD flags
4813 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4816 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4817 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4820 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4821 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4823 if test "$LN_S" = "ln -s"; then
4824 { echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6; }
4827 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4828 echo "${ECHO_T}no, using $LN_S" >&6; }
4831 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4832 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4833 if test "${lt_cv_deplibs_check_method+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 lt_cv_file_magic_cmd='$MAGIC_CMD'
4837 lt_cv_file_magic_test_file=
4838 lt_cv_deplibs_check_method='unknown'
4839 # Need to set the preceding variable on all platforms that support
4840 # interlibrary dependencies.
4841 # 'none' -- dependencies not supported.
4842 # `unknown' -- same as none, but documents that we really don't know.
4843 # 'pass_all' -- all dependencies passed with no checks.
4844 # 'test_compile' -- check by making test program.
4845 # 'file_magic [[regex]]' -- check by looking for files in library path
4846 # which responds to the $file_magic_cmd with a given extended regex.
4847 # If you have `file' or equivalent on your system and you're not sure
4848 # whether `pass_all' will *always* work, you probably want this one.
4852 lt_cv_deplibs_check_method=pass_all
4856 lt_cv_deplibs_check_method=pass_all
4860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4861 lt_cv_file_magic_cmd='/usr/bin/file -L'
4862 lt_cv_file_magic_test_file=/shlib/libc.so
4866 # func_win32_libid is a shell function defined in ltmain.sh
4867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4868 lt_cv_file_magic_cmd='func_win32_libid'
4872 # Base MSYS/MinGW do not provide the 'file' command needed by
4873 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4874 # unless we find 'file', for example because we are cross-compiling.
4875 if ( file / ) >/dev/null 2>&1; then
4876 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4877 lt_cv_file_magic_cmd='func_win32_libid'
4879 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4880 lt_cv_file_magic_cmd='$OBJDUMP -f'
4884 darwin* | rhapsody*)
4885 lt_cv_deplibs_check_method=pass_all
4888 freebsd* | dragonfly*)
4889 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4892 # Not sure whether the presence of OpenBSD here was a mistake.
4893 # Let's accept both of them until this is cleared up.
4894 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4895 lt_cv_file_magic_cmd=/usr/bin/file
4896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4900 lt_cv_deplibs_check_method=pass_all
4905 lt_cv_deplibs_check_method=pass_all
4908 hpux10.20* | hpux11*)
4909 lt_cv_file_magic_cmd=/usr/bin/file
4912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4913 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4916 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]'
4917 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4921 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4927 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4931 irix5* | irix6* | nonstopux*)
4933 *-32|*"-32 ") libmagic=32-bit;;
4934 *-n32|*"-n32 ") libmagic=N32;;
4935 *-64|*"-64 ") libmagic=64-bit;;
4936 *) libmagic=never-match;;
4938 lt_cv_deplibs_check_method=pass_all
4941 # This must be Linux ELF.
4942 linux* | k*bsd*-gnu)
4943 lt_cv_deplibs_check_method=pass_all
4946 netbsd* | netbsdelf*-gnu)
4947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4956 lt_cv_file_magic_cmd=/usr/bin/file
4957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4961 lt_cv_deplibs_check_method=unknown
4965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4972 osf3* | osf4* | osf5*)
4973 lt_cv_deplibs_check_method=pass_all
4977 lt_cv_deplibs_check_method=pass_all
4981 lt_cv_deplibs_check_method=pass_all
4985 case $host_vendor in
4987 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]'
4988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4991 lt_cv_deplibs_check_method=pass_all
4994 lt_cv_file_magic_cmd='/bin/file'
4995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4998 lt_cv_file_magic_cmd='/bin/file'
4999 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5000 lt_cv_file_magic_test_file=/lib/libc.so
5003 lt_cv_deplibs_check_method=pass_all
5006 lt_cv_deplibs_check_method=pass_all
5011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5012 lt_cv_deplibs_check_method=pass_all
5017 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5018 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5019 file_magic_cmd=$lt_cv_file_magic_cmd
5020 deplibs_check_method=$lt_cv_deplibs_check_method
5021 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5026 # If no C compiler was specified, use CC.
5029 # If no C compiler flags were specified, use CFLAGS.
5030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5032 # Allow CC to be a program name with arguments.
5036 # Check whether --enable-libtool-lock was given.
5037 if test "${enable_libtool_lock+set}" = set; then
5038 enableval=$enable_libtool_lock;
5041 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5043 # Some flags need to be propagated to the compiler or linker for good
5047 # Find out which ABI we are using.
5048 echo 'int i;' > conftest.$ac_ext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5050 (eval $ac_compile) 2>&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; then
5054 case `/usr/bin/file conftest.$ac_objext` in
5066 # Find out which ABI we are using.
5067 echo '#line 5067 "configure"' > conftest.$ac_ext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069 (eval $ac_compile) 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; then
5073 if test "$lt_cv_prog_gnu_ld" = yes; then
5074 case `/usr/bin/file conftest.$ac_objext` in
5076 LD="${LD-ld} -melf32bsmip"
5079 LD="${LD-ld} -melf32bmipn32"
5082 LD="${LD-ld} -melf64bmip"
5086 case `/usr/bin/file conftest.$ac_objext` in
5102 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5103 s390*-*linux*|sparc*-*linux*)
5104 # Find out which ABI we are using.
5105 echo 'int i;' > conftest.$ac_ext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107 (eval $ac_compile) 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; then
5111 case `/usr/bin/file conftest.o` in
5114 x86_64-*kfreebsd*-gnu)
5115 LD="${LD-ld} -m elf_i386_fbsd"
5118 LD="${LD-ld} -m elf_i386"
5120 ppc64-*linux*|powerpc64-*linux*)
5121 LD="${LD-ld} -m elf32ppclinux"
5124 LD="${LD-ld} -m elf_s390"
5127 LD="${LD-ld} -m elf32_sparc"
5133 x86_64-*kfreebsd*-gnu)
5134 LD="${LD-ld} -m elf_x86_64_fbsd"
5137 LD="${LD-ld} -m elf_x86_64"
5139 ppc*-*linux*|powerpc*-*linux*)
5140 LD="${LD-ld} -m elf64ppc"
5143 LD="${LD-ld} -m elf64_s390"
5146 LD="${LD-ld} -m elf64_sparc"
5156 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5157 SAVE_CFLAGS="$CFLAGS"
5158 CFLAGS="$CFLAGS -belf"
5159 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5160 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5161 if test "${lt_cv_cc_needs_belf+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5185 rm -f conftest.$ac_objext conftest$ac_exeext
5186 if { (ac_try="$ac_link"
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_link") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && {
5199 test -z "$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest$ac_exeext &&
5202 $as_test_x conftest$ac_exeext; then
5203 lt_cv_cc_needs_belf=yes
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 lt_cv_cc_needs_belf=no
5211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5212 conftest$ac_exeext conftest.$ac_ext
5214 ac_cpp='$CPP $CPPFLAGS'
5215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5221 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5222 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5223 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5224 CFLAGS="$SAVE_CFLAGS"
5228 # Find out which ABI we are using.
5229 echo 'int i;' > conftest.$ac_ext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; then
5235 case `/usr/bin/file conftest.o` in
5237 case $lt_cv_prog_gnu_ld in
5238 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5240 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5254 need_locks="$enable_libtool_lock"
5258 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5260 if test "${ac_cv_header_stdc+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 cat >conftest.$ac_ext <<_ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5282 rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_compile") 2>conftest.er1
5291 grep -v '^ *+' conftest.er1 >conftest.err
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && {
5296 test -z "$ac_c_werror_flag" ||
5297 test ! -s conftest.err
5298 } && test -s conftest.$ac_objext; then
5299 ac_cv_header_stdc=yes
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 ac_cv_header_stdc=no
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 if test $ac_cv_header_stdc = yes; then
5310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 $EGREP "memchr" >/dev/null 2>&1; then
5324 ac_cv_header_stdc=no
5330 if test $ac_cv_header_stdc = yes; then
5331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5342 $EGREP "free" >/dev/null 2>&1; then
5345 ac_cv_header_stdc=no
5351 if test $ac_cv_header_stdc = yes; then
5352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5353 if test "$cross_compiling" = yes; then
5356 cat >conftest.$ac_ext <<_ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5364 #if ((' ' & 0x0FF) == 0x020)
5365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5368 # define ISLOWER(c) \
5369 (('a' <= (c) && (c) <= 'i') \
5370 || ('j' <= (c) && (c) <= 'r') \
5371 || ('s' <= (c) && (c) <= 'z'))
5372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5380 for (i = 0; i < 256; i++)
5381 if (XOR (islower (i), ISLOWER (i))
5382 || toupper (i) != TOUPPER (i))
5387 rm -f conftest$ac_exeext
5388 if { (ac_try="$ac_link"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_link") 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5398 { (case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_try") 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5409 echo "$as_me: program exited with status $ac_status" >&5
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_cv_header_stdc=no
5416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5422 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5423 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5424 if test $ac_cv_header_stdc = yes; then
5426 cat >>confdefs.h <<\_ACEOF
5427 #define STDC_HEADERS 1
5432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5443 inttypes.h stdint.h unistd.h
5445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5459 #include <$ac_header>
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 eval "$as_ac_Header=yes"
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 eval "$as_ac_Header=no"
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 ac_res=`eval echo '${'$as_ac_Header'}'`
5489 { echo "$as_me:$LINENO: result: $ac_res" >&5
5490 echo "${ECHO_T}$ac_res" >&6; }
5491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5492 cat >>confdefs.h <<_ACEOF
5493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502 for ac_header in dlfcn.h
5504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_res=`eval echo '${'$as_ac_Header'}'`
5512 { echo "$as_me:$LINENO: result: $ac_res" >&5
5513 echo "${ECHO_T}$ac_res" >&6; }
5515 # Is the header compilable?
5516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 $ac_includes_default
5525 #include <$ac_header>
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && {
5541 test -z "$ac_c_werror_flag" ||
5542 test ! -s conftest.err
5543 } && test -s conftest.$ac_objext; then
5544 ac_header_compiler=yes
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_header_compiler=no
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 echo "${ECHO_T}$ac_header_compiler" >&6; }
5556 # Is the header present?
5557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #include <$ac_header>
5567 if { (ac_try="$ac_cpp conftest.$ac_ext"
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } >/dev/null && {
5580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5583 ac_header_preproc=yes
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_header_preproc=no
5591 rm -f conftest.err conftest.$ac_ext
5592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5593 echo "${ECHO_T}$ac_header_preproc" >&6; }
5595 # So? What about this header?
5596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5602 ac_header_preproc=yes
5605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5618 ## ------------------------------------ ##
5619 ## Report this to opensource@google.com ##
5620 ## ------------------------------------ ##
5622 ) | sed "s/^/$as_me: WARNING: /" >&2
5625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 eval "$as_ac_Header=\$ac_header_preproc"
5632 ac_res=`eval echo '${'$as_ac_Header'}'`
5633 { echo "$as_me:$LINENO: result: $ac_res" >&5
5634 echo "${ECHO_T}$ac_res" >&6; }
5637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5638 cat >>confdefs.h <<_ACEOF
5639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5648 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5649 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5650 (test "X$CXX" != "Xg++"))) ; then
5652 ac_cpp='$CXXCPP $CPPFLAGS'
5653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5656 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5657 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5658 if test -z "$CXXCPP"; then
5659 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 # Double quotes because CXXCPP needs to be expanded
5663 for CXXCPP in "$CXX -E" "/lib/cpp"
5666 for ac_cxx_preproc_warn_flag in '' yes
5668 # Use a header file that comes with gcc, so configuring glibc
5669 # with a fresh cross-compiler works.
5670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5671 # <limits.h> exists even on freestanding compilers.
5672 # On the NeXT, cc -E runs the code through the compiler's parser,
5673 # not just through cpp. "Syntax error" is here to catch this case.
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 # include <limits.h>
5683 # include <assert.h>
5687 if { (ac_try="$ac_cpp conftest.$ac_ext"
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5695 grep -v '^ *+' conftest.er1 >conftest.err
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } >/dev/null && {
5700 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5701 test ! -s conftest.err
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 # Broken: fails on valid input.
5712 rm -f conftest.err conftest.$ac_ext
5714 # OK, works on sane cases. Now check whether nonexistent headers
5715 # can be detected and how.
5716 cat >conftest.$ac_ext <<_ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 #include <ac_nonexistent.h>
5724 if { (ac_try="$ac_cpp conftest.$ac_ext"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } >/dev/null && {
5737 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5738 test ! -s conftest.err
5740 # Broken: success on invalid input.
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5746 # Passes both tests.
5751 rm -f conftest.err conftest.$ac_ext
5754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5755 rm -f conftest.err conftest.$ac_ext
5756 if $ac_preproc_ok; then
5761 ac_cv_prog_CXXCPP=$CXXCPP
5764 CXXCPP=$ac_cv_prog_CXXCPP
5766 ac_cv_prog_CXXCPP=$CXXCPP
5768 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5769 echo "${ECHO_T}$CXXCPP" >&6; }
5771 for ac_cxx_preproc_warn_flag in '' yes
5773 # Use a header file that comes with gcc, so configuring glibc
5774 # with a fresh cross-compiler works.
5775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5776 # <limits.h> exists even on freestanding compilers.
5777 # On the NeXT, cc -E runs the code through the compiler's parser,
5778 # not just through cpp. "Syntax error" is here to catch this case.
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5786 # include <limits.h>
5788 # include <assert.h>
5792 if { (ac_try="$ac_cpp conftest.$ac_ext"
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5800 grep -v '^ *+' conftest.er1 >conftest.err
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } >/dev/null && {
5805 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5806 test ! -s conftest.err
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 # Broken: fails on valid input.
5817 rm -f conftest.err conftest.$ac_ext
5819 # OK, works on sane cases. Now check whether nonexistent headers
5820 # can be detected and how.
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #include <ac_nonexistent.h>
5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5843 test ! -s conftest.err
5845 # Broken: success on invalid input.
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 # Passes both tests.
5856 rm -f conftest.err conftest.$ac_ext
5859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5860 rm -f conftest.err conftest.$ac_ext
5861 if $ac_preproc_ok; then
5864 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5865 See \`config.log' for more details." >&5
5866 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5867 See \`config.log' for more details." >&2;}
5868 { (exit 1); exit 1; }; }
5872 ac_cpp='$CXXCPP $CPPFLAGS'
5873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5881 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5882 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5884 if test -n "$ac_tool_prefix"; then
5885 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
5887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5891 if test "${ac_cv_prog_F77+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 if test -n "$F77"; then
5895 ac_cv_prog_F77="$F77" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 if test -n "$F77"; then
5916 { echo "$as_me:$LINENO: result: $F77" >&5
5917 echo "${ECHO_T}$F77" >&6; }
5919 { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5924 test -n "$F77" && break
5927 if test -z "$F77"; then
5929 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
5931 # Extract the first word of "$ac_prog", so it can be a program name with args.
5932 set dummy $ac_prog; ac_word=$2
5933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test -n "$ac_ct_F77"; then
5939 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_prog_ac_ct_F77="$ac_prog"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5959 if test -n "$ac_ct_F77"; then
5960 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5961 echo "${ECHO_T}$ac_ct_F77" >&6; }
5963 { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5968 test -n "$ac_ct_F77" && break
5971 if test "x$ac_ct_F77" = x; then
5974 case $cross_compiling:$ac_tool_warned in
5976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5977 whose name does not start with the host triplet. If you think this
5978 configuration is useful to you, please write to autoconf@gnu.org." >&5
5979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5980 whose name does not start with the host triplet. If you think this
5981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5982 ac_tool_warned=yes ;;
5989 # Provide some information about the compiler.
5990 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5991 ac_compiler=`set X $ac_compile; echo $2`
5992 { (ac_try="$ac_compiler --version >&5"
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compiler --version >&5") 2>&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }
6002 { (ac_try="$ac_compiler -v >&5"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compiler -v >&5") 2>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }
6012 { (ac_try="$ac_compiler -V >&5"
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compiler -V >&5") 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }
6024 # If we don't use `.F' as extension, the preprocessor is not run on the
6025 # input file. (Note that this only needs to work for GNU compilers.)
6028 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6029 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6030 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 cat >conftest.$ac_ext <<_ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && {
6055 test -z "$ac_f77_werror_flag" ||
6056 test ! -s conftest.err
6057 } && test -s conftest.$ac_objext; then
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6070 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6071 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6073 ac_test_FFLAGS=${FFLAGS+set}
6074 ac_save_FFLAGS=$FFLAGS
6076 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6077 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6078 if test "${ac_cv_prog_f77_g+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (ac_try="$ac_compile"
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_f77_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
6104 ac_cv_prog_f77_g=yes
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6116 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6117 if test "$ac_test_FFLAGS" = set; then
6118 FFLAGS=$ac_save_FFLAGS
6119 elif test $ac_cv_prog_f77_g = yes; then
6120 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6126 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6133 G77=`test $ac_compiler_gnu = yes && echo yes`
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6143 # find the maximum length of command line arguments
6144 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6145 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6146 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 # On DJGPP, this test can blow up pretty badly due to problems in libc
6155 # (any single argument exceeding 2000 bytes causes a buffer overrun
6156 # during glob expansion). Even if it were fixed, the result of this
6157 # check would be larger than it should be.
6158 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6162 # Under GNU Hurd, this test is not required because there is
6163 # no limit to the length of command line arguments.
6164 # Libtool will interpret -1 as no limit whatsoever
6165 lt_cv_sys_max_cmd_len=-1;
6169 # On Win9x/ME, this test blows up -- it succeeds, but takes
6170 # about 5 minutes as the teststring grows exponentially.
6171 # Worse, since 9x/ME are not pre-emptively multitasking,
6172 # you end up with a "frozen" computer, even though with patience
6173 # the test eventually succeeds (with a max line length of 256k).
6174 # Instead, let's just punt: use the minimum linelength reported by
6175 # all of the supported platforms: 8192 (on NT/2K/XP).
6176 lt_cv_sys_max_cmd_len=8192;
6180 # On AmigaOS with pdksh, this test takes hours, literally.
6181 # So we just punt and use a minimum line length of 8192.
6182 lt_cv_sys_max_cmd_len=8192;
6185 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6186 # This has been around since 386BSD, at least. Likely further.
6187 if test -x /sbin/sysctl; then
6188 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6189 elif test -x /usr/sbin/sysctl; then
6190 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6192 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6194 # And add a safety zone
6195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6200 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6201 lt_cv_sys_max_cmd_len=196608
6205 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6206 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6207 # nice to cause kernel panics so lets avoid the loop below.
6208 # First set a reasonable default.
6209 lt_cv_sys_max_cmd_len=16384
6211 if test -x /sbin/sysconfig; then
6212 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6213 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6218 lt_cv_sys_max_cmd_len=102400
6220 sysv5* | sco5v6* | sysv4.2uw2*)
6221 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6222 if test -n "$kargmax"; then
6223 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6225 lt_cv_sys_max_cmd_len=32768
6229 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6230 if test -n "$lt_cv_sys_max_cmd_len"; then
6231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6234 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6235 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6236 = "XX$teststring") >/dev/null 2>&1 &&
6237 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6238 lt_cv_sys_max_cmd_len=$new_result &&
6239 test $i != 17 # 1/2 MB should be enough
6242 teststring=$teststring$teststring
6245 # Add a significant safety factor because C++ compilers can tack on massive
6246 # amounts of additional arguments before passing them to the linker.
6247 # It appears as though 1/2 is a usable value.
6248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6255 if test -n $lt_cv_sys_max_cmd_len ; then
6256 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6257 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6259 { echo "$as_me:$LINENO: result: none" >&5
6260 echo "${ECHO_T}none" >&6; }
6267 # Check for command to grab the raw symbol name followed by C symbol from nm.
6268 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6269 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6270 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 # These are sane defaults that work on at least a few old systems.
6275 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6277 # Character class describing NM global symbol codes.
6278 symcode='[BCDEGRST]'
6280 # Regexp to match symbols that can be accessed directly from C.
6281 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6283 # Transform an extracted symbol line into a proper C declaration
6284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6286 # Transform an extracted symbol line into symbol name and symbol address
6287 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'"
6289 # Define system-specific variables.
6294 cygwin* | mingw* | pw32*)
6295 symcode='[ABCDGISTW]'
6297 hpux*) # Its linker distinguishes data from code symbols
6298 if test "$host_cpu" = ia64; then
6299 symcode='[ABCDEGRST]'
6301 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6302 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'"
6304 linux* | k*bsd*-gnu)
6305 if test "$host_cpu" = ia64; then
6306 symcode='[ABCDGIRSTW]'
6307 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6308 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'"
6312 symcode='[BCDEGRST]'
6315 symcode='[BCDEGQRST]'
6326 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6334 # Handle CRLF in mingw tool chain
6338 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6342 # If we're using GNU nm, then use its standard symbol codes.
6343 case `$NM -V 2>&1` in
6344 *GNU* | *'with BFD'*)
6345 symcode='[ABCDGIRSTW]' ;;
6348 # Try without a prefix undercore, then with it.
6349 for ac_symprfx in "" "_"; do
6351 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6352 symxfrm="\\1 $ac_symprfx\\2 \\2"
6354 # Write the raw and C identifiers.
6355 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6357 # Check to see that the pipe works correctly.
6361 cat > conftest.$ac_ext <<EOF
6366 void nm_test_func(){}
6370 int main(){nm_test_var='a';nm_test_func();return(0);}
6373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374 (eval $ac_compile) 2>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; then
6378 # Now try to grab the symbols.
6380 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6381 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && test -s "$nlist"; then
6385 # Try sorting and uniquifying the output.
6386 if sort "$nlist" | uniq > "$nlist"T; then
6387 mv -f "$nlist"T "$nlist"
6392 # Make sure that we snagged all the symbols we need.
6393 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6394 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6395 cat <<EOF > conftest.$ac_ext
6401 # Now generate the symbol file.
6402 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6404 cat <<EOF >> conftest.$ac_ext
6405 #if defined (__STDC__) && __STDC__
6406 # define lt_ptr_t void *
6408 # define lt_ptr_t char *
6412 /* The mapping between symbol names and symbols. */
6417 lt_preloaded_symbols[] =
6420 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6421 cat <<\EOF >> conftest.$ac_ext
6429 # Now try linking the two files.
6430 mv conftest.$ac_objext conftstm.$ac_objext
6431 lt_save_LIBS="$LIBS"
6432 lt_save_CFLAGS="$CFLAGS"
6433 LIBS="conftstm.$ac_objext"
6434 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6442 LIBS="$lt_save_LIBS"
6443 CFLAGS="$lt_save_CFLAGS"
6445 echo "cannot find nm_test_func in $nlist" >&5
6448 echo "cannot find nm_test_var in $nlist" >&5
6451 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6454 echo "$progname: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6457 rm -rf conftest* conftst*
6459 # Do not use the global_symbol_pipe unless it works.
6460 if test "$pipe_works" = yes; then
6463 lt_cv_sys_global_symbol_pipe=
6469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6470 lt_cv_sys_global_symbol_to_cdecl=
6472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6473 { echo "$as_me:$LINENO: result: failed" >&5
6474 echo "${ECHO_T}failed" >&6; }
6476 { echo "$as_me:$LINENO: result: ok" >&5
6477 echo "${ECHO_T}ok" >&6; }
6480 { echo "$as_me:$LINENO: checking for objdir" >&5
6481 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6482 if test "${lt_cv_objdir+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 rm -f .libs 2>/dev/null
6486 mkdir .libs 2>/dev/null
6487 if test -d .libs; then
6490 # MS-DOS does not allow filenames that begin with a dot.
6493 rmdir .libs 2>/dev/null
6495 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6496 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6497 objdir=$lt_cv_objdir
6505 # AIX sometimes has problems with the GCC collect2 program. For some
6506 # reason, if we set the COLLECT_NAMES environment variable, the problems
6507 # vanish in a puff of smoke.
6508 if test "X${COLLECT_NAMES+set}" != Xset; then
6510 export COLLECT_NAMES
6515 # Sed substitution that helps us do robust quoting. It backslashifies
6516 # metacharacters that are still active within double-quoted strings.
6517 Xsed='sed -e 1s/^X//'
6518 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6520 # Same as above, but do not quote variable references.
6521 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6523 # Sed substitution to delay expansion of an escaped shell variable in a
6524 # double_quote_subst'ed string.
6525 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6527 # Sed substitution to avoid accidental globbing in evaled expressions
6528 no_glob_subst='s/\*/\\\*/g'
6534 default_ofile=libtool
6535 can_build_shared=yes
6537 # All known linkers require a `.a' archive for static linking (except MSVC,
6538 # which needs '.lib').
6540 ltmain="$ac_aux_dir/ltmain.sh"
6541 ofile="$default_ofile"
6542 with_gnu_ld="$lt_cv_prog_gnu_ld"
6544 if test -n "$ac_tool_prefix"; then
6545 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6546 set dummy ${ac_tool_prefix}ar; ac_word=$2
6547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6549 if test "${ac_cv_prog_AR+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 if test -n "$AR"; then
6553 ac_cv_prog_AR="$AR" # Let the user override the test.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_prog_AR="${ac_tool_prefix}ar"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 if test -n "$AR"; then
6574 { echo "$as_me:$LINENO: result: $AR" >&5
6575 echo "${ECHO_T}$AR" >&6; }
6577 { echo "$as_me:$LINENO: result: no" >&5
6578 echo "${ECHO_T}no" >&6; }
6583 if test -z "$ac_cv_prog_AR"; then
6585 # Extract the first word of "ar", so it can be a program name with args.
6586 set dummy ar; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 if test -n "$ac_ct_AR"; then
6593 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_ac_ct_AR="ar"
6603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6613 if test -n "$ac_ct_AR"; then
6614 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6615 echo "${ECHO_T}$ac_ct_AR" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6621 if test "x$ac_ct_AR" = x; then
6624 case $cross_compiling:$ac_tool_warned in
6626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6627 whose name does not start with the host triplet. If you think this
6628 configuration is useful to you, please write to autoconf@gnu.org." >&5
6629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6630 whose name does not start with the host triplet. If you think this
6631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6632 ac_tool_warned=yes ;;
6640 if test -n "$ac_tool_prefix"; then
6641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_prog_RANLIB+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 if test -n "$RANLIB"; then
6649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 RANLIB=$ac_cv_prog_RANLIB
6669 if test -n "$RANLIB"; then
6670 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6671 echo "${ECHO_T}$RANLIB" >&6; }
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6679 if test -z "$ac_cv_prog_RANLIB"; then
6680 ac_ct_RANLIB=$RANLIB
6681 # Extract the first word of "ranlib", so it can be a program name with args.
6682 set dummy ranlib; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 if test -n "$ac_ct_RANLIB"; then
6689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_ac_ct_RANLIB="ranlib"
6699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6709 if test -n "$ac_ct_RANLIB"; then
6710 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6711 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6717 if test "x$ac_ct_RANLIB" = x; then
6720 case $cross_compiling:$ac_tool_warned in
6722 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6723 whose name does not start with the host triplet. If you think this
6724 configuration is useful to you, please write to autoconf@gnu.org." >&5
6725 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6726 whose name does not start with the host triplet. If you think this
6727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6728 ac_tool_warned=yes ;;
6730 RANLIB=$ac_ct_RANLIB
6733 RANLIB="$ac_cv_prog_RANLIB"
6736 if test -n "$ac_tool_prefix"; then
6737 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6738 set dummy ${ac_tool_prefix}strip; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_prog_STRIP+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 if test -n "$STRIP"; then
6745 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 STRIP=$ac_cv_prog_STRIP
6765 if test -n "$STRIP"; then
6766 { echo "$as_me:$LINENO: result: $STRIP" >&5
6767 echo "${ECHO_T}$STRIP" >&6; }
6769 { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6775 if test -z "$ac_cv_prog_STRIP"; then
6777 # Extract the first word of "strip", so it can be a program name with args.
6778 set dummy strip; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 if test -n "$ac_ct_STRIP"; then
6785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_ac_ct_STRIP="strip"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6805 if test -n "$ac_ct_STRIP"; then
6806 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6807 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6813 if test "x$ac_ct_STRIP" = x; then
6816 case $cross_compiling:$ac_tool_warned in
6818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6819 whose name does not start with the host triplet. If you think this
6820 configuration is useful to you, please write to autoconf@gnu.org." >&5
6821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6822 whose name does not start with the host triplet. If you think this
6823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6824 ac_tool_warned=yes ;;
6829 STRIP="$ac_cv_prog_STRIP"
6834 old_CFLAGS="$CFLAGS"
6836 # Set sane defaults for various variables
6837 test -z "$AR" && AR=ar
6838 test -z "$AR_FLAGS" && AR_FLAGS=cru
6839 test -z "$AS" && AS=as
6840 test -z "$CC" && CC=cc
6841 test -z "$LTCC" && LTCC=$CC
6842 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6843 test -z "$DLLTOOL" && DLLTOOL=dlltool
6844 test -z "$LD" && LD=ld
6845 test -z "$LN_S" && LN_S="ln -s"
6846 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6847 test -z "$NM" && NM=nm
6848 test -z "$SED" && SED=sed
6849 test -z "$OBJDUMP" && OBJDUMP=objdump
6850 test -z "$RANLIB" && RANLIB=:
6851 test -z "$STRIP" && STRIP=:
6852 test -z "$ac_objext" && ac_objext=o
6854 # Determine commands to create old-style static archives.
6855 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6856 old_postinstall_cmds='chmod 644 $oldlib'
6857 old_postuninstall_cmds=
6859 if test -n "$RANLIB"; then
6862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6865 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6868 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6871 for cc_temp in $compiler""; do
6873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6879 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6882 # Only perform the check for file, if the check method requires it
6883 case $deplibs_check_method in
6885 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6886 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6887 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6896 lt_save_MAGIC_CMD="$MAGIC_CMD"
6897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6899 for ac_dir in $ac_dummy; do
6901 test -z "$ac_dir" && ac_dir=.
6902 if test -f $ac_dir/${ac_tool_prefix}file; then
6903 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6904 if test -n "$file_magic_test_file"; then
6905 case $deplibs_check_method in
6907 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6910 $EGREP "$file_magic_regex" > /dev/null; then
6915 *** Warning: the command libtool uses to detect shared libraries,
6916 *** $file_magic_cmd, produces output that libtool cannot recognize.
6917 *** The result is that libtool may fail to recognize shared libraries
6918 *** as such. This will affect the creation of libtool libraries that
6919 *** depend on shared libraries, but programs linked with such libtool
6920 *** libraries will work regardless of this problem. Nevertheless, you
6921 *** may want to report the problem to your system manager and/or to
6922 *** bug-libtool@gnu.org
6932 MAGIC_CMD="$lt_save_MAGIC_CMD"
6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6938 if test -n "$MAGIC_CMD"; then
6939 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6940 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6946 if test -z "$lt_cv_path_MAGIC_CMD"; then
6947 if test -n "$ac_tool_prefix"; then
6948 { echo "$as_me:$LINENO: checking for file" >&5
6949 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6950 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6958 lt_save_MAGIC_CMD="$MAGIC_CMD"
6959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6961 for ac_dir in $ac_dummy; do
6963 test -z "$ac_dir" && ac_dir=.
6964 if test -f $ac_dir/file; then
6965 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6966 if test -n "$file_magic_test_file"; then
6967 case $deplibs_check_method in
6969 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6972 $EGREP "$file_magic_regex" > /dev/null; then
6977 *** Warning: the command libtool uses to detect shared libraries,
6978 *** $file_magic_cmd, produces output that libtool cannot recognize.
6979 *** The result is that libtool may fail to recognize shared libraries
6980 *** as such. This will affect the creation of libtool libraries that
6981 *** depend on shared libraries, but programs linked with such libtool
6982 *** libraries will work regardless of this problem. Nevertheless, you
6983 *** may want to report the problem to your system manager and/or to
6984 *** bug-libtool@gnu.org
6994 MAGIC_CMD="$lt_save_MAGIC_CMD"
6999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7000 if test -n "$MAGIC_CMD"; then
7001 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7002 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7019 rhapsody* | darwin*)
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 if test -n "$DSYMUTIL"; then
7029 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7049 if test -n "$DSYMUTIL"; then
7050 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7051 echo "${ECHO_T}$DSYMUTIL" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7059 if test -z "$ac_cv_prog_DSYMUTIL"; then
7060 ac_ct_DSYMUTIL=$DSYMUTIL
7061 # Extract the first word of "dsymutil", so it can be a program name with args.
7062 set dummy dsymutil; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 if test -n "$ac_ct_DSYMUTIL"; then
7069 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7089 if test -n "$ac_ct_DSYMUTIL"; then
7090 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7091 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7097 if test "x$ac_ct_DSYMUTIL" = x; then
7100 case $cross_compiling:$ac_tool_warned in
7102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7103 whose name does not start with the host triplet. If you think this
7104 configuration is useful to you, please write to autoconf@gnu.org." >&5
7105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7106 whose name does not start with the host triplet. If you think this
7107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7108 ac_tool_warned=yes ;;
7110 DSYMUTIL=$ac_ct_DSYMUTIL
7113 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 if test -n "$NMEDIT"; then
7125 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 NMEDIT=$ac_cv_prog_NMEDIT
7145 if test -n "$NMEDIT"; then
7146 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7147 echo "${ECHO_T}$NMEDIT" >&6; }
7149 { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7155 if test -z "$ac_cv_prog_NMEDIT"; then
7156 ac_ct_NMEDIT=$NMEDIT
7157 # Extract the first word of "nmedit", so it can be a program name with args.
7158 set dummy nmedit; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test -n "$ac_ct_NMEDIT"; then
7165 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7185 if test -n "$ac_ct_NMEDIT"; then
7186 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7187 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7193 if test "x$ac_ct_NMEDIT" = x; then
7196 case $cross_compiling:$ac_tool_warned in
7198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199 whose name does not start with the host triplet. If you think this
7200 configuration is useful to you, please write to autoconf@gnu.org." >&5
7201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202 whose name does not start with the host triplet. If you think this
7203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7204 ac_tool_warned=yes ;;
7206 NMEDIT=$ac_ct_NMEDIT
7209 NMEDIT="$ac_cv_prog_NMEDIT"
7213 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7214 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7215 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 lt_cv_apple_cc_single_mod=no
7219 if test -z "${LT_MULTI_MODULE}"; then
7220 # By default we will add the -single_module flag. You can override
7221 # by either setting the environment variable LT_MULTI_MODULE
7222 # non-empty at configure time, or by adding -multi_module to the
7224 echo "int foo(void){return 1;}" > conftest.c
7225 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226 -dynamiclib ${wl}-single_module conftest.c
7227 if test -f libconftest.dylib; then
7228 lt_cv_apple_cc_single_mod=yes
7229 rm -rf libconftest.dylib*
7234 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7235 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7236 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7237 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7238 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 lt_cv_ld_exported_symbols_list=no
7242 save_LDFLAGS=$LDFLAGS
7243 echo "_main" > conftest.sym
7244 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (ac_try="$ac_link"
7263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264 *) ac_try_echo=$ac_try;;
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 (eval "$ac_link") 2>conftest.er1
7269 grep -v '^ *+' conftest.er1 >conftest.err
7271 cat conftest.err >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && {
7274 test -z "$ac_c_werror_flag" ||
7275 test ! -s conftest.err
7276 } && test -s conftest$ac_exeext &&
7277 $as_test_x conftest$ac_exeext; then
7278 lt_cv_ld_exported_symbols_list=yes
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 lt_cv_ld_exported_symbols_list=no
7286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7287 conftest$ac_exeext conftest.$ac_ext
7288 LDFLAGS="$save_LDFLAGS"
7291 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7292 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7294 rhapsody* | darwin1.[0123])
7295 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7299 # if running on 10.5 or later, the deployment target defaults
7300 # to the OS version, if on x86, and 10.4, the deployment
7301 # target defaults to 10.4. Don't you love it?
7302 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7303 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7304 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7306 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7312 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7313 _lt_dar_single_mod='$single_module'
7315 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7316 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7318 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7320 if test "$DSYMUTIL" != ":"; then
7321 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7332 # Check whether --enable-libtool-lock was given.
7333 if test "${enable_libtool_lock+set}" = set; then
7334 enableval=$enable_libtool_lock;
7337 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7340 # Check whether --with-pic was given.
7341 if test "${with_pic+set}" = set; then
7342 withval=$with_pic; pic_mode="$withval"
7347 test -z "$pic_mode" && pic_mode=default
7349 # Use C for the default configuration in the libtool script
7353 ac_cpp='$CPP $CPPFLAGS'
7354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359 # Source file extension for C test sources.
7362 # Object file extension for compiled C test sources.
7366 # Code to be used in simple compile tests
7367 lt_simple_compile_test_code="int some_variable = 0;"
7369 # Code to be used in simple link tests
7370 lt_simple_link_test_code='int main(){return(0);}'
7373 # If no C compiler was specified, use CC.
7376 # If no C compiler flags were specified, use CFLAGS.
7377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7379 # Allow CC to be a program name with arguments.
7383 # save warnings/boilerplate of simple test code
7384 ac_outfile=conftest.$ac_objext
7385 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7386 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7387 _lt_compiler_boilerplate=`cat conftest.err`
7390 ac_outfile=conftest.$ac_objext
7391 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7392 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7393 _lt_linker_boilerplate=`cat conftest.err`
7398 lt_prog_compiler_no_builtin_flag=
7400 if test "$GCC" = yes; then
7401 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7404 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7405 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7406 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 lt_cv_prog_compiler_rtti_exceptions=no
7410 ac_outfile=conftest.$ac_objext
7411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7412 lt_compiler_flag="-fno-rtti -fno-exceptions"
7413 # Insert the option either (1) after the last *FLAGS variable, or
7414 # (2) before a word containing "conftest.", or (3) at the end.
7415 # Note that $ac_compile itself does not contain backslashes and begins
7416 # with a dollar sign (not a hyphen), so the echo should work correctly.
7417 # The option is referenced via a variable to avoid confusing sed.
7418 lt_compile=`echo "$ac_compile" | $SED \
7419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7421 -e 's:$: $lt_compiler_flag:'`
7422 (eval echo "\"\$as_me:7422: $lt_compile\"" >&5)
7423 (eval "$lt_compile" 2>conftest.err)
7425 cat conftest.err >&5
7426 echo "$as_me:7426: \$? = $ac_status" >&5
7427 if (exit $ac_status) && test -s "$ac_outfile"; then
7428 # The compiler can only warn and ignore the option if not recognized
7429 # So say no if there are warnings other than the usual output.
7430 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7433 lt_cv_prog_compiler_rtti_exceptions=yes
7439 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7440 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7442 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7443 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7450 lt_prog_compiler_wl=
7451 lt_prog_compiler_pic=
7452 lt_prog_compiler_static=
7454 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7457 if test "$GCC" = yes; then
7458 lt_prog_compiler_wl='-Wl,'
7459 lt_prog_compiler_static='-static'
7463 # All AIX code is PIC.
7464 if test "$host_cpu" = ia64; then
7465 # AIX 5 now supports IA64 processor
7466 lt_prog_compiler_static='-Bstatic'
7471 # FIXME: we need at least 68020 code to build shared libraries, but
7472 # adding the `-m68020' flag to GCC prevents building anything better,
7474 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7478 # PIC is the default for these OSes.
7481 mingw* | cygwin* | pw32* | os2*)
7482 # This hack is so that the source file can tell whether it is being
7483 # built for inclusion in a dll (and should export symbols for example).
7484 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7485 # (--disable-auto-import) libraries
7486 lt_prog_compiler_pic='-DDLL_EXPORT'
7489 darwin* | rhapsody*)
7490 # PIC is the default on this platform
7491 # Common symbols not allowed in MH_DYLIB files
7492 lt_prog_compiler_pic='-fno-common'
7496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7497 # Instead, we relocate shared libraries at runtime.
7501 # Just because we use GCC doesn't mean we suddenly get shared libraries
7502 # on systems that don't support them.
7503 lt_prog_compiler_can_build_shared=no
7508 if test -d /usr/nec; then
7509 lt_prog_compiler_pic=-Kconform_pic
7514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7521 lt_prog_compiler_pic='-fPIC'
7527 lt_prog_compiler_pic='-fPIC'
7531 # PORTME Check for flag to pass linker flags through the system compiler.
7534 lt_prog_compiler_wl='-Wl,'
7535 if test "$host_cpu" = ia64; then
7536 # AIX 5 now supports IA64 processor
7537 lt_prog_compiler_static='-Bstatic'
7539 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7543 # PIC is the default on this platform
7544 # Common symbols not allowed in MH_DYLIB files
7545 case $cc_basename in
7547 lt_prog_compiler_pic='-qnocommon'
7548 lt_prog_compiler_wl='-Wl,'
7553 mingw* | cygwin* | pw32* | os2*)
7554 # This hack is so that the source file can tell whether it is being
7555 # built for inclusion in a dll (and should export symbols for example).
7556 lt_prog_compiler_pic='-DDLL_EXPORT'
7559 hpux9* | hpux10* | hpux11*)
7560 lt_prog_compiler_wl='-Wl,'
7561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7568 lt_prog_compiler_pic='+Z'
7571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7572 lt_prog_compiler_static='${wl}-a ${wl}archive'
7575 irix5* | irix6* | nonstopux*)
7576 lt_prog_compiler_wl='-Wl,'
7577 # PIC (with -KPIC) is the default.
7578 lt_prog_compiler_static='-non_shared'
7582 lt_prog_compiler_pic='-KPIC'
7583 lt_prog_compiler_static='-Bstatic'
7586 linux* | k*bsd*-gnu)
7587 case $cc_basename in
7589 lt_prog_compiler_wl='-Wl,'
7590 lt_prog_compiler_pic='-KPIC'
7591 lt_prog_compiler_static='-static'
7593 pgcc* | pgf77* | pgf90* | pgf95*)
7594 # Portland Group compilers (*not* the Pentium gcc compiler,
7595 # which looks to be a dead project)
7596 lt_prog_compiler_wl='-Wl,'
7597 lt_prog_compiler_pic='-fpic'
7598 lt_prog_compiler_static='-Bstatic'
7601 lt_prog_compiler_wl='-Wl,'
7602 # All Alpha code is PIC.
7603 lt_prog_compiler_static='-non_shared'
7606 case `$CC -V 2>&1 | sed 5q` in
7609 lt_prog_compiler_pic='-KPIC'
7610 lt_prog_compiler_static='-Bstatic'
7611 lt_prog_compiler_wl='-Wl,'
7614 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7615 lt_prog_compiler_pic='-KPIC'
7616 lt_prog_compiler_static='-Bstatic'
7617 lt_prog_compiler_wl=''
7624 osf3* | osf4* | osf5*)
7625 lt_prog_compiler_wl='-Wl,'
7626 # All OSF/1 code is PIC.
7627 lt_prog_compiler_static='-non_shared'
7631 lt_prog_compiler_static='-non_shared'
7635 lt_prog_compiler_pic='-KPIC'
7636 lt_prog_compiler_static='-Bstatic'
7637 case $cc_basename in
7639 lt_prog_compiler_wl='-Qoption ld ';;
7641 lt_prog_compiler_wl='-Wl,';;
7646 lt_prog_compiler_wl='-Qoption ld '
7647 lt_prog_compiler_pic='-PIC'
7648 lt_prog_compiler_static='-Bstatic'
7651 sysv4 | sysv4.2uw2* | sysv4.3*)
7652 lt_prog_compiler_wl='-Wl,'
7653 lt_prog_compiler_pic='-KPIC'
7654 lt_prog_compiler_static='-Bstatic'
7658 if test -d /usr/nec ;then
7659 lt_prog_compiler_pic='-Kconform_pic'
7660 lt_prog_compiler_static='-Bstatic'
7664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7665 lt_prog_compiler_wl='-Wl,'
7666 lt_prog_compiler_pic='-KPIC'
7667 lt_prog_compiler_static='-Bstatic'
7671 lt_prog_compiler_wl='-Wl,'
7672 lt_prog_compiler_can_build_shared=no
7676 lt_prog_compiler_pic='-pic'
7677 lt_prog_compiler_static='-Bstatic'
7681 lt_prog_compiler_can_build_shared=no
7686 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7687 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7690 # Check to make sure the PIC flag actually works.
7692 if test -n "$lt_prog_compiler_pic"; then
7694 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7695 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7696 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 lt_cv_prog_compiler_pic_works=no
7700 ac_outfile=conftest.$ac_objext
7701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7702 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7703 # Insert the option either (1) after the last *FLAGS variable, or
7704 # (2) before a word containing "conftest.", or (3) at the end.
7705 # Note that $ac_compile itself does not contain backslashes and begins
7706 # with a dollar sign (not a hyphen), so the echo should work correctly.
7707 # The option is referenced via a variable to avoid confusing sed.
7708 lt_compile=`echo "$ac_compile" | $SED \
7709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711 -e 's:$: $lt_compiler_flag:'`
7712 (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713 (eval "$lt_compile" 2>conftest.err)
7715 cat conftest.err >&5
7716 echo "$as_me:7716: \$? = $ac_status" >&5
7717 if (exit $ac_status) && test -s "$ac_outfile"; then
7718 # The compiler can only warn and ignore the option if not recognized
7719 # So say no if there are warnings other than the usual output.
7720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7722 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7723 lt_cv_prog_compiler_pic_works=yes
7729 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7730 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7732 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7733 case $lt_prog_compiler_pic in
7735 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7738 lt_prog_compiler_pic=
7739 lt_prog_compiler_can_build_shared=no
7744 # For platforms which do not support PIC, -DPIC is meaningless:
7746 lt_prog_compiler_pic=
7749 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7754 # Check to make sure the static flag actually works.
7756 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7757 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7758 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7759 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 lt_cv_prog_compiler_static_works=no
7763 save_LDFLAGS="$LDFLAGS"
7764 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7765 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7766 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7767 # The linker can only warn and ignore the option if not recognized
7768 # So say no if there are warnings
7769 if test -s conftest.err; then
7770 # Append any errors to the config.log.
7771 cat conftest.err 1>&5
7772 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7774 if diff conftest.exp conftest.er2 >/dev/null; then
7775 lt_cv_prog_compiler_static_works=yes
7778 lt_cv_prog_compiler_static_works=yes
7782 LDFLAGS="$save_LDFLAGS"
7785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7786 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7788 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7791 lt_prog_compiler_static=
7795 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7796 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7797 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 lt_cv_prog_compiler_c_o=no
7801 $rm -r conftest 2>/dev/null
7805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7807 lt_compiler_flag="-o out/conftest2.$ac_objext"
7808 # Insert the option either (1) after the last *FLAGS variable, or
7809 # (2) before a word containing "conftest.", or (3) at the end.
7810 # Note that $ac_compile itself does not contain backslashes and begins
7811 # with a dollar sign (not a hyphen), so the echo should work correctly.
7812 lt_compile=`echo "$ac_compile" | $SED \
7813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7815 -e 's:$: $lt_compiler_flag:'`
7816 (eval echo "\"\$as_me:7816: $lt_compile\"" >&5)
7817 (eval "$lt_compile" 2>out/conftest.err)
7819 cat out/conftest.err >&5
7820 echo "$as_me:7820: \$? = $ac_status" >&5
7821 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7823 # The compiler can only warn and ignore the option if not recognized
7824 # So say no if there are warnings
7825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7826 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7827 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7828 lt_cv_prog_compiler_c_o=yes
7833 # SGI C++ compiler will create directory out/ii_files/ for
7834 # template instantiation
7835 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7836 $rm out/* && rmdir out
7842 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7843 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7846 hard_links="nottested"
7847 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7848 # do not overwrite the value of need_locks provided by the user
7849 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7850 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7855 ln conftest.a conftest.b 2>&5 || hard_links=no
7856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7857 { echo "$as_me:$LINENO: result: $hard_links" >&5
7858 echo "${ECHO_T}$hard_links" >&6; }
7859 if test "$hard_links" = no; then
7860 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7861 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7868 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7872 allow_undefined_flag=
7873 enable_shared_with_static_runtimes=no
7875 archive_expsym_cmds=
7876 old_archive_From_new_cmds=
7877 old_archive_from_expsyms_cmds=
7878 export_dynamic_flag_spec=
7879 whole_archive_flag_spec=
7880 thread_safe_flag_spec=
7881 hardcode_libdir_flag_spec=
7882 hardcode_libdir_flag_spec_ld=
7883 hardcode_libdir_separator=
7886 hardcode_shlibpath_var=unsupported
7887 link_all_deplibs=unknown
7888 hardcode_automatic=no
7891 always_export_symbols=no
7892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7893 # include_expsyms should be a list of space-separated symbols to be *always*
7894 # included in the symbol list
7896 # exclude_expsyms can be an extended regexp of symbols to exclude
7897 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7898 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7899 # as well as any symbol that contains `d'.
7900 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7901 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7902 # platforms (ab)use it in PIC code, but their linkers get confused if
7903 # the symbol is explicitly referenced. Since portable code cannot
7904 # rely on this symbol name, it's probably fine to never include it in
7905 # preloaded symbol tables.
7906 # Exclude shared library initialization/finalization symbols.
7907 extract_expsyms_cmds=
7908 # Just being paranoid about ensuring that cc_basename is set.
7909 for cc_temp in $compiler""; do
7911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7920 cygwin* | mingw* | pw32*)
7921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7922 # When not using gcc, we currently assume that we are using
7923 # Microsoft Visual C++.
7924 if test "$GCC" != yes; then
7929 # we just hope/assume this is gcc and not c89 (= MSVC++)
7938 if test "$with_gnu_ld" = yes; then
7939 # If archive_cmds runs LD, not CC, wlarc should be empty
7942 # Set some defaults for GNU ld with shared library support. These
7943 # are reset later if shared libraries are not supported. Putting them
7944 # here allows them to be overridden if necessary.
7945 runpath_var=LD_RUN_PATH
7946 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7947 export_dynamic_flag_spec='${wl}--export-dynamic'
7948 # ancient GNU ld didn't support --whole-archive et. al.
7949 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7950 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7952 whole_archive_flag_spec=
7954 supports_anon_versioning=no
7955 case `$LD -v 2>/dev/null` in
7956 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7957 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7958 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7959 *\ 2.11.*) ;; # other 2.11 versions
7960 *) supports_anon_versioning=yes ;;
7963 # See if GNU ld supports shared libraries.
7966 # On AIX/PPC, the GNU linker is very broken
7967 if test "$host_cpu" != ia64; then
7971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7972 *** to be unable to reliably create shared libraries on AIX.
7973 *** Therefore, libtool is disabling shared libraries support. If you
7974 *** really care for shared libraries, you may want to modify your PATH
7975 *** so that a non-GNU linker is found, and then restart.
7982 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)'
7983 hardcode_libdir_flag_spec='-L$libdir'
7984 hardcode_minus_L=yes
7986 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7987 # that the semantics of dynamic libraries on AmigaOS, at least up
7988 # to version 4, is to share data among multiple programs linked
7989 # with the same dynamic library. Since this doesn't match the
7990 # behavior of shared libraries on other platforms, we can't use
7996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7997 allow_undefined_flag=unsupported
7998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7999 # support --undefined. This deserves some investigation. FIXME
8000 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8006 cygwin* | mingw* | pw32*)
8007 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8008 # as there is no search path for DLLs.
8009 hardcode_libdir_flag_spec='-L$libdir'
8010 allow_undefined_flag=unsupported
8011 always_export_symbols=no
8012 enable_shared_with_static_runtimes=yes
8013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8015 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8017 # If the export-symbols file already is a .def file (1st line
8018 # is EXPORTS), use it as is; otherwise, prepend...
8019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8020 cp $export_symbols $output_objdir/$soname.def;
8022 echo EXPORTS > $output_objdir/$soname.def;
8023 cat $export_symbols >> $output_objdir/$soname.def;
8025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8033 hardcode_shlibpath_var=no
8034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8035 export_dynamic_flag_spec='${wl}-E'
8036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8037 # Instead, shared libraries are loaded at an image base (0x10000000 by
8038 # default) and relocated if they conflict, which is a slow very memory
8039 # consuming and fragmenting process. To avoid this, we pick a random,
8040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8041 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8043 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'
8046 gnu* | linux* | k*bsd*-gnu)
8047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8049 case $cc_basename,$host_cpu in
8050 pgcc*) # Portland Group C compiler
8051 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'
8052 tmp_addflag=' $pic_flag'
8054 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8055 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'
8056 tmp_addflag=' $pic_flag -Mnomain' ;;
8057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8058 tmp_addflag=' -i_dynamic' ;;
8059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8060 tmp_addflag=' -i_dynamic -nofor_main' ;;
8061 ifc* | ifort*) # Intel Fortran compiler
8062 tmp_addflag=' -nofor_main' ;;
8064 case `$CC -V 2>&1 | sed 5q` in
8065 *Sun\ C*) # Sun C 5.9
8066 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'
8067 tmp_sharedflag='-G' ;;
8068 *Sun\ F*) # Sun Fortran 8.3
8069 tmp_sharedflag='-G' ;;
8071 tmp_sharedflag='-shared' ;;
8073 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075 if test $supports_anon_versioning = yes; then
8076 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8078 $echo "local: *; };" >> $output_objdir/$libname.ver~
8079 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8087 netbsd* | netbsdelf*-gnu)
8088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8089 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8098 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8102 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8103 *** create shared libraries on Solaris systems. Therefore, libtool
8104 *** is disabling shared libraries support. We urge you to upgrade GNU
8105 *** binutils to release 2.9.1 or newer. Another option is to modify
8106 *** your PATH or compiler configuration so that the native linker is
8107 *** used, and then restart.
8110 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8119 case `$LD -v 2>&1` in
8120 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8124 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8125 *** reliably create shared libraries on SCO systems. Therefore, libtool
8126 *** is disabling shared libraries support. We urge you to upgrade GNU
8127 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8128 *** your PATH or compiler configuration so that the native linker is
8129 *** used, and then restart.
8134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8135 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8149 hardcode_shlibpath_var=no
8153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8162 if test "$ld_shlibs" = no; then
8164 hardcode_libdir_flag_spec=
8165 export_dynamic_flag_spec=
8166 whole_archive_flag_spec=
8169 # PORTME fill in a description of your system's linker (not GNU ld)
8172 allow_undefined_flag=unsupported
8173 always_export_symbols=yes
8174 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'
8175 # Note: this linker hardcodes the directories in LIBPATH if there
8176 # are no directories specified by -L.
8177 hardcode_minus_L=yes
8178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8179 # Neither direct hardcoding nor static linking is supported with a
8181 hardcode_direct=unsupported
8186 if test "$host_cpu" = ia64; then
8187 # On IA64, the linker does run time linking by default, so we don't
8188 # have to do anything special.
8189 aix_use_runtimelinking=no
8190 exp_sym_flag='-Bexport'
8193 # If we're using GNU nm, then we don't want the "-C" option.
8194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8195 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8196 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'
8198 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'
8200 aix_use_runtimelinking=no
8202 # Test if we are trying to use run time linking or normal
8203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8204 # need to do runtime linking.
8205 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8206 for ld_flag in $LDFLAGS; do
8207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8208 aix_use_runtimelinking=yes
8215 exp_sym_flag='-bexport'
8216 no_entry_flag='-bnoentry'
8219 # When large executables or shared objects are built, AIX ld can
8220 # have problems creating the table of contents. If linking a library
8221 # or program results in "error TOC overflow" add -mminimal-toc to
8222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8227 hardcode_libdir_separator=':'
8228 link_all_deplibs=yes
8230 if test "$GCC" = yes; then
8231 case $host_os in aix4.[012]|aix4.[012].*)
8232 # We only want to do this on AIX 4.2 and lower, the check
8233 # below for broken collect2 doesn't work under 4.3+
8234 collect2name=`${CC} -print-prog-name=collect2`
8235 if test -f "$collect2name" && \
8236 strings "$collect2name" | grep resolve_lib_name >/dev/null
8238 # We have reworked collect2
8241 # We have old collect2
8242 hardcode_direct=unsupported
8243 # It fails to find uninstalled libraries when the uninstalled
8244 # path is not listed in the libpath. Setting hardcode_minus_L
8245 # to unsupported forces relinking
8246 hardcode_minus_L=yes
8247 hardcode_libdir_flag_spec='-L$libdir'
8248 hardcode_libdir_separator=
8252 shared_flag='-shared'
8253 if test "$aix_use_runtimelinking" = yes; then
8254 shared_flag="$shared_flag "'${wl}-G'
8258 if test "$host_cpu" = ia64; then
8259 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8260 # chokes on -Wl,-G. The following line is correct:
8263 if test "$aix_use_runtimelinking" = yes; then
8264 shared_flag='${wl}-G'
8266 shared_flag='${wl}-bM:SRE'
8271 # It seems that -bexpall does not export symbols beginning with
8272 # underscore (_), so it is better to generate a list of symbols to export.
8273 always_export_symbols=yes
8274 if test "$aix_use_runtimelinking" = yes; then
8275 # Warning - without using the other runtime loading flags (-brtl),
8276 # -berok will link without error, but may produce a broken library.
8277 allow_undefined_flag='-berok'
8278 # Determine the default libpath from the value encoded in an empty executable.
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (ac_try="$ac_link"
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_link") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest$ac_exeext &&
8311 $as_test_x conftest$ac_exeext; then
8313 lt_aix_libpath_sed='
8314 /Import File Strings/,/^$/ {
8320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8321 # Check for a 64-bit object if we didn't find anything.
8322 if test -z "$aix_libpath"; then
8323 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333 conftest$ac_exeext conftest.$ac_ext
8334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8336 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8337 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"
8339 if test "$host_cpu" = ia64; then
8340 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8341 allow_undefined_flag="-z nodefs"
8342 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"
8344 # Determine the default libpath from the value encoded in an empty executable.
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (ac_try="$ac_link"
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_link") 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest$ac_exeext &&
8377 $as_test_x conftest$ac_exeext; then
8379 lt_aix_libpath_sed='
8380 /Import File Strings/,/^$/ {
8386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8387 # Check for a 64-bit object if we didn't find anything.
8388 if test -z "$aix_libpath"; then
8389 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8399 conftest$ac_exeext conftest.$ac_ext
8400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8402 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8403 # Warning - without using the other run time loading flags,
8404 # -berok will link without error, but may produce a broken library.
8405 no_undefined_flag=' ${wl}-bernotok'
8406 allow_undefined_flag=' ${wl}-berok'
8407 # Exported symbols can be pulled into shared objects from archives
8408 whole_archive_flag_spec='$convenience'
8409 archive_cmds_need_lc=yes
8410 # This is similar to how AIX traditionally builds its shared libraries.
8411 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'
8417 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)'
8418 hardcode_libdir_flag_spec='-L$libdir'
8419 hardcode_minus_L=yes
8420 # see comment about different semantics on the GNU ld section
8425 export_dynamic_flag_spec=-rdynamic
8428 cygwin* | mingw* | pw32*)
8429 # When not using gcc, we currently assume that we are using
8430 # Microsoft Visual C++.
8431 # hardcode_libdir_flag_spec is actually meaningless, as there is
8432 # no search path for DLLs.
8433 hardcode_libdir_flag_spec=' '
8434 allow_undefined_flag=unsupported
8435 # Tell ltmain to make .lib files, not .a files.
8437 # Tell ltmain to make .dll files, not .so files.
8439 # FIXME: Setting linknames here is a bad hack.
8440 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8441 # The linker will automatically build a .lib file if we build a DLL.
8442 old_archive_From_new_cmds='true'
8443 # FIXME: Should let the user specify the lib program.
8444 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8445 fix_srcfile_path='`cygpath -w "$srcfile"`'
8446 enable_shared_with_static_runtimes=yes
8449 darwin* | rhapsody*)
8451 rhapsody* | darwin1.[012])
8452 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8455 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8456 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8458 case ${MACOSX_DEPLOYMENT_TARGET} in
8460 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8463 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8469 archive_cmds_need_lc=no
8471 hardcode_automatic=yes
8472 hardcode_shlibpath_var=unsupported
8473 whole_archive_flag_spec=''
8474 link_all_deplibs=yes
8475 if test "$GCC" = yes ; then
8476 output_verbose_link_cmd='echo'
8477 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8478 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8479 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8480 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8482 case $cc_basename in
8484 output_verbose_link_cmd='echo'
8485 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8486 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8488 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}'
8489 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}'
8499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500 hardcode_libdir_flag_spec='-L$libdir'
8501 hardcode_shlibpath_var=no
8508 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8509 # support. Future versions do this automatically, but an explicit c++rt0.o
8510 # does not break anything, and helps significantly (at the cost of a little
8513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8514 hardcode_libdir_flag_spec='-R$libdir'
8516 hardcode_shlibpath_var=no
8519 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8523 hardcode_minus_L=yes
8524 hardcode_shlibpath_var=no
8527 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8528 freebsd* | dragonfly*)
8529 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8530 hardcode_libdir_flag_spec='-R$libdir'
8532 hardcode_shlibpath_var=no
8536 if test "$GCC" = yes; then
8537 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'
8539 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'
8541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8542 hardcode_libdir_separator=:
8545 # hardcode_minus_L: Not really in the search PATH,
8546 # but as the default location of the library.
8547 hardcode_minus_L=yes
8548 export_dynamic_flag_spec='${wl}-E'
8552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8557 if test "$with_gnu_ld" = no; then
8558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8559 hardcode_libdir_separator=:
8562 export_dynamic_flag_spec='${wl}-E'
8564 # hardcode_minus_L: Not really in the search PATH,
8565 # but as the default location of the library.
8566 hardcode_minus_L=yes
8571 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8574 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8577 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8580 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8586 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8589 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8592 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8596 if test "$with_gnu_ld" = no; then
8597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8598 hardcode_libdir_separator=:
8602 hardcode_libdir_flag_spec_ld='+b $libdir'
8604 hardcode_shlibpath_var=no
8608 export_dynamic_flag_spec='${wl}-E'
8610 # hardcode_minus_L: Not really in the search PATH,
8611 # but as the default location of the library.
8612 hardcode_minus_L=yes
8618 irix5* | irix6* | nonstopux*)
8619 if test "$GCC" = yes; then
8620 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'
8622 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'
8623 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626 hardcode_libdir_separator=:
8627 link_all_deplibs=yes
8630 netbsd* | netbsdelf*-gnu)
8631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8634 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8636 hardcode_libdir_flag_spec='-R$libdir'
8638 hardcode_shlibpath_var=no
8642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8645 hardcode_libdir_separator=:
8646 hardcode_shlibpath_var=no
8650 if test -f /usr/libexec/ld.so; then
8652 hardcode_shlibpath_var=no
8653 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8655 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8656 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8657 export_dynamic_flag_spec='${wl}-E'
8660 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_libdir_flag_spec='-R$libdir'
8665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8676 hardcode_libdir_flag_spec='-L$libdir'
8677 hardcode_minus_L=yes
8678 allow_undefined_flag=unsupported
8679 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'
8680 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8684 if test "$GCC" = yes; then
8685 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8686 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'
8688 allow_undefined_flag=' -expect_unresolved \*'
8689 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'
8691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8692 hardcode_libdir_separator=:
8695 osf4* | osf5*) # as osf3* with the addition of -msym flag
8696 if test "$GCC" = yes; then
8697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8698 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'
8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701 allow_undefined_flag=' -expect_unresolved \*'
8702 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'
8703 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8704 $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'
8706 # Both c and cxx compiler support -rpath directly
8707 hardcode_libdir_flag_spec='-rpath $libdir'
8709 hardcode_libdir_separator=:
8713 no_undefined_flag=' -z text'
8714 if test "$GCC" = yes; then
8716 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8717 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8718 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8721 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8725 hardcode_libdir_flag_spec='-R$libdir'
8726 hardcode_shlibpath_var=no
8728 solaris2.[0-5] | solaris2.[0-5].*) ;;
8730 # The compiler driver will combine and reorder linker options,
8731 # but understands `-z linker_flag'. GCC discards it without `$wl',
8732 # but is careful enough not to reorder.
8733 # Supported since Solaris 2.6 (maybe 2.5.1?)
8734 if test "$GCC" = yes; then
8735 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8741 link_all_deplibs=yes
8745 if test "x$host_vendor" = xsequent; then
8746 # Use $CC to link under sequent, because it throws in some extra .o
8747 # files that make .init and .fini sections work.
8748 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8752 hardcode_libdir_flag_spec='-L$libdir'
8754 hardcode_minus_L=yes
8755 hardcode_shlibpath_var=no
8759 case $host_vendor in
8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_direct=yes # is this really true???
8765 ## LD is ld it makes a PLAMLIB
8766 ## CC just makes a GrossModule.
8767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8768 reload_cmds='$CC -r -o $output$reload_objs'
8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8776 runpath_var='LD_RUN_PATH'
8777 hardcode_shlibpath_var=no
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_shlibpath_var=no
8783 export_dynamic_flag_spec='-Bexport'
8787 if test -d /usr/nec; then
8788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789 hardcode_shlibpath_var=no
8790 runpath_var=LD_RUN_PATH
8791 hardcode_runpath_var=yes
8796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8797 no_undefined_flag='${wl}-z,text'
8798 archive_cmds_need_lc=no
8799 hardcode_shlibpath_var=no
8800 runpath_var='LD_RUN_PATH'
8802 if test "$GCC" = yes; then
8803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8811 sysv5* | sco3.2v5* | sco5v6*)
8812 # Note: We can NOT use -z defs as we might desire, because we do not
8813 # link with -lc, and that would cause any symbols used from libc to
8814 # always be unresolved, which means just about no library would
8815 # ever link correctly. If we're not using GNU ld we use -z text
8816 # though, which does catch some bad symbols but isn't as heavy-handed
8818 no_undefined_flag='${wl}-z,text'
8819 allow_undefined_flag='${wl}-z,nodefs'
8820 archive_cmds_need_lc=no
8821 hardcode_shlibpath_var=no
8822 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8823 hardcode_libdir_separator=':'
8824 link_all_deplibs=yes
8825 export_dynamic_flag_spec='${wl}-Bexport'
8826 runpath_var='LD_RUN_PATH'
8828 if test "$GCC" = yes; then
8829 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839 hardcode_libdir_flag_spec='-L$libdir'
8840 hardcode_shlibpath_var=no
8849 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8850 echo "${ECHO_T}$ld_shlibs" >&6; }
8851 test "$ld_shlibs" = no && can_build_shared=no
8854 # Do we need to explicitly link libc?
8856 case "x$archive_cmds_need_lc" in
8858 # Assume -lc should be added
8859 archive_cmds_need_lc=yes
8861 if test "$enable_shared" = yes && test "$GCC" = yes; then
8862 case $archive_cmds in
8864 # FIXME: we may have to deal with multi-command sequences.
8867 # Test whether the compiler implicitly links with -lc since on some
8868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8869 # to ld, don't add -lc before -lgcc.
8870 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8871 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8876 (eval $ac_compile) 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } 2>conftest.err; then
8882 libobjs=conftest.$ac_objext
8884 wl=$lt_prog_compiler_wl
8885 pic_flag=$lt_prog_compiler_pic
8891 lt_save_allow_undefined_flag=$allow_undefined_flag
8892 allow_undefined_flag=
8893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8894 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }
8899 archive_cmds_need_lc=no
8901 archive_cmds_need_lc=yes
8903 allow_undefined_flag=$lt_save_allow_undefined_flag
8905 cat conftest.err 1>&5
8908 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8909 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8916 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8919 libname_spec='lib$name'
8927 shlibpath_overrides_runpath=unknown
8929 dynamic_linker="$host_os ld.so"
8930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8932 if test "$GCC" = yes; then
8934 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8935 *) lt_awk_arg="/^libraries:/" ;;
8937 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8938 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8939 # if the path contains ";" then we assume it to be the separator
8940 # otherwise default to the standard path separator (i.e. ":") - it is
8941 # assumed that no part of a normal pathname contains ";" but that should
8942 # okay in the real world where ";" in dirpaths is itself problematic.
8943 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8945 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8947 # Ok, now we have the path, separated by spaces, we can step through it
8948 # and add multilib dir if necessary.
8949 lt_tmp_lt_search_path_spec=
8950 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8951 for lt_sys_path in $lt_search_path_spec; do
8952 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8953 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8955 test -d "$lt_sys_path" && \
8956 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8959 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8960 BEGIN {RS=" "; FS="/|\n";} {
8963 for (lt_i = NF; lt_i > 0; lt_i--) {
8964 if ($lt_i != "" && $lt_i != ".") {
8965 if ($lt_i == "..") {
8968 if (lt_count == 0) {
8969 lt_foo="/" $lt_i lt_foo;
8976 if (lt_foo != "") { lt_freq[lt_foo]++; }
8977 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8979 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8983 need_lib_prefix=unknown
8984 hardcode_into_libs=no
8986 # when you set need_version to no, make sure it does not cause -set_version
8987 # flags to be left without arguments
8988 need_version=unknown
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8994 shlibpath_var=LIBPATH
8996 # AIX 3 has no versioning support, so we append a major version to the name.
8997 soname_spec='${libname}${release}${shared_ext}$major'
9004 hardcode_into_libs=yes
9005 if test "$host_cpu" = ia64; then
9006 # AIX 5 supports IA64
9007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9008 shlibpath_var=LD_LIBRARY_PATH
9010 # With GCC up to 2.95.x, collect2 would create an import file
9011 # for dependence libraries. The import file would start with
9012 # the line `#! .'. This would cause the generated library to
9013 # depend on `.', always an invalid library. This was fixed in
9014 # development snapshots of GCC prior to 3.0.
9016 aix4 | aix4.[01] | aix4.[01].*)
9017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9019 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9027 # soname into executable. Probably we can add versioning support to
9028 # collect2, so additional links can be useful in future.
9029 if test "$aix_use_runtimelinking" = yes; then
9030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9031 # instead of lib<name>.a to let people know that these are not
9032 # typical AIX shared libraries.
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 # We preserve .a as extension for shared libraries through AIX4.2
9036 # and later when we are not doing run time linking.
9037 library_names_spec='${libname}${release}.a $libname.a'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LIBPATH
9045 library_names_spec='$libname.ixlibrary $libname.a'
9046 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9047 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'
9051 library_names_spec='${libname}${shared_ext}'
9052 dynamic_linker="$host_os ld.so"
9053 shlibpath_var=LIBRARY_PATH
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9065 # the default ld.so.conf also contains /usr/contrib/lib and
9066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9067 # libtool to hard-code these into programs
9070 cygwin* | mingw* | pw32*)
9071 version_type=windows
9076 case $GCC,$host_os in
9077 yes,cygwin* | yes,mingw* | yes,pw32*)
9078 library_names_spec='$libname.dll.a'
9079 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9080 postinstall_cmds='base_file=`basename \${file}`~
9081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9082 dldir=$destdir/`dirname \$dlpath`~
9083 test -d \$dldir || mkdir -p \$dldir~
9084 $install_prog $dir/$dlname \$dldir/$dlname~
9085 chmod a+x \$dldir/$dlname'
9086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9087 dlpath=$dir/\$dldll~
9089 shlibpath_overrides_runpath=yes
9093 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9094 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9095 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9098 # MinGW DLLs use traditional 'lib' prefix
9099 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9100 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9101 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9102 # It is most probably a Windows format PATH printed by
9103 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9104 # path with ; separators, and with drive letters. We can handle the
9105 # drive letters (cygwin fileutils understands them), so leave them,
9106 # especially as we might pass files found there to a mingw objdump,
9107 # which wouldn't understand a cygwinified path. Ahh.
9108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9114 # pw32 DLLs use 'pw' prefix rather than 'lib'
9115 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9121 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9124 dynamic_linker='Win32 ld.exe'
9125 # FIXME: first we should search . and the directory the executable is in
9129 darwin* | rhapsody*)
9130 dynamic_linker="$host_os dyld"
9134 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9135 soname_spec='${libname}${release}${major}$shared_ext'
9136 shlibpath_overrides_runpath=yes
9137 shlibpath_var=DYLD_LIBRARY_PATH
9138 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9157 freebsd* | dragonfly*)
9158 # DragonFly does not have aout. When/if they implement a new
9159 # versioning mechanism, adjust this.
9160 if test -x /usr/bin/objformat; then
9161 objformat=`/usr/bin/objformat`
9164 freebsd[123]*) objformat=aout ;;
9168 version_type=freebsd-$objformat
9169 case $version_type in
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9180 shlibpath_var=LD_LIBRARY_PATH
9183 shlibpath_overrides_runpath=yes
9185 freebsd3.[01]* | freebsdelf3.[01]*)
9186 shlibpath_overrides_runpath=yes
9187 hardcode_into_libs=yes
9189 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9190 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9191 shlibpath_overrides_runpath=no
9192 hardcode_into_libs=yes
9194 *) # from 4.6 on, and DragonFly
9195 shlibpath_overrides_runpath=yes
9196 hardcode_into_libs=yes
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 hardcode_into_libs=yes
9211 hpux9* | hpux10* | hpux11*)
9212 # Give a soname corresponding to the major version so that dld.sl refuses to
9213 # link against other versions.
9220 hardcode_into_libs=yes
9221 dynamic_linker="$host_os dld.so"
9222 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 if test "X$HPUX_IA64_MODE" = X32; then
9227 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9229 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9235 hardcode_into_libs=yes
9236 dynamic_linker="$host_os dld.sl"
9237 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9246 dynamic_linker="$host_os dld.sl"
9247 shlibpath_var=SHLIB_PATH
9248 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9253 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9254 postinstall_cmds='chmod 555 $lib'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 shlibpath_overrides_runpath=no
9266 hardcode_into_libs=yes
9269 irix5* | irix6* | nonstopux*)
9271 nonstopux*) version_type=nonstopux ;;
9273 if test "$lt_cv_prog_gnu_ld" = yes; then
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9284 irix5* | nonstopux*)
9288 case $LD in # libtool.m4 will add one of these switches to LD
9289 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9290 libsuff= shlibsuff= libmagic=32-bit;;
9291 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9292 libsuff=32 shlibsuff=N32 libmagic=N32;;
9293 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9294 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9295 *) libsuff= shlibsuff= libmagic=never-match;;
9299 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9300 shlibpath_overrides_runpath=no
9301 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9302 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9303 hardcode_into_libs=yes
9306 # No shared lib support for Linux oldld, aout, or coff.
9307 linux*oldld* | linux*aout* | linux*coff*)
9311 # This must be Linux ELF.
9312 linux* | k*bsd*-gnu)
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=no
9321 # This implies no fast_install, which is unacceptable.
9322 # Some rework will be needed to allow for fast_install
9323 # before this can be enabled.
9324 hardcode_into_libs=yes
9326 # Append ld.so.conf contents to the search path
9327 if test -f /etc/ld.so.conf; then
9328 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' ' '`
9329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9332 # We used to test for /lib/ld.so.1 and disable shared libraries on
9333 # powerpc, because MkLinux only supported shared libraries with the
9334 # GNU dynamic linker. Since this was broken with cross compilers,
9335 # most powerpc-linux boxes support dynamic linking these days and
9336 # people can always --disable-shared, the test was removed, and we
9337 # assume the GNU/Linux dynamic linker is in use.
9338 dynamic_linker='GNU/Linux ld.so'
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 shlibpath_overrides_runpath=no
9349 hardcode_into_libs=yes
9350 dynamic_linker='NetBSD ld.elf_so'
9357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9360 dynamic_linker='NetBSD (a.out) ld.so'
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 dynamic_linker='NetBSD ld.elf_so'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=yes
9368 hardcode_into_libs=yes
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 shlibpath_overrides_runpath=yes
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=yes
9390 sys_lib_dlsearch_path_spec="/usr/lib"
9392 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9394 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9395 *) need_version=no ;;
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9402 openbsd2.[89] | openbsd2.[89].*)
9403 shlibpath_overrides_runpath=no
9406 shlibpath_overrides_runpath=yes
9410 shlibpath_overrides_runpath=yes
9415 libname_spec='$name'
9418 library_names_spec='$libname${shared_ext} $libname.a'
9419 dynamic_linker='OS/2 ld.exe'
9420 shlibpath_var=LIBPATH
9423 osf3* | osf4* | osf5*)
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9431 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 shlibpath_var=LD_LIBRARY_PATH
9445 shlibpath_overrides_runpath=yes
9446 hardcode_into_libs=yes
9447 # ldd complains unless libraries are executable
9448 postinstall_cmds='chmod +x $lib'
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=yes
9457 if test "$with_gnu_ld" = yes; then
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 case $host_vendor in
9470 shlibpath_overrides_runpath=no
9472 export_dynamic_flag_spec='${wl}-Blargedynsym'
9473 runpath_var=LD_RUN_PATH
9481 shlibpath_overrides_runpath=no
9482 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9488 if test -d /usr/nec ;then
9490 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9491 soname_spec='$libname${shared_ext}.$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9497 version_type=freebsd-elf
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 hardcode_into_libs=yes
9504 if test "$with_gnu_ld" = yes; then
9505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9506 shlibpath_overrides_runpath=no
9508 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9509 shlibpath_overrides_runpath=yes
9512 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9516 sys_lib_dlsearch_path_spec='/usr/lib'
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9530 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9531 echo "${ECHO_T}$dynamic_linker" >&6; }
9532 test "$dynamic_linker" = no && can_build_shared=no
9534 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9540 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9541 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9547 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9549 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9550 if test "$GCC" = yes; then
9551 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9554 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9555 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9557 if test -n "$hardcode_libdir_flag_spec" || \
9558 test -n "$runpath_var" || \
9559 test "X$hardcode_automatic" = "Xyes" ; then
9561 # We can hardcode non-existant directories.
9562 if test "$hardcode_direct" != no &&
9563 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9564 # have to relink, otherwise we might link with an installed library
9565 # when we should be linking with a yet-to-be-installed one
9566 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9567 test "$hardcode_minus_L" != no; then
9568 # Linking always hardcodes the temporary library directory.
9569 hardcode_action=relink
9571 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9572 hardcode_action=immediate
9575 # We cannot hardcode anything, or else we can only hardcode existing
9577 hardcode_action=unsupported
9579 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9580 echo "${ECHO_T}$hardcode_action" >&6; }
9582 if test "$hardcode_action" = relink; then
9583 # Fast installation is not supported
9584 enable_fast_install=no
9585 elif test "$shlibpath_overrides_runpath" = yes ||
9586 test "$enable_shared" = no; then
9587 # Fast installation is not necessary
9588 enable_fast_install=needless
9593 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9594 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9595 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9598 { echo "$as_me:$LINENO: result: yes" >&5
9599 echo "${ECHO_T}yes" >&6; }
9601 # FIXME - insert some real tests, host_os isn't really good enough
9604 if test -n "$STRIP" ; then
9605 striplib="$STRIP -x"
9606 old_striplib="$STRIP -S"
9607 { echo "$as_me:$LINENO: result: yes" >&5
9608 echo "${ECHO_T}yes" >&6; }
9610 { echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6; }
9615 { echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6; }
9621 if test "x$enable_dlopen" != xyes; then
9622 enable_dlopen=unknown
9623 enable_dlopen_self=unknown
9624 enable_dlopen_self_static=unknown
9631 lt_cv_dlopen="load_add_on"
9633 lt_cv_dlopen_self=yes
9637 lt_cv_dlopen="LoadLibrary"
9642 lt_cv_dlopen="dlopen"
9647 # if libdl is installed we need to link against it
9648 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9649 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 ac_check_lib_save_LIBS=$LIBS
9655 cat >conftest.$ac_ext <<_ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9662 /* Override any GCC internal prototype to avoid an error.
9663 Use char because int might match the return type of a GCC
9664 builtin and then its argument prototype would still apply. */
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (ac_try="$ac_link"
9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681 *) ac_try_echo=$ac_try;;
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_link") 2>conftest.er1
9686 grep -v '^ *+' conftest.er1 >conftest.err
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && {
9691 test -z "$ac_c_werror_flag" ||
9692 test ! -s conftest.err
9693 } && test -s conftest$ac_exeext &&
9694 $as_test_x conftest$ac_exeext; then
9695 ac_cv_lib_dl_dlopen=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_lib_dl_dlopen=no
9703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9704 conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9708 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9709 if test $ac_cv_lib_dl_dlopen = yes; then
9710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9715 lt_cv_dlopen_self=yes
9722 { echo "$as_me:$LINENO: checking for shl_load" >&5
9723 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9724 if test "${ac_cv_func_shl_load+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9735 #define shl_load innocuous_shl_load
9737 /* System header to define __stub macros and hopefully few prototypes,
9738 which can conflict with char shl_load (); below.
9739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740 <limits.h> exists even on freestanding compilers. */
9743 # include <limits.h>
9745 # include <assert.h>
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined __stub_shl_load || defined __stub___shl_load
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_link") 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest$ac_exeext &&
9789 $as_test_x conftest$ac_exeext; then
9790 ac_cv_func_shl_load=yes
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9795 ac_cv_func_shl_load=no
9798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9799 conftest$ac_exeext conftest.$ac_ext
9801 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9802 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9803 if test $ac_cv_func_shl_load = yes; then
9804 lt_cv_dlopen="shl_load"
9806 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9807 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9808 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 ac_check_lib_save_LIBS=$LIBS
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_link") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest$ac_exeext &&
9852 $as_test_x conftest$ac_exeext; then
9853 ac_cv_lib_dld_shl_load=yes
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_cv_lib_dld_shl_load=no
9861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9862 conftest$ac_exeext conftest.$ac_ext
9863 LIBS=$ac_check_lib_save_LIBS
9865 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9866 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9867 if test $ac_cv_lib_dld_shl_load = yes; then
9868 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9870 { echo "$as_me:$LINENO: checking for dlopen" >&5
9871 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9872 if test "${ac_cv_func_dlopen+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9883 #define dlopen innocuous_dlopen
9885 /* System header to define __stub macros and hopefully few prototypes,
9886 which can conflict with char dlopen (); below.
9887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888 <limits.h> exists even on freestanding compilers. */
9891 # include <limits.h>
9893 # include <assert.h>
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9905 /* The GNU C library defines this for functions which it implements
9906 to always fail with ENOSYS. Some functions are actually named
9907 something starting with __ and the normal name is an alias. */
9908 #if defined __stub_dlopen || defined __stub___dlopen
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (ac_try="$ac_link"
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_link") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest$ac_exeext &&
9937 $as_test_x conftest$ac_exeext; then
9938 ac_cv_func_dlopen=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_func_dlopen=no
9946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9947 conftest$ac_exeext conftest.$ac_ext
9949 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9950 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9951 if test $ac_cv_func_dlopen = yes; then
9952 lt_cv_dlopen="dlopen"
9954 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9955 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9956 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 ac_check_lib_save_LIBS=$LIBS
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9968 /* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (ac_try="$ac_link"
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_link") 2>conftest.er1
9992 grep -v '^ *+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest$ac_exeext &&
10000 $as_test_x conftest$ac_exeext; then
10001 ac_cv_lib_dl_dlopen=yes
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10006 ac_cv_lib_dl_dlopen=no
10009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10010 conftest$ac_exeext conftest.$ac_ext
10011 LIBS=$ac_check_lib_save_LIBS
10013 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10014 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10015 if test $ac_cv_lib_dl_dlopen = yes; then
10016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10018 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 ac_check_lib_save_LIBS=$LIBS
10024 LIBS="-lsvld $LIBS"
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10032 /* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest$ac_exeext &&
10064 $as_test_x conftest$ac_exeext; then
10065 ac_cv_lib_svld_dlopen=yes
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 ac_cv_lib_svld_dlopen=no
10073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074 conftest$ac_exeext conftest.$ac_ext
10075 LIBS=$ac_check_lib_save_LIBS
10077 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10078 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10079 if test $ac_cv_lib_svld_dlopen = yes; then
10080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10082 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10083 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10084 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 ac_check_lib_save_LIBS=$LIBS
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10106 return dld_link ();
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (ac_try="$ac_link"
10113 case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_link") 2>conftest.er1
10120 grep -v '^ *+' conftest.er1 >conftest.err
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } && {
10125 test -z "$ac_c_werror_flag" ||
10126 test ! -s conftest.err
10127 } && test -s conftest$ac_exeext &&
10128 $as_test_x conftest$ac_exeext; then
10129 ac_cv_lib_dld_dld_link=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_lib_dld_dld_link=no
10137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10141 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10142 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10143 if test $ac_cv_lib_dld_dld_link = yes; then
10144 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10165 if test "x$lt_cv_dlopen" != xno; then
10171 case $lt_cv_dlopen in
10173 save_CPPFLAGS="$CPPFLAGS"
10174 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10176 save_LDFLAGS="$LDFLAGS"
10177 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10180 LIBS="$lt_cv_dlopen_libs $LIBS"
10182 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10183 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10184 if test "${lt_cv_dlopen_self+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 if test "$cross_compiling" = yes; then :
10188 lt_cv_dlopen_self=cross
10190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10191 lt_status=$lt_dlunknown
10192 cat > conftest.$ac_ext <<EOF
10193 #line 10193 "configure"
10194 #include "confdefs.h"
10203 # define LT_DLGLOBAL RTLD_GLOBAL
10206 # define LT_DLGLOBAL DL_GLOBAL
10208 # define LT_DLGLOBAL 0
10212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10213 find out it does not work in some platform. */
10214 #ifndef LT_DLLAZY_OR_NOW
10216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10219 # define LT_DLLAZY_OR_NOW DL_LAZY
10222 # define LT_DLLAZY_OR_NOW RTLD_NOW
10225 # define LT_DLLAZY_OR_NOW DL_NOW
10227 # define LT_DLLAZY_OR_NOW 0
10235 extern "C" void exit (int);
10238 void fnord() { int i=42;}
10241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10242 int status = $lt_dlunknown;
10246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10247 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10248 /* dlclose (self); */
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257 (eval $ac_link) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10261 (./conftest; exit; ) >&5 2>/dev/null
10263 case x$lt_status in
10264 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10265 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10266 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10269 # compilation failed
10270 lt_cv_dlopen_self=no
10277 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10278 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10280 if test "x$lt_cv_dlopen_self" = xyes; then
10281 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10282 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10283 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10284 if test "${lt_cv_dlopen_self_static+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 if test "$cross_compiling" = yes; then :
10288 lt_cv_dlopen_self_static=cross
10290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291 lt_status=$lt_dlunknown
10292 cat > conftest.$ac_ext <<EOF
10293 #line 10293 "configure"
10294 #include "confdefs.h"
10303 # define LT_DLGLOBAL RTLD_GLOBAL
10306 # define LT_DLGLOBAL DL_GLOBAL
10308 # define LT_DLGLOBAL 0
10312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313 find out it does not work in some platform. */
10314 #ifndef LT_DLLAZY_OR_NOW
10316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10319 # define LT_DLLAZY_OR_NOW DL_LAZY
10322 # define LT_DLLAZY_OR_NOW RTLD_NOW
10325 # define LT_DLLAZY_OR_NOW DL_NOW
10327 # define LT_DLLAZY_OR_NOW 0
10335 extern "C" void exit (int);
10338 void fnord() { int i=42;}
10341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10342 int status = $lt_dlunknown;
10346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10347 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10348 /* dlclose (self); */
10356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357 (eval $ac_link) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10361 (./conftest; exit; ) >&5 2>/dev/null
10363 case x$lt_status in
10364 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10365 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10366 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10369 # compilation failed
10370 lt_cv_dlopen_self_static=no
10377 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10378 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10381 CPPFLAGS="$save_CPPFLAGS"
10382 LDFLAGS="$save_LDFLAGS"
10387 case $lt_cv_dlopen_self in
10388 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10389 *) enable_dlopen_self=unknown ;;
10392 case $lt_cv_dlopen_self_static in
10393 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10394 *) enable_dlopen_self_static=unknown ;;
10399 # Report which library types will actually be built
10400 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10401 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10402 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10403 echo "${ECHO_T}$can_build_shared" >&6; }
10405 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10406 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10407 test "$can_build_shared" = "no" && enable_shared=no
10409 # On AIX, shared libraries and static libraries use the same namespace, and
10410 # are all built from PIC.
10413 test "$enable_shared" = yes && enable_static=no
10414 if test -n "$RANLIB"; then
10415 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10416 postinstall_cmds='$RANLIB $lib'
10421 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10422 test "$enable_shared" = yes && enable_static=no
10426 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10427 echo "${ECHO_T}$enable_shared" >&6; }
10429 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10430 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10431 # Make sure either enable_shared or enable_static is yes.
10432 test "$enable_shared" = yes || enable_static=yes
10433 { echo "$as_me:$LINENO: result: $enable_static" >&5
10434 echo "${ECHO_T}$enable_static" >&6; }
10436 # The else clause should only fire when bootstrapping the
10437 # libtool distribution, otherwise you forgot to ship ltmain.sh
10438 # with your package, and you will get complaints that there are
10439 # no rules to generate ltmain.sh.
10440 if test -f "$ltmain"; then
10441 # See if we are running on zsh, and set the options which allow our commands through
10442 # without removal of \ escapes.
10443 if test -n "${ZSH_VERSION+set}" ; then
10444 setopt NO_GLOB_SUBST
10446 # Now quote all the things that may contain metacharacters while being
10447 # careful not to overquote the AC_SUBSTed values. We take copies of the
10448 # variables and quote the copies for generation of the libtool script.
10449 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10453 deplibs_check_method reload_flag reload_cmds need_locks \
10454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10455 lt_cv_sys_global_symbol_to_c_name_address \
10456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10457 old_postinstall_cmds old_postuninstall_cmds \
10461 lt_prog_compiler_wl \
10462 lt_prog_compiler_pic \
10463 lt_prog_compiler_static \
10464 lt_prog_compiler_no_builtin_flag \
10465 export_dynamic_flag_spec \
10466 thread_safe_flag_spec \
10467 whole_archive_flag_spec \
10468 enable_shared_with_static_runtimes \
10470 old_archive_from_new_cmds \
10475 compiler_lib_search_path \
10476 compiler_lib_search_dirs \
10478 archive_expsym_cmds \
10480 postuninstall_cmds \
10481 old_archive_from_expsyms_cmds \
10482 allow_undefined_flag \
10483 no_undefined_flag \
10484 export_symbols_cmds \
10485 hardcode_libdir_flag_spec \
10486 hardcode_libdir_flag_spec_ld \
10487 hardcode_libdir_separator \
10488 hardcode_automatic \
10490 module_expsym_cmds \
10491 lt_cv_prog_compiler_c_o \
10494 include_expsyms; do
10497 old_archive_cmds | \
10498 old_archive_from_new_cmds | \
10500 archive_expsym_cmds | \
10502 module_expsym_cmds | \
10503 old_archive_from_expsyms_cmds | \
10504 export_symbols_cmds | \
10505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10506 postinstall_cmds | postuninstall_cmds | \
10507 old_postinstall_cmds | old_postuninstall_cmds | \
10508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10509 # Double-quote double-evaled strings.
10510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10519 *'\$0 --fallback-echo"')
10520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10524 cfgfile="${ofile}T"
10525 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10527 { echo "$as_me:$LINENO: creating $ofile" >&5
10528 echo "$as_me: creating $ofile" >&6;}
10530 cat <<__EOF__ >> "$cfgfile"
10533 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10534 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10535 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10537 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10538 # Free Software Foundation, Inc.
10540 # This file is part of GNU Libtool:
10541 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10543 # This program is free software; you can redistribute it and/or modify
10544 # it under the terms of the GNU General Public License as published by
10545 # the Free Software Foundation; either version 2 of the License, or
10546 # (at your option) any later version.
10548 # This program is distributed in the hope that it will be useful, but
10549 # WITHOUT ANY WARRANTY; without even the implied warranty of
10550 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10551 # General Public License for more details.
10553 # You should have received a copy of the GNU General Public License
10554 # along with this program; if not, write to the Free Software
10555 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10557 # As a special exception to the GNU General Public License, if you
10558 # distribute this file as part of a program that contains a
10559 # configuration script generated by Autoconf, you may include it under
10560 # the same distribution terms that you use for the rest of that program.
10562 # A sed program that does not truncate output.
10565 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10566 Xsed="$SED -e 1s/^X//"
10568 # The HP-UX ksh and POSIX shell print the target directory to stdout
10569 # if CDPATH is set.
10570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10572 # The names of the tagged configurations supported by this script.
10575 # ### BEGIN LIBTOOL CONFIG
10577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10579 # Shell to use when invoking shell scripts.
10582 # Whether or not to build shared libraries.
10583 build_libtool_libs=$enable_shared
10585 # Whether or not to build static libraries.
10586 build_old_libs=$enable_static
10588 # Whether or not to add -lc for building shared libraries.
10589 build_libtool_need_lc=$archive_cmds_need_lc
10591 # Whether or not to disallow shared libs when runtime libs are static
10592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10594 # Whether or not to optimize for fast installation.
10595 fast_install=$enable_fast_install
10598 host_alias=$host_alias
10602 # The build system.
10603 build_alias=$build_alias
10607 # An echo program that does not interpret backslashes.
10612 AR_FLAGS=$lt_AR_FLAGS
10617 # LTCC compiler flags.
10618 LTCFLAGS=$lt_LTCFLAGS
10620 # A language-specific compiler.
10623 # Is the compiler the GNU C compiler?
10629 # The linker used to build libraries.
10632 # Whether we need hard or soft links.
10635 # A BSD-compatible nm program.
10638 # A symbol stripping program
10641 # Used to examine libraries when file_magic_cmd begins "file"
10642 MAGIC_CMD=$MAGIC_CMD
10644 # Used on cygwin: DLL creation program.
10647 # Used on cygwin: object dumper.
10650 # Used on cygwin: assembler.
10653 # The name of the directory that contains temporary libtool files.
10656 # How to create reloadable object files.
10657 reload_flag=$lt_reload_flag
10658 reload_cmds=$lt_reload_cmds
10660 # How to pass a linker flag through the compiler.
10661 wl=$lt_lt_prog_compiler_wl
10663 # Object file suffix (normally "o").
10664 objext="$ac_objext"
10666 # Old archive suffix (normally "a").
10669 # Shared library suffix (normally ".so").
10670 shrext_cmds='$shrext_cmds'
10672 # Executable file suffix (normally "").
10675 # Additional compiler flags for building library objects.
10676 pic_flag=$lt_lt_prog_compiler_pic
10679 # What is the maximum length of a command?
10680 max_cmd_len=$lt_cv_sys_max_cmd_len
10682 # Does compiler simultaneously support -c and -o options?
10683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10685 # Must we lock files when doing compilation?
10686 need_locks=$lt_need_locks
10688 # Do we need the lib prefix for modules?
10689 need_lib_prefix=$need_lib_prefix
10691 # Do we need a version for libraries?
10692 need_version=$need_version
10694 # Whether dlopen is supported.
10695 dlopen_support=$enable_dlopen
10697 # Whether dlopen of programs is supported.
10698 dlopen_self=$enable_dlopen_self
10700 # Whether dlopen of statically linked programs is supported.
10701 dlopen_self_static=$enable_dlopen_self_static
10703 # Compiler flag to prevent dynamic linking.
10704 link_static_flag=$lt_lt_prog_compiler_static
10706 # Compiler flag to turn off builtin functions.
10707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10709 # Compiler flag to allow reflexive dlopens.
10710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10712 # Compiler flag to generate shared objects directly from archives.
10713 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10715 # Compiler flag to generate thread-safe objects.
10716 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10718 # Library versioning type.
10719 version_type=$version_type
10721 # Format of library name prefix.
10722 libname_spec=$lt_libname_spec
10724 # List of archive names. First name is the real one, the rest are links.
10725 # The last name is the one that the linker finds with -lNAME.
10726 library_names_spec=$lt_library_names_spec
10728 # The coded name of the library, if different from the real name.
10729 soname_spec=$lt_soname_spec
10731 # Commands used to build and install an old-style archive.
10733 old_archive_cmds=$lt_old_archive_cmds
10734 old_postinstall_cmds=$lt_old_postinstall_cmds
10735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10737 # Create an old-style archive from a shared archive.
10738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10740 # Create a temporary old-style archive to link instead of a shared archive.
10741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10743 # Commands used to build and install a shared archive.
10744 archive_cmds=$lt_archive_cmds
10745 archive_expsym_cmds=$lt_archive_expsym_cmds
10746 postinstall_cmds=$lt_postinstall_cmds
10747 postuninstall_cmds=$lt_postuninstall_cmds
10749 # Commands used to build a loadable module (assumed same as above if empty)
10750 module_cmds=$lt_module_cmds
10751 module_expsym_cmds=$lt_module_expsym_cmds
10753 # Commands to strip libraries.
10754 old_striplib=$lt_old_striplib
10755 striplib=$lt_striplib
10757 # Dependencies to place before the objects being linked to create a
10759 predep_objects=$lt_predep_objects
10761 # Dependencies to place after the objects being linked to create a
10763 postdep_objects=$lt_postdep_objects
10765 # Dependencies to place before the objects being linked to create a
10767 predeps=$lt_predeps
10769 # Dependencies to place after the objects being linked to create a
10771 postdeps=$lt_postdeps
10773 # The directories searched by this compiler when creating a shared
10775 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10777 # The library search path used internally by the compiler when linking
10778 # a shared library.
10779 compiler_lib_search_path=$lt_compiler_lib_search_path
10781 # Method to check whether dependent libraries are shared objects.
10782 deplibs_check_method=$lt_deplibs_check_method
10784 # Command to use when deplibs_check_method == file_magic.
10785 file_magic_cmd=$lt_file_magic_cmd
10787 # Flag that allows shared libraries with undefined symbols to be built.
10788 allow_undefined_flag=$lt_allow_undefined_flag
10790 # Flag that forces no undefined symbols.
10791 no_undefined_flag=$lt_no_undefined_flag
10793 # Commands used to finish a libtool library installation in a directory.
10794 finish_cmds=$lt_finish_cmds
10796 # Same as above, but a single script fragment to be evaled but not shown.
10797 finish_eval=$lt_finish_eval
10799 # Take the output of nm and produce a listing of raw symbols and C names.
10800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10802 # Transform the output of nm in a proper C declaration
10803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10805 # Transform the output of nm in a C name address pair
10806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10808 # This is the shared library runtime path variable.
10809 runpath_var=$runpath_var
10811 # This is the shared library path variable.
10812 shlibpath_var=$shlibpath_var
10814 # Is shlibpath searched before the hard-coded library search path?
10815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10817 # How to hardcode a shared library path into an executable.
10818 hardcode_action=$hardcode_action
10820 # Whether we should hardcode library paths into libraries.
10821 hardcode_into_libs=$hardcode_into_libs
10823 # Flag to hardcode \$libdir into a binary during linking.
10824 # This must work even if \$libdir does not exist.
10825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10827 # If ld is used when linking, flag to hardcode \$libdir into
10828 # a binary during linking. This must work even if \$libdir does
10830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10832 # Whether we need a single -rpath flag with a separated argument.
10833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10836 # resulting binary.
10837 hardcode_direct=$hardcode_direct
10839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10840 # resulting binary.
10841 hardcode_minus_L=$hardcode_minus_L
10843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10844 # the resulting binary.
10845 hardcode_shlibpath_var=$hardcode_shlibpath_var
10847 # Set to yes if building a shared library automatically hardcodes DIR into the library
10848 # and all subsequent libraries and executables linked against it.
10849 hardcode_automatic=$hardcode_automatic
10851 # Variables whose values should be saved in libtool wrapper scripts and
10852 # restored at relink time.
10853 variables_saved_for_relink="$variables_saved_for_relink"
10855 # Whether libtool must link a program against all its dependency libraries.
10856 link_all_deplibs=$link_all_deplibs
10858 # Compile-time system search path for libraries
10859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10861 # Run-time system search path for libraries
10862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10864 # Fix the shell variable \$srcfile for the compiler.
10865 fix_srcfile_path=$lt_fix_srcfile_path
10867 # Set to yes if exported symbols are required.
10868 always_export_symbols=$always_export_symbols
10870 # The commands to list exported symbols.
10871 export_symbols_cmds=$lt_export_symbols_cmds
10873 # The commands to extract the exported symbol list from a shared archive.
10874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10876 # Symbols that should not be listed in the preloaded symbols.
10877 exclude_expsyms=$lt_exclude_expsyms
10879 # Symbols that must always be exported.
10880 include_expsyms=$lt_include_expsyms
10882 # ### END LIBTOOL CONFIG
10889 cat <<\EOF >> "$cfgfile"
10891 # AIX sometimes has problems with the GCC collect2 program. For some
10892 # reason, if we set the COLLECT_NAMES environment variable, the problems
10893 # vanish in a puff of smoke.
10894 if test "X${COLLECT_NAMES+set}" != Xset; then
10896 export COLLECT_NAMES
10902 # We use sed instead of cat because bash on DJGPP gets confused if
10903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10904 # text mode, it properly converts lines to CR/LF. This bash problem
10905 # is reportedly fixed, but why not run on old versions too?
10906 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10908 mv -f "$cfgfile" "$ofile" || \
10909 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10913 # If there is no Makefile yet, we rely on a make rule to execute
10914 # `config.status --recheck' to rerun these tests and create the
10915 # libtool script then.
10916 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10917 if test -f "$ltmain_in"; then
10918 test -f Makefile && make "$ltmain"
10924 ac_cpp='$CPP $CPPFLAGS'
10925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10932 # Check whether --with-tags was given.
10933 if test "${with_tags+set}" = set; then
10934 withval=$with_tags; tagnames="$withval"
10938 if test -f "$ltmain" && test -n "$tagnames"; then
10939 if test ! -f "${ofile}"; then
10940 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10941 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10944 if test -z "$LTCC"; then
10945 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10946 if test -z "$LTCC"; then
10947 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10948 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10951 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10954 if test -z "$LTCFLAGS"; then
10955 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10958 # Extract list of available tagged configurations in $ofile.
10959 # Note that this assumes the entire list is on one line.
10960 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10963 for tagname in $tagnames; do
10965 # Check whether tagname contains only valid characters
10966 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10968 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10969 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10970 { (exit 1); exit 1; }; }
10974 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10976 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10977 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10978 { (exit 1); exit 1; }; }
10981 # Update the list of available tags.
10982 if test -n "$tagname"; then
10983 echo appending configuration tag \"$tagname\" to $ofile
10987 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10988 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10989 (test "X$CXX" != "Xg++"))) ; then
10991 ac_cpp='$CXXCPP $CPPFLAGS'
10992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10999 archive_cmds_need_lc_CXX=no
11000 allow_undefined_flag_CXX=
11001 always_export_symbols_CXX=no
11002 archive_expsym_cmds_CXX=
11003 export_dynamic_flag_spec_CXX=
11004 hardcode_direct_CXX=no
11005 hardcode_libdir_flag_spec_CXX=
11006 hardcode_libdir_flag_spec_ld_CXX=
11007 hardcode_libdir_separator_CXX=
11008 hardcode_minus_L_CXX=no
11009 hardcode_shlibpath_var_CXX=unsupported
11010 hardcode_automatic_CXX=no
11012 module_expsym_cmds_CXX=
11013 link_all_deplibs_CXX=unknown
11014 old_archive_cmds_CXX=$old_archive_cmds
11015 no_undefined_flag_CXX=
11016 whole_archive_flag_spec_CXX=
11017 enable_shared_with_static_runtimes_CXX=no
11019 # Dependencies to place before and after the object being linked:
11020 predep_objects_CXX=
11021 postdep_objects_CXX=
11024 compiler_lib_search_path_CXX=
11025 compiler_lib_search_dirs_CXX=
11027 # Source file extension for C++ test sources.
11030 # Object file extension for compiled C++ test sources.
11034 # Code to be used in simple compile tests
11035 lt_simple_compile_test_code="int some_variable = 0;"
11037 # Code to be used in simple link tests
11038 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11040 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11042 # If no C compiler was specified, use CC.
11045 # If no C compiler flags were specified, use CFLAGS.
11046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11048 # Allow CC to be a program name with arguments.
11052 # save warnings/boilerplate of simple test code
11053 ac_outfile=conftest.$ac_objext
11054 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11056 _lt_compiler_boilerplate=`cat conftest.err`
11059 ac_outfile=conftest.$ac_objext
11060 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11062 _lt_linker_boilerplate=`cat conftest.err`
11066 # Allow CC to be a program name with arguments.
11071 lt_save_with_gnu_ld=$with_gnu_ld
11072 lt_save_path_LD=$lt_cv_path_LD
11073 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11074 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11076 $as_unset lt_cv_prog_gnu_ld
11078 if test -n "${lt_cv_path_LDCXX+set}"; then
11079 lt_cv_path_LD=$lt_cv_path_LDCXX
11081 $as_unset lt_cv_path_LD
11083 test -z "${LDCXX+set}" || LD=$LDCXX
11087 for cc_temp in $compiler""; do
11089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11098 # We don't want -fno-exception wen compiling C++ code, so set the
11099 # no_builtin_flag separately
11100 if test "$GXX" = yes; then
11101 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11103 lt_prog_compiler_no_builtin_flag_CXX=
11106 if test "$GXX" = yes; then
11107 # Set up default GNU C++ configuration
11110 # Check whether --with-gnu-ld was given.
11111 if test "${with_gnu_ld+set}" = set; then
11112 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11118 if test "$GCC" = yes; then
11119 # Check if gcc -print-prog-name=ld gives a path.
11120 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11121 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11124 # gcc leaves a trailing carriage return which upsets mingw
11125 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11127 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11130 # Accept absolute paths.
11132 re_direlt='/[^/][^/]*/\.\./'
11133 # Canonicalize the pathname of ld
11134 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11135 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11136 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11138 test -z "$LD" && LD="$ac_prog"
11141 # If it fails, then pretend we aren't using GCC.
11145 # If it is relative, then search for the first ld in PATH.
11146 with_gnu_ld=unknown
11149 elif test "$with_gnu_ld" = yes; then
11150 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11151 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11153 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11154 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11156 if test "${lt_cv_path_LD+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 if test -z "$LD"; then
11160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11161 for ac_dir in $PATH; do
11163 test -z "$ac_dir" && ac_dir=.
11164 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11165 lt_cv_path_LD="$ac_dir/$ac_prog"
11166 # Check to see if the program is GNU ld. I'd rather use --version,
11167 # but apparently some variants of GNU ld only accept -v.
11168 # Break only if it was the GNU/non-GNU ld that we prefer.
11169 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11170 *GNU* | *'with BFD'*)
11171 test "$with_gnu_ld" != no && break
11174 test "$with_gnu_ld" != yes && break
11181 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11185 LD="$lt_cv_path_LD"
11186 if test -n "$LD"; then
11187 { echo "$as_me:$LINENO: result: $LD" >&5
11188 echo "${ECHO_T}$LD" >&6; }
11190 { echo "$as_me:$LINENO: result: no" >&5
11191 echo "${ECHO_T}no" >&6; }
11193 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11194 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11195 { (exit 1); exit 1; }; }
11196 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11197 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11198 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11202 case `$LD -v 2>&1 </dev/null` in
11203 *GNU* | *'with BFD'*)
11204 lt_cv_prog_gnu_ld=yes
11207 lt_cv_prog_gnu_ld=no
11211 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11212 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11213 with_gnu_ld=$lt_cv_prog_gnu_ld
11217 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11218 # archiving commands below assume that GNU ld is being used.
11219 if test "$with_gnu_ld" = yes; then
11220 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11221 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'
11223 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11226 # If archive_cmds runs LD, not CC, wlarc should be empty
11227 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11228 # investigate it a little bit more. (MM)
11231 # ancient GNU ld didn't support --whole-archive et. al.
11232 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11233 grep 'no-whole-archive' > /dev/null; then
11234 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11236 whole_archive_flag_spec_CXX=
11242 # A generic and very simple default shared library creation
11243 # command for GNU C++ for the case where it uses the native
11244 # linker, instead of GNU ld. If possible, this setting should
11245 # overridden to take advantage of the native linker features on
11246 # the platform it is being used on.
11247 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11250 # Commands to make compiler produce verbose output that lists
11251 # what "hidden" libraries, object files and flags are used when
11252 # linking a shared library.
11253 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11261 # PORTME: fill in a description of your system's C++ link characteristics
11262 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11263 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11267 # FIXME: insert proper C++ library support
11271 if test "$host_cpu" = ia64; then
11272 # On IA64, the linker does run time linking by default, so we don't
11273 # have to do anything special.
11274 aix_use_runtimelinking=no
11275 exp_sym_flag='-Bexport'
11278 aix_use_runtimelinking=no
11280 # Test if we are trying to use run time linking or normal
11281 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11282 # need to do runtime linking.
11283 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11284 for ld_flag in $LDFLAGS; do
11287 aix_use_runtimelinking=yes
11295 exp_sym_flag='-bexport'
11296 no_entry_flag='-bnoentry'
11299 # When large executables or shared objects are built, AIX ld can
11300 # have problems creating the table of contents. If linking a library
11301 # or program results in "error TOC overflow" add -mminimal-toc to
11302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11305 archive_cmds_CXX=''
11306 hardcode_direct_CXX=yes
11307 hardcode_libdir_separator_CXX=':'
11308 link_all_deplibs_CXX=yes
11310 if test "$GXX" = yes; then
11311 case $host_os in aix4.[012]|aix4.[012].*)
11312 # We only want to do this on AIX 4.2 and lower, the check
11313 # below for broken collect2 doesn't work under 4.3+
11314 collect2name=`${CC} -print-prog-name=collect2`
11315 if test -f "$collect2name" && \
11316 strings "$collect2name" | grep resolve_lib_name >/dev/null
11318 # We have reworked collect2
11321 # We have old collect2
11322 hardcode_direct_CXX=unsupported
11323 # It fails to find uninstalled libraries when the uninstalled
11324 # path is not listed in the libpath. Setting hardcode_minus_L
11325 # to unsupported forces relinking
11326 hardcode_minus_L_CXX=yes
11327 hardcode_libdir_flag_spec_CXX='-L$libdir'
11328 hardcode_libdir_separator_CXX=
11332 shared_flag='-shared'
11333 if test "$aix_use_runtimelinking" = yes; then
11334 shared_flag="$shared_flag "'${wl}-G'
11338 if test "$host_cpu" = ia64; then
11339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11340 # chokes on -Wl,-G. The following line is correct:
11343 if test "$aix_use_runtimelinking" = yes; then
11344 shared_flag='${wl}-G'
11346 shared_flag='${wl}-bM:SRE'
11351 # It seems that -bexpall does not export symbols beginning with
11352 # underscore (_), so it is better to generate a list of symbols to export.
11353 always_export_symbols_CXX=yes
11354 if test "$aix_use_runtimelinking" = yes; then
11355 # Warning - without using the other runtime loading flags (-brtl),
11356 # -berok will link without error, but may produce a broken library.
11357 allow_undefined_flag_CXX='-berok'
11358 # Determine the default libpath from the value encoded in an empty executable.
11359 cat >conftest.$ac_ext <<_ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_link") 2>conftest.er1
11383 grep -v '^ *+' conftest.er1 >conftest.err
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } && {
11388 test -z "$ac_cxx_werror_flag" ||
11389 test ! -s conftest.err
11390 } && test -s conftest$ac_exeext &&
11391 $as_test_x conftest$ac_exeext; then
11393 lt_aix_libpath_sed='
11394 /Import File Strings/,/^$/ {
11400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11401 # Check for a 64-bit object if we didn't find anything.
11402 if test -z "$aix_libpath"; then
11403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413 conftest$ac_exeext conftest.$ac_ext
11414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11416 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11418 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"
11420 if test "$host_cpu" = ia64; then
11421 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11422 allow_undefined_flag_CXX="-z nodefs"
11423 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"
11425 # Determine the default libpath from the value encoded in an empty executable.
11426 cat >conftest.$ac_ext <<_ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11450 grep -v '^ *+' conftest.er1 >conftest.err
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && {
11455 test -z "$ac_cxx_werror_flag" ||
11456 test ! -s conftest.err
11457 } && test -s conftest$ac_exeext &&
11458 $as_test_x conftest$ac_exeext; then
11460 lt_aix_libpath_sed='
11461 /Import File Strings/,/^$/ {
11467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11468 # Check for a 64-bit object if we didn't find anything.
11469 if test -z "$aix_libpath"; then
11470 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11480 conftest$ac_exeext conftest.$ac_ext
11481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11483 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11484 # Warning - without using the other run time loading flags,
11485 # -berok will link without error, but may produce a broken library.
11486 no_undefined_flag_CXX=' ${wl}-bernotok'
11487 allow_undefined_flag_CXX=' ${wl}-berok'
11488 # Exported symbols can be pulled into shared objects from archives
11489 whole_archive_flag_spec_CXX='$convenience'
11490 archive_cmds_need_lc_CXX=yes
11491 # This is similar to how AIX traditionally builds its shared libraries.
11492 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'
11498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11499 allow_undefined_flag_CXX=unsupported
11500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11501 # support --undefined. This deserves some investigation. FIXME
11502 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11509 case $cc_basename in
11511 # FIXME: insert proper C++ library support
11517 cygwin* | mingw* | pw32*)
11518 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11519 # as there is no search path for DLLs.
11520 hardcode_libdir_flag_spec_CXX='-L$libdir'
11521 allow_undefined_flag_CXX=unsupported
11522 always_export_symbols_CXX=no
11523 enable_shared_with_static_runtimes_CXX=yes
11525 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11526 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'
11527 # If the export-symbols file already is a .def file (1st line
11528 # is EXPORTS), use it as is; otherwise, prepend...
11529 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11530 cp $export_symbols $output_objdir/$soname.def;
11532 echo EXPORTS > $output_objdir/$soname.def;
11533 cat $export_symbols >> $output_objdir/$soname.def;
11535 $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'
11540 darwin* | rhapsody*)
11541 archive_cmds_need_lc_CXX=no
11542 hardcode_direct_CXX=no
11543 hardcode_automatic_CXX=yes
11544 hardcode_shlibpath_var_CXX=unsupported
11545 whole_archive_flag_spec_CXX=''
11546 link_all_deplibs_CXX=yes
11547 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11548 if test "$GXX" = yes ; then
11549 output_verbose_link_cmd='echo'
11550 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11551 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11552 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11553 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11554 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11555 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11556 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11559 case $cc_basename in
11561 output_verbose_link_cmd='echo'
11562 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'
11563 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11564 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11565 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}'
11566 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}'
11576 case $cc_basename in
11578 # FIXME: insert proper C++ library support
11582 # Green Hills C++ Compiler
11583 # FIXME: insert proper C++ library support
11587 # FIXME: insert proper C++ library support
11593 # C++ shared libraries reported to be fairly broken before switch to ELF
11597 archive_cmds_need_lc_CXX=no
11599 freebsd* | dragonfly*)
11600 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11607 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11608 hardcode_libdir_separator_CXX=:
11609 export_dynamic_flag_spec_CXX='${wl}-E'
11610 hardcode_direct_CXX=yes
11611 hardcode_minus_L_CXX=yes # Not in the search PATH,
11612 # but as the default
11613 # location of the library.
11615 case $cc_basename in
11617 # FIXME: insert proper C++ library support
11621 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'
11622 # Commands to make compiler produce verbose output that lists
11623 # what "hidden" libraries, object files and flags are used when
11624 # linking a shared library.
11626 # There doesn't appear to be a way to prevent this compiler from
11627 # explicitly linking system object files so we need to strip them
11628 # from the output so that they don't get included in the library
11630 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'
11633 if test "$GXX" = yes; then
11634 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'
11636 # FIXME: insert proper C++ library support
11643 if test $with_gnu_ld = no; then
11644 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11645 hardcode_libdir_separator_CXX=:
11650 export_dynamic_flag_spec_CXX='${wl}-E'
11656 hardcode_direct_CXX=no
11657 hardcode_shlibpath_var_CXX=no
11660 hardcode_direct_CXX=yes
11661 hardcode_minus_L_CXX=yes # Not in the search PATH,
11662 # but as the default
11663 # location of the library.
11667 case $cc_basename in
11669 # FIXME: insert proper C++ library support
11675 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11678 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11681 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11684 # Commands to make compiler produce verbose output that lists
11685 # what "hidden" libraries, object files and flags are used when
11686 # linking a shared library.
11688 # There doesn't appear to be a way to prevent this compiler from
11689 # explicitly linking system object files so we need to strip them
11690 # from the output so that they don't get included in the library
11692 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'
11695 if test "$GXX" = yes; then
11696 if test $with_gnu_ld = no; then
11699 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11705 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'
11710 # FIXME: insert proper C++ library support
11717 hardcode_direct_CXX=no
11718 hardcode_shlibpath_var_CXX=no
11719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11720 export_dynamic_flag_spec_CXX='${wl}-E'
11721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11722 # Instead, shared libraries are loaded at an image base (0x10000000 by
11723 # default) and relocated if they conflict, which is a slow very memory
11724 # consuming and fragmenting process. To avoid this, we pick a random,
11725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11727 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'
11728 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'
11731 case $cc_basename in
11734 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'
11736 # Archives containing C++ object files must be created using
11737 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11738 # necessary to make sure instantiated templates are included
11740 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11743 if test "$GXX" = yes; then
11744 if test "$with_gnu_ld" = no; then
11745 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'
11747 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'
11750 link_all_deplibs_CXX=yes
11753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11754 hardcode_libdir_separator_CXX=:
11756 linux* | k*bsd*-gnu)
11757 case $cc_basename in
11759 # Kuck and Associates, Inc. (KAI) C++ Compiler
11761 # KCC will only create a shared library if the output file
11762 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11763 # to its proper name (with version) after linking.
11764 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'
11765 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'
11766 # Commands to make compiler produce verbose output that lists
11767 # what "hidden" libraries, object files and flags are used when
11768 # linking a shared library.
11770 # There doesn't appear to be a way to prevent this compiler from
11771 # explicitly linking system object files so we need to strip them
11772 # from the output so that they don't get included in the library
11774 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'
11776 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11779 # Archives containing C++ object files must be created using
11780 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11781 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11786 # version 8.0 and above of icpc choke on multiply defined symbols
11787 # if we add $predep_objects and $postdep_objects, however 7.1 and
11788 # earlier do not add the objects themselves.
11789 case `$CC -V 2>&1` in
11791 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11792 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'
11794 *) # Version 8.0 or newer
11797 ia64*) tmp_idyn=' -i_dynamic';;
11799 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11800 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'
11803 archive_cmds_need_lc_CXX=no
11804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11806 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11809 # Portland Group C++ compiler
11810 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11811 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'
11813 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11815 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'
11819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11820 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'
11822 runpath_var=LD_RUN_PATH
11823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11824 hardcode_libdir_separator_CXX=:
11826 # Commands to make compiler produce verbose output that lists
11827 # what "hidden" libraries, object files and flags are used when
11828 # linking a shared library.
11830 # There doesn't appear to be a way to prevent this compiler from
11831 # explicitly linking system object files so we need to strip them
11832 # from the output so that they don't get included in the library
11834 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'
11837 case `$CC -V 2>&1 | sed 5q` in
11840 no_undefined_flag_CXX=' -zdefs'
11841 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11842 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'
11843 hardcode_libdir_flag_spec_CXX='-R$libdir'
11844 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'
11846 # Not sure whether something based on
11847 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11849 output_verbose_link_cmd='echo'
11851 # Archives containing C++ object files must be created using
11852 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11853 # necessary to make sure instantiated templates are included
11855 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11862 # FIXME: insert proper C++ library support
11866 # FIXME: insert proper C++ library support
11870 case $cc_basename in
11872 # FIXME: insert proper C++ library support
11876 # FIXME: insert proper C++ library support
11881 netbsd* | netbsdelf*-gnu)
11882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11883 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11885 hardcode_libdir_flag_spec_CXX='-R$libdir'
11886 hardcode_direct_CXX=yes
11887 hardcode_shlibpath_var_CXX=no
11889 # Workaround some broken pre-1.5 toolchains
11890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11893 # C++ shared libraries are fairly broken
11897 if test -f /usr/libexec/ld.so; then
11898 hardcode_direct_CXX=yes
11899 hardcode_shlibpath_var_CXX=no
11900 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11903 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11904 export_dynamic_flag_spec_CXX='${wl}-E'
11905 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11907 output_verbose_link_cmd='echo'
11913 case $cc_basename in
11915 # Kuck and Associates, Inc. (KAI) C++ Compiler
11917 # KCC will only create a shared library if the output file
11918 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11919 # to its proper name (with version) after linking.
11920 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'
11922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11923 hardcode_libdir_separator_CXX=:
11925 # Archives containing C++ object files must be created using
11926 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11927 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11931 # Rational C++ 2.4.1
11932 # FIXME: insert proper C++ library support
11936 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11937 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'
11939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11940 hardcode_libdir_separator_CXX=:
11942 # Commands to make compiler produce verbose output that lists
11943 # what "hidden" libraries, object files and flags are used when
11944 # linking a shared library.
11946 # There doesn't appear to be a way to prevent this compiler from
11947 # explicitly linking system object files so we need to strip them
11948 # from the output so that they don't get included in the library
11950 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'
11953 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11954 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11955 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'
11957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11958 hardcode_libdir_separator_CXX=:
11960 # Commands to make compiler produce verbose output that lists
11961 # what "hidden" libraries, object files and flags are used when
11962 # linking a shared library.
11963 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11966 # FIXME: insert proper C++ library support
11973 case $cc_basename in
11975 # Kuck and Associates, Inc. (KAI) C++ Compiler
11977 # KCC will only create a shared library if the output file
11978 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11979 # to its proper name (with version) after linking.
11980 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'
11982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11983 hardcode_libdir_separator_CXX=:
11985 # Archives containing C++ object files must be created using
11986 # the KAI C++ compiler.
11987 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11990 # Rational C++ 2.4.1
11991 # FIXME: insert proper C++ library support
11995 allow_undefined_flag_CXX=' -expect_unresolved \*'
11996 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'
11997 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11998 echo "-hidden">> $lib.exp~
11999 $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~
12002 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12003 hardcode_libdir_separator_CXX=:
12005 # Commands to make compiler produce verbose output that lists
12006 # what "hidden" libraries, object files and flags are used when
12007 # linking a shared library.
12009 # There doesn't appear to be a way to prevent this compiler from
12010 # explicitly linking system object files so we need to strip them
12011 # from the output so that they don't get included in the library
12013 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'
12016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12017 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12018 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'
12020 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12021 hardcode_libdir_separator_CXX=:
12023 # Commands to make compiler produce verbose output that lists
12024 # what "hidden" libraries, object files and flags are used when
12025 # linking a shared library.
12026 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12029 # FIXME: insert proper C++ library support
12036 # FIXME: insert proper C++ library support
12040 case $cc_basename in
12043 # FIXME: insert proper C++ library support
12048 # FIXME: insert proper C++ library support
12052 # FIXME: insert proper C++ library support
12058 case $cc_basename in
12060 # Sun C++ 4.2, 5.x and Centerline C++
12061 archive_cmds_need_lc_CXX=yes
12062 no_undefined_flag_CXX=' -zdefs'
12063 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12064 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12065 $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'
12067 hardcode_libdir_flag_spec_CXX='-R$libdir'
12068 hardcode_shlibpath_var_CXX=no
12070 solaris2.[0-5] | solaris2.[0-5].*) ;;
12072 # The compiler driver will combine and reorder linker options,
12073 # but understands `-z linker_flag'.
12074 # Supported since Solaris 2.6 (maybe 2.5.1?)
12075 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12078 link_all_deplibs_CXX=yes
12080 output_verbose_link_cmd='echo'
12082 # Archives containing C++ object files must be created using
12083 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12084 # necessary to make sure instantiated templates are included
12086 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12089 # Green Hills C++ Compiler
12090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12092 # The C++ compiler must be used to create the archive.
12093 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12096 # GNU C++ compiler with Solaris linker
12097 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12098 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12099 if $CC --version | grep -v '^2\.7' > /dev/null; then
12100 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12101 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12102 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12104 # Commands to make compiler produce verbose output that lists
12105 # what "hidden" libraries, object files and flags are used when
12106 # linking a shared library.
12107 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12109 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12111 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12112 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12113 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12115 # Commands to make compiler produce verbose output that lists
12116 # what "hidden" libraries, object files and flags are used when
12117 # linking a shared library.
12118 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12121 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12123 solaris2.[0-5] | solaris2.[0-5].*) ;;
12125 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12132 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12133 no_undefined_flag_CXX='${wl}-z,text'
12134 archive_cmds_need_lc_CXX=no
12135 hardcode_shlibpath_var_CXX=no
12136 runpath_var='LD_RUN_PATH'
12138 case $cc_basename in
12140 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12141 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 sysv5* | sco3.2v5* | sco5v6*)
12150 # Note: We can NOT use -z defs as we might desire, because we do not
12151 # link with -lc, and that would cause any symbols used from libc to
12152 # always be unresolved, which means just about no library would
12153 # ever link correctly. If we're not using GNU ld we use -z text
12154 # though, which does catch some bad symbols but isn't as heavy-handed
12156 # For security reasons, it is highly recommended that you always
12157 # use absolute paths for naming shared libraries, and exclude the
12158 # DT_RUNPATH tag from executables and libraries. But doing so
12159 # requires that you compile everything twice, which is a pain.
12160 # So that behaviour is only enabled if SCOABSPATH is set to a
12161 # non-empty value in the environment. Most likely only useful for
12162 # creating official distributions of packages.
12163 # This is a hack until libtool officially supports absolute path
12164 # names for shared libraries.
12165 no_undefined_flag_CXX='${wl}-z,text'
12166 allow_undefined_flag_CXX='${wl}-z,nodefs'
12167 archive_cmds_need_lc_CXX=no
12168 hardcode_shlibpath_var_CXX=no
12169 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12170 hardcode_libdir_separator_CXX=':'
12171 link_all_deplibs_CXX=yes
12172 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12173 runpath_var='LD_RUN_PATH'
12175 case $cc_basename in
12177 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12178 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12181 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12182 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12187 case $cc_basename in
12189 # NonStop-UX NCC 3.20
12190 # FIXME: insert proper C++ library support
12194 # FIXME: insert proper C++ library support
12200 # FIXME: insert proper C++ library support
12204 # FIXME: insert proper C++ library support
12208 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12209 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12210 test "$ld_shlibs_CXX" = no && can_build_shared=no
12215 cat > conftest.$ac_ext <<EOF
12219 Foo (void) { a = 0; }
12225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12226 (eval $ac_compile) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; then
12230 # Parse the compiler output and extract the necessary
12231 # objects, libraries and library flags.
12233 # Sentinel used to keep track of whether or not we are before
12234 # the conftest object file.
12235 pre_test_object_deps_done=no
12237 # The `*' in the case matches for architectures that use `case' in
12238 # $output_verbose_cmd can trigger glob expansion during the loop
12239 # eval without this substitution.
12240 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12242 for p in `eval $output_verbose_link_cmd`; do
12246 # Some compilers place space between "-{L,R}" and the path.
12247 # Remove the space.
12248 if test $p = "-L" \
12249 || test $p = "-R"; then
12256 if test "$pre_test_object_deps_done" = no; then
12259 # Internal compiler library paths should come after those
12260 # provided the user. The postdeps already come after the
12261 # user supplied libs so there is no need to process them.
12262 if test -z "$compiler_lib_search_path_CXX"; then
12263 compiler_lib_search_path_CXX="${prev}${p}"
12265 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12268 # The "-l" case would never come before the object being
12269 # linked, so don't bother handling this case.
12272 if test -z "$postdeps_CXX"; then
12273 postdeps_CXX="${prev}${p}"
12275 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12281 # This assumes that the test object file only shows up
12282 # once in the compiler output.
12283 if test "$p" = "conftest.$objext"; then
12284 pre_test_object_deps_done=yes
12288 if test "$pre_test_object_deps_done" = no; then
12289 if test -z "$predep_objects_CXX"; then
12290 predep_objects_CXX="$p"
12292 predep_objects_CXX="$predep_objects_CXX $p"
12295 if test -z "$postdep_objects_CXX"; then
12296 postdep_objects_CXX="$p"
12298 postdep_objects_CXX="$postdep_objects_CXX $p"
12303 *) ;; # Ignore the rest.
12311 echo "libtool.m4: error: problem compiling CXX test program"
12314 $rm -f confest.$objext
12316 compiler_lib_search_dirs_CXX=
12317 if test -n "$compiler_lib_search_path_CXX"; then
12318 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12321 # PORTME: override above test on systems where it is broken
12324 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12325 # hack all around it, let's just trust "g++" to DTRT.
12326 predep_objects_CXX=
12327 postdep_objects_CXX=
12332 case `$CC -V 2>&1 | sed 5q` in
12336 # The more standards-conforming stlport4 library is
12337 # incompatible with the Cstd library. Avoid specifying
12338 # it if it's in CXXFLAGS. Ignore libCrun as
12339 # -library=stlport4 depends on it.
12340 case " $CXX $CXXFLAGS " in
12341 *" -library=stlport4 "*)
12342 solaris_use_stlport4=yes
12345 if test "$solaris_use_stlport4" != yes; then
12346 postdeps_CXX='-library=Cstd -library=Crun'
12353 case $cc_basename in
12355 # The more standards-conforming stlport4 library is
12356 # incompatible with the Cstd library. Avoid specifying
12357 # it if it's in CXXFLAGS. Ignore libCrun as
12358 # -library=stlport4 depends on it.
12359 case " $CXX $CXXFLAGS " in
12360 *" -library=stlport4 "*)
12361 solaris_use_stlport4=yes
12365 # Adding this requires a known-good setup of shared libraries for
12366 # Sun compiler versions before 5.6, else PIC objects from an old
12367 # archive will be linked into the output, leading to subtle bugs.
12368 if test "$solaris_use_stlport4" != yes; then
12369 postdeps_CXX='-library=Cstd -library=Crun'
12376 case " $postdeps_CXX " in
12377 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12380 lt_prog_compiler_wl_CXX=
12381 lt_prog_compiler_pic_CXX=
12382 lt_prog_compiler_static_CXX=
12384 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12387 # C++ specific cases for pic, static, wl, etc.
12388 if test "$GXX" = yes; then
12389 lt_prog_compiler_wl_CXX='-Wl,'
12390 lt_prog_compiler_static_CXX='-static'
12394 # All AIX code is PIC.
12395 if test "$host_cpu" = ia64; then
12396 # AIX 5 now supports IA64 processor
12397 lt_prog_compiler_static_CXX='-Bstatic'
12401 # FIXME: we need at least 68020 code to build shared libraries, but
12402 # adding the `-m68020' flag to GCC prevents building anything better,
12404 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12407 # PIC is the default for these OSes.
12409 mingw* | cygwin* | os2* | pw32*)
12410 # This hack is so that the source file can tell whether it is being
12411 # built for inclusion in a dll (and should export symbols for example).
12412 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12413 # (--disable-auto-import) libraries
12414 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12416 darwin* | rhapsody*)
12417 # PIC is the default on this platform
12418 # Common symbols not allowed in MH_DYLIB files
12419 lt_prog_compiler_pic_CXX='-fno-common'
12422 # DJGPP does not support shared libraries at all
12423 lt_prog_compiler_pic_CXX=
12426 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12427 # Instead, we relocate shared libraries at runtime.
12430 if test -d /usr/nec; then
12431 lt_prog_compiler_pic_CXX=-Kconform_pic
12435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12436 # not for PA HP-UX.
12441 lt_prog_compiler_pic_CXX='-fPIC'
12446 lt_prog_compiler_pic_CXX='-fPIC'
12452 # All AIX code is PIC.
12453 if test "$host_cpu" = ia64; then
12454 # AIX 5 now supports IA64 processor
12455 lt_prog_compiler_static_CXX='-Bstatic'
12457 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12461 case $cc_basename in
12463 # Green Hills C++ Compiler
12464 # _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"
12469 # PIC is the default on this platform
12470 # Common symbols not allowed in MH_DYLIB files
12471 case $cc_basename in
12473 lt_prog_compiler_pic_CXX='-qnocommon'
12474 lt_prog_compiler_wl_CXX='-Wl,'
12479 case $cc_basename in
12481 lt_prog_compiler_pic_CXX='-KPIC'
12484 # Green Hills C++ Compiler
12485 lt_prog_compiler_pic_CXX='-pic'
12491 freebsd* | dragonfly*)
12492 # FreeBSD uses GNU C++
12494 hpux9* | hpux10* | hpux11*)
12495 case $cc_basename in
12497 lt_prog_compiler_wl_CXX='-Wl,'
12498 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12499 if test "$host_cpu" != ia64; then
12500 lt_prog_compiler_pic_CXX='+Z'
12504 lt_prog_compiler_wl_CXX='-Wl,'
12505 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12511 lt_prog_compiler_pic_CXX='+Z'
12520 # This is c89, which is MS Visual C++ (no shared libs)
12521 # Anyone wants to do a port?
12523 irix5* | irix6* | nonstopux*)
12524 case $cc_basename in
12526 lt_prog_compiler_wl_CXX='-Wl,'
12527 lt_prog_compiler_static_CXX='-non_shared'
12528 # CC pic flag -KPIC is the default.
12534 linux* | k*bsd*-gnu)
12535 case $cc_basename in
12538 lt_prog_compiler_wl_CXX='--backend -Wl,'
12539 lt_prog_compiler_pic_CXX='-fPIC'
12543 lt_prog_compiler_wl_CXX='-Wl,'
12544 lt_prog_compiler_pic_CXX='-KPIC'
12545 lt_prog_compiler_static_CXX='-static'
12548 # Portland Group C++ compiler.
12549 lt_prog_compiler_wl_CXX='-Wl,'
12550 lt_prog_compiler_pic_CXX='-fpic'
12551 lt_prog_compiler_static_CXX='-Bstatic'
12555 # Make sure the PIC flag is empty. It appears that all Alpha
12556 # Linux and Compaq Tru64 Unix objects are PIC.
12557 lt_prog_compiler_pic_CXX=
12558 lt_prog_compiler_static_CXX='-non_shared'
12561 case `$CC -V 2>&1 | sed 5q` in
12564 lt_prog_compiler_pic_CXX='-KPIC'
12565 lt_prog_compiler_static_CXX='-Bstatic'
12566 lt_prog_compiler_wl_CXX='-Qoption ld '
12577 case $cc_basename in
12579 lt_prog_compiler_pic_CXX='-W c,exportall'
12585 netbsd* | netbsdelf*-gnu)
12587 osf3* | osf4* | osf5*)
12588 case $cc_basename in
12590 lt_prog_compiler_wl_CXX='--backend -Wl,'
12593 # Rational C++ 2.4.1
12594 lt_prog_compiler_pic_CXX='-pic'
12597 # Digital/Compaq C++
12598 lt_prog_compiler_wl_CXX='-Wl,'
12599 # Make sure the PIC flag is empty. It appears that all Alpha
12600 # Linux and Compaq Tru64 Unix objects are PIC.
12601 lt_prog_compiler_pic_CXX=
12602 lt_prog_compiler_static_CXX='-non_shared'
12611 case $cc_basename in
12613 # Sun C++ 4.2, 5.x and Centerline C++
12614 lt_prog_compiler_pic_CXX='-KPIC'
12615 lt_prog_compiler_static_CXX='-Bstatic'
12616 lt_prog_compiler_wl_CXX='-Qoption ld '
12619 # Green Hills C++ Compiler
12620 lt_prog_compiler_pic_CXX='-PIC'
12627 case $cc_basename in
12630 lt_prog_compiler_pic_CXX='-pic'
12631 lt_prog_compiler_static_CXX='-Bstatic'
12635 lt_prog_compiler_pic_CXX='-pic'
12642 case $cc_basename in
12644 # NonStop-UX NCC 3.20
12645 lt_prog_compiler_pic_CXX='-KPIC'
12651 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12652 case $cc_basename in
12654 lt_prog_compiler_wl_CXX='-Wl,'
12655 lt_prog_compiler_pic_CXX='-KPIC'
12656 lt_prog_compiler_static_CXX='-Bstatic'
12663 lt_prog_compiler_can_build_shared_CXX=no
12668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12669 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12672 # Check to make sure the PIC flag actually works.
12674 if test -n "$lt_prog_compiler_pic_CXX"; then
12676 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12677 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12678 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 lt_cv_prog_compiler_pic_works_CXX=no
12682 ac_outfile=conftest.$ac_objext
12683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12684 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12685 # Insert the option either (1) after the last *FLAGS variable, or
12686 # (2) before a word containing "conftest.", or (3) at the end.
12687 # Note that $ac_compile itself does not contain backslashes and begins
12688 # with a dollar sign (not a hyphen), so the echo should work correctly.
12689 # The option is referenced via a variable to avoid confusing sed.
12690 lt_compile=`echo "$ac_compile" | $SED \
12691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12693 -e 's:$: $lt_compiler_flag:'`
12694 (eval echo "\"\$as_me:12694: $lt_compile\"" >&5)
12695 (eval "$lt_compile" 2>conftest.err)
12697 cat conftest.err >&5
12698 echo "$as_me:12698: \$? = $ac_status" >&5
12699 if (exit $ac_status) && test -s "$ac_outfile"; then
12700 # The compiler can only warn and ignore the option if not recognized
12701 # So say no if there are warnings other than the usual output.
12702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12705 lt_cv_prog_compiler_pic_works_CXX=yes
12711 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12712 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12714 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12715 case $lt_prog_compiler_pic_CXX in
12717 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12720 lt_prog_compiler_pic_CXX=
12721 lt_prog_compiler_can_build_shared_CXX=no
12726 # For platforms which do not support PIC, -DPIC is meaningless:
12728 lt_prog_compiler_pic_CXX=
12731 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12736 # Check to make sure the static flag actually works.
12738 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12739 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12740 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12741 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 lt_cv_prog_compiler_static_works_CXX=no
12745 save_LDFLAGS="$LDFLAGS"
12746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12749 # The linker can only warn and ignore the option if not recognized
12750 # So say no if there are warnings
12751 if test -s conftest.err; then
12752 # Append any errors to the config.log.
12753 cat conftest.err 1>&5
12754 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12756 if diff conftest.exp conftest.er2 >/dev/null; then
12757 lt_cv_prog_compiler_static_works_CXX=yes
12760 lt_cv_prog_compiler_static_works_CXX=yes
12764 LDFLAGS="$save_LDFLAGS"
12767 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12768 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12770 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12773 lt_prog_compiler_static_CXX=
12777 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12779 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 lt_cv_prog_compiler_c_o_CXX=no
12783 $rm -r conftest 2>/dev/null
12787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12789 lt_compiler_flag="-o out/conftest2.$ac_objext"
12790 # Insert the option either (1) after the last *FLAGS variable, or
12791 # (2) before a word containing "conftest.", or (3) at the end.
12792 # Note that $ac_compile itself does not contain backslashes and begins
12793 # with a dollar sign (not a hyphen), so the echo should work correctly.
12794 lt_compile=`echo "$ac_compile" | $SED \
12795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12797 -e 's:$: $lt_compiler_flag:'`
12798 (eval echo "\"\$as_me:12798: $lt_compile\"" >&5)
12799 (eval "$lt_compile" 2>out/conftest.err)
12801 cat out/conftest.err >&5
12802 echo "$as_me:12802: \$? = $ac_status" >&5
12803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12805 # The compiler can only warn and ignore the option if not recognized
12806 # So say no if there are warnings
12807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12810 lt_cv_prog_compiler_c_o_CXX=yes
12815 # SGI C++ compiler will create directory out/ii_files/ for
12816 # template instantiation
12817 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12818 $rm out/* && rmdir out
12824 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12828 hard_links="nottested"
12829 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12830 # do not overwrite the value of need_locks provided by the user
12831 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12837 ln conftest.a conftest.b 2>&5 || hard_links=no
12838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12839 { echo "$as_me:$LINENO: result: $hard_links" >&5
12840 echo "${ECHO_T}$hard_links" >&6; }
12841 if test "$hard_links" = no; then
12842 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12850 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12853 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12856 # If we're using GNU nm, then we don't want the "-C" option.
12857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12858 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12859 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'
12861 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'
12865 export_symbols_cmds_CXX="$ltdll_cmds"
12868 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'
12870 linux* | k*bsd*-gnu)
12871 link_all_deplibs_CXX=no
12874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12877 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12879 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12880 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12881 test "$ld_shlibs_CXX" = no && can_build_shared=no
12884 # Do we need to explicitly link libc?
12886 case "x$archive_cmds_need_lc_CXX" in
12888 # Assume -lc should be added
12889 archive_cmds_need_lc_CXX=yes
12891 if test "$enable_shared" = yes && test "$GCC" = yes; then
12892 case $archive_cmds_CXX in
12894 # FIXME: we may have to deal with multi-command sequences.
12897 # Test whether the compiler implicitly links with -lc since on some
12898 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12899 # to ld, don't add -lc before -lgcc.
12900 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12901 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } 2>conftest.err; then
12912 libobjs=conftest.$ac_objext
12914 wl=$lt_prog_compiler_wl_CXX
12915 pic_flag=$lt_prog_compiler_pic_CXX
12921 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12922 allow_undefined_flag_CXX=
12923 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12924 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }
12929 archive_cmds_need_lc_CXX=no
12931 archive_cmds_need_lc_CXX=yes
12933 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12935 cat conftest.err 1>&5
12938 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12939 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12946 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12948 library_names_spec=
12949 libname_spec='lib$name'
12953 postuninstall_cmds=
12957 shlibpath_overrides_runpath=unknown
12959 dynamic_linker="$host_os ld.so"
12960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12962 need_lib_prefix=unknown
12963 hardcode_into_libs=no
12965 # when you set need_version to no, make sure it does not cause -set_version
12966 # flags to be left without arguments
12967 need_version=unknown
12972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12973 shlibpath_var=LIBPATH
12975 # AIX 3 has no versioning support, so we append a major version to the name.
12976 soname_spec='${libname}${release}${shared_ext}$major'
12983 hardcode_into_libs=yes
12984 if test "$host_cpu" = ia64; then
12985 # AIX 5 supports IA64
12986 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12987 shlibpath_var=LD_LIBRARY_PATH
12989 # With GCC up to 2.95.x, collect2 would create an import file
12990 # for dependence libraries. The import file would start with
12991 # the line `#! .'. This would cause the generated library to
12992 # depend on `.', always an invalid library. This was fixed in
12993 # development snapshots of GCC prior to 3.0.
12995 aix4 | aix4.[01] | aix4.[01].*)
12996 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12998 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13001 can_build_shared=no
13005 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13006 # soname into executable. Probably we can add versioning support to
13007 # collect2, so additional links can be useful in future.
13008 if test "$aix_use_runtimelinking" = yes; then
13009 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13010 # instead of lib<name>.a to let people know that these are not
13011 # typical AIX shared libraries.
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 # We preserve .a as extension for shared libraries through AIX4.2
13015 # and later when we are not doing run time linking.
13016 library_names_spec='${libname}${release}.a $libname.a'
13017 soname_spec='${libname}${release}${shared_ext}$major'
13019 shlibpath_var=LIBPATH
13024 library_names_spec='$libname.ixlibrary $libname.a'
13025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13026 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'
13030 library_names_spec='${libname}${shared_ext}'
13031 dynamic_linker="$host_os ld.so"
13032 shlibpath_var=LIBRARY_PATH
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13041 shlibpath_var=LD_LIBRARY_PATH
13042 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13043 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13044 # the default ld.so.conf also contains /usr/contrib/lib and
13045 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13046 # libtool to hard-code these into programs
13049 cygwin* | mingw* | pw32*)
13050 version_type=windows
13055 case $GCC,$host_os in
13056 yes,cygwin* | yes,mingw* | yes,pw32*)
13057 library_names_spec='$libname.dll.a'
13058 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13059 postinstall_cmds='base_file=`basename \${file}`~
13060 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13061 dldir=$destdir/`dirname \$dlpath`~
13062 test -d \$dldir || mkdir -p \$dldir~
13063 $install_prog $dir/$dlname \$dldir/$dlname~
13064 chmod a+x \$dldir/$dlname'
13065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13066 dlpath=$dir/\$dldll~
13068 shlibpath_overrides_runpath=yes
13072 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13073 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13074 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13077 # MinGW DLLs use traditional 'lib' prefix
13078 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13079 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13080 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13081 # It is most probably a Windows format PATH printed by
13082 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13083 # path with ; separators, and with drive letters. We can handle the
13084 # drive letters (cygwin fileutils understands them), so leave them,
13085 # especially as we might pass files found there to a mingw objdump,
13086 # which wouldn't understand a cygwinified path. Ahh.
13087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13093 # pw32 DLLs use 'pw' prefix rather than 'lib'
13094 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13103 dynamic_linker='Win32 ld.exe'
13104 # FIXME: first we should search . and the directory the executable is in
13108 darwin* | rhapsody*)
13109 dynamic_linker="$host_os dyld"
13110 version_type=darwin
13113 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13114 soname_spec='${libname}${release}${major}$shared_ext'
13115 shlibpath_overrides_runpath=yes
13116 shlibpath_var=DYLD_LIBRARY_PATH
13117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 shlibpath_var=LD_LIBRARY_PATH
13135 freebsd* | dragonfly*)
13136 # DragonFly does not have aout. When/if they implement a new
13137 # versioning mechanism, adjust this.
13138 if test -x /usr/bin/objformat; then
13139 objformat=`/usr/bin/objformat`
13142 freebsd[123]*) objformat=aout ;;
13143 *) objformat=elf ;;
13146 version_type=freebsd-$objformat
13147 case $version_type in
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13158 shlibpath_var=LD_LIBRARY_PATH
13161 shlibpath_overrides_runpath=yes
13163 freebsd3.[01]* | freebsdelf3.[01]*)
13164 shlibpath_overrides_runpath=yes
13165 hardcode_into_libs=yes
13167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13169 shlibpath_overrides_runpath=no
13170 hardcode_into_libs=yes
13172 *) # from 4.6 on, and DragonFly
13173 shlibpath_overrides_runpath=yes
13174 hardcode_into_libs=yes
13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13184 soname_spec='${libname}${release}${shared_ext}$major'
13185 shlibpath_var=LD_LIBRARY_PATH
13186 hardcode_into_libs=yes
13189 hpux9* | hpux10* | hpux11*)
13190 # Give a soname corresponding to the major version so that dld.sl refuses to
13191 # link against other versions.
13198 hardcode_into_libs=yes
13199 dynamic_linker="$host_os dld.so"
13200 shlibpath_var=LD_LIBRARY_PATH
13201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 if test "X$HPUX_IA64_MODE" = X32; then
13205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13213 hardcode_into_libs=yes
13214 dynamic_linker="$host_os dld.sl"
13215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13218 soname_spec='${libname}${release}${shared_ext}$major'
13219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13224 dynamic_linker="$host_os dld.sl"
13225 shlibpath_var=SHLIB_PATH
13226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228 soname_spec='${libname}${release}${shared_ext}$major'
13231 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13232 postinstall_cmds='chmod 555 $lib'
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13240 soname_spec='${libname}${release}${shared_ext}$major'
13241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13242 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=no
13244 hardcode_into_libs=yes
13247 irix5* | irix6* | nonstopux*)
13249 nonstopux*) version_type=nonstopux ;;
13251 if test "$lt_cv_prog_gnu_ld" = yes; then
13259 soname_spec='${libname}${release}${shared_ext}$major'
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13262 irix5* | nonstopux*)
13263 libsuff= shlibsuff=
13266 case $LD in # libtool.m4 will add one of these switches to LD
13267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13268 libsuff= shlibsuff= libmagic=32-bit;;
13269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13270 libsuff=32 shlibsuff=N32 libmagic=N32;;
13271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13273 *) libsuff= shlibsuff= libmagic=never-match;;
13277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13278 shlibpath_overrides_runpath=no
13279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13281 hardcode_into_libs=yes
13284 # No shared lib support for Linux oldld, aout, or coff.
13285 linux*oldld* | linux*aout* | linux*coff*)
13289 # This must be Linux ELF.
13290 linux* | k*bsd*-gnu)
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=no
13299 # This implies no fast_install, which is unacceptable.
13300 # Some rework will be needed to allow for fast_install
13301 # before this can be enabled.
13302 hardcode_into_libs=yes
13304 # Append ld.so.conf contents to the search path
13305 if test -f /etc/ld.so.conf; then
13306 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' ' '`
13307 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13310 # We used to test for /lib/ld.so.1 and disable shared libraries on
13311 # powerpc, because MkLinux only supported shared libraries with the
13312 # GNU dynamic linker. Since this was broken with cross compilers,
13313 # most powerpc-linux boxes support dynamic linking these days and
13314 # people can always --disable-shared, the test was removed, and we
13315 # assume the GNU/Linux dynamic linker is in use.
13316 dynamic_linker='GNU/Linux ld.so'
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13324 soname_spec='${libname}${release}${shared_ext}$major'
13325 shlibpath_var=LD_LIBRARY_PATH
13326 shlibpath_overrides_runpath=no
13327 hardcode_into_libs=yes
13328 dynamic_linker='NetBSD ld.elf_so'
13335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13338 dynamic_linker='NetBSD (a.out) ld.so'
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 dynamic_linker='NetBSD ld.elf_so'
13344 shlibpath_var=LD_LIBRARY_PATH
13345 shlibpath_overrides_runpath=yes
13346 hardcode_into_libs=yes
13351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=yes
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 shlibpath_var=LD_LIBRARY_PATH
13363 shlibpath_overrides_runpath=yes
13368 sys_lib_dlsearch_path_spec="/usr/lib"
13370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13373 *) need_version=no ;;
13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13380 openbsd2.[89] | openbsd2.[89].*)
13381 shlibpath_overrides_runpath=no
13384 shlibpath_overrides_runpath=yes
13388 shlibpath_overrides_runpath=yes
13393 libname_spec='$name'
13396 library_names_spec='$libname${shared_ext} $libname.a'
13397 dynamic_linker='OS/2 ld.exe'
13398 shlibpath_var=LIBPATH
13401 osf3* | osf4* | osf5*)
13405 soname_spec='${libname}${release}${shared_ext}$major'
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421 soname_spec='${libname}${release}${shared_ext}$major'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 shlibpath_overrides_runpath=yes
13424 hardcode_into_libs=yes
13425 # ldd complains unless libraries are executable
13426 postinstall_cmds='chmod +x $lib'
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 shlibpath_overrides_runpath=yes
13435 if test "$with_gnu_ld" = yes; then
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 case $host_vendor in
13448 shlibpath_overrides_runpath=no
13450 export_dynamic_flag_spec='${wl}-Blargedynsym'
13451 runpath_var=LD_RUN_PATH
13459 shlibpath_overrides_runpath=no
13460 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13466 if test -d /usr/nec ;then
13468 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13469 soname_spec='$libname${shared_ext}.$major'
13470 shlibpath_var=LD_LIBRARY_PATH
13474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13475 version_type=freebsd-elf
13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13479 soname_spec='${libname}${release}${shared_ext}$major'
13480 shlibpath_var=LD_LIBRARY_PATH
13481 hardcode_into_libs=yes
13482 if test "$with_gnu_ld" = yes; then
13483 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13484 shlibpath_overrides_runpath=no
13486 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13487 shlibpath_overrides_runpath=yes
13490 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13494 sys_lib_dlsearch_path_spec='/usr/lib'
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500 soname_spec='${libname}${release}${shared_ext}$major'
13501 shlibpath_var=LD_LIBRARY_PATH
13508 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13509 echo "${ECHO_T}$dynamic_linker" >&6; }
13510 test "$dynamic_linker" = no && can_build_shared=no
13512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13518 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13519 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13525 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13528 if test "$GCC" = yes; then
13529 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13532 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13533 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13534 hardcode_action_CXX=
13535 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13536 test -n "$runpath_var_CXX" || \
13537 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13539 # We can hardcode non-existant directories.
13540 if test "$hardcode_direct_CXX" != no &&
13541 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13542 # have to relink, otherwise we might link with an installed library
13543 # when we should be linking with a yet-to-be-installed one
13544 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13545 test "$hardcode_minus_L_CXX" != no; then
13546 # Linking always hardcodes the temporary library directory.
13547 hardcode_action_CXX=relink
13549 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13550 hardcode_action_CXX=immediate
13553 # We cannot hardcode anything, or else we can only hardcode existing
13555 hardcode_action_CXX=unsupported
13557 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13558 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13560 if test "$hardcode_action_CXX" = relink; then
13561 # Fast installation is not supported
13562 enable_fast_install=no
13563 elif test "$shlibpath_overrides_runpath" = yes ||
13564 test "$enable_shared" = no; then
13565 # Fast installation is not necessary
13566 enable_fast_install=needless
13570 # The else clause should only fire when bootstrapping the
13571 # libtool distribution, otherwise you forgot to ship ltmain.sh
13572 # with your package, and you will get complaints that there are
13573 # no rules to generate ltmain.sh.
13574 if test -f "$ltmain"; then
13575 # See if we are running on zsh, and set the options which allow our commands through
13576 # without removal of \ escapes.
13577 if test -n "${ZSH_VERSION+set}" ; then
13578 setopt NO_GLOB_SUBST
13580 # Now quote all the things that may contain metacharacters while being
13581 # careful not to overquote the AC_SUBSTed values. We take copies of the
13582 # variables and quote the copies for generation of the libtool script.
13583 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13585 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13586 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13587 deplibs_check_method reload_flag reload_cmds need_locks \
13588 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13589 lt_cv_sys_global_symbol_to_c_name_address \
13590 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13591 old_postinstall_cmds old_postuninstall_cmds \
13595 lt_prog_compiler_wl_CXX \
13596 lt_prog_compiler_pic_CXX \
13597 lt_prog_compiler_static_CXX \
13598 lt_prog_compiler_no_builtin_flag_CXX \
13599 export_dynamic_flag_spec_CXX \
13600 thread_safe_flag_spec_CXX \
13601 whole_archive_flag_spec_CXX \
13602 enable_shared_with_static_runtimes_CXX \
13603 old_archive_cmds_CXX \
13604 old_archive_from_new_cmds_CXX \
13605 predep_objects_CXX \
13606 postdep_objects_CXX \
13609 compiler_lib_search_path_CXX \
13610 compiler_lib_search_dirs_CXX \
13612 archive_expsym_cmds_CXX \
13613 postinstall_cmds_CXX \
13614 postuninstall_cmds_CXX \
13615 old_archive_from_expsyms_cmds_CXX \
13616 allow_undefined_flag_CXX \
13617 no_undefined_flag_CXX \
13618 export_symbols_cmds_CXX \
13619 hardcode_libdir_flag_spec_CXX \
13620 hardcode_libdir_flag_spec_ld_CXX \
13621 hardcode_libdir_separator_CXX \
13622 hardcode_automatic_CXX \
13624 module_expsym_cmds_CXX \
13625 lt_cv_prog_compiler_c_o_CXX \
13626 fix_srcfile_path_CXX \
13627 exclude_expsyms_CXX \
13628 include_expsyms_CXX; do
13631 old_archive_cmds_CXX | \
13632 old_archive_from_new_cmds_CXX | \
13633 archive_cmds_CXX | \
13634 archive_expsym_cmds_CXX | \
13635 module_cmds_CXX | \
13636 module_expsym_cmds_CXX | \
13637 old_archive_from_expsyms_cmds_CXX | \
13638 export_symbols_cmds_CXX | \
13639 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13640 postinstall_cmds | postuninstall_cmds | \
13641 old_postinstall_cmds | old_postuninstall_cmds | \
13642 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13643 # Double-quote double-evaled strings.
13644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13653 *'\$0 --fallback-echo"')
13654 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13660 cat <<__EOF__ >> "$cfgfile"
13661 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13663 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13665 # Shell to use when invoking shell scripts.
13668 # Whether or not to build shared libraries.
13669 build_libtool_libs=$enable_shared
13671 # Whether or not to build static libraries.
13672 build_old_libs=$enable_static
13674 # Whether or not to add -lc for building shared libraries.
13675 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13677 # Whether or not to disallow shared libs when runtime libs are static
13678 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13680 # Whether or not to optimize for fast installation.
13681 fast_install=$enable_fast_install
13684 host_alias=$host_alias
13688 # The build system.
13689 build_alias=$build_alias
13693 # An echo program that does not interpret backslashes.
13698 AR_FLAGS=$lt_AR_FLAGS
13703 # LTCC compiler flags.
13704 LTCFLAGS=$lt_LTCFLAGS
13706 # A language-specific compiler.
13707 CC=$lt_compiler_CXX
13709 # Is the compiler the GNU C compiler?
13715 # The linker used to build libraries.
13718 # Whether we need hard or soft links.
13721 # A BSD-compatible nm program.
13724 # A symbol stripping program
13727 # Used to examine libraries when file_magic_cmd begins "file"
13728 MAGIC_CMD=$MAGIC_CMD
13730 # Used on cygwin: DLL creation program.
13733 # Used on cygwin: object dumper.
13736 # Used on cygwin: assembler.
13739 # The name of the directory that contains temporary libtool files.
13742 # How to create reloadable object files.
13743 reload_flag=$lt_reload_flag
13744 reload_cmds=$lt_reload_cmds
13746 # How to pass a linker flag through the compiler.
13747 wl=$lt_lt_prog_compiler_wl_CXX
13749 # Object file suffix (normally "o").
13750 objext="$ac_objext"
13752 # Old archive suffix (normally "a").
13755 # Shared library suffix (normally ".so").
13756 shrext_cmds='$shrext_cmds'
13758 # Executable file suffix (normally "").
13761 # Additional compiler flags for building library objects.
13762 pic_flag=$lt_lt_prog_compiler_pic_CXX
13765 # What is the maximum length of a command?
13766 max_cmd_len=$lt_cv_sys_max_cmd_len
13768 # Does compiler simultaneously support -c and -o options?
13769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13771 # Must we lock files when doing compilation?
13772 need_locks=$lt_need_locks
13774 # Do we need the lib prefix for modules?
13775 need_lib_prefix=$need_lib_prefix
13777 # Do we need a version for libraries?
13778 need_version=$need_version
13780 # Whether dlopen is supported.
13781 dlopen_support=$enable_dlopen
13783 # Whether dlopen of programs is supported.
13784 dlopen_self=$enable_dlopen_self
13786 # Whether dlopen of statically linked programs is supported.
13787 dlopen_self_static=$enable_dlopen_self_static
13789 # Compiler flag to prevent dynamic linking.
13790 link_static_flag=$lt_lt_prog_compiler_static_CXX
13792 # Compiler flag to turn off builtin functions.
13793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13795 # Compiler flag to allow reflexive dlopens.
13796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13798 # Compiler flag to generate shared objects directly from archives.
13799 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13801 # Compiler flag to generate thread-safe objects.
13802 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13804 # Library versioning type.
13805 version_type=$version_type
13807 # Format of library name prefix.
13808 libname_spec=$lt_libname_spec
13810 # List of archive names. First name is the real one, the rest are links.
13811 # The last name is the one that the linker finds with -lNAME.
13812 library_names_spec=$lt_library_names_spec
13814 # The coded name of the library, if different from the real name.
13815 soname_spec=$lt_soname_spec
13817 # Commands used to build and install an old-style archive.
13819 old_archive_cmds=$lt_old_archive_cmds_CXX
13820 old_postinstall_cmds=$lt_old_postinstall_cmds
13821 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13823 # Create an old-style archive from a shared archive.
13824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13826 # Create a temporary old-style archive to link instead of a shared archive.
13827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13829 # Commands used to build and install a shared archive.
13830 archive_cmds=$lt_archive_cmds_CXX
13831 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13832 postinstall_cmds=$lt_postinstall_cmds
13833 postuninstall_cmds=$lt_postuninstall_cmds
13835 # Commands used to build a loadable module (assumed same as above if empty)
13836 module_cmds=$lt_module_cmds_CXX
13837 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13839 # Commands to strip libraries.
13840 old_striplib=$lt_old_striplib
13841 striplib=$lt_striplib
13843 # Dependencies to place before the objects being linked to create a
13845 predep_objects=$lt_predep_objects_CXX
13847 # Dependencies to place after the objects being linked to create a
13849 postdep_objects=$lt_postdep_objects_CXX
13851 # Dependencies to place before the objects being linked to create a
13853 predeps=$lt_predeps_CXX
13855 # Dependencies to place after the objects being linked to create a
13857 postdeps=$lt_postdeps_CXX
13859 # The directories searched by this compiler when creating a shared
13861 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13863 # The library search path used internally by the compiler when linking
13864 # a shared library.
13865 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13867 # Method to check whether dependent libraries are shared objects.
13868 deplibs_check_method=$lt_deplibs_check_method
13870 # Command to use when deplibs_check_method == file_magic.
13871 file_magic_cmd=$lt_file_magic_cmd
13873 # Flag that allows shared libraries with undefined symbols to be built.
13874 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13876 # Flag that forces no undefined symbols.
13877 no_undefined_flag=$lt_no_undefined_flag_CXX
13879 # Commands used to finish a libtool library installation in a directory.
13880 finish_cmds=$lt_finish_cmds
13882 # Same as above, but a single script fragment to be evaled but not shown.
13883 finish_eval=$lt_finish_eval
13885 # Take the output of nm and produce a listing of raw symbols and C names.
13886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13888 # Transform the output of nm in a proper C declaration
13889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13891 # Transform the output of nm in a C name address pair
13892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13894 # This is the shared library runtime path variable.
13895 runpath_var=$runpath_var
13897 # This is the shared library path variable.
13898 shlibpath_var=$shlibpath_var
13900 # Is shlibpath searched before the hard-coded library search path?
13901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13903 # How to hardcode a shared library path into an executable.
13904 hardcode_action=$hardcode_action_CXX
13906 # Whether we should hardcode library paths into libraries.
13907 hardcode_into_libs=$hardcode_into_libs
13909 # Flag to hardcode \$libdir into a binary during linking.
13910 # This must work even if \$libdir does not exist.
13911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13913 # If ld is used when linking, flag to hardcode \$libdir into
13914 # a binary during linking. This must work even if \$libdir does
13916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13918 # Whether we need a single -rpath flag with a separated argument.
13919 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13922 # resulting binary.
13923 hardcode_direct=$hardcode_direct_CXX
13925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13926 # resulting binary.
13927 hardcode_minus_L=$hardcode_minus_L_CXX
13929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13930 # the resulting binary.
13931 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13933 # Set to yes if building a shared library automatically hardcodes DIR into the library
13934 # and all subsequent libraries and executables linked against it.
13935 hardcode_automatic=$hardcode_automatic_CXX
13937 # Variables whose values should be saved in libtool wrapper scripts and
13938 # restored at relink time.
13939 variables_saved_for_relink="$variables_saved_for_relink"
13941 # Whether libtool must link a program against all its dependency libraries.
13942 link_all_deplibs=$link_all_deplibs_CXX
13944 # Compile-time system search path for libraries
13945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13947 # Run-time system search path for libraries
13948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13950 # Fix the shell variable \$srcfile for the compiler.
13951 fix_srcfile_path=$lt_fix_srcfile_path
13953 # Set to yes if exported symbols are required.
13954 always_export_symbols=$always_export_symbols_CXX
13956 # The commands to list exported symbols.
13957 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13959 # The commands to extract the exported symbol list from a shared archive.
13960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13962 # Symbols that should not be listed in the preloaded symbols.
13963 exclude_expsyms=$lt_exclude_expsyms_CXX
13965 # Symbols that must always be exported.
13966 include_expsyms=$lt_include_expsyms_CXX
13968 # ### END LIBTOOL TAG CONFIG: $tagname
13974 # If there is no Makefile yet, we rely on a make rule to execute
13975 # `config.status --recheck' to rerun these tests and create the
13976 # libtool script then.
13977 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13978 if test -f "$ltmain_in"; then
13979 test -f Makefile && make "$ltmain"
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13994 with_gnu_ldcxx=$with_gnu_ld
13995 with_gnu_ld=$lt_save_with_gnu_ld
13996 lt_cv_path_LDCXX=$lt_cv_path_LD
13997 lt_cv_path_LD=$lt_save_path_LD
13998 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13999 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14007 if test -n "$F77" && test "X$F77" != "Xno"; then
14010 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14011 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14015 archive_cmds_need_lc_F77=no
14016 allow_undefined_flag_F77=
14017 always_export_symbols_F77=no
14018 archive_expsym_cmds_F77=
14019 export_dynamic_flag_spec_F77=
14020 hardcode_direct_F77=no
14021 hardcode_libdir_flag_spec_F77=
14022 hardcode_libdir_flag_spec_ld_F77=
14023 hardcode_libdir_separator_F77=
14024 hardcode_minus_L_F77=no
14025 hardcode_automatic_F77=no
14027 module_expsym_cmds_F77=
14028 link_all_deplibs_F77=unknown
14029 old_archive_cmds_F77=$old_archive_cmds
14030 no_undefined_flag_F77=
14031 whole_archive_flag_spec_F77=
14032 enable_shared_with_static_runtimes_F77=no
14034 # Source file extension for f77 test sources.
14037 # Object file extension for compiled f77 test sources.
14041 # Code to be used in simple compile tests
14042 lt_simple_compile_test_code="\
14048 # Code to be used in simple link tests
14049 lt_simple_link_test_code="\
14054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14056 # If no C compiler was specified, use CC.
14059 # If no C compiler flags were specified, use CFLAGS.
14060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14062 # Allow CC to be a program name with arguments.
14066 # save warnings/boilerplate of simple test code
14067 ac_outfile=conftest.$ac_objext
14068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14070 _lt_compiler_boilerplate=`cat conftest.err`
14073 ac_outfile=conftest.$ac_objext
14074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14076 _lt_linker_boilerplate=`cat conftest.err`
14080 # Allow CC to be a program name with arguments.
14085 for cc_temp in $compiler""; do
14087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14096 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14098 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14099 echo "${ECHO_T}$can_build_shared" >&6; }
14101 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14103 test "$can_build_shared" = "no" && enable_shared=no
14105 # On AIX, shared libraries and static libraries use the same namespace, and
14106 # are all built from PIC.
14109 test "$enable_shared" = yes && enable_static=no
14110 if test -n "$RANLIB"; then
14111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14112 postinstall_cmds='$RANLIB $lib'
14116 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14117 test "$enable_shared" = yes && enable_static=no
14121 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14122 echo "${ECHO_T}$enable_shared" >&6; }
14124 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14125 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14126 # Make sure either enable_shared or enable_static is yes.
14127 test "$enable_shared" = yes || enable_static=yes
14128 { echo "$as_me:$LINENO: result: $enable_static" >&5
14129 echo "${ECHO_T}$enable_static" >&6; }
14134 lt_prog_compiler_wl_F77=
14135 lt_prog_compiler_pic_F77=
14136 lt_prog_compiler_static_F77=
14138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14141 if test "$GCC" = yes; then
14142 lt_prog_compiler_wl_F77='-Wl,'
14143 lt_prog_compiler_static_F77='-static'
14147 # All AIX code is PIC.
14148 if test "$host_cpu" = ia64; then
14149 # AIX 5 now supports IA64 processor
14150 lt_prog_compiler_static_F77='-Bstatic'
14155 # FIXME: we need at least 68020 code to build shared libraries, but
14156 # adding the `-m68020' flag to GCC prevents building anything better,
14158 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14162 # PIC is the default for these OSes.
14165 mingw* | cygwin* | pw32* | os2*)
14166 # This hack is so that the source file can tell whether it is being
14167 # built for inclusion in a dll (and should export symbols for example).
14168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14169 # (--disable-auto-import) libraries
14170 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14173 darwin* | rhapsody*)
14174 # PIC is the default on this platform
14175 # Common symbols not allowed in MH_DYLIB files
14176 lt_prog_compiler_pic_F77='-fno-common'
14180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14181 # Instead, we relocate shared libraries at runtime.
14185 # Just because we use GCC doesn't mean we suddenly get shared libraries
14186 # on systems that don't support them.
14187 lt_prog_compiler_can_build_shared_F77=no
14192 if test -d /usr/nec; then
14193 lt_prog_compiler_pic_F77=-Kconform_pic
14198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14199 # not for PA HP-UX.
14205 lt_prog_compiler_pic_F77='-fPIC'
14211 lt_prog_compiler_pic_F77='-fPIC'
14215 # PORTME Check for flag to pass linker flags through the system compiler.
14218 lt_prog_compiler_wl_F77='-Wl,'
14219 if test "$host_cpu" = ia64; then
14220 # AIX 5 now supports IA64 processor
14221 lt_prog_compiler_static_F77='-Bstatic'
14223 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14227 # PIC is the default on this platform
14228 # Common symbols not allowed in MH_DYLIB files
14229 case $cc_basename in
14231 lt_prog_compiler_pic_F77='-qnocommon'
14232 lt_prog_compiler_wl_F77='-Wl,'
14237 mingw* | cygwin* | pw32* | os2*)
14238 # This hack is so that the source file can tell whether it is being
14239 # built for inclusion in a dll (and should export symbols for example).
14240 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14243 hpux9* | hpux10* | hpux11*)
14244 lt_prog_compiler_wl_F77='-Wl,'
14245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14246 # not for PA HP-UX.
14252 lt_prog_compiler_pic_F77='+Z'
14255 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14256 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14259 irix5* | irix6* | nonstopux*)
14260 lt_prog_compiler_wl_F77='-Wl,'
14261 # PIC (with -KPIC) is the default.
14262 lt_prog_compiler_static_F77='-non_shared'
14266 lt_prog_compiler_pic_F77='-KPIC'
14267 lt_prog_compiler_static_F77='-Bstatic'
14270 linux* | k*bsd*-gnu)
14271 case $cc_basename in
14273 lt_prog_compiler_wl_F77='-Wl,'
14274 lt_prog_compiler_pic_F77='-KPIC'
14275 lt_prog_compiler_static_F77='-static'
14277 pgcc* | pgf77* | pgf90* | pgf95*)
14278 # Portland Group compilers (*not* the Pentium gcc compiler,
14279 # which looks to be a dead project)
14280 lt_prog_compiler_wl_F77='-Wl,'
14281 lt_prog_compiler_pic_F77='-fpic'
14282 lt_prog_compiler_static_F77='-Bstatic'
14285 lt_prog_compiler_wl_F77='-Wl,'
14286 # All Alpha code is PIC.
14287 lt_prog_compiler_static_F77='-non_shared'
14290 case `$CC -V 2>&1 | sed 5q` in
14293 lt_prog_compiler_pic_F77='-KPIC'
14294 lt_prog_compiler_static_F77='-Bstatic'
14295 lt_prog_compiler_wl_F77='-Wl,'
14298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14299 lt_prog_compiler_pic_F77='-KPIC'
14300 lt_prog_compiler_static_F77='-Bstatic'
14301 lt_prog_compiler_wl_F77=''
14308 osf3* | osf4* | osf5*)
14309 lt_prog_compiler_wl_F77='-Wl,'
14310 # All OSF/1 code is PIC.
14311 lt_prog_compiler_static_F77='-non_shared'
14315 lt_prog_compiler_static_F77='-non_shared'
14319 lt_prog_compiler_pic_F77='-KPIC'
14320 lt_prog_compiler_static_F77='-Bstatic'
14321 case $cc_basename in
14322 f77* | f90* | f95*)
14323 lt_prog_compiler_wl_F77='-Qoption ld ';;
14325 lt_prog_compiler_wl_F77='-Wl,';;
14330 lt_prog_compiler_wl_F77='-Qoption ld '
14331 lt_prog_compiler_pic_F77='-PIC'
14332 lt_prog_compiler_static_F77='-Bstatic'
14335 sysv4 | sysv4.2uw2* | sysv4.3*)
14336 lt_prog_compiler_wl_F77='-Wl,'
14337 lt_prog_compiler_pic_F77='-KPIC'
14338 lt_prog_compiler_static_F77='-Bstatic'
14342 if test -d /usr/nec ;then
14343 lt_prog_compiler_pic_F77='-Kconform_pic'
14344 lt_prog_compiler_static_F77='-Bstatic'
14348 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14349 lt_prog_compiler_wl_F77='-Wl,'
14350 lt_prog_compiler_pic_F77='-KPIC'
14351 lt_prog_compiler_static_F77='-Bstatic'
14355 lt_prog_compiler_wl_F77='-Wl,'
14356 lt_prog_compiler_can_build_shared_F77=no
14360 lt_prog_compiler_pic_F77='-pic'
14361 lt_prog_compiler_static_F77='-Bstatic'
14365 lt_prog_compiler_can_build_shared_F77=no
14370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14371 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14374 # Check to make sure the PIC flag actually works.
14376 if test -n "$lt_prog_compiler_pic_F77"; then
14378 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14379 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14380 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 lt_cv_prog_compiler_pic_works_F77=no
14384 ac_outfile=conftest.$ac_objext
14385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14386 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14387 # Insert the option either (1) after the last *FLAGS variable, or
14388 # (2) before a word containing "conftest.", or (3) at the end.
14389 # Note that $ac_compile itself does not contain backslashes and begins
14390 # with a dollar sign (not a hyphen), so the echo should work correctly.
14391 # The option is referenced via a variable to avoid confusing sed.
14392 lt_compile=`echo "$ac_compile" | $SED \
14393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14395 -e 's:$: $lt_compiler_flag:'`
14396 (eval echo "\"\$as_me:14396: $lt_compile\"" >&5)
14397 (eval "$lt_compile" 2>conftest.err)
14399 cat conftest.err >&5
14400 echo "$as_me:14400: \$? = $ac_status" >&5
14401 if (exit $ac_status) && test -s "$ac_outfile"; then
14402 # The compiler can only warn and ignore the option if not recognized
14403 # So say no if there are warnings other than the usual output.
14404 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14407 lt_cv_prog_compiler_pic_works_F77=yes
14413 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14414 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14416 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14417 case $lt_prog_compiler_pic_F77 in
14419 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14422 lt_prog_compiler_pic_F77=
14423 lt_prog_compiler_can_build_shared_F77=no
14428 # For platforms which do not support PIC, -DPIC is meaningless:
14430 lt_prog_compiler_pic_F77=
14433 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14438 # Check to make sure the static flag actually works.
14440 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14441 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14442 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14443 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 lt_cv_prog_compiler_static_works_F77=no
14447 save_LDFLAGS="$LDFLAGS"
14448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14451 # The linker can only warn and ignore the option if not recognized
14452 # So say no if there are warnings
14453 if test -s conftest.err; then
14454 # Append any errors to the config.log.
14455 cat conftest.err 1>&5
14456 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14458 if diff conftest.exp conftest.er2 >/dev/null; then
14459 lt_cv_prog_compiler_static_works_F77=yes
14462 lt_cv_prog_compiler_static_works_F77=yes
14466 LDFLAGS="$save_LDFLAGS"
14469 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14470 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14472 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14475 lt_prog_compiler_static_F77=
14479 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14480 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14481 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 lt_cv_prog_compiler_c_o_F77=no
14485 $rm -r conftest 2>/dev/null
14489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491 lt_compiler_flag="-o out/conftest2.$ac_objext"
14492 # Insert the option either (1) after the last *FLAGS variable, or
14493 # (2) before a word containing "conftest.", or (3) at the end.
14494 # Note that $ac_compile itself does not contain backslashes and begins
14495 # with a dollar sign (not a hyphen), so the echo should work correctly.
14496 lt_compile=`echo "$ac_compile" | $SED \
14497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499 -e 's:$: $lt_compiler_flag:'`
14500 (eval echo "\"\$as_me:14500: $lt_compile\"" >&5)
14501 (eval "$lt_compile" 2>out/conftest.err)
14503 cat out/conftest.err >&5
14504 echo "$as_me:14504: \$? = $ac_status" >&5
14505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14507 # The compiler can only warn and ignore the option if not recognized
14508 # So say no if there are warnings
14509 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14512 lt_cv_prog_compiler_c_o_F77=yes
14517 # SGI C++ compiler will create directory out/ii_files/ for
14518 # template instantiation
14519 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14520 $rm out/* && rmdir out
14526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14527 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14530 hard_links="nottested"
14531 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14532 # do not overwrite the value of need_locks provided by the user
14533 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14534 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14539 ln conftest.a conftest.b 2>&5 || hard_links=no
14540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14541 { echo "$as_me:$LINENO: result: $hard_links" >&5
14542 echo "${ECHO_T}$hard_links" >&6; }
14543 if test "$hard_links" = no; then
14544 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14545 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14552 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14556 allow_undefined_flag_F77=
14557 enable_shared_with_static_runtimes_F77=no
14559 archive_expsym_cmds_F77=
14560 old_archive_From_new_cmds_F77=
14561 old_archive_from_expsyms_cmds_F77=
14562 export_dynamic_flag_spec_F77=
14563 whole_archive_flag_spec_F77=
14564 thread_safe_flag_spec_F77=
14565 hardcode_libdir_flag_spec_F77=
14566 hardcode_libdir_flag_spec_ld_F77=
14567 hardcode_libdir_separator_F77=
14568 hardcode_direct_F77=no
14569 hardcode_minus_L_F77=no
14570 hardcode_shlibpath_var_F77=unsupported
14571 link_all_deplibs_F77=unknown
14572 hardcode_automatic_F77=no
14574 module_expsym_cmds_F77=
14575 always_export_symbols_F77=no
14576 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14577 # include_expsyms should be a list of space-separated symbols to be *always*
14578 # included in the symbol list
14579 include_expsyms_F77=
14580 # exclude_expsyms can be an extended regexp of symbols to exclude
14581 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14582 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14583 # as well as any symbol that contains `d'.
14584 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14585 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14586 # platforms (ab)use it in PIC code, but their linkers get confused if
14587 # the symbol is explicitly referenced. Since portable code cannot
14588 # rely on this symbol name, it's probably fine to never include it in
14589 # preloaded symbol tables.
14590 # Exclude shared library initialization/finalization symbols.
14591 extract_expsyms_cmds=
14592 # Just being paranoid about ensuring that cc_basename is set.
14593 for cc_temp in $compiler""; do
14595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14601 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14604 cygwin* | mingw* | pw32*)
14605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14606 # When not using gcc, we currently assume that we are using
14607 # Microsoft Visual C++.
14608 if test "$GCC" != yes; then
14613 # we just hope/assume this is gcc and not c89 (= MSVC++)
14622 if test "$with_gnu_ld" = yes; then
14623 # If archive_cmds runs LD, not CC, wlarc should be empty
14626 # Set some defaults for GNU ld with shared library support. These
14627 # are reset later if shared libraries are not supported. Putting them
14628 # here allows them to be overridden if necessary.
14629 runpath_var=LD_RUN_PATH
14630 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14631 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14632 # ancient GNU ld didn't support --whole-archive et. al.
14633 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14634 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14636 whole_archive_flag_spec_F77=
14638 supports_anon_versioning=no
14639 case `$LD -v 2>/dev/null` in
14640 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14641 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14642 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14643 *\ 2.11.*) ;; # other 2.11 versions
14644 *) supports_anon_versioning=yes ;;
14647 # See if GNU ld supports shared libraries.
14650 # On AIX/PPC, the GNU linker is very broken
14651 if test "$host_cpu" != ia64; then
14655 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14656 *** to be unable to reliably create shared libraries on AIX.
14657 *** Therefore, libtool is disabling shared libraries support. If you
14658 *** really care for shared libraries, you may want to modify your PATH
14659 *** so that a non-GNU linker is found, and then restart.
14666 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)'
14667 hardcode_libdir_flag_spec_F77='-L$libdir'
14668 hardcode_minus_L_F77=yes
14670 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14671 # that the semantics of dynamic libraries on AmigaOS, at least up
14672 # to version 4, is to share data among multiple programs linked
14673 # with the same dynamic library. Since this doesn't match the
14674 # behavior of shared libraries on other platforms, we can't use
14680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14681 allow_undefined_flag_F77=unsupported
14682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14683 # support --undefined. This deserves some investigation. FIXME
14684 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14690 cygwin* | mingw* | pw32*)
14691 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14692 # as there is no search path for DLLs.
14693 hardcode_libdir_flag_spec_F77='-L$libdir'
14694 allow_undefined_flag_F77=unsupported
14695 always_export_symbols_F77=no
14696 enable_shared_with_static_runtimes_F77=yes
14697 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14699 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14700 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14701 # If the export-symbols file already is a .def file (1st line
14702 # is EXPORTS), use it as is; otherwise, prepend...
14703 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14704 cp $export_symbols $output_objdir/$soname.def;
14706 echo EXPORTS > $output_objdir/$soname.def;
14707 cat $export_symbols >> $output_objdir/$soname.def;
14709 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14716 hardcode_direct_F77=no
14717 hardcode_shlibpath_var_F77=no
14718 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14719 export_dynamic_flag_spec_F77='${wl}-E'
14720 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14721 # Instead, shared libraries are loaded at an image base (0x10000000 by
14722 # default) and relocated if they conflict, which is a slow very memory
14723 # consuming and fragmenting process. To avoid this, we pick a random,
14724 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14725 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14726 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'
14727 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'
14730 gnu* | linux* | k*bsd*-gnu)
14731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14733 case $cc_basename,$host_cpu in
14734 pgcc*) # Portland Group C compiler
14735 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'
14736 tmp_addflag=' $pic_flag'
14738 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14739 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'
14740 tmp_addflag=' $pic_flag -Mnomain' ;;
14741 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14742 tmp_addflag=' -i_dynamic' ;;
14743 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14744 tmp_addflag=' -i_dynamic -nofor_main' ;;
14745 ifc* | ifort*) # Intel Fortran compiler
14746 tmp_addflag=' -nofor_main' ;;
14748 case `$CC -V 2>&1 | sed 5q` in
14749 *Sun\ C*) # Sun C 5.9
14750 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'
14751 tmp_sharedflag='-G' ;;
14752 *Sun\ F*) # Sun Fortran 8.3
14753 tmp_sharedflag='-G' ;;
14755 tmp_sharedflag='-shared' ;;
14757 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14759 if test $supports_anon_versioning = yes; then
14760 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14762 $echo "local: *; };" >> $output_objdir/$libname.ver~
14763 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14765 link_all_deplibs_F77=no
14771 netbsd* | netbsdelf*-gnu)
14772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14773 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14776 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14777 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14782 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14787 *** create shared libraries on Solaris systems. Therefore, libtool
14788 *** is disabling shared libraries support. We urge you to upgrade GNU
14789 *** binutils to release 2.9.1 or newer. Another option is to modify
14790 *** your PATH or compiler configuration so that the native linker is
14791 *** used, and then restart.
14794 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14795 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14803 case `$LD -v 2>&1` in
14804 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14809 *** reliably create shared libraries on SCO systems. Therefore, libtool
14810 *** is disabling shared libraries support. We urge you to upgrade GNU
14811 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14812 *** your PATH or compiler configuration so that the native linker is
14813 *** used, and then restart.
14818 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14819 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14820 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14821 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14830 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14832 hardcode_direct_F77=yes
14833 hardcode_shlibpath_var_F77=no
14837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14838 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14839 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14846 if test "$ld_shlibs_F77" = no; then
14848 hardcode_libdir_flag_spec_F77=
14849 export_dynamic_flag_spec_F77=
14850 whole_archive_flag_spec_F77=
14853 # PORTME fill in a description of your system's linker (not GNU ld)
14856 allow_undefined_flag_F77=unsupported
14857 always_export_symbols_F77=yes
14858 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'
14859 # Note: this linker hardcodes the directories in LIBPATH if there
14860 # are no directories specified by -L.
14861 hardcode_minus_L_F77=yes
14862 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14863 # Neither direct hardcoding nor static linking is supported with a
14865 hardcode_direct_F77=unsupported
14870 if test "$host_cpu" = ia64; then
14871 # On IA64, the linker does run time linking by default, so we don't
14872 # have to do anything special.
14873 aix_use_runtimelinking=no
14874 exp_sym_flag='-Bexport'
14877 # If we're using GNU nm, then we don't want the "-C" option.
14878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14879 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14880 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'
14882 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'
14884 aix_use_runtimelinking=no
14886 # Test if we are trying to use run time linking or normal
14887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14888 # need to do runtime linking.
14889 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14890 for ld_flag in $LDFLAGS; do
14891 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14892 aix_use_runtimelinking=yes
14899 exp_sym_flag='-bexport'
14900 no_entry_flag='-bnoentry'
14903 # When large executables or shared objects are built, AIX ld can
14904 # have problems creating the table of contents. If linking a library
14905 # or program results in "error TOC overflow" add -mminimal-toc to
14906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14909 archive_cmds_F77=''
14910 hardcode_direct_F77=yes
14911 hardcode_libdir_separator_F77=':'
14912 link_all_deplibs_F77=yes
14914 if test "$GCC" = yes; then
14915 case $host_os in aix4.[012]|aix4.[012].*)
14916 # We only want to do this on AIX 4.2 and lower, the check
14917 # below for broken collect2 doesn't work under 4.3+
14918 collect2name=`${CC} -print-prog-name=collect2`
14919 if test -f "$collect2name" && \
14920 strings "$collect2name" | grep resolve_lib_name >/dev/null
14922 # We have reworked collect2
14925 # We have old collect2
14926 hardcode_direct_F77=unsupported
14927 # It fails to find uninstalled libraries when the uninstalled
14928 # path is not listed in the libpath. Setting hardcode_minus_L
14929 # to unsupported forces relinking
14930 hardcode_minus_L_F77=yes
14931 hardcode_libdir_flag_spec_F77='-L$libdir'
14932 hardcode_libdir_separator_F77=
14936 shared_flag='-shared'
14937 if test "$aix_use_runtimelinking" = yes; then
14938 shared_flag="$shared_flag "'${wl}-G'
14942 if test "$host_cpu" = ia64; then
14943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14944 # chokes on -Wl,-G. The following line is correct:
14947 if test "$aix_use_runtimelinking" = yes; then
14948 shared_flag='${wl}-G'
14950 shared_flag='${wl}-bM:SRE'
14955 # It seems that -bexpall does not export symbols beginning with
14956 # underscore (_), so it is better to generate a list of symbols to export.
14957 always_export_symbols_F77=yes
14958 if test "$aix_use_runtimelinking" = yes; then
14959 # Warning - without using the other runtime loading flags (-brtl),
14960 # -berok will link without error, but may produce a broken library.
14961 allow_undefined_flag_F77='-berok'
14962 # Determine the default libpath from the value encoded in an empty executable.
14963 cat >conftest.$ac_ext <<_ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (ac_try="$ac_link"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_link") 2>conftest.er1
14977 grep -v '^ *+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_f77_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest$ac_exeext &&
14985 $as_test_x conftest$ac_exeext; then
14987 lt_aix_libpath_sed='
14988 /Import File Strings/,/^$/ {
14994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14995 # Check for a 64-bit object if we didn't find anything.
14996 if test -z "$aix_libpath"; then
14997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15007 conftest$ac_exeext conftest.$ac_ext
15008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15010 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15011 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"
15013 if test "$host_cpu" = ia64; then
15014 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15015 allow_undefined_flag_F77="-z nodefs"
15016 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"
15018 # Determine the default libpath from the value encoded in an empty executable.
15019 cat >conftest.$ac_ext <<_ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (ac_try="$ac_link"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_link") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_f77_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest$ac_exeext &&
15041 $as_test_x conftest$ac_exeext; then
15043 lt_aix_libpath_sed='
15044 /Import File Strings/,/^$/ {
15050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15051 # Check for a 64-bit object if we didn't find anything.
15052 if test -z "$aix_libpath"; then
15053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15063 conftest$ac_exeext conftest.$ac_ext
15064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15066 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15067 # Warning - without using the other run time loading flags,
15068 # -berok will link without error, but may produce a broken library.
15069 no_undefined_flag_F77=' ${wl}-bernotok'
15070 allow_undefined_flag_F77=' ${wl}-berok'
15071 # Exported symbols can be pulled into shared objects from archives
15072 whole_archive_flag_spec_F77='$convenience'
15073 archive_cmds_need_lc_F77=yes
15074 # This is similar to how AIX traditionally builds its shared libraries.
15075 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'
15081 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)'
15082 hardcode_libdir_flag_spec_F77='-L$libdir'
15083 hardcode_minus_L_F77=yes
15084 # see comment about different semantics on the GNU ld section
15089 export_dynamic_flag_spec_F77=-rdynamic
15092 cygwin* | mingw* | pw32*)
15093 # When not using gcc, we currently assume that we are using
15094 # Microsoft Visual C++.
15095 # hardcode_libdir_flag_spec is actually meaningless, as there is
15096 # no search path for DLLs.
15097 hardcode_libdir_flag_spec_F77=' '
15098 allow_undefined_flag_F77=unsupported
15099 # Tell ltmain to make .lib files, not .a files.
15101 # Tell ltmain to make .dll files, not .so files.
15103 # FIXME: Setting linknames here is a bad hack.
15104 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15105 # The linker will automatically build a .lib file if we build a DLL.
15106 old_archive_From_new_cmds_F77='true'
15107 # FIXME: Should let the user specify the lib program.
15108 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15109 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15110 enable_shared_with_static_runtimes_F77=yes
15113 darwin* | rhapsody*)
15115 rhapsody* | darwin1.[012])
15116 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15119 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15120 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15122 case ${MACOSX_DEPLOYMENT_TARGET} in
15124 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15127 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15133 archive_cmds_need_lc_F77=no
15134 hardcode_direct_F77=no
15135 hardcode_automatic_F77=yes
15136 hardcode_shlibpath_var_F77=unsupported
15137 whole_archive_flag_spec_F77=''
15138 link_all_deplibs_F77=yes
15139 if test "$GCC" = yes ; then
15140 output_verbose_link_cmd='echo'
15141 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15142 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15143 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15144 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15146 case $cc_basename in
15148 output_verbose_link_cmd='echo'
15149 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15150 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15151 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15152 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}'
15153 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}'
15163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15164 hardcode_libdir_flag_spec_F77='-L$libdir'
15165 hardcode_shlibpath_var_F77=no
15172 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15173 # support. Future versions do this automatically, but an explicit c++rt0.o
15174 # does not break anything, and helps significantly (at the cost of a little
15177 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15178 hardcode_libdir_flag_spec_F77='-R$libdir'
15179 hardcode_direct_F77=yes
15180 hardcode_shlibpath_var_F77=no
15183 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15185 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15186 hardcode_direct_F77=yes
15187 hardcode_minus_L_F77=yes
15188 hardcode_shlibpath_var_F77=no
15191 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15192 freebsd* | dragonfly*)
15193 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15194 hardcode_libdir_flag_spec_F77='-R$libdir'
15195 hardcode_direct_F77=yes
15196 hardcode_shlibpath_var_F77=no
15200 if test "$GCC" = yes; then
15201 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'
15203 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'
15205 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15206 hardcode_libdir_separator_F77=:
15207 hardcode_direct_F77=yes
15209 # hardcode_minus_L: Not really in the search PATH,
15210 # but as the default location of the library.
15211 hardcode_minus_L_F77=yes
15212 export_dynamic_flag_spec_F77='${wl}-E'
15216 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15217 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15219 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15221 if test "$with_gnu_ld" = no; then
15222 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15223 hardcode_libdir_separator_F77=:
15225 hardcode_direct_F77=yes
15226 export_dynamic_flag_spec_F77='${wl}-E'
15228 # hardcode_minus_L: Not really in the search PATH,
15229 # but as the default location of the library.
15230 hardcode_minus_L_F77=yes
15235 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15238 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15244 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15250 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15253 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15256 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15260 if test "$with_gnu_ld" = no; then
15261 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15262 hardcode_libdir_separator_F77=:
15266 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15267 hardcode_direct_F77=no
15268 hardcode_shlibpath_var_F77=no
15271 hardcode_direct_F77=yes
15272 export_dynamic_flag_spec_F77='${wl}-E'
15274 # hardcode_minus_L: Not really in the search PATH,
15275 # but as the default location of the library.
15276 hardcode_minus_L_F77=yes
15282 irix5* | irix6* | nonstopux*)
15283 if test "$GCC" = yes; then
15284 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'
15286 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'
15287 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15289 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15290 hardcode_libdir_separator_F77=:
15291 link_all_deplibs_F77=yes
15294 netbsd* | netbsdelf*-gnu)
15295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15296 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15298 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15300 hardcode_libdir_flag_spec_F77='-R$libdir'
15301 hardcode_direct_F77=yes
15302 hardcode_shlibpath_var_F77=no
15306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15307 hardcode_direct_F77=yes
15308 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15309 hardcode_libdir_separator_F77=:
15310 hardcode_shlibpath_var_F77=no
15314 if test -f /usr/libexec/ld.so; then
15315 hardcode_direct_F77=yes
15316 hardcode_shlibpath_var_F77=no
15317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15318 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15319 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15320 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15321 export_dynamic_flag_spec_F77='${wl}-E'
15324 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15325 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15326 hardcode_libdir_flag_spec_F77='-R$libdir'
15329 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15330 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15340 hardcode_libdir_flag_spec_F77='-L$libdir'
15341 hardcode_minus_L_F77=yes
15342 allow_undefined_flag_F77=unsupported
15343 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'
15344 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15348 if test "$GCC" = yes; then
15349 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15350 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'
15352 allow_undefined_flag_F77=' -expect_unresolved \*'
15353 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'
15355 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15356 hardcode_libdir_separator_F77=:
15359 osf4* | osf5*) # as osf3* with the addition of -msym flag
15360 if test "$GCC" = yes; then
15361 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15362 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'
15363 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15365 allow_undefined_flag_F77=' -expect_unresolved \*'
15366 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'
15367 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~
15368 $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'
15370 # Both c and cxx compiler support -rpath directly
15371 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15373 hardcode_libdir_separator_F77=:
15377 no_undefined_flag_F77=' -z text'
15378 if test "$GCC" = yes; then
15380 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15381 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15382 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15385 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15387 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15389 hardcode_libdir_flag_spec_F77='-R$libdir'
15390 hardcode_shlibpath_var_F77=no
15392 solaris2.[0-5] | solaris2.[0-5].*) ;;
15394 # The compiler driver will combine and reorder linker options,
15395 # but understands `-z linker_flag'. GCC discards it without `$wl',
15396 # but is careful enough not to reorder.
15397 # Supported since Solaris 2.6 (maybe 2.5.1?)
15398 if test "$GCC" = yes; then
15399 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15401 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15405 link_all_deplibs_F77=yes
15409 if test "x$host_vendor" = xsequent; then
15410 # Use $CC to link under sequent, because it throws in some extra .o
15411 # files that make .init and .fini sections work.
15412 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15414 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15416 hardcode_libdir_flag_spec_F77='-L$libdir'
15417 hardcode_direct_F77=yes
15418 hardcode_minus_L_F77=yes
15419 hardcode_shlibpath_var_F77=no
15423 case $host_vendor in
15425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15426 hardcode_direct_F77=yes # is this really true???
15429 ## LD is ld it makes a PLAMLIB
15430 ## CC just makes a GrossModule.
15431 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15432 reload_cmds_F77='$CC -r -o $output$reload_objs'
15433 hardcode_direct_F77=no
15436 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15440 runpath_var='LD_RUN_PATH'
15441 hardcode_shlibpath_var_F77=no
15445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446 hardcode_shlibpath_var_F77=no
15447 export_dynamic_flag_spec_F77='-Bexport'
15451 if test -d /usr/nec; then
15452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_shlibpath_var_F77=no
15454 runpath_var=LD_RUN_PATH
15455 hardcode_runpath_var=yes
15460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15461 no_undefined_flag_F77='${wl}-z,text'
15462 archive_cmds_need_lc_F77=no
15463 hardcode_shlibpath_var_F77=no
15464 runpath_var='LD_RUN_PATH'
15466 if test "$GCC" = yes; then
15467 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15471 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15475 sysv5* | sco3.2v5* | sco5v6*)
15476 # Note: We can NOT use -z defs as we might desire, because we do not
15477 # link with -lc, and that would cause any symbols used from libc to
15478 # always be unresolved, which means just about no library would
15479 # ever link correctly. If we're not using GNU ld we use -z text
15480 # though, which does catch some bad symbols but isn't as heavy-handed
15482 no_undefined_flag_F77='${wl}-z,text'
15483 allow_undefined_flag_F77='${wl}-z,nodefs'
15484 archive_cmds_need_lc_F77=no
15485 hardcode_shlibpath_var_F77=no
15486 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15487 hardcode_libdir_separator_F77=':'
15488 link_all_deplibs_F77=yes
15489 export_dynamic_flag_spec_F77='${wl}-Bexport'
15490 runpath_var='LD_RUN_PATH'
15492 if test "$GCC" = yes; then
15493 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15497 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15503 hardcode_libdir_flag_spec_F77='-L$libdir'
15504 hardcode_shlibpath_var_F77=no
15513 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15514 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15515 test "$ld_shlibs_F77" = no && can_build_shared=no
15518 # Do we need to explicitly link libc?
15520 case "x$archive_cmds_need_lc_F77" in
15522 # Assume -lc should be added
15523 archive_cmds_need_lc_F77=yes
15525 if test "$enable_shared" = yes && test "$GCC" = yes; then
15526 case $archive_cmds_F77 in
15528 # FIXME: we may have to deal with multi-command sequences.
15531 # Test whether the compiler implicitly links with -lc since on some
15532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15533 # to ld, don't add -lc before -lgcc.
15534 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15535 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15540 (eval $ac_compile) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } 2>conftest.err; then
15546 libobjs=conftest.$ac_objext
15548 wl=$lt_prog_compiler_wl_F77
15549 pic_flag=$lt_prog_compiler_pic_F77
15555 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15556 allow_undefined_flag_F77=
15557 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15558 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }
15563 archive_cmds_need_lc_F77=no
15565 archive_cmds_need_lc_F77=yes
15567 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15569 cat conftest.err 1>&5
15572 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15573 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15580 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15581 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15582 library_names_spec=
15583 libname_spec='lib$name'
15587 postuninstall_cmds=
15591 shlibpath_overrides_runpath=unknown
15593 dynamic_linker="$host_os ld.so"
15594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15596 need_lib_prefix=unknown
15597 hardcode_into_libs=no
15599 # when you set need_version to no, make sure it does not cause -set_version
15600 # flags to be left without arguments
15601 need_version=unknown
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15607 shlibpath_var=LIBPATH
15609 # AIX 3 has no versioning support, so we append a major version to the name.
15610 soname_spec='${libname}${release}${shared_ext}$major'
15617 hardcode_into_libs=yes
15618 if test "$host_cpu" = ia64; then
15619 # AIX 5 supports IA64
15620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15621 shlibpath_var=LD_LIBRARY_PATH
15623 # With GCC up to 2.95.x, collect2 would create an import file
15624 # for dependence libraries. The import file would start with
15625 # the line `#! .'. This would cause the generated library to
15626 # depend on `.', always an invalid library. This was fixed in
15627 # development snapshots of GCC prior to 3.0.
15629 aix4 | aix4.[01] | aix4.[01].*)
15630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15632 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15635 can_build_shared=no
15639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15640 # soname into executable. Probably we can add versioning support to
15641 # collect2, so additional links can be useful in future.
15642 if test "$aix_use_runtimelinking" = yes; then
15643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15644 # instead of lib<name>.a to let people know that these are not
15645 # typical AIX shared libraries.
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 # We preserve .a as extension for shared libraries through AIX4.2
15649 # and later when we are not doing run time linking.
15650 library_names_spec='${libname}${release}.a $libname.a'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15653 shlibpath_var=LIBPATH
15658 library_names_spec='$libname.ixlibrary $libname.a'
15659 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15660 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'
15664 library_names_spec='${libname}${shared_ext}'
15665 dynamic_linker="$host_os ld.so"
15666 shlibpath_var=LIBRARY_PATH
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15677 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15678 # the default ld.so.conf also contains /usr/contrib/lib and
15679 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15680 # libtool to hard-code these into programs
15683 cygwin* | mingw* | pw32*)
15684 version_type=windows
15689 case $GCC,$host_os in
15690 yes,cygwin* | yes,mingw* | yes,pw32*)
15691 library_names_spec='$libname.dll.a'
15692 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15693 postinstall_cmds='base_file=`basename \${file}`~
15694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15695 dldir=$destdir/`dirname \$dlpath`~
15696 test -d \$dldir || mkdir -p \$dldir~
15697 $install_prog $dir/$dlname \$dldir/$dlname~
15698 chmod a+x \$dldir/$dlname'
15699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15700 dlpath=$dir/\$dldll~
15702 shlibpath_overrides_runpath=yes
15706 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15707 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15711 # MinGW DLLs use traditional 'lib' prefix
15712 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15713 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15714 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15715 # It is most probably a Windows format PATH printed by
15716 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15717 # path with ; separators, and with drive letters. We can handle the
15718 # drive letters (cygwin fileutils understands them), so leave them,
15719 # especially as we might pass files found there to a mingw objdump,
15720 # which wouldn't understand a cygwinified path. Ahh.
15721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15727 # pw32 DLLs use 'pw' prefix rather than 'lib'
15728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15737 dynamic_linker='Win32 ld.exe'
15738 # FIXME: first we should search . and the directory the executable is in
15742 darwin* | rhapsody*)
15743 dynamic_linker="$host_os dyld"
15744 version_type=darwin
15747 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15748 soname_spec='${libname}${release}${major}$shared_ext'
15749 shlibpath_overrides_runpath=yes
15750 shlibpath_var=DYLD_LIBRARY_PATH
15751 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15753 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15769 freebsd* | dragonfly*)
15770 # DragonFly does not have aout. When/if they implement a new
15771 # versioning mechanism, adjust this.
15772 if test -x /usr/bin/objformat; then
15773 objformat=`/usr/bin/objformat`
15776 freebsd[123]*) objformat=aout ;;
15777 *) objformat=elf ;;
15780 version_type=freebsd-$objformat
15781 case $version_type in
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15792 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=yes
15797 freebsd3.[01]* | freebsdelf3.[01]*)
15798 shlibpath_overrides_runpath=yes
15799 hardcode_into_libs=yes
15801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15803 shlibpath_overrides_runpath=no
15804 hardcode_into_libs=yes
15806 *) # from 4.6 on, and DragonFly
15807 shlibpath_overrides_runpath=yes
15808 hardcode_into_libs=yes
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15818 soname_spec='${libname}${release}${shared_ext}$major'
15819 shlibpath_var=LD_LIBRARY_PATH
15820 hardcode_into_libs=yes
15823 hpux9* | hpux10* | hpux11*)
15824 # Give a soname corresponding to the major version so that dld.sl refuses to
15825 # link against other versions.
15832 hardcode_into_libs=yes
15833 dynamic_linker="$host_os dld.so"
15834 shlibpath_var=LD_LIBRARY_PATH
15835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 if test "X$HPUX_IA64_MODE" = X32; then
15839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15847 hardcode_into_libs=yes
15848 dynamic_linker="$host_os dld.sl"
15849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15858 dynamic_linker="$host_os dld.sl"
15859 shlibpath_var=SHLIB_PATH
15860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862 soname_spec='${libname}${release}${shared_ext}$major'
15865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15866 postinstall_cmds='chmod 555 $lib'
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 shlibpath_overrides_runpath=no
15878 hardcode_into_libs=yes
15881 irix5* | irix6* | nonstopux*)
15883 nonstopux*) version_type=nonstopux ;;
15885 if test "$lt_cv_prog_gnu_ld" = yes; then
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15896 irix5* | nonstopux*)
15897 libsuff= shlibsuff=
15900 case $LD in # libtool.m4 will add one of these switches to LD
15901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15902 libsuff= shlibsuff= libmagic=32-bit;;
15903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15904 libsuff=32 shlibsuff=N32 libmagic=N32;;
15905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15907 *) libsuff= shlibsuff= libmagic=never-match;;
15911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15912 shlibpath_overrides_runpath=no
15913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15915 hardcode_into_libs=yes
15918 # No shared lib support for Linux oldld, aout, or coff.
15919 linux*oldld* | linux*aout* | linux*coff*)
15923 # This must be Linux ELF.
15924 linux* | k*bsd*-gnu)
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=no
15933 # This implies no fast_install, which is unacceptable.
15934 # Some rework will be needed to allow for fast_install
15935 # before this can be enabled.
15936 hardcode_into_libs=yes
15938 # Append ld.so.conf contents to the search path
15939 if test -f /etc/ld.so.conf; then
15940 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' ' '`
15941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15944 # We used to test for /lib/ld.so.1 and disable shared libraries on
15945 # powerpc, because MkLinux only supported shared libraries with the
15946 # GNU dynamic linker. Since this was broken with cross compilers,
15947 # most powerpc-linux boxes support dynamic linking these days and
15948 # people can always --disable-shared, the test was removed, and we
15949 # assume the GNU/Linux dynamic linker is in use.
15950 dynamic_linker='GNU/Linux ld.so'
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15958 soname_spec='${libname}${release}${shared_ext}$major'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=no
15961 hardcode_into_libs=yes
15962 dynamic_linker='NetBSD ld.elf_so'
15969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15972 dynamic_linker='NetBSD (a.out) ld.so'
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 dynamic_linker='NetBSD ld.elf_so'
15978 shlibpath_var=LD_LIBRARY_PATH
15979 shlibpath_overrides_runpath=yes
15980 hardcode_into_libs=yes
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes
16002 sys_lib_dlsearch_path_spec="/usr/lib"
16004 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16006 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16007 *) need_version=no ;;
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014 openbsd2.[89] | openbsd2.[89].*)
16015 shlibpath_overrides_runpath=no
16018 shlibpath_overrides_runpath=yes
16022 shlibpath_overrides_runpath=yes
16027 libname_spec='$name'
16030 library_names_spec='$libname${shared_ext} $libname.a'
16031 dynamic_linker='OS/2 ld.exe'
16032 shlibpath_var=LIBPATH
16035 osf3* | osf4* | osf5*)
16039 soname_spec='${libname}${release}${shared_ext}$major'
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16043 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath=yes
16058 hardcode_into_libs=yes
16059 # ldd complains unless libraries are executable
16060 postinstall_cmds='chmod +x $lib'
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 shlibpath_overrides_runpath=yes
16069 if test "$with_gnu_ld" = yes; then
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 soname_spec='${libname}${release}${shared_ext}$major'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 case $host_vendor in
16082 shlibpath_overrides_runpath=no
16084 export_dynamic_flag_spec='${wl}-Blargedynsym'
16085 runpath_var=LD_RUN_PATH
16093 shlibpath_overrides_runpath=no
16094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16100 if test -d /usr/nec ;then
16102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16103 soname_spec='$libname${shared_ext}.$major'
16104 shlibpath_var=LD_LIBRARY_PATH
16108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16109 version_type=freebsd-elf
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 hardcode_into_libs=yes
16116 if test "$with_gnu_ld" = yes; then
16117 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16118 shlibpath_overrides_runpath=no
16120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16121 shlibpath_overrides_runpath=yes
16124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16128 sys_lib_dlsearch_path_spec='/usr/lib'
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134 soname_spec='${libname}${release}${shared_ext}$major'
16135 shlibpath_var=LD_LIBRARY_PATH
16142 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16143 echo "${ECHO_T}$dynamic_linker" >&6; }
16144 test "$dynamic_linker" = no && can_build_shared=no
16146 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16152 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16153 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16159 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16162 if test "$GCC" = yes; then
16163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16166 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16167 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16168 hardcode_action_F77=
16169 if test -n "$hardcode_libdir_flag_spec_F77" || \
16170 test -n "$runpath_var_F77" || \
16171 test "X$hardcode_automatic_F77" = "Xyes" ; then
16173 # We can hardcode non-existant directories.
16174 if test "$hardcode_direct_F77" != no &&
16175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16176 # have to relink, otherwise we might link with an installed library
16177 # when we should be linking with a yet-to-be-installed one
16178 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16179 test "$hardcode_minus_L_F77" != no; then
16180 # Linking always hardcodes the temporary library directory.
16181 hardcode_action_F77=relink
16183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16184 hardcode_action_F77=immediate
16187 # We cannot hardcode anything, or else we can only hardcode existing
16189 hardcode_action_F77=unsupported
16191 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16192 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16194 if test "$hardcode_action_F77" = relink; then
16195 # Fast installation is not supported
16196 enable_fast_install=no
16197 elif test "$shlibpath_overrides_runpath" = yes ||
16198 test "$enable_shared" = no; then
16199 # Fast installation is not necessary
16200 enable_fast_install=needless
16204 # The else clause should only fire when bootstrapping the
16205 # libtool distribution, otherwise you forgot to ship ltmain.sh
16206 # with your package, and you will get complaints that there are
16207 # no rules to generate ltmain.sh.
16208 if test -f "$ltmain"; then
16209 # See if we are running on zsh, and set the options which allow our commands through
16210 # without removal of \ escapes.
16211 if test -n "${ZSH_VERSION+set}" ; then
16212 setopt NO_GLOB_SUBST
16214 # Now quote all the things that may contain metacharacters while being
16215 # careful not to overquote the AC_SUBSTed values. We take copies of the
16216 # variables and quote the copies for generation of the libtool script.
16217 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16219 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16220 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16221 deplibs_check_method reload_flag reload_cmds need_locks \
16222 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16223 lt_cv_sys_global_symbol_to_c_name_address \
16224 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16225 old_postinstall_cmds old_postuninstall_cmds \
16229 lt_prog_compiler_wl_F77 \
16230 lt_prog_compiler_pic_F77 \
16231 lt_prog_compiler_static_F77 \
16232 lt_prog_compiler_no_builtin_flag_F77 \
16233 export_dynamic_flag_spec_F77 \
16234 thread_safe_flag_spec_F77 \
16235 whole_archive_flag_spec_F77 \
16236 enable_shared_with_static_runtimes_F77 \
16237 old_archive_cmds_F77 \
16238 old_archive_from_new_cmds_F77 \
16239 predep_objects_F77 \
16240 postdep_objects_F77 \
16243 compiler_lib_search_path_F77 \
16244 compiler_lib_search_dirs_F77 \
16246 archive_expsym_cmds_F77 \
16247 postinstall_cmds_F77 \
16248 postuninstall_cmds_F77 \
16249 old_archive_from_expsyms_cmds_F77 \
16250 allow_undefined_flag_F77 \
16251 no_undefined_flag_F77 \
16252 export_symbols_cmds_F77 \
16253 hardcode_libdir_flag_spec_F77 \
16254 hardcode_libdir_flag_spec_ld_F77 \
16255 hardcode_libdir_separator_F77 \
16256 hardcode_automatic_F77 \
16258 module_expsym_cmds_F77 \
16259 lt_cv_prog_compiler_c_o_F77 \
16260 fix_srcfile_path_F77 \
16261 exclude_expsyms_F77 \
16262 include_expsyms_F77; do
16265 old_archive_cmds_F77 | \
16266 old_archive_from_new_cmds_F77 | \
16267 archive_cmds_F77 | \
16268 archive_expsym_cmds_F77 | \
16269 module_cmds_F77 | \
16270 module_expsym_cmds_F77 | \
16271 old_archive_from_expsyms_cmds_F77 | \
16272 export_symbols_cmds_F77 | \
16273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16274 postinstall_cmds | postuninstall_cmds | \
16275 old_postinstall_cmds | old_postuninstall_cmds | \
16276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16277 # Double-quote double-evaled strings.
16278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16287 *'\$0 --fallback-echo"')
16288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16294 cat <<__EOF__ >> "$cfgfile"
16295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16299 # Shell to use when invoking shell scripts.
16302 # Whether or not to build shared libraries.
16303 build_libtool_libs=$enable_shared
16305 # Whether or not to build static libraries.
16306 build_old_libs=$enable_static
16308 # Whether or not to add -lc for building shared libraries.
16309 build_libtool_need_lc=$archive_cmds_need_lc_F77
16311 # Whether or not to disallow shared libs when runtime libs are static
16312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16314 # Whether or not to optimize for fast installation.
16315 fast_install=$enable_fast_install
16318 host_alias=$host_alias
16322 # The build system.
16323 build_alias=$build_alias
16327 # An echo program that does not interpret backslashes.
16332 AR_FLAGS=$lt_AR_FLAGS
16337 # LTCC compiler flags.
16338 LTCFLAGS=$lt_LTCFLAGS
16340 # A language-specific compiler.
16341 CC=$lt_compiler_F77
16343 # Is the compiler the GNU C compiler?
16349 # The linker used to build libraries.
16352 # Whether we need hard or soft links.
16355 # A BSD-compatible nm program.
16358 # A symbol stripping program
16361 # Used to examine libraries when file_magic_cmd begins "file"
16362 MAGIC_CMD=$MAGIC_CMD
16364 # Used on cygwin: DLL creation program.
16367 # Used on cygwin: object dumper.
16370 # Used on cygwin: assembler.
16373 # The name of the directory that contains temporary libtool files.
16376 # How to create reloadable object files.
16377 reload_flag=$lt_reload_flag
16378 reload_cmds=$lt_reload_cmds
16380 # How to pass a linker flag through the compiler.
16381 wl=$lt_lt_prog_compiler_wl_F77
16383 # Object file suffix (normally "o").
16384 objext="$ac_objext"
16386 # Old archive suffix (normally "a").
16389 # Shared library suffix (normally ".so").
16390 shrext_cmds='$shrext_cmds'
16392 # Executable file suffix (normally "").
16395 # Additional compiler flags for building library objects.
16396 pic_flag=$lt_lt_prog_compiler_pic_F77
16399 # What is the maximum length of a command?
16400 max_cmd_len=$lt_cv_sys_max_cmd_len
16402 # Does compiler simultaneously support -c and -o options?
16403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16405 # Must we lock files when doing compilation?
16406 need_locks=$lt_need_locks
16408 # Do we need the lib prefix for modules?
16409 need_lib_prefix=$need_lib_prefix
16411 # Do we need a version for libraries?
16412 need_version=$need_version
16414 # Whether dlopen is supported.
16415 dlopen_support=$enable_dlopen
16417 # Whether dlopen of programs is supported.
16418 dlopen_self=$enable_dlopen_self
16420 # Whether dlopen of statically linked programs is supported.
16421 dlopen_self_static=$enable_dlopen_self_static
16423 # Compiler flag to prevent dynamic linking.
16424 link_static_flag=$lt_lt_prog_compiler_static_F77
16426 # Compiler flag to turn off builtin functions.
16427 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16429 # Compiler flag to allow reflexive dlopens.
16430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16432 # Compiler flag to generate shared objects directly from archives.
16433 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16435 # Compiler flag to generate thread-safe objects.
16436 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16438 # Library versioning type.
16439 version_type=$version_type
16441 # Format of library name prefix.
16442 libname_spec=$lt_libname_spec
16444 # List of archive names. First name is the real one, the rest are links.
16445 # The last name is the one that the linker finds with -lNAME.
16446 library_names_spec=$lt_library_names_spec
16448 # The coded name of the library, if different from the real name.
16449 soname_spec=$lt_soname_spec
16451 # Commands used to build and install an old-style archive.
16453 old_archive_cmds=$lt_old_archive_cmds_F77
16454 old_postinstall_cmds=$lt_old_postinstall_cmds
16455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16457 # Create an old-style archive from a shared archive.
16458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16460 # Create a temporary old-style archive to link instead of a shared archive.
16461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16463 # Commands used to build and install a shared archive.
16464 archive_cmds=$lt_archive_cmds_F77
16465 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16466 postinstall_cmds=$lt_postinstall_cmds
16467 postuninstall_cmds=$lt_postuninstall_cmds
16469 # Commands used to build a loadable module (assumed same as above if empty)
16470 module_cmds=$lt_module_cmds_F77
16471 module_expsym_cmds=$lt_module_expsym_cmds_F77
16473 # Commands to strip libraries.
16474 old_striplib=$lt_old_striplib
16475 striplib=$lt_striplib
16477 # Dependencies to place before the objects being linked to create a
16479 predep_objects=$lt_predep_objects_F77
16481 # Dependencies to place after the objects being linked to create a
16483 postdep_objects=$lt_postdep_objects_F77
16485 # Dependencies to place before the objects being linked to create a
16487 predeps=$lt_predeps_F77
16489 # Dependencies to place after the objects being linked to create a
16491 postdeps=$lt_postdeps_F77
16493 # The directories searched by this compiler when creating a shared
16495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16497 # The library search path used internally by the compiler when linking
16498 # a shared library.
16499 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16501 # Method to check whether dependent libraries are shared objects.
16502 deplibs_check_method=$lt_deplibs_check_method
16504 # Command to use when deplibs_check_method == file_magic.
16505 file_magic_cmd=$lt_file_magic_cmd
16507 # Flag that allows shared libraries with undefined symbols to be built.
16508 allow_undefined_flag=$lt_allow_undefined_flag_F77
16510 # Flag that forces no undefined symbols.
16511 no_undefined_flag=$lt_no_undefined_flag_F77
16513 # Commands used to finish a libtool library installation in a directory.
16514 finish_cmds=$lt_finish_cmds
16516 # Same as above, but a single script fragment to be evaled but not shown.
16517 finish_eval=$lt_finish_eval
16519 # Take the output of nm and produce a listing of raw symbols and C names.
16520 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16522 # Transform the output of nm in a proper C declaration
16523 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16525 # Transform the output of nm in a C name address pair
16526 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16528 # This is the shared library runtime path variable.
16529 runpath_var=$runpath_var
16531 # This is the shared library path variable.
16532 shlibpath_var=$shlibpath_var
16534 # Is shlibpath searched before the hard-coded library search path?
16535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16537 # How to hardcode a shared library path into an executable.
16538 hardcode_action=$hardcode_action_F77
16540 # Whether we should hardcode library paths into libraries.
16541 hardcode_into_libs=$hardcode_into_libs
16543 # Flag to hardcode \$libdir into a binary during linking.
16544 # This must work even if \$libdir does not exist.
16545 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16547 # If ld is used when linking, flag to hardcode \$libdir into
16548 # a binary during linking. This must work even if \$libdir does
16550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16552 # Whether we need a single -rpath flag with a separated argument.
16553 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16555 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16556 # resulting binary.
16557 hardcode_direct=$hardcode_direct_F77
16559 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16560 # resulting binary.
16561 hardcode_minus_L=$hardcode_minus_L_F77
16563 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16564 # the resulting binary.
16565 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16567 # Set to yes if building a shared library automatically hardcodes DIR into the library
16568 # and all subsequent libraries and executables linked against it.
16569 hardcode_automatic=$hardcode_automatic_F77
16571 # Variables whose values should be saved in libtool wrapper scripts and
16572 # restored at relink time.
16573 variables_saved_for_relink="$variables_saved_for_relink"
16575 # Whether libtool must link a program against all its dependency libraries.
16576 link_all_deplibs=$link_all_deplibs_F77
16578 # Compile-time system search path for libraries
16579 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16581 # Run-time system search path for libraries
16582 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16584 # Fix the shell variable \$srcfile for the compiler.
16585 fix_srcfile_path=$lt_fix_srcfile_path
16587 # Set to yes if exported symbols are required.
16588 always_export_symbols=$always_export_symbols_F77
16590 # The commands to list exported symbols.
16591 export_symbols_cmds=$lt_export_symbols_cmds_F77
16593 # The commands to extract the exported symbol list from a shared archive.
16594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16596 # Symbols that should not be listed in the preloaded symbols.
16597 exclude_expsyms=$lt_exclude_expsyms_F77
16599 # Symbols that must always be exported.
16600 include_expsyms=$lt_include_expsyms_F77
16602 # ### END LIBTOOL TAG CONFIG: $tagname
16608 # If there is no Makefile yet, we rely on a make rule to execute
16609 # `config.status --recheck' to rerun these tests and create the
16610 # libtool script then.
16611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16612 if test -f "$ltmain_in"; then
16613 test -f Makefile && make "$ltmain"
16619 ac_cpp='$CPP $CPPFLAGS'
16620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16632 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16635 # Source file extension for Java test sources.
16638 # Object file extension for compiled Java test sources.
16642 # Code to be used in simple compile tests
16643 lt_simple_compile_test_code="class foo {}"
16645 # Code to be used in simple link tests
16646 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16650 # If no C compiler was specified, use CC.
16653 # If no C compiler flags were specified, use CFLAGS.
16654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16656 # Allow CC to be a program name with arguments.
16660 # save warnings/boilerplate of simple test code
16661 ac_outfile=conftest.$ac_objext
16662 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16663 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16664 _lt_compiler_boilerplate=`cat conftest.err`
16667 ac_outfile=conftest.$ac_objext
16668 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16669 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16670 _lt_linker_boilerplate=`cat conftest.err`
16674 # Allow CC to be a program name with arguments.
16679 for cc_temp in $compiler""; do
16681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16687 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16690 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16691 archive_cmds_need_lc_GCJ=no
16693 old_archive_cmds_GCJ=$old_archive_cmds
16696 lt_prog_compiler_no_builtin_flag_GCJ=
16698 if test "$GCC" = yes; then
16699 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16702 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16703 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 lt_cv_prog_compiler_rtti_exceptions=no
16708 ac_outfile=conftest.$ac_objext
16709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16710 lt_compiler_flag="-fno-rtti -fno-exceptions"
16711 # Insert the option either (1) after the last *FLAGS variable, or
16712 # (2) before a word containing "conftest.", or (3) at the end.
16713 # Note that $ac_compile itself does not contain backslashes and begins
16714 # with a dollar sign (not a hyphen), so the echo should work correctly.
16715 # The option is referenced via a variable to avoid confusing sed.
16716 lt_compile=`echo "$ac_compile" | $SED \
16717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16719 -e 's:$: $lt_compiler_flag:'`
16720 (eval echo "\"\$as_me:16720: $lt_compile\"" >&5)
16721 (eval "$lt_compile" 2>conftest.err)
16723 cat conftest.err >&5
16724 echo "$as_me:16724: \$? = $ac_status" >&5
16725 if (exit $ac_status) && test -s "$ac_outfile"; then
16726 # The compiler can only warn and ignore the option if not recognized
16727 # So say no if there are warnings other than the usual output.
16728 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16731 lt_cv_prog_compiler_rtti_exceptions=yes
16737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16738 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16741 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16748 lt_prog_compiler_wl_GCJ=
16749 lt_prog_compiler_pic_GCJ=
16750 lt_prog_compiler_static_GCJ=
16752 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16755 if test "$GCC" = yes; then
16756 lt_prog_compiler_wl_GCJ='-Wl,'
16757 lt_prog_compiler_static_GCJ='-static'
16761 # All AIX code is PIC.
16762 if test "$host_cpu" = ia64; then
16763 # AIX 5 now supports IA64 processor
16764 lt_prog_compiler_static_GCJ='-Bstatic'
16769 # FIXME: we need at least 68020 code to build shared libraries, but
16770 # adding the `-m68020' flag to GCC prevents building anything better,
16772 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16775 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16776 # PIC is the default for these OSes.
16779 mingw* | cygwin* | pw32* | os2*)
16780 # This hack is so that the source file can tell whether it is being
16781 # built for inclusion in a dll (and should export symbols for example).
16782 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16783 # (--disable-auto-import) libraries
16787 darwin* | rhapsody*)
16788 # PIC is the default on this platform
16789 # Common symbols not allowed in MH_DYLIB files
16790 lt_prog_compiler_pic_GCJ='-fno-common'
16794 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16795 # Instead, we relocate shared libraries at runtime.
16799 # Just because we use GCC doesn't mean we suddenly get shared libraries
16800 # on systems that don't support them.
16801 lt_prog_compiler_can_build_shared_GCJ=no
16806 if test -d /usr/nec; then
16807 lt_prog_compiler_pic_GCJ=-Kconform_pic
16812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16813 # not for PA HP-UX.
16819 lt_prog_compiler_pic_GCJ='-fPIC'
16825 lt_prog_compiler_pic_GCJ='-fPIC'
16829 # PORTME Check for flag to pass linker flags through the system compiler.
16832 lt_prog_compiler_wl_GCJ='-Wl,'
16833 if test "$host_cpu" = ia64; then
16834 # AIX 5 now supports IA64 processor
16835 lt_prog_compiler_static_GCJ='-Bstatic'
16837 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16841 # PIC is the default on this platform
16842 # Common symbols not allowed in MH_DYLIB files
16843 case $cc_basename in
16845 lt_prog_compiler_pic_GCJ='-qnocommon'
16846 lt_prog_compiler_wl_GCJ='-Wl,'
16851 mingw* | cygwin* | pw32* | os2*)
16852 # This hack is so that the source file can tell whether it is being
16853 # built for inclusion in a dll (and should export symbols for example).
16857 hpux9* | hpux10* | hpux11*)
16858 lt_prog_compiler_wl_GCJ='-Wl,'
16859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16860 # not for PA HP-UX.
16866 lt_prog_compiler_pic_GCJ='+Z'
16869 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16870 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16873 irix5* | irix6* | nonstopux*)
16874 lt_prog_compiler_wl_GCJ='-Wl,'
16875 # PIC (with -KPIC) is the default.
16876 lt_prog_compiler_static_GCJ='-non_shared'
16880 lt_prog_compiler_pic_GCJ='-KPIC'
16881 lt_prog_compiler_static_GCJ='-Bstatic'
16884 linux* | k*bsd*-gnu)
16885 case $cc_basename in
16887 lt_prog_compiler_wl_GCJ='-Wl,'
16888 lt_prog_compiler_pic_GCJ='-KPIC'
16889 lt_prog_compiler_static_GCJ='-static'
16891 pgcc* | pgf77* | pgf90* | pgf95*)
16892 # Portland Group compilers (*not* the Pentium gcc compiler,
16893 # which looks to be a dead project)
16894 lt_prog_compiler_wl_GCJ='-Wl,'
16895 lt_prog_compiler_pic_GCJ='-fpic'
16896 lt_prog_compiler_static_GCJ='-Bstatic'
16899 lt_prog_compiler_wl_GCJ='-Wl,'
16900 # All Alpha code is PIC.
16901 lt_prog_compiler_static_GCJ='-non_shared'
16904 case `$CC -V 2>&1 | sed 5q` in
16907 lt_prog_compiler_pic_GCJ='-KPIC'
16908 lt_prog_compiler_static_GCJ='-Bstatic'
16909 lt_prog_compiler_wl_GCJ='-Wl,'
16912 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16913 lt_prog_compiler_pic_GCJ='-KPIC'
16914 lt_prog_compiler_static_GCJ='-Bstatic'
16915 lt_prog_compiler_wl_GCJ=''
16922 osf3* | osf4* | osf5*)
16923 lt_prog_compiler_wl_GCJ='-Wl,'
16924 # All OSF/1 code is PIC.
16925 lt_prog_compiler_static_GCJ='-non_shared'
16929 lt_prog_compiler_static_GCJ='-non_shared'
16933 lt_prog_compiler_pic_GCJ='-KPIC'
16934 lt_prog_compiler_static_GCJ='-Bstatic'
16935 case $cc_basename in
16936 f77* | f90* | f95*)
16937 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16939 lt_prog_compiler_wl_GCJ='-Wl,';;
16944 lt_prog_compiler_wl_GCJ='-Qoption ld '
16945 lt_prog_compiler_pic_GCJ='-PIC'
16946 lt_prog_compiler_static_GCJ='-Bstatic'
16949 sysv4 | sysv4.2uw2* | sysv4.3*)
16950 lt_prog_compiler_wl_GCJ='-Wl,'
16951 lt_prog_compiler_pic_GCJ='-KPIC'
16952 lt_prog_compiler_static_GCJ='-Bstatic'
16956 if test -d /usr/nec ;then
16957 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16958 lt_prog_compiler_static_GCJ='-Bstatic'
16962 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16963 lt_prog_compiler_wl_GCJ='-Wl,'
16964 lt_prog_compiler_pic_GCJ='-KPIC'
16965 lt_prog_compiler_static_GCJ='-Bstatic'
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 lt_prog_compiler_can_build_shared_GCJ=no
16974 lt_prog_compiler_pic_GCJ='-pic'
16975 lt_prog_compiler_static_GCJ='-Bstatic'
16979 lt_prog_compiler_can_build_shared_GCJ=no
16984 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16985 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16988 # Check to make sure the PIC flag actually works.
16990 if test -n "$lt_prog_compiler_pic_GCJ"; then
16992 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16993 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16994 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 lt_cv_prog_compiler_pic_works_GCJ=no
16998 ac_outfile=conftest.$ac_objext
16999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17000 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17001 # Insert the option either (1) after the last *FLAGS variable, or
17002 # (2) before a word containing "conftest.", or (3) at the end.
17003 # Note that $ac_compile itself does not contain backslashes and begins
17004 # with a dollar sign (not a hyphen), so the echo should work correctly.
17005 # The option is referenced via a variable to avoid confusing sed.
17006 lt_compile=`echo "$ac_compile" | $SED \
17007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17009 -e 's:$: $lt_compiler_flag:'`
17010 (eval echo "\"\$as_me:17010: $lt_compile\"" >&5)
17011 (eval "$lt_compile" 2>conftest.err)
17013 cat conftest.err >&5
17014 echo "$as_me:17014: \$? = $ac_status" >&5
17015 if (exit $ac_status) && test -s "$ac_outfile"; then
17016 # The compiler can only warn and ignore the option if not recognized
17017 # So say no if there are warnings other than the usual output.
17018 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17020 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17021 lt_cv_prog_compiler_pic_works_GCJ=yes
17027 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17028 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17030 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17031 case $lt_prog_compiler_pic_GCJ in
17033 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17036 lt_prog_compiler_pic_GCJ=
17037 lt_prog_compiler_can_build_shared_GCJ=no
17042 # For platforms which do not support PIC, -DPIC is meaningless:
17044 lt_prog_compiler_pic_GCJ=
17047 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17052 # Check to make sure the static flag actually works.
17054 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17055 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17056 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17057 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 lt_cv_prog_compiler_static_works_GCJ=no
17061 save_LDFLAGS="$LDFLAGS"
17062 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17063 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17065 # The linker can only warn and ignore the option if not recognized
17066 # So say no if there are warnings
17067 if test -s conftest.err; then
17068 # Append any errors to the config.log.
17069 cat conftest.err 1>&5
17070 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17072 if diff conftest.exp conftest.er2 >/dev/null; then
17073 lt_cv_prog_compiler_static_works_GCJ=yes
17076 lt_cv_prog_compiler_static_works_GCJ=yes
17080 LDFLAGS="$save_LDFLAGS"
17083 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17084 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17086 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17089 lt_prog_compiler_static_GCJ=
17093 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17094 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17095 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 lt_cv_prog_compiler_c_o_GCJ=no
17099 $rm -r conftest 2>/dev/null
17103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17105 lt_compiler_flag="-o out/conftest2.$ac_objext"
17106 # Insert the option either (1) after the last *FLAGS variable, or
17107 # (2) before a word containing "conftest.", or (3) at the end.
17108 # Note that $ac_compile itself does not contain backslashes and begins
17109 # with a dollar sign (not a hyphen), so the echo should work correctly.
17110 lt_compile=`echo "$ac_compile" | $SED \
17111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17113 -e 's:$: $lt_compiler_flag:'`
17114 (eval echo "\"\$as_me:17114: $lt_compile\"" >&5)
17115 (eval "$lt_compile" 2>out/conftest.err)
17117 cat out/conftest.err >&5
17118 echo "$as_me:17118: \$? = $ac_status" >&5
17119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17121 # The compiler can only warn and ignore the option if not recognized
17122 # So say no if there are warnings
17123 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17126 lt_cv_prog_compiler_c_o_GCJ=yes
17131 # SGI C++ compiler will create directory out/ii_files/ for
17132 # template instantiation
17133 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17134 $rm out/* && rmdir out
17140 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17141 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17144 hard_links="nottested"
17145 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17146 # do not overwrite the value of need_locks provided by the user
17147 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17148 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17153 ln conftest.a conftest.b 2>&5 || hard_links=no
17154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17155 { echo "$as_me:$LINENO: result: $hard_links" >&5
17156 echo "${ECHO_T}$hard_links" >&6; }
17157 if test "$hard_links" = no; then
17158 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17159 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17166 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17167 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17170 allow_undefined_flag_GCJ=
17171 enable_shared_with_static_runtimes_GCJ=no
17173 archive_expsym_cmds_GCJ=
17174 old_archive_From_new_cmds_GCJ=
17175 old_archive_from_expsyms_cmds_GCJ=
17176 export_dynamic_flag_spec_GCJ=
17177 whole_archive_flag_spec_GCJ=
17178 thread_safe_flag_spec_GCJ=
17179 hardcode_libdir_flag_spec_GCJ=
17180 hardcode_libdir_flag_spec_ld_GCJ=
17181 hardcode_libdir_separator_GCJ=
17182 hardcode_direct_GCJ=no
17183 hardcode_minus_L_GCJ=no
17184 hardcode_shlibpath_var_GCJ=unsupported
17185 link_all_deplibs_GCJ=unknown
17186 hardcode_automatic_GCJ=no
17188 module_expsym_cmds_GCJ=
17189 always_export_symbols_GCJ=no
17190 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17191 # include_expsyms should be a list of space-separated symbols to be *always*
17192 # included in the symbol list
17193 include_expsyms_GCJ=
17194 # exclude_expsyms can be an extended regexp of symbols to exclude
17195 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17196 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17197 # as well as any symbol that contains `d'.
17198 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17199 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17200 # platforms (ab)use it in PIC code, but their linkers get confused if
17201 # the symbol is explicitly referenced. Since portable code cannot
17202 # rely on this symbol name, it's probably fine to never include it in
17203 # preloaded symbol tables.
17204 # Exclude shared library initialization/finalization symbols.
17205 extract_expsyms_cmds=
17206 # Just being paranoid about ensuring that cc_basename is set.
17207 for cc_temp in $compiler""; do
17209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17218 cygwin* | mingw* | pw32*)
17219 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17220 # When not using gcc, we currently assume that we are using
17221 # Microsoft Visual C++.
17222 if test "$GCC" != yes; then
17227 # we just hope/assume this is gcc and not c89 (= MSVC++)
17236 if test "$with_gnu_ld" = yes; then
17237 # If archive_cmds runs LD, not CC, wlarc should be empty
17240 # Set some defaults for GNU ld with shared library support. These
17241 # are reset later if shared libraries are not supported. Putting them
17242 # here allows them to be overridden if necessary.
17243 runpath_var=LD_RUN_PATH
17244 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17245 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17246 # ancient GNU ld didn't support --whole-archive et. al.
17247 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17248 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17250 whole_archive_flag_spec_GCJ=
17252 supports_anon_versioning=no
17253 case `$LD -v 2>/dev/null` in
17254 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17255 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17256 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17257 *\ 2.11.*) ;; # other 2.11 versions
17258 *) supports_anon_versioning=yes ;;
17261 # See if GNU ld supports shared libraries.
17264 # On AIX/PPC, the GNU linker is very broken
17265 if test "$host_cpu" != ia64; then
17269 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17270 *** to be unable to reliably create shared libraries on AIX.
17271 *** Therefore, libtool is disabling shared libraries support. If you
17272 *** really care for shared libraries, you may want to modify your PATH
17273 *** so that a non-GNU linker is found, and then restart.
17280 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)'
17281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282 hardcode_minus_L_GCJ=yes
17284 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17285 # that the semantics of dynamic libraries on AmigaOS, at least up
17286 # to version 4, is to share data among multiple programs linked
17287 # with the same dynamic library. Since this doesn't match the
17288 # behavior of shared libraries on other platforms, we can't use
17294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17295 allow_undefined_flag_GCJ=unsupported
17296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17297 # support --undefined. This deserves some investigation. FIXME
17298 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17304 cygwin* | mingw* | pw32*)
17305 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17306 # as there is no search path for DLLs.
17307 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17308 allow_undefined_flag_GCJ=unsupported
17309 always_export_symbols_GCJ=no
17310 enable_shared_with_static_runtimes_GCJ=yes
17311 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17313 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17314 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17315 # If the export-symbols file already is a .def file (1st line
17316 # is EXPORTS), use it as is; otherwise, prepend...
17317 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17318 cp $export_symbols $output_objdir/$soname.def;
17320 echo EXPORTS > $output_objdir/$soname.def;
17321 cat $export_symbols >> $output_objdir/$soname.def;
17323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17330 hardcode_direct_GCJ=no
17331 hardcode_shlibpath_var_GCJ=no
17332 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17333 export_dynamic_flag_spec_GCJ='${wl}-E'
17334 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17335 # Instead, shared libraries are loaded at an image base (0x10000000 by
17336 # default) and relocated if they conflict, which is a slow very memory
17337 # consuming and fragmenting process. To avoid this, we pick a random,
17338 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17339 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17340 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'
17341 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'
17344 gnu* | linux* | k*bsd*-gnu)
17345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17347 case $cc_basename,$host_cpu in
17348 pgcc*) # Portland Group C compiler
17349 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'
17350 tmp_addflag=' $pic_flag'
17352 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17353 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'
17354 tmp_addflag=' $pic_flag -Mnomain' ;;
17355 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17356 tmp_addflag=' -i_dynamic' ;;
17357 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17358 tmp_addflag=' -i_dynamic -nofor_main' ;;
17359 ifc* | ifort*) # Intel Fortran compiler
17360 tmp_addflag=' -nofor_main' ;;
17362 case `$CC -V 2>&1 | sed 5q` in
17363 *Sun\ C*) # Sun C 5.9
17364 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'
17365 tmp_sharedflag='-G' ;;
17366 *Sun\ F*) # Sun Fortran 8.3
17367 tmp_sharedflag='-G' ;;
17369 tmp_sharedflag='-shared' ;;
17371 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17373 if test $supports_anon_versioning = yes; then
17374 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17375 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17376 $echo "local: *; };" >> $output_objdir/$libname.ver~
17377 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17379 link_all_deplibs_GCJ=no
17385 netbsd* | netbsdelf*-gnu)
17386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17387 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17390 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17391 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17396 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17401 *** create shared libraries on Solaris systems. Therefore, libtool
17402 *** is disabling shared libraries support. We urge you to upgrade GNU
17403 *** binutils to release 2.9.1 or newer. Another option is to modify
17404 *** your PATH or compiler configuration so that the native linker is
17405 *** used, and then restart.
17408 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17409 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17417 case `$LD -v 2>&1` in
17418 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17422 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17423 *** reliably create shared libraries on SCO systems. Therefore, libtool
17424 *** is disabling shared libraries support. We urge you to upgrade GNU
17425 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17426 *** your PATH or compiler configuration so that the native linker is
17427 *** used, and then restart.
17432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17433 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17435 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17444 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17446 hardcode_direct_GCJ=yes
17447 hardcode_shlibpath_var_GCJ=no
17451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17452 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17453 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17460 if test "$ld_shlibs_GCJ" = no; then
17462 hardcode_libdir_flag_spec_GCJ=
17463 export_dynamic_flag_spec_GCJ=
17464 whole_archive_flag_spec_GCJ=
17467 # PORTME fill in a description of your system's linker (not GNU ld)
17470 allow_undefined_flag_GCJ=unsupported
17471 always_export_symbols_GCJ=yes
17472 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'
17473 # Note: this linker hardcodes the directories in LIBPATH if there
17474 # are no directories specified by -L.
17475 hardcode_minus_L_GCJ=yes
17476 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17477 # Neither direct hardcoding nor static linking is supported with a
17479 hardcode_direct_GCJ=unsupported
17484 if test "$host_cpu" = ia64; then
17485 # On IA64, the linker does run time linking by default, so we don't
17486 # have to do anything special.
17487 aix_use_runtimelinking=no
17488 exp_sym_flag='-Bexport'
17491 # If we're using GNU nm, then we don't want the "-C" option.
17492 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17493 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17494 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'
17496 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'
17498 aix_use_runtimelinking=no
17500 # Test if we are trying to use run time linking or normal
17501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17502 # need to do runtime linking.
17503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17504 for ld_flag in $LDFLAGS; do
17505 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17506 aix_use_runtimelinking=yes
17513 exp_sym_flag='-bexport'
17514 no_entry_flag='-bnoentry'
17517 # When large executables or shared objects are built, AIX ld can
17518 # have problems creating the table of contents. If linking a library
17519 # or program results in "error TOC overflow" add -mminimal-toc to
17520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17523 archive_cmds_GCJ=''
17524 hardcode_direct_GCJ=yes
17525 hardcode_libdir_separator_GCJ=':'
17526 link_all_deplibs_GCJ=yes
17528 if test "$GCC" = yes; then
17529 case $host_os in aix4.[012]|aix4.[012].*)
17530 # We only want to do this on AIX 4.2 and lower, the check
17531 # below for broken collect2 doesn't work under 4.3+
17532 collect2name=`${CC} -print-prog-name=collect2`
17533 if test -f "$collect2name" && \
17534 strings "$collect2name" | grep resolve_lib_name >/dev/null
17536 # We have reworked collect2
17539 # We have old collect2
17540 hardcode_direct_GCJ=unsupported
17541 # It fails to find uninstalled libraries when the uninstalled
17542 # path is not listed in the libpath. Setting hardcode_minus_L
17543 # to unsupported forces relinking
17544 hardcode_minus_L_GCJ=yes
17545 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17546 hardcode_libdir_separator_GCJ=
17550 shared_flag='-shared'
17551 if test "$aix_use_runtimelinking" = yes; then
17552 shared_flag="$shared_flag "'${wl}-G'
17556 if test "$host_cpu" = ia64; then
17557 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17558 # chokes on -Wl,-G. The following line is correct:
17561 if test "$aix_use_runtimelinking" = yes; then
17562 shared_flag='${wl}-G'
17564 shared_flag='${wl}-bM:SRE'
17569 # It seems that -bexpall does not export symbols beginning with
17570 # underscore (_), so it is better to generate a list of symbols to export.
17571 always_export_symbols_GCJ=yes
17572 if test "$aix_use_runtimelinking" = yes; then
17573 # Warning - without using the other runtime loading flags (-brtl),
17574 # -berok will link without error, but may produce a broken library.
17575 allow_undefined_flag_GCJ='-berok'
17576 # Determine the default libpath from the value encoded in an empty executable.
17577 cat >conftest.$ac_ext <<_ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (ac_try="$ac_link"
17594 case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_link") 2>conftest.er1
17601 grep -v '^ *+' conftest.er1 >conftest.err
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } && {
17606 test -z "$ac_c_werror_flag" ||
17607 test ! -s conftest.err
17608 } && test -s conftest$ac_exeext &&
17609 $as_test_x conftest$ac_exeext; then
17611 lt_aix_libpath_sed='
17612 /Import File Strings/,/^$/ {
17618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17619 # Check for a 64-bit object if we didn't find anything.
17620 if test -z "$aix_libpath"; then
17621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17631 conftest$ac_exeext conftest.$ac_ext
17632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17634 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17635 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"
17637 if test "$host_cpu" = ia64; then
17638 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17639 allow_undefined_flag_GCJ="-z nodefs"
17640 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"
17642 # Determine the default libpath from the value encoded in an empty executable.
17643 cat >conftest.$ac_ext <<_ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17677 lt_aix_libpath_sed='
17678 /Import File Strings/,/^$/ {
17684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17685 # Check for a 64-bit object if we didn't find anything.
17686 if test -z "$aix_libpath"; then
17687 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17697 conftest$ac_exeext conftest.$ac_ext
17698 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17700 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17701 # Warning - without using the other run time loading flags,
17702 # -berok will link without error, but may produce a broken library.
17703 no_undefined_flag_GCJ=' ${wl}-bernotok'
17704 allow_undefined_flag_GCJ=' ${wl}-berok'
17705 # Exported symbols can be pulled into shared objects from archives
17706 whole_archive_flag_spec_GCJ='$convenience'
17707 archive_cmds_need_lc_GCJ=yes
17708 # This is similar to how AIX traditionally builds its shared libraries.
17709 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'
17715 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)'
17716 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17717 hardcode_minus_L_GCJ=yes
17718 # see comment about different semantics on the GNU ld section
17723 export_dynamic_flag_spec_GCJ=-rdynamic
17726 cygwin* | mingw* | pw32*)
17727 # When not using gcc, we currently assume that we are using
17728 # Microsoft Visual C++.
17729 # hardcode_libdir_flag_spec is actually meaningless, as there is
17730 # no search path for DLLs.
17731 hardcode_libdir_flag_spec_GCJ=' '
17732 allow_undefined_flag_GCJ=unsupported
17733 # Tell ltmain to make .lib files, not .a files.
17735 # Tell ltmain to make .dll files, not .so files.
17737 # FIXME: Setting linknames here is a bad hack.
17738 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17739 # The linker will automatically build a .lib file if we build a DLL.
17740 old_archive_From_new_cmds_GCJ='true'
17741 # FIXME: Should let the user specify the lib program.
17742 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17743 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17744 enable_shared_with_static_runtimes_GCJ=yes
17747 darwin* | rhapsody*)
17749 rhapsody* | darwin1.[012])
17750 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17753 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17754 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17756 case ${MACOSX_DEPLOYMENT_TARGET} in
17758 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17761 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17767 archive_cmds_need_lc_GCJ=no
17768 hardcode_direct_GCJ=no
17769 hardcode_automatic_GCJ=yes
17770 hardcode_shlibpath_var_GCJ=unsupported
17771 whole_archive_flag_spec_GCJ=''
17772 link_all_deplibs_GCJ=yes
17773 if test "$GCC" = yes ; then
17774 output_verbose_link_cmd='echo'
17775 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17776 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17777 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17778 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17780 case $cc_basename in
17782 output_verbose_link_cmd='echo'
17783 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17784 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17785 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17786 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}'
17787 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}'
17797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17799 hardcode_shlibpath_var_GCJ=no
17806 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17807 # support. Future versions do this automatically, but an explicit c++rt0.o
17808 # does not break anything, and helps significantly (at the cost of a little
17811 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17812 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17813 hardcode_direct_GCJ=yes
17814 hardcode_shlibpath_var_GCJ=no
17817 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17819 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17820 hardcode_direct_GCJ=yes
17821 hardcode_minus_L_GCJ=yes
17822 hardcode_shlibpath_var_GCJ=no
17825 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17826 freebsd* | dragonfly*)
17827 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17828 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17829 hardcode_direct_GCJ=yes
17830 hardcode_shlibpath_var_GCJ=no
17834 if test "$GCC" = yes; then
17835 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'
17837 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'
17839 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17840 hardcode_libdir_separator_GCJ=:
17841 hardcode_direct_GCJ=yes
17843 # hardcode_minus_L: Not really in the search PATH,
17844 # but as the default location of the library.
17845 hardcode_minus_L_GCJ=yes
17846 export_dynamic_flag_spec_GCJ='${wl}-E'
17850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17851 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17853 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17855 if test "$with_gnu_ld" = no; then
17856 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17857 hardcode_libdir_separator_GCJ=:
17859 hardcode_direct_GCJ=yes
17860 export_dynamic_flag_spec_GCJ='${wl}-E'
17862 # hardcode_minus_L: Not really in the search PATH,
17863 # but as the default location of the library.
17864 hardcode_minus_L_GCJ=yes
17869 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17872 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17875 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17878 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17884 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17887 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17890 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17894 if test "$with_gnu_ld" = no; then
17895 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17896 hardcode_libdir_separator_GCJ=:
17900 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17901 hardcode_direct_GCJ=no
17902 hardcode_shlibpath_var_GCJ=no
17905 hardcode_direct_GCJ=yes
17906 export_dynamic_flag_spec_GCJ='${wl}-E'
17908 # hardcode_minus_L: Not really in the search PATH,
17909 # but as the default location of the library.
17910 hardcode_minus_L_GCJ=yes
17916 irix5* | irix6* | nonstopux*)
17917 if test "$GCC" = yes; then
17918 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'
17920 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'
17921 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17924 hardcode_libdir_separator_GCJ=:
17925 link_all_deplibs_GCJ=yes
17928 netbsd* | netbsdelf*-gnu)
17929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17930 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17932 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17934 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17935 hardcode_direct_GCJ=yes
17936 hardcode_shlibpath_var_GCJ=no
17940 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941 hardcode_direct_GCJ=yes
17942 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17943 hardcode_libdir_separator_GCJ=:
17944 hardcode_shlibpath_var_GCJ=no
17948 if test -f /usr/libexec/ld.so; then
17949 hardcode_direct_GCJ=yes
17950 hardcode_shlibpath_var_GCJ=no
17951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17952 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17953 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17954 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17955 export_dynamic_flag_spec_GCJ='${wl}-E'
17958 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17959 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17960 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17963 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17975 hardcode_minus_L_GCJ=yes
17976 allow_undefined_flag_GCJ=unsupported
17977 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'
17978 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17982 if test "$GCC" = yes; then
17983 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17984 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'
17986 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17987 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'
17989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17990 hardcode_libdir_separator_GCJ=:
17993 osf4* | osf5*) # as osf3* with the addition of -msym flag
17994 if test "$GCC" = yes; then
17995 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17996 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'
17997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17999 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18000 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'
18001 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~
18002 $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'
18004 # Both c and cxx compiler support -rpath directly
18005 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18007 hardcode_libdir_separator_GCJ=:
18011 no_undefined_flag_GCJ=' -z text'
18012 if test "$GCC" = yes; then
18014 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18015 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18016 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18019 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18021 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18024 hardcode_shlibpath_var_GCJ=no
18026 solaris2.[0-5] | solaris2.[0-5].*) ;;
18028 # The compiler driver will combine and reorder linker options,
18029 # but understands `-z linker_flag'. GCC discards it without `$wl',
18030 # but is careful enough not to reorder.
18031 # Supported since Solaris 2.6 (maybe 2.5.1?)
18032 if test "$GCC" = yes; then
18033 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18035 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18039 link_all_deplibs_GCJ=yes
18043 if test "x$host_vendor" = xsequent; then
18044 # Use $CC to link under sequent, because it throws in some extra .o
18045 # files that make .init and .fini sections work.
18046 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18048 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18051 hardcode_direct_GCJ=yes
18052 hardcode_minus_L_GCJ=yes
18053 hardcode_shlibpath_var_GCJ=no
18057 case $host_vendor in
18059 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18060 hardcode_direct_GCJ=yes # is this really true???
18063 ## LD is ld it makes a PLAMLIB
18064 ## CC just makes a GrossModule.
18065 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18066 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18067 hardcode_direct_GCJ=no
18070 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18074 runpath_var='LD_RUN_PATH'
18075 hardcode_shlibpath_var_GCJ=no
18079 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18080 hardcode_shlibpath_var_GCJ=no
18081 export_dynamic_flag_spec_GCJ='-Bexport'
18085 if test -d /usr/nec; then
18086 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18087 hardcode_shlibpath_var_GCJ=no
18088 runpath_var=LD_RUN_PATH
18089 hardcode_runpath_var=yes
18094 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18095 no_undefined_flag_GCJ='${wl}-z,text'
18096 archive_cmds_need_lc_GCJ=no
18097 hardcode_shlibpath_var_GCJ=no
18098 runpath_var='LD_RUN_PATH'
18100 if test "$GCC" = yes; then
18101 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18102 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18109 sysv5* | sco3.2v5* | sco5v6*)
18110 # Note: We can NOT use -z defs as we might desire, because we do not
18111 # link with -lc, and that would cause any symbols used from libc to
18112 # always be unresolved, which means just about no library would
18113 # ever link correctly. If we're not using GNU ld we use -z text
18114 # though, which does catch some bad symbols but isn't as heavy-handed
18116 no_undefined_flag_GCJ='${wl}-z,text'
18117 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18118 archive_cmds_need_lc_GCJ=no
18119 hardcode_shlibpath_var_GCJ=no
18120 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18121 hardcode_libdir_separator_GCJ=':'
18122 link_all_deplibs_GCJ=yes
18123 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18124 runpath_var='LD_RUN_PATH'
18126 if test "$GCC" = yes; then
18127 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18137 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18138 hardcode_shlibpath_var_GCJ=no
18147 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18148 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18149 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18152 # Do we need to explicitly link libc?
18154 case "x$archive_cmds_need_lc_GCJ" in
18156 # Assume -lc should be added
18157 archive_cmds_need_lc_GCJ=yes
18159 if test "$enable_shared" = yes && test "$GCC" = yes; then
18160 case $archive_cmds_GCJ in
18162 # FIXME: we may have to deal with multi-command sequences.
18165 # Test whether the compiler implicitly links with -lc since on some
18166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18167 # to ld, don't add -lc before -lgcc.
18168 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18169 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18174 (eval $ac_compile) 2>&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } 2>conftest.err; then
18180 libobjs=conftest.$ac_objext
18182 wl=$lt_prog_compiler_wl_GCJ
18183 pic_flag=$lt_prog_compiler_pic_GCJ
18189 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18190 allow_undefined_flag_GCJ=
18191 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18192 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }
18197 archive_cmds_need_lc_GCJ=no
18199 archive_cmds_need_lc_GCJ=yes
18201 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18203 cat conftest.err 1>&5
18206 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18207 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18214 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18216 library_names_spec=
18217 libname_spec='lib$name'
18221 postuninstall_cmds=
18225 shlibpath_overrides_runpath=unknown
18227 dynamic_linker="$host_os ld.so"
18228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18230 need_lib_prefix=unknown
18231 hardcode_into_libs=no
18233 # when you set need_version to no, make sure it does not cause -set_version
18234 # flags to be left without arguments
18235 need_version=unknown
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18241 shlibpath_var=LIBPATH
18243 # AIX 3 has no versioning support, so we append a major version to the name.
18244 soname_spec='${libname}${release}${shared_ext}$major'
18251 hardcode_into_libs=yes
18252 if test "$host_cpu" = ia64; then
18253 # AIX 5 supports IA64
18254 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18255 shlibpath_var=LD_LIBRARY_PATH
18257 # With GCC up to 2.95.x, collect2 would create an import file
18258 # for dependence libraries. The import file would start with
18259 # the line `#! .'. This would cause the generated library to
18260 # depend on `.', always an invalid library. This was fixed in
18261 # development snapshots of GCC prior to 3.0.
18263 aix4 | aix4.[01] | aix4.[01].*)
18264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18266 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18269 can_build_shared=no
18273 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18274 # soname into executable. Probably we can add versioning support to
18275 # collect2, so additional links can be useful in future.
18276 if test "$aix_use_runtimelinking" = yes; then
18277 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18278 # instead of lib<name>.a to let people know that these are not
18279 # typical AIX shared libraries.
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282 # We preserve .a as extension for shared libraries through AIX4.2
18283 # and later when we are not doing run time linking.
18284 library_names_spec='${libname}${release}.a $libname.a'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18287 shlibpath_var=LIBPATH
18292 library_names_spec='$libname.ixlibrary $libname.a'
18293 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18294 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'
18298 library_names_spec='${libname}${shared_ext}'
18299 dynamic_linker="$host_os ld.so"
18300 shlibpath_var=LIBRARY_PATH
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307 soname_spec='${libname}${release}${shared_ext}$major'
18308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18312 # the default ld.so.conf also contains /usr/contrib/lib and
18313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18314 # libtool to hard-code these into programs
18317 cygwin* | mingw* | pw32*)
18318 version_type=windows
18323 case $GCC,$host_os in
18324 yes,cygwin* | yes,mingw* | yes,pw32*)
18325 library_names_spec='$libname.dll.a'
18326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18327 postinstall_cmds='base_file=`basename \${file}`~
18328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18329 dldir=$destdir/`dirname \$dlpath`~
18330 test -d \$dldir || mkdir -p \$dldir~
18331 $install_prog $dir/$dlname \$dldir/$dlname~
18332 chmod a+x \$dldir/$dlname'
18333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18334 dlpath=$dir/\$dldll~
18336 shlibpath_overrides_runpath=yes
18340 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18341 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18342 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18345 # MinGW DLLs use traditional 'lib' prefix
18346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18348 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18349 # It is most probably a Windows format PATH printed by
18350 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18351 # path with ; separators, and with drive letters. We can handle the
18352 # drive letters (cygwin fileutils understands them), so leave them,
18353 # especially as we might pass files found there to a mingw objdump,
18354 # which wouldn't understand a cygwinified path. Ahh.
18355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18361 # pw32 DLLs use 'pw' prefix rather than 'lib'
18362 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18368 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18371 dynamic_linker='Win32 ld.exe'
18372 # FIXME: first we should search . and the directory the executable is in
18376 darwin* | rhapsody*)
18377 dynamic_linker="$host_os dyld"
18378 version_type=darwin
18381 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18382 soname_spec='${libname}${release}${major}$shared_ext'
18383 shlibpath_overrides_runpath=yes
18384 shlibpath_var=DYLD_LIBRARY_PATH
18385 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18387 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 shlibpath_var=LD_LIBRARY_PATH
18403 freebsd* | dragonfly*)
18404 # DragonFly does not have aout. When/if they implement a new
18405 # versioning mechanism, adjust this.
18406 if test -x /usr/bin/objformat; then
18407 objformat=`/usr/bin/objformat`
18410 freebsd[123]*) objformat=aout ;;
18411 *) objformat=elf ;;
18414 version_type=freebsd-$objformat
18415 case $version_type in
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18426 shlibpath_var=LD_LIBRARY_PATH
18429 shlibpath_overrides_runpath=yes
18431 freebsd3.[01]* | freebsdelf3.[01]*)
18432 shlibpath_overrides_runpath=yes
18433 hardcode_into_libs=yes
18435 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18436 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18437 shlibpath_overrides_runpath=no
18438 hardcode_into_libs=yes
18440 *) # from 4.6 on, and DragonFly
18441 shlibpath_overrides_runpath=yes
18442 hardcode_into_libs=yes
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18452 soname_spec='${libname}${release}${shared_ext}$major'
18453 shlibpath_var=LD_LIBRARY_PATH
18454 hardcode_into_libs=yes
18457 hpux9* | hpux10* | hpux11*)
18458 # Give a soname corresponding to the major version so that dld.sl refuses to
18459 # link against other versions.
18466 hardcode_into_libs=yes
18467 dynamic_linker="$host_os dld.so"
18468 shlibpath_var=LD_LIBRARY_PATH
18469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471 soname_spec='${libname}${release}${shared_ext}$major'
18472 if test "X$HPUX_IA64_MODE" = X32; then
18473 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18475 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18481 hardcode_into_libs=yes
18482 dynamic_linker="$host_os dld.sl"
18483 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18486 soname_spec='${libname}${release}${shared_ext}$major'
18487 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18492 dynamic_linker="$host_os dld.sl"
18493 shlibpath_var=SHLIB_PATH
18494 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496 soname_spec='${libname}${release}${shared_ext}$major'
18499 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18500 postinstall_cmds='chmod 555 $lib'
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18510 shlibpath_var=LD_LIBRARY_PATH
18511 shlibpath_overrides_runpath=no
18512 hardcode_into_libs=yes
18515 irix5* | irix6* | nonstopux*)
18517 nonstopux*) version_type=nonstopux ;;
18519 if test "$lt_cv_prog_gnu_ld" = yes; then
18527 soname_spec='${libname}${release}${shared_ext}$major'
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18530 irix5* | nonstopux*)
18531 libsuff= shlibsuff=
18534 case $LD in # libtool.m4 will add one of these switches to LD
18535 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18536 libsuff= shlibsuff= libmagic=32-bit;;
18537 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18538 libsuff=32 shlibsuff=N32 libmagic=N32;;
18539 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18540 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18541 *) libsuff= shlibsuff= libmagic=never-match;;
18545 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18546 shlibpath_overrides_runpath=no
18547 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18548 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18549 hardcode_into_libs=yes
18552 # No shared lib support for Linux oldld, aout, or coff.
18553 linux*oldld* | linux*aout* | linux*coff*)
18557 # This must be Linux ELF.
18558 linux* | k*bsd*-gnu)
18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18563 soname_spec='${libname}${release}${shared_ext}$major'
18564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18565 shlibpath_var=LD_LIBRARY_PATH
18566 shlibpath_overrides_runpath=no
18567 # This implies no fast_install, which is unacceptable.
18568 # Some rework will be needed to allow for fast_install
18569 # before this can be enabled.
18570 hardcode_into_libs=yes
18572 # Append ld.so.conf contents to the search path
18573 if test -f /etc/ld.so.conf; then
18574 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' ' '`
18575 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18578 # We used to test for /lib/ld.so.1 and disable shared libraries on
18579 # powerpc, because MkLinux only supported shared libraries with the
18580 # GNU dynamic linker. Since this was broken with cross compilers,
18581 # most powerpc-linux boxes support dynamic linking these days and
18582 # people can always --disable-shared, the test was removed, and we
18583 # assume the GNU/Linux dynamic linker is in use.
18584 dynamic_linker='GNU/Linux ld.so'
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=no
18595 hardcode_into_libs=yes
18596 dynamic_linker='NetBSD ld.elf_so'
18603 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18606 dynamic_linker='NetBSD (a.out) ld.so'
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18609 soname_spec='${libname}${release}${shared_ext}$major'
18610 dynamic_linker='NetBSD ld.elf_so'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=yes
18614 hardcode_into_libs=yes
18619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18620 shlibpath_var=LD_LIBRARY_PATH
18621 shlibpath_overrides_runpath=yes
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 shlibpath_overrides_runpath=yes
18636 sys_lib_dlsearch_path_spec="/usr/lib"
18638 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18640 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18641 *) need_version=no ;;
18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18645 shlibpath_var=LD_LIBRARY_PATH
18646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18648 openbsd2.[89] | openbsd2.[89].*)
18649 shlibpath_overrides_runpath=no
18652 shlibpath_overrides_runpath=yes
18656 shlibpath_overrides_runpath=yes
18661 libname_spec='$name'
18664 library_names_spec='$libname${shared_ext} $libname.a'
18665 dynamic_linker='OS/2 ld.exe'
18666 shlibpath_var=LIBPATH
18669 osf3* | osf4* | osf5*)
18673 soname_spec='${libname}${release}${shared_ext}$major'
18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675 shlibpath_var=LD_LIBRARY_PATH
18676 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18677 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18689 soname_spec='${libname}${release}${shared_ext}$major'
18690 shlibpath_var=LD_LIBRARY_PATH
18691 shlibpath_overrides_runpath=yes
18692 hardcode_into_libs=yes
18693 # ldd complains unless libraries are executable
18694 postinstall_cmds='chmod +x $lib'
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18701 shlibpath_var=LD_LIBRARY_PATH
18702 shlibpath_overrides_runpath=yes
18703 if test "$with_gnu_ld" = yes; then
18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712 soname_spec='${libname}${release}${shared_ext}$major'
18713 shlibpath_var=LD_LIBRARY_PATH
18714 case $host_vendor in
18716 shlibpath_overrides_runpath=no
18718 export_dynamic_flag_spec='${wl}-Blargedynsym'
18719 runpath_var=LD_RUN_PATH
18727 shlibpath_overrides_runpath=no
18728 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18734 if test -d /usr/nec ;then
18736 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18737 soname_spec='$libname${shared_ext}.$major'
18738 shlibpath_var=LD_LIBRARY_PATH
18742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18743 version_type=freebsd-elf
18746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18747 soname_spec='${libname}${release}${shared_ext}$major'
18748 shlibpath_var=LD_LIBRARY_PATH
18749 hardcode_into_libs=yes
18750 if test "$with_gnu_ld" = yes; then
18751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18752 shlibpath_overrides_runpath=no
18754 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18755 shlibpath_overrides_runpath=yes
18758 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18762 sys_lib_dlsearch_path_spec='/usr/lib'
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 shlibpath_var=LD_LIBRARY_PATH
18776 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18777 echo "${ECHO_T}$dynamic_linker" >&6; }
18778 test "$dynamic_linker" = no && can_build_shared=no
18780 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18786 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18787 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18790 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18793 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18795 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18796 if test "$GCC" = yes; then
18797 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18800 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18801 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18802 hardcode_action_GCJ=
18803 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18804 test -n "$runpath_var_GCJ" || \
18805 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18807 # We can hardcode non-existant directories.
18808 if test "$hardcode_direct_GCJ" != no &&
18809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18810 # have to relink, otherwise we might link with an installed library
18811 # when we should be linking with a yet-to-be-installed one
18812 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18813 test "$hardcode_minus_L_GCJ" != no; then
18814 # Linking always hardcodes the temporary library directory.
18815 hardcode_action_GCJ=relink
18817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18818 hardcode_action_GCJ=immediate
18821 # We cannot hardcode anything, or else we can only hardcode existing
18823 hardcode_action_GCJ=unsupported
18825 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18826 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18828 if test "$hardcode_action_GCJ" = relink; then
18829 # Fast installation is not supported
18830 enable_fast_install=no
18831 elif test "$shlibpath_overrides_runpath" = yes ||
18832 test "$enable_shared" = no; then
18833 # Fast installation is not necessary
18834 enable_fast_install=needless
18838 # The else clause should only fire when bootstrapping the
18839 # libtool distribution, otherwise you forgot to ship ltmain.sh
18840 # with your package, and you will get complaints that there are
18841 # no rules to generate ltmain.sh.
18842 if test -f "$ltmain"; then
18843 # See if we are running on zsh, and set the options which allow our commands through
18844 # without removal of \ escapes.
18845 if test -n "${ZSH_VERSION+set}" ; then
18846 setopt NO_GLOB_SUBST
18848 # Now quote all the things that may contain metacharacters while being
18849 # careful not to overquote the AC_SUBSTed values. We take copies of the
18850 # variables and quote the copies for generation of the libtool script.
18851 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18853 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18854 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18855 deplibs_check_method reload_flag reload_cmds need_locks \
18856 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18857 lt_cv_sys_global_symbol_to_c_name_address \
18858 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18859 old_postinstall_cmds old_postuninstall_cmds \
18863 lt_prog_compiler_wl_GCJ \
18864 lt_prog_compiler_pic_GCJ \
18865 lt_prog_compiler_static_GCJ \
18866 lt_prog_compiler_no_builtin_flag_GCJ \
18867 export_dynamic_flag_spec_GCJ \
18868 thread_safe_flag_spec_GCJ \
18869 whole_archive_flag_spec_GCJ \
18870 enable_shared_with_static_runtimes_GCJ \
18871 old_archive_cmds_GCJ \
18872 old_archive_from_new_cmds_GCJ \
18873 predep_objects_GCJ \
18874 postdep_objects_GCJ \
18877 compiler_lib_search_path_GCJ \
18878 compiler_lib_search_dirs_GCJ \
18880 archive_expsym_cmds_GCJ \
18881 postinstall_cmds_GCJ \
18882 postuninstall_cmds_GCJ \
18883 old_archive_from_expsyms_cmds_GCJ \
18884 allow_undefined_flag_GCJ \
18885 no_undefined_flag_GCJ \
18886 export_symbols_cmds_GCJ \
18887 hardcode_libdir_flag_spec_GCJ \
18888 hardcode_libdir_flag_spec_ld_GCJ \
18889 hardcode_libdir_separator_GCJ \
18890 hardcode_automatic_GCJ \
18892 module_expsym_cmds_GCJ \
18893 lt_cv_prog_compiler_c_o_GCJ \
18894 fix_srcfile_path_GCJ \
18895 exclude_expsyms_GCJ \
18896 include_expsyms_GCJ; do
18899 old_archive_cmds_GCJ | \
18900 old_archive_from_new_cmds_GCJ | \
18901 archive_cmds_GCJ | \
18902 archive_expsym_cmds_GCJ | \
18903 module_cmds_GCJ | \
18904 module_expsym_cmds_GCJ | \
18905 old_archive_from_expsyms_cmds_GCJ | \
18906 export_symbols_cmds_GCJ | \
18907 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18908 postinstall_cmds | postuninstall_cmds | \
18909 old_postinstall_cmds | old_postuninstall_cmds | \
18910 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18911 # Double-quote double-evaled strings.
18912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18921 *'\$0 --fallback-echo"')
18922 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18928 cat <<__EOF__ >> "$cfgfile"
18929 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18931 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18933 # Shell to use when invoking shell scripts.
18936 # Whether or not to build shared libraries.
18937 build_libtool_libs=$enable_shared
18939 # Whether or not to build static libraries.
18940 build_old_libs=$enable_static
18942 # Whether or not to add -lc for building shared libraries.
18943 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18945 # Whether or not to disallow shared libs when runtime libs are static
18946 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18948 # Whether or not to optimize for fast installation.
18949 fast_install=$enable_fast_install
18952 host_alias=$host_alias
18956 # The build system.
18957 build_alias=$build_alias
18961 # An echo program that does not interpret backslashes.
18966 AR_FLAGS=$lt_AR_FLAGS
18971 # LTCC compiler flags.
18972 LTCFLAGS=$lt_LTCFLAGS
18974 # A language-specific compiler.
18975 CC=$lt_compiler_GCJ
18977 # Is the compiler the GNU C compiler?
18983 # The linker used to build libraries.
18986 # Whether we need hard or soft links.
18989 # A BSD-compatible nm program.
18992 # A symbol stripping program
18995 # Used to examine libraries when file_magic_cmd begins "file"
18996 MAGIC_CMD=$MAGIC_CMD
18998 # Used on cygwin: DLL creation program.
19001 # Used on cygwin: object dumper.
19004 # Used on cygwin: assembler.
19007 # The name of the directory that contains temporary libtool files.
19010 # How to create reloadable object files.
19011 reload_flag=$lt_reload_flag
19012 reload_cmds=$lt_reload_cmds
19014 # How to pass a linker flag through the compiler.
19015 wl=$lt_lt_prog_compiler_wl_GCJ
19017 # Object file suffix (normally "o").
19018 objext="$ac_objext"
19020 # Old archive suffix (normally "a").
19023 # Shared library suffix (normally ".so").
19024 shrext_cmds='$shrext_cmds'
19026 # Executable file suffix (normally "").
19029 # Additional compiler flags for building library objects.
19030 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19033 # What is the maximum length of a command?
19034 max_cmd_len=$lt_cv_sys_max_cmd_len
19036 # Does compiler simultaneously support -c and -o options?
19037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19039 # Must we lock files when doing compilation?
19040 need_locks=$lt_need_locks
19042 # Do we need the lib prefix for modules?
19043 need_lib_prefix=$need_lib_prefix
19045 # Do we need a version for libraries?
19046 need_version=$need_version
19048 # Whether dlopen is supported.
19049 dlopen_support=$enable_dlopen
19051 # Whether dlopen of programs is supported.
19052 dlopen_self=$enable_dlopen_self
19054 # Whether dlopen of statically linked programs is supported.
19055 dlopen_self_static=$enable_dlopen_self_static
19057 # Compiler flag to prevent dynamic linking.
19058 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19060 # Compiler flag to turn off builtin functions.
19061 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19063 # Compiler flag to allow reflexive dlopens.
19064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19066 # Compiler flag to generate shared objects directly from archives.
19067 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19069 # Compiler flag to generate thread-safe objects.
19070 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19072 # Library versioning type.
19073 version_type=$version_type
19075 # Format of library name prefix.
19076 libname_spec=$lt_libname_spec
19078 # List of archive names. First name is the real one, the rest are links.
19079 # The last name is the one that the linker finds with -lNAME.
19080 library_names_spec=$lt_library_names_spec
19082 # The coded name of the library, if different from the real name.
19083 soname_spec=$lt_soname_spec
19085 # Commands used to build and install an old-style archive.
19087 old_archive_cmds=$lt_old_archive_cmds_GCJ
19088 old_postinstall_cmds=$lt_old_postinstall_cmds
19089 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19091 # Create an old-style archive from a shared archive.
19092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19094 # Create a temporary old-style archive to link instead of a shared archive.
19095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19097 # Commands used to build and install a shared archive.
19098 archive_cmds=$lt_archive_cmds_GCJ
19099 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19100 postinstall_cmds=$lt_postinstall_cmds
19101 postuninstall_cmds=$lt_postuninstall_cmds
19103 # Commands used to build a loadable module (assumed same as above if empty)
19104 module_cmds=$lt_module_cmds_GCJ
19105 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19107 # Commands to strip libraries.
19108 old_striplib=$lt_old_striplib
19109 striplib=$lt_striplib
19111 # Dependencies to place before the objects being linked to create a
19113 predep_objects=$lt_predep_objects_GCJ
19115 # Dependencies to place after the objects being linked to create a
19117 postdep_objects=$lt_postdep_objects_GCJ
19119 # Dependencies to place before the objects being linked to create a
19121 predeps=$lt_predeps_GCJ
19123 # Dependencies to place after the objects being linked to create a
19125 postdeps=$lt_postdeps_GCJ
19127 # The directories searched by this compiler when creating a shared
19129 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19131 # The library search path used internally by the compiler when linking
19132 # a shared library.
19133 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19135 # Method to check whether dependent libraries are shared objects.
19136 deplibs_check_method=$lt_deplibs_check_method
19138 # Command to use when deplibs_check_method == file_magic.
19139 file_magic_cmd=$lt_file_magic_cmd
19141 # Flag that allows shared libraries with undefined symbols to be built.
19142 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19144 # Flag that forces no undefined symbols.
19145 no_undefined_flag=$lt_no_undefined_flag_GCJ
19147 # Commands used to finish a libtool library installation in a directory.
19148 finish_cmds=$lt_finish_cmds
19150 # Same as above, but a single script fragment to be evaled but not shown.
19151 finish_eval=$lt_finish_eval
19153 # Take the output of nm and produce a listing of raw symbols and C names.
19154 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19156 # Transform the output of nm in a proper C declaration
19157 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19159 # Transform the output of nm in a C name address pair
19160 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19162 # This is the shared library runtime path variable.
19163 runpath_var=$runpath_var
19165 # This is the shared library path variable.
19166 shlibpath_var=$shlibpath_var
19168 # Is shlibpath searched before the hard-coded library search path?
19169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19171 # How to hardcode a shared library path into an executable.
19172 hardcode_action=$hardcode_action_GCJ
19174 # Whether we should hardcode library paths into libraries.
19175 hardcode_into_libs=$hardcode_into_libs
19177 # Flag to hardcode \$libdir into a binary during linking.
19178 # This must work even if \$libdir does not exist.
19179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19181 # If ld is used when linking, flag to hardcode \$libdir into
19182 # a binary during linking. This must work even if \$libdir does
19184 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19186 # Whether we need a single -rpath flag with a separated argument.
19187 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19189 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19190 # resulting binary.
19191 hardcode_direct=$hardcode_direct_GCJ
19193 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19194 # resulting binary.
19195 hardcode_minus_L=$hardcode_minus_L_GCJ
19197 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19198 # the resulting binary.
19199 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19201 # Set to yes if building a shared library automatically hardcodes DIR into the library
19202 # and all subsequent libraries and executables linked against it.
19203 hardcode_automatic=$hardcode_automatic_GCJ
19205 # Variables whose values should be saved in libtool wrapper scripts and
19206 # restored at relink time.
19207 variables_saved_for_relink="$variables_saved_for_relink"
19209 # Whether libtool must link a program against all its dependency libraries.
19210 link_all_deplibs=$link_all_deplibs_GCJ
19212 # Compile-time system search path for libraries
19213 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19215 # Run-time system search path for libraries
19216 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19218 # Fix the shell variable \$srcfile for the compiler.
19219 fix_srcfile_path=$lt_fix_srcfile_path
19221 # Set to yes if exported symbols are required.
19222 always_export_symbols=$always_export_symbols_GCJ
19224 # The commands to list exported symbols.
19225 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19227 # The commands to extract the exported symbol list from a shared archive.
19228 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19230 # Symbols that should not be listed in the preloaded symbols.
19231 exclude_expsyms=$lt_exclude_expsyms_GCJ
19233 # Symbols that must always be exported.
19234 include_expsyms=$lt_include_expsyms_GCJ
19236 # ### END LIBTOOL TAG CONFIG: $tagname
19242 # If there is no Makefile yet, we rely on a make rule to execute
19243 # `config.status --recheck' to rerun these tests and create the
19244 # libtool script then.
19245 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19246 if test -f "$ltmain_in"; then
19247 test -f Makefile && make "$ltmain"
19253 ac_cpp='$CPP $CPPFLAGS'
19254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268 # Source file extension for RC test sources.
19271 # Object file extension for compiled RC test sources.
19275 # Code to be used in simple compile tests
19276 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19278 # Code to be used in simple link tests
19279 lt_simple_link_test_code="$lt_simple_compile_test_code"
19281 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19283 # If no C compiler was specified, use CC.
19286 # If no C compiler flags were specified, use CFLAGS.
19287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19289 # Allow CC to be a program name with arguments.
19293 # save warnings/boilerplate of simple test code
19294 ac_outfile=conftest.$ac_objext
19295 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19297 _lt_compiler_boilerplate=`cat conftest.err`
19300 ac_outfile=conftest.$ac_objext
19301 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19303 _lt_linker_boilerplate=`cat conftest.err`
19307 # Allow CC to be a program name with arguments.
19312 for cc_temp in $compiler""; do
19314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19320 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19322 lt_cv_prog_compiler_c_o_RC=yes
19324 # The else clause should only fire when bootstrapping the
19325 # libtool distribution, otherwise you forgot to ship ltmain.sh
19326 # with your package, and you will get complaints that there are
19327 # no rules to generate ltmain.sh.
19328 if test -f "$ltmain"; then
19329 # See if we are running on zsh, and set the options which allow our commands through
19330 # without removal of \ escapes.
19331 if test -n "${ZSH_VERSION+set}" ; then
19332 setopt NO_GLOB_SUBST
19334 # Now quote all the things that may contain metacharacters while being
19335 # careful not to overquote the AC_SUBSTed values. We take copies of the
19336 # variables and quote the copies for generation of the libtool script.
19337 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19339 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19340 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19341 deplibs_check_method reload_flag reload_cmds need_locks \
19342 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19343 lt_cv_sys_global_symbol_to_c_name_address \
19344 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19345 old_postinstall_cmds old_postuninstall_cmds \
19349 lt_prog_compiler_wl_RC \
19350 lt_prog_compiler_pic_RC \
19351 lt_prog_compiler_static_RC \
19352 lt_prog_compiler_no_builtin_flag_RC \
19353 export_dynamic_flag_spec_RC \
19354 thread_safe_flag_spec_RC \
19355 whole_archive_flag_spec_RC \
19356 enable_shared_with_static_runtimes_RC \
19357 old_archive_cmds_RC \
19358 old_archive_from_new_cmds_RC \
19359 predep_objects_RC \
19360 postdep_objects_RC \
19363 compiler_lib_search_path_RC \
19364 compiler_lib_search_dirs_RC \
19366 archive_expsym_cmds_RC \
19367 postinstall_cmds_RC \
19368 postuninstall_cmds_RC \
19369 old_archive_from_expsyms_cmds_RC \
19370 allow_undefined_flag_RC \
19371 no_undefined_flag_RC \
19372 export_symbols_cmds_RC \
19373 hardcode_libdir_flag_spec_RC \
19374 hardcode_libdir_flag_spec_ld_RC \
19375 hardcode_libdir_separator_RC \
19376 hardcode_automatic_RC \
19378 module_expsym_cmds_RC \
19379 lt_cv_prog_compiler_c_o_RC \
19380 fix_srcfile_path_RC \
19381 exclude_expsyms_RC \
19382 include_expsyms_RC; do
19385 old_archive_cmds_RC | \
19386 old_archive_from_new_cmds_RC | \
19387 archive_cmds_RC | \
19388 archive_expsym_cmds_RC | \
19390 module_expsym_cmds_RC | \
19391 old_archive_from_expsyms_cmds_RC | \
19392 export_symbols_cmds_RC | \
19393 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19394 postinstall_cmds | postuninstall_cmds | \
19395 old_postinstall_cmds | old_postuninstall_cmds | \
19396 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19397 # Double-quote double-evaled strings.
19398 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19407 *'\$0 --fallback-echo"')
19408 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19414 cat <<__EOF__ >> "$cfgfile"
19415 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19419 # Shell to use when invoking shell scripts.
19422 # Whether or not to build shared libraries.
19423 build_libtool_libs=$enable_shared
19425 # Whether or not to build static libraries.
19426 build_old_libs=$enable_static
19428 # Whether or not to add -lc for building shared libraries.
19429 build_libtool_need_lc=$archive_cmds_need_lc_RC
19431 # Whether or not to disallow shared libs when runtime libs are static
19432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19434 # Whether or not to optimize for fast installation.
19435 fast_install=$enable_fast_install
19438 host_alias=$host_alias
19442 # The build system.
19443 build_alias=$build_alias
19447 # An echo program that does not interpret backslashes.
19452 AR_FLAGS=$lt_AR_FLAGS
19457 # LTCC compiler flags.
19458 LTCFLAGS=$lt_LTCFLAGS
19460 # A language-specific compiler.
19463 # Is the compiler the GNU C compiler?
19469 # The linker used to build libraries.
19472 # Whether we need hard or soft links.
19475 # A BSD-compatible nm program.
19478 # A symbol stripping program
19481 # Used to examine libraries when file_magic_cmd begins "file"
19482 MAGIC_CMD=$MAGIC_CMD
19484 # Used on cygwin: DLL creation program.
19487 # Used on cygwin: object dumper.
19490 # Used on cygwin: assembler.
19493 # The name of the directory that contains temporary libtool files.
19496 # How to create reloadable object files.
19497 reload_flag=$lt_reload_flag
19498 reload_cmds=$lt_reload_cmds
19500 # How to pass a linker flag through the compiler.
19501 wl=$lt_lt_prog_compiler_wl_RC
19503 # Object file suffix (normally "o").
19504 objext="$ac_objext"
19506 # Old archive suffix (normally "a").
19509 # Shared library suffix (normally ".so").
19510 shrext_cmds='$shrext_cmds'
19512 # Executable file suffix (normally "").
19515 # Additional compiler flags for building library objects.
19516 pic_flag=$lt_lt_prog_compiler_pic_RC
19519 # What is the maximum length of a command?
19520 max_cmd_len=$lt_cv_sys_max_cmd_len
19522 # Does compiler simultaneously support -c and -o options?
19523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19525 # Must we lock files when doing compilation?
19526 need_locks=$lt_need_locks
19528 # Do we need the lib prefix for modules?
19529 need_lib_prefix=$need_lib_prefix
19531 # Do we need a version for libraries?
19532 need_version=$need_version
19534 # Whether dlopen is supported.
19535 dlopen_support=$enable_dlopen
19537 # Whether dlopen of programs is supported.
19538 dlopen_self=$enable_dlopen_self
19540 # Whether dlopen of statically linked programs is supported.
19541 dlopen_self_static=$enable_dlopen_self_static
19543 # Compiler flag to prevent dynamic linking.
19544 link_static_flag=$lt_lt_prog_compiler_static_RC
19546 # Compiler flag to turn off builtin functions.
19547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19549 # Compiler flag to allow reflexive dlopens.
19550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19552 # Compiler flag to generate shared objects directly from archives.
19553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19555 # Compiler flag to generate thread-safe objects.
19556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19558 # Library versioning type.
19559 version_type=$version_type
19561 # Format of library name prefix.
19562 libname_spec=$lt_libname_spec
19564 # List of archive names. First name is the real one, the rest are links.
19565 # The last name is the one that the linker finds with -lNAME.
19566 library_names_spec=$lt_library_names_spec
19568 # The coded name of the library, if different from the real name.
19569 soname_spec=$lt_soname_spec
19571 # Commands used to build and install an old-style archive.
19573 old_archive_cmds=$lt_old_archive_cmds_RC
19574 old_postinstall_cmds=$lt_old_postinstall_cmds
19575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19577 # Create an old-style archive from a shared archive.
19578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19580 # Create a temporary old-style archive to link instead of a shared archive.
19581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19583 # Commands used to build and install a shared archive.
19584 archive_cmds=$lt_archive_cmds_RC
19585 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19586 postinstall_cmds=$lt_postinstall_cmds
19587 postuninstall_cmds=$lt_postuninstall_cmds
19589 # Commands used to build a loadable module (assumed same as above if empty)
19590 module_cmds=$lt_module_cmds_RC
19591 module_expsym_cmds=$lt_module_expsym_cmds_RC
19593 # Commands to strip libraries.
19594 old_striplib=$lt_old_striplib
19595 striplib=$lt_striplib
19597 # Dependencies to place before the objects being linked to create a
19599 predep_objects=$lt_predep_objects_RC
19601 # Dependencies to place after the objects being linked to create a
19603 postdep_objects=$lt_postdep_objects_RC
19605 # Dependencies to place before the objects being linked to create a
19607 predeps=$lt_predeps_RC
19609 # Dependencies to place after the objects being linked to create a
19611 postdeps=$lt_postdeps_RC
19613 # The directories searched by this compiler when creating a shared
19615 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19617 # The library search path used internally by the compiler when linking
19618 # a shared library.
19619 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19621 # Method to check whether dependent libraries are shared objects.
19622 deplibs_check_method=$lt_deplibs_check_method
19624 # Command to use when deplibs_check_method == file_magic.
19625 file_magic_cmd=$lt_file_magic_cmd
19627 # Flag that allows shared libraries with undefined symbols to be built.
19628 allow_undefined_flag=$lt_allow_undefined_flag_RC
19630 # Flag that forces no undefined symbols.
19631 no_undefined_flag=$lt_no_undefined_flag_RC
19633 # Commands used to finish a libtool library installation in a directory.
19634 finish_cmds=$lt_finish_cmds
19636 # Same as above, but a single script fragment to be evaled but not shown.
19637 finish_eval=$lt_finish_eval
19639 # Take the output of nm and produce a listing of raw symbols and C names.
19640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19642 # Transform the output of nm in a proper C declaration
19643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19645 # Transform the output of nm in a C name address pair
19646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19648 # This is the shared library runtime path variable.
19649 runpath_var=$runpath_var
19651 # This is the shared library path variable.
19652 shlibpath_var=$shlibpath_var
19654 # Is shlibpath searched before the hard-coded library search path?
19655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19657 # How to hardcode a shared library path into an executable.
19658 hardcode_action=$hardcode_action_RC
19660 # Whether we should hardcode library paths into libraries.
19661 hardcode_into_libs=$hardcode_into_libs
19663 # Flag to hardcode \$libdir into a binary during linking.
19664 # This must work even if \$libdir does not exist.
19665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19667 # If ld is used when linking, flag to hardcode \$libdir into
19668 # a binary during linking. This must work even if \$libdir does
19670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19672 # Whether we need a single -rpath flag with a separated argument.
19673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19676 # resulting binary.
19677 hardcode_direct=$hardcode_direct_RC
19679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19680 # resulting binary.
19681 hardcode_minus_L=$hardcode_minus_L_RC
19683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19684 # the resulting binary.
19685 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19687 # Set to yes if building a shared library automatically hardcodes DIR into the library
19688 # and all subsequent libraries and executables linked against it.
19689 hardcode_automatic=$hardcode_automatic_RC
19691 # Variables whose values should be saved in libtool wrapper scripts and
19692 # restored at relink time.
19693 variables_saved_for_relink="$variables_saved_for_relink"
19695 # Whether libtool must link a program against all its dependency libraries.
19696 link_all_deplibs=$link_all_deplibs_RC
19698 # Compile-time system search path for libraries
19699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19701 # Run-time system search path for libraries
19702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19704 # Fix the shell variable \$srcfile for the compiler.
19705 fix_srcfile_path=$lt_fix_srcfile_path
19707 # Set to yes if exported symbols are required.
19708 always_export_symbols=$always_export_symbols_RC
19710 # The commands to list exported symbols.
19711 export_symbols_cmds=$lt_export_symbols_cmds_RC
19713 # The commands to extract the exported symbol list from a shared archive.
19714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19716 # Symbols that should not be listed in the preloaded symbols.
19717 exclude_expsyms=$lt_exclude_expsyms_RC
19719 # Symbols that must always be exported.
19720 include_expsyms=$lt_include_expsyms_RC
19722 # ### END LIBTOOL TAG CONFIG: $tagname
19728 # If there is no Makefile yet, we rely on a make rule to execute
19729 # `config.status --recheck' to rerun these tests and create the
19730 # libtool script then.
19731 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19732 if test -f "$ltmain_in"; then
19733 test -f Makefile && make "$ltmain"
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19749 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19750 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19751 { (exit 1); exit 1; }; }
19755 # Append the new tag name to the list of available tags.
19756 if test -n "$tagname" ; then
19757 available_tags="$available_tags $tagname"
19763 # Now substitute the updated list of available tags.
19764 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19765 mv "${ofile}T" "$ofile"
19769 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19770 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19771 { (exit 1); exit 1; }; }
19777 # This can be used to rebuild libtool when needed
19778 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19780 # Always use our own libtool.
19781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19783 # Prevent multiple expansion
19806 # Check whether some low-level functions/files are available
19807 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19809 if test "${ac_cv_header_stdc+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #include <stdlib.h>
19819 #include <stdarg.h>
19820 #include <string.h>
19831 rm -f conftest.$ac_objext
19832 if { (ac_try="$ac_compile"
19833 case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_compile") 2>conftest.er1
19840 grep -v '^ *+' conftest.er1 >conftest.err
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } && {
19845 test -z "$ac_c_werror_flag" ||
19846 test ! -s conftest.err
19847 } && test -s conftest.$ac_objext; then
19848 ac_cv_header_stdc=yes
19850 echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19853 ac_cv_header_stdc=no
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 if test $ac_cv_header_stdc = yes; then
19859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19860 cat >conftest.$ac_ext <<_ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 #include <string.h>
19869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19870 $EGREP "memchr" >/dev/null 2>&1; then
19873 ac_cv_header_stdc=no
19879 if test $ac_cv_header_stdc = yes; then
19880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 #include <stdlib.h>
19890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19891 $EGREP "free" >/dev/null 2>&1; then
19894 ac_cv_header_stdc=no
19900 if test $ac_cv_header_stdc = yes; then
19901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19902 if test "$cross_compiling" = yes; then
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19912 #include <stdlib.h>
19913 #if ((' ' & 0x0FF) == 0x020)
19914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19917 # define ISLOWER(c) \
19918 (('a' <= (c) && (c) <= 'i') \
19919 || ('j' <= (c) && (c) <= 'r') \
19920 || ('s' <= (c) && (c) <= 'z'))
19921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19929 for (i = 0; i < 256; i++)
19930 if (XOR (islower (i), ISLOWER (i))
19931 || toupper (i) != TOUPPER (i))
19936 rm -f conftest$ac_exeext
19937 if { (ac_try="$ac_link"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_link") 2>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19958 echo "$as_me: program exited with status $ac_status" >&5
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19962 ( exit $ac_status )
19963 ac_cv_header_stdc=no
19965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19971 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19972 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19973 if test $ac_cv_header_stdc = yes; then
19975 cat >>confdefs.h <<\_ACEOF
19976 #define STDC_HEADERS 1
19982 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19983 if test "${ac_cv_header_stdint_h+set}" = set; then
19984 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19985 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19986 if test "${ac_cv_header_stdint_h+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19990 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19992 # Is the header compilable?
19993 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
19994 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
19995 cat >conftest.$ac_ext <<_ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 $ac_includes_default
20002 #include <stdint.h>
20004 rm -f conftest.$ac_objext
20005 if { (ac_try="$ac_compile"
20006 case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_compile") 2>conftest.er1
20013 grep -v '^ *+' conftest.er1 >conftest.err
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } && {
20018 test -z "$ac_c_werror_flag" ||
20019 test ! -s conftest.err
20020 } && test -s conftest.$ac_objext; then
20021 ac_header_compiler=yes
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20026 ac_header_compiler=no
20029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20031 echo "${ECHO_T}$ac_header_compiler" >&6; }
20033 # Is the header present?
20034 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20035 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20036 cat >conftest.$ac_ext <<_ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20042 #include <stdint.h>
20044 if { (ac_try="$ac_cpp conftest.$ac_ext"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20052 grep -v '^ *+' conftest.er1 >conftest.err
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } >/dev/null && {
20057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20060 ac_header_preproc=yes
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20065 ac_header_preproc=no
20068 rm -f conftest.err conftest.$ac_ext
20069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20070 echo "${ECHO_T}$ac_header_preproc" >&6; }
20072 # So? What about this header?
20073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20075 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20076 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20078 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20079 ac_header_preproc=yes
20082 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20083 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20085 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20087 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20089 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20091 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20092 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20093 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20095 ## ------------------------------------ ##
20096 ## Report this to opensource@google.com ##
20097 ## ------------------------------------ ##
20099 ) | sed "s/^/$as_me: WARNING: /" >&2
20102 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20103 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20104 if test "${ac_cv_header_stdint_h+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 ac_cv_header_stdint_h=$ac_header_preproc
20109 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20110 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20113 if test $ac_cv_header_stdint_h = yes; then
20114 ac_cv_have_stdint_h=1
20116 ac_cv_have_stdint_h=0
20120 if test "${ac_cv_header_sys_types_h+set}" = set; then
20121 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20122 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20123 if test "${ac_cv_header_sys_types_h+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20127 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20129 # Is the header compilable?
20130 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20131 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20132 cat >conftest.$ac_ext <<_ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 $ac_includes_default
20139 #include <sys/types.h>
20141 rm -f conftest.$ac_objext
20142 if { (ac_try="$ac_compile"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_compile") 2>conftest.er1
20150 grep -v '^ *+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest.$ac_objext; then
20158 ac_header_compiler=yes
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ac_header_compiler=no
20166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20168 echo "${ECHO_T}$ac_header_compiler" >&6; }
20170 # Is the header present?
20171 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20172 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20173 cat >conftest.$ac_ext <<_ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 #include <sys/types.h>
20181 if { (ac_try="$ac_cpp conftest.$ac_ext"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20189 grep -v '^ *+' conftest.er1 >conftest.err
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } >/dev/null && {
20194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20197 ac_header_preproc=yes
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20202 ac_header_preproc=no
20205 rm -f conftest.err conftest.$ac_ext
20206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20207 echo "${ECHO_T}$ac_header_preproc" >&6; }
20209 # So? What about this header?
20210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20212 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20213 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20215 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20216 ac_header_preproc=yes
20219 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20220 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20222 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20224 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20226 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20228 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20230 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20232 ## ------------------------------------ ##
20233 ## Report this to opensource@google.com ##
20234 ## ------------------------------------ ##
20236 ) | sed "s/^/$as_me: WARNING: /" >&2
20239 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20240 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20241 if test "${ac_cv_header_sys_types_h+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 ac_cv_header_sys_types_h=$ac_header_preproc
20246 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20247 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20250 if test $ac_cv_header_sys_types_h = yes; then
20251 ac_cv_have_systypes_h=1
20253 ac_cv_have_systypes_h=0
20257 if test "${ac_cv_header_inttypes_h+set}" = set; then
20258 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20259 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20260 if test "${ac_cv_header_inttypes_h+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20264 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20266 # Is the header compilable?
20267 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20268 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 $ac_includes_default
20276 #include <inttypes.h>
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_compile") 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && {
20292 test -z "$ac_c_werror_flag" ||
20293 test ! -s conftest.err
20294 } && test -s conftest.$ac_objext; then
20295 ac_header_compiler=yes
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_header_compiler=no
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20305 echo "${ECHO_T}$ac_header_compiler" >&6; }
20307 # Is the header present?
20308 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20309 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 #include <inttypes.h>
20318 if { (ac_try="$ac_cpp conftest.$ac_ext"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } >/dev/null && {
20331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20334 ac_header_preproc=yes
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_header_preproc=no
20342 rm -f conftest.err conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20344 echo "${ECHO_T}$ac_header_preproc" >&6; }
20346 # So? What about this header?
20347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20349 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20350 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20352 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20353 ac_header_preproc=yes
20356 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20357 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20359 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20361 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20363 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20365 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20367 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20369 ## ------------------------------------ ##
20370 ## Report this to opensource@google.com ##
20371 ## ------------------------------------ ##
20373 ) | sed "s/^/$as_me: WARNING: /" >&2
20376 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20377 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20378 if test "${ac_cv_header_inttypes_h+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 ac_cv_header_inttypes_h=$ac_header_preproc
20383 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20384 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20387 if test $ac_cv_header_inttypes_h = yes; then
20388 ac_cv_have_inttypes_h=1
20390 ac_cv_have_inttypes_h=0
20395 for ac_header in unistd.h
20397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 ac_res=`eval echo '${'$as_ac_Header'}'`
20405 { echo "$as_me:$LINENO: result: $ac_res" >&5
20406 echo "${ECHO_T}$ac_res" >&6; }
20408 # Is the header compilable?
20409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 $ac_includes_default
20418 #include <$ac_header>
20420 rm -f conftest.$ac_objext
20421 if { (ac_try="$ac_compile"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_compile") 2>conftest.er1
20429 grep -v '^ *+' conftest.er1 >conftest.err
20431 cat conftest.err >&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } && {
20434 test -z "$ac_c_werror_flag" ||
20435 test ! -s conftest.err
20436 } && test -s conftest.$ac_objext; then
20437 ac_header_compiler=yes
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_header_compiler=no
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20447 echo "${ECHO_T}$ac_header_compiler" >&6; }
20449 # Is the header present?
20450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20452 cat >conftest.$ac_ext <<_ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 #include <$ac_header>
20460 if { (ac_try="$ac_cpp conftest.$ac_ext"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } >/dev/null && {
20473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20476 ac_header_preproc=yes
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_header_preproc=no
20484 rm -f conftest.err conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20486 echo "${ECHO_T}$ac_header_preproc" >&6; }
20488 # So? What about this header?
20489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20495 ac_header_preproc=yes
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20511 ## ------------------------------------ ##
20512 ## Report this to opensource@google.com ##
20513 ## ------------------------------------ ##
20515 ) | sed "s/^/$as_me: WARNING: /" >&2
20518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 eval "$as_ac_Header=\$ac_header_preproc"
20525 ac_res=`eval echo '${'$as_ac_Header'}'`
20526 { echo "$as_me:$LINENO: result: $ac_res" >&5
20527 echo "${ECHO_T}$ac_res" >&6; }
20530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20531 cat >>confdefs.h <<_ACEOF
20532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20534 ac_cv_have_unistd_h=1
20536 ac_cv_have_unistd_h=0
20542 for ac_header in syscall.h
20544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 ac_res=`eval echo '${'$as_ac_Header'}'`
20552 { echo "$as_me:$LINENO: result: $ac_res" >&5
20553 echo "${ECHO_T}$ac_res" >&6; }
20555 # Is the header compilable?
20556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20558 cat >conftest.$ac_ext <<_ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20564 $ac_includes_default
20565 #include <$ac_header>
20567 rm -f conftest.$ac_objext
20568 if { (ac_try="$ac_compile"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_compile") 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && {
20581 test -z "$ac_c_werror_flag" ||
20582 test ! -s conftest.err
20583 } && test -s conftest.$ac_objext; then
20584 ac_header_compiler=yes
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20589 ac_header_compiler=no
20592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20594 echo "${ECHO_T}$ac_header_compiler" >&6; }
20596 # Is the header present?
20597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 #include <$ac_header>
20607 if { (ac_try="$ac_cpp conftest.$ac_ext"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } >/dev/null && {
20620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20621 test ! -s conftest.err
20623 ac_header_preproc=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_header_preproc=no
20631 rm -f conftest.err conftest.$ac_ext
20632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20633 echo "${ECHO_T}$ac_header_preproc" >&6; }
20635 # So? What about this header?
20636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20642 ac_header_preproc=yes
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20658 ## ------------------------------------ ##
20659 ## Report this to opensource@google.com ##
20660 ## ------------------------------------ ##
20662 ) | sed "s/^/$as_me: WARNING: /" >&2
20665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 eval "$as_ac_Header=\$ac_header_preproc"
20672 ac_res=`eval echo '${'$as_ac_Header'}'`
20673 { echo "$as_me:$LINENO: result: $ac_res" >&5
20674 echo "${ECHO_T}$ac_res" >&6; }
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678 cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20687 for ac_header in sys/syscall.h
20689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 ac_res=`eval echo '${'$as_ac_Header'}'`
20697 { echo "$as_me:$LINENO: result: $ac_res" >&5
20698 echo "${ECHO_T}$ac_res" >&6; }
20700 # Is the header compilable?
20701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20703 cat >conftest.$ac_ext <<_ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 $ac_includes_default
20710 #include <$ac_header>
20712 rm -f conftest.$ac_objext
20713 if { (ac_try="$ac_compile"
20714 case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_compile") 2>conftest.er1
20721 grep -v '^ *+' conftest.er1 >conftest.err
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } && {
20726 test -z "$ac_c_werror_flag" ||
20727 test ! -s conftest.err
20728 } && test -s conftest.$ac_objext; then
20729 ac_header_compiler=yes
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 ac_header_compiler=no
20737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20739 echo "${ECHO_T}$ac_header_compiler" >&6; }
20741 # Is the header present?
20742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 #include <$ac_header>
20752 if { (ac_try="$ac_cpp conftest.$ac_ext"
20753 case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20760 grep -v '^ *+' conftest.er1 >conftest.err
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } >/dev/null && {
20765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20766 test ! -s conftest.err
20768 ac_header_preproc=yes
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ac_header_preproc=no
20776 rm -f conftest.err conftest.$ac_ext
20777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20778 echo "${ECHO_T}$ac_header_preproc" >&6; }
20780 # So? What about this header?
20781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20787 ac_header_preproc=yes
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20803 ## ------------------------------------ ##
20804 ## Report this to opensource@google.com ##
20805 ## ------------------------------------ ##
20807 ) | sed "s/^/$as_me: WARNING: /" >&2
20810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 eval "$as_ac_Header=\$ac_header_preproc"
20817 ac_res=`eval echo '${'$as_ac_Header'}'`
20818 { echo "$as_me:$LINENO: result: $ac_res" >&5
20819 echo "${ECHO_T}$ac_res" >&6; }
20822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20823 cat >>confdefs.h <<_ACEOF
20824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20831 # For backtrace with glibc.
20833 for ac_header in execinfo.h
20835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 ac_res=`eval echo '${'$as_ac_Header'}'`
20843 { echo "$as_me:$LINENO: result: $ac_res" >&5
20844 echo "${ECHO_T}$ac_res" >&6; }
20846 # Is the header compilable?
20847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 $ac_includes_default
20856 #include <$ac_header>
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20867 grep -v '^ *+' conftest.er1 >conftest.err
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } && {
20872 test -z "$ac_c_werror_flag" ||
20873 test ! -s conftest.err
20874 } && test -s conftest.$ac_objext; then
20875 ac_header_compiler=yes
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 ac_header_compiler=no
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20885 echo "${ECHO_T}$ac_header_compiler" >&6; }
20887 # Is the header present?
20888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 #include <$ac_header>
20898 if { (ac_try="$ac_cpp conftest.$ac_ext"
20899 case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20906 grep -v '^ *+' conftest.er1 >conftest.err
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } >/dev/null && {
20911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20914 ac_header_preproc=yes
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_header_preproc=no
20922 rm -f conftest.err conftest.$ac_ext
20923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20924 echo "${ECHO_T}$ac_header_preproc" >&6; }
20926 # So? What about this header?
20927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20933 ac_header_preproc=yes
20936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20949 ## ------------------------------------ ##
20950 ## Report this to opensource@google.com ##
20951 ## ------------------------------------ ##
20953 ) | sed "s/^/$as_me: WARNING: /" >&2
20956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 eval "$as_ac_Header=\$ac_header_preproc"
20963 ac_res=`eval echo '${'$as_ac_Header'}'`
20964 { echo "$as_me:$LINENO: result: $ac_res" >&5
20965 echo "${ECHO_T}$ac_res" >&6; }
20968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20977 # For backtrace with libunwind.
20979 for ac_header in libunwind.h
20981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 ac_res=`eval echo '${'$as_ac_Header'}'`
20989 { echo "$as_me:$LINENO: result: $ac_res" >&5
20990 echo "${ECHO_T}$ac_res" >&6; }
20992 # Is the header compilable?
20993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 $ac_includes_default
21002 #include <$ac_header>
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_compile") 2>conftest.er1
21013 grep -v '^ *+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest.$ac_objext; then
21021 ac_header_compiler=yes
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_header_compiler=no
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21031 echo "${ECHO_T}$ac_header_compiler" >&6; }
21033 # Is the header present?
21034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 #include <$ac_header>
21044 if { (ac_try="$ac_cpp conftest.$ac_ext"
21045 case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21052 grep -v '^ *+' conftest.er1 >conftest.err
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } >/dev/null && {
21057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21058 test ! -s conftest.err
21060 ac_header_preproc=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_header_preproc=no
21068 rm -f conftest.err conftest.$ac_ext
21069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21070 echo "${ECHO_T}$ac_header_preproc" >&6; }
21072 # So? What about this header?
21073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21079 ac_header_preproc=yes
21082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21095 ## ------------------------------------ ##
21096 ## Report this to opensource@google.com ##
21097 ## ------------------------------------ ##
21099 ) | sed "s/^/$as_me: WARNING: /" >&2
21102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 eval "$as_ac_Header=\$ac_header_preproc"
21109 ac_res=`eval echo '${'$as_ac_Header'}'`
21110 { echo "$as_me:$LINENO: result: $ac_res" >&5
21111 echo "${ECHO_T}$ac_res" >&6; }
21114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21115 cat >>confdefs.h <<_ACEOF
21116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21124 for ac_header in ucontext.h
21126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 ac_res=`eval echo '${'$as_ac_Header'}'`
21134 { echo "$as_me:$LINENO: result: $ac_res" >&5
21135 echo "${ECHO_T}$ac_res" >&6; }
21137 # Is the header compilable?
21138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 $ac_includes_default
21147 #include <$ac_header>
21149 rm -f conftest.$ac_objext
21150 if { (ac_try="$ac_compile"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_compile") 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest.$ac_objext; then
21166 ac_header_compiler=yes
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_header_compiler=no
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21176 echo "${ECHO_T}$ac_header_compiler" >&6; }
21178 # Is the header present?
21179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 #include <$ac_header>
21189 if { (ac_try="$ac_cpp conftest.$ac_ext"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } >/dev/null && {
21202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21205 ac_header_preproc=yes
21207 echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_header_preproc=no
21213 rm -f conftest.err conftest.$ac_ext
21214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21215 echo "${ECHO_T}$ac_header_preproc" >&6; }
21217 # So? What about this header?
21218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21224 ac_header_preproc=yes
21227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21240 ## ------------------------------------ ##
21241 ## Report this to opensource@google.com ##
21242 ## ------------------------------------ ##
21244 ) | sed "s/^/$as_me: WARNING: /" >&2
21247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 eval "$as_ac_Header=\$ac_header_preproc"
21254 ac_res=`eval echo '${'$as_ac_Header'}'`
21255 { echo "$as_me:$LINENO: result: $ac_res" >&5
21256 echo "${ECHO_T}$ac_res" >&6; }
21259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21260 cat >>confdefs.h <<_ACEOF
21261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21269 for ac_header in sys/utsname.h
21271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 ac_res=`eval echo '${'$as_ac_Header'}'`
21279 { echo "$as_me:$LINENO: result: $ac_res" >&5
21280 echo "${ECHO_T}$ac_res" >&6; }
21282 # Is the header compilable?
21283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 $ac_includes_default
21292 #include <$ac_header>
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest.$ac_objext; then
21311 ac_header_compiler=yes
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_header_compiler=no
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21321 echo "${ECHO_T}$ac_header_compiler" >&6; }
21323 # Is the header present?
21324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21326 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 #include <$ac_header>
21334 if { (ac_try="$ac_cpp conftest.$ac_ext"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21342 grep -v '^ *+' conftest.er1 >conftest.err
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } >/dev/null && {
21347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21350 ac_header_preproc=yes
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_header_preproc=no
21358 rm -f conftest.err conftest.$ac_ext
21359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21360 echo "${ECHO_T}$ac_header_preproc" >&6; }
21362 # So? What about this header?
21363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21369 ac_header_preproc=yes
21372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21385 ## ------------------------------------ ##
21386 ## Report this to opensource@google.com ##
21387 ## ------------------------------------ ##
21389 ) | sed "s/^/$as_me: WARNING: /" >&2
21392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 eval "$as_ac_Header=\$ac_header_preproc"
21399 ac_res=`eval echo '${'$as_ac_Header'}'`
21400 { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21405 cat >>confdefs.h <<_ACEOF
21406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21414 for ac_header in pwd.h
21416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 ac_res=`eval echo '${'$as_ac_Header'}'`
21424 { echo "$as_me:$LINENO: result: $ac_res" >&5
21425 echo "${ECHO_T}$ac_res" >&6; }
21427 # Is the header compilable?
21428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21430 cat >conftest.$ac_ext <<_ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 $ac_includes_default
21437 #include <$ac_header>
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446 (eval "$ac_compile") 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } && {
21453 test -z "$ac_c_werror_flag" ||
21454 test ! -s conftest.err
21455 } && test -s conftest.$ac_objext; then
21456 ac_header_compiler=yes
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 ac_header_compiler=no
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21466 echo "${ECHO_T}$ac_header_compiler" >&6; }
21468 # Is the header present?
21469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <$ac_header>
21479 if { (ac_try="$ac_cpp conftest.$ac_ext"
21480 case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21487 grep -v '^ *+' conftest.er1 >conftest.err
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } >/dev/null && {
21492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21495 ac_header_preproc=yes
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 ac_header_preproc=no
21503 rm -f conftest.err conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505 echo "${ECHO_T}$ac_header_preproc" >&6; }
21507 # So? What about this header?
21508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514 ac_header_preproc=yes
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21530 ## ------------------------------------ ##
21531 ## Report this to opensource@google.com ##
21532 ## ------------------------------------ ##
21534 ) | sed "s/^/$as_me: WARNING: /" >&2
21537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 eval "$as_ac_Header=\$ac_header_preproc"
21544 ac_res=`eval echo '${'$as_ac_Header'}'`
21545 { echo "$as_me:$LINENO: result: $ac_res" >&5
21546 echo "${ECHO_T}$ac_res" >&6; }
21549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21550 cat >>confdefs.h <<_ACEOF
21551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21559 for ac_header in syslog.h
21561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 ac_res=`eval echo '${'$as_ac_Header'}'`
21569 { echo "$as_me:$LINENO: result: $ac_res" >&5
21570 echo "${ECHO_T}$ac_res" >&6; }
21572 # Is the header compilable?
21573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21575 cat >conftest.$ac_ext <<_ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 $ac_includes_default
21582 #include <$ac_header>
21584 rm -f conftest.$ac_objext
21585 if { (ac_try="$ac_compile"
21586 case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_compile") 2>conftest.er1
21593 grep -v '^ *+' conftest.er1 >conftest.err
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } && {
21598 test -z "$ac_c_werror_flag" ||
21599 test ! -s conftest.err
21600 } && test -s conftest.$ac_objext; then
21601 ac_header_compiler=yes
21603 echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21606 ac_header_compiler=no
21609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21611 echo "${ECHO_T}$ac_header_compiler" >&6; }
21613 # Is the header present?
21614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21616 cat >conftest.$ac_ext <<_ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21622 #include <$ac_header>
21624 if { (ac_try="$ac_cpp conftest.$ac_ext"
21625 case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21632 grep -v '^ *+' conftest.er1 >conftest.err
21634 cat conftest.err >&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } >/dev/null && {
21637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21638 test ! -s conftest.err
21640 ac_header_preproc=yes
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21645 ac_header_preproc=no
21648 rm -f conftest.err conftest.$ac_ext
21649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21650 echo "${ECHO_T}$ac_header_preproc" >&6; }
21652 # So? What about this header?
21653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21659 ac_header_preproc=yes
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21675 ## ------------------------------------ ##
21676 ## Report this to opensource@google.com ##
21677 ## ------------------------------------ ##
21679 ) | sed "s/^/$as_me: WARNING: /" >&2
21682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 eval "$as_ac_Header=\$ac_header_preproc"
21689 ac_res=`eval echo '${'$as_ac_Header'}'`
21690 { echo "$as_me:$LINENO: result: $ac_res" >&5
21691 echo "${ECHO_T}$ac_res" >&6; }
21694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21695 cat >>confdefs.h <<_ACEOF
21696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21704 for ac_header in sys/time.h
21706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 ac_res=`eval echo '${'$as_ac_Header'}'`
21714 { echo "$as_me:$LINENO: result: $ac_res" >&5
21715 echo "${ECHO_T}$ac_res" >&6; }
21717 # Is the header compilable?
21718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21720 cat >conftest.$ac_ext <<_ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 $ac_includes_default
21727 #include <$ac_header>
21729 rm -f conftest.$ac_objext
21730 if { (ac_try="$ac_compile"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_compile") 2>conftest.er1
21738 grep -v '^ *+' conftest.er1 >conftest.err
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } && {
21743 test -z "$ac_c_werror_flag" ||
21744 test ! -s conftest.err
21745 } && test -s conftest.$ac_objext; then
21746 ac_header_compiler=yes
21748 echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21751 ac_header_compiler=no
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21756 echo "${ECHO_T}$ac_header_compiler" >&6; }
21758 # Is the header present?
21759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21761 cat >conftest.$ac_ext <<_ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21767 #include <$ac_header>
21769 if { (ac_try="$ac_cpp conftest.$ac_ext"
21770 case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21777 grep -v '^ *+' conftest.er1 >conftest.err
21779 cat conftest.err >&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } >/dev/null && {
21782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21783 test ! -s conftest.err
21785 ac_header_preproc=yes
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790 ac_header_preproc=no
21793 rm -f conftest.err conftest.$ac_ext
21794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21795 echo "${ECHO_T}$ac_header_preproc" >&6; }
21797 # So? What about this header?
21798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21804 ac_header_preproc=yes
21807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21820 ## ------------------------------------ ##
21821 ## Report this to opensource@google.com ##
21822 ## ------------------------------------ ##
21824 ) | sed "s/^/$as_me: WARNING: /" >&2
21827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 eval "$as_ac_Header=\$ac_header_preproc"
21834 ac_res=`eval echo '${'$as_ac_Header'}'`
21835 { echo "$as_me:$LINENO: result: $ac_res" >&5
21836 echo "${ECHO_T}$ac_res" >&6; }
21839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21840 cat >>confdefs.h <<_ACEOF
21841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21849 for ac_header in glob.h
21851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 ac_res=`eval echo '${'$as_ac_Header'}'`
21859 { echo "$as_me:$LINENO: result: $ac_res" >&5
21860 echo "${ECHO_T}$ac_res" >&6; }
21862 # Is the header compilable?
21863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 $ac_includes_default
21872 #include <$ac_header>
21874 rm -f conftest.$ac_objext
21875 if { (ac_try="$ac_compile"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_compile") 2>conftest.er1
21883 grep -v '^ *+' conftest.er1 >conftest.err
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest.$ac_objext; then
21891 ac_header_compiler=yes
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ac_header_compiler=no
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21901 echo "${ECHO_T}$ac_header_compiler" >&6; }
21903 # Is the header present?
21904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <$ac_header>
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21922 grep -v '^ *+' conftest.er1 >conftest.err
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } >/dev/null && {
21927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928 test ! -s conftest.err
21930 ac_header_preproc=yes
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 ac_header_preproc=no
21938 rm -f conftest.err conftest.$ac_ext
21939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21940 echo "${ECHO_T}$ac_header_preproc" >&6; }
21942 # So? What about this header?
21943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21949 ac_header_preproc=yes
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21965 ## ------------------------------------ ##
21966 ## Report this to opensource@google.com ##
21967 ## ------------------------------------ ##
21969 ) | sed "s/^/$as_me: WARNING: /" >&2
21972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21977 eval "$as_ac_Header=\$ac_header_preproc"
21979 ac_res=`eval echo '${'$as_ac_Header'}'`
21980 { echo "$as_me:$LINENO: result: $ac_res" >&5
21981 echo "${ECHO_T}$ac_res" >&6; }
21984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21985 cat >>confdefs.h <<_ACEOF
21986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21994 { echo "$as_me:$LINENO: checking for void *" >&5
21995 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21996 if test "${ac_cv_type_void_p+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21999 cat >conftest.$ac_ext <<_ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22005 $ac_includes_default
22006 typedef void * ac__type_new_;
22010 if ((ac__type_new_ *) 0)
22012 if (sizeof (ac__type_new_))
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_compile") 2>conftest.er1
22027 grep -v '^ *+' conftest.er1 >conftest.err
22029 cat conftest.err >&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } && {
22032 test -z "$ac_c_werror_flag" ||
22033 test ! -s conftest.err
22034 } && test -s conftest.$ac_objext; then
22035 ac_cv_type_void_p=yes
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22040 ac_cv_type_void_p=no
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22046 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22048 # The cast to long int works around a bug in the HP C Compiler
22049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22051 # This bug is HP SR number 8606223364.
22052 { echo "$as_me:$LINENO: checking size of void *" >&5
22053 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22054 if test "${ac_cv_sizeof_void_p+set}" = set; then
22055 echo $ECHO_N "(cached) $ECHO_C" >&6
22057 if test "$cross_compiling" = yes; then
22058 # Depending upon the size, compute the lo and hi bounds.
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 $ac_includes_default
22066 typedef void * ac__type_sizeof_;
22070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22096 cat >conftest.$ac_ext <<_ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 $ac_includes_default
22103 typedef void * ac__type_sizeof_;
22107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_compile") 2>conftest.er1
22123 grep -v '^ *+' conftest.er1 >conftest.err
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } && {
22128 test -z "$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22130 } && test -s conftest.$ac_objext; then
22131 ac_hi=$ac_mid; break
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_lo=`expr $ac_mid + 1`
22137 if test $ac_lo -le $ac_mid; then
22141 ac_mid=`expr 2 '*' $ac_mid + 1`
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 cat >conftest.$ac_ext <<_ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 $ac_includes_default
22157 typedef void * ac__type_sizeof_;
22161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22168 rm -f conftest.$ac_objext
22169 if { (ac_try="$ac_compile"
22170 case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175 (eval "$ac_compile") 2>conftest.er1
22177 grep -v '^ *+' conftest.er1 >conftest.err
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } && {
22182 test -z "$ac_c_werror_flag" ||
22183 test ! -s conftest.err
22184 } && test -s conftest.$ac_objext; then
22187 cat >conftest.$ac_ext <<_ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 $ac_includes_default
22194 typedef void * ac__type_sizeof_;
22198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22205 rm -f conftest.$ac_objext
22206 if { (ac_try="$ac_compile"
22207 case "(($ac_try" in
22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209 *) ac_try_echo=$ac_try;;
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212 (eval "$ac_compile") 2>conftest.er1
22214 grep -v '^ *+' conftest.er1 >conftest.err
22216 cat conftest.err >&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } && {
22219 test -z "$ac_c_werror_flag" ||
22220 test ! -s conftest.err
22221 } && test -s conftest.$ac_objext; then
22222 ac_lo=$ac_mid; break
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_hi=`expr '(' $ac_mid ')' - 1`
22228 if test $ac_mid -le $ac_hi; then
22232 ac_mid=`expr 2 '*' $ac_mid`
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 # Binary search between lo and hi bounds.
22249 while test "x$ac_lo" != "x$ac_hi"; do
22250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 $ac_includes_default
22258 typedef void * ac__type_sizeof_;
22262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22278 grep -v '^ *+' conftest.er1 >conftest.err
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_c_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest.$ac_objext; then
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 ac_lo=`expr '(' $ac_mid ')' + 1`
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22297 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22298 '') if test "$ac_cv_type_void_p" = yes; then
22299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22300 See \`config.log' for more details." >&5
22301 echo "$as_me: error: cannot compute sizeof (void *)
22302 See \`config.log' for more details." >&2;}
22303 { (exit 77); exit 77; }; }
22305 ac_cv_sizeof_void_p=0
22309 cat >conftest.$ac_ext <<_ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 $ac_includes_default
22316 typedef void * ac__type_sizeof_;
22317 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22318 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22320 #include <stdlib.h>
22325 FILE *f = fopen ("conftest.val", "w");
22328 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22330 long int i = longval ();
22331 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22333 fprintf (f, "%ld\n", i);
22337 unsigned long int i = ulongval ();
22338 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22340 fprintf (f, "%lu\n", i);
22342 return ferror (f) || fclose (f) != 0;
22348 rm -f conftest$ac_exeext
22349 if { (ac_try="$ac_link"
22350 case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_link") 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22359 { (case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364 (eval "$ac_try") 2>&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }; }; then
22368 ac_cv_sizeof_void_p=`cat conftest.val`
22370 echo "$as_me: program exited with status $ac_status" >&5
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ( exit $ac_status )
22375 if test "$ac_cv_type_void_p" = yes; then
22376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22377 See \`config.log' for more details." >&5
22378 echo "$as_me: error: cannot compute sizeof (void *)
22379 See \`config.log' for more details." >&2;}
22380 { (exit 77); exit 77; }; }
22382 ac_cv_sizeof_void_p=0
22385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22390 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22394 cat >>confdefs.h <<_ACEOF
22395 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22400 # These are the types I need. We look for them in either stdint.h,
22401 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22402 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22403 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22404 if test "${ac_cv_type_uint16_t+set}" = set; then
22405 echo $ECHO_N "(cached) $ECHO_C" >&6
22407 cat >conftest.$ac_ext <<_ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22413 $ac_includes_default
22414 typedef uint16_t ac__type_new_;
22418 if ((ac__type_new_ *) 0)
22420 if (sizeof (ac__type_new_))
22426 rm -f conftest.$ac_objext
22427 if { (ac_try="$ac_compile"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_compile") 2>conftest.er1
22435 grep -v '^ *+' conftest.er1 >conftest.err
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } && {
22440 test -z "$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22442 } && test -s conftest.$ac_objext; then
22443 ac_cv_type_uint16_t=yes
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ac_cv_type_uint16_t=no
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22453 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22454 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22455 if test $ac_cv_type_uint16_t = yes; then
22456 ac_cv_have_uint16_t=1
22458 ac_cv_have_uint16_t=0
22461 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22462 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22463 if test "${ac_cv_type_u_int16_t+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22466 cat >conftest.$ac_ext <<_ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 $ac_includes_default
22473 typedef u_int16_t ac__type_new_;
22477 if ((ac__type_new_ *) 0)
22479 if (sizeof (ac__type_new_))
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_compile") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest.$ac_objext; then
22502 ac_cv_type_u_int16_t=yes
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_cv_type_u_int16_t=no
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22513 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22514 if test $ac_cv_type_u_int16_t = yes; then
22515 ac_cv_have_u_int16_t=1
22517 ac_cv_have_u_int16_t=0
22520 { echo "$as_me:$LINENO: checking for __uint16" >&5
22521 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22522 if test "${ac_cv_type___uint16+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 cat >conftest.$ac_ext <<_ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 $ac_includes_default
22532 typedef __uint16 ac__type_new_;
22536 if ((ac__type_new_ *) 0)
22538 if (sizeof (ac__type_new_))
22544 rm -f conftest.$ac_objext
22545 if { (ac_try="$ac_compile"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_compile") 2>conftest.er1
22553 grep -v '^ *+' conftest.er1 >conftest.err
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } && {
22558 test -z "$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 } && test -s conftest.$ac_objext; then
22561 ac_cv_type___uint16=yes
22563 echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22566 ac_cv_type___uint16=no
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22572 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22573 if test $ac_cv_type___uint16 = yes; then
22574 ac_cv_have___uint16=1
22576 ac_cv_have___uint16=0
22580 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22581 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22582 if test "${ac_cv_func_sigaltstack+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 cat >conftest.$ac_ext <<_ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22593 #define sigaltstack innocuous_sigaltstack
22595 /* System header to define __stub macros and hopefully few prototypes,
22596 which can conflict with char sigaltstack (); below.
22597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22598 <limits.h> exists even on freestanding compilers. */
22601 # include <limits.h>
22603 # include <assert.h>
22608 /* Override any GCC internal prototype to avoid an error.
22609 Use char because int might match the return type of a GCC
22610 builtin and then its argument prototype would still apply. */
22614 char sigaltstack ();
22615 /* The GNU C library defines this for functions which it implements
22616 to always fail with ENOSYS. Some functions are actually named
22617 something starting with __ and the normal name is an alias. */
22618 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22625 return sigaltstack ();
22630 rm -f conftest.$ac_objext conftest$ac_exeext
22631 if { (ac_try="$ac_link"
22632 case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_link") 2>conftest.er1
22639 grep -v '^ *+' conftest.er1 >conftest.err
22641 cat conftest.err >&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest$ac_exeext &&
22647 $as_test_x conftest$ac_exeext; then
22648 ac_cv_func_sigaltstack=yes
22650 echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22653 ac_cv_func_sigaltstack=no
22656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22657 conftest$ac_exeext conftest.$ac_ext
22659 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22660 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22661 if test $ac_cv_func_sigaltstack = yes; then
22663 cat >>confdefs.h <<\_ACEOF
22664 #define HAVE_SIGALTSTACK 1
22669 { echo "$as_me:$LINENO: checking for dladdr" >&5
22670 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22671 if test "${ac_cv_func_dladdr+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22674 cat >conftest.$ac_ext <<_ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22682 #define dladdr innocuous_dladdr
22684 /* System header to define __stub macros and hopefully few prototypes,
22685 which can conflict with char dladdr (); below.
22686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22687 <limits.h> exists even on freestanding compilers. */
22690 # include <limits.h>
22692 # include <assert.h>
22697 /* Override any GCC internal prototype to avoid an error.
22698 Use char because int might match the return type of a GCC
22699 builtin and then its argument prototype would still apply. */
22704 /* The GNU C library defines this for functions which it implements
22705 to always fail with ENOSYS. Some functions are actually named
22706 something starting with __ and the normal name is an alias. */
22707 #if defined __stub_dladdr || defined __stub___dladdr
22719 rm -f conftest.$ac_objext conftest$ac_exeext
22720 if { (ac_try="$ac_link"
22721 case "(($ac_try" in
22722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723 *) ac_try_echo=$ac_try;;
22725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22726 (eval "$ac_link") 2>conftest.er1
22728 grep -v '^ *+' conftest.er1 >conftest.err
22730 cat conftest.err >&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); } && {
22733 test -z "$ac_c_werror_flag" ||
22734 test ! -s conftest.err
22735 } && test -s conftest$ac_exeext &&
22736 $as_test_x conftest$ac_exeext; then
22737 ac_cv_func_dladdr=yes
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22742 ac_cv_func_dladdr=no
22745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746 conftest$ac_exeext conftest.$ac_ext
22748 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22749 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22750 if test $ac_cv_func_dladdr = yes; then
22752 cat >>confdefs.h <<\_ACEOF
22753 #define HAVE_DLADDR 1
22758 { echo "$as_me:$LINENO: checking for fcntl" >&5
22759 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22760 if test "${ac_cv_func_fcntl+set}" = set; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 cat >conftest.$ac_ext <<_ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22771 #define fcntl innocuous_fcntl
22773 /* System header to define __stub macros and hopefully few prototypes,
22774 which can conflict with char fcntl (); below.
22775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22776 <limits.h> exists even on freestanding compilers. */
22779 # include <limits.h>
22781 # include <assert.h>
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22793 /* The GNU C library defines this for functions which it implements
22794 to always fail with ENOSYS. Some functions are actually named
22795 something starting with __ and the normal name is an alias. */
22796 #if defined __stub_fcntl || defined __stub___fcntl
22808 rm -f conftest.$ac_objext conftest$ac_exeext
22809 if { (ac_try="$ac_link"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_link") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1 >conftest.err
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest$ac_exeext &&
22825 $as_test_x conftest$ac_exeext; then
22826 ac_cv_func_fcntl=yes
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_cv_func_fcntl=no
22834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22835 conftest$ac_exeext conftest.$ac_ext
22837 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22838 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22839 if test $ac_cv_func_fcntl = yes; then
22841 cat >>confdefs.h <<\_ACEOF
22842 #define HAVE_FCNTL 1
22849 { echo "$as_me:$LINENO: checking for __attribute__" >&5
22850 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22851 if test "${ac_cv___attribute__+set}" = set; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 cat >conftest.$ac_ext <<_ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22861 #include <stdlib.h>
22862 static void foo(void) __attribute__ ((unused));
22863 void foo(void) { exit(1); }
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_compile") 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest.$ac_objext; then
22889 ac_cv___attribute__=yes
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 ac_cv___attribute__=no
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 if test "$ac_cv___attribute__" = "yes"; then
22903 cat >>confdefs.h <<\_ACEOF
22904 #define HAVE___ATTRIBUTE__ 1
22908 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22909 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22911 # We only care about these two attributes.
22912 if test x"$ac_cv___attribute__" = x"yes"; then
22913 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22914 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22916 ac_cv___attribute___noreturn=
22917 ac_cv___attribute___printf_4_5=
22921 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22922 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22923 if test "${ac_cv___builtin_expect+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 cat >conftest.$ac_ext <<_ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22951 grep -v '^ *+' conftest.er1 >conftest.err
22953 cat conftest.err >&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22959 ac_cv___builtin_expect=yes
22961 echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 ac_cv___builtin_expect=no
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 if test "$ac_cv___builtin_expect" = "yes"; then
22973 cat >>confdefs.h <<\_ACEOF
22974 #define HAVE___BUILTIN_EXPECT 1
22978 { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22979 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22981 if test x"$ac_cv___builtin_expect" = x"yes"; then
22982 ac_cv_have___builtin_expect=1
22984 ac_cv_have___builtin_expect=0
22988 { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22989 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
22990 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
22991 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016 (eval "$ac_link") 2>conftest.er1
23018 grep -v '^ *+' conftest.er1 >conftest.err
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && {
23023 test -z "$ac_c_werror_flag" ||
23024 test ! -s conftest.err
23025 } && test -s conftest$ac_exeext &&
23026 $as_test_x conftest$ac_exeext; then
23027 ac_cv___sync_val_compare_and_swap=yes
23029 echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23032 ac_cv___sync_val_compare_and_swap=no
23036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037 conftest$ac_exeext conftest.$ac_ext
23040 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23047 { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23048 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23051 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23052 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23053 # Check whether --enable-frame_pointers was given.
23054 if test "${enable_frame_pointers+set}" = set; then
23055 enableval=$enable_frame_pointers; enable_frame_pointers=no
23058 cat >conftest.$ac_ext <<_ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23068 return __x86_64__ == 1 ? 0 : 1
23073 rm -f conftest.$ac_objext
23074 if { (ac_try="$ac_compile"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_compile") 2>conftest.er1
23082 grep -v '^ *+' conftest.er1 >conftest.err
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest.$ac_objext; then
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099 if test "$enable_frame_pointers" = yes; then
23100 ENABLE_FRAME_POINTERS_TRUE=
23101 ENABLE_FRAME_POINTERS_FALSE='#'
23103 ENABLE_FRAME_POINTERS_TRUE='#'
23104 ENABLE_FRAME_POINTERS_FALSE=
23107 if test "$is_x86_64" = yes; then
23116 # Some of the code in this directory depends on pthreads
23121 ac_cpp='$CPP $CPPFLAGS'
23122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23128 # We used to check for pthread.h first, but this fails if pthread.h
23129 # requires special compiler flags (e.g. on True64 or Sequent).
23130 # It gets checked for in the link test anyway.
23132 # First of all, check if the user has set any of the PTHREAD_LIBS,
23133 # etcetera environment variables, and if threads linking works using
23135 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23136 save_CFLAGS="$CFLAGS"
23137 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23139 LIBS="$PTHREAD_LIBS $LIBS"
23140 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23141 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23142 cat >conftest.$ac_ext <<_ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23149 /* Override any GCC internal prototype to avoid an error.
23150 Use char because int might match the return type of a GCC
23151 builtin and then its argument prototype would still apply. */
23155 char pthread_join ();
23159 return pthread_join ();
23164 rm -f conftest.$ac_objext conftest$ac_exeext
23165 if { (ac_try="$ac_link"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_link") 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest$ac_exeext &&
23181 $as_test_x conftest$ac_exeext; then
23184 echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23191 conftest$ac_exeext conftest.$ac_ext
23192 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23193 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23194 if test x"$acx_pthread_ok" = xno; then
23199 CFLAGS="$save_CFLAGS"
23202 # We must check for the threads library under a number of different
23203 # names; the ordering is very important because some systems
23204 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23205 # libraries is broken (non-POSIX).
23207 # Create a list of thread flags to try. Items starting with a "-" are
23208 # C compiler flags, and other items are library names, except for "none"
23209 # which indicates that we try without any flags at all, and "pthread-config"
23210 # which is a program returning the flags for the Pth emulation library.
23212 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23214 # The ordering *is* (sometimes) important. Some notes on the
23215 # individual items follow:
23217 # pthreads: AIX (must check this before -lpthread)
23218 # none: in case threads are in libc; should be tried before -Kthread and
23219 # other compiler flags to prevent continual compiler warnings
23220 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23221 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23222 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23223 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23224 # -pthreads: Solaris/gcc
23225 # -mthreads: Mingw32/gcc, Lynx/gcc
23226 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23227 # doesn't hurt to check since this sometimes defines pthreads too;
23228 # also defines -D_REENTRANT)
23229 # ... -mt is also the pthreads flag for HP/aCC
23230 # pthread: Linux, etcetera
23231 # --thread-safe: KAI C++
23232 # pthread-config: use pthread-config program (for GNU Pth library)
23234 case "${host_cpu}-${host_os}" in
23237 # On Solaris (at least, for some versions), libc contains stubbed
23238 # (non-functional) versions of the pthreads routines, so link-based
23239 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
23240 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23241 # a function called by this macro, so we could check for that, but
23242 # who knows whether they'll stub that too in a future libc.) So,
23243 # we'll just look for -pthreads and -lpthread first:
23245 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23249 if test x"$acx_pthread_ok" = xno; then
23250 for flag in $acx_pthread_flags; do
23254 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23255 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23259 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23260 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23261 PTHREAD_CFLAGS="$flag"
23265 # Extract the first word of "pthread-config", so it can be a program name with args.
23266 set dummy pthread-config; ac_word=$2
23267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23269 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 if test -n "$acx_pthread_config"; then
23273 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23276 for as_dir in $PATH
23279 test -z "$as_dir" && as_dir=.
23280 for ac_exec_ext in '' $ac_executable_extensions; do
23281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23282 ac_cv_prog_acx_pthread_config="yes"
23283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23290 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23293 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23294 if test -n "$acx_pthread_config"; then
23295 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23296 echo "${ECHO_T}$acx_pthread_config" >&6; }
23298 { echo "$as_me:$LINENO: result: no" >&5
23299 echo "${ECHO_T}no" >&6; }
23303 if test x"$acx_pthread_config" = xno; then continue; fi
23304 PTHREAD_CFLAGS="`pthread-config --cflags`"
23305 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23309 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23310 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23311 PTHREAD_LIBS="-l$flag"
23316 save_CFLAGS="$CFLAGS"
23317 LIBS="$PTHREAD_LIBS $LIBS"
23318 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23320 # Check for various functions. We must include pthread.h,
23321 # since some functions may be macros. (On the Sequent, we
23322 # need a special flag -Kthread to make this header compile.)
23323 # We check for pthread_join because it is in -lpthread on IRIX
23324 # while pthread_create is in libc. We check for pthread_attr_init
23325 # due to DEC craziness with -lpthreads. We check for
23326 # pthread_cleanup_push because it is one of the few pthread
23327 # functions on Solaris that doesn't have a non-functional libc stub.
23328 # We try pthread_create on general principles.
23329 cat >conftest.$ac_ext <<_ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23335 #include <pthread.h>
23339 pthread_t th; pthread_join(th, 0);
23340 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23341 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350 *) ac_try_echo=$ac_try;;
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353 (eval "$ac_link") 2>conftest.er1
23355 grep -v '^ *+' conftest.er1 >conftest.err
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } && {
23360 test -z "$ac_c_werror_flag" ||
23361 test ! -s conftest.err
23362 } && test -s conftest$ac_exeext &&
23363 $as_test_x conftest$ac_exeext; then
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23373 conftest$ac_exeext conftest.$ac_ext
23376 CFLAGS="$save_CFLAGS"
23378 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23379 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23380 if test "x$acx_pthread_ok" = xyes; then
23389 # Various other checks:
23390 if test "x$acx_pthread_ok" = xyes; then
23392 LIBS="$PTHREAD_LIBS $LIBS"
23393 save_CFLAGS="$CFLAGS"
23394 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23396 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23397 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23398 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23400 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 #include <pthread.h>
23411 int attr=$attr; return attr;
23416 rm -f conftest.$ac_objext conftest$ac_exeext
23417 if { (ac_try="$ac_link"
23418 case "(($ac_try" in
23419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420 *) ac_try_echo=$ac_try;;
23422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23423 (eval "$ac_link") 2>conftest.er1
23425 grep -v '^ *+' conftest.er1 >conftest.err
23427 cat conftest.err >&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } && {
23430 test -z "$ac_c_werror_flag" ||
23431 test ! -s conftest.err
23432 } && test -s conftest$ac_exeext &&
23433 $as_test_x conftest$ac_exeext; then
23434 attr_name=$attr; break
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23443 conftest$ac_exeext conftest.$ac_ext
23445 { echo "$as_me:$LINENO: result: $attr_name" >&5
23446 echo "${ECHO_T}$attr_name" >&6; }
23447 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23449 cat >>confdefs.h <<_ACEOF
23450 #define PTHREAD_CREATE_JOINABLE $attr_name
23455 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23456 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23458 case "${host_cpu}-${host_os}" in
23459 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23460 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23462 { echo "$as_me:$LINENO: result: ${flag}" >&5
23463 echo "${ECHO_T}${flag}" >&6; }
23464 if test "x$flag" != xno; then
23465 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23469 CFLAGS="$save_CFLAGS"
23470 # More AIX lossage: must compile with xlc_r or cc_r
23471 if test x"$GCC" != xyes; then
23472 for ac_prog in xlc_r cc_r
23474 # Extract the first word of "$ac_prog", so it can be a program name with args.
23475 set dummy $ac_prog; ac_word=$2
23476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23478 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 if test -n "$PTHREAD_CC"; then
23482 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23485 for as_dir in $PATH
23488 test -z "$as_dir" && as_dir=.
23489 for ac_exec_ext in '' $ac_executable_extensions; do
23490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23491 ac_cv_prog_PTHREAD_CC="$ac_prog"
23492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23501 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23502 if test -n "$PTHREAD_CC"; then
23503 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23504 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23506 { echo "$as_me:$LINENO: result: no" >&5
23507 echo "${ECHO_T}no" >&6; }
23511 test -n "$PTHREAD_CC" && break
23513 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23519 # The next part tries to detect GCC inconsistency with -shared on some
23520 # architectures and systems. The problem is that in certain
23521 # configurations, when -shared is specified, GCC "forgets" to
23522 # internally use various flags which are still necessary.
23524 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23525 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23526 check_inconsistencies=yes
23527 case "${host_cpu}-${host_os}" in
23528 *-darwin*) check_inconsistencies=no ;;
23530 if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
23531 { echo "$as_me:$LINENO: result: no" >&5
23532 echo "${ECHO_T}no" >&6; }
23534 { echo "$as_me:$LINENO: result: yes" >&5
23535 echo "${ECHO_T}yes" >&6; }
23537 # In order not to create several levels of indentation, we test
23538 # the value of "$ok" until we find out the cure or run out of
23543 # Prepare the flags
23545 save_CFLAGS="$CFLAGS"
23548 # Try with the flags determined by the earlier checks.
23550 # -Wl,-z,defs forces link-time symbol resolution, so that the
23551 # linking checks with -shared actually have any value
23553 # FIXME: -fPIC is required for -shared on many architectures,
23554 # so we specify it here, but the right way would probably be to
23555 # properly detect whether it is actually required.
23556 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23557 LIBS="$PTHREAD_LIBS $LIBS"
23560 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23561 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23562 cat >conftest.$ac_ext <<_ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23568 #include <pthread.h>
23572 pthread_t th; pthread_join(th, 0);
23573 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23574 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23579 rm -f conftest.$ac_objext conftest$ac_exeext
23580 if { (ac_try="$ac_link"
23581 case "(($ac_try" in
23582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583 *) ac_try_echo=$ac_try;;
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_link") 2>conftest.er1
23588 grep -v '^ *+' conftest.er1 >conftest.err
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } && {
23593 test -z "$ac_c_werror_flag" ||
23594 test ! -s conftest.err
23595 } && test -s conftest$ac_exeext &&
23596 $as_test_x conftest$ac_exeext; then
23599 echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23606 conftest$ac_exeext conftest.$ac_ext
23608 if test "x$ok" = xyes; then
23609 { echo "$as_me:$LINENO: result: yes" >&5
23610 echo "${ECHO_T}yes" >&6; }
23612 { echo "$as_me:$LINENO: result: no" >&5
23613 echo "${ECHO_T}no" >&6; }
23617 # Linux gcc on some architectures such as mips/mipsel forgets
23620 if test x"$ok" = xno; then
23621 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23622 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23623 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23624 cat >conftest.$ac_ext <<_ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23630 #include <pthread.h>
23634 pthread_t th; pthread_join(th, 0);
23635 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23636 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (ac_try="$ac_link"
23643 case "(($ac_try" in
23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645 *) ac_try_echo=$ac_try;;
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648 (eval "$ac_link") 2>conftest.er1
23650 grep -v '^ *+' conftest.er1 >conftest.err
23652 cat conftest.err >&5
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); } && {
23655 test -z "$ac_c_werror_flag" ||
23656 test ! -s conftest.err
23657 } && test -s conftest$ac_exeext &&
23658 $as_test_x conftest$ac_exeext; then
23661 echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23668 conftest$ac_exeext conftest.$ac_ext
23670 if test "x$ok" = xyes; then
23671 { echo "$as_me:$LINENO: result: yes" >&5
23672 echo "${ECHO_T}yes" >&6; }
23673 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23675 { echo "$as_me:$LINENO: result: no" >&5
23676 echo "${ECHO_T}no" >&6; }
23680 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23682 if test x"$ok" = xno; then
23683 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23684 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23685 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23686 cat >conftest.$ac_ext <<_ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 #include <pthread.h>
23696 pthread_t th; pthread_join(th, 0);
23697 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23698 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23703 rm -f conftest.$ac_objext conftest$ac_exeext
23704 if { (ac_try="$ac_link"
23705 case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 (eval "$ac_link") 2>conftest.er1
23712 grep -v '^ *+' conftest.er1 >conftest.err
23714 cat conftest.err >&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); } && {
23717 test -z "$ac_c_werror_flag" ||
23718 test ! -s conftest.err
23719 } && test -s conftest$ac_exeext &&
23720 $as_test_x conftest$ac_exeext; then
23723 echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23730 conftest$ac_exeext conftest.$ac_ext
23732 if test "x$ok" = xyes; then
23733 { echo "$as_me:$LINENO: result: yes" >&5
23734 echo "${ECHO_T}yes" >&6; }
23735 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23737 { echo "$as_me:$LINENO: result: no" >&5
23738 echo "${ECHO_T}no" >&6; }
23741 if test x"$ok" = xno; then
23742 # OK, we have run out of ideas
23743 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23744 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23746 # so it's not safe to assume that we may use pthreads
23750 CFLAGS="$save_CFLAGS"
23762 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23763 if test x"$acx_pthread_ok" = xyes; then
23765 cat >>confdefs.h <<\_ACEOF
23766 #define HAVE_PTHREAD 1
23775 ac_cpp='$CPP $CPPFLAGS'
23776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23781 # To make libglog depend on libpthread on Linux, we need to add
23782 # -lpthread in addition to -pthread.
23784 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23785 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23786 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 ac_check_lib_save_LIBS=$LIBS
23790 LIBS="-lpthread $LIBS"
23791 cat >conftest.$ac_ext <<_ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h. */
23798 /* Override any GCC internal prototype to avoid an error.
23799 Use char because int might match the return type of a GCC
23800 builtin and then its argument prototype would still apply. */
23804 char pthread_self ();
23808 return pthread_self ();
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (ac_try="$ac_link"
23815 case "(($ac_try" in
23816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817 *) ac_try_echo=$ac_try;;
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820 (eval "$ac_link") 2>conftest.er1
23822 grep -v '^ *+' conftest.er1 >conftest.err
23824 cat conftest.err >&5
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); } && {
23827 test -z "$ac_c_werror_flag" ||
23828 test ! -s conftest.err
23829 } && test -s conftest$ac_exeext &&
23830 $as_test_x conftest$ac_exeext; then
23831 ac_cv_lib_pthread_pthread_self=yes
23833 echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23836 ac_cv_lib_pthread_pthread_self=no
23839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23840 conftest$ac_exeext conftest.$ac_ext
23841 LIBS=$ac_check_lib_save_LIBS
23843 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23844 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23845 if test $ac_cv_lib_pthread_pthread_self = yes; then
23846 cat >>confdefs.h <<_ACEOF
23847 #define HAVE_LIBPTHREAD 1
23850 LIBS="-lpthread $LIBS"
23855 # Check if there is google-gflags library installed.
23856 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23857 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23858 if test "${ac_cv_lib_gflags_main+set}" = set; then
23859 echo $ECHO_N "(cached) $ECHO_C" >&6
23861 ac_check_lib_save_LIBS=$LIBS
23862 LIBS="-lgflags $LIBS"
23863 cat >conftest.$ac_ext <<_ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23879 rm -f conftest.$ac_objext conftest$ac_exeext
23880 if { (ac_try="$ac_link"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23886 (eval "$ac_link") 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } && {
23893 test -z "$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 } && test -s conftest$ac_exeext &&
23896 $as_test_x conftest$ac_exeext; then
23897 ac_cv_lib_gflags_main=yes
23899 echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23902 ac_cv_lib_gflags_main=no
23905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23906 conftest$ac_exeext conftest.$ac_ext
23907 LIBS=$ac_check_lib_save_LIBS
23909 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23910 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23911 if test $ac_cv_lib_gflags_main = yes; then
23912 ac_cv_have_libgflags=1
23914 ac_cv_have_libgflags=0
23917 if test x"$ac_cv_have_libgflags" = x"1"; then
23918 GFLAGS_LIBS=-lgflags
23920 cat >>confdefs.h <<\_ACEOF
23921 #define HAVE_LIB_GFLAGS 1
23928 # We want to link in libunwind if it exists
23930 # Unfortunately, we need to check the header file in addition to the
23931 # lib file to check if libunwind is available since libunwind-0.98
23932 # doesn't install all necessary header files.
23933 if test x"$ac_cv_have_libunwind_h" = x"1"; then
23934 { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
23935 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
23936 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 ac_check_lib_save_LIBS=$LIBS
23940 LIBS="-lunwind $LIBS"
23941 cat >conftest.$ac_ext <<_ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23948 /* Override any GCC internal prototype to avoid an error.
23949 Use char because int might match the return type of a GCC
23950 builtin and then its argument prototype would still apply. */
23958 return backtrace ();
23963 rm -f conftest.$ac_objext conftest$ac_exeext
23964 if { (ac_try="$ac_link"
23965 case "(($ac_try" in
23966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967 *) ac_try_echo=$ac_try;;
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970 (eval "$ac_link") 2>conftest.er1
23972 grep -v '^ *+' conftest.er1 >conftest.err
23974 cat conftest.err >&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext &&
23980 $as_test_x conftest$ac_exeext; then
23981 ac_cv_lib_unwind_backtrace=yes
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 ac_cv_lib_unwind_backtrace=no
23989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23990 conftest$ac_exeext conftest.$ac_ext
23991 LIBS=$ac_check_lib_save_LIBS
23993 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
23994 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
23995 if test $ac_cv_lib_unwind_backtrace = yes; then
23996 UNWIND_LIBS=-lunwind
24001 if test x"$UNWIND_LIBS" != x""; then
24003 cat >>confdefs.h <<\_ACEOF
24004 #define HAVE_LIB_UNWIND 1
24009 # We'd like to use read/write locks in several places in the code.
24010 # See if our pthreads support extends to that. Note: for linux, it
24011 # does as long as you define _XOPEN_SOURCE appropriately.
24012 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24013 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24014 if test "${ac_rwlock+set}" = set; then
24015 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 ac_cpp='$CPP $CPPFLAGS'
24020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24024 cat >conftest.$ac_ext <<_ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 #define _XOPEN_SOURCE 500
24031 #include <pthread.h>
24035 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24036 pthread_rwlock_rdlock(&l);
24042 rm -f conftest.$ac_objext
24043 if { (ac_try="$ac_compile"
24044 case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_compile") 2>conftest.er1
24051 grep -v '^ *+' conftest.er1 >conftest.err
24053 cat conftest.err >&5
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } && {
24056 test -z "$ac_c_werror_flag" ||
24057 test ! -s conftest.err
24058 } && test -s conftest.$ac_objext; then
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 ac_cpp='$CPP $CPPFLAGS'
24070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24076 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24077 echo "${ECHO_T}$ac_rwlock" >&6; }
24078 if test "$ac_rwlock" = yes; then
24080 cat >>confdefs.h <<\_ACEOF
24081 #define HAVE_RWLOCK 1
24087 # Find out what namespace 'normal' STL code lives in, and also what namespace
24088 # the user wants our classes to be defined in
24089 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24090 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24091 if test "${ac_cv_cxx_namespaces+set}" = set; then
24092 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 ac_cpp='$CXXCPP $CPPFLAGS'
24097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24101 cat >conftest.$ac_ext <<_ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h. */
24108 namespace Inner { int i = 0; }}
24112 using namespace Outer::Inner; return i;
24117 rm -f conftest.$ac_objext
24118 if { (ac_try="$ac_compile"
24119 case "(($ac_try" in
24120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121 *) ac_try_echo=$ac_try;;
24123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24124 (eval "$ac_compile") 2>conftest.er1
24126 grep -v '^ *+' conftest.er1 >conftest.err
24128 cat conftest.err >&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } && {
24131 test -z "$ac_cxx_werror_flag" ||
24132 test ! -s conftest.err
24133 } && test -s conftest.$ac_objext; then
24134 ac_cv_cxx_namespaces=yes
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24139 ac_cv_cxx_namespaces=no
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24144 ac_cpp='$CPP $CPPFLAGS'
24145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24150 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24151 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24152 if test "$ac_cv_cxx_namespaces" = yes; then
24154 cat >>confdefs.h <<\_ACEOF
24155 #define HAVE_NAMESPACES 1
24159 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24160 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24161 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24162 echo $ECHO_N "(cached) $ECHO_C" >&6
24167 ac_cpp='$CXXCPP $CPPFLAGS'
24168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24172 cat >conftest.$ac_ext <<_ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24182 vector<int> t; return 0;
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_compile") 2>conftest.er1
24196 grep -v '^ *+' conftest.er1 >conftest.err
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } && {
24201 test -z "$ac_cxx_werror_flag" ||
24202 test ! -s conftest.err
24203 } && test -s conftest.$ac_objext; then
24204 ac_cv_cxx_stl_namespace=none
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213 cat >conftest.$ac_ext <<_ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24223 std::vector<int> t; return 0;
24228 rm -f conftest.$ac_objext
24229 if { (ac_try="$ac_compile"
24230 case "(($ac_try" in
24231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232 *) ac_try_echo=$ac_try;;
24234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235 (eval "$ac_compile") 2>conftest.er1
24237 grep -v '^ *+' conftest.er1 >conftest.err
24239 cat conftest.err >&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } && {
24242 test -z "$ac_cxx_werror_flag" ||
24243 test ! -s conftest.err
24244 } && test -s conftest.$ac_objext; then
24245 ac_cv_cxx_stl_namespace=std
24247 echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24255 ac_cpp='$CPP $CPPFLAGS'
24256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24261 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24262 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24263 if test "$ac_cv_cxx_stl_namespace" = none; then
24265 cat >>confdefs.h <<\_ACEOF
24266 #define STL_NAMESPACE
24270 if test "$ac_cv_cxx_stl_namespace" = std; then
24272 cat >>confdefs.h <<\_ACEOF
24273 #define STL_NAMESPACE std
24278 google_namespace_default=google
24279 # Check whether --enable-namespace was given.
24280 if test "${enable_namespace+set}" = set; then
24281 enableval=$enable_namespace; case "$enableval" in
24282 yes) google_namespace="$google_namespace_default" ;;
24283 no) google_namespace="" ;;
24284 *) google_namespace="$enableval" ;;
24287 google_namespace="$google_namespace_default"
24290 if test -n "$google_namespace"; then
24291 ac_google_namespace="$google_namespace"
24292 ac_google_start_namespace="namespace $google_namespace {"
24293 ac_google_end_namespace="}"
24295 ac_google_namespace=""
24296 ac_google_start_namespace=""
24297 ac_google_end_namespace=""
24300 cat >>confdefs.h <<_ACEOF
24301 #define GOOGLE_NAMESPACE $ac_google_namespace
24305 cat >>confdefs.h <<_ACEOF
24306 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24310 cat >>confdefs.h <<_ACEOF
24311 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24316 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24317 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24318 if test "${ac_cv_cxx_using_operator+set}" = set; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24323 ac_cpp='$CXXCPP $CPPFLAGS'
24324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24328 cat >conftest.$ac_ext <<_ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h. */
24334 #include <iostream>
24335 std::ostream& operator<<(std::ostream&, struct s);
24339 using ::operator<<; return 0;
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351 (eval "$ac_compile") 2>conftest.er1
24353 grep -v '^ *+' conftest.er1 >conftest.err
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } && {
24358 test -z "$ac_cxx_werror_flag" ||
24359 test ! -s conftest.err
24360 } && test -s conftest.$ac_objext; then
24361 ac_cv_cxx_using_operator=1
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_cv_cxx_using_operator=0
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 ac_cpp='$CPP $CPPFLAGS'
24372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24377 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24378 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24379 if test "$ac_cv_cxx_using_operator" = 1; then
24381 cat >>confdefs.h <<\_ACEOF
24382 #define HAVE_USING_OPERATOR 1
24387 # We want to access the "PC" (Program Counter) register from a struct
24388 # ucontext. Every system has its own way of doing that. We try all the
24389 # possibilities we know about. Note REG_PC should come first (REG_RIP
24390 # is also defined on solaris, but does the wrong thing).
24391 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24392 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24393 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
24394 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24395 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24396 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
24397 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24398 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
24399 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
24400 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
24401 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
24402 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
24403 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
24404 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
24405 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
24406 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
24407 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
24408 pc_field_found=false
24409 for pc_field in $pc_fields; do
24410 if ! $pc_field_found; then
24411 cat >conftest.$ac_ext <<_ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 #define _GNU_SOURCE 1
24418 #include <ucontext.h>
24422 ucontext_t u; return u.$pc_field == 0;
24427 rm -f conftest.$ac_objext
24428 if { (ac_try="$ac_compile"
24429 case "(($ac_try" in
24430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431 *) ac_try_echo=$ac_try;;
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434 (eval "$ac_compile") 2>conftest.er1
24436 grep -v '^ *+' conftest.er1 >conftest.err
24438 cat conftest.err >&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } && {
24441 test -z "$ac_c_werror_flag" ||
24442 test ! -s conftest.err
24443 } && test -s conftest.$ac_objext; then
24445 cat >>confdefs.h <<_ACEOF
24446 #define PC_FROM_UCONTEXT $pc_field
24449 { echo "$as_me:$LINENO: result: $pc_field" >&5
24450 echo "${ECHO_T}$pc_field" >&6; }
24451 pc_field_found=true
24453 echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24462 if ! $pc_field_found; then
24463 { echo "$as_me:$LINENO: WARNING: Could not find the PC. Will not output failed addresses..." >&5
24464 echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
24467 # These are what's needed by logging.h.in and raw_logging.h.in
24485 # Write generated configuration file
24486 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
24488 cat >confcache <<\_ACEOF
24489 # This file is a shell script that caches the results of configure
24490 # tests run on this system so they can be shared between configure
24491 # scripts and configure runs, see configure's option --config-cache.
24492 # It is not useful on other systems. If it contains results you don't
24493 # want to keep, you may remove or edit it.
24495 # config.status only pays attention to the cache file if you give it
24496 # the --recheck option to rerun configure.
24498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24500 # following values.
24504 # The following way of writing the cache mishandles newlines in values,
24505 # but we know of no workaround that is simple, portable, and efficient.
24506 # So, we kill variables containing newlines.
24507 # Ultrix sh set writes to stderr and can't be redirected directly,
24508 # and sets the high bit in the cache file unless we assign to the vars.
24510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24511 eval ac_val=\$$ac_var
24515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24519 _ | IFS | as_nl) ;; #(
24520 *) $as_unset $ac_var ;;
24526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24527 *${as_nl}ac_space=\ *)
24528 # `set' does not quote correctly, so add quotes (double-quote
24529 # substitution turns \\\\ into \\, and sed turns \\ into \).
24532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24535 # `set' quotes correctly as required by POSIX, so do not add quotes.
24536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24550 if test -w "$cache_file"; then
24551 test "x$cache_file" != "x/dev/null" &&
24552 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24553 echo "$as_me: updating cache $cache_file" >&6;}
24554 cat confcache >$cache_file
24556 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24557 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24563 # Let make expand exec_prefix.
24564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24566 DEFS=-DHAVE_CONFIG_H
24570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24571 # 1. Remove the extension, and $U if already installed.
24572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24573 ac_i=`echo "$ac_i" | sed "$ac_script"`
24574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24575 # will be set to the directory where LIBOBJS objects are built.
24576 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24577 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24579 LIBOBJS=$ac_libobjs
24581 LTLIBOBJS=$ac_ltlibobjs
24584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24585 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24586 Usually this means the macro was only invoked conditionally." >&5
24587 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24588 Usually this means the macro was only invoked conditionally." >&2;}
24589 { (exit 1); exit 1; }; }
24591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24592 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24593 Usually this means the macro was only invoked conditionally." >&5
24594 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24595 Usually this means the macro was only invoked conditionally." >&2;}
24596 { (exit 1); exit 1; }; }
24598 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24599 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24600 Usually this means the macro was only invoked conditionally." >&5
24601 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24602 Usually this means the macro was only invoked conditionally." >&2;}
24603 { (exit 1); exit 1; }; }
24605 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
24606 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
24607 Usually this means the macro was only invoked conditionally." >&5
24608 echo "$as_me: error: conditional \"GCC\" was never defined.
24609 Usually this means the macro was only invoked conditionally." >&2;}
24610 { (exit 1); exit 1; }; }
24612 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
24613 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24614 Usually this means the macro was only invoked conditionally." >&5
24615 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24616 Usually this means the macro was only invoked conditionally." >&2;}
24617 { (exit 1); exit 1; }; }
24619 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
24620 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
24621 Usually this means the macro was only invoked conditionally." >&5
24622 echo "$as_me: error: conditional \"X86_64\" was never defined.
24623 Usually this means the macro was only invoked conditionally." >&2;}
24624 { (exit 1); exit 1; }; }
24627 : ${CONFIG_STATUS=./config.status}
24628 ac_clean_files_save=$ac_clean_files
24629 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24630 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24631 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24632 cat >$CONFIG_STATUS <<_ACEOF
24634 # Generated by $as_me.
24635 # Run this file to recreate the current configuration.
24636 # Compiler output produced by configure, useful for debugging
24637 # configure, is in config.log if it exists.
24640 ac_cs_recheck=false
24642 SHELL=\${CONFIG_SHELL-$SHELL}
24645 cat >>$CONFIG_STATUS <<\_ACEOF
24646 ## --------------------- ##
24647 ## M4sh Initialization. ##
24648 ## --------------------- ##
24650 # Be more Bourne compatible
24651 DUALCASE=1; export DUALCASE # for MKS sh
24652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24655 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24656 # is contrary to our usage. Disable this feature.
24657 alias -g '${1+"$@"}'='"$@"'
24658 setopt NO_GLOB_SUBST
24660 case `(set -o) 2>/dev/null` in
24661 *posix*) set -o posix ;;
24670 # Avoid depending upon Character Ranges.
24671 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24672 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24673 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24674 as_cr_digits='0123456789'
24675 as_cr_alnum=$as_cr_Letters$as_cr_digits
24677 # The user is always right.
24678 if test "${PATH_SEPARATOR+set}" != set; then
24679 echo "#! /bin/sh" >conf$$.sh
24680 echo "exit 0" >>conf$$.sh
24682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24690 # Support unset when possible.
24691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24699 # We need space, tab and new line, in precisely that order. Quoting is
24700 # there to prevent editors from complaining about space-tab.
24701 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24702 # splitting by setting IFS to empty value.)
24707 # Find who we are. Look in the path if we contain no directory separator.
24709 *[\\/]* ) as_myself=$0 ;;
24710 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24711 for as_dir in $PATH
24714 test -z "$as_dir" && as_dir=.
24715 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24721 # We did not find ourselves, most probably we were run as `sh COMMAND'
24722 # in which case we are not to be found in the path.
24723 if test "x$as_myself" = x; then
24726 if test ! -f "$as_myself"; then
24727 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24728 { (exit 1); exit 1; }
24731 # Work around bugs in pre-3.0 UWIN ksh.
24732 for as_var in ENV MAIL MAILPATH
24733 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24741 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24742 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24743 LC_TELEPHONE LC_TIME
24745 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24746 eval $as_var=C; export $as_var
24748 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24752 # Required to use basename.
24753 if expr a : '\(a\)' >/dev/null 2>&1 &&
24754 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24760 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24761 as_basename=basename
24767 # Name of the executable.
24768 as_me=`$as_basename -- "$0" ||
24769 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24770 X"$0" : 'X\(//\)$' \| \
24771 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24773 sed '/^.*\/\([^/][^/]*\)\/*$/{
24792 as_lineno_1=$LINENO
24793 as_lineno_2=$LINENO
24794 test "x$as_lineno_1" != "x$as_lineno_2" &&
24795 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24797 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24798 # uniformly replaced by the line number. The first 'sed' inserts a
24799 # line-number line after each line using $LINENO; the second 'sed'
24800 # does the real work. The second script uses 'N' to pair each
24801 # line-number line with the line containing $LINENO, and appends
24802 # trailing '-' during substitution so that $LINENO is not a special
24803 # case at line end.
24804 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24805 # scripts with optimization help from Paolo Bonzini. Blame Lee
24806 # E. McMahon (1931-1989) for sed's syntax. :-)
24818 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24821 ' >$as_me.lineno &&
24822 chmod +x "$as_me.lineno" ||
24823 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24824 { (exit 1); exit 1; }; }
24826 # Don't try to exec as it changes $[0], causing all sort of problems
24827 # (the dirname of $[0] is not the place where we might find the
24828 # original and so on. Autoconf is especially sensitive to this).
24829 . "./$as_me.lineno"
24830 # Exit status is that of the last command.
24835 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24841 ECHO_C= ECHO_N= ECHO_T=
24842 case `echo -n x` in
24844 case `echo 'x\c'` in
24845 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24852 if expr a : '\(a\)' >/dev/null 2>&1 &&
24853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24859 rm -f conf$$ conf$$.exe conf$$.file
24860 if test -d conf$$.dir; then
24861 rm -f conf$$.dir/conf$$.file
24867 if ln -s conf$$.file conf$$ 2>/dev/null; then
24869 # ... but there are two gotchas:
24870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24872 # In both cases, we have to default to `cp -p'.
24873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24875 elif ln conf$$.file conf$$ 2>/dev/null; then
24880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24881 rmdir conf$$.dir 2>/dev/null
24883 if mkdir -p . 2>/dev/null; then
24886 test -d ./-p && rmdir ./-p
24890 if test -x / >/dev/null 2>&1; then
24891 as_test_x='test -x'
24893 if ls -dL / >/dev/null 2>&1; then
24900 if test -d "$1"; then
24906 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24907 ???[sx]*):;;*)false;;esac;fi
24911 as_executable_p=$as_test_x
24913 # Sed expression to map a string onto a valid CPP name.
24914 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24916 # Sed expression to map a string onto a valid variable name.
24917 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24922 # Save the log message, to keep $[0] and so on meaningful, and to
24923 # report actual input values of CONFIG_FILES etc. instead of their
24924 # values after options handling.
24926 This file was extended by glog $as_me 0.1.2, which was
24927 generated by GNU Autoconf 2.61. Invocation command line was
24929 CONFIG_FILES = $CONFIG_FILES
24930 CONFIG_HEADERS = $CONFIG_HEADERS
24931 CONFIG_LINKS = $CONFIG_LINKS
24932 CONFIG_COMMANDS = $CONFIG_COMMANDS
24935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24940 cat >>$CONFIG_STATUS <<_ACEOF
24941 # Files that config.status was made for.
24942 config_files="$ac_config_files"
24943 config_headers="$ac_config_headers"
24944 config_commands="$ac_config_commands"
24948 cat >>$CONFIG_STATUS <<\_ACEOF
24950 \`$as_me' instantiates files from templates according to the
24951 current configuration.
24953 Usage: $0 [OPTIONS] [FILE]...
24955 -h, --help print this help, then exit
24956 -V, --version print version number and configuration settings, then exit
24957 -q, --quiet do not print progress messages
24958 -d, --debug don't remove temporary files
24959 --recheck update $as_me by reconfiguring in the same conditions
24960 --file=FILE[:TEMPLATE]
24961 instantiate the configuration file FILE
24962 --header=FILE[:TEMPLATE]
24963 instantiate the configuration header FILE
24965 Configuration files:
24968 Configuration headers:
24971 Configuration commands:
24974 Report bugs to <bug-autoconf@gnu.org>."
24977 cat >>$CONFIG_STATUS <<_ACEOF
24979 glog config.status 0.1.2
24980 configured by $0, generated by GNU Autoconf 2.61,
24981 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24983 Copyright (C) 2006 Free Software Foundation, Inc.
24984 This config.status script is free software; the Free Software Foundation
24985 gives unlimited permission to copy, distribute and modify it."
24993 cat >>$CONFIG_STATUS <<\_ACEOF
24994 # If no file are specified by the user, then we need to provide default
24995 # value. By we need to know if files were specified by the user.
25001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25002 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25013 # Handling of the options.
25014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25016 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25017 echo "$ac_cs_version"; exit ;;
25018 --debug | --debu | --deb | --de | --d | -d )
25020 --file | --fil | --fi | --f )
25022 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25023 ac_need_defaults=false;;
25024 --header | --heade | --head | --hea )
25026 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25027 ac_need_defaults=false;;
25029 # Conflict between --help and --header
25030 { echo "$as_me: error: ambiguous option: $1
25031 Try \`$0 --help' for more information." >&2
25032 { (exit 1); exit 1; }; };;
25033 --help | --hel | -h )
25034 echo "$ac_cs_usage"; exit ;;
25035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25039 # This is an error.
25040 -*) { echo "$as_me: error: unrecognized option: $1
25041 Try \`$0 --help' for more information." >&2
25042 { (exit 1); exit 1; }; } ;;
25044 *) ac_config_targets="$ac_config_targets $1"
25045 ac_need_defaults=false ;;
25051 ac_configure_extra_args=
25053 if $ac_cs_silent; then
25055 ac_configure_extra_args="$ac_configure_extra_args --silent"
25059 cat >>$CONFIG_STATUS <<_ACEOF
25060 if \$ac_cs_recheck; then
25061 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25062 CONFIG_SHELL=$SHELL
25063 export CONFIG_SHELL
25064 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25068 cat >>$CONFIG_STATUS <<\_ACEOF
25072 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25073 ## Running $as_me. ##
25079 cat >>$CONFIG_STATUS <<_ACEOF
25083 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25087 cat >>$CONFIG_STATUS <<\_ACEOF
25089 # Handling of arguments.
25090 for ac_config_target in $ac_config_targets
25092 case $ac_config_target in
25093 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25094 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25096 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25097 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25098 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25099 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25101 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25102 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25103 { (exit 1); exit 1; }; };;
25108 # If the user did not use the arguments to specify the items to instantiate,
25109 # then the envvar interface is used. Set only those that are not.
25110 # We use the long form for the default assignment because of an extremely
25111 # bizarre bug on SunOS 4.1.3.
25112 if $ac_need_defaults; then
25113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25118 # Have a temporary directory for convenience. Make it in the build tree
25119 # simply because there is no reason against having it here, and in addition,
25120 # creating and moving files from /tmp can sometimes cause problems.
25121 # Hook for its removal unless debugging.
25122 # Note that there is a small window in which the directory will not be cleaned:
25123 # after its creation but before its name has been assigned to `$tmp'.
25127 trap 'exit_status=$?
25128 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25130 trap '{ (exit 1); exit 1; }' 1 2 13 15
25132 # Create a (secure) tmp directory for tmp files.
25135 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25136 test -n "$tmp" && test -d "$tmp"
25139 tmp=./conf$$-$RANDOM
25140 (umask 077 && mkdir "$tmp")
25143 echo "$me: cannot create a temporary directory in ." >&2
25144 { (exit 1); exit 1; }
25148 # Set up the sed scripts for CONFIG_FILES section.
25151 # No need to generate the scripts if there are no CONFIG_FILES.
25152 # This happens for instance when ./config.status config.h
25153 if test -n "$CONFIG_FILES"; then
25160 for ac_last_try in false false false false false :; do
25161 cat >conf$$subs.sed <<_ACEOF
25162 SHELL!$SHELL$ac_delim
25163 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25164 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25165 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25166 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25167 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25168 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25169 exec_prefix!$exec_prefix$ac_delim
25170 prefix!$prefix$ac_delim
25171 program_transform_name!$program_transform_name$ac_delim
25172 bindir!$bindir$ac_delim
25173 sbindir!$sbindir$ac_delim
25174 libexecdir!$libexecdir$ac_delim
25175 datarootdir!$datarootdir$ac_delim
25176 datadir!$datadir$ac_delim
25177 sysconfdir!$sysconfdir$ac_delim
25178 sharedstatedir!$sharedstatedir$ac_delim
25179 localstatedir!$localstatedir$ac_delim
25180 includedir!$includedir$ac_delim
25181 oldincludedir!$oldincludedir$ac_delim
25182 docdir!$docdir$ac_delim
25183 infodir!$infodir$ac_delim
25184 htmldir!$htmldir$ac_delim
25185 dvidir!$dvidir$ac_delim
25186 pdfdir!$pdfdir$ac_delim
25187 psdir!$psdir$ac_delim
25188 libdir!$libdir$ac_delim
25189 localedir!$localedir$ac_delim
25190 mandir!$mandir$ac_delim
25191 DEFS!$DEFS$ac_delim
25192 ECHO_C!$ECHO_C$ac_delim
25193 ECHO_N!$ECHO_N$ac_delim
25194 ECHO_T!$ECHO_T$ac_delim
25195 LIBS!$LIBS$ac_delim
25196 build_alias!$build_alias$ac_delim
25197 host_alias!$host_alias$ac_delim
25198 target_alias!$target_alias$ac_delim
25199 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25200 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25201 INSTALL_DATA!$INSTALL_DATA$ac_delim
25202 am__isrc!$am__isrc$ac_delim
25203 CYGPATH_W!$CYGPATH_W$ac_delim
25204 PACKAGE!$PACKAGE$ac_delim
25205 VERSION!$VERSION$ac_delim
25206 ACLOCAL!$ACLOCAL$ac_delim
25207 AUTOCONF!$AUTOCONF$ac_delim
25208 AUTOMAKE!$AUTOMAKE$ac_delim
25209 AUTOHEADER!$AUTOHEADER$ac_delim
25210 MAKEINFO!$MAKEINFO$ac_delim
25211 install_sh!$install_sh$ac_delim
25212 STRIP!$STRIP$ac_delim
25213 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25214 mkdir_p!$mkdir_p$ac_delim
25216 SET_MAKE!$SET_MAKE$ac_delim
25217 am__leading_dot!$am__leading_dot$ac_delim
25218 AMTAR!$AMTAR$ac_delim
25219 am__tar!$am__tar$ac_delim
25220 am__untar!$am__untar$ac_delim
25222 CFLAGS!$CFLAGS$ac_delim
25223 LDFLAGS!$LDFLAGS$ac_delim
25224 CPPFLAGS!$CPPFLAGS$ac_delim
25225 ac_ct_CC!$ac_ct_CC$ac_delim
25226 EXEEXT!$EXEEXT$ac_delim
25227 OBJEXT!$OBJEXT$ac_delim
25228 DEPDIR!$DEPDIR$ac_delim
25229 am__include!$am__include$ac_delim
25230 am__quote!$am__quote$ac_delim
25231 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25232 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25233 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25234 CCDEPMODE!$CCDEPMODE$ac_delim
25235 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25236 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25239 CXXFLAGS!$CXXFLAGS$ac_delim
25240 ac_ct_CXX!$ac_ct_CXX$ac_delim
25241 CXXDEPMODE!$CXXDEPMODE$ac_delim
25242 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25243 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25244 GCC_TRUE!$GCC_TRUE$ac_delim
25245 GCC_FALSE!$GCC_FALSE$ac_delim
25246 build!$build$ac_delim
25247 build_cpu!$build_cpu$ac_delim
25248 build_vendor!$build_vendor$ac_delim
25249 build_os!$build_os$ac_delim
25250 host!$host$ac_delim
25251 host_cpu!$host_cpu$ac_delim
25252 host_vendor!$host_vendor$ac_delim
25253 host_os!$host_os$ac_delim
25255 GREP!$GREP$ac_delim
25256 EGREP!$EGREP$ac_delim
25257 LN_S!$LN_S$ac_delim
25258 ECHO!$ECHO$ac_delim
25261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25263 elif $ac_last_try; then
25264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25265 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25266 { (exit 1); exit 1; }; }
25268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25272 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25273 if test -n "$ac_eof"; then
25274 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25275 ac_eof=`expr $ac_eof + 1`
25278 cat >>$CONFIG_STATUS <<_ACEOF
25279 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25283 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25284 s/^/s,@/; s/!/@,|#_!!_#|/
25287 s/'"$ac_delim"'$/,g/; t
25289 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25290 ' >>$CONFIG_STATUS <conf$$subs.sed
25291 rm -f conf$$subs.sed
25292 cat >>$CONFIG_STATUS <<_ACEOF
25298 for ac_last_try in false false false false false :; do
25299 cat >conf$$subs.sed <<_ACEOF
25301 RANLIB!$RANLIB$ac_delim
25302 DSYMUTIL!$DSYMUTIL$ac_delim
25303 NMEDIT!$NMEDIT$ac_delim
25304 CXXCPP!$CXXCPP$ac_delim
25306 FFLAGS!$FFLAGS$ac_delim
25307 ac_ct_F77!$ac_ct_F77$ac_delim
25308 LIBTOOL!$LIBTOOL$ac_delim
25309 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25310 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25311 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25312 X86_64_TRUE!$X86_64_TRUE$ac_delim
25313 X86_64_FALSE!$X86_64_FALSE$ac_delim
25314 acx_pthread_config!$acx_pthread_config$ac_delim
25315 PTHREAD_CC!$PTHREAD_CC$ac_delim
25316 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25317 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25318 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25319 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25320 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25321 ac_google_namespace!$ac_google_namespace$ac_delim
25322 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25323 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25324 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25325 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25326 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25327 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25328 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25329 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25330 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25331 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25332 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25333 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25334 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25335 LIBOBJS!$LIBOBJS$ac_delim
25336 LTLIBOBJS!$LTLIBOBJS$ac_delim
25339 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then
25341 elif $ac_last_try; then
25342 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25343 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25344 { (exit 1); exit 1; }; }
25346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25350 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25351 if test -n "$ac_eof"; then
25352 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25353 ac_eof=`expr $ac_eof + 1`
25356 cat >>$CONFIG_STATUS <<_ACEOF
25357 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25361 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25362 s/^/s,@/; s/!/@,|#_!!_#|/
25365 s/'"$ac_delim"'$/,g/; t
25367 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25368 ' >>$CONFIG_STATUS <conf$$subs.sed
25369 rm -f conf$$subs.sed
25370 cat >>$CONFIG_STATUS <<_ACEOF
25377 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25378 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25379 # trailing colons and then remove the whole line if VPATH becomes empty
25380 # (actually we leave an empty line to preserve line numbers).
25381 if test "x$srcdir" = x.; then
25382 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25383 s/:*\$(srcdir):*/:/
25384 s/:*\${srcdir}:*/:/
25386 s/^\([^=]*=[ ]*\):*/\1/
25392 cat >>$CONFIG_STATUS <<\_ACEOF
25393 fi # test -n "$CONFIG_FILES"
25396 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25399 :[FHLC]) ac_mode=$ac_tag; continue;;
25401 case $ac_mode$ac_tag in
25403 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25404 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25405 { (exit 1); exit 1; }; };;
25406 :[FH]-) ac_tag=-:-;;
25407 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25424 -) ac_f="$tmp/stdin";;
25425 *) # Look for the file first in the build tree, then in the source tree
25426 # (if the path is not absolute). The absolute path cannot be DOS-style,
25427 # because $ac_f cannot contain `:'.
25431 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25433 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25434 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25435 { (exit 1); exit 1; }; };;
25437 ac_file_inputs="$ac_file_inputs $ac_f"
25440 # Let's still pretend it is `configure' which instantiates (i.e., don't
25441 # use $as_me), people would be surprised to read:
25442 # /* config.h. Generated by config.status. */
25443 configure_input="Generated from "`IFS=:
25444 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25445 if test x"$ac_file" != x-; then
25446 configure_input="$ac_file. $configure_input"
25447 { echo "$as_me:$LINENO: creating $ac_file" >&5
25448 echo "$as_me: creating $ac_file" >&6;}
25452 *:-:* | *:-) cat >"$tmp/stdin";;
25457 ac_dir=`$as_dirname -- "$ac_file" ||
25458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25459 X"$ac_file" : 'X\(//\)[^/]' \| \
25460 X"$ac_file" : 'X\(//\)$' \| \
25461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25467 /^X\(\/\/\)[^/].*/{
25482 -*) as_dir=./$as_dir;;
25484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25489 *) as_qdir=$as_dir;;
25491 as_dirs="'$as_qdir' $as_dirs"
25492 as_dir=`$as_dirname -- "$as_dir" ||
25493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25494 X"$as_dir" : 'X\(//\)[^/]' \| \
25495 X"$as_dir" : 'X\(//\)$' \| \
25496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25502 /^X\(\/\/\)[^/].*/{
25515 test -d "$as_dir" && break
25517 test -z "$as_dirs" || eval "mkdir $as_dirs"
25518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25519 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25520 { (exit 1); exit 1; }; }; }
25524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25527 # A ".." for each directory in $ac_dir_suffix.
25528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25529 case $ac_top_builddir_sub in
25530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25534 ac_abs_top_builddir=$ac_pwd
25535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25536 # for backward compatibility:
25537 ac_top_builddir=$ac_top_build_prefix
25540 .) # We are building in place.
25542 ac_top_srcdir=$ac_top_builddir_sub
25543 ac_abs_top_srcdir=$ac_pwd ;;
25544 [\\/]* | ?:[\\/]* ) # Absolute name.
25545 ac_srcdir=$srcdir$ac_dir_suffix;
25546 ac_top_srcdir=$srcdir
25547 ac_abs_top_srcdir=$srcdir ;;
25548 *) # Relative name.
25549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25550 ac_top_srcdir=$ac_top_build_prefix$srcdir
25551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25566 ac_MKDIR_P=$MKDIR_P
25568 [\\/$]* | ?:[\\/]* ) ;;
25569 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25573 cat >>$CONFIG_STATUS <<\_ACEOF
25574 # If the template does not know about datarootdir, expand it.
25575 # FIXME: This hack should be removed a few years after 2.60.
25576 ac_datarootdir_hack=; ac_datarootdir_seen=
25578 case `sed -n '/datarootdir/ {
25587 ' $ac_file_inputs` in
25588 *datarootdir*) ac_datarootdir_seen=yes;;
25589 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25590 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25591 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25593 cat >>$CONFIG_STATUS <<_ACEOF
25594 ac_datarootdir_hack='
25595 s&@datadir@&$datadir&g
25596 s&@docdir@&$docdir&g
25597 s&@infodir@&$infodir&g
25598 s&@localedir@&$localedir&g
25599 s&@mandir@&$mandir&g
25600 s&\\\${datarootdir}&$datarootdir&g' ;;
25604 # Neutralize VPATH when `$srcdir' = `.'.
25605 # Shell code in configure.ac might set extrasub.
25606 # FIXME: do we really want to maintain this feature?
25607 cat >>$CONFIG_STATUS <<_ACEOF
25611 cat >>$CONFIG_STATUS <<\_ACEOF
25613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25614 s&@configure_input@&$configure_input&;t t
25615 s&@top_builddir@&$ac_top_builddir_sub&;t t
25616 s&@srcdir@&$ac_srcdir&;t t
25617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25618 s&@top_srcdir@&$ac_top_srcdir&;t t
25619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25620 s&@builddir@&$ac_builddir&;t t
25621 s&@abs_builddir@&$ac_abs_builddir&;t t
25622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25623 s&@INSTALL@&$ac_INSTALL&;t t
25624 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25625 $ac_datarootdir_hack
25626 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25628 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25629 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25631 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25632 which seems to be undefined. Please make sure it is defined." >&5
25633 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25634 which seems to be undefined. Please make sure it is defined." >&2;}
25638 -) cat "$tmp/out"; rm -f "$tmp/out";;
25639 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25648 # Transform confdefs.h into a sed script `conftest.defines', that
25649 # substitutes the proper values into config.h.in to produce config.h.
25650 rm -f conftest.defines conftest.tail
25651 # First, append a space to every undef/define line, to ease matching.
25652 echo 's/$/ /' >conftest.defines
25653 # Then, protect against being on the right side of a sed subst, or in
25654 # an unquoted here document, in config.status. If some macros were
25655 # called several times there might be several #defines for the same
25656 # symbol, which is useless. But do not sort them, since the last
25657 # AC_DEFINE must be honored.
25658 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25659 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25660 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25661 # PARAMS is the parameter list in the macro definition--in most cases, it's
25662 # just an empty string.
25663 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25664 ac_dB='\\)[ (].*,\\1define\\2'
25672 s/^[ ]*#[ ]*define[ ][ ]*//
25677 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25678 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25679 ' >>conftest.defines
25681 # Remove the space that was appended to ease matching.
25682 # Then replace #undef with comments. This is necessary, for
25683 # example, in the case of _POSIX_SOURCE, which is predefined and required
25684 # on some systems where configure will not decide to define it.
25685 # (The regexp can be short, since the line contains either #define or #undef.)
25687 s,^[ #]*u.*,/* & */,' >>conftest.defines
25689 # Break up conftest.defines:
25690 ac_max_sed_lines=50
25692 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25693 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25694 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25696 ac_in='$ac_file_inputs'
25697 ac_out='"$tmp/out1"'
25698 ac_nxt='"$tmp/out2"'
25702 # Write a here document:
25703 cat >>$CONFIG_STATUS <<_ACEOF
25704 # First, check the format of the line:
25705 cat >"\$tmp/defines.sed" <<\\CEOF
25706 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25707 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25711 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25713 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25714 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25715 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25716 grep . conftest.tail >/dev/null || break
25717 rm -f conftest.defines
25718 mv conftest.tail conftest.defines
25720 rm -f conftest.defines conftest.tail
25722 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25723 cat >>$CONFIG_STATUS <<\_ACEOF
25724 if test x"$ac_file" != x-; then
25725 echo "/* $configure_input */" >"$tmp/config.h"
25726 cat "$ac_result" >>"$tmp/config.h"
25727 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25728 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25729 echo "$as_me: $ac_file is unchanged" >&6;}
25732 mv "$tmp/config.h" $ac_file
25735 echo "/* $configure_input */"
25739 # Compute $ac_file's index in $config_headers.
25742 for _am_header in $config_headers :; do
25743 case $_am_header in
25744 $_am_arg | $_am_arg:* )
25747 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25750 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25751 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25752 X"$_am_arg" : 'X\(//\)[^/]' \| \
25753 X"$_am_arg" : 'X\(//\)$' \| \
25754 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25760 /^X\(\/\/\)[^/].*/{
25772 s/.*/./; q'`/stamp-h$_am_stamp_count
25775 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25776 echo "$as_me: executing $ac_file commands" >&6;}
25781 case $ac_file$ac_mode in
25782 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25783 # Strip MF so we end up with the name of the file.
25784 mf=`echo "$mf" | sed -e 's/:.*$//'`
25785 # Check whether this is an Automake generated Makefile or not.
25786 # We used to match only the files named `Makefile.in', but
25787 # some people rename them; so instead we look at the file content.
25788 # Grep'ing the first line is not enough: some people post-process
25789 # each Makefile.in and add a new line on top of each file to say so.
25790 # Grep'ing the whole file is not good either: AIX grep has a line
25791 # limit of 2048, but all sed's we know have understand at least 4000.
25792 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25793 dirpart=`$as_dirname -- "$mf" ||
25794 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25795 X"$mf" : 'X\(//\)[^/]' \| \
25796 X"$mf" : 'X\(//\)$' \| \
25797 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25803 /^X\(\/\/\)[^/].*/{
25819 # Extract the definition of DEPDIR, am__include, and am__quote
25820 # from the Makefile without running `make'.
25821 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25822 test -z "$DEPDIR" && continue
25823 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25824 test -z "am__include" && continue
25825 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25826 # When using ansi2knr, U may be empty or an underscore; expand it
25827 U=`sed -n 's/^U = //p' < "$mf"`
25828 # Find all dependency output files, they are included files with
25829 # $(DEPDIR) in their names. We invoke sed twice because it is the
25830 # simplest approach to changing $(DEPDIR) to its actual value in the
25832 for file in `sed -n "
25833 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25834 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25835 # Make sure the directory exists.
25836 test -f "$dirpart/$file" && continue
25837 fdir=`$as_dirname -- "$file" ||
25838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25839 X"$file" : 'X\(//\)[^/]' \| \
25840 X"$file" : 'X\(//\)$' \| \
25841 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25847 /^X\(\/\/\)[^/].*/{
25860 { as_dir=$dirpart/$fdir
25862 -*) as_dir=./$as_dir;;
25864 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25868 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25869 *) as_qdir=$as_dir;;
25871 as_dirs="'$as_qdir' $as_dirs"
25872 as_dir=`$as_dirname -- "$as_dir" ||
25873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25874 X"$as_dir" : 'X\(//\)[^/]' \| \
25875 X"$as_dir" : 'X\(//\)$' \| \
25876 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25882 /^X\(\/\/\)[^/].*/{
25895 test -d "$as_dir" && break
25897 test -z "$as_dirs" || eval "mkdir $as_dirs"
25898 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25899 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25900 { (exit 1); exit 1; }; }; }
25901 # echo "creating $dirpart/$file"
25902 echo '# dummy' > "$dirpart/$file"
25911 { (exit 0); exit 0; }
25913 chmod +x $CONFIG_STATUS
25914 ac_clean_files=$ac_clean_files_save
25917 # configure is writing to config.log, and then calls config.status.
25918 # config.status does its own redirection, appending to config.log.
25919 # Unfortunately, on DOS this fails, as config.log is still kept open
25920 # by configure, so config.status won't be able to write to it; its
25921 # output is simply discarded. So we exec the FD to /dev/null,
25922 # effectively closing config.log, so it can be properly (re)opened and
25923 # appended to by config.status. When coming back to configure, we
25924 # need to make the FD available again.
25925 if test "$no_create" != yes; then
25927 ac_config_status_args=
25928 test "$silent" = yes &&
25929 ac_config_status_args="$ac_config_status_args --quiet"
25931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25934 # would make configure fail if this is the last instruction.
25935 $ac_cs_success || { (exit 1); exit 1; }