2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.2.1.
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.2.1'
732 PACKAGE_STRING='glog 0.2.1'
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
892 ac_google_start_namespace
893 ac_google_end_namespace
895 ac_cv_cxx_using_operator
896 ac_cv___attribute___noreturn
897 ac_cv___attribute___printf_4_5
898 ac_cv_have___builtin_expect
900 ac_cv_have_systypes_h
901 ac_cv_have_inttypes_h
916 ac_precious_vars='build_alias
933 # Initialize some variables set by options.
935 ac_init_version=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
945 program_transform_name=s,x,x,
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1223 -site=* | --site=* | --sit=*)
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1250 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_$ac_package=no ;;
1268 # Obsolete; use --with-x.
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 # Be sure to have absolute directory names.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1397 ac_srcdir_defaulted=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1433 \`configure' configures glog 0.2.1 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of glog 0.2.1:";;
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --disable-dependency-tracking speeds up one-time build
1511 --enable-dependency-tracking do not reject slow dependency extractors
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --enable-frame-pointers On x86_64 systems, compile with
1518 -fno-omit-frame-pointer (see INSTALL)
1519 --enable-namespace=FOO to define these Google
1520 classes in the FOO namespace. --disable-namespace
1521 to define them in the global namespace. Default
1522 is to define them in namespace google.
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-pic try to use only PIC/non-PIC objects [default=use
1530 --with-tags[=TAGS] include additional configurations [automatic]
1531 --with-gflags=GFLAGS_DIR
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1542 CXX C++ compiler command
1543 CXXFLAGS C++ compiler flags
1544 CXXCPP C++ preprocessor
1545 F77 Fortran 77 compiler command
1546 FFLAGS Fortran 77 compiler flags
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1551 Report bugs to <opensource@google.com>.
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" || continue
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 glog configure 0.2.1
1613 generated by GNU Autoconf 2.61
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1622 cat >config.log <<_ACEOF
1623 This file contains any messages produced by compilers while
1624 running configure, to aid debugging if configure makes a mistake.
1626 It was created by glog $as_me 0.2.1, which was
1627 generated by GNU Autoconf 2.61. Invocation command line was
1639 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1640 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1641 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1642 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1643 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1645 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1646 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1648 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1649 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1650 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1651 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1652 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1653 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1654 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 echo "PATH: $as_dir"
1679 # Keep a trace of the command line.
1680 # Strip out --no-create and --no-recursion so they do not pile up.
1681 # Strip out --silent because we don't want to record it for future runs.
1682 # Also quote any args containing shell meta-characters.
1683 # Make two passes to allow for proper duplicate-argument suppression.
1687 ac_must_keep_next=false
1693 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1695 | -silent | --silent | --silen | --sile | --sil)
1698 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1701 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1704 if test $ac_must_keep_next = true; then
1705 ac_must_keep_next=false # Got value, back to normal.
1708 *=* | --config-cache | -C | -disable-* | --disable-* \
1709 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1710 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1711 | -with-* | --with-* | -without-* | --without-* | --x)
1712 case "$ac_configure_args0 " in
1713 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1716 -* ) ac_must_keep_next=true ;;
1719 ac_configure_args="$ac_configure_args '$ac_arg'"
1724 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1725 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727 # When interrupted or exit'd, cleanup temporary files, and complete
1728 # config.log. We remove comments because anyway the quotes in there
1729 # would cause problems or look ugly.
1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1732 trap 'exit_status=$?
1733 # Save into config.log some information that might help in debugging.
1738 ## ---------------- ##
1739 ## Cache variables. ##
1740 ## ---------------- ##
1743 # The following way of writing the cache mishandles newlines in values,
1745 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1746 eval ac_val=\$$ac_var
1750 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1751 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1754 _ | IFS | as_nl) ;; #(
1755 *) $as_unset $ac_var ;;
1760 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1761 *${as_nl}ac_space=\ *)
1763 "s/'\''/'\''\\\\'\'''\''/g;
1764 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1775 ## ----------------- ##
1776 ## Output variables. ##
1777 ## ----------------- ##
1780 for ac_var in $ac_subst_vars
1782 eval ac_val=\$$ac_var
1784 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 echo "$ac_var='\''$ac_val'\''"
1790 if test -n "$ac_subst_files"; then
1792 ## ------------------- ##
1793 ## File substitutions. ##
1794 ## ------------------- ##
1797 for ac_var in $ac_subst_files
1799 eval ac_val=\$$ac_var
1801 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 echo "$ac_var='\''$ac_val'\''"
1808 if test -s confdefs.h; then
1818 test "$ac_signal" != 0 &&
1819 echo "$as_me: caught signal $ac_signal"
1820 echo "$as_me: exit $exit_status"
1822 rm -f core *.core core.conftest.* &&
1823 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1826 for ac_signal in 1 2 13 15; do
1827 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1831 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1832 rm -f -r conftest* confdefs.h
1834 # Predefined preprocessor variables.
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_NAME "$PACKAGE_NAME"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_STRING "$PACKAGE_STRING"
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1861 # Let the site file select an alternate cache file if it wants to.
1862 # Prefer explicitly selected file to automatically selected ones.
1863 if test -n "$CONFIG_SITE"; then
1864 set x "$CONFIG_SITE"
1865 elif test "x$prefix" != xNONE; then
1866 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1868 set x "$ac_default_prefix/share/config.site" \
1869 "$ac_default_prefix/etc/config.site"
1874 if test -r "$ac_site_file"; then
1875 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1876 echo "$as_me: loading site script $ac_site_file" >&6;}
1877 sed 's/^/| /' "$ac_site_file" >&5
1882 if test -r "$cache_file"; then
1883 # Some versions of bash will fail to source /dev/null (special
1884 # files actually), so we avoid doing that.
1885 if test -f "$cache_file"; then
1886 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1887 echo "$as_me: loading cache $cache_file" >&6;}
1889 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1890 *) . "./$cache_file";;
1894 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1895 echo "$as_me: creating cache $cache_file" >&6;}
1899 # Check that the precious variables saved in the cache have kept the same
1901 ac_cache_corrupted=false
1902 for ac_var in $ac_precious_vars; do
1903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1904 eval ac_new_set=\$ac_env_${ac_var}_set
1905 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1906 eval ac_new_val=\$ac_env_${ac_var}_value
1907 case $ac_old_set,$ac_new_set in
1909 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1910 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1911 ac_cache_corrupted=: ;;
1913 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1915 ac_cache_corrupted=: ;;
1918 if test "x$ac_old_val" != "x$ac_new_val"; then
1919 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1920 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1921 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1922 echo "$as_me: former value: $ac_old_val" >&2;}
1923 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1924 echo "$as_me: current value: $ac_new_val" >&2;}
1925 ac_cache_corrupted=:
1928 # Pass precious variables to config.status.
1929 if test "$ac_new_set" = set; then
1931 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 *) ac_arg=$ac_var=$ac_new_val ;;
1934 case " $ac_configure_args " in
1935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1936 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1940 if $ac_cache_corrupted; then
1941 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1942 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1943 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1944 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1945 { (exit 1); exit 1; }; }
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 # The argument here is just something that should be in the current directory
1980 # (for sanity checking)
1982 am__api_version='1.10'
1985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1986 if test -f "$ac_dir/install-sh"; then
1988 ac_install_sh="$ac_aux_dir/install-sh -c"
1990 elif test -f "$ac_dir/install.sh"; then
1992 ac_install_sh="$ac_aux_dir/install.sh -c"
1994 elif test -f "$ac_dir/shtool"; then
1996 ac_install_sh="$ac_aux_dir/shtool install -c"
2000 if test -z "$ac_aux_dir"; then
2001 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2002 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2003 { (exit 1); exit 1; }; }
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2015 # Find a good install program. We prefer a C program (faster),
2016 # so one script is as good as another. But avoid the broken or
2017 # incompatible versions:
2018 # SysV /etc/install, /usr/sbin/install
2019 # SunOS /usr/etc/install
2020 # IRIX /sbin/install
2022 # AmigaOS /C/install, which installs bootblocks on floppy discs
2023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2026 # OS/2's system install, which has a completely different semantic
2027 # ./install, which can be erroneously created by make from ./install.sh.
2028 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2029 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2030 if test -z "$INSTALL"; then
2031 if test "${ac_cv_path_install+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir=.
2039 # Account for people who put trailing slashes in PATH elements.
2041 ./ | .// | /cC/* | \
2042 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2043 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2046 # OSF1 and SCO ODT 3.0 have their own names for install.
2047 # Don't use installbsd from OSF since it installs stuff as root
2049 for ac_prog in ginstall scoinst install; do
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2052 if test $ac_prog = install &&
2053 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2054 # AIX install. It has an incompatible calling convention.
2056 elif test $ac_prog = install &&
2057 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2058 # program-specific install script used by HP pwplus--don't use.
2061 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2074 if test "${ac_cv_path_install+set}" = set; then
2075 INSTALL=$ac_cv_path_install
2077 # As a last resort, use the slow shell script. Don't cache a
2078 # value for INSTALL within a source directory, because that will
2079 # break other packages using the cache if that directory is
2080 # removed, or if the value is a relative name.
2081 INSTALL=$ac_install_sh
2084 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2085 echo "${ECHO_T}$INSTALL" >&6; }
2087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2088 # It thinks the first close brace ends the variable substitution.
2089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2095 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2096 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2099 echo timestamp > conftest.file
2100 # Do `set' in a subshell so we don't clobber the current shell's
2101 # arguments. Must try -L first in case configure is actually a
2102 # symlink; some systems play weird games with the mod time of symlinks
2103 # (eg FreeBSD returns the mod time of the symlink's containing
2106 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2107 if test "$*" = "X"; then
2109 set X `ls -t $srcdir/configure conftest.file`
2112 if test "$*" != "X $srcdir/configure conftest.file" \
2113 && test "$*" != "X conftest.file $srcdir/configure"; then
2115 # If neither matched, then we have a broken ls. This can happen
2116 # if, for instance, CONFIG_SHELL is bash and it inherits a
2117 # broken ls alias from the environment. This has actually
2118 # happened. Such a system could not be considered "sane".
2119 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2120 alias in your environment" >&5
2121 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2122 alias in your environment" >&2;}
2123 { (exit 1); exit 1; }; }
2126 test "$2" = conftest.file
2132 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2133 Check your system clock" >&5
2134 echo "$as_me: error: newly created file is older than distributed files!
2135 Check your system clock" >&2;}
2136 { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6; }
2140 test "$program_prefix" != NONE &&
2141 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2142 # Use a double $ so make ignores it.
2143 test "$program_suffix" != NONE &&
2144 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2145 # Double any \ or $. echo might interpret backslashes.
2146 # By default was `s,x,x', remove it if useless.
2147 cat <<\_ACEOF >conftest.sed
2148 s/[\\$]/&&/g;s/;s,x,x,$//
2150 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2153 # expand $ac_aux_dir to an absolute path
2154 am_aux_dir=`cd $ac_aux_dir && pwd`
2156 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2157 # Use eval to expand $SHELL
2158 if eval "$MISSING --run true"; then
2159 am_missing_run="$MISSING --run "
2162 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2163 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2166 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2167 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2168 if test -z "$MKDIR_P"; then
2169 if test "${ac_cv_path_mkdir+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2176 test -z "$as_dir" && as_dir=.
2177 for ac_prog in mkdir gmkdir; do
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2180 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2181 'mkdir (GNU coreutils) '* | \
2182 'mkdir (coreutils) '* | \
2183 'mkdir (fileutils) '4.1*)
2184 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2194 if test "${ac_cv_path_mkdir+set}" = set; then
2195 MKDIR_P="$ac_cv_path_mkdir -p"
2197 # As a last resort, use the slow shell script. Don't cache a
2198 # value for MKDIR_P within a source directory, because that will
2199 # break other packages using the cache if that directory is
2200 # removed, or if the value is a relative name.
2201 test -d ./--version && rmdir ./--version
2202 MKDIR_P="$ac_install_sh -d"
2205 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2206 echo "${ECHO_T}$MKDIR_P" >&6; }
2210 [\\/$]* | ?:[\\/]*) ;;
2211 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2214 for ac_prog in gawk mawk nawk awk
2216 # Extract the first word of "$ac_prog", so it can be a program name with args.
2217 set dummy $ac_prog; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_AWK+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 if test -n "$AWK"; then
2224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_AWK="$ac_prog"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 if test -n "$AWK"; then
2245 { echo "$as_me:$LINENO: result: $AWK" >&5
2246 echo "${ECHO_T}$AWK" >&6; }
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2253 test -n "$AWK" && break
2256 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2257 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2258 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2259 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.make <<\_ACEOF
2265 @echo '@@@%%%=$(MAKE)=@@@%%%'
2267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2268 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2270 eval ac_cv_prog_make_${ac_make}_set=yes;;
2272 eval ac_cv_prog_make_${ac_make}_set=no;;
2276 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2277 { echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6; }
2281 { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2283 SET_MAKE="MAKE=${MAKE-make}"
2286 rm -rf .tst 2>/dev/null
2287 mkdir .tst 2>/dev/null
2288 if test -d .tst; then
2293 rmdir .tst 2>/dev/null
2295 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2296 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2297 # is not polluted with repeated "-I."
2298 am__isrc=' -I$(srcdir)'
2299 # test to see if srcdir already configured
2300 if test -f $srcdir/config.status; then
2301 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2302 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2303 { (exit 1); exit 1; }; }
2307 # test whether we have cygpath
2308 if test -z "$CYGPATH_W"; then
2309 if (cygpath --version) >/dev/null 2>/dev/null; then
2310 CYGPATH_W='cygpath -w'
2317 # Define the identity of the package.
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE "$PACKAGE"
2327 cat >>confdefs.h <<_ACEOF
2328 #define VERSION "$VERSION"
2331 # Some tools Automake needs.
2333 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2336 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2339 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2342 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2345 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2347 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2349 # Installed binaries are usually stripped using `strip' when the user
2350 # run `make install-strip'. However `strip' might not be the right
2351 # tool to use in cross-compilation environments, therefore Automake
2352 # will honor the `STRIP' environment variable to overrule this program.
2353 if test "$cross_compiling" != no; then
2354 if test -n "$ac_tool_prefix"; then
2355 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2356 set dummy ${ac_tool_prefix}strip; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_STRIP+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$STRIP"; then
2363 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 STRIP=$ac_cv_prog_STRIP
2383 if test -n "$STRIP"; then
2384 { echo "$as_me:$LINENO: result: $STRIP" >&5
2385 echo "${ECHO_T}$STRIP" >&6; }
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2393 if test -z "$ac_cv_prog_STRIP"; then
2395 # Extract the first word of "strip", so it can be a program name with args.
2396 set dummy strip; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$ac_ct_STRIP"; then
2403 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_ac_ct_STRIP="strip"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2423 if test -n "$ac_ct_STRIP"; then
2424 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2425 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2427 { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2431 if test "x$ac_ct_STRIP" = x; then
2434 case $cross_compiling:$ac_tool_warned in
2436 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet. If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&5
2439 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2440 whose name does not start with the host triplet. If you think this
2441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2442 ac_tool_warned=yes ;;
2447 STRIP="$ac_cv_prog_STRIP"
2451 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2453 # We need awk for the "check" target. The system "awk" is bad on
2455 # Always define AMTAR for backward compatibility.
2457 AMTAR=${AMTAR-"${am_missing_run}tar"}
2459 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2465 ac_config_headers="$ac_config_headers src/config.h"
2468 # Checks for programs.
2470 ac_cpp='$CPP $CPPFLAGS'
2471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$CC"; then
2483 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 if test -n "$CC"; then
2504 { echo "$as_me:$LINENO: result: $CC" >&5
2505 echo "${ECHO_T}$CC" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2513 if test -z "$ac_cv_prog_CC"; then
2515 # Extract the first word of "gcc", so it can be a program name with args.
2516 set dummy gcc; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_CC="gcc"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545 echo "${ECHO_T}$ac_ct_CC" >&6; }
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2551 if test "x$ac_ct_CC" = x; then
2554 case $cross_compiling:$ac_tool_warned in
2556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet. If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&5
2559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet. If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2562 ac_tool_warned=yes ;;
2570 if test -z "$CC"; then
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_CC="${ac_tool_prefix}cc"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 if test -n "$CC"; then
2601 { echo "$as_me:$LINENO: result: $CC" >&5
2602 echo "${ECHO_T}$CC" >&6; }
2604 { echo "$as_me:$LINENO: result: no" >&5
2605 echo "${ECHO_T}no" >&6; }
2611 if test -z "$CC"; then
2612 # Extract the first word of "cc", so it can be a program name with args.
2613 set dummy cc; ac_word=$2
2614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2616 if test "${ac_cv_prog_CC+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2631 ac_prog_rejected=yes
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 if test $ac_prog_rejected = yes; then
2643 # We found a bogon in the path, so make sure we never use it.
2644 set dummy $ac_cv_prog_CC
2646 if test $# != 0; then
2647 # We chose a different compiler from the bogus one.
2648 # However, it has the same basename, so the bogon will be chosen
2649 # first if we set CC to just the basename; use the full file name.
2651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2657 if test -n "$CC"; then
2658 { echo "$as_me:$LINENO: result: $CC" >&5
2659 echo "${ECHO_T}$CC" >&6; }
2661 { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2667 if test -z "$CC"; then
2668 if test -n "$ac_tool_prefix"; then
2669 for ac_prog in cl.exe
2671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 if test -n "$CC"; then
2700 { echo "$as_me:$LINENO: result: $CC" >&5
2701 echo "${ECHO_T}$CC" >&6; }
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2708 test -n "$CC" && break
2711 if test -z "$CC"; then
2713 for ac_prog in cl.exe
2715 # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_ac_ct_CC="$ac_prog"
2733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2745 echo "${ECHO_T}$ac_ct_CC" >&6; }
2747 { echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6; }
2752 test -n "$ac_ct_CC" && break
2755 if test "x$ac_ct_CC" = x; then
2758 case $cross_compiling:$ac_tool_warned in
2760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2761 whose name does not start with the host triplet. If you think this
2762 configuration is useful to you, please write to autoconf@gnu.org." >&5
2763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2764 whose name does not start with the host triplet. If you think this
2765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2766 ac_tool_warned=yes ;;
2775 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: no acceptable C compiler found in \$PATH
2778 See \`config.log' for more details." >&2;}
2779 { (exit 1); exit 1; }; }
2781 # Provide some information about the compiler.
2782 echo "$as_me:$LINENO: checking for C compiler version" >&5
2783 ac_compiler=`set X $ac_compile; echo $2`
2784 { (ac_try="$ac_compiler --version >&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 --version >&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); }
2804 { (ac_try="$ac_compiler -V >&5"
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_compiler -V >&5") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }
2815 cat >conftest.$ac_ext <<_ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2830 ac_clean_files_save=$ac_clean_files
2831 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2832 # Try to create an executable without -o first, disregard a.out.
2833 # It will help us diagnose broken compilers, and finding out an intuition
2835 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2836 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2837 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2839 # List of possible output files, starting from the most likely.
2840 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2841 # only as a last resort. b.out is created by i960 compilers.
2842 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2844 # The IRIX 6 linker writes into existing files which may not be
2845 # executable, retaining their permissions. Remove them first so a
2846 # subsequent execution test works.
2848 for ac_file in $ac_files
2851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2852 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2857 if { (ac_try="$ac_link_default"
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_link_default") 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; then
2867 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2868 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2869 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2870 # so that the user can short-circuit this test for compilers unknown to
2872 for ac_file in $ac_files ''
2874 test -f "$ac_file" || continue
2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2879 # We found the default executable, but exeext='' is most
2883 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2885 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2887 # We set ac_cv_exeext here because the later test for it is not
2888 # safe: cross compilers may not add the suffix if given an `-o'
2889 # argument, so we may need to know it at that point already.
2890 # Even if this section looks crufty: it has the advantage of
2897 test "$ac_cv_exeext" = no && ac_cv_exeext=
2903 { echo "$as_me:$LINENO: result: $ac_file" >&5
2904 echo "${ECHO_T}$ac_file" >&6; }
2905 if test -z "$ac_file"; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: C compiler cannot create executables
2912 See \`config.log' for more details." >&2;}
2913 { (exit 77); exit 77; }; }
2916 ac_exeext=$ac_cv_exeext
2918 # Check that the compiler produces executables we can run. If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2921 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2922 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2923 # If not cross compiling, check that we can run a simple program.
2924 if test "$cross_compiling" != yes; then
2925 if { ac_try='./$ac_file'
2926 { (case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_try") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2937 if test "$cross_compiling" = maybe; then
2940 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2941 If you meant to cross compile, use \`--host'.
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot run C compiled programs.
2944 If you meant to cross compile, use \`--host'.
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
2950 { echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6; }
2953 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2954 ac_clean_files=$ac_clean_files_save
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2958 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2959 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2960 echo "${ECHO_T}$cross_compiling" >&6; }
2962 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2963 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2964 if { (ac_try="$ac_link"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_link") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; then
2974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2978 for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." >&2;}
2992 { (exit 1); exit 1; }; }
2995 rm -f conftest$ac_cv_exeext
2996 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2997 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2999 rm -f conftest.$ac_ext
3000 EXEEXT=$ac_cv_exeext
3002 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3003 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3004 if test "${ac_cv_objext+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3022 rm -f conftest.o conftest.obj
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 for ac_file in conftest.o conftest.obj conftest.*; do
3034 test -f "$ac_file" || continue;
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3048 See \`config.log' for more details." >&2;}
3049 { (exit 1); exit 1; }; }
3052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3054 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3055 echo "${ECHO_T}$ac_cv_objext" >&6; }
3056 OBJEXT=$ac_cv_objext
3058 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3059 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3060 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3111 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3112 GCC=`test $ac_compiler_gnu = yes && echo yes`
3113 ac_test_CFLAGS=${CFLAGS+set}
3114 ac_save_CFLAGS=$CFLAGS
3115 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_cc_g+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 ac_save_c_werror_flag=$ac_c_werror_flag
3121 ac_c_werror_flag=yes
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>conftest.er1
3148 grep -v '^ *+' conftest.er1 >conftest.err
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } && {
3153 test -z "$ac_c_werror_flag" ||
3154 test ! -s conftest.err
3155 } && test -s conftest.$ac_objext; then
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3250 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3252 if test "$ac_test_CFLAGS" = set; then
3253 CFLAGS=$ac_save_CFLAGS
3254 elif test $ac_cv_prog_cc_g = yes; then
3255 if test "$GCC" = yes; then
3261 if test "$GCC" = yes; then
3267 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3268 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cc_c89+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 ac_cv_prog_cc_c89=no
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3282 #include <sys/types.h>
3283 #include <sys/stat.h>
3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3285 struct buf { int x; };
3286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287 static char *e (p, i)
3293 static char *f (char * (*g) (char **, int), char **p, ...)
3298 s = g (p, va_arg (v,int));
3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3304 function prototypes and stuff, but not '\xHH' hex character constants.
3305 These don't provoke an error unfortunately, instead are silently treated
3306 as 'x'. The following induces an error, until -std is added to get
3307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3308 array size at least. It's necessary to write '\x00'==0 to get something
3309 that's true only with -std. */
3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313 inside strings and character constants. */
3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 CC="$ac_save_CC $ac_arg"
3335 rm -f conftest.$ac_objext
3336 if { (ac_try="$ac_compile"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_compile") 2>conftest.er1
3344 grep -v '^ *+' conftest.er1 >conftest.err
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && {
3349 test -z "$ac_c_werror_flag" ||
3350 test ! -s conftest.err
3351 } && test -s conftest.$ac_objext; then
3352 ac_cv_prog_cc_c89=$ac_arg
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f core conftest.err conftest.$ac_objext
3361 test "x$ac_cv_prog_cc_c89" != "xno" && break
3363 rm -f conftest.$ac_ext
3368 case "x$ac_cv_prog_cc_c89" in
3370 { echo "$as_me:$LINENO: result: none needed" >&5
3371 echo "${ECHO_T}none needed" >&6; } ;;
3373 { echo "$as_me:$LINENO: result: unsupported" >&5
3374 echo "${ECHO_T}unsupported" >&6; } ;;
3376 CC="$CC $ac_cv_prog_cc_c89"
3377 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3378 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 DEPDIR="${am__leading_dot}deps"
3389 ac_config_commands="$ac_config_commands depfiles"
3392 am_make=${MAKE-make}
3393 cat > confinc << 'END'
3398 # If we don't find an include directive, just comment out the code.
3399 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3400 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3404 # First try GNU make style include.
3405 echo "include confinc" > confmf
3406 # We grep out `Entering directory' and `Leaving directory'
3407 # messages which can occur if `w' ends up in MAKEFLAGS.
3408 # In particular we don't look at `^make:' because GNU make might
3409 # be invoked under some other name (usually "gmake"), in which
3410 # case it prints its new name instead of `make'.
3411 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3416 # Now try BSD make style include.
3417 if test "$am__include" = "#"; then
3418 echo '.include "confinc"' > confmf
3419 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3420 am__include=.include
3427 { echo "$as_me:$LINENO: result: $_am_result" >&5
3428 echo "${ECHO_T}$_am_result" >&6; }
3429 rm -f confinc confmf
3431 # Check whether --enable-dependency-tracking was given.
3432 if test "${enable_dependency_tracking+set}" = set; then
3433 enableval=$enable_dependency_tracking;
3436 if test "x$enable_dependency_tracking" != xno; then
3437 am_depcomp="$ac_aux_dir/depcomp"
3440 if test "x$enable_dependency_tracking" != xno; then
3450 depcc="$CC" am_compiler_list=
3452 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3453 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3454 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3458 # We make a subdir and do the tests there. Otherwise we can end up
3459 # making bogus files that we don't know about and never remove. For
3460 # instance it was reported that on HP-UX the gcc test will end up
3461 # making a dummy file named `D' -- because `-MD' means `put the output
3464 # Copy depcomp to subdir because otherwise we won't find it if we're
3465 # using a relative directory.
3466 cp "$am_depcomp" conftest.dir
3468 # We will build objects and dependencies in a subdirectory because
3469 # it helps to detect inapplicable dependency modes. For instance
3470 # both Tru64's cc and ICC support -MD to output dependencies as a
3471 # side effect of compilation, but ICC will put the dependencies in
3472 # the current directory while Tru64 will put them in the object
3476 am_cv_CC_dependencies_compiler_type=none
3477 if test "$am_compiler_list" = ""; then
3478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3480 for depmode in $am_compiler_list; do
3481 # Setup a source with many dependencies, because some compilers
3482 # like to wrap large dependency lists on column 80 (with \), and
3483 # we should not choose a depcomp mode which is confused by this.
3485 # We need to recreate these files for each test, as the compiler may
3486 # overwrite some of them when testing with obscure command lines.
3487 # This happens at least with the AIX C compiler.
3489 for i in 1 2 3 4 5 6; do
3490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3491 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3492 # Solaris 8's {/usr,}/bin/sh.
3493 touch sub/conftst$i.h
3495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3499 # after this tag, mechanisms are not by side-effect, so they'll
3500 # only be used when explicitly requested
3501 if test "x$enable_dependency_tracking" = xyes; then
3509 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3510 # mode. It turns out that the SunPro C++ compiler does not properly
3511 # handle `-M -o', and we need to detect this.
3512 if depmode=$depmode \
3513 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3515 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3516 >/dev/null 2>conftest.err &&
3517 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3519 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3521 # icc doesn't choke on unknown options, it will just issue warnings
3522 # or remarks (even with -Werror). So we grep stderr for any message
3523 # that says an option was ignored or not supported.
3524 # When given -MP, icc 7.0 and 7.1 complain thusly:
3525 # icc: Command line warning: ignoring option '-M'; no argument required
3526 # The diagnosis changed in icc 8.0:
3527 # icc: Command line remark: option '-MP' not supported
3528 if (grep 'ignoring option' conftest.err ||
3529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3530 am_cv_CC_dependencies_compiler_type=$depmode
3539 am_cv_CC_dependencies_compiler_type=none
3543 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3544 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3545 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3548 test "x$enable_dependency_tracking" != xno \
3549 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3551 am__fastdepCC_FALSE='#'
3553 am__fastdepCC_TRUE='#'
3554 am__fastdepCC_FALSE=
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3564 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3565 # On Suns, sometimes $CPP names a directory.
3566 if test -n "$CPP" && test -d "$CPP"; then
3569 if test -z "$CPP"; then
3570 if test "${ac_cv_prog_CPP+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 # Double quotes because CPP needs to be expanded
3574 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3577 for ac_c_preproc_warn_flag in '' yes
3579 # Use a header file that comes with gcc, so configuring glibc
3580 # with a fresh cross-compiler works.
3581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582 # <limits.h> exists even on freestanding compilers.
3583 # On the NeXT, cc -E runs the code through the compiler's parser,
3584 # not just through cpp. "Syntax error" is here to catch this case.
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3592 # include <limits.h>
3594 # include <assert.h>
3598 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3606 grep -v '^ *+' conftest.er1 >conftest.err
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } >/dev/null && {
3611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3612 test ! -s conftest.err
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 # Broken: fails on valid input.
3623 rm -f conftest.err conftest.$ac_ext
3625 # OK, works on sane cases. Now check whether nonexistent headers
3626 # can be detected and how.
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633 #include <ac_nonexistent.h>
3635 if { (ac_try="$ac_cpp conftest.$ac_ext"
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } >/dev/null && {
3648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3651 # Broken: success on invalid input.
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 # Passes both tests.
3662 rm -f conftest.err conftest.$ac_ext
3665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3666 rm -f conftest.err conftest.$ac_ext
3667 if $ac_preproc_ok; then
3679 { echo "$as_me:$LINENO: result: $CPP" >&5
3680 echo "${ECHO_T}$CPP" >&6; }
3682 for ac_c_preproc_warn_flag in '' yes
3684 # Use a header file that comes with gcc, so configuring glibc
3685 # with a fresh cross-compiler works.
3686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687 # <limits.h> exists even on freestanding compilers.
3688 # On the NeXT, cc -E runs the code through the compiler's parser,
3689 # not just through cpp. "Syntax error" is here to catch this case.
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3697 # include <limits.h>
3699 # include <assert.h>
3703 if { (ac_try="$ac_cpp conftest.$ac_ext"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } >/dev/null && {
3716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 # Broken: fails on valid input.
3728 rm -f conftest.err conftest.$ac_ext
3730 # OK, works on sane cases. Now check whether nonexistent headers
3731 # can be detected and how.
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #include <ac_nonexistent.h>
3740 if { (ac_try="$ac_cpp conftest.$ac_ext"
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748 grep -v '^ *+' conftest.er1 >conftest.err
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } >/dev/null && {
3753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3754 test ! -s conftest.err
3756 # Broken: success on invalid input.
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 # Passes both tests.
3767 rm -f conftest.err conftest.$ac_ext
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then
3775 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3776 See \`config.log' for more details." >&5
3777 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3778 See \`config.log' for more details." >&2;}
3779 { (exit 1); exit 1; }; }
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 ac_cpp='$CXXCPP $CPPFLAGS'
3790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3793 if test -z "$CXX"; then
3794 if test -n "$CCC"; then
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3804 if test "${ac_cv_prog_CXX+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -n "$CXX"; then
3808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 if test -n "$CXX"; then
3829 { echo "$as_me:$LINENO: result: $CXX" >&5
3830 echo "${ECHO_T}$CXX" >&6; }
3832 { echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6; }
3837 test -n "$CXX" && break
3840 if test -z "$CXX"; then
3842 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3848 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 if test -n "$ac_ct_CXX"; then
3852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_ac_ct_CXX="$ac_prog"
3862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3872 if test -n "$ac_ct_CXX"; then
3873 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3874 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3876 { echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6; }
3881 test -n "$ac_ct_CXX" && break
3884 if test "x$ac_ct_CXX" = x; then
3887 case $cross_compiling:$ac_tool_warned in
3889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3890 whose name does not start with the host triplet. If you think this
3891 configuration is useful to you, please write to autoconf@gnu.org." >&5
3892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3893 whose name does not start with the host triplet. If you think this
3894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3895 ac_tool_warned=yes ;;
3903 # Provide some information about the compiler.
3904 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3905 ac_compiler=`set X $ac_compile; echo $2`
3906 { (ac_try="$ac_compiler --version >&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 --version >&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); }
3926 { (ac_try="$ac_compiler -V >&5"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_compiler -V >&5") 2>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }
3937 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3938 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3939 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3960 rm -f conftest.$ac_objext
3961 if { (ac_try="$ac_compile"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_compile") 2>conftest.er1
3969 grep -v '^ *+' conftest.er1 >conftest.err
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && {
3974 test -z "$ac_cxx_werror_flag" ||
3975 test ! -s conftest.err
3976 } && test -s conftest.$ac_objext; then
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3989 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3990 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3991 GXX=`test $ac_compiler_gnu = yes && echo yes`
3992 ac_test_CXXFLAGS=${CXXFLAGS+set}
3993 ac_save_CXXFLAGS=$CXXFLAGS
3994 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3995 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3996 if test "${ac_cv_prog_cxx_g+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4000 ac_cxx_werror_flag=yes
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_compile") 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } && {
4032 test -z "$ac_cxx_werror_flag" ||
4033 test ! -s conftest.err
4034 } && test -s conftest.$ac_objext; then
4035 ac_cv_prog_cxx_g=yes
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4056 rm -f conftest.$ac_objext
4057 if { (ac_try="$ac_compile"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_compile") 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_cxx_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest.$ac_objext; then
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4095 rm -f conftest.$ac_objext
4096 if { (ac_try="$ac_compile"
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } && {
4109 test -z "$ac_cxx_werror_flag" ||
4110 test ! -s conftest.err
4111 } && test -s conftest.$ac_objext; then
4112 ac_cv_prog_cxx_g=yes
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4130 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4131 if test "$ac_test_CXXFLAGS" = set; then
4132 CXXFLAGS=$ac_save_CXXFLAGS
4133 elif test $ac_cv_prog_cxx_g = yes; then
4134 if test "$GXX" = yes; then
4140 if test "$GXX" = yes; then
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 depcc="$CXX" am_compiler_list=
4154 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4155 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4156 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4160 # We make a subdir and do the tests there. Otherwise we can end up
4161 # making bogus files that we don't know about and never remove. For
4162 # instance it was reported that on HP-UX the gcc test will end up
4163 # making a dummy file named `D' -- because `-MD' means `put the output
4166 # Copy depcomp to subdir because otherwise we won't find it if we're
4167 # using a relative directory.
4168 cp "$am_depcomp" conftest.dir
4170 # We will build objects and dependencies in a subdirectory because
4171 # it helps to detect inapplicable dependency modes. For instance
4172 # both Tru64's cc and ICC support -MD to output dependencies as a
4173 # side effect of compilation, but ICC will put the dependencies in
4174 # the current directory while Tru64 will put them in the object
4178 am_cv_CXX_dependencies_compiler_type=none
4179 if test "$am_compiler_list" = ""; then
4180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4182 for depmode in $am_compiler_list; do
4183 # Setup a source with many dependencies, because some compilers
4184 # like to wrap large dependency lists on column 80 (with \), and
4185 # we should not choose a depcomp mode which is confused by this.
4187 # We need to recreate these files for each test, as the compiler may
4188 # overwrite some of them when testing with obscure command lines.
4189 # This happens at least with the AIX C compiler.
4191 for i in 1 2 3 4 5 6; do
4192 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194 # Solaris 8's {/usr,}/bin/sh.
4195 touch sub/conftst$i.h
4197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4201 # after this tag, mechanisms are not by side-effect, so they'll
4202 # only be used when explicitly requested
4203 if test "x$enable_dependency_tracking" = xyes; then
4211 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4212 # mode. It turns out that the SunPro C++ compiler does not properly
4213 # handle `-M -o', and we need to detect this.
4214 if depmode=$depmode \
4215 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4218 >/dev/null 2>conftest.err &&
4219 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4223 # icc doesn't choke on unknown options, it will just issue warnings
4224 # or remarks (even with -Werror). So we grep stderr for any message
4225 # that says an option was ignored or not supported.
4226 # When given -MP, icc 7.0 and 7.1 complain thusly:
4227 # icc: Command line warning: ignoring option '-M'; no argument required
4228 # The diagnosis changed in icc 8.0:
4229 # icc: Command line remark: option '-MP' not supported
4230 if (grep 'ignoring option' conftest.err ||
4231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4232 am_cv_CXX_dependencies_compiler_type=$depmode
4241 am_cv_CXX_dependencies_compiler_type=none
4245 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4246 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4247 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4250 test "x$enable_dependency_tracking" != xno \
4251 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4252 am__fastdepCXX_TRUE=
4253 am__fastdepCXX_FALSE='#'
4255 am__fastdepCXX_TRUE='#'
4256 am__fastdepCXX_FALSE=
4260 if test "$GCC" = yes; then
4267 # let the Makefile know if we're gcc
4269 # Check whether --enable-shared was given.
4270 if test "${enable_shared+set}" = set; then
4271 enableval=$enable_shared; p=${PACKAGE-default}
4273 yes) enable_shared=yes ;;
4274 no) enable_shared=no ;;
4277 # Look at the argument we got. We use all the common list separators.
4278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4279 for pkg in $enableval; do
4281 if test "X$pkg" = "X$p"; then
4293 # Check whether --enable-static was given.
4294 if test "${enable_static+set}" = set; then
4295 enableval=$enable_static; p=${PACKAGE-default}
4297 yes) enable_static=yes ;;
4298 no) enable_static=no ;;
4301 # Look at the argument we got. We use all the common list separators.
4302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4303 for pkg in $enableval; do
4305 if test "X$pkg" = "X$p"; then
4317 # Check whether --enable-fast-install was given.
4318 if test "${enable_fast_install+set}" = set; then
4319 enableval=$enable_fast_install; p=${PACKAGE-default}
4321 yes) enable_fast_install=yes ;;
4322 no) enable_fast_install=no ;;
4324 enable_fast_install=no
4325 # Look at the argument we got. We use all the common list separators.
4326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4327 for pkg in $enableval; do
4329 if test "X$pkg" = "X$p"; then
4330 enable_fast_install=yes
4337 enable_fast_install=yes
4341 # Make sure we can run config.sub.
4342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4343 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4344 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4345 { (exit 1); exit 1; }; }
4347 { echo "$as_me:$LINENO: checking build system type" >&5
4348 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4349 if test "${ac_cv_build+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 ac_build_alias=$build_alias
4353 test "x$ac_build_alias" = x &&
4354 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4355 test "x$ac_build_alias" = x &&
4356 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4357 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4358 { (exit 1); exit 1; }; }
4359 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4360 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4361 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4362 { (exit 1); exit 1; }; }
4365 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4366 echo "${ECHO_T}$ac_cv_build" >&6; }
4367 case $ac_cv_build in
4369 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4370 echo "$as_me: error: invalid value of canonical build" >&2;}
4371 { (exit 1); exit 1; }; };;
4374 ac_save_IFS=$IFS; IFS='-'
4380 # Remember, the first character of IFS is used to create $*,
4381 # except with old shells:
4384 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4387 { echo "$as_me:$LINENO: checking host system type" >&5
4388 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4389 if test "${ac_cv_host+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test "x$host_alias" = x; then
4393 ac_cv_host=$ac_cv_build
4395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4396 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4397 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4398 { (exit 1); exit 1; }; }
4402 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4403 echo "${ECHO_T}$ac_cv_host" >&6; }
4406 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4407 echo "$as_me: error: invalid value of canonical host" >&2;}
4408 { (exit 1); exit 1; }; };;
4411 ac_save_IFS=$IFS; IFS='-'
4417 # Remember, the first character of IFS is used to create $*,
4418 # except with old shells:
4421 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4424 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4425 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4426 if test "${lt_cv_path_SED+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 # Loop through the user's path and test for sed and gsed.
4430 # Then use that list of sed's as ones to test for truncation.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for lt_ac_prog in sed gsed; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4439 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4447 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4448 # along with /bin/sed that truncates output.
4449 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4450 test ! -f $lt_ac_sed && continue
4451 cat /dev/null > conftest.in
4453 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4454 # Check for GNU sed and select it if it is found.
4455 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4456 lt_cv_path_SED=$lt_ac_sed
4460 cat conftest.in conftest.in >conftest.tmp
4461 mv conftest.tmp conftest.in
4462 cp conftest.in conftest.nl
4464 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4465 cmp -s conftest.out conftest.nl || break
4466 # 10000 chars as input seems more than enough
4467 test $lt_ac_count -gt 10 && break
4468 lt_ac_count=`expr $lt_ac_count + 1`
4469 if test $lt_ac_count -gt $lt_ac_max; then
4470 lt_ac_max=$lt_ac_count
4471 lt_cv_path_SED=$lt_ac_sed
4480 { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4483 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4484 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4485 if test "${ac_cv_path_GREP+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 # Extract the first word of "grep ggrep" to use in msg output
4489 if test -z "$GREP"; then
4490 set dummy grep ggrep; ac_prog_name=$2
4491 if test "${ac_cv_path_GREP+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 ac_path_GREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in grep ggrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4512 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 ac_count=`expr $ac_count + 1`
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP="$ac_path_GREP"
4525 ac_path_GREP_max=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534 $ac_path_GREP_found && break 3
4544 GREP="$ac_cv_path_GREP"
4545 if test -z "$GREP"; then
4546 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4547 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4548 { (exit 1); exit 1; }; }
4552 ac_cv_path_GREP=$GREP
4557 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4558 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4559 GREP="$ac_cv_path_GREP"
4562 { echo "$as_me:$LINENO: checking for egrep" >&5
4563 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4564 if test "${ac_cv_path_EGREP+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4568 then ac_cv_path_EGREP="$GREP -E"
4570 # Extract the first word of "egrep" to use in msg output
4571 if test -z "$EGREP"; then
4572 set dummy egrep; ac_prog_name=$2
4573 if test "${ac_cv_path_EGREP+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 ac_path_EGREP_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in egrep; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4586 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4587 # Check for GNU ac_path_EGREP and select it if it is found.
4588 # Check for GNU $ac_path_EGREP
4589 case `"$ac_path_EGREP" --version 2>&1` in
4591 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4594 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 echo 'EGREP' >> "conftest.nl"
4601 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 ac_count=`expr $ac_count + 1`
4604 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_EGREP="$ac_path_EGREP"
4607 ac_path_EGREP_max=$ac_count
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4616 $ac_path_EGREP_found && break 3
4626 EGREP="$ac_cv_path_EGREP"
4627 if test -z "$EGREP"; then
4628 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4629 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4630 { (exit 1); exit 1; }; }
4634 ac_cv_path_EGREP=$EGREP
4640 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4641 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4642 EGREP="$ac_cv_path_EGREP"
4646 # Check whether --with-gnu-ld was given.
4647 if test "${with_gnu_ld+set}" = set; then
4648 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4654 if test "$GCC" = yes; then
4655 # Check if gcc -print-prog-name=ld gives a path.
4656 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4657 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4660 # gcc leaves a trailing carriage return which upsets mingw
4661 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4663 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4666 # Accept absolute paths.
4668 re_direlt='/[^/][^/]*/\.\./'
4669 # Canonicalize the pathname of ld
4670 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4671 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4672 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4674 test -z "$LD" && LD="$ac_prog"
4677 # If it fails, then pretend we aren't using GCC.
4681 # If it is relative, then search for the first ld in PATH.
4685 elif test "$with_gnu_ld" = yes; then
4686 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4687 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4689 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4690 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4692 if test "${lt_cv_path_LD+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test -z "$LD"; then
4696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4697 for ac_dir in $PATH; do
4699 test -z "$ac_dir" && ac_dir=.
4700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4701 lt_cv_path_LD="$ac_dir/$ac_prog"
4702 # Check to see if the program is GNU ld. I'd rather use --version,
4703 # but apparently some variants of GNU ld only accept -v.
4704 # Break only if it was the GNU/non-GNU ld that we prefer.
4705 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4706 *GNU* | *'with BFD'*)
4707 test "$with_gnu_ld" != no && break
4710 test "$with_gnu_ld" != yes && break
4717 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4722 if test -n "$LD"; then
4723 { echo "$as_me:$LINENO: result: $LD" >&5
4724 echo "${ECHO_T}$LD" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4729 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4730 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4731 { (exit 1); exit 1; }; }
4732 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4733 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4734 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4738 case `$LD -v 2>&1 </dev/null` in
4739 *GNU* | *'with BFD'*)
4740 lt_cv_prog_gnu_ld=yes
4743 lt_cv_prog_gnu_ld=no
4747 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4748 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4749 with_gnu_ld=$lt_cv_prog_gnu_ld
4752 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4753 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4754 if test "${lt_cv_ld_reload_flag+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 lt_cv_ld_reload_flag='-r'
4759 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4760 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4761 reload_flag=$lt_cv_ld_reload_flag
4762 case $reload_flag in
4764 *) reload_flag=" $reload_flag" ;;
4766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4769 if test "$GCC" = yes; then
4770 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4772 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4777 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4778 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4779 if test "${lt_cv_path_NM+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 if test -n "$NM"; then
4783 # Let the user override the test.
4786 lt_nm_to_check="${ac_tool_prefix}nm"
4787 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4788 lt_nm_to_check="$lt_nm_to_check nm"
4790 for lt_tmp_nm in $lt_nm_to_check; do
4791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4792 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4794 test -z "$ac_dir" && ac_dir=.
4795 tmp_nm="$ac_dir/$lt_tmp_nm"
4796 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4797 # Check to see if the nm accepts a BSD-compat flag.
4798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4799 # nm: unknown option "B" ignored
4800 # Tru64's nm complains that /dev/null is an invalid object file
4801 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4802 */dev/null* | *'Invalid file or object type'*)
4803 lt_cv_path_NM="$tmp_nm -B"
4807 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4809 lt_cv_path_NM="$tmp_nm -p"
4813 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4814 continue # so that we can try to find one that supports BSD flags
4823 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4826 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4827 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4830 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4831 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4833 if test "$LN_S" = "ln -s"; then
4834 { echo "$as_me:$LINENO: result: yes" >&5
4835 echo "${ECHO_T}yes" >&6; }
4837 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4838 echo "${ECHO_T}no, using $LN_S" >&6; }
4841 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4842 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4843 if test "${lt_cv_deplibs_check_method+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 lt_cv_file_magic_cmd='$MAGIC_CMD'
4847 lt_cv_file_magic_test_file=
4848 lt_cv_deplibs_check_method='unknown'
4849 # Need to set the preceding variable on all platforms that support
4850 # interlibrary dependencies.
4851 # 'none' -- dependencies not supported.
4852 # `unknown' -- same as none, but documents that we really don't know.
4853 # 'pass_all' -- all dependencies passed with no checks.
4854 # 'test_compile' -- check by making test program.
4855 # 'file_magic [[regex]]' -- check by looking for files in library path
4856 # which responds to the $file_magic_cmd with a given extended regex.
4857 # If you have `file' or equivalent on your system and you're not sure
4858 # whether `pass_all' will *always* work, you probably want this one.
4862 lt_cv_deplibs_check_method=pass_all
4866 lt_cv_deplibs_check_method=pass_all
4870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4871 lt_cv_file_magic_cmd='/usr/bin/file -L'
4872 lt_cv_file_magic_test_file=/shlib/libc.so
4876 # func_win32_libid is a shell function defined in ltmain.sh
4877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4878 lt_cv_file_magic_cmd='func_win32_libid'
4882 # Base MSYS/MinGW do not provide the 'file' command needed by
4883 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4884 # unless we find 'file', for example because we are cross-compiling.
4885 if ( file / ) >/dev/null 2>&1; then
4886 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4887 lt_cv_file_magic_cmd='func_win32_libid'
4889 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4890 lt_cv_file_magic_cmd='$OBJDUMP -f'
4894 darwin* | rhapsody*)
4895 lt_cv_deplibs_check_method=pass_all
4898 freebsd* | dragonfly*)
4899 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4902 # Not sure whether the presence of OpenBSD here was a mistake.
4903 # Let's accept both of them until this is cleared up.
4904 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4905 lt_cv_file_magic_cmd=/usr/bin/file
4906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4910 lt_cv_deplibs_check_method=pass_all
4915 lt_cv_deplibs_check_method=pass_all
4918 hpux10.20* | hpux11*)
4919 lt_cv_file_magic_cmd=/usr/bin/file
4922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4923 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4926 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]'
4927 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4930 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4931 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4937 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4941 irix5* | irix6* | nonstopux*)
4943 *-32|*"-32 ") libmagic=32-bit;;
4944 *-n32|*"-n32 ") libmagic=N32;;
4945 *-64|*"-64 ") libmagic=64-bit;;
4946 *) libmagic=never-match;;
4948 lt_cv_deplibs_check_method=pass_all
4951 # This must be Linux ELF.
4952 linux* | k*bsd*-gnu)
4953 lt_cv_deplibs_check_method=pass_all
4956 netbsd* | netbsdelf*-gnu)
4957 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4966 lt_cv_file_magic_cmd=/usr/bin/file
4967 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4971 lt_cv_deplibs_check_method=unknown
4975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4982 osf3* | osf4* | osf5*)
4983 lt_cv_deplibs_check_method=pass_all
4987 lt_cv_deplibs_check_method=pass_all
4991 lt_cv_deplibs_check_method=pass_all
4995 case $host_vendor in
4997 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]'
4998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5001 lt_cv_deplibs_check_method=pass_all
5004 lt_cv_file_magic_cmd='/bin/file'
5005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5008 lt_cv_file_magic_cmd='/bin/file'
5009 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5010 lt_cv_file_magic_test_file=/lib/libc.so
5013 lt_cv_deplibs_check_method=pass_all
5016 lt_cv_deplibs_check_method=pass_all
5021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5022 lt_cv_deplibs_check_method=pass_all
5027 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5028 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5029 file_magic_cmd=$lt_cv_file_magic_cmd
5030 deplibs_check_method=$lt_cv_deplibs_check_method
5031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5036 # If no C compiler was specified, use CC.
5039 # If no C compiler flags were specified, use CFLAGS.
5040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5042 # Allow CC to be a program name with arguments.
5046 # Check whether --enable-libtool-lock was given.
5047 if test "${enable_libtool_lock+set}" = set; then
5048 enableval=$enable_libtool_lock;
5051 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5053 # Some flags need to be propagated to the compiler or linker for good
5057 # Find out which ABI we are using.
5058 echo 'int i;' > conftest.$ac_ext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; then
5064 case `/usr/bin/file conftest.$ac_objext` in
5076 # Find out which ABI we are using.
5077 echo '#line 5077 "configure"' > conftest.$ac_ext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; then
5083 if test "$lt_cv_prog_gnu_ld" = yes; then
5084 case `/usr/bin/file conftest.$ac_objext` in
5086 LD="${LD-ld} -melf32bsmip"
5089 LD="${LD-ld} -melf32bmipn32"
5092 LD="${LD-ld} -melf64bmip"
5096 case `/usr/bin/file conftest.$ac_objext` in
5112 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5113 s390*-*linux*|sparc*-*linux*)
5114 # Find out which ABI we are using.
5115 echo 'int i;' > conftest.$ac_ext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117 (eval $ac_compile) 2>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; then
5121 case `/usr/bin/file conftest.o` in
5124 x86_64-*kfreebsd*-gnu)
5125 LD="${LD-ld} -m elf_i386_fbsd"
5128 LD="${LD-ld} -m elf_i386"
5130 ppc64-*linux*|powerpc64-*linux*)
5131 LD="${LD-ld} -m elf32ppclinux"
5134 LD="${LD-ld} -m elf_s390"
5137 LD="${LD-ld} -m elf32_sparc"
5143 x86_64-*kfreebsd*-gnu)
5144 LD="${LD-ld} -m elf_x86_64_fbsd"
5147 LD="${LD-ld} -m elf_x86_64"
5149 ppc*-*linux*|powerpc*-*linux*)
5150 LD="${LD-ld} -m elf64ppc"
5153 LD="${LD-ld} -m elf64_s390"
5156 LD="${LD-ld} -m elf64_sparc"
5166 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5167 SAVE_CFLAGS="$CFLAGS"
5168 CFLAGS="$CFLAGS -belf"
5169 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5170 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5171 if test "${lt_cv_cc_needs_belf+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 ac_cpp='$CPP $CPPFLAGS'
5176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (ac_try="$ac_link"
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202 (eval "$ac_link") 2>conftest.er1
5204 grep -v '^ *+' conftest.er1 >conftest.err
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } && {
5209 test -z "$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5211 } && test -s conftest$ac_exeext &&
5212 $as_test_x conftest$ac_exeext; then
5213 lt_cv_cc_needs_belf=yes
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 lt_cv_cc_needs_belf=no
5221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5222 conftest$ac_exeext conftest.$ac_ext
5224 ac_cpp='$CPP $CPPFLAGS'
5225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5230 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5231 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5232 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5233 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5234 CFLAGS="$SAVE_CFLAGS"
5238 # Find out which ABI we are using.
5239 echo 'int i;' > conftest.$ac_ext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; then
5245 case `/usr/bin/file conftest.o` in
5247 case $lt_cv_prog_gnu_ld in
5248 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5250 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5264 need_locks="$enable_libtool_lock"
5268 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5269 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5270 if test "${ac_cv_header_stdc+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5292 rm -f conftest.$ac_objext
5293 if { (ac_try="$ac_compile"
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compile") 2>conftest.er1
5301 grep -v '^ *+' conftest.er1 >conftest.err
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && {
5306 test -z "$ac_c_werror_flag" ||
5307 test ! -s conftest.err
5308 } && test -s conftest.$ac_objext; then
5309 ac_cv_header_stdc=yes
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5314 ac_cv_header_stdc=no
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 if test $ac_cv_header_stdc = yes; then
5320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "memchr" >/dev/null 2>&1; then
5334 ac_cv_header_stdc=no
5340 if test $ac_cv_header_stdc = yes; then
5341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5342 cat >conftest.$ac_ext <<_ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352 $EGREP "free" >/dev/null 2>&1; then
5355 ac_cv_header_stdc=no
5361 if test $ac_cv_header_stdc = yes; then
5362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5363 if test "$cross_compiling" = yes; then
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5374 #if ((' ' & 0x0FF) == 0x020)
5375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5378 # define ISLOWER(c) \
5379 (('a' <= (c) && (c) <= 'i') \
5380 || ('j' <= (c) && (c) <= 'r') \
5381 || ('s' <= (c) && (c) <= 'z'))
5382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5390 for (i = 0; i < 256; i++)
5391 if (XOR (islower (i), ISLOWER (i))
5392 || toupper (i) != TOUPPER (i))
5397 rm -f conftest$ac_exeext
5398 if { (ac_try="$ac_link"
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_link") 2>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5408 { (case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_try") 2>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5419 echo "$as_me: program exited with status $ac_status" >&5
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_cv_header_stdc=no
5426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5432 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5433 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5434 if test $ac_cv_header_stdc = yes; then
5436 cat >>confdefs.h <<\_ACEOF
5437 #define STDC_HEADERS 1
5442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5453 inttypes.h stdint.h unistd.h
5455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 cat >conftest.$ac_ext <<_ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5467 $ac_includes_default
5469 #include <$ac_header>
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 eval "$as_ac_Header=yes"
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 eval "$as_ac_Header=no"
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 ac_res=`eval echo '${'$as_ac_Header'}'`
5499 { echo "$as_me:$LINENO: result: $ac_res" >&5
5500 echo "${ECHO_T}$ac_res" >&6; }
5501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5502 cat >>confdefs.h <<_ACEOF
5503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5512 for ac_header in dlfcn.h
5514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 ac_res=`eval echo '${'$as_ac_Header'}'`
5522 { echo "$as_me:$LINENO: result: $ac_res" >&5
5523 echo "${ECHO_T}$ac_res" >&6; }
5525 # Is the header compilable?
5526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5528 cat >conftest.$ac_ext <<_ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 $ac_includes_default
5535 #include <$ac_header>
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
5546 grep -v '^ *+' conftest.er1 >conftest.err
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_c_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest.$ac_objext; then
5554 ac_header_compiler=yes
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5559 ac_header_compiler=no
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5564 echo "${ECHO_T}$ac_header_compiler" >&6; }
5566 # Is the header present?
5567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <$ac_header>
5577 if { (ac_try="$ac_cpp conftest.$ac_ext"
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5585 grep -v '^ *+' conftest.er1 >conftest.err
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } >/dev/null && {
5590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5591 test ! -s conftest.err
5593 ac_header_preproc=yes
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 ac_header_preproc=no
5601 rm -f conftest.err conftest.$ac_ext
5602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5603 echo "${ECHO_T}$ac_header_preproc" >&6; }
5605 # So? What about this header?
5606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5612 ac_header_preproc=yes
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5628 ## ------------------------------------ ##
5629 ## Report this to opensource@google.com ##
5630 ## ------------------------------------ ##
5632 ) | sed "s/^/$as_me: WARNING: /" >&2
5635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 eval "$as_ac_Header=\$ac_header_preproc"
5642 ac_res=`eval echo '${'$as_ac_Header'}'`
5643 { echo "$as_me:$LINENO: result: $ac_res" >&5
5644 echo "${ECHO_T}$ac_res" >&6; }
5647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5648 cat >>confdefs.h <<_ACEOF
5649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5659 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5660 (test "X$CXX" != "Xg++"))) ; then
5662 ac_cpp='$CXXCPP $CPPFLAGS'
5663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5666 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5667 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5668 if test -z "$CXXCPP"; then
5669 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 # Double quotes because CXXCPP needs to be expanded
5673 for CXXCPP in "$CXX -E" "/lib/cpp"
5676 for ac_cxx_preproc_warn_flag in '' yes
5678 # Use a header file that comes with gcc, so configuring glibc
5679 # with a fresh cross-compiler works.
5680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 # <limits.h> exists even on freestanding compilers.
5682 # On the NeXT, cc -E runs the code through the compiler's parser,
5683 # not just through cpp. "Syntax error" is here to catch this case.
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 # include <limits.h>
5693 # include <assert.h>
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null && {
5710 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5711 test ! -s conftest.err
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 # Broken: fails on valid input.
5722 rm -f conftest.err conftest.$ac_ext
5724 # OK, works on sane cases. Now check whether nonexistent headers
5725 # can be detected and how.
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <ac_nonexistent.h>
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5742 grep -v '^ *+' conftest.er1 >conftest.err
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } >/dev/null && {
5747 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5748 test ! -s conftest.err
5750 # Broken: success on invalid input.
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 # Passes both tests.
5761 rm -f conftest.err conftest.$ac_ext
5764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765 rm -f conftest.err conftest.$ac_ext
5766 if $ac_preproc_ok; then
5771 ac_cv_prog_CXXCPP=$CXXCPP
5774 CXXCPP=$ac_cv_prog_CXXCPP
5776 ac_cv_prog_CXXCPP=$CXXCPP
5778 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5779 echo "${ECHO_T}$CXXCPP" >&6; }
5781 for ac_cxx_preproc_warn_flag in '' yes
5783 # Use a header file that comes with gcc, so configuring glibc
5784 # with a fresh cross-compiler works.
5785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786 # <limits.h> exists even on freestanding compilers.
5787 # On the NeXT, cc -E runs the code through the compiler's parser,
5788 # not just through cpp. "Syntax error" is here to catch this case.
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5796 # include <limits.h>
5798 # include <assert.h>
5802 if { (ac_try="$ac_cpp conftest.$ac_ext"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } >/dev/null && {
5815 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5816 test ! -s conftest.err
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 # Broken: fails on valid input.
5827 rm -f conftest.err conftest.$ac_ext
5829 # OK, works on sane cases. Now check whether nonexistent headers
5830 # can be detected and how.
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <ac_nonexistent.h>
5839 if { (ac_try="$ac_cpp conftest.$ac_ext"
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } >/dev/null && {
5852 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5853 test ! -s conftest.err
5855 # Broken: success on invalid input.
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Passes both tests.
5866 rm -f conftest.err conftest.$ac_ext
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then
5874 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5875 See \`config.log' for more details." >&5
5876 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5877 See \`config.log' for more details." >&2;}
5878 { (exit 1); exit 1; }; }
5882 ac_cpp='$CXXCPP $CPPFLAGS'
5883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5891 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5892 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5894 if test -n "$ac_tool_prefix"; then
5895 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
5897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901 if test "${ac_cv_prog_F77+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 if test -n "$F77"; then
5905 ac_cv_prog_F77="$F77" # Let the user override the test.
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 if test -n "$F77"; then
5926 { echo "$as_me:$LINENO: result: $F77" >&5
5927 echo "${ECHO_T}$F77" >&6; }
5929 { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5934 test -n "$F77" && break
5937 if test -z "$F77"; then
5939 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
5941 # Extract the first word of "$ac_prog", so it can be a program name with args.
5942 set dummy $ac_prog; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$ac_ct_F77"; then
5949 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_F77="$ac_prog"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5969 if test -n "$ac_ct_F77"; then
5970 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5971 echo "${ECHO_T}$ac_ct_F77" >&6; }
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5978 test -n "$ac_ct_F77" && break
5981 if test "x$ac_ct_F77" = x; then
5984 case $cross_compiling:$ac_tool_warned in
5986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5987 whose name does not start with the host triplet. If you think this
5988 configuration is useful to you, please write to autoconf@gnu.org." >&5
5989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5990 whose name does not start with the host triplet. If you think this
5991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5992 ac_tool_warned=yes ;;
5999 # Provide some information about the compiler.
6000 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6001 ac_compiler=`set X $ac_compile; echo $2`
6002 { (ac_try="$ac_compiler --version >&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 --version >&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); }
6022 { (ac_try="$ac_compiler -V >&5"
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compiler -V >&5") 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }
6034 # If we don't use `.F' as extension, the preprocessor is not run on the
6035 # input file. (Note that this only needs to work for GNU compilers.)
6038 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6039 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6040 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_f77_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6080 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6081 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6083 ac_test_FFLAGS=${FFLAGS+set}
6084 ac_save_FFLAGS=$FFLAGS
6086 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6087 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_f77_g+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 cat >conftest.$ac_ext <<_ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_f77_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 ac_cv_prog_f77_g=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6126 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6127 if test "$ac_test_FFLAGS" = set; then
6128 FFLAGS=$ac_save_FFLAGS
6129 elif test $ac_cv_prog_f77_g = yes; then
6130 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6136 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6143 G77=`test $ac_compiler_gnu = yes && echo yes`
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6153 # find the maximum length of command line arguments
6154 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6155 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6156 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 # On DJGPP, this test can blow up pretty badly due to problems in libc
6165 # (any single argument exceeding 2000 bytes causes a buffer overrun
6166 # during glob expansion). Even if it were fixed, the result of this
6167 # check would be larger than it should be.
6168 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6172 # Under GNU Hurd, this test is not required because there is
6173 # no limit to the length of command line arguments.
6174 # Libtool will interpret -1 as no limit whatsoever
6175 lt_cv_sys_max_cmd_len=-1;
6179 # On Win9x/ME, this test blows up -- it succeeds, but takes
6180 # about 5 minutes as the teststring grows exponentially.
6181 # Worse, since 9x/ME are not pre-emptively multitasking,
6182 # you end up with a "frozen" computer, even though with patience
6183 # the test eventually succeeds (with a max line length of 256k).
6184 # Instead, let's just punt: use the minimum linelength reported by
6185 # all of the supported platforms: 8192 (on NT/2K/XP).
6186 lt_cv_sys_max_cmd_len=8192;
6190 # On AmigaOS with pdksh, this test takes hours, literally.
6191 # So we just punt and use a minimum line length of 8192.
6192 lt_cv_sys_max_cmd_len=8192;
6195 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6196 # This has been around since 386BSD, at least. Likely further.
6197 if test -x /sbin/sysctl; then
6198 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6199 elif test -x /usr/sbin/sysctl; then
6200 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6202 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6204 # And add a safety zone
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6210 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6211 lt_cv_sys_max_cmd_len=196608
6215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6217 # nice to cause kernel panics so lets avoid the loop below.
6218 # First set a reasonable default.
6219 lt_cv_sys_max_cmd_len=16384
6221 if test -x /sbin/sysconfig; then
6222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6228 lt_cv_sys_max_cmd_len=102400
6230 sysv5* | sco5v6* | sysv4.2uw2*)
6231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6232 if test -n "$kargmax"; then
6233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6235 lt_cv_sys_max_cmd_len=32768
6239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6240 if test -n "$lt_cv_sys_max_cmd_len"; then
6241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6244 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6245 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6246 = "XX$teststring") >/dev/null 2>&1 &&
6247 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6248 lt_cv_sys_max_cmd_len=$new_result &&
6249 test $i != 17 # 1/2 MB should be enough
6252 teststring=$teststring$teststring
6255 # Add a significant safety factor because C++ compilers can tack on massive
6256 # amounts of additional arguments before passing them to the linker.
6257 # It appears as though 1/2 is a usable value.
6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6265 if test -n $lt_cv_sys_max_cmd_len ; then
6266 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6267 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6269 { echo "$as_me:$LINENO: result: none" >&5
6270 echo "${ECHO_T}none" >&6; }
6277 # Check for command to grab the raw symbol name followed by C symbol from nm.
6278 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6279 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6280 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 # These are sane defaults that work on at least a few old systems.
6285 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6287 # Character class describing NM global symbol codes.
6288 symcode='[BCDEGRST]'
6290 # Regexp to match symbols that can be accessed directly from C.
6291 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6293 # Transform an extracted symbol line into a proper C declaration
6294 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6296 # Transform an extracted symbol line into symbol name and symbol address
6297 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'"
6299 # Define system-specific variables.
6304 cygwin* | mingw* | pw32*)
6305 symcode='[ABCDGISTW]'
6307 hpux*) # Its linker distinguishes data from code symbols
6308 if test "$host_cpu" = ia64; then
6309 symcode='[ABCDEGRST]'
6311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6312 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'"
6314 linux* | k*bsd*-gnu)
6315 if test "$host_cpu" = ia64; then
6316 symcode='[ABCDGIRSTW]'
6317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6318 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'"
6322 symcode='[BCDEGRST]'
6325 symcode='[BCDEGQRST]'
6336 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6344 # Handle CRLF in mingw tool chain
6348 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352 # If we're using GNU nm, then use its standard symbol codes.
6353 case `$NM -V 2>&1` in
6354 *GNU* | *'with BFD'*)
6355 symcode='[ABCDGIRSTW]' ;;
6358 # Try without a prefix undercore, then with it.
6359 for ac_symprfx in "" "_"; do
6361 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6362 symxfrm="\\1 $ac_symprfx\\2 \\2"
6364 # Write the raw and C identifiers.
6365 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6367 # Check to see that the pipe works correctly.
6371 cat > conftest.$ac_ext <<EOF
6376 void nm_test_func(){}
6380 int main(){nm_test_var='a';nm_test_func();return(0);}
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; then
6388 # Now try to grab the symbols.
6390 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6391 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } && test -s "$nlist"; then
6395 # Try sorting and uniquifying the output.
6396 if sort "$nlist" | uniq > "$nlist"T; then
6397 mv -f "$nlist"T "$nlist"
6402 # Make sure that we snagged all the symbols we need.
6403 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6404 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6405 cat <<EOF > conftest.$ac_ext
6411 # Now generate the symbol file.
6412 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6414 cat <<EOF >> conftest.$ac_ext
6415 #if defined (__STDC__) && __STDC__
6416 # define lt_ptr_t void *
6418 # define lt_ptr_t char *
6422 /* The mapping between symbol names and symbols. */
6427 lt_preloaded_symbols[] =
6430 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6431 cat <<\EOF >> conftest.$ac_ext
6439 # Now try linking the two files.
6440 mv conftest.$ac_objext conftstm.$ac_objext
6441 lt_save_LIBS="$LIBS"
6442 lt_save_CFLAGS="$CFLAGS"
6443 LIBS="conftstm.$ac_objext"
6444 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6452 LIBS="$lt_save_LIBS"
6453 CFLAGS="$lt_save_CFLAGS"
6455 echo "cannot find nm_test_func in $nlist" >&5
6458 echo "cannot find nm_test_var in $nlist" >&5
6461 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6464 echo "$progname: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 rm -rf conftest* conftst*
6469 # Do not use the global_symbol_pipe unless it works.
6470 if test "$pipe_works" = yes; then
6473 lt_cv_sys_global_symbol_pipe=
6479 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6480 lt_cv_sys_global_symbol_to_cdecl=
6482 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6483 { echo "$as_me:$LINENO: result: failed" >&5
6484 echo "${ECHO_T}failed" >&6; }
6486 { echo "$as_me:$LINENO: result: ok" >&5
6487 echo "${ECHO_T}ok" >&6; }
6490 { echo "$as_me:$LINENO: checking for objdir" >&5
6491 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6492 if test "${lt_cv_objdir+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 rm -f .libs 2>/dev/null
6496 mkdir .libs 2>/dev/null
6497 if test -d .libs; then
6500 # MS-DOS does not allow filenames that begin with a dot.
6503 rmdir .libs 2>/dev/null
6505 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6506 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6507 objdir=$lt_cv_objdir
6515 # AIX sometimes has problems with the GCC collect2 program. For some
6516 # reason, if we set the COLLECT_NAMES environment variable, the problems
6517 # vanish in a puff of smoke.
6518 if test "X${COLLECT_NAMES+set}" != Xset; then
6520 export COLLECT_NAMES
6525 # Sed substitution that helps us do robust quoting. It backslashifies
6526 # metacharacters that are still active within double-quoted strings.
6527 Xsed='sed -e 1s/^X//'
6528 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6530 # Same as above, but do not quote variable references.
6531 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6533 # Sed substitution to delay expansion of an escaped shell variable in a
6534 # double_quote_subst'ed string.
6535 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6537 # Sed substitution to avoid accidental globbing in evaled expressions
6538 no_glob_subst='s/\*/\\\*/g'
6544 default_ofile=libtool
6545 can_build_shared=yes
6547 # All known linkers require a `.a' archive for static linking (except MSVC,
6548 # which needs '.lib').
6550 ltmain="$ac_aux_dir/ltmain.sh"
6551 ofile="$default_ofile"
6552 with_gnu_ld="$lt_cv_prog_gnu_ld"
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}ar; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_AR+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 if test -n "$AR"; then
6563 ac_cv_prog_AR="$AR" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_AR="${ac_tool_prefix}ar"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 if test -n "$AR"; then
6584 { echo "$as_me:$LINENO: result: $AR" >&5
6585 echo "${ECHO_T}$AR" >&6; }
6587 { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6593 if test -z "$ac_cv_prog_AR"; then
6595 # Extract the first word of "ar", so it can be a program name with args.
6596 set dummy ar; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 if test -n "$ac_ct_AR"; then
6603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_ac_ct_AR="ar"
6613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6623 if test -n "$ac_ct_AR"; then
6624 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6625 echo "${ECHO_T}$ac_ct_AR" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6631 if test "x$ac_ct_AR" = x; then
6634 case $cross_compiling:$ac_tool_warned in
6636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6637 whose name does not start with the host triplet. If you think this
6638 configuration is useful to you, please write to autoconf@gnu.org." >&5
6639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6640 whose name does not start with the host triplet. If you think this
6641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6642 ac_tool_warned=yes ;;
6650 if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_prog_RANLIB+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 if test -n "$RANLIB"; then
6659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 RANLIB=$ac_cv_prog_RANLIB
6679 if test -n "$RANLIB"; then
6680 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6681 echo "${ECHO_T}$RANLIB" >&6; }
6683 { echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6; }
6689 if test -z "$ac_cv_prog_RANLIB"; then
6690 ac_ct_RANLIB=$RANLIB
6691 # Extract the first word of "ranlib", so it can be a program name with args.
6692 set dummy ranlib; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 if test -n "$ac_ct_RANLIB"; then
6699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_prog_ac_ct_RANLIB="ranlib"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6719 if test -n "$ac_ct_RANLIB"; then
6720 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6721 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6727 if test "x$ac_ct_RANLIB" = x; then
6730 case $cross_compiling:$ac_tool_warned in
6732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6733 whose name does not start with the host triplet. If you think this
6734 configuration is useful to you, please write to autoconf@gnu.org." >&5
6735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6736 whose name does not start with the host triplet. If you think this
6737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6738 ac_tool_warned=yes ;;
6740 RANLIB=$ac_ct_RANLIB
6743 RANLIB="$ac_cv_prog_RANLIB"
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}strip; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_prog_STRIP+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 if test -n "$STRIP"; then
6755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 STRIP=$ac_cv_prog_STRIP
6775 if test -n "$STRIP"; then
6776 { echo "$as_me:$LINENO: result: $STRIP" >&5
6777 echo "${ECHO_T}$STRIP" >&6; }
6779 { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6785 if test -z "$ac_cv_prog_STRIP"; then
6787 # Extract the first word of "strip", so it can be a program name with args.
6788 set dummy strip; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 if test -n "$ac_ct_STRIP"; then
6795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_ac_ct_STRIP="strip"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6815 if test -n "$ac_ct_STRIP"; then
6816 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6817 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6823 if test "x$ac_ct_STRIP" = x; then
6826 case $cross_compiling:$ac_tool_warned in
6828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6829 whose name does not start with the host triplet. If you think this
6830 configuration is useful to you, please write to autoconf@gnu.org." >&5
6831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6832 whose name does not start with the host triplet. If you think this
6833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6834 ac_tool_warned=yes ;;
6839 STRIP="$ac_cv_prog_STRIP"
6844 old_CFLAGS="$CFLAGS"
6846 # Set sane defaults for various variables
6847 test -z "$AR" && AR=ar
6848 test -z "$AR_FLAGS" && AR_FLAGS=cru
6849 test -z "$AS" && AS=as
6850 test -z "$CC" && CC=cc
6851 test -z "$LTCC" && LTCC=$CC
6852 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6853 test -z "$DLLTOOL" && DLLTOOL=dlltool
6854 test -z "$LD" && LD=ld
6855 test -z "$LN_S" && LN_S="ln -s"
6856 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6857 test -z "$NM" && NM=nm
6858 test -z "$SED" && SED=sed
6859 test -z "$OBJDUMP" && OBJDUMP=objdump
6860 test -z "$RANLIB" && RANLIB=:
6861 test -z "$STRIP" && STRIP=:
6862 test -z "$ac_objext" && ac_objext=o
6864 # Determine commands to create old-style static archives.
6865 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6866 old_postinstall_cmds='chmod 644 $oldlib'
6867 old_postuninstall_cmds=
6869 if test -n "$RANLIB"; then
6872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6878 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6881 for cc_temp in $compiler""; do
6883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6892 # Only perform the check for file, if the check method requires it
6893 case $deplibs_check_method in
6895 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6896 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6897 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6898 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6906 lt_save_MAGIC_CMD="$MAGIC_CMD"
6907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6909 for ac_dir in $ac_dummy; do
6911 test -z "$ac_dir" && ac_dir=.
6912 if test -f $ac_dir/${ac_tool_prefix}file; then
6913 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6914 if test -n "$file_magic_test_file"; then
6915 case $deplibs_check_method in
6917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6920 $EGREP "$file_magic_regex" > /dev/null; then
6925 *** Warning: the command libtool uses to detect shared libraries,
6926 *** $file_magic_cmd, produces output that libtool cannot recognize.
6927 *** The result is that libtool may fail to recognize shared libraries
6928 *** as such. This will affect the creation of libtool libraries that
6929 *** depend on shared libraries, but programs linked with such libtool
6930 *** libraries will work regardless of this problem. Nevertheless, you
6931 *** may want to report the problem to your system manager and/or to
6932 *** bug-libtool@gnu.org
6942 MAGIC_CMD="$lt_save_MAGIC_CMD"
6947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6948 if test -n "$MAGIC_CMD"; then
6949 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6950 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6952 { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6956 if test -z "$lt_cv_path_MAGIC_CMD"; then
6957 if test -n "$ac_tool_prefix"; then
6958 { echo "$as_me:$LINENO: checking for file" >&5
6959 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6968 lt_save_MAGIC_CMD="$MAGIC_CMD"
6969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971 for ac_dir in $ac_dummy; do
6973 test -z "$ac_dir" && ac_dir=.
6974 if test -f $ac_dir/file; then
6975 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976 if test -n "$file_magic_test_file"; then
6977 case $deplibs_check_method in
6979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982 $EGREP "$file_magic_regex" > /dev/null; then
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such. This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem. Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** bug-libtool@gnu.org
7004 MAGIC_CMD="$lt_save_MAGIC_CMD"
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7029 rhapsody* | darwin*)
7030 if test -n "$ac_tool_prefix"; then
7031 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7032 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 if test -n "$DSYMUTIL"; then
7039 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7059 if test -n "$DSYMUTIL"; then
7060 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7061 echo "${ECHO_T}$DSYMUTIL" >&6; }
7063 { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7069 if test -z "$ac_cv_prog_DSYMUTIL"; then
7070 ac_ct_DSYMUTIL=$DSYMUTIL
7071 # Extract the first word of "dsymutil", so it can be a program name with args.
7072 set dummy dsymutil; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 if test -n "$ac_ct_DSYMUTIL"; then
7079 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7099 if test -n "$ac_ct_DSYMUTIL"; then
7100 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7101 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7103 { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7107 if test "x$ac_ct_DSYMUTIL" = x; then
7110 case $cross_compiling:$ac_tool_warned in
7112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet. If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&5
7115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7116 whose name does not start with the host triplet. If you think this
7117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7118 ac_tool_warned=yes ;;
7120 DSYMUTIL=$ac_ct_DSYMUTIL
7123 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7126 if test -n "$ac_tool_prefix"; then
7127 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7131 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 if test -n "$NMEDIT"; then
7135 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 NMEDIT=$ac_cv_prog_NMEDIT
7155 if test -n "$NMEDIT"; then
7156 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7157 echo "${ECHO_T}$NMEDIT" >&6; }
7159 { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7165 if test -z "$ac_cv_prog_NMEDIT"; then
7166 ac_ct_NMEDIT=$NMEDIT
7167 # Extract the first word of "nmedit", so it can be a program name with args.
7168 set dummy nmedit; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 if test -n "$ac_ct_NMEDIT"; then
7175 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7195 if test -n "$ac_ct_NMEDIT"; then
7196 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7197 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7203 if test "x$ac_ct_NMEDIT" = x; then
7206 case $cross_compiling:$ac_tool_warned in
7208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet. If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&5
7211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet. If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7214 ac_tool_warned=yes ;;
7216 NMEDIT=$ac_ct_NMEDIT
7219 NMEDIT="$ac_cv_prog_NMEDIT"
7223 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7224 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7225 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 lt_cv_apple_cc_single_mod=no
7229 if test -z "${LT_MULTI_MODULE}"; then
7230 # By default we will add the -single_module flag. You can override
7231 # by either setting the environment variable LT_MULTI_MODULE
7232 # non-empty at configure time, or by adding -multi_module to the
7234 echo "int foo(void){return 1;}" > conftest.c
7235 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7236 -dynamiclib ${wl}-single_module conftest.c
7237 if test -f libconftest.dylib; then
7238 lt_cv_apple_cc_single_mod=yes
7239 rm -rf libconftest.dylib*
7244 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7245 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7246 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7247 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7248 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 lt_cv_ld_exported_symbols_list=no
7252 save_LDFLAGS=$LDFLAGS
7253 echo "_main" > conftest.sym
7254 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7255 cat >conftest.$ac_ext <<_ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_link") 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest$ac_exeext &&
7287 $as_test_x conftest$ac_exeext; then
7288 lt_cv_ld_exported_symbols_list=yes
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 lt_cv_ld_exported_symbols_list=no
7296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7297 conftest$ac_exeext conftest.$ac_ext
7298 LDFLAGS="$save_LDFLAGS"
7301 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7302 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7304 rhapsody* | darwin1.[0123])
7305 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7307 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7309 # if running on 10.5 or later, the deployment target defaults
7310 # to the OS version, if on x86, and 10.4, the deployment
7311 # target defaults to 10.4. Don't you love it?
7312 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7313 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7314 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7316 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7318 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7322 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7323 _lt_dar_single_mod='$single_module'
7325 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7326 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7328 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7330 if test "$DSYMUTIL" != ":"; then
7331 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7342 # Check whether --enable-libtool-lock was given.
7343 if test "${enable_libtool_lock+set}" = set; then
7344 enableval=$enable_libtool_lock;
7347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7350 # Check whether --with-pic was given.
7351 if test "${with_pic+set}" = set; then
7352 withval=$with_pic; pic_mode="$withval"
7357 test -z "$pic_mode" && pic_mode=default
7359 # Use C for the default configuration in the libtool script
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369 # Source file extension for C test sources.
7372 # Object file extension for compiled C test sources.
7376 # Code to be used in simple compile tests
7377 lt_simple_compile_test_code="int some_variable = 0;"
7379 # Code to be used in simple link tests
7380 lt_simple_link_test_code='int main(){return(0);}'
7383 # If no C compiler was specified, use CC.
7386 # If no C compiler flags were specified, use CFLAGS.
7387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7389 # Allow CC to be a program name with arguments.
7393 # save warnings/boilerplate of simple test code
7394 ac_outfile=conftest.$ac_objext
7395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7397 _lt_compiler_boilerplate=`cat conftest.err`
7400 ac_outfile=conftest.$ac_objext
7401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7403 _lt_linker_boilerplate=`cat conftest.err`
7408 lt_prog_compiler_no_builtin_flag=
7410 if test "$GCC" = yes; then
7411 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7414 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7415 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7416 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 lt_cv_prog_compiler_rtti_exceptions=no
7420 ac_outfile=conftest.$ac_objext
7421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422 lt_compiler_flag="-fno-rtti -fno-exceptions"
7423 # Insert the option either (1) after the last *FLAGS variable, or
7424 # (2) before a word containing "conftest.", or (3) at the end.
7425 # Note that $ac_compile itself does not contain backslashes and begins
7426 # with a dollar sign (not a hyphen), so the echo should work correctly.
7427 # The option is referenced via a variable to avoid confusing sed.
7428 lt_compile=`echo "$ac_compile" | $SED \
7429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431 -e 's:$: $lt_compiler_flag:'`
7432 (eval echo "\"\$as_me:7432: $lt_compile\"" >&5)
7433 (eval "$lt_compile" 2>conftest.err)
7435 cat conftest.err >&5
7436 echo "$as_me:7436: \$? = $ac_status" >&5
7437 if (exit $ac_status) && test -s "$ac_outfile"; then
7438 # The compiler can only warn and ignore the option if not recognized
7439 # So say no if there are warnings other than the usual output.
7440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7443 lt_cv_prog_compiler_rtti_exceptions=yes
7449 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7450 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7452 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7453 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7460 lt_prog_compiler_wl=
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_static=
7464 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7465 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7467 if test "$GCC" = yes; then
7468 lt_prog_compiler_wl='-Wl,'
7469 lt_prog_compiler_static='-static'
7473 # All AIX code is PIC.
7474 if test "$host_cpu" = ia64; then
7475 # AIX 5 now supports IA64 processor
7476 lt_prog_compiler_static='-Bstatic'
7481 # FIXME: we need at least 68020 code to build shared libraries, but
7482 # adding the `-m68020' flag to GCC prevents building anything better,
7484 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7488 # PIC is the default for these OSes.
7491 mingw* | cygwin* | pw32* | os2*)
7492 # This hack is so that the source file can tell whether it is being
7493 # built for inclusion in a dll (and should export symbols for example).
7494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7495 # (--disable-auto-import) libraries
7496 lt_prog_compiler_pic='-DDLL_EXPORT'
7499 darwin* | rhapsody*)
7500 # PIC is the default on this platform
7501 # Common symbols not allowed in MH_DYLIB files
7502 lt_prog_compiler_pic='-fno-common'
7506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7507 # Instead, we relocate shared libraries at runtime.
7511 # Just because we use GCC doesn't mean we suddenly get shared libraries
7512 # on systems that don't support them.
7513 lt_prog_compiler_can_build_shared=no
7518 if test -d /usr/nec; then
7519 lt_prog_compiler_pic=-Kconform_pic
7524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7531 lt_prog_compiler_pic='-fPIC'
7537 lt_prog_compiler_pic='-fPIC'
7541 # PORTME Check for flag to pass linker flags through the system compiler.
7544 lt_prog_compiler_wl='-Wl,'
7545 if test "$host_cpu" = ia64; then
7546 # AIX 5 now supports IA64 processor
7547 lt_prog_compiler_static='-Bstatic'
7549 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7553 # PIC is the default on this platform
7554 # Common symbols not allowed in MH_DYLIB files
7555 case $cc_basename in
7557 lt_prog_compiler_pic='-qnocommon'
7558 lt_prog_compiler_wl='-Wl,'
7563 mingw* | cygwin* | pw32* | os2*)
7564 # This hack is so that the source file can tell whether it is being
7565 # built for inclusion in a dll (and should export symbols for example).
7566 lt_prog_compiler_pic='-DDLL_EXPORT'
7569 hpux9* | hpux10* | hpux11*)
7570 lt_prog_compiler_wl='-Wl,'
7571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7578 lt_prog_compiler_pic='+Z'
7581 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7582 lt_prog_compiler_static='${wl}-a ${wl}archive'
7585 irix5* | irix6* | nonstopux*)
7586 lt_prog_compiler_wl='-Wl,'
7587 # PIC (with -KPIC) is the default.
7588 lt_prog_compiler_static='-non_shared'
7592 lt_prog_compiler_pic='-KPIC'
7593 lt_prog_compiler_static='-Bstatic'
7596 linux* | k*bsd*-gnu)
7597 case $cc_basename in
7599 lt_prog_compiler_wl='-Wl,'
7600 lt_prog_compiler_pic='-KPIC'
7601 lt_prog_compiler_static='-static'
7603 pgcc* | pgf77* | pgf90* | pgf95*)
7604 # Portland Group compilers (*not* the Pentium gcc compiler,
7605 # which looks to be a dead project)
7606 lt_prog_compiler_wl='-Wl,'
7607 lt_prog_compiler_pic='-fpic'
7608 lt_prog_compiler_static='-Bstatic'
7611 lt_prog_compiler_wl='-Wl,'
7612 # All Alpha code is PIC.
7613 lt_prog_compiler_static='-non_shared'
7616 case `$CC -V 2>&1 | sed 5q` in
7619 lt_prog_compiler_pic='-KPIC'
7620 lt_prog_compiler_static='-Bstatic'
7621 lt_prog_compiler_wl='-Wl,'
7624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7625 lt_prog_compiler_pic='-KPIC'
7626 lt_prog_compiler_static='-Bstatic'
7627 lt_prog_compiler_wl=''
7634 osf3* | osf4* | osf5*)
7635 lt_prog_compiler_wl='-Wl,'
7636 # All OSF/1 code is PIC.
7637 lt_prog_compiler_static='-non_shared'
7641 lt_prog_compiler_static='-non_shared'
7645 lt_prog_compiler_pic='-KPIC'
7646 lt_prog_compiler_static='-Bstatic'
7647 case $cc_basename in
7649 lt_prog_compiler_wl='-Qoption ld ';;
7651 lt_prog_compiler_wl='-Wl,';;
7656 lt_prog_compiler_wl='-Qoption ld '
7657 lt_prog_compiler_pic='-PIC'
7658 lt_prog_compiler_static='-Bstatic'
7661 sysv4 | sysv4.2uw2* | sysv4.3*)
7662 lt_prog_compiler_wl='-Wl,'
7663 lt_prog_compiler_pic='-KPIC'
7664 lt_prog_compiler_static='-Bstatic'
7668 if test -d /usr/nec ;then
7669 lt_prog_compiler_pic='-Kconform_pic'
7670 lt_prog_compiler_static='-Bstatic'
7674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7675 lt_prog_compiler_wl='-Wl,'
7676 lt_prog_compiler_pic='-KPIC'
7677 lt_prog_compiler_static='-Bstatic'
7681 lt_prog_compiler_wl='-Wl,'
7682 lt_prog_compiler_can_build_shared=no
7686 lt_prog_compiler_pic='-pic'
7687 lt_prog_compiler_static='-Bstatic'
7691 lt_prog_compiler_can_build_shared=no
7696 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7697 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7700 # Check to make sure the PIC flag actually works.
7702 if test -n "$lt_prog_compiler_pic"; then
7704 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7705 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7706 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 lt_cv_prog_compiler_pic_works=no
7710 ac_outfile=conftest.$ac_objext
7711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7712 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7713 # Insert the option either (1) after the last *FLAGS variable, or
7714 # (2) before a word containing "conftest.", or (3) at the end.
7715 # Note that $ac_compile itself does not contain backslashes and begins
7716 # with a dollar sign (not a hyphen), so the echo should work correctly.
7717 # The option is referenced via a variable to avoid confusing sed.
7718 lt_compile=`echo "$ac_compile" | $SED \
7719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7721 -e 's:$: $lt_compiler_flag:'`
7722 (eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
7723 (eval "$lt_compile" 2>conftest.err)
7725 cat conftest.err >&5
7726 echo "$as_me:7726: \$? = $ac_status" >&5
7727 if (exit $ac_status) && test -s "$ac_outfile"; then
7728 # The compiler can only warn and ignore the option if not recognized
7729 # So say no if there are warnings other than the usual output.
7730 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7733 lt_cv_prog_compiler_pic_works=yes
7739 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7740 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7742 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7743 case $lt_prog_compiler_pic in
7745 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7748 lt_prog_compiler_pic=
7749 lt_prog_compiler_can_build_shared=no
7754 # For platforms which do not support PIC, -DPIC is meaningless:
7756 lt_prog_compiler_pic=
7759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7764 # Check to make sure the static flag actually works.
7766 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7767 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7768 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7769 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 lt_cv_prog_compiler_static_works=no
7773 save_LDFLAGS="$LDFLAGS"
7774 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7775 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7776 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7777 # The linker can only warn and ignore the option if not recognized
7778 # So say no if there are warnings
7779 if test -s conftest.err; then
7780 # Append any errors to the config.log.
7781 cat conftest.err 1>&5
7782 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784 if diff conftest.exp conftest.er2 >/dev/null; then
7785 lt_cv_prog_compiler_static_works=yes
7788 lt_cv_prog_compiler_static_works=yes
7792 LDFLAGS="$save_LDFLAGS"
7795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7796 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7798 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7801 lt_prog_compiler_static=
7805 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7807 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 lt_cv_prog_compiler_c_o=no
7811 $rm -r conftest 2>/dev/null
7815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7817 lt_compiler_flag="-o out/conftest2.$ac_objext"
7818 # Insert the option either (1) after the last *FLAGS variable, or
7819 # (2) before a word containing "conftest.", or (3) at the end.
7820 # Note that $ac_compile itself does not contain backslashes and begins
7821 # with a dollar sign (not a hyphen), so the echo should work correctly.
7822 lt_compile=`echo "$ac_compile" | $SED \
7823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7825 -e 's:$: $lt_compiler_flag:'`
7826 (eval echo "\"\$as_me:7826: $lt_compile\"" >&5)
7827 (eval "$lt_compile" 2>out/conftest.err)
7829 cat out/conftest.err >&5
7830 echo "$as_me:7830: \$? = $ac_status" >&5
7831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7833 # The compiler can only warn and ignore the option if not recognized
7834 # So say no if there are warnings
7835 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7838 lt_cv_prog_compiler_c_o=yes
7843 # SGI C++ compiler will create directory out/ii_files/ for
7844 # template instantiation
7845 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7846 $rm out/* && rmdir out
7852 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7853 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7856 hard_links="nottested"
7857 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7858 # do not overwrite the value of need_locks provided by the user
7859 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7860 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7865 ln conftest.a conftest.b 2>&5 || hard_links=no
7866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7867 { echo "$as_me:$LINENO: result: $hard_links" >&5
7868 echo "${ECHO_T}$hard_links" >&6; }
7869 if test "$hard_links" = no; then
7870 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7871 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7878 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7882 allow_undefined_flag=
7883 enable_shared_with_static_runtimes=no
7885 archive_expsym_cmds=
7886 old_archive_From_new_cmds=
7887 old_archive_from_expsyms_cmds=
7888 export_dynamic_flag_spec=
7889 whole_archive_flag_spec=
7890 thread_safe_flag_spec=
7891 hardcode_libdir_flag_spec=
7892 hardcode_libdir_flag_spec_ld=
7893 hardcode_libdir_separator=
7896 hardcode_shlibpath_var=unsupported
7897 link_all_deplibs=unknown
7898 hardcode_automatic=no
7901 always_export_symbols=no
7902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7903 # include_expsyms should be a list of space-separated symbols to be *always*
7904 # included in the symbol list
7906 # exclude_expsyms can be an extended regexp of symbols to exclude
7907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7909 # as well as any symbol that contains `d'.
7910 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7912 # platforms (ab)use it in PIC code, but their linkers get confused if
7913 # the symbol is explicitly referenced. Since portable code cannot
7914 # rely on this symbol name, it's probably fine to never include it in
7915 # preloaded symbol tables.
7916 # Exclude shared library initialization/finalization symbols.
7917 extract_expsyms_cmds=
7918 # Just being paranoid about ensuring that cc_basename is set.
7919 for cc_temp in $compiler""; do
7921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7930 cygwin* | mingw* | pw32*)
7931 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7932 # When not using gcc, we currently assume that we are using
7933 # Microsoft Visual C++.
7934 if test "$GCC" != yes; then
7939 # we just hope/assume this is gcc and not c89 (= MSVC++)
7948 if test "$with_gnu_ld" = yes; then
7949 # If archive_cmds runs LD, not CC, wlarc should be empty
7952 # Set some defaults for GNU ld with shared library support. These
7953 # are reset later if shared libraries are not supported. Putting them
7954 # here allows them to be overridden if necessary.
7955 runpath_var=LD_RUN_PATH
7956 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7957 export_dynamic_flag_spec='${wl}--export-dynamic'
7958 # ancient GNU ld didn't support --whole-archive et. al.
7959 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7960 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7962 whole_archive_flag_spec=
7964 supports_anon_versioning=no
7965 case `$LD -v 2>/dev/null` in
7966 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7969 *\ 2.11.*) ;; # other 2.11 versions
7970 *) supports_anon_versioning=yes ;;
7973 # See if GNU ld supports shared libraries.
7976 # On AIX/PPC, the GNU linker is very broken
7977 if test "$host_cpu" != ia64; then
7981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7982 *** to be unable to reliably create shared libraries on AIX.
7983 *** Therefore, libtool is disabling shared libraries support. If you
7984 *** really care for shared libraries, you may want to modify your PATH
7985 *** so that a non-GNU linker is found, and then restart.
7992 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)'
7993 hardcode_libdir_flag_spec='-L$libdir'
7994 hardcode_minus_L=yes
7996 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7997 # that the semantics of dynamic libraries on AmigaOS, at least up
7998 # to version 4, is to share data among multiple programs linked
7999 # with the same dynamic library. Since this doesn't match the
8000 # behavior of shared libraries on other platforms, we can't use
8006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8007 allow_undefined_flag=unsupported
8008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8009 # support --undefined. This deserves some investigation. FIXME
8010 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016 cygwin* | mingw* | pw32*)
8017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8018 # as there is no search path for DLLs.
8019 hardcode_libdir_flag_spec='-L$libdir'
8020 allow_undefined_flag=unsupported
8021 always_export_symbols=no
8022 enable_shared_with_static_runtimes=yes
8023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8025 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8027 # If the export-symbols file already is a .def file (1st line
8028 # is EXPORTS), use it as is; otherwise, prepend...
8029 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8030 cp $export_symbols $output_objdir/$soname.def;
8032 echo EXPORTS > $output_objdir/$soname.def;
8033 cat $export_symbols >> $output_objdir/$soname.def;
8035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8043 hardcode_shlibpath_var=no
8044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8045 export_dynamic_flag_spec='${wl}-E'
8046 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8047 # Instead, shared libraries are loaded at an image base (0x10000000 by
8048 # default) and relocated if they conflict, which is a slow very memory
8049 # consuming and fragmenting process. To avoid this, we pick a random,
8050 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8051 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8053 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'
8056 gnu* | linux* | k*bsd*-gnu)
8057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8059 case $cc_basename,$host_cpu in
8060 pgcc*) # Portland Group C compiler
8061 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'
8062 tmp_addflag=' $pic_flag'
8064 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8065 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'
8066 tmp_addflag=' $pic_flag -Mnomain' ;;
8067 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8068 tmp_addflag=' -i_dynamic' ;;
8069 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8070 tmp_addflag=' -i_dynamic -nofor_main' ;;
8071 ifc* | ifort*) # Intel Fortran compiler
8072 tmp_addflag=' -nofor_main' ;;
8074 case `$CC -V 2>&1 | sed 5q` in
8075 *Sun\ C*) # Sun C 5.9
8076 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'
8077 tmp_sharedflag='-G' ;;
8078 *Sun\ F*) # Sun Fortran 8.3
8079 tmp_sharedflag='-G' ;;
8081 tmp_sharedflag='-shared' ;;
8083 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085 if test $supports_anon_versioning = yes; then
8086 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8088 $echo "local: *; };" >> $output_objdir/$libname.ver~
8089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8097 netbsd* | netbsdelf*-gnu)
8098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8099 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8113 *** create shared libraries on Solaris systems. Therefore, libtool
8114 *** is disabling shared libraries support. We urge you to upgrade GNU
8115 *** binutils to release 2.9.1 or newer. Another option is to modify
8116 *** your PATH or compiler configuration so that the native linker is
8117 *** used, and then restart.
8120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8129 case `$LD -v 2>&1` in
8130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8135 *** reliably create shared libraries on SCO systems. Therefore, libtool
8136 *** is disabling shared libraries support. We urge you to upgrade GNU
8137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8138 *** your PATH or compiler configuration so that the native linker is
8139 *** used, and then restart.
8144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8156 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8159 hardcode_shlibpath_var=no
8163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8172 if test "$ld_shlibs" = no; then
8174 hardcode_libdir_flag_spec=
8175 export_dynamic_flag_spec=
8176 whole_archive_flag_spec=
8179 # PORTME fill in a description of your system's linker (not GNU ld)
8182 allow_undefined_flag=unsupported
8183 always_export_symbols=yes
8184 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'
8185 # Note: this linker hardcodes the directories in LIBPATH if there
8186 # are no directories specified by -L.
8187 hardcode_minus_L=yes
8188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8189 # Neither direct hardcoding nor static linking is supported with a
8191 hardcode_direct=unsupported
8196 if test "$host_cpu" = ia64; then
8197 # On IA64, the linker does run time linking by default, so we don't
8198 # have to do anything special.
8199 aix_use_runtimelinking=no
8200 exp_sym_flag='-Bexport'
8203 # If we're using GNU nm, then we don't want the "-C" option.
8204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8206 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'
8208 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'
8210 aix_use_runtimelinking=no
8212 # Test if we are trying to use run time linking or normal
8213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8214 # need to do runtime linking.
8215 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8216 for ld_flag in $LDFLAGS; do
8217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8218 aix_use_runtimelinking=yes
8225 exp_sym_flag='-bexport'
8226 no_entry_flag='-bnoentry'
8229 # When large executables or shared objects are built, AIX ld can
8230 # have problems creating the table of contents. If linking a library
8231 # or program results in "error TOC overflow" add -mminimal-toc to
8232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8237 hardcode_libdir_separator=':'
8238 link_all_deplibs=yes
8240 if test "$GCC" = yes; then
8241 case $host_os in aix4.[012]|aix4.[012].*)
8242 # We only want to do this on AIX 4.2 and lower, the check
8243 # below for broken collect2 doesn't work under 4.3+
8244 collect2name=`${CC} -print-prog-name=collect2`
8245 if test -f "$collect2name" && \
8246 strings "$collect2name" | grep resolve_lib_name >/dev/null
8248 # We have reworked collect2
8251 # We have old collect2
8252 hardcode_direct=unsupported
8253 # It fails to find uninstalled libraries when the uninstalled
8254 # path is not listed in the libpath. Setting hardcode_minus_L
8255 # to unsupported forces relinking
8256 hardcode_minus_L=yes
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_libdir_separator=
8262 shared_flag='-shared'
8263 if test "$aix_use_runtimelinking" = yes; then
8264 shared_flag="$shared_flag "'${wl}-G'
8268 if test "$host_cpu" = ia64; then
8269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8270 # chokes on -Wl,-G. The following line is correct:
8273 if test "$aix_use_runtimelinking" = yes; then
8274 shared_flag='${wl}-G'
8276 shared_flag='${wl}-bM:SRE'
8281 # It seems that -bexpall does not export symbols beginning with
8282 # underscore (_), so it is better to generate a list of symbols to export.
8283 always_export_symbols=yes
8284 if test "$aix_use_runtimelinking" = yes; then
8285 # Warning - without using the other runtime loading flags (-brtl),
8286 # -berok will link without error, but may produce a broken library.
8287 allow_undefined_flag='-berok'
8288 # Determine the default libpath from the value encoded in an empty executable.
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (ac_try="$ac_link"
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_link") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest$ac_exeext &&
8321 $as_test_x conftest$ac_exeext; then
8323 lt_aix_libpath_sed='
8324 /Import File Strings/,/^$/ {
8330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8331 # Check for a 64-bit object if we didn't find anything.
8332 if test -z "$aix_libpath"; then
8333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8343 conftest$ac_exeext conftest.$ac_ext
8344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8346 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8347 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"
8349 if test "$host_cpu" = ia64; then
8350 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8351 allow_undefined_flag="-z nodefs"
8352 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"
8354 # Determine the default libpath from the value encoded in an empty executable.
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (ac_try="$ac_link"
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_link") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1 >conftest.err
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest$ac_exeext &&
8387 $as_test_x conftest$ac_exeext; then
8389 lt_aix_libpath_sed='
8390 /Import File Strings/,/^$/ {
8396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 # Check for a 64-bit object if we didn't find anything.
8398 if test -z "$aix_libpath"; then
8399 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8409 conftest$ac_exeext conftest.$ac_ext
8410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413 # Warning - without using the other run time loading flags,
8414 # -berok will link without error, but may produce a broken library.
8415 no_undefined_flag=' ${wl}-bernotok'
8416 allow_undefined_flag=' ${wl}-berok'
8417 # Exported symbols can be pulled into shared objects from archives
8418 whole_archive_flag_spec='$convenience'
8419 archive_cmds_need_lc=yes
8420 # This is similar to how AIX traditionally builds its shared libraries.
8421 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'
8427 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)'
8428 hardcode_libdir_flag_spec='-L$libdir'
8429 hardcode_minus_L=yes
8430 # see comment about different semantics on the GNU ld section
8435 export_dynamic_flag_spec=-rdynamic
8438 cygwin* | mingw* | pw32*)
8439 # When not using gcc, we currently assume that we are using
8440 # Microsoft Visual C++.
8441 # hardcode_libdir_flag_spec is actually meaningless, as there is
8442 # no search path for DLLs.
8443 hardcode_libdir_flag_spec=' '
8444 allow_undefined_flag=unsupported
8445 # Tell ltmain to make .lib files, not .a files.
8447 # Tell ltmain to make .dll files, not .so files.
8449 # FIXME: Setting linknames here is a bad hack.
8450 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8451 # The linker will automatically build a .lib file if we build a DLL.
8452 old_archive_From_new_cmds='true'
8453 # FIXME: Should let the user specify the lib program.
8454 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8455 fix_srcfile_path='`cygpath -w "$srcfile"`'
8456 enable_shared_with_static_runtimes=yes
8459 darwin* | rhapsody*)
8461 rhapsody* | darwin1.[012])
8462 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8465 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8466 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8468 case ${MACOSX_DEPLOYMENT_TARGET} in
8470 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8473 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8479 archive_cmds_need_lc=no
8481 hardcode_automatic=yes
8482 hardcode_shlibpath_var=unsupported
8483 whole_archive_flag_spec=''
8484 link_all_deplibs=yes
8485 if test "$GCC" = yes ; then
8486 output_verbose_link_cmd='echo'
8487 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8488 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8489 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}"
8490 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}"
8492 case $cc_basename in
8494 output_verbose_link_cmd='echo'
8495 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8496 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8497 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8498 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}'
8499 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}'
8509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8510 hardcode_libdir_flag_spec='-L$libdir'
8511 hardcode_shlibpath_var=no
8518 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8519 # support. Future versions do this automatically, but an explicit c++rt0.o
8520 # does not break anything, and helps significantly (at the cost of a little
8523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8524 hardcode_libdir_flag_spec='-R$libdir'
8526 hardcode_shlibpath_var=no
8529 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8533 hardcode_minus_L=yes
8534 hardcode_shlibpath_var=no
8537 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8538 freebsd* | dragonfly*)
8539 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8540 hardcode_libdir_flag_spec='-R$libdir'
8542 hardcode_shlibpath_var=no
8546 if test "$GCC" = yes; then
8547 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'
8549 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'
8551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8552 hardcode_libdir_separator=:
8555 # hardcode_minus_L: Not really in the search PATH,
8556 # but as the default location of the library.
8557 hardcode_minus_L=yes
8558 export_dynamic_flag_spec='${wl}-E'
8562 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8563 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8565 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8567 if test "$with_gnu_ld" = no; then
8568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8569 hardcode_libdir_separator=:
8572 export_dynamic_flag_spec='${wl}-E'
8574 # hardcode_minus_L: Not really in the search PATH,
8575 # but as the default location of the library.
8576 hardcode_minus_L=yes
8581 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8584 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8590 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8596 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8606 if test "$with_gnu_ld" = no; then
8607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8608 hardcode_libdir_separator=:
8612 hardcode_libdir_flag_spec_ld='+b $libdir'
8614 hardcode_shlibpath_var=no
8618 export_dynamic_flag_spec='${wl}-E'
8620 # hardcode_minus_L: Not really in the search PATH,
8621 # but as the default location of the library.
8622 hardcode_minus_L=yes
8628 irix5* | irix6* | nonstopux*)
8629 if test "$GCC" = yes; then
8630 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'
8632 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'
8633 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8636 hardcode_libdir_separator=:
8637 link_all_deplibs=yes
8640 netbsd* | netbsdelf*-gnu)
8641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8644 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8646 hardcode_libdir_flag_spec='-R$libdir'
8648 hardcode_shlibpath_var=no
8652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 hardcode_libdir_separator=:
8656 hardcode_shlibpath_var=no
8660 if test -f /usr/libexec/ld.so; then
8662 hardcode_shlibpath_var=no
8663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8667 export_dynamic_flag_spec='${wl}-E'
8670 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_libdir_flag_spec='-R$libdir'
8675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8686 hardcode_libdir_flag_spec='-L$libdir'
8687 hardcode_minus_L=yes
8688 allow_undefined_flag=unsupported
8689 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'
8690 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8694 if test "$GCC" = yes; then
8695 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696 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'
8698 allow_undefined_flag=' -expect_unresolved \*'
8699 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'
8701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702 hardcode_libdir_separator=:
8705 osf4* | osf5*) # as osf3* with the addition of -msym flag
8706 if test "$GCC" = yes; then
8707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8708 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'
8709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711 allow_undefined_flag=' -expect_unresolved \*'
8712 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'
8713 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8714 $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'
8716 # Both c and cxx compiler support -rpath directly
8717 hardcode_libdir_flag_spec='-rpath $libdir'
8719 hardcode_libdir_separator=:
8723 no_undefined_flag=' -z text'
8724 if test "$GCC" = yes; then
8726 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8728 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8731 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8735 hardcode_libdir_flag_spec='-R$libdir'
8736 hardcode_shlibpath_var=no
8738 solaris2.[0-5] | solaris2.[0-5].*) ;;
8740 # The compiler driver will combine and reorder linker options,
8741 # but understands `-z linker_flag'. GCC discards it without `$wl',
8742 # but is careful enough not to reorder.
8743 # Supported since Solaris 2.6 (maybe 2.5.1?)
8744 if test "$GCC" = yes; then
8745 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8747 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8751 link_all_deplibs=yes
8755 if test "x$host_vendor" = xsequent; then
8756 # Use $CC to link under sequent, because it throws in some extra .o
8757 # files that make .init and .fini sections work.
8758 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8760 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_libdir_flag_spec='-L$libdir'
8764 hardcode_minus_L=yes
8765 hardcode_shlibpath_var=no
8769 case $host_vendor in
8771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_direct=yes # is this really true???
8775 ## LD is ld it makes a PLAMLIB
8776 ## CC just makes a GrossModule.
8777 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8778 reload_cmds='$CC -r -o $output$reload_objs'
8782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8786 runpath_var='LD_RUN_PATH'
8787 hardcode_shlibpath_var=no
8791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792 hardcode_shlibpath_var=no
8793 export_dynamic_flag_spec='-Bexport'
8797 if test -d /usr/nec; then
8798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_shlibpath_var=no
8800 runpath_var=LD_RUN_PATH
8801 hardcode_runpath_var=yes
8806 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8807 no_undefined_flag='${wl}-z,text'
8808 archive_cmds_need_lc=no
8809 hardcode_shlibpath_var=no
8810 runpath_var='LD_RUN_PATH'
8812 if test "$GCC" = yes; then
8813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821 sysv5* | sco3.2v5* | sco5v6*)
8822 # Note: We can NOT use -z defs as we might desire, because we do not
8823 # link with -lc, and that would cause any symbols used from libc to
8824 # always be unresolved, which means just about no library would
8825 # ever link correctly. If we're not using GNU ld we use -z text
8826 # though, which does catch some bad symbols but isn't as heavy-handed
8828 no_undefined_flag='${wl}-z,text'
8829 allow_undefined_flag='${wl}-z,nodefs'
8830 archive_cmds_need_lc=no
8831 hardcode_shlibpath_var=no
8832 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8833 hardcode_libdir_separator=':'
8834 link_all_deplibs=yes
8835 export_dynamic_flag_spec='${wl}-Bexport'
8836 runpath_var='LD_RUN_PATH'
8838 if test "$GCC" = yes; then
8839 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_libdir_flag_spec='-L$libdir'
8850 hardcode_shlibpath_var=no
8859 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8860 echo "${ECHO_T}$ld_shlibs" >&6; }
8861 test "$ld_shlibs" = no && can_build_shared=no
8864 # Do we need to explicitly link libc?
8866 case "x$archive_cmds_need_lc" in
8868 # Assume -lc should be added
8869 archive_cmds_need_lc=yes
8871 if test "$enable_shared" = yes && test "$GCC" = yes; then
8872 case $archive_cmds in
8874 # FIXME: we may have to deal with multi-command sequences.
8877 # Test whether the compiler implicitly links with -lc since on some
8878 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8879 # to ld, don't add -lc before -lgcc.
8880 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8881 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } 2>conftest.err; then
8892 libobjs=conftest.$ac_objext
8894 wl=$lt_prog_compiler_wl
8895 pic_flag=$lt_prog_compiler_pic
8901 lt_save_allow_undefined_flag=$allow_undefined_flag
8902 allow_undefined_flag=
8903 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8904 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }
8909 archive_cmds_need_lc=no
8911 archive_cmds_need_lc=yes
8913 allow_undefined_flag=$lt_save_allow_undefined_flag
8915 cat conftest.err 1>&5
8918 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8919 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8929 libname_spec='lib$name'
8937 shlibpath_overrides_runpath=unknown
8939 dynamic_linker="$host_os ld.so"
8940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8942 if test "$GCC" = yes; then
8944 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8945 *) lt_awk_arg="/^libraries:/" ;;
8947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8949 # if the path contains ";" then we assume it to be the separator
8950 # otherwise default to the standard path separator (i.e. ":") - it is
8951 # assumed that no part of a normal pathname contains ";" but that should
8952 # okay in the real world where ";" in dirpaths is itself problematic.
8953 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8955 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8957 # Ok, now we have the path, separated by spaces, we can step through it
8958 # and add multilib dir if necessary.
8959 lt_tmp_lt_search_path_spec=
8960 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8961 for lt_sys_path in $lt_search_path_spec; do
8962 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8963 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8965 test -d "$lt_sys_path" && \
8966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8969 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8970 BEGIN {RS=" "; FS="/|\n";} {
8973 for (lt_i = NF; lt_i > 0; lt_i--) {
8974 if ($lt_i != "" && $lt_i != ".") {
8975 if ($lt_i == "..") {
8978 if (lt_count == 0) {
8979 lt_foo="/" $lt_i lt_foo;
8986 if (lt_foo != "") { lt_freq[lt_foo]++; }
8987 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8989 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8991 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8993 need_lib_prefix=unknown
8994 hardcode_into_libs=no
8996 # when you set need_version to no, make sure it does not cause -set_version
8997 # flags to be left without arguments
8998 need_version=unknown
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9004 shlibpath_var=LIBPATH
9006 # AIX 3 has no versioning support, so we append a major version to the name.
9007 soname_spec='${libname}${release}${shared_ext}$major'
9014 hardcode_into_libs=yes
9015 if test "$host_cpu" = ia64; then
9016 # AIX 5 supports IA64
9017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9018 shlibpath_var=LD_LIBRARY_PATH
9020 # With GCC up to 2.95.x, collect2 would create an import file
9021 # for dependence libraries. The import file would start with
9022 # the line `#! .'. This would cause the generated library to
9023 # depend on `.', always an invalid library. This was fixed in
9024 # development snapshots of GCC prior to 3.0.
9026 aix4 | aix4.[01] | aix4.[01].*)
9027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9029 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9037 # soname into executable. Probably we can add versioning support to
9038 # collect2, so additional links can be useful in future.
9039 if test "$aix_use_runtimelinking" = yes; then
9040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9041 # instead of lib<name>.a to let people know that these are not
9042 # typical AIX shared libraries.
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 # We preserve .a as extension for shared libraries through AIX4.2
9046 # and later when we are not doing run time linking.
9047 library_names_spec='${libname}${release}.a $libname.a'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9050 shlibpath_var=LIBPATH
9055 library_names_spec='$libname.ixlibrary $libname.a'
9056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9057 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'
9061 library_names_spec='${libname}${shared_ext}'
9062 dynamic_linker="$host_os ld.so"
9063 shlibpath_var=LIBRARY_PATH
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9075 # the default ld.so.conf also contains /usr/contrib/lib and
9076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9077 # libtool to hard-code these into programs
9080 cygwin* | mingw* | pw32*)
9081 version_type=windows
9086 case $GCC,$host_os in
9087 yes,cygwin* | yes,mingw* | yes,pw32*)
9088 library_names_spec='$libname.dll.a'
9089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9090 postinstall_cmds='base_file=`basename \${file}`~
9091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9092 dldir=$destdir/`dirname \$dlpath`~
9093 test -d \$dldir || mkdir -p \$dldir~
9094 $install_prog $dir/$dlname \$dldir/$dlname~
9095 chmod a+x \$dldir/$dlname'
9096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9097 dlpath=$dir/\$dldll~
9099 shlibpath_overrides_runpath=yes
9103 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9104 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9105 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9108 # MinGW DLLs use traditional 'lib' prefix
9109 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9110 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9111 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9112 # It is most probably a Windows format PATH printed by
9113 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9114 # path with ; separators, and with drive letters. We can handle the
9115 # drive letters (cygwin fileutils understands them), so leave them,
9116 # especially as we might pass files found there to a mingw objdump,
9117 # which wouldn't understand a cygwinified path. Ahh.
9118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9124 # pw32 DLLs use 'pw' prefix rather than 'lib'
9125 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9131 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9134 dynamic_linker='Win32 ld.exe'
9135 # FIXME: first we should search . and the directory the executable is in
9139 darwin* | rhapsody*)
9140 dynamic_linker="$host_os dyld"
9144 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9145 soname_spec='${libname}${release}${major}$shared_ext'
9146 shlibpath_overrides_runpath=yes
9147 shlibpath_var=DYLD_LIBRARY_PATH
9148 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9167 freebsd* | dragonfly*)
9168 # DragonFly does not have aout. When/if they implement a new
9169 # versioning mechanism, adjust this.
9170 if test -x /usr/bin/objformat; then
9171 objformat=`/usr/bin/objformat`
9174 freebsd[123]*) objformat=aout ;;
9178 version_type=freebsd-$objformat
9179 case $version_type in
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9190 shlibpath_var=LD_LIBRARY_PATH
9193 shlibpath_overrides_runpath=yes
9195 freebsd3.[01]* | freebsdelf3.[01]*)
9196 shlibpath_overrides_runpath=yes
9197 hardcode_into_libs=yes
9199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9201 shlibpath_overrides_runpath=no
9202 hardcode_into_libs=yes
9204 *) # from 4.6 on, and DragonFly
9205 shlibpath_overrides_runpath=yes
9206 hardcode_into_libs=yes
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 hardcode_into_libs=yes
9221 hpux9* | hpux10* | hpux11*)
9222 # Give a soname corresponding to the major version so that dld.sl refuses to
9223 # link against other versions.
9230 hardcode_into_libs=yes
9231 dynamic_linker="$host_os dld.so"
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 if test "X$HPUX_IA64_MODE" = X32; then
9237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9245 hardcode_into_libs=yes
9246 dynamic_linker="$host_os dld.sl"
9247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
9251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9256 dynamic_linker="$host_os dld.sl"
9257 shlibpath_var=SHLIB_PATH
9258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9264 postinstall_cmds='chmod 555 $lib'
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9274 shlibpath_var=LD_LIBRARY_PATH
9275 shlibpath_overrides_runpath=no
9276 hardcode_into_libs=yes
9279 irix5* | irix6* | nonstopux*)
9281 nonstopux*) version_type=nonstopux ;;
9283 if test "$lt_cv_prog_gnu_ld" = yes; then
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9294 irix5* | nonstopux*)
9298 case $LD in # libtool.m4 will add one of these switches to LD
9299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9300 libsuff= shlibsuff= libmagic=32-bit;;
9301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9302 libsuff=32 shlibsuff=N32 libmagic=N32;;
9303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9305 *) libsuff= shlibsuff= libmagic=never-match;;
9309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9313 hardcode_into_libs=yes
9316 # No shared lib support for Linux oldld, aout, or coff.
9317 linux*oldld* | linux*aout* | linux*coff*)
9321 # This must be Linux ELF.
9322 linux* | k*bsd*-gnu)
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 shlibpath_overrides_runpath=no
9331 # This implies no fast_install, which is unacceptable.
9332 # Some rework will be needed to allow for fast_install
9333 # before this can be enabled.
9334 hardcode_into_libs=yes
9336 # Append ld.so.conf contents to the search path
9337 if test -f /etc/ld.so.conf; then
9338 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' ' '`
9339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9342 # We used to test for /lib/ld.so.1 and disable shared libraries on
9343 # powerpc, because MkLinux only supported shared libraries with the
9344 # GNU dynamic linker. Since this was broken with cross compilers,
9345 # most powerpc-linux boxes support dynamic linking these days and
9346 # people can always --disable-shared, the test was removed, and we
9347 # assume the GNU/Linux dynamic linker is in use.
9348 dynamic_linker='GNU/Linux ld.so'
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 shlibpath_overrides_runpath=no
9359 hardcode_into_libs=yes
9360 dynamic_linker='NetBSD ld.elf_so'
9367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9370 dynamic_linker='NetBSD (a.out) ld.so'
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 dynamic_linker='NetBSD ld.elf_so'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=yes
9378 hardcode_into_libs=yes
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=yes
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9400 sys_lib_dlsearch_path_spec="/usr/lib"
9402 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9404 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9405 *) need_version=no ;;
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9412 openbsd2.[89] | openbsd2.[89].*)
9413 shlibpath_overrides_runpath=no
9416 shlibpath_overrides_runpath=yes
9420 shlibpath_overrides_runpath=yes
9425 libname_spec='$name'
9428 library_names_spec='$libname${shared_ext} $libname.a'
9429 dynamic_linker='OS/2 ld.exe'
9430 shlibpath_var=LIBPATH
9433 osf3* | osf4* | osf5*)
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9441 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 hardcode_into_libs=yes
9457 # ldd complains unless libraries are executable
9458 postinstall_cmds='chmod +x $lib'
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9464 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9465 shlibpath_var=LD_LIBRARY_PATH
9466 shlibpath_overrides_runpath=yes
9467 if test "$with_gnu_ld" = yes; then
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 case $host_vendor in
9480 shlibpath_overrides_runpath=no
9482 export_dynamic_flag_spec='${wl}-Blargedynsym'
9483 runpath_var=LD_RUN_PATH
9491 shlibpath_overrides_runpath=no
9492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9498 if test -d /usr/nec ;then
9500 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9501 soname_spec='$libname${shared_ext}.$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9507 version_type=freebsd-elf
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 shlibpath_var=LD_LIBRARY_PATH
9513 hardcode_into_libs=yes
9514 if test "$with_gnu_ld" = yes; then
9515 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9516 shlibpath_overrides_runpath=no
9518 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9519 shlibpath_overrides_runpath=yes
9522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9526 sys_lib_dlsearch_path_spec='/usr/lib'
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 shlibpath_var=LD_LIBRARY_PATH
9540 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9541 echo "${ECHO_T}$dynamic_linker" >&6; }
9542 test "$dynamic_linker" = no && can_build_shared=no
9544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9550 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9551 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9560 if test "$GCC" = yes; then
9561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9564 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9565 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9567 if test -n "$hardcode_libdir_flag_spec" || \
9568 test -n "$runpath_var" || \
9569 test "X$hardcode_automatic" = "Xyes" ; then
9571 # We can hardcode non-existant directories.
9572 if test "$hardcode_direct" != no &&
9573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9574 # have to relink, otherwise we might link with an installed library
9575 # when we should be linking with a yet-to-be-installed one
9576 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9577 test "$hardcode_minus_L" != no; then
9578 # Linking always hardcodes the temporary library directory.
9579 hardcode_action=relink
9581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9582 hardcode_action=immediate
9585 # We cannot hardcode anything, or else we can only hardcode existing
9587 hardcode_action=unsupported
9589 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9590 echo "${ECHO_T}$hardcode_action" >&6; }
9592 if test "$hardcode_action" = relink; then
9593 # Fast installation is not supported
9594 enable_fast_install=no
9595 elif test "$shlibpath_overrides_runpath" = yes ||
9596 test "$enable_shared" = no; then
9597 # Fast installation is not necessary
9598 enable_fast_install=needless
9603 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9604 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9605 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9606 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9607 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9608 { echo "$as_me:$LINENO: result: yes" >&5
9609 echo "${ECHO_T}yes" >&6; }
9611 # FIXME - insert some real tests, host_os isn't really good enough
9614 if test -n "$STRIP" ; then
9615 striplib="$STRIP -x"
9616 old_striplib="$STRIP -S"
9617 { echo "$as_me:$LINENO: result: yes" >&5
9618 echo "${ECHO_T}yes" >&6; }
9620 { echo "$as_me:$LINENO: result: no" >&5
9621 echo "${ECHO_T}no" >&6; }
9625 { echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6; }
9631 if test "x$enable_dlopen" != xyes; then
9632 enable_dlopen=unknown
9633 enable_dlopen_self=unknown
9634 enable_dlopen_self_static=unknown
9641 lt_cv_dlopen="load_add_on"
9643 lt_cv_dlopen_self=yes
9647 lt_cv_dlopen="LoadLibrary"
9652 lt_cv_dlopen="dlopen"
9657 # if libdl is installed we need to link against it
9658 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9659 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 ac_check_lib_save_LIBS=$LIBS
9665 cat >conftest.$ac_ext <<_ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9672 /* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
9705 ac_cv_lib_dl_dlopen=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_lib_dl_dlopen=no
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9725 lt_cv_dlopen_self=yes
9732 { echo "$as_me:$LINENO: checking for shl_load" >&5
9733 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9734 if test "${ac_cv_func_shl_load+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9745 #define shl_load innocuous_shl_load
9747 /* System header to define __stub macros and hopefully few prototypes,
9748 which can conflict with char shl_load (); below.
9749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750 <limits.h> exists even on freestanding compilers. */
9753 # include <limits.h>
9755 # include <assert.h>
9760 /* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined __stub_shl_load || defined __stub___shl_load
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext &&
9799 $as_test_x conftest$ac_exeext; then
9800 ac_cv_func_shl_load=yes
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9805 ac_cv_func_shl_load=no
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809 conftest$ac_exeext conftest.$ac_ext
9811 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9812 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9813 if test $ac_cv_func_shl_load = yes; then
9814 lt_cv_dlopen="shl_load"
9816 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9817 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 ac_check_lib_save_LIBS=$LIBS
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9830 /* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_link") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest$ac_exeext &&
9862 $as_test_x conftest$ac_exeext; then
9863 ac_cv_lib_dld_shl_load=yes
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_cv_lib_dld_shl_load=no
9871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9872 conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9875 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9876 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9877 if test $ac_cv_lib_dld_shl_load = yes; then
9878 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9880 { echo "$as_me:$LINENO: checking for dlopen" >&5
9881 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9882 if test "${ac_cv_func_dlopen+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define dlopen innocuous_dlopen
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char dlopen (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9901 # include <limits.h>
9903 # include <assert.h>
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined __stub_dlopen || defined __stub___dlopen
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9939 grep -v '^ *+' conftest.er1 >conftest.err
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest$ac_exeext &&
9947 $as_test_x conftest$ac_exeext; then
9948 ac_cv_func_dlopen=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_func_dlopen=no
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957 conftest$ac_exeext conftest.$ac_ext
9959 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9960 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9961 if test $ac_cv_func_dlopen = yes; then
9962 lt_cv_dlopen="dlopen"
9964 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 ac_check_lib_save_LIBS=$LIBS
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (ac_try="$ac_link"
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_link") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1 >conftest.err
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext &&
10010 $as_test_x conftest$ac_exeext; then
10011 ac_cv_lib_dl_dlopen=yes
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_cv_lib_dl_dlopen=no
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020 conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10025 if test $ac_cv_lib_dl_dlopen = yes; then
10026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10028 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10029 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10030 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-lsvld $LIBS"
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10042 /* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_link") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest$ac_exeext &&
10074 $as_test_x conftest$ac_exeext; then
10075 ac_cv_lib_svld_dlopen=yes
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_cv_lib_svld_dlopen=no
10083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10084 conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10087 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10088 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10089 if test $ac_cv_lib_svld_dlopen = yes; then
10090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10092 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10093 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10094 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 ac_check_lib_save_LIBS=$LIBS
10099 cat >conftest.$ac_ext <<_ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10106 /* Override any GCC internal prototype to avoid an error.
10107 Use char because int might match the return type of a GCC
10108 builtin and then its argument prototype would still apply. */
10116 return dld_link ();
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_link") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest$ac_exeext &&
10138 $as_test_x conftest$ac_exeext; then
10139 ac_cv_lib_dld_dld_link=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_cv_lib_dld_dld_link=no
10147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10153 if test $ac_cv_lib_dld_dld_link = yes; then
10154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10175 if test "x$lt_cv_dlopen" != xno; then
10181 case $lt_cv_dlopen in
10183 save_CPPFLAGS="$CPPFLAGS"
10184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10186 save_LDFLAGS="$LDFLAGS"
10187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10190 LIBS="$lt_cv_dlopen_libs $LIBS"
10192 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10193 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10194 if test "${lt_cv_dlopen_self+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 if test "$cross_compiling" = yes; then :
10198 lt_cv_dlopen_self=cross
10200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10201 lt_status=$lt_dlunknown
10202 cat > conftest.$ac_ext <<EOF
10203 #line 10203 "configure"
10204 #include "confdefs.h"
10213 # define LT_DLGLOBAL RTLD_GLOBAL
10216 # define LT_DLGLOBAL DL_GLOBAL
10218 # define LT_DLGLOBAL 0
10222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10223 find out it does not work in some platform. */
10224 #ifndef LT_DLLAZY_OR_NOW
10226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10229 # define LT_DLLAZY_OR_NOW DL_LAZY
10232 # define LT_DLLAZY_OR_NOW RTLD_NOW
10235 # define LT_DLLAZY_OR_NOW DL_NOW
10237 # define LT_DLLAZY_OR_NOW 0
10245 extern "C" void exit (int);
10248 void fnord() { int i=42;}
10251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10252 int status = $lt_dlunknown;
10256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10258 /* dlclose (self); */
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267 (eval $ac_link) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10271 (./conftest; exit; ) >&5 2>/dev/null
10273 case x$lt_status in
10274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10276 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10279 # compilation failed
10280 lt_cv_dlopen_self=no
10287 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10288 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10290 if test "x$lt_cv_dlopen_self" = xyes; then
10291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10292 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10293 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10294 if test "${lt_cv_dlopen_self_static+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 if test "$cross_compiling" = yes; then :
10298 lt_cv_dlopen_self_static=cross
10300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10301 lt_status=$lt_dlunknown
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10313 # define LT_DLGLOBAL RTLD_GLOBAL
10316 # define LT_DLGLOBAL DL_GLOBAL
10318 # define LT_DLGLOBAL 0
10322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10323 find out it does not work in some platform. */
10324 #ifndef LT_DLLAZY_OR_NOW
10326 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10329 # define LT_DLLAZY_OR_NOW DL_LAZY
10332 # define LT_DLLAZY_OR_NOW RTLD_NOW
10335 # define LT_DLLAZY_OR_NOW DL_NOW
10337 # define LT_DLLAZY_OR_NOW 0
10345 extern "C" void exit (int);
10348 void fnord() { int i=42;}
10351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352 int status = $lt_dlunknown;
10356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358 /* dlclose (self); */
10366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367 (eval $ac_link) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10371 (./conftest; exit; ) >&5 2>/dev/null
10373 case x$lt_status in
10374 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10375 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10376 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10379 # compilation failed
10380 lt_cv_dlopen_self_static=no
10387 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10388 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10391 CPPFLAGS="$save_CPPFLAGS"
10392 LDFLAGS="$save_LDFLAGS"
10397 case $lt_cv_dlopen_self in
10398 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10399 *) enable_dlopen_self=unknown ;;
10402 case $lt_cv_dlopen_self_static in
10403 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10404 *) enable_dlopen_self_static=unknown ;;
10409 # Report which library types will actually be built
10410 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10411 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10412 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10413 echo "${ECHO_T}$can_build_shared" >&6; }
10415 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10416 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10417 test "$can_build_shared" = "no" && enable_shared=no
10419 # On AIX, shared libraries and static libraries use the same namespace, and
10420 # are all built from PIC.
10423 test "$enable_shared" = yes && enable_static=no
10424 if test -n "$RANLIB"; then
10425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10426 postinstall_cmds='$RANLIB $lib'
10431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10432 test "$enable_shared" = yes && enable_static=no
10436 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10437 echo "${ECHO_T}$enable_shared" >&6; }
10439 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10440 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10441 # Make sure either enable_shared or enable_static is yes.
10442 test "$enable_shared" = yes || enable_static=yes
10443 { echo "$as_me:$LINENO: result: $enable_static" >&5
10444 echo "${ECHO_T}$enable_static" >&6; }
10446 # The else clause should only fire when bootstrapping the
10447 # libtool distribution, otherwise you forgot to ship ltmain.sh
10448 # with your package, and you will get complaints that there are
10449 # no rules to generate ltmain.sh.
10450 if test -f "$ltmain"; then
10451 # See if we are running on zsh, and set the options which allow our commands through
10452 # without removal of \ escapes.
10453 if test -n "${ZSH_VERSION+set}" ; then
10454 setopt NO_GLOB_SUBST
10456 # Now quote all the things that may contain metacharacters while being
10457 # careful not to overquote the AC_SUBSTed values. We take copies of the
10458 # variables and quote the copies for generation of the libtool script.
10459 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10461 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10462 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10463 deplibs_check_method reload_flag reload_cmds need_locks \
10464 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10465 lt_cv_sys_global_symbol_to_c_name_address \
10466 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10467 old_postinstall_cmds old_postuninstall_cmds \
10471 lt_prog_compiler_wl \
10472 lt_prog_compiler_pic \
10473 lt_prog_compiler_static \
10474 lt_prog_compiler_no_builtin_flag \
10475 export_dynamic_flag_spec \
10476 thread_safe_flag_spec \
10477 whole_archive_flag_spec \
10478 enable_shared_with_static_runtimes \
10480 old_archive_from_new_cmds \
10485 compiler_lib_search_path \
10486 compiler_lib_search_dirs \
10488 archive_expsym_cmds \
10490 postuninstall_cmds \
10491 old_archive_from_expsyms_cmds \
10492 allow_undefined_flag \
10493 no_undefined_flag \
10494 export_symbols_cmds \
10495 hardcode_libdir_flag_spec \
10496 hardcode_libdir_flag_spec_ld \
10497 hardcode_libdir_separator \
10498 hardcode_automatic \
10500 module_expsym_cmds \
10501 lt_cv_prog_compiler_c_o \
10504 include_expsyms; do
10507 old_archive_cmds | \
10508 old_archive_from_new_cmds | \
10510 archive_expsym_cmds | \
10512 module_expsym_cmds | \
10513 old_archive_from_expsyms_cmds | \
10514 export_symbols_cmds | \
10515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10516 postinstall_cmds | postuninstall_cmds | \
10517 old_postinstall_cmds | old_postuninstall_cmds | \
10518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10519 # Double-quote double-evaled strings.
10520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10529 *'\$0 --fallback-echo"')
10530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10534 cfgfile="${ofile}T"
10535 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10537 { echo "$as_me:$LINENO: creating $ofile" >&5
10538 echo "$as_me: creating $ofile" >&6;}
10540 cat <<__EOF__ >> "$cfgfile"
10543 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10544 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10547 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10548 # Free Software Foundation, Inc.
10550 # This file is part of GNU Libtool:
10551 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10553 # This program is free software; you can redistribute it and/or modify
10554 # it under the terms of the GNU General Public License as published by
10555 # the Free Software Foundation; either version 2 of the License, or
10556 # (at your option) any later version.
10558 # This program is distributed in the hope that it will be useful, but
10559 # WITHOUT ANY WARRANTY; without even the implied warranty of
10560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10561 # General Public License for more details.
10563 # You should have received a copy of the GNU General Public License
10564 # along with this program; if not, write to the Free Software
10565 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10567 # As a special exception to the GNU General Public License, if you
10568 # distribute this file as part of a program that contains a
10569 # configuration script generated by Autoconf, you may include it under
10570 # the same distribution terms that you use for the rest of that program.
10572 # A sed program that does not truncate output.
10575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10576 Xsed="$SED -e 1s/^X//"
10578 # The HP-UX ksh and POSIX shell print the target directory to stdout
10579 # if CDPATH is set.
10580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10582 # The names of the tagged configurations supported by this script.
10585 # ### BEGIN LIBTOOL CONFIG
10587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10589 # Shell to use when invoking shell scripts.
10592 # Whether or not to build shared libraries.
10593 build_libtool_libs=$enable_shared
10595 # Whether or not to build static libraries.
10596 build_old_libs=$enable_static
10598 # Whether or not to add -lc for building shared libraries.
10599 build_libtool_need_lc=$archive_cmds_need_lc
10601 # Whether or not to disallow shared libs when runtime libs are static
10602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10604 # Whether or not to optimize for fast installation.
10605 fast_install=$enable_fast_install
10608 host_alias=$host_alias
10612 # The build system.
10613 build_alias=$build_alias
10617 # An echo program that does not interpret backslashes.
10622 AR_FLAGS=$lt_AR_FLAGS
10627 # LTCC compiler flags.
10628 LTCFLAGS=$lt_LTCFLAGS
10630 # A language-specific compiler.
10633 # Is the compiler the GNU C compiler?
10639 # The linker used to build libraries.
10642 # Whether we need hard or soft links.
10645 # A BSD-compatible nm program.
10648 # A symbol stripping program
10651 # Used to examine libraries when file_magic_cmd begins "file"
10652 MAGIC_CMD=$MAGIC_CMD
10654 # Used on cygwin: DLL creation program.
10657 # Used on cygwin: object dumper.
10660 # Used on cygwin: assembler.
10663 # The name of the directory that contains temporary libtool files.
10666 # How to create reloadable object files.
10667 reload_flag=$lt_reload_flag
10668 reload_cmds=$lt_reload_cmds
10670 # How to pass a linker flag through the compiler.
10671 wl=$lt_lt_prog_compiler_wl
10673 # Object file suffix (normally "o").
10674 objext="$ac_objext"
10676 # Old archive suffix (normally "a").
10679 # Shared library suffix (normally ".so").
10680 shrext_cmds='$shrext_cmds'
10682 # Executable file suffix (normally "").
10685 # Additional compiler flags for building library objects.
10686 pic_flag=$lt_lt_prog_compiler_pic
10689 # What is the maximum length of a command?
10690 max_cmd_len=$lt_cv_sys_max_cmd_len
10692 # Does compiler simultaneously support -c and -o options?
10693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10695 # Must we lock files when doing compilation?
10696 need_locks=$lt_need_locks
10698 # Do we need the lib prefix for modules?
10699 need_lib_prefix=$need_lib_prefix
10701 # Do we need a version for libraries?
10702 need_version=$need_version
10704 # Whether dlopen is supported.
10705 dlopen_support=$enable_dlopen
10707 # Whether dlopen of programs is supported.
10708 dlopen_self=$enable_dlopen_self
10710 # Whether dlopen of statically linked programs is supported.
10711 dlopen_self_static=$enable_dlopen_self_static
10713 # Compiler flag to prevent dynamic linking.
10714 link_static_flag=$lt_lt_prog_compiler_static
10716 # Compiler flag to turn off builtin functions.
10717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10719 # Compiler flag to allow reflexive dlopens.
10720 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10722 # Compiler flag to generate shared objects directly from archives.
10723 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10725 # Compiler flag to generate thread-safe objects.
10726 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10728 # Library versioning type.
10729 version_type=$version_type
10731 # Format of library name prefix.
10732 libname_spec=$lt_libname_spec
10734 # List of archive names. First name is the real one, the rest are links.
10735 # The last name is the one that the linker finds with -lNAME.
10736 library_names_spec=$lt_library_names_spec
10738 # The coded name of the library, if different from the real name.
10739 soname_spec=$lt_soname_spec
10741 # Commands used to build and install an old-style archive.
10743 old_archive_cmds=$lt_old_archive_cmds
10744 old_postinstall_cmds=$lt_old_postinstall_cmds
10745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10747 # Create an old-style archive from a shared archive.
10748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10750 # Create a temporary old-style archive to link instead of a shared archive.
10751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10753 # Commands used to build and install a shared archive.
10754 archive_cmds=$lt_archive_cmds
10755 archive_expsym_cmds=$lt_archive_expsym_cmds
10756 postinstall_cmds=$lt_postinstall_cmds
10757 postuninstall_cmds=$lt_postuninstall_cmds
10759 # Commands used to build a loadable module (assumed same as above if empty)
10760 module_cmds=$lt_module_cmds
10761 module_expsym_cmds=$lt_module_expsym_cmds
10763 # Commands to strip libraries.
10764 old_striplib=$lt_old_striplib
10765 striplib=$lt_striplib
10767 # Dependencies to place before the objects being linked to create a
10769 predep_objects=$lt_predep_objects
10771 # Dependencies to place after the objects being linked to create a
10773 postdep_objects=$lt_postdep_objects
10775 # Dependencies to place before the objects being linked to create a
10777 predeps=$lt_predeps
10779 # Dependencies to place after the objects being linked to create a
10781 postdeps=$lt_postdeps
10783 # The directories searched by this compiler when creating a shared
10785 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10787 # The library search path used internally by the compiler when linking
10788 # a shared library.
10789 compiler_lib_search_path=$lt_compiler_lib_search_path
10791 # Method to check whether dependent libraries are shared objects.
10792 deplibs_check_method=$lt_deplibs_check_method
10794 # Command to use when deplibs_check_method == file_magic.
10795 file_magic_cmd=$lt_file_magic_cmd
10797 # Flag that allows shared libraries with undefined symbols to be built.
10798 allow_undefined_flag=$lt_allow_undefined_flag
10800 # Flag that forces no undefined symbols.
10801 no_undefined_flag=$lt_no_undefined_flag
10803 # Commands used to finish a libtool library installation in a directory.
10804 finish_cmds=$lt_finish_cmds
10806 # Same as above, but a single script fragment to be evaled but not shown.
10807 finish_eval=$lt_finish_eval
10809 # Take the output of nm and produce a listing of raw symbols and C names.
10810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10812 # Transform the output of nm in a proper C declaration
10813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10815 # Transform the output of nm in a C name address pair
10816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10818 # This is the shared library runtime path variable.
10819 runpath_var=$runpath_var
10821 # This is the shared library path variable.
10822 shlibpath_var=$shlibpath_var
10824 # Is shlibpath searched before the hard-coded library search path?
10825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10827 # How to hardcode a shared library path into an executable.
10828 hardcode_action=$hardcode_action
10830 # Whether we should hardcode library paths into libraries.
10831 hardcode_into_libs=$hardcode_into_libs
10833 # Flag to hardcode \$libdir into a binary during linking.
10834 # This must work even if \$libdir does not exist.
10835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10837 # If ld is used when linking, flag to hardcode \$libdir into
10838 # a binary during linking. This must work even if \$libdir does
10840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10842 # Whether we need a single -rpath flag with a separated argument.
10843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10846 # resulting binary.
10847 hardcode_direct=$hardcode_direct
10849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10850 # resulting binary.
10851 hardcode_minus_L=$hardcode_minus_L
10853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10854 # the resulting binary.
10855 hardcode_shlibpath_var=$hardcode_shlibpath_var
10857 # Set to yes if building a shared library automatically hardcodes DIR into the library
10858 # and all subsequent libraries and executables linked against it.
10859 hardcode_automatic=$hardcode_automatic
10861 # Variables whose values should be saved in libtool wrapper scripts and
10862 # restored at relink time.
10863 variables_saved_for_relink="$variables_saved_for_relink"
10865 # Whether libtool must link a program against all its dependency libraries.
10866 link_all_deplibs=$link_all_deplibs
10868 # Compile-time system search path for libraries
10869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10871 # Run-time system search path for libraries
10872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10874 # Fix the shell variable \$srcfile for the compiler.
10875 fix_srcfile_path=$lt_fix_srcfile_path
10877 # Set to yes if exported symbols are required.
10878 always_export_symbols=$always_export_symbols
10880 # The commands to list exported symbols.
10881 export_symbols_cmds=$lt_export_symbols_cmds
10883 # The commands to extract the exported symbol list from a shared archive.
10884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10886 # Symbols that should not be listed in the preloaded symbols.
10887 exclude_expsyms=$lt_exclude_expsyms
10889 # Symbols that must always be exported.
10890 include_expsyms=$lt_include_expsyms
10892 # ### END LIBTOOL CONFIG
10899 cat <<\EOF >> "$cfgfile"
10901 # AIX sometimes has problems with the GCC collect2 program. For some
10902 # reason, if we set the COLLECT_NAMES environment variable, the problems
10903 # vanish in a puff of smoke.
10904 if test "X${COLLECT_NAMES+set}" != Xset; then
10906 export COLLECT_NAMES
10912 # We use sed instead of cat because bash on DJGPP gets confused if
10913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10914 # text mode, it properly converts lines to CR/LF. This bash problem
10915 # is reportedly fixed, but why not run on old versions too?
10916 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10918 mv -f "$cfgfile" "$ofile" || \
10919 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10923 # If there is no Makefile yet, we rely on a make rule to execute
10924 # `config.status --recheck' to rerun these tests and create the
10925 # libtool script then.
10926 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10927 if test -f "$ltmain_in"; then
10928 test -f Makefile && make "$ltmain"
10934 ac_cpp='$CPP $CPPFLAGS'
10935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10942 # Check whether --with-tags was given.
10943 if test "${with_tags+set}" = set; then
10944 withval=$with_tags; tagnames="$withval"
10948 if test -f "$ltmain" && test -n "$tagnames"; then
10949 if test ! -f "${ofile}"; then
10950 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10951 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10954 if test -z "$LTCC"; then
10955 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10956 if test -z "$LTCC"; then
10957 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10958 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10961 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10964 if test -z "$LTCFLAGS"; then
10965 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10968 # Extract list of available tagged configurations in $ofile.
10969 # Note that this assumes the entire list is on one line.
10970 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10973 for tagname in $tagnames; do
10975 # Check whether tagname contains only valid characters
10976 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10978 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10979 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10980 { (exit 1); exit 1; }; }
10984 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10986 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10987 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10988 { (exit 1); exit 1; }; }
10991 # Update the list of available tags.
10992 if test -n "$tagname"; then
10993 echo appending configuration tag \"$tagname\" to $ofile
10997 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10998 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10999 (test "X$CXX" != "Xg++"))) ; then
11001 ac_cpp='$CXXCPP $CPPFLAGS'
11002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11009 archive_cmds_need_lc_CXX=no
11010 allow_undefined_flag_CXX=
11011 always_export_symbols_CXX=no
11012 archive_expsym_cmds_CXX=
11013 export_dynamic_flag_spec_CXX=
11014 hardcode_direct_CXX=no
11015 hardcode_libdir_flag_spec_CXX=
11016 hardcode_libdir_flag_spec_ld_CXX=
11017 hardcode_libdir_separator_CXX=
11018 hardcode_minus_L_CXX=no
11019 hardcode_shlibpath_var_CXX=unsupported
11020 hardcode_automatic_CXX=no
11022 module_expsym_cmds_CXX=
11023 link_all_deplibs_CXX=unknown
11024 old_archive_cmds_CXX=$old_archive_cmds
11025 no_undefined_flag_CXX=
11026 whole_archive_flag_spec_CXX=
11027 enable_shared_with_static_runtimes_CXX=no
11029 # Dependencies to place before and after the object being linked:
11030 predep_objects_CXX=
11031 postdep_objects_CXX=
11034 compiler_lib_search_path_CXX=
11035 compiler_lib_search_dirs_CXX=
11037 # Source file extension for C++ test sources.
11040 # Object file extension for compiled C++ test sources.
11044 # Code to be used in simple compile tests
11045 lt_simple_compile_test_code="int some_variable = 0;"
11047 # Code to be used in simple link tests
11048 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11052 # If no C compiler was specified, use CC.
11055 # If no C compiler flags were specified, use CFLAGS.
11056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11058 # Allow CC to be a program name with arguments.
11062 # save warnings/boilerplate of simple test code
11063 ac_outfile=conftest.$ac_objext
11064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11066 _lt_compiler_boilerplate=`cat conftest.err`
11069 ac_outfile=conftest.$ac_objext
11070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11072 _lt_linker_boilerplate=`cat conftest.err`
11076 # Allow CC to be a program name with arguments.
11081 lt_save_with_gnu_ld=$with_gnu_ld
11082 lt_save_path_LD=$lt_cv_path_LD
11083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11086 $as_unset lt_cv_prog_gnu_ld
11088 if test -n "${lt_cv_path_LDCXX+set}"; then
11089 lt_cv_path_LD=$lt_cv_path_LDCXX
11091 $as_unset lt_cv_path_LD
11093 test -z "${LDCXX+set}" || LD=$LDCXX
11097 for cc_temp in $compiler""; do
11099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11108 # We don't want -fno-exception wen compiling C++ code, so set the
11109 # no_builtin_flag separately
11110 if test "$GXX" = yes; then
11111 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11113 lt_prog_compiler_no_builtin_flag_CXX=
11116 if test "$GXX" = yes; then
11117 # Set up default GNU C++ configuration
11120 # Check whether --with-gnu-ld was given.
11121 if test "${with_gnu_ld+set}" = set; then
11122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11128 if test "$GCC" = yes; then
11129 # Check if gcc -print-prog-name=ld gives a path.
11130 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11134 # gcc leaves a trailing carriage return which upsets mingw
11135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11140 # Accept absolute paths.
11142 re_direlt='/[^/][^/]*/\.\./'
11143 # Canonicalize the pathname of ld
11144 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11146 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11148 test -z "$LD" && LD="$ac_prog"
11151 # If it fails, then pretend we aren't using GCC.
11155 # If it is relative, then search for the first ld in PATH.
11156 with_gnu_ld=unknown
11159 elif test "$with_gnu_ld" = yes; then
11160 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11163 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11166 if test "${lt_cv_path_LD+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 if test -z "$LD"; then
11170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11171 for ac_dir in $PATH; do
11173 test -z "$ac_dir" && ac_dir=.
11174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11175 lt_cv_path_LD="$ac_dir/$ac_prog"
11176 # Check to see if the program is GNU ld. I'd rather use --version,
11177 # but apparently some variants of GNU ld only accept -v.
11178 # Break only if it was the GNU/non-GNU ld that we prefer.
11179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11180 *GNU* | *'with BFD'*)
11181 test "$with_gnu_ld" != no && break
11184 test "$with_gnu_ld" != yes && break
11191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11195 LD="$lt_cv_path_LD"
11196 if test -n "$LD"; then
11197 { echo "$as_me:$LINENO: result: $LD" >&5
11198 echo "${ECHO_T}$LD" >&6; }
11200 { echo "$as_me:$LINENO: result: no" >&5
11201 echo "${ECHO_T}no" >&6; }
11203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11205 { (exit 1); exit 1; }; }
11206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11212 case `$LD -v 2>&1 </dev/null` in
11213 *GNU* | *'with BFD'*)
11214 lt_cv_prog_gnu_ld=yes
11217 lt_cv_prog_gnu_ld=no
11221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11223 with_gnu_ld=$lt_cv_prog_gnu_ld
11227 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11228 # archiving commands below assume that GNU ld is being used.
11229 if test "$with_gnu_ld" = yes; then
11230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11231 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'
11233 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11236 # If archive_cmds runs LD, not CC, wlarc should be empty
11237 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11238 # investigate it a little bit more. (MM)
11241 # ancient GNU ld didn't support --whole-archive et. al.
11242 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11243 grep 'no-whole-archive' > /dev/null; then
11244 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11246 whole_archive_flag_spec_CXX=
11252 # A generic and very simple default shared library creation
11253 # command for GNU C++ for the case where it uses the native
11254 # linker, instead of GNU ld. If possible, this setting should
11255 # overridden to take advantage of the native linker features on
11256 # the platform it is being used on.
11257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11260 # Commands to make compiler produce verbose output that lists
11261 # what "hidden" libraries, object files and flags are used when
11262 # linking a shared library.
11263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11271 # PORTME: fill in a description of your system's C++ link characteristics
11272 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11277 # FIXME: insert proper C++ library support
11281 if test "$host_cpu" = ia64; then
11282 # On IA64, the linker does run time linking by default, so we don't
11283 # have to do anything special.
11284 aix_use_runtimelinking=no
11285 exp_sym_flag='-Bexport'
11288 aix_use_runtimelinking=no
11290 # Test if we are trying to use run time linking or normal
11291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11292 # need to do runtime linking.
11293 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11294 for ld_flag in $LDFLAGS; do
11297 aix_use_runtimelinking=yes
11305 exp_sym_flag='-bexport'
11306 no_entry_flag='-bnoentry'
11309 # When large executables or shared objects are built, AIX ld can
11310 # have problems creating the table of contents. If linking a library
11311 # or program results in "error TOC overflow" add -mminimal-toc to
11312 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11313 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11315 archive_cmds_CXX=''
11316 hardcode_direct_CXX=yes
11317 hardcode_libdir_separator_CXX=':'
11318 link_all_deplibs_CXX=yes
11320 if test "$GXX" = yes; then
11321 case $host_os in aix4.[012]|aix4.[012].*)
11322 # We only want to do this on AIX 4.2 and lower, the check
11323 # below for broken collect2 doesn't work under 4.3+
11324 collect2name=`${CC} -print-prog-name=collect2`
11325 if test -f "$collect2name" && \
11326 strings "$collect2name" | grep resolve_lib_name >/dev/null
11328 # We have reworked collect2
11331 # We have old collect2
11332 hardcode_direct_CXX=unsupported
11333 # It fails to find uninstalled libraries when the uninstalled
11334 # path is not listed in the libpath. Setting hardcode_minus_L
11335 # to unsupported forces relinking
11336 hardcode_minus_L_CXX=yes
11337 hardcode_libdir_flag_spec_CXX='-L$libdir'
11338 hardcode_libdir_separator_CXX=
11342 shared_flag='-shared'
11343 if test "$aix_use_runtimelinking" = yes; then
11344 shared_flag="$shared_flag "'${wl}-G'
11348 if test "$host_cpu" = ia64; then
11349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11350 # chokes on -Wl,-G. The following line is correct:
11353 if test "$aix_use_runtimelinking" = yes; then
11354 shared_flag='${wl}-G'
11356 shared_flag='${wl}-bM:SRE'
11361 # It seems that -bexpall does not export symbols beginning with
11362 # underscore (_), so it is better to generate a list of symbols to export.
11363 always_export_symbols_CXX=yes
11364 if test "$aix_use_runtimelinking" = yes; then
11365 # Warning - without using the other runtime loading flags (-brtl),
11366 # -berok will link without error, but may produce a broken library.
11367 allow_undefined_flag_CXX='-berok'
11368 # Determine the default libpath from the value encoded in an empty executable.
11369 cat >conftest.$ac_ext <<_ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (ac_try="$ac_link"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_link") 2>conftest.er1
11393 grep -v '^ *+' conftest.er1 >conftest.err
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } && {
11398 test -z "$ac_cxx_werror_flag" ||
11399 test ! -s conftest.err
11400 } && test -s conftest$ac_exeext &&
11401 $as_test_x conftest$ac_exeext; then
11403 lt_aix_libpath_sed='
11404 /Import File Strings/,/^$/ {
11410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11411 # Check for a 64-bit object if we didn't find anything.
11412 if test -z "$aix_libpath"; then
11413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11426 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11428 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"
11430 if test "$host_cpu" = ia64; then
11431 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11432 allow_undefined_flag_CXX="-z nodefs"
11433 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"
11435 # Determine the default libpath from the value encoded in an empty executable.
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_link") 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_cxx_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest$ac_exeext &&
11468 $as_test_x conftest$ac_exeext; then
11470 lt_aix_libpath_sed='
11471 /Import File Strings/,/^$/ {
11477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11478 # Check for a 64-bit object if we didn't find anything.
11479 if test -z "$aix_libpath"; then
11480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490 conftest$ac_exeext conftest.$ac_ext
11491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11493 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11494 # Warning - without using the other run time loading flags,
11495 # -berok will link without error, but may produce a broken library.
11496 no_undefined_flag_CXX=' ${wl}-bernotok'
11497 allow_undefined_flag_CXX=' ${wl}-berok'
11498 # Exported symbols can be pulled into shared objects from archives
11499 whole_archive_flag_spec_CXX='$convenience'
11500 archive_cmds_need_lc_CXX=yes
11501 # This is similar to how AIX traditionally builds its shared libraries.
11502 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'
11508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11509 allow_undefined_flag_CXX=unsupported
11510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11511 # support --undefined. This deserves some investigation. FIXME
11512 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11519 case $cc_basename in
11521 # FIXME: insert proper C++ library support
11527 cygwin* | mingw* | pw32*)
11528 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11529 # as there is no search path for DLLs.
11530 hardcode_libdir_flag_spec_CXX='-L$libdir'
11531 allow_undefined_flag_CXX=unsupported
11532 always_export_symbols_CXX=no
11533 enable_shared_with_static_runtimes_CXX=yes
11535 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11536 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'
11537 # If the export-symbols file already is a .def file (1st line
11538 # is EXPORTS), use it as is; otherwise, prepend...
11539 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11540 cp $export_symbols $output_objdir/$soname.def;
11542 echo EXPORTS > $output_objdir/$soname.def;
11543 cat $export_symbols >> $output_objdir/$soname.def;
11545 $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'
11550 darwin* | rhapsody*)
11551 archive_cmds_need_lc_CXX=no
11552 hardcode_direct_CXX=no
11553 hardcode_automatic_CXX=yes
11554 hardcode_shlibpath_var_CXX=unsupported
11555 whole_archive_flag_spec_CXX=''
11556 link_all_deplibs_CXX=yes
11557 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11558 if test "$GXX" = yes ; then
11559 output_verbose_link_cmd='echo'
11560 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}"
11561 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11562 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}"
11563 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}"
11564 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11565 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}"
11566 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}"
11569 case $cc_basename in
11571 output_verbose_link_cmd='echo'
11572 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'
11573 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11575 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}'
11576 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}'
11586 case $cc_basename in
11588 # FIXME: insert proper C++ library support
11592 # Green Hills C++ Compiler
11593 # FIXME: insert proper C++ library support
11597 # FIXME: insert proper C++ library support
11603 # C++ shared libraries reported to be fairly broken before switch to ELF
11607 archive_cmds_need_lc_CXX=no
11609 freebsd* | dragonfly*)
11610 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11618 hardcode_libdir_separator_CXX=:
11619 export_dynamic_flag_spec_CXX='${wl}-E'
11620 hardcode_direct_CXX=yes
11621 hardcode_minus_L_CXX=yes # Not in the search PATH,
11622 # but as the default
11623 # location of the library.
11625 case $cc_basename in
11627 # FIXME: insert proper C++ library support
11631 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'
11632 # Commands to make compiler produce verbose output that lists
11633 # what "hidden" libraries, object files and flags are used when
11634 # linking a shared library.
11636 # There doesn't appear to be a way to prevent this compiler from
11637 # explicitly linking system object files so we need to strip them
11638 # from the output so that they don't get included in the library
11640 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'
11643 if test "$GXX" = yes; then
11644 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'
11646 # FIXME: insert proper C++ library support
11653 if test $with_gnu_ld = no; then
11654 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11655 hardcode_libdir_separator_CXX=:
11660 export_dynamic_flag_spec_CXX='${wl}-E'
11666 hardcode_direct_CXX=no
11667 hardcode_shlibpath_var_CXX=no
11670 hardcode_direct_CXX=yes
11671 hardcode_minus_L_CXX=yes # Not in the search PATH,
11672 # but as the default
11673 # location of the library.
11677 case $cc_basename in
11679 # FIXME: insert proper C++ library support
11685 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11694 # Commands to make compiler produce verbose output that lists
11695 # what "hidden" libraries, object files and flags are used when
11696 # linking a shared library.
11698 # There doesn't appear to be a way to prevent this compiler from
11699 # explicitly linking system object files so we need to strip them
11700 # from the output so that they don't get included in the library
11702 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'
11705 if test "$GXX" = yes; then
11706 if test $with_gnu_ld = no; then
11709 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11715 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'
11720 # FIXME: insert proper C++ library support
11727 hardcode_direct_CXX=no
11728 hardcode_shlibpath_var_CXX=no
11729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11730 export_dynamic_flag_spec_CXX='${wl}-E'
11731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11732 # Instead, shared libraries are loaded at an image base (0x10000000 by
11733 # default) and relocated if they conflict, which is a slow very memory
11734 # consuming and fragmenting process. To avoid this, we pick a random,
11735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11737 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'
11738 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'
11741 case $cc_basename in
11744 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'
11746 # Archives containing C++ object files must be created using
11747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11748 # necessary to make sure instantiated templates are included
11750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11753 if test "$GXX" = yes; then
11754 if test "$with_gnu_ld" = no; then
11755 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'
11757 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'
11760 link_all_deplibs_CXX=yes
11763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11764 hardcode_libdir_separator_CXX=:
11766 linux* | k*bsd*-gnu)
11767 case $cc_basename in
11769 # Kuck and Associates, Inc. (KAI) C++ Compiler
11771 # KCC will only create a shared library if the output file
11772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11773 # to its proper name (with version) after linking.
11774 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'
11775 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'
11776 # Commands to make compiler produce verbose output that lists
11777 # what "hidden" libraries, object files and flags are used when
11778 # linking a shared library.
11780 # There doesn't appear to be a way to prevent this compiler from
11781 # explicitly linking system object files so we need to strip them
11782 # from the output so that they don't get included in the library
11784 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'
11786 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11789 # Archives containing C++ object files must be created using
11790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11796 # version 8.0 and above of icpc choke on multiply defined symbols
11797 # if we add $predep_objects and $postdep_objects, however 7.1 and
11798 # earlier do not add the objects themselves.
11799 case `$CC -V 2>&1` in
11801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802 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'
11804 *) # Version 8.0 or newer
11807 ia64*) tmp_idyn=' -i_dynamic';;
11809 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810 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'
11813 archive_cmds_need_lc_CXX=no
11814 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11819 # Portland Group C++ compiler
11820 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11821 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'
11823 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11825 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'
11829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830 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'
11832 runpath_var=LD_RUN_PATH
11833 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11834 hardcode_libdir_separator_CXX=:
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11840 # There doesn't appear to be a way to prevent this compiler from
11841 # explicitly linking system object files so we need to strip them
11842 # from the output so that they don't get included in the library
11844 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'
11847 case `$CC -V 2>&1 | sed 5q` in
11850 no_undefined_flag_CXX=' -zdefs'
11851 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852 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'
11853 hardcode_libdir_flag_spec_CXX='-R$libdir'
11854 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'
11856 # Not sure whether something based on
11857 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11859 output_verbose_link_cmd='echo'
11861 # Archives containing C++ object files must be created using
11862 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11863 # necessary to make sure instantiated templates are included
11865 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11872 # FIXME: insert proper C++ library support
11876 # FIXME: insert proper C++ library support
11880 case $cc_basename in
11882 # FIXME: insert proper C++ library support
11886 # FIXME: insert proper C++ library support
11891 netbsd* | netbsdelf*-gnu)
11892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11893 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11895 hardcode_libdir_flag_spec_CXX='-R$libdir'
11896 hardcode_direct_CXX=yes
11897 hardcode_shlibpath_var_CXX=no
11899 # Workaround some broken pre-1.5 toolchains
11900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11903 # C++ shared libraries are fairly broken
11907 if test -f /usr/libexec/ld.so; then
11908 hardcode_direct_CXX=yes
11909 hardcode_shlibpath_var_CXX=no
11910 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11913 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11914 export_dynamic_flag_spec_CXX='${wl}-E'
11915 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11917 output_verbose_link_cmd='echo'
11923 case $cc_basename in
11925 # Kuck and Associates, Inc. (KAI) C++ Compiler
11927 # KCC will only create a shared library if the output file
11928 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11929 # to its proper name (with version) after linking.
11930 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'
11932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11933 hardcode_libdir_separator_CXX=:
11935 # Archives containing C++ object files must be created using
11936 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11937 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11941 # Rational C++ 2.4.1
11942 # FIXME: insert proper C++ library support
11946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11947 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'
11949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11950 hardcode_libdir_separator_CXX=:
11952 # Commands to make compiler produce verbose output that lists
11953 # what "hidden" libraries, object files and flags are used when
11954 # linking a shared library.
11956 # There doesn't appear to be a way to prevent this compiler from
11957 # explicitly linking system object files so we need to strip them
11958 # from the output so that they don't get included in the library
11960 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'
11963 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11964 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11965 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'
11967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11968 hardcode_libdir_separator_CXX=:
11970 # Commands to make compiler produce verbose output that lists
11971 # what "hidden" libraries, object files and flags are used when
11972 # linking a shared library.
11973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11976 # FIXME: insert proper C++ library support
11983 case $cc_basename in
11985 # Kuck and Associates, Inc. (KAI) C++ Compiler
11987 # KCC will only create a shared library if the output file
11988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11989 # to its proper name (with version) after linking.
11990 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'
11992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11993 hardcode_libdir_separator_CXX=:
11995 # Archives containing C++ object files must be created using
11996 # the KAI C++ compiler.
11997 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12000 # Rational C++ 2.4.1
12001 # FIXME: insert proper C++ library support
12005 allow_undefined_flag_CXX=' -expect_unresolved \*'
12006 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'
12007 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12008 echo "-hidden">> $lib.exp~
12009 $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~
12012 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12013 hardcode_libdir_separator_CXX=:
12015 # Commands to make compiler produce verbose output that lists
12016 # what "hidden" libraries, object files and flags are used when
12017 # linking a shared library.
12019 # There doesn't appear to be a way to prevent this compiler from
12020 # explicitly linking system object files so we need to strip them
12021 # from the output so that they don't get included in the library
12023 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'
12026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12027 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12028 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'
12030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031 hardcode_libdir_separator_CXX=:
12033 # Commands to make compiler produce verbose output that lists
12034 # what "hidden" libraries, object files and flags are used when
12035 # linking a shared library.
12036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12039 # FIXME: insert proper C++ library support
12046 # FIXME: insert proper C++ library support
12050 case $cc_basename in
12053 # FIXME: insert proper C++ library support
12058 # FIXME: insert proper C++ library support
12062 # FIXME: insert proper C++ library support
12068 case $cc_basename in
12070 # Sun C++ 4.2, 5.x and Centerline C++
12071 archive_cmds_need_lc_CXX=yes
12072 no_undefined_flag_CXX=' -zdefs'
12073 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075 $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'
12077 hardcode_libdir_flag_spec_CXX='-R$libdir'
12078 hardcode_shlibpath_var_CXX=no
12080 solaris2.[0-5] | solaris2.[0-5].*) ;;
12082 # The compiler driver will combine and reorder linker options,
12083 # but understands `-z linker_flag'.
12084 # Supported since Solaris 2.6 (maybe 2.5.1?)
12085 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12088 link_all_deplibs_CXX=yes
12090 output_verbose_link_cmd='echo'
12092 # Archives containing C++ object files must be created using
12093 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12094 # necessary to make sure instantiated templates are included
12096 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12099 # Green Hills C++ Compiler
12100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12102 # The C++ compiler must be used to create the archive.
12103 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12106 # GNU C++ compiler with Solaris linker
12107 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12108 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12109 if $CC --version | grep -v '^2\.7' > /dev/null; then
12110 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12112 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12114 # Commands to make compiler produce verbose output that lists
12115 # what "hidden" libraries, object files and flags are used when
12116 # linking a shared library.
12117 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12119 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12121 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12122 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12123 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12125 # Commands to make compiler produce verbose output that lists
12126 # what "hidden" libraries, object files and flags are used when
12127 # linking a shared library.
12128 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12131 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12133 solaris2.[0-5] | solaris2.[0-5].*) ;;
12135 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12142 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12143 no_undefined_flag_CXX='${wl}-z,text'
12144 archive_cmds_need_lc_CXX=no
12145 hardcode_shlibpath_var_CXX=no
12146 runpath_var='LD_RUN_PATH'
12148 case $cc_basename in
12150 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159 sysv5* | sco3.2v5* | sco5v6*)
12160 # Note: We can NOT use -z defs as we might desire, because we do not
12161 # link with -lc, and that would cause any symbols used from libc to
12162 # always be unresolved, which means just about no library would
12163 # ever link correctly. If we're not using GNU ld we use -z text
12164 # though, which does catch some bad symbols but isn't as heavy-handed
12166 # For security reasons, it is highly recommended that you always
12167 # use absolute paths for naming shared libraries, and exclude the
12168 # DT_RUNPATH tag from executables and libraries. But doing so
12169 # requires that you compile everything twice, which is a pain.
12170 # So that behaviour is only enabled if SCOABSPATH is set to a
12171 # non-empty value in the environment. Most likely only useful for
12172 # creating official distributions of packages.
12173 # This is a hack until libtool officially supports absolute path
12174 # names for shared libraries.
12175 no_undefined_flag_CXX='${wl}-z,text'
12176 allow_undefined_flag_CXX='${wl}-z,nodefs'
12177 archive_cmds_need_lc_CXX=no
12178 hardcode_shlibpath_var_CXX=no
12179 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12180 hardcode_libdir_separator_CXX=':'
12181 link_all_deplibs_CXX=yes
12182 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12183 runpath_var='LD_RUN_PATH'
12185 case $cc_basename in
12187 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12191 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12197 case $cc_basename in
12199 # NonStop-UX NCC 3.20
12200 # FIXME: insert proper C++ library support
12204 # FIXME: insert proper C++ library support
12210 # FIXME: insert proper C++ library support
12214 # FIXME: insert proper C++ library support
12218 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12219 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12220 test "$ld_shlibs_CXX" = no && can_build_shared=no
12225 cat > conftest.$ac_ext <<EOF
12229 Foo (void) { a = 0; }
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236 (eval $ac_compile) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; then
12240 # Parse the compiler output and extract the necessary
12241 # objects, libraries and library flags.
12243 # Sentinel used to keep track of whether or not we are before
12244 # the conftest object file.
12245 pre_test_object_deps_done=no
12247 # The `*' in the case matches for architectures that use `case' in
12248 # $output_verbose_cmd can trigger glob expansion during the loop
12249 # eval without this substitution.
12250 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12252 for p in `eval $output_verbose_link_cmd`; do
12256 # Some compilers place space between "-{L,R}" and the path.
12257 # Remove the space.
12258 if test $p = "-L" \
12259 || test $p = "-R"; then
12266 if test "$pre_test_object_deps_done" = no; then
12269 # Internal compiler library paths should come after those
12270 # provided the user. The postdeps already come after the
12271 # user supplied libs so there is no need to process them.
12272 if test -z "$compiler_lib_search_path_CXX"; then
12273 compiler_lib_search_path_CXX="${prev}${p}"
12275 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12278 # The "-l" case would never come before the object being
12279 # linked, so don't bother handling this case.
12282 if test -z "$postdeps_CXX"; then
12283 postdeps_CXX="${prev}${p}"
12285 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12291 # This assumes that the test object file only shows up
12292 # once in the compiler output.
12293 if test "$p" = "conftest.$objext"; then
12294 pre_test_object_deps_done=yes
12298 if test "$pre_test_object_deps_done" = no; then
12299 if test -z "$predep_objects_CXX"; then
12300 predep_objects_CXX="$p"
12302 predep_objects_CXX="$predep_objects_CXX $p"
12305 if test -z "$postdep_objects_CXX"; then
12306 postdep_objects_CXX="$p"
12308 postdep_objects_CXX="$postdep_objects_CXX $p"
12313 *) ;; # Ignore the rest.
12321 echo "libtool.m4: error: problem compiling CXX test program"
12324 $rm -f confest.$objext
12326 compiler_lib_search_dirs_CXX=
12327 if test -n "$compiler_lib_search_path_CXX"; then
12328 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12331 # PORTME: override above test on systems where it is broken
12334 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12335 # hack all around it, let's just trust "g++" to DTRT.
12336 predep_objects_CXX=
12337 postdep_objects_CXX=
12342 case `$CC -V 2>&1 | sed 5q` in
12346 # The more standards-conforming stlport4 library is
12347 # incompatible with the Cstd library. Avoid specifying
12348 # it if it's in CXXFLAGS. Ignore libCrun as
12349 # -library=stlport4 depends on it.
12350 case " $CXX $CXXFLAGS " in
12351 *" -library=stlport4 "*)
12352 solaris_use_stlport4=yes
12355 if test "$solaris_use_stlport4" != yes; then
12356 postdeps_CXX='-library=Cstd -library=Crun'
12363 case $cc_basename in
12365 # The more standards-conforming stlport4 library is
12366 # incompatible with the Cstd library. Avoid specifying
12367 # it if it's in CXXFLAGS. Ignore libCrun as
12368 # -library=stlport4 depends on it.
12369 case " $CXX $CXXFLAGS " in
12370 *" -library=stlport4 "*)
12371 solaris_use_stlport4=yes
12375 # Adding this requires a known-good setup of shared libraries for
12376 # Sun compiler versions before 5.6, else PIC objects from an old
12377 # archive will be linked into the output, leading to subtle bugs.
12378 if test "$solaris_use_stlport4" != yes; then
12379 postdeps_CXX='-library=Cstd -library=Crun'
12386 case " $postdeps_CXX " in
12387 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12390 lt_prog_compiler_wl_CXX=
12391 lt_prog_compiler_pic_CXX=
12392 lt_prog_compiler_static_CXX=
12394 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12395 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12397 # C++ specific cases for pic, static, wl, etc.
12398 if test "$GXX" = yes; then
12399 lt_prog_compiler_wl_CXX='-Wl,'
12400 lt_prog_compiler_static_CXX='-static'
12404 # All AIX code is PIC.
12405 if test "$host_cpu" = ia64; then
12406 # AIX 5 now supports IA64 processor
12407 lt_prog_compiler_static_CXX='-Bstatic'
12411 # FIXME: we need at least 68020 code to build shared libraries, but
12412 # adding the `-m68020' flag to GCC prevents building anything better,
12414 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12417 # PIC is the default for these OSes.
12419 mingw* | cygwin* | os2* | pw32*)
12420 # This hack is so that the source file can tell whether it is being
12421 # built for inclusion in a dll (and should export symbols for example).
12422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12423 # (--disable-auto-import) libraries
12424 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12426 darwin* | rhapsody*)
12427 # PIC is the default on this platform
12428 # Common symbols not allowed in MH_DYLIB files
12429 lt_prog_compiler_pic_CXX='-fno-common'
12432 # DJGPP does not support shared libraries at all
12433 lt_prog_compiler_pic_CXX=
12436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12437 # Instead, we relocate shared libraries at runtime.
12440 if test -d /usr/nec; then
12441 lt_prog_compiler_pic_CXX=-Kconform_pic
12445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12446 # not for PA HP-UX.
12451 lt_prog_compiler_pic_CXX='-fPIC'
12456 lt_prog_compiler_pic_CXX='-fPIC'
12462 # All AIX code is PIC.
12463 if test "$host_cpu" = ia64; then
12464 # AIX 5 now supports IA64 processor
12465 lt_prog_compiler_static_CXX='-Bstatic'
12467 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12471 case $cc_basename in
12473 # Green Hills C++ Compiler
12474 # _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"
12479 # PIC is the default on this platform
12480 # Common symbols not allowed in MH_DYLIB files
12481 case $cc_basename in
12483 lt_prog_compiler_pic_CXX='-qnocommon'
12484 lt_prog_compiler_wl_CXX='-Wl,'
12489 case $cc_basename in
12491 lt_prog_compiler_pic_CXX='-KPIC'
12494 # Green Hills C++ Compiler
12495 lt_prog_compiler_pic_CXX='-pic'
12501 freebsd* | dragonfly*)
12502 # FreeBSD uses GNU C++
12504 hpux9* | hpux10* | hpux11*)
12505 case $cc_basename in
12507 lt_prog_compiler_wl_CXX='-Wl,'
12508 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12509 if test "$host_cpu" != ia64; then
12510 lt_prog_compiler_pic_CXX='+Z'
12514 lt_prog_compiler_wl_CXX='-Wl,'
12515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12521 lt_prog_compiler_pic_CXX='+Z'
12530 # This is c89, which is MS Visual C++ (no shared libs)
12531 # Anyone wants to do a port?
12533 irix5* | irix6* | nonstopux*)
12534 case $cc_basename in
12536 lt_prog_compiler_wl_CXX='-Wl,'
12537 lt_prog_compiler_static_CXX='-non_shared'
12538 # CC pic flag -KPIC is the default.
12544 linux* | k*bsd*-gnu)
12545 case $cc_basename in
12548 lt_prog_compiler_wl_CXX='--backend -Wl,'
12549 lt_prog_compiler_pic_CXX='-fPIC'
12553 lt_prog_compiler_wl_CXX='-Wl,'
12554 lt_prog_compiler_pic_CXX='-KPIC'
12555 lt_prog_compiler_static_CXX='-static'
12558 # Portland Group C++ compiler.
12559 lt_prog_compiler_wl_CXX='-Wl,'
12560 lt_prog_compiler_pic_CXX='-fpic'
12561 lt_prog_compiler_static_CXX='-Bstatic'
12565 # Make sure the PIC flag is empty. It appears that all Alpha
12566 # Linux and Compaq Tru64 Unix objects are PIC.
12567 lt_prog_compiler_pic_CXX=
12568 lt_prog_compiler_static_CXX='-non_shared'
12571 case `$CC -V 2>&1 | sed 5q` in
12574 lt_prog_compiler_pic_CXX='-KPIC'
12575 lt_prog_compiler_static_CXX='-Bstatic'
12576 lt_prog_compiler_wl_CXX='-Qoption ld '
12587 case $cc_basename in
12589 lt_prog_compiler_pic_CXX='-W c,exportall'
12595 netbsd* | netbsdelf*-gnu)
12597 osf3* | osf4* | osf5*)
12598 case $cc_basename in
12600 lt_prog_compiler_wl_CXX='--backend -Wl,'
12603 # Rational C++ 2.4.1
12604 lt_prog_compiler_pic_CXX='-pic'
12607 # Digital/Compaq C++
12608 lt_prog_compiler_wl_CXX='-Wl,'
12609 # Make sure the PIC flag is empty. It appears that all Alpha
12610 # Linux and Compaq Tru64 Unix objects are PIC.
12611 lt_prog_compiler_pic_CXX=
12612 lt_prog_compiler_static_CXX='-non_shared'
12621 case $cc_basename in
12623 # Sun C++ 4.2, 5.x and Centerline C++
12624 lt_prog_compiler_pic_CXX='-KPIC'
12625 lt_prog_compiler_static_CXX='-Bstatic'
12626 lt_prog_compiler_wl_CXX='-Qoption ld '
12629 # Green Hills C++ Compiler
12630 lt_prog_compiler_pic_CXX='-PIC'
12637 case $cc_basename in
12640 lt_prog_compiler_pic_CXX='-pic'
12641 lt_prog_compiler_static_CXX='-Bstatic'
12645 lt_prog_compiler_pic_CXX='-pic'
12652 case $cc_basename in
12654 # NonStop-UX NCC 3.20
12655 lt_prog_compiler_pic_CXX='-KPIC'
12661 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12662 case $cc_basename in
12664 lt_prog_compiler_wl_CXX='-Wl,'
12665 lt_prog_compiler_pic_CXX='-KPIC'
12666 lt_prog_compiler_static_CXX='-Bstatic'
12673 lt_prog_compiler_can_build_shared_CXX=no
12678 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12679 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12682 # Check to make sure the PIC flag actually works.
12684 if test -n "$lt_prog_compiler_pic_CXX"; then
12686 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12687 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12688 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 lt_cv_prog_compiler_pic_works_CXX=no
12692 ac_outfile=conftest.$ac_objext
12693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12694 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12695 # Insert the option either (1) after the last *FLAGS variable, or
12696 # (2) before a word containing "conftest.", or (3) at the end.
12697 # Note that $ac_compile itself does not contain backslashes and begins
12698 # with a dollar sign (not a hyphen), so the echo should work correctly.
12699 # The option is referenced via a variable to avoid confusing sed.
12700 lt_compile=`echo "$ac_compile" | $SED \
12701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12703 -e 's:$: $lt_compiler_flag:'`
12704 (eval echo "\"\$as_me:12704: $lt_compile\"" >&5)
12705 (eval "$lt_compile" 2>conftest.err)
12707 cat conftest.err >&5
12708 echo "$as_me:12708: \$? = $ac_status" >&5
12709 if (exit $ac_status) && test -s "$ac_outfile"; then
12710 # The compiler can only warn and ignore the option if not recognized
12711 # So say no if there are warnings other than the usual output.
12712 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12715 lt_cv_prog_compiler_pic_works_CXX=yes
12721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12722 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12724 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12725 case $lt_prog_compiler_pic_CXX in
12727 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12730 lt_prog_compiler_pic_CXX=
12731 lt_prog_compiler_can_build_shared_CXX=no
12736 # For platforms which do not support PIC, -DPIC is meaningless:
12738 lt_prog_compiler_pic_CXX=
12741 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12746 # Check to make sure the static flag actually works.
12748 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12749 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12750 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12751 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 lt_cv_prog_compiler_static_works_CXX=no
12755 save_LDFLAGS="$LDFLAGS"
12756 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12759 # The linker can only warn and ignore the option if not recognized
12760 # So say no if there are warnings
12761 if test -s conftest.err; then
12762 # Append any errors to the config.log.
12763 cat conftest.err 1>&5
12764 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12766 if diff conftest.exp conftest.er2 >/dev/null; then
12767 lt_cv_prog_compiler_static_works_CXX=yes
12770 lt_cv_prog_compiler_static_works_CXX=yes
12774 LDFLAGS="$save_LDFLAGS"
12777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12778 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12780 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12783 lt_prog_compiler_static_CXX=
12787 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12788 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12789 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 lt_cv_prog_compiler_c_o_CXX=no
12793 $rm -r conftest 2>/dev/null
12797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12799 lt_compiler_flag="-o out/conftest2.$ac_objext"
12800 # Insert the option either (1) after the last *FLAGS variable, or
12801 # (2) before a word containing "conftest.", or (3) at the end.
12802 # Note that $ac_compile itself does not contain backslashes and begins
12803 # with a dollar sign (not a hyphen), so the echo should work correctly.
12804 lt_compile=`echo "$ac_compile" | $SED \
12805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12807 -e 's:$: $lt_compiler_flag:'`
12808 (eval echo "\"\$as_me:12808: $lt_compile\"" >&5)
12809 (eval "$lt_compile" 2>out/conftest.err)
12811 cat out/conftest.err >&5
12812 echo "$as_me:12812: \$? = $ac_status" >&5
12813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12815 # The compiler can only warn and ignore the option if not recognized
12816 # So say no if there are warnings
12817 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12820 lt_cv_prog_compiler_c_o_CXX=yes
12825 # SGI C++ compiler will create directory out/ii_files/ for
12826 # template instantiation
12827 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12828 $rm out/* && rmdir out
12834 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12835 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12838 hard_links="nottested"
12839 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12840 # do not overwrite the value of need_locks provided by the user
12841 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12842 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12847 ln conftest.a conftest.b 2>&5 || hard_links=no
12848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12849 { echo "$as_me:$LINENO: result: $hard_links" >&5
12850 echo "${ECHO_T}$hard_links" >&6; }
12851 if test "$hard_links" = no; then
12852 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12853 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12860 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12861 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12863 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12866 # If we're using GNU nm, then we don't want the "-C" option.
12867 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12868 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12869 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'
12871 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'
12875 export_symbols_cmds_CXX="$ltdll_cmds"
12878 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'
12880 linux* | k*bsd*-gnu)
12881 link_all_deplibs_CXX=no
12884 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12887 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12889 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12890 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12891 test "$ld_shlibs_CXX" = no && can_build_shared=no
12894 # Do we need to explicitly link libc?
12896 case "x$archive_cmds_need_lc_CXX" in
12898 # Assume -lc should be added
12899 archive_cmds_need_lc_CXX=yes
12901 if test "$enable_shared" = yes && test "$GCC" = yes; then
12902 case $archive_cmds_CXX in
12904 # FIXME: we may have to deal with multi-command sequences.
12907 # Test whether the compiler implicitly links with -lc since on some
12908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12909 # to ld, don't add -lc before -lgcc.
12910 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12911 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916 (eval $ac_compile) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } 2>conftest.err; then
12922 libobjs=conftest.$ac_objext
12924 wl=$lt_prog_compiler_wl_CXX
12925 pic_flag=$lt_prog_compiler_pic_CXX
12931 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12932 allow_undefined_flag_CXX=
12933 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12934 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }
12939 archive_cmds_need_lc_CXX=no
12941 archive_cmds_need_lc_CXX=yes
12943 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12945 cat conftest.err 1>&5
12948 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12949 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12956 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12957 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12958 library_names_spec=
12959 libname_spec='lib$name'
12963 postuninstall_cmds=
12967 shlibpath_overrides_runpath=unknown
12969 dynamic_linker="$host_os ld.so"
12970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12972 need_lib_prefix=unknown
12973 hardcode_into_libs=no
12975 # when you set need_version to no, make sure it does not cause -set_version
12976 # flags to be left without arguments
12977 need_version=unknown
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12983 shlibpath_var=LIBPATH
12985 # AIX 3 has no versioning support, so we append a major version to the name.
12986 soname_spec='${libname}${release}${shared_ext}$major'
12993 hardcode_into_libs=yes
12994 if test "$host_cpu" = ia64; then
12995 # AIX 5 supports IA64
12996 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12997 shlibpath_var=LD_LIBRARY_PATH
12999 # With GCC up to 2.95.x, collect2 would create an import file
13000 # for dependence libraries. The import file would start with
13001 # the line `#! .'. This would cause the generated library to
13002 # depend on `.', always an invalid library. This was fixed in
13003 # development snapshots of GCC prior to 3.0.
13005 aix4 | aix4.[01] | aix4.[01].*)
13006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13008 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13011 can_build_shared=no
13015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13016 # soname into executable. Probably we can add versioning support to
13017 # collect2, so additional links can be useful in future.
13018 if test "$aix_use_runtimelinking" = yes; then
13019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13020 # instead of lib<name>.a to let people know that these are not
13021 # typical AIX shared libraries.
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024 # We preserve .a as extension for shared libraries through AIX4.2
13025 # and later when we are not doing run time linking.
13026 library_names_spec='${libname}${release}.a $libname.a'
13027 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LIBPATH
13034 library_names_spec='$libname.ixlibrary $libname.a'
13035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13036 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'
13040 library_names_spec='${libname}${shared_ext}'
13041 dynamic_linker="$host_os ld.so"
13042 shlibpath_var=LIBRARY_PATH
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13054 # the default ld.so.conf also contains /usr/contrib/lib and
13055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13056 # libtool to hard-code these into programs
13059 cygwin* | mingw* | pw32*)
13060 version_type=windows
13065 case $GCC,$host_os in
13066 yes,cygwin* | yes,mingw* | yes,pw32*)
13067 library_names_spec='$libname.dll.a'
13068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13069 postinstall_cmds='base_file=`basename \${file}`~
13070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13071 dldir=$destdir/`dirname \$dlpath`~
13072 test -d \$dldir || mkdir -p \$dldir~
13073 $install_prog $dir/$dlname \$dldir/$dlname~
13074 chmod a+x \$dldir/$dlname'
13075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13076 dlpath=$dir/\$dldll~
13078 shlibpath_overrides_runpath=yes
13082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13087 # MinGW DLLs use traditional 'lib' prefix
13088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13090 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13091 # It is most probably a Windows format PATH printed by
13092 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13093 # path with ; separators, and with drive letters. We can handle the
13094 # drive letters (cygwin fileutils understands them), so leave them,
13095 # especially as we might pass files found there to a mingw objdump,
13096 # which wouldn't understand a cygwinified path. Ahh.
13097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13103 # pw32 DLLs use 'pw' prefix rather than 'lib'
13104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13113 dynamic_linker='Win32 ld.exe'
13114 # FIXME: first we should search . and the directory the executable is in
13118 darwin* | rhapsody*)
13119 dynamic_linker="$host_os dyld"
13120 version_type=darwin
13123 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13124 soname_spec='${libname}${release}${major}$shared_ext'
13125 shlibpath_overrides_runpath=yes
13126 shlibpath_var=DYLD_LIBRARY_PATH
13127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13129 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13137 soname_spec='${libname}${release}${shared_ext}$major'
13138 shlibpath_var=LD_LIBRARY_PATH
13145 freebsd* | dragonfly*)
13146 # DragonFly does not have aout. When/if they implement a new
13147 # versioning mechanism, adjust this.
13148 if test -x /usr/bin/objformat; then
13149 objformat=`/usr/bin/objformat`
13152 freebsd[123]*) objformat=aout ;;
13153 *) objformat=elf ;;
13156 version_type=freebsd-$objformat
13157 case $version_type in
13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13168 shlibpath_var=LD_LIBRARY_PATH
13171 shlibpath_overrides_runpath=yes
13173 freebsd3.[01]* | freebsdelf3.[01]*)
13174 shlibpath_overrides_runpath=yes
13175 hardcode_into_libs=yes
13177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13179 shlibpath_overrides_runpath=no
13180 hardcode_into_libs=yes
13182 *) # from 4.6 on, and DragonFly
13183 shlibpath_overrides_runpath=yes
13184 hardcode_into_libs=yes
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 shlibpath_var=LD_LIBRARY_PATH
13196 hardcode_into_libs=yes
13199 hpux9* | hpux10* | hpux11*)
13200 # Give a soname corresponding to the major version so that dld.sl refuses to
13201 # link against other versions.
13208 hardcode_into_libs=yes
13209 dynamic_linker="$host_os dld.so"
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213 soname_spec='${libname}${release}${shared_ext}$major'
13214 if test "X$HPUX_IA64_MODE" = X32; then
13215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13223 hardcode_into_libs=yes
13224 dynamic_linker="$host_os dld.sl"
13225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
13229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13234 dynamic_linker="$host_os dld.sl"
13235 shlibpath_var=SHLIB_PATH
13236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13242 postinstall_cmds='chmod 555 $lib'
13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13250 soname_spec='${libname}${release}${shared_ext}$major'
13251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 shlibpath_overrides_runpath=no
13254 hardcode_into_libs=yes
13257 irix5* | irix6* | nonstopux*)
13259 nonstopux*) version_type=nonstopux ;;
13261 if test "$lt_cv_prog_gnu_ld" = yes; then
13269 soname_spec='${libname}${release}${shared_ext}$major'
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13272 irix5* | nonstopux*)
13273 libsuff= shlibsuff=
13276 case $LD in # libtool.m4 will add one of these switches to LD
13277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13278 libsuff= shlibsuff= libmagic=32-bit;;
13279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13280 libsuff=32 shlibsuff=N32 libmagic=N32;;
13281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13283 *) libsuff= shlibsuff= libmagic=never-match;;
13287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13288 shlibpath_overrides_runpath=no
13289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13291 hardcode_into_libs=yes
13294 # No shared lib support for Linux oldld, aout, or coff.
13295 linux*oldld* | linux*aout* | linux*coff*)
13299 # This must be Linux ELF.
13300 linux* | k*bsd*-gnu)
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305 soname_spec='${libname}${release}${shared_ext}$major'
13306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13307 shlibpath_var=LD_LIBRARY_PATH
13308 shlibpath_overrides_runpath=no
13309 # This implies no fast_install, which is unacceptable.
13310 # Some rework will be needed to allow for fast_install
13311 # before this can be enabled.
13312 hardcode_into_libs=yes
13314 # Append ld.so.conf contents to the search path
13315 if test -f /etc/ld.so.conf; then
13316 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' ' '`
13317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13320 # We used to test for /lib/ld.so.1 and disable shared libraries on
13321 # powerpc, because MkLinux only supported shared libraries with the
13322 # GNU dynamic linker. Since this was broken with cross compilers,
13323 # most powerpc-linux boxes support dynamic linking these days and
13324 # people can always --disable-shared, the test was removed, and we
13325 # assume the GNU/Linux dynamic linker is in use.
13326 dynamic_linker='GNU/Linux ld.so'
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13334 soname_spec='${libname}${release}${shared_ext}$major'
13335 shlibpath_var=LD_LIBRARY_PATH
13336 shlibpath_overrides_runpath=no
13337 hardcode_into_libs=yes
13338 dynamic_linker='NetBSD ld.elf_so'
13345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13348 dynamic_linker='NetBSD (a.out) ld.so'
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 dynamic_linker='NetBSD ld.elf_so'
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=yes
13356 hardcode_into_libs=yes
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 shlibpath_var=LD_LIBRARY_PATH
13363 shlibpath_overrides_runpath=yes
13370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13371 soname_spec='${libname}${release}${shared_ext}$major'
13372 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes
13378 sys_lib_dlsearch_path_spec="/usr/lib"
13380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13382 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13383 *) need_version=no ;;
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13387 shlibpath_var=LD_LIBRARY_PATH
13388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13390 openbsd2.[89] | openbsd2.[89].*)
13391 shlibpath_overrides_runpath=no
13394 shlibpath_overrides_runpath=yes
13398 shlibpath_overrides_runpath=yes
13403 libname_spec='$name'
13406 library_names_spec='$libname${shared_ext} $libname.a'
13407 dynamic_linker='OS/2 ld.exe'
13408 shlibpath_var=LIBPATH
13411 osf3* | osf4* | osf5*)
13415 soname_spec='${libname}${release}${shared_ext}$major'
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13431 soname_spec='${libname}${release}${shared_ext}$major'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 shlibpath_overrides_runpath=yes
13434 hardcode_into_libs=yes
13435 # ldd complains unless libraries are executable
13436 postinstall_cmds='chmod +x $lib'
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13442 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 shlibpath_overrides_runpath=yes
13445 if test "$with_gnu_ld" = yes; then
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454 soname_spec='${libname}${release}${shared_ext}$major'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 case $host_vendor in
13458 shlibpath_overrides_runpath=no
13460 export_dynamic_flag_spec='${wl}-Blargedynsym'
13461 runpath_var=LD_RUN_PATH
13469 shlibpath_overrides_runpath=no
13470 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13476 if test -d /usr/nec ;then
13478 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13479 soname_spec='$libname${shared_ext}.$major'
13480 shlibpath_var=LD_LIBRARY_PATH
13484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13485 version_type=freebsd-elf
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 hardcode_into_libs=yes
13492 if test "$with_gnu_ld" = yes; then
13493 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13494 shlibpath_overrides_runpath=no
13496 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13497 shlibpath_overrides_runpath=yes
13500 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13504 sys_lib_dlsearch_path_spec='/usr/lib'
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 soname_spec='${libname}${release}${shared_ext}$major'
13511 shlibpath_var=LD_LIBRARY_PATH
13518 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13519 echo "${ECHO_T}$dynamic_linker" >&6; }
13520 test "$dynamic_linker" = no && can_build_shared=no
13522 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13528 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13529 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13535 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13538 if test "$GCC" = yes; then
13539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13544 hardcode_action_CXX=
13545 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13546 test -n "$runpath_var_CXX" || \
13547 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13549 # We can hardcode non-existant directories.
13550 if test "$hardcode_direct_CXX" != no &&
13551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552 # have to relink, otherwise we might link with an installed library
13553 # when we should be linking with a yet-to-be-installed one
13554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13555 test "$hardcode_minus_L_CXX" != no; then
13556 # Linking always hardcodes the temporary library directory.
13557 hardcode_action_CXX=relink
13559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560 hardcode_action_CXX=immediate
13563 # We cannot hardcode anything, or else we can only hardcode existing
13565 hardcode_action_CXX=unsupported
13567 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13568 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13570 if test "$hardcode_action_CXX" = relink; then
13571 # Fast installation is not supported
13572 enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574 test "$enable_shared" = no; then
13575 # Fast installation is not necessary
13576 enable_fast_install=needless
13580 # The else clause should only fire when bootstrapping the
13581 # libtool distribution, otherwise you forgot to ship ltmain.sh
13582 # with your package, and you will get complaints that there are
13583 # no rules to generate ltmain.sh.
13584 if test -f "$ltmain"; then
13585 # See if we are running on zsh, and set the options which allow our commands through
13586 # without removal of \ escapes.
13587 if test -n "${ZSH_VERSION+set}" ; then
13588 setopt NO_GLOB_SUBST
13590 # Now quote all the things that may contain metacharacters while being
13591 # careful not to overquote the AC_SUBSTed values. We take copies of the
13592 # variables and quote the copies for generation of the libtool script.
13593 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13597 deplibs_check_method reload_flag reload_cmds need_locks \
13598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13599 lt_cv_sys_global_symbol_to_c_name_address \
13600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13601 old_postinstall_cmds old_postuninstall_cmds \
13605 lt_prog_compiler_wl_CXX \
13606 lt_prog_compiler_pic_CXX \
13607 lt_prog_compiler_static_CXX \
13608 lt_prog_compiler_no_builtin_flag_CXX \
13609 export_dynamic_flag_spec_CXX \
13610 thread_safe_flag_spec_CXX \
13611 whole_archive_flag_spec_CXX \
13612 enable_shared_with_static_runtimes_CXX \
13613 old_archive_cmds_CXX \
13614 old_archive_from_new_cmds_CXX \
13615 predep_objects_CXX \
13616 postdep_objects_CXX \
13619 compiler_lib_search_path_CXX \
13620 compiler_lib_search_dirs_CXX \
13622 archive_expsym_cmds_CXX \
13623 postinstall_cmds_CXX \
13624 postuninstall_cmds_CXX \
13625 old_archive_from_expsyms_cmds_CXX \
13626 allow_undefined_flag_CXX \
13627 no_undefined_flag_CXX \
13628 export_symbols_cmds_CXX \
13629 hardcode_libdir_flag_spec_CXX \
13630 hardcode_libdir_flag_spec_ld_CXX \
13631 hardcode_libdir_separator_CXX \
13632 hardcode_automatic_CXX \
13634 module_expsym_cmds_CXX \
13635 lt_cv_prog_compiler_c_o_CXX \
13636 fix_srcfile_path_CXX \
13637 exclude_expsyms_CXX \
13638 include_expsyms_CXX; do
13641 old_archive_cmds_CXX | \
13642 old_archive_from_new_cmds_CXX | \
13643 archive_cmds_CXX | \
13644 archive_expsym_cmds_CXX | \
13645 module_cmds_CXX | \
13646 module_expsym_cmds_CXX | \
13647 old_archive_from_expsyms_cmds_CXX | \
13648 export_symbols_cmds_CXX | \
13649 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13650 postinstall_cmds | postuninstall_cmds | \
13651 old_postinstall_cmds | old_postuninstall_cmds | \
13652 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13653 # Double-quote double-evaled strings.
13654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13663 *'\$0 --fallback-echo"')
13664 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13670 cat <<__EOF__ >> "$cfgfile"
13671 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13675 # Shell to use when invoking shell scripts.
13678 # Whether or not to build shared libraries.
13679 build_libtool_libs=$enable_shared
13681 # Whether or not to build static libraries.
13682 build_old_libs=$enable_static
13684 # Whether or not to add -lc for building shared libraries.
13685 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13687 # Whether or not to disallow shared libs when runtime libs are static
13688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13690 # Whether or not to optimize for fast installation.
13691 fast_install=$enable_fast_install
13694 host_alias=$host_alias
13698 # The build system.
13699 build_alias=$build_alias
13703 # An echo program that does not interpret backslashes.
13708 AR_FLAGS=$lt_AR_FLAGS
13713 # LTCC compiler flags.
13714 LTCFLAGS=$lt_LTCFLAGS
13716 # A language-specific compiler.
13717 CC=$lt_compiler_CXX
13719 # Is the compiler the GNU C compiler?
13725 # The linker used to build libraries.
13728 # Whether we need hard or soft links.
13731 # A BSD-compatible nm program.
13734 # A symbol stripping program
13737 # Used to examine libraries when file_magic_cmd begins "file"
13738 MAGIC_CMD=$MAGIC_CMD
13740 # Used on cygwin: DLL creation program.
13743 # Used on cygwin: object dumper.
13746 # Used on cygwin: assembler.
13749 # The name of the directory that contains temporary libtool files.
13752 # How to create reloadable object files.
13753 reload_flag=$lt_reload_flag
13754 reload_cmds=$lt_reload_cmds
13756 # How to pass a linker flag through the compiler.
13757 wl=$lt_lt_prog_compiler_wl_CXX
13759 # Object file suffix (normally "o").
13760 objext="$ac_objext"
13762 # Old archive suffix (normally "a").
13765 # Shared library suffix (normally ".so").
13766 shrext_cmds='$shrext_cmds'
13768 # Executable file suffix (normally "").
13771 # Additional compiler flags for building library objects.
13772 pic_flag=$lt_lt_prog_compiler_pic_CXX
13775 # What is the maximum length of a command?
13776 max_cmd_len=$lt_cv_sys_max_cmd_len
13778 # Does compiler simultaneously support -c and -o options?
13779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13781 # Must we lock files when doing compilation?
13782 need_locks=$lt_need_locks
13784 # Do we need the lib prefix for modules?
13785 need_lib_prefix=$need_lib_prefix
13787 # Do we need a version for libraries?
13788 need_version=$need_version
13790 # Whether dlopen is supported.
13791 dlopen_support=$enable_dlopen
13793 # Whether dlopen of programs is supported.
13794 dlopen_self=$enable_dlopen_self
13796 # Whether dlopen of statically linked programs is supported.
13797 dlopen_self_static=$enable_dlopen_self_static
13799 # Compiler flag to prevent dynamic linking.
13800 link_static_flag=$lt_lt_prog_compiler_static_CXX
13802 # Compiler flag to turn off builtin functions.
13803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13805 # Compiler flag to allow reflexive dlopens.
13806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13808 # Compiler flag to generate shared objects directly from archives.
13809 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13811 # Compiler flag to generate thread-safe objects.
13812 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13814 # Library versioning type.
13815 version_type=$version_type
13817 # Format of library name prefix.
13818 libname_spec=$lt_libname_spec
13820 # List of archive names. First name is the real one, the rest are links.
13821 # The last name is the one that the linker finds with -lNAME.
13822 library_names_spec=$lt_library_names_spec
13824 # The coded name of the library, if different from the real name.
13825 soname_spec=$lt_soname_spec
13827 # Commands used to build and install an old-style archive.
13829 old_archive_cmds=$lt_old_archive_cmds_CXX
13830 old_postinstall_cmds=$lt_old_postinstall_cmds
13831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13833 # Create an old-style archive from a shared archive.
13834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13836 # Create a temporary old-style archive to link instead of a shared archive.
13837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13839 # Commands used to build and install a shared archive.
13840 archive_cmds=$lt_archive_cmds_CXX
13841 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13842 postinstall_cmds=$lt_postinstall_cmds
13843 postuninstall_cmds=$lt_postuninstall_cmds
13845 # Commands used to build a loadable module (assumed same as above if empty)
13846 module_cmds=$lt_module_cmds_CXX
13847 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13849 # Commands to strip libraries.
13850 old_striplib=$lt_old_striplib
13851 striplib=$lt_striplib
13853 # Dependencies to place before the objects being linked to create a
13855 predep_objects=$lt_predep_objects_CXX
13857 # Dependencies to place after the objects being linked to create a
13859 postdep_objects=$lt_postdep_objects_CXX
13861 # Dependencies to place before the objects being linked to create a
13863 predeps=$lt_predeps_CXX
13865 # Dependencies to place after the objects being linked to create a
13867 postdeps=$lt_postdeps_CXX
13869 # The directories searched by this compiler when creating a shared
13871 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13873 # The library search path used internally by the compiler when linking
13874 # a shared library.
13875 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13877 # Method to check whether dependent libraries are shared objects.
13878 deplibs_check_method=$lt_deplibs_check_method
13880 # Command to use when deplibs_check_method == file_magic.
13881 file_magic_cmd=$lt_file_magic_cmd
13883 # Flag that allows shared libraries with undefined symbols to be built.
13884 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13886 # Flag that forces no undefined symbols.
13887 no_undefined_flag=$lt_no_undefined_flag_CXX
13889 # Commands used to finish a libtool library installation in a directory.
13890 finish_cmds=$lt_finish_cmds
13892 # Same as above, but a single script fragment to be evaled but not shown.
13893 finish_eval=$lt_finish_eval
13895 # Take the output of nm and produce a listing of raw symbols and C names.
13896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13898 # Transform the output of nm in a proper C declaration
13899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13901 # Transform the output of nm in a C name address pair
13902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13904 # This is the shared library runtime path variable.
13905 runpath_var=$runpath_var
13907 # This is the shared library path variable.
13908 shlibpath_var=$shlibpath_var
13910 # Is shlibpath searched before the hard-coded library search path?
13911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13913 # How to hardcode a shared library path into an executable.
13914 hardcode_action=$hardcode_action_CXX
13916 # Whether we should hardcode library paths into libraries.
13917 hardcode_into_libs=$hardcode_into_libs
13919 # Flag to hardcode \$libdir into a binary during linking.
13920 # This must work even if \$libdir does not exist.
13921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13923 # If ld is used when linking, flag to hardcode \$libdir into
13924 # a binary during linking. This must work even if \$libdir does
13926 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13928 # Whether we need a single -rpath flag with a separated argument.
13929 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13931 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13932 # resulting binary.
13933 hardcode_direct=$hardcode_direct_CXX
13935 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13936 # resulting binary.
13937 hardcode_minus_L=$hardcode_minus_L_CXX
13939 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13940 # the resulting binary.
13941 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13943 # Set to yes if building a shared library automatically hardcodes DIR into the library
13944 # and all subsequent libraries and executables linked against it.
13945 hardcode_automatic=$hardcode_automatic_CXX
13947 # Variables whose values should be saved in libtool wrapper scripts and
13948 # restored at relink time.
13949 variables_saved_for_relink="$variables_saved_for_relink"
13951 # Whether libtool must link a program against all its dependency libraries.
13952 link_all_deplibs=$link_all_deplibs_CXX
13954 # Compile-time system search path for libraries
13955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13957 # Run-time system search path for libraries
13958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13960 # Fix the shell variable \$srcfile for the compiler.
13961 fix_srcfile_path=$lt_fix_srcfile_path
13963 # Set to yes if exported symbols are required.
13964 always_export_symbols=$always_export_symbols_CXX
13966 # The commands to list exported symbols.
13967 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13969 # The commands to extract the exported symbol list from a shared archive.
13970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13972 # Symbols that should not be listed in the preloaded symbols.
13973 exclude_expsyms=$lt_exclude_expsyms_CXX
13975 # Symbols that must always be exported.
13976 include_expsyms=$lt_include_expsyms_CXX
13978 # ### END LIBTOOL TAG CONFIG: $tagname
13984 # If there is no Makefile yet, we rely on a make rule to execute
13985 # `config.status --recheck' to rerun these tests and create the
13986 # libtool script then.
13987 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13988 if test -f "$ltmain_in"; then
13989 test -f Makefile && make "$ltmain"
13995 ac_cpp='$CPP $CPPFLAGS'
13996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14004 with_gnu_ldcxx=$with_gnu_ld
14005 with_gnu_ld=$lt_save_with_gnu_ld
14006 lt_cv_path_LDCXX=$lt_cv_path_LD
14007 lt_cv_path_LD=$lt_save_path_LD
14008 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14009 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14017 if test -n "$F77" && test "X$F77" != "Xno"; then
14020 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14021 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14025 archive_cmds_need_lc_F77=no
14026 allow_undefined_flag_F77=
14027 always_export_symbols_F77=no
14028 archive_expsym_cmds_F77=
14029 export_dynamic_flag_spec_F77=
14030 hardcode_direct_F77=no
14031 hardcode_libdir_flag_spec_F77=
14032 hardcode_libdir_flag_spec_ld_F77=
14033 hardcode_libdir_separator_F77=
14034 hardcode_minus_L_F77=no
14035 hardcode_automatic_F77=no
14037 module_expsym_cmds_F77=
14038 link_all_deplibs_F77=unknown
14039 old_archive_cmds_F77=$old_archive_cmds
14040 no_undefined_flag_F77=
14041 whole_archive_flag_spec_F77=
14042 enable_shared_with_static_runtimes_F77=no
14044 # Source file extension for f77 test sources.
14047 # Object file extension for compiled f77 test sources.
14051 # Code to be used in simple compile tests
14052 lt_simple_compile_test_code="\
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code="\
14064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14066 # If no C compiler was specified, use CC.
14069 # If no C compiler flags were specified, use CFLAGS.
14070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14072 # Allow CC to be a program name with arguments.
14076 # save warnings/boilerplate of simple test code
14077 ac_outfile=conftest.$ac_objext
14078 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14080 _lt_compiler_boilerplate=`cat conftest.err`
14083 ac_outfile=conftest.$ac_objext
14084 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14086 _lt_linker_boilerplate=`cat conftest.err`
14090 # Allow CC to be a program name with arguments.
14095 for cc_temp in $compiler""; do
14097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14106 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14107 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14108 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14109 echo "${ECHO_T}$can_build_shared" >&6; }
14111 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14112 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14113 test "$can_build_shared" = "no" && enable_shared=no
14115 # On AIX, shared libraries and static libraries use the same namespace, and
14116 # are all built from PIC.
14119 test "$enable_shared" = yes && enable_static=no
14120 if test -n "$RANLIB"; then
14121 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14122 postinstall_cmds='$RANLIB $lib'
14126 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14127 test "$enable_shared" = yes && enable_static=no
14131 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14132 echo "${ECHO_T}$enable_shared" >&6; }
14134 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14135 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14136 # Make sure either enable_shared or enable_static is yes.
14137 test "$enable_shared" = yes || enable_static=yes
14138 { echo "$as_me:$LINENO: result: $enable_static" >&5
14139 echo "${ECHO_T}$enable_static" >&6; }
14144 lt_prog_compiler_wl_F77=
14145 lt_prog_compiler_pic_F77=
14146 lt_prog_compiler_static_F77=
14148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14151 if test "$GCC" = yes; then
14152 lt_prog_compiler_wl_F77='-Wl,'
14153 lt_prog_compiler_static_F77='-static'
14157 # All AIX code is PIC.
14158 if test "$host_cpu" = ia64; then
14159 # AIX 5 now supports IA64 processor
14160 lt_prog_compiler_static_F77='-Bstatic'
14165 # FIXME: we need at least 68020 code to build shared libraries, but
14166 # adding the `-m68020' flag to GCC prevents building anything better,
14168 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14172 # PIC is the default for these OSes.
14175 mingw* | cygwin* | pw32* | os2*)
14176 # This hack is so that the source file can tell whether it is being
14177 # built for inclusion in a dll (and should export symbols for example).
14178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14179 # (--disable-auto-import) libraries
14180 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14183 darwin* | rhapsody*)
14184 # PIC is the default on this platform
14185 # Common symbols not allowed in MH_DYLIB files
14186 lt_prog_compiler_pic_F77='-fno-common'
14190 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14191 # Instead, we relocate shared libraries at runtime.
14195 # Just because we use GCC doesn't mean we suddenly get shared libraries
14196 # on systems that don't support them.
14197 lt_prog_compiler_can_build_shared_F77=no
14202 if test -d /usr/nec; then
14203 lt_prog_compiler_pic_F77=-Kconform_pic
14208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14209 # not for PA HP-UX.
14215 lt_prog_compiler_pic_F77='-fPIC'
14221 lt_prog_compiler_pic_F77='-fPIC'
14225 # PORTME Check for flag to pass linker flags through the system compiler.
14228 lt_prog_compiler_wl_F77='-Wl,'
14229 if test "$host_cpu" = ia64; then
14230 # AIX 5 now supports IA64 processor
14231 lt_prog_compiler_static_F77='-Bstatic'
14233 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14237 # PIC is the default on this platform
14238 # Common symbols not allowed in MH_DYLIB files
14239 case $cc_basename in
14241 lt_prog_compiler_pic_F77='-qnocommon'
14242 lt_prog_compiler_wl_F77='-Wl,'
14247 mingw* | cygwin* | pw32* | os2*)
14248 # This hack is so that the source file can tell whether it is being
14249 # built for inclusion in a dll (and should export symbols for example).
14250 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14253 hpux9* | hpux10* | hpux11*)
14254 lt_prog_compiler_wl_F77='-Wl,'
14255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14256 # not for PA HP-UX.
14262 lt_prog_compiler_pic_F77='+Z'
14265 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14266 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14269 irix5* | irix6* | nonstopux*)
14270 lt_prog_compiler_wl_F77='-Wl,'
14271 # PIC (with -KPIC) is the default.
14272 lt_prog_compiler_static_F77='-non_shared'
14276 lt_prog_compiler_pic_F77='-KPIC'
14277 lt_prog_compiler_static_F77='-Bstatic'
14280 linux* | k*bsd*-gnu)
14281 case $cc_basename in
14283 lt_prog_compiler_wl_F77='-Wl,'
14284 lt_prog_compiler_pic_F77='-KPIC'
14285 lt_prog_compiler_static_F77='-static'
14287 pgcc* | pgf77* | pgf90* | pgf95*)
14288 # Portland Group compilers (*not* the Pentium gcc compiler,
14289 # which looks to be a dead project)
14290 lt_prog_compiler_wl_F77='-Wl,'
14291 lt_prog_compiler_pic_F77='-fpic'
14292 lt_prog_compiler_static_F77='-Bstatic'
14295 lt_prog_compiler_wl_F77='-Wl,'
14296 # All Alpha code is PIC.
14297 lt_prog_compiler_static_F77='-non_shared'
14300 case `$CC -V 2>&1 | sed 5q` in
14303 lt_prog_compiler_pic_F77='-KPIC'
14304 lt_prog_compiler_static_F77='-Bstatic'
14305 lt_prog_compiler_wl_F77='-Wl,'
14308 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14309 lt_prog_compiler_pic_F77='-KPIC'
14310 lt_prog_compiler_static_F77='-Bstatic'
14311 lt_prog_compiler_wl_F77=''
14318 osf3* | osf4* | osf5*)
14319 lt_prog_compiler_wl_F77='-Wl,'
14320 # All OSF/1 code is PIC.
14321 lt_prog_compiler_static_F77='-non_shared'
14325 lt_prog_compiler_static_F77='-non_shared'
14329 lt_prog_compiler_pic_F77='-KPIC'
14330 lt_prog_compiler_static_F77='-Bstatic'
14331 case $cc_basename in
14332 f77* | f90* | f95*)
14333 lt_prog_compiler_wl_F77='-Qoption ld ';;
14335 lt_prog_compiler_wl_F77='-Wl,';;
14340 lt_prog_compiler_wl_F77='-Qoption ld '
14341 lt_prog_compiler_pic_F77='-PIC'
14342 lt_prog_compiler_static_F77='-Bstatic'
14345 sysv4 | sysv4.2uw2* | sysv4.3*)
14346 lt_prog_compiler_wl_F77='-Wl,'
14347 lt_prog_compiler_pic_F77='-KPIC'
14348 lt_prog_compiler_static_F77='-Bstatic'
14352 if test -d /usr/nec ;then
14353 lt_prog_compiler_pic_F77='-Kconform_pic'
14354 lt_prog_compiler_static_F77='-Bstatic'
14358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14359 lt_prog_compiler_wl_F77='-Wl,'
14360 lt_prog_compiler_pic_F77='-KPIC'
14361 lt_prog_compiler_static_F77='-Bstatic'
14365 lt_prog_compiler_wl_F77='-Wl,'
14366 lt_prog_compiler_can_build_shared_F77=no
14370 lt_prog_compiler_pic_F77='-pic'
14371 lt_prog_compiler_static_F77='-Bstatic'
14375 lt_prog_compiler_can_build_shared_F77=no
14380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14381 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14384 # Check to make sure the PIC flag actually works.
14386 if test -n "$lt_prog_compiler_pic_F77"; then
14388 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14390 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 lt_cv_prog_compiler_pic_works_F77=no
14394 ac_outfile=conftest.$ac_objext
14395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14396 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14397 # Insert the option either (1) after the last *FLAGS variable, or
14398 # (2) before a word containing "conftest.", or (3) at the end.
14399 # Note that $ac_compile itself does not contain backslashes and begins
14400 # with a dollar sign (not a hyphen), so the echo should work correctly.
14401 # The option is referenced via a variable to avoid confusing sed.
14402 lt_compile=`echo "$ac_compile" | $SED \
14403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14405 -e 's:$: $lt_compiler_flag:'`
14406 (eval echo "\"\$as_me:14406: $lt_compile\"" >&5)
14407 (eval "$lt_compile" 2>conftest.err)
14409 cat conftest.err >&5
14410 echo "$as_me:14410: \$? = $ac_status" >&5
14411 if (exit $ac_status) && test -s "$ac_outfile"; then
14412 # The compiler can only warn and ignore the option if not recognized
14413 # So say no if there are warnings other than the usual output.
14414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14417 lt_cv_prog_compiler_pic_works_F77=yes
14423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14424 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14426 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14427 case $lt_prog_compiler_pic_F77 in
14429 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14432 lt_prog_compiler_pic_F77=
14433 lt_prog_compiler_can_build_shared_F77=no
14438 # For platforms which do not support PIC, -DPIC is meaningless:
14440 lt_prog_compiler_pic_F77=
14443 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14448 # Check to make sure the static flag actually works.
14450 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14451 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14452 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14453 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 lt_cv_prog_compiler_static_works_F77=no
14457 save_LDFLAGS="$LDFLAGS"
14458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14461 # The linker can only warn and ignore the option if not recognized
14462 # So say no if there are warnings
14463 if test -s conftest.err; then
14464 # Append any errors to the config.log.
14465 cat conftest.err 1>&5
14466 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14468 if diff conftest.exp conftest.er2 >/dev/null; then
14469 lt_cv_prog_compiler_static_works_F77=yes
14472 lt_cv_prog_compiler_static_works_F77=yes
14476 LDFLAGS="$save_LDFLAGS"
14479 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14480 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14482 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14485 lt_prog_compiler_static_F77=
14489 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14490 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14491 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 lt_cv_prog_compiler_c_o_F77=no
14495 $rm -r conftest 2>/dev/null
14499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14501 lt_compiler_flag="-o out/conftest2.$ac_objext"
14502 # Insert the option either (1) after the last *FLAGS variable, or
14503 # (2) before a word containing "conftest.", or (3) at the end.
14504 # Note that $ac_compile itself does not contain backslashes and begins
14505 # with a dollar sign (not a hyphen), so the echo should work correctly.
14506 lt_compile=`echo "$ac_compile" | $SED \
14507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14509 -e 's:$: $lt_compiler_flag:'`
14510 (eval echo "\"\$as_me:14510: $lt_compile\"" >&5)
14511 (eval "$lt_compile" 2>out/conftest.err)
14513 cat out/conftest.err >&5
14514 echo "$as_me:14514: \$? = $ac_status" >&5
14515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14517 # The compiler can only warn and ignore the option if not recognized
14518 # So say no if there are warnings
14519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14522 lt_cv_prog_compiler_c_o_F77=yes
14527 # SGI C++ compiler will create directory out/ii_files/ for
14528 # template instantiation
14529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14530 $rm out/* && rmdir out
14536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14540 hard_links="nottested"
14541 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14542 # do not overwrite the value of need_locks provided by the user
14543 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14549 ln conftest.a conftest.b 2>&5 || hard_links=no
14550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14551 { echo "$as_me:$LINENO: result: $hard_links" >&5
14552 echo "${ECHO_T}$hard_links" >&6; }
14553 if test "$hard_links" = no; then
14554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14566 allow_undefined_flag_F77=
14567 enable_shared_with_static_runtimes_F77=no
14569 archive_expsym_cmds_F77=
14570 old_archive_From_new_cmds_F77=
14571 old_archive_from_expsyms_cmds_F77=
14572 export_dynamic_flag_spec_F77=
14573 whole_archive_flag_spec_F77=
14574 thread_safe_flag_spec_F77=
14575 hardcode_libdir_flag_spec_F77=
14576 hardcode_libdir_flag_spec_ld_F77=
14577 hardcode_libdir_separator_F77=
14578 hardcode_direct_F77=no
14579 hardcode_minus_L_F77=no
14580 hardcode_shlibpath_var_F77=unsupported
14581 link_all_deplibs_F77=unknown
14582 hardcode_automatic_F77=no
14584 module_expsym_cmds_F77=
14585 always_export_symbols_F77=no
14586 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14587 # include_expsyms should be a list of space-separated symbols to be *always*
14588 # included in the symbol list
14589 include_expsyms_F77=
14590 # exclude_expsyms can be an extended regexp of symbols to exclude
14591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14593 # as well as any symbol that contains `d'.
14594 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14596 # platforms (ab)use it in PIC code, but their linkers get confused if
14597 # the symbol is explicitly referenced. Since portable code cannot
14598 # rely on this symbol name, it's probably fine to never include it in
14599 # preloaded symbol tables.
14600 # Exclude shared library initialization/finalization symbols.
14601 extract_expsyms_cmds=
14602 # Just being paranoid about ensuring that cc_basename is set.
14603 for cc_temp in $compiler""; do
14605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14611 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14614 cygwin* | mingw* | pw32*)
14615 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14616 # When not using gcc, we currently assume that we are using
14617 # Microsoft Visual C++.
14618 if test "$GCC" != yes; then
14623 # we just hope/assume this is gcc and not c89 (= MSVC++)
14632 if test "$with_gnu_ld" = yes; then
14633 # If archive_cmds runs LD, not CC, wlarc should be empty
14636 # Set some defaults for GNU ld with shared library support. These
14637 # are reset later if shared libraries are not supported. Putting them
14638 # here allows them to be overridden if necessary.
14639 runpath_var=LD_RUN_PATH
14640 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14641 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14642 # ancient GNU ld didn't support --whole-archive et. al.
14643 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14644 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14646 whole_archive_flag_spec_F77=
14648 supports_anon_versioning=no
14649 case `$LD -v 2>/dev/null` in
14650 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14651 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14652 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14653 *\ 2.11.*) ;; # other 2.11 versions
14654 *) supports_anon_versioning=yes ;;
14657 # See if GNU ld supports shared libraries.
14660 # On AIX/PPC, the GNU linker is very broken
14661 if test "$host_cpu" != ia64; then
14665 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14666 *** to be unable to reliably create shared libraries on AIX.
14667 *** Therefore, libtool is disabling shared libraries support. If you
14668 *** really care for shared libraries, you may want to modify your PATH
14669 *** so that a non-GNU linker is found, and then restart.
14676 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)'
14677 hardcode_libdir_flag_spec_F77='-L$libdir'
14678 hardcode_minus_L_F77=yes
14680 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14681 # that the semantics of dynamic libraries on AmigaOS, at least up
14682 # to version 4, is to share data among multiple programs linked
14683 # with the same dynamic library. Since this doesn't match the
14684 # behavior of shared libraries on other platforms, we can't use
14690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14691 allow_undefined_flag_F77=unsupported
14692 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14693 # support --undefined. This deserves some investigation. FIXME
14694 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14700 cygwin* | mingw* | pw32*)
14701 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14702 # as there is no search path for DLLs.
14703 hardcode_libdir_flag_spec_F77='-L$libdir'
14704 allow_undefined_flag_F77=unsupported
14705 always_export_symbols_F77=no
14706 enable_shared_with_static_runtimes_F77=yes
14707 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14709 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14710 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14711 # If the export-symbols file already is a .def file (1st line
14712 # is EXPORTS), use it as is; otherwise, prepend...
14713 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14714 cp $export_symbols $output_objdir/$soname.def;
14716 echo EXPORTS > $output_objdir/$soname.def;
14717 cat $export_symbols >> $output_objdir/$soname.def;
14719 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14726 hardcode_direct_F77=no
14727 hardcode_shlibpath_var_F77=no
14728 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14729 export_dynamic_flag_spec_F77='${wl}-E'
14730 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14731 # Instead, shared libraries are loaded at an image base (0x10000000 by
14732 # default) and relocated if they conflict, which is a slow very memory
14733 # consuming and fragmenting process. To avoid this, we pick a random,
14734 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14735 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14736 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'
14737 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'
14740 gnu* | linux* | k*bsd*-gnu)
14741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14743 case $cc_basename,$host_cpu in
14744 pgcc*) # Portland Group C compiler
14745 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'
14746 tmp_addflag=' $pic_flag'
14748 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14749 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'
14750 tmp_addflag=' $pic_flag -Mnomain' ;;
14751 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14752 tmp_addflag=' -i_dynamic' ;;
14753 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14754 tmp_addflag=' -i_dynamic -nofor_main' ;;
14755 ifc* | ifort*) # Intel Fortran compiler
14756 tmp_addflag=' -nofor_main' ;;
14758 case `$CC -V 2>&1 | sed 5q` in
14759 *Sun\ C*) # Sun C 5.9
14760 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'
14761 tmp_sharedflag='-G' ;;
14762 *Sun\ F*) # Sun Fortran 8.3
14763 tmp_sharedflag='-G' ;;
14765 tmp_sharedflag='-shared' ;;
14767 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769 if test $supports_anon_versioning = yes; then
14770 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14772 $echo "local: *; };" >> $output_objdir/$libname.ver~
14773 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14775 link_all_deplibs_F77=no
14781 netbsd* | netbsdelf*-gnu)
14782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14783 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14786 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14792 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14797 *** create shared libraries on Solaris systems. Therefore, libtool
14798 *** is disabling shared libraries support. We urge you to upgrade GNU
14799 *** binutils to release 2.9.1 or newer. Another option is to modify
14800 *** your PATH or compiler configuration so that the native linker is
14801 *** used, and then restart.
14804 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14813 case `$LD -v 2>&1` in
14814 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14818 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14819 *** reliably create shared libraries on SCO systems. Therefore, libtool
14820 *** is disabling shared libraries support. We urge you to upgrade GNU
14821 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14822 *** your PATH or compiler configuration so that the native linker is
14823 *** used, and then restart.
14828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14829 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14830 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14831 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14840 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14842 hardcode_direct_F77=yes
14843 hardcode_shlibpath_var_F77=no
14847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14856 if test "$ld_shlibs_F77" = no; then
14858 hardcode_libdir_flag_spec_F77=
14859 export_dynamic_flag_spec_F77=
14860 whole_archive_flag_spec_F77=
14863 # PORTME fill in a description of your system's linker (not GNU ld)
14866 allow_undefined_flag_F77=unsupported
14867 always_export_symbols_F77=yes
14868 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'
14869 # Note: this linker hardcodes the directories in LIBPATH if there
14870 # are no directories specified by -L.
14871 hardcode_minus_L_F77=yes
14872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14873 # Neither direct hardcoding nor static linking is supported with a
14875 hardcode_direct_F77=unsupported
14880 if test "$host_cpu" = ia64; then
14881 # On IA64, the linker does run time linking by default, so we don't
14882 # have to do anything special.
14883 aix_use_runtimelinking=no
14884 exp_sym_flag='-Bexport'
14887 # If we're using GNU nm, then we don't want the "-C" option.
14888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14889 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14890 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'
14892 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'
14894 aix_use_runtimelinking=no
14896 # Test if we are trying to use run time linking or normal
14897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14898 # need to do runtime linking.
14899 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14900 for ld_flag in $LDFLAGS; do
14901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14902 aix_use_runtimelinking=yes
14909 exp_sym_flag='-bexport'
14910 no_entry_flag='-bnoentry'
14913 # When large executables or shared objects are built, AIX ld can
14914 # have problems creating the table of contents. If linking a library
14915 # or program results in "error TOC overflow" add -mminimal-toc to
14916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14919 archive_cmds_F77=''
14920 hardcode_direct_F77=yes
14921 hardcode_libdir_separator_F77=':'
14922 link_all_deplibs_F77=yes
14924 if test "$GCC" = yes; then
14925 case $host_os in aix4.[012]|aix4.[012].*)
14926 # We only want to do this on AIX 4.2 and lower, the check
14927 # below for broken collect2 doesn't work under 4.3+
14928 collect2name=`${CC} -print-prog-name=collect2`
14929 if test -f "$collect2name" && \
14930 strings "$collect2name" | grep resolve_lib_name >/dev/null
14932 # We have reworked collect2
14935 # We have old collect2
14936 hardcode_direct_F77=unsupported
14937 # It fails to find uninstalled libraries when the uninstalled
14938 # path is not listed in the libpath. Setting hardcode_minus_L
14939 # to unsupported forces relinking
14940 hardcode_minus_L_F77=yes
14941 hardcode_libdir_flag_spec_F77='-L$libdir'
14942 hardcode_libdir_separator_F77=
14946 shared_flag='-shared'
14947 if test "$aix_use_runtimelinking" = yes; then
14948 shared_flag="$shared_flag "'${wl}-G'
14952 if test "$host_cpu" = ia64; then
14953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14954 # chokes on -Wl,-G. The following line is correct:
14957 if test "$aix_use_runtimelinking" = yes; then
14958 shared_flag='${wl}-G'
14960 shared_flag='${wl}-bM:SRE'
14965 # It seems that -bexpall does not export symbols beginning with
14966 # underscore (_), so it is better to generate a list of symbols to export.
14967 always_export_symbols_F77=yes
14968 if test "$aix_use_runtimelinking" = yes; then
14969 # Warning - without using the other runtime loading flags (-brtl),
14970 # -berok will link without error, but may produce a broken library.
14971 allow_undefined_flag_F77='-berok'
14972 # Determine the default libpath from the value encoded in an empty executable.
14973 cat >conftest.$ac_ext <<_ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>conftest.er1
14987 grep -v '^ *+' conftest.er1 >conftest.err
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_f77_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext &&
14995 $as_test_x conftest$ac_exeext; then
14997 lt_aix_libpath_sed='
14998 /Import File Strings/,/^$/ {
15004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15005 # Check for a 64-bit object if we didn't find anything.
15006 if test -z "$aix_libpath"; then
15007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15017 conftest$ac_exeext conftest.$ac_ext
15018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15020 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15021 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"
15023 if test "$host_cpu" = ia64; then
15024 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15025 allow_undefined_flag_F77="-z nodefs"
15026 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"
15028 # Determine the default libpath from the value encoded in an empty executable.
15029 cat >conftest.$ac_ext <<_ACEOF
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (ac_try="$ac_link"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_link") 2>conftest.er1
15043 grep -v '^ *+' conftest.er1 >conftest.err
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } && {
15048 test -z "$ac_f77_werror_flag" ||
15049 test ! -s conftest.err
15050 } && test -s conftest$ac_exeext &&
15051 $as_test_x conftest$ac_exeext; then
15053 lt_aix_libpath_sed='
15054 /Import File Strings/,/^$/ {
15060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15061 # Check for a 64-bit object if we didn't find anything.
15062 if test -z "$aix_libpath"; then
15063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073 conftest$ac_exeext conftest.$ac_ext
15074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15076 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15077 # Warning - without using the other run time loading flags,
15078 # -berok will link without error, but may produce a broken library.
15079 no_undefined_flag_F77=' ${wl}-bernotok'
15080 allow_undefined_flag_F77=' ${wl}-berok'
15081 # Exported symbols can be pulled into shared objects from archives
15082 whole_archive_flag_spec_F77='$convenience'
15083 archive_cmds_need_lc_F77=yes
15084 # This is similar to how AIX traditionally builds its shared libraries.
15085 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'
15091 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)'
15092 hardcode_libdir_flag_spec_F77='-L$libdir'
15093 hardcode_minus_L_F77=yes
15094 # see comment about different semantics on the GNU ld section
15099 export_dynamic_flag_spec_F77=-rdynamic
15102 cygwin* | mingw* | pw32*)
15103 # When not using gcc, we currently assume that we are using
15104 # Microsoft Visual C++.
15105 # hardcode_libdir_flag_spec is actually meaningless, as there is
15106 # no search path for DLLs.
15107 hardcode_libdir_flag_spec_F77=' '
15108 allow_undefined_flag_F77=unsupported
15109 # Tell ltmain to make .lib files, not .a files.
15111 # Tell ltmain to make .dll files, not .so files.
15113 # FIXME: Setting linknames here is a bad hack.
15114 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15115 # The linker will automatically build a .lib file if we build a DLL.
15116 old_archive_From_new_cmds_F77='true'
15117 # FIXME: Should let the user specify the lib program.
15118 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15119 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15120 enable_shared_with_static_runtimes_F77=yes
15123 darwin* | rhapsody*)
15125 rhapsody* | darwin1.[012])
15126 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15130 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15132 case ${MACOSX_DEPLOYMENT_TARGET} in
15134 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15137 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15143 archive_cmds_need_lc_F77=no
15144 hardcode_direct_F77=no
15145 hardcode_automatic_F77=yes
15146 hardcode_shlibpath_var_F77=unsupported
15147 whole_archive_flag_spec_F77=''
15148 link_all_deplibs_F77=yes
15149 if test "$GCC" = yes ; then
15150 output_verbose_link_cmd='echo'
15151 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}"
15152 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15153 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}"
15154 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}"
15156 case $cc_basename in
15158 output_verbose_link_cmd='echo'
15159 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15160 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15162 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}'
15163 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}'
15173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15174 hardcode_libdir_flag_spec_F77='-L$libdir'
15175 hardcode_shlibpath_var_F77=no
15182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15183 # support. Future versions do this automatically, but an explicit c++rt0.o
15184 # does not break anything, and helps significantly (at the cost of a little
15187 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15188 hardcode_libdir_flag_spec_F77='-R$libdir'
15189 hardcode_direct_F77=yes
15190 hardcode_shlibpath_var_F77=no
15193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15195 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196 hardcode_direct_F77=yes
15197 hardcode_minus_L_F77=yes
15198 hardcode_shlibpath_var_F77=no
15201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15202 freebsd* | dragonfly*)
15203 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15204 hardcode_libdir_flag_spec_F77='-R$libdir'
15205 hardcode_direct_F77=yes
15206 hardcode_shlibpath_var_F77=no
15210 if test "$GCC" = yes; then
15211 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'
15213 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'
15215 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15216 hardcode_libdir_separator_F77=:
15217 hardcode_direct_F77=yes
15219 # hardcode_minus_L: Not really in the search PATH,
15220 # but as the default location of the library.
15221 hardcode_minus_L_F77=yes
15222 export_dynamic_flag_spec_F77='${wl}-E'
15226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15227 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15229 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15231 if test "$with_gnu_ld" = no; then
15232 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15233 hardcode_libdir_separator_F77=:
15235 hardcode_direct_F77=yes
15236 export_dynamic_flag_spec_F77='${wl}-E'
15238 # hardcode_minus_L: Not really in the search PATH,
15239 # but as the default location of the library.
15240 hardcode_minus_L_F77=yes
15245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15248 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15251 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15254 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15260 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15263 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15266 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15270 if test "$with_gnu_ld" = no; then
15271 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15272 hardcode_libdir_separator_F77=:
15276 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15277 hardcode_direct_F77=no
15278 hardcode_shlibpath_var_F77=no
15281 hardcode_direct_F77=yes
15282 export_dynamic_flag_spec_F77='${wl}-E'
15284 # hardcode_minus_L: Not really in the search PATH,
15285 # but as the default location of the library.
15286 hardcode_minus_L_F77=yes
15292 irix5* | irix6* | nonstopux*)
15293 if test "$GCC" = yes; then
15294 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'
15296 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'
15297 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15299 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15300 hardcode_libdir_separator_F77=:
15301 link_all_deplibs_F77=yes
15304 netbsd* | netbsdelf*-gnu)
15305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15306 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15308 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15310 hardcode_libdir_flag_spec_F77='-R$libdir'
15311 hardcode_direct_F77=yes
15312 hardcode_shlibpath_var_F77=no
15316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15317 hardcode_direct_F77=yes
15318 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15319 hardcode_libdir_separator_F77=:
15320 hardcode_shlibpath_var_F77=no
15324 if test -f /usr/libexec/ld.so; then
15325 hardcode_direct_F77=yes
15326 hardcode_shlibpath_var_F77=no
15327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15328 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15330 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15331 export_dynamic_flag_spec_F77='${wl}-E'
15334 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15335 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15336 hardcode_libdir_flag_spec_F77='-R$libdir'
15339 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15340 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15350 hardcode_libdir_flag_spec_F77='-L$libdir'
15351 hardcode_minus_L_F77=yes
15352 allow_undefined_flag_F77=unsupported
15353 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'
15354 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15358 if test "$GCC" = yes; then
15359 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15360 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'
15362 allow_undefined_flag_F77=' -expect_unresolved \*'
15363 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'
15365 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15366 hardcode_libdir_separator_F77=:
15369 osf4* | osf5*) # as osf3* with the addition of -msym flag
15370 if test "$GCC" = yes; then
15371 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15372 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'
15373 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15375 allow_undefined_flag_F77=' -expect_unresolved \*'
15376 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'
15377 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~
15378 $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'
15380 # Both c and cxx compiler support -rpath directly
15381 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15383 hardcode_libdir_separator_F77=:
15387 no_undefined_flag_F77=' -z text'
15388 if test "$GCC" = yes; then
15390 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15391 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15392 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15395 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15399 hardcode_libdir_flag_spec_F77='-R$libdir'
15400 hardcode_shlibpath_var_F77=no
15402 solaris2.[0-5] | solaris2.[0-5].*) ;;
15404 # The compiler driver will combine and reorder linker options,
15405 # but understands `-z linker_flag'. GCC discards it without `$wl',
15406 # but is careful enough not to reorder.
15407 # Supported since Solaris 2.6 (maybe 2.5.1?)
15408 if test "$GCC" = yes; then
15409 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15411 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15415 link_all_deplibs_F77=yes
15419 if test "x$host_vendor" = xsequent; then
15420 # Use $CC to link under sequent, because it throws in some extra .o
15421 # files that make .init and .fini sections work.
15422 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15424 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15426 hardcode_libdir_flag_spec_F77='-L$libdir'
15427 hardcode_direct_F77=yes
15428 hardcode_minus_L_F77=yes
15429 hardcode_shlibpath_var_F77=no
15433 case $host_vendor in
15435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436 hardcode_direct_F77=yes # is this really true???
15439 ## LD is ld it makes a PLAMLIB
15440 ## CC just makes a GrossModule.
15441 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15442 reload_cmds_F77='$CC -r -o $output$reload_objs'
15443 hardcode_direct_F77=no
15446 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15447 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15450 runpath_var='LD_RUN_PATH'
15451 hardcode_shlibpath_var_F77=no
15455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_shlibpath_var_F77=no
15457 export_dynamic_flag_spec_F77='-Bexport'
15461 if test -d /usr/nec; then
15462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_shlibpath_var_F77=no
15464 runpath_var=LD_RUN_PATH
15465 hardcode_runpath_var=yes
15470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15471 no_undefined_flag_F77='${wl}-z,text'
15472 archive_cmds_need_lc_F77=no
15473 hardcode_shlibpath_var_F77=no
15474 runpath_var='LD_RUN_PATH'
15476 if test "$GCC" = yes; then
15477 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15478 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15485 sysv5* | sco3.2v5* | sco5v6*)
15486 # Note: We can NOT use -z defs as we might desire, because we do not
15487 # link with -lc, and that would cause any symbols used from libc to
15488 # always be unresolved, which means just about no library would
15489 # ever link correctly. If we're not using GNU ld we use -z text
15490 # though, which does catch some bad symbols but isn't as heavy-handed
15492 no_undefined_flag_F77='${wl}-z,text'
15493 allow_undefined_flag_F77='${wl}-z,nodefs'
15494 archive_cmds_need_lc_F77=no
15495 hardcode_shlibpath_var_F77=no
15496 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15497 hardcode_libdir_separator_F77=':'
15498 link_all_deplibs_F77=yes
15499 export_dynamic_flag_spec_F77='${wl}-Bexport'
15500 runpath_var='LD_RUN_PATH'
15502 if test "$GCC" = yes; then
15503 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_libdir_flag_spec_F77='-L$libdir'
15514 hardcode_shlibpath_var_F77=no
15523 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15524 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15525 test "$ld_shlibs_F77" = no && can_build_shared=no
15528 # Do we need to explicitly link libc?
15530 case "x$archive_cmds_need_lc_F77" in
15532 # Assume -lc should be added
15533 archive_cmds_need_lc_F77=yes
15535 if test "$enable_shared" = yes && test "$GCC" = yes; then
15536 case $archive_cmds_F77 in
15538 # FIXME: we may have to deal with multi-command sequences.
15541 # Test whether the compiler implicitly links with -lc since on some
15542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15543 # to ld, don't add -lc before -lgcc.
15544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } 2>conftest.err; then
15556 libobjs=conftest.$ac_objext
15558 wl=$lt_prog_compiler_wl_F77
15559 pic_flag=$lt_prog_compiler_pic_F77
15565 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15566 allow_undefined_flag_F77=
15567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15568 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }
15573 archive_cmds_need_lc_F77=no
15575 archive_cmds_need_lc_F77=yes
15577 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15579 cat conftest.err 1>&5
15582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15583 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15592 library_names_spec=
15593 libname_spec='lib$name'
15597 postuninstall_cmds=
15601 shlibpath_overrides_runpath=unknown
15603 dynamic_linker="$host_os ld.so"
15604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15606 need_lib_prefix=unknown
15607 hardcode_into_libs=no
15609 # when you set need_version to no, make sure it does not cause -set_version
15610 # flags to be left without arguments
15611 need_version=unknown
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15617 shlibpath_var=LIBPATH
15619 # AIX 3 has no versioning support, so we append a major version to the name.
15620 soname_spec='${libname}${release}${shared_ext}$major'
15627 hardcode_into_libs=yes
15628 if test "$host_cpu" = ia64; then
15629 # AIX 5 supports IA64
15630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15631 shlibpath_var=LD_LIBRARY_PATH
15633 # With GCC up to 2.95.x, collect2 would create an import file
15634 # for dependence libraries. The import file would start with
15635 # the line `#! .'. This would cause the generated library to
15636 # depend on `.', always an invalid library. This was fixed in
15637 # development snapshots of GCC prior to 3.0.
15639 aix4 | aix4.[01] | aix4.[01].*)
15640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15645 can_build_shared=no
15649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15650 # soname into executable. Probably we can add versioning support to
15651 # collect2, so additional links can be useful in future.
15652 if test "$aix_use_runtimelinking" = yes; then
15653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15654 # instead of lib<name>.a to let people know that these are not
15655 # typical AIX shared libraries.
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 # We preserve .a as extension for shared libraries through AIX4.2
15659 # and later when we are not doing run time linking.
15660 library_names_spec='${libname}${release}.a $libname.a'
15661 soname_spec='${libname}${release}${shared_ext}$major'
15663 shlibpath_var=LIBPATH
15668 library_names_spec='$libname.ixlibrary $libname.a'
15669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670 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'
15674 library_names_spec='${libname}${shared_ext}'
15675 dynamic_linker="$host_os ld.so"
15676 shlibpath_var=LIBRARY_PATH
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15688 # the default ld.so.conf also contains /usr/contrib/lib and
15689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15690 # libtool to hard-code these into programs
15693 cygwin* | mingw* | pw32*)
15694 version_type=windows
15699 case $GCC,$host_os in
15700 yes,cygwin* | yes,mingw* | yes,pw32*)
15701 library_names_spec='$libname.dll.a'
15702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15703 postinstall_cmds='base_file=`basename \${file}`~
15704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15705 dldir=$destdir/`dirname \$dlpath`~
15706 test -d \$dldir || mkdir -p \$dldir~
15707 $install_prog $dir/$dlname \$dldir/$dlname~
15708 chmod a+x \$dldir/$dlname'
15709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15710 dlpath=$dir/\$dldll~
15712 shlibpath_overrides_runpath=yes
15716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15721 # MinGW DLLs use traditional 'lib' prefix
15722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15724 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15725 # It is most probably a Windows format PATH printed by
15726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15727 # path with ; separators, and with drive letters. We can handle the
15728 # drive letters (cygwin fileutils understands them), so leave them,
15729 # especially as we might pass files found there to a mingw objdump,
15730 # which wouldn't understand a cygwinified path. Ahh.
15731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15737 # pw32 DLLs use 'pw' prefix rather than 'lib'
15738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15747 dynamic_linker='Win32 ld.exe'
15748 # FIXME: first we should search . and the directory the executable is in
15752 darwin* | rhapsody*)
15753 dynamic_linker="$host_os dyld"
15754 version_type=darwin
15757 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15758 soname_spec='${libname}${release}${major}$shared_ext'
15759 shlibpath_overrides_runpath=yes
15760 shlibpath_var=DYLD_LIBRARY_PATH
15761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15779 freebsd* | dragonfly*)
15780 # DragonFly does not have aout. When/if they implement a new
15781 # versioning mechanism, adjust this.
15782 if test -x /usr/bin/objformat; then
15783 objformat=`/usr/bin/objformat`
15786 freebsd[123]*) objformat=aout ;;
15787 *) objformat=elf ;;
15790 version_type=freebsd-$objformat
15791 case $version_type in
15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15802 shlibpath_var=LD_LIBRARY_PATH
15805 shlibpath_overrides_runpath=yes
15807 freebsd3.[01]* | freebsdelf3.[01]*)
15808 shlibpath_overrides_runpath=yes
15809 hardcode_into_libs=yes
15811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15813 shlibpath_overrides_runpath=no
15814 hardcode_into_libs=yes
15816 *) # from 4.6 on, and DragonFly
15817 shlibpath_overrides_runpath=yes
15818 hardcode_into_libs=yes
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15828 soname_spec='${libname}${release}${shared_ext}$major'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 hardcode_into_libs=yes
15833 hpux9* | hpux10* | hpux11*)
15834 # Give a soname corresponding to the major version so that dld.sl refuses to
15835 # link against other versions.
15842 hardcode_into_libs=yes
15843 dynamic_linker="$host_os dld.so"
15844 shlibpath_var=LD_LIBRARY_PATH
15845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 if test "X$HPUX_IA64_MODE" = X32; then
15849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857 hardcode_into_libs=yes
15858 dynamic_linker="$host_os dld.sl"
15859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
15863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15868 dynamic_linker="$host_os dld.sl"
15869 shlibpath_var=SHLIB_PATH
15870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15876 postinstall_cmds='chmod 555 $lib'
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=no
15888 hardcode_into_libs=yes
15891 irix5* | irix6* | nonstopux*)
15893 nonstopux*) version_type=nonstopux ;;
15895 if test "$lt_cv_prog_gnu_ld" = yes; then
15903 soname_spec='${libname}${release}${shared_ext}$major'
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15906 irix5* | nonstopux*)
15907 libsuff= shlibsuff=
15910 case $LD in # libtool.m4 will add one of these switches to LD
15911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15912 libsuff= shlibsuff= libmagic=32-bit;;
15913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15914 libsuff=32 shlibsuff=N32 libmagic=N32;;
15915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15917 *) libsuff= shlibsuff= libmagic=never-match;;
15921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15922 shlibpath_overrides_runpath=no
15923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15925 hardcode_into_libs=yes
15928 # No shared lib support for Linux oldld, aout, or coff.
15929 linux*oldld* | linux*aout* | linux*coff*)
15933 # This must be Linux ELF.
15934 linux* | k*bsd*-gnu)
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 shlibpath_overrides_runpath=no
15943 # This implies no fast_install, which is unacceptable.
15944 # Some rework will be needed to allow for fast_install
15945 # before this can be enabled.
15946 hardcode_into_libs=yes
15948 # Append ld.so.conf contents to the search path
15949 if test -f /etc/ld.so.conf; then
15950 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' ' '`
15951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15954 # We used to test for /lib/ld.so.1 and disable shared libraries on
15955 # powerpc, because MkLinux only supported shared libraries with the
15956 # GNU dynamic linker. Since this was broken with cross compilers,
15957 # most powerpc-linux boxes support dynamic linking these days and
15958 # people can always --disable-shared, the test was removed, and we
15959 # assume the GNU/Linux dynamic linker is in use.
15960 dynamic_linker='GNU/Linux ld.so'
15967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 shlibpath_var=LD_LIBRARY_PATH
15970 shlibpath_overrides_runpath=no
15971 hardcode_into_libs=yes
15972 dynamic_linker='NetBSD ld.elf_so'
15979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15982 dynamic_linker='NetBSD (a.out) ld.so'
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 dynamic_linker='NetBSD ld.elf_so'
15988 shlibpath_var=LD_LIBRARY_PATH
15989 shlibpath_overrides_runpath=yes
15990 hardcode_into_libs=yes
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 shlibpath_overrides_runpath=yes
16012 sys_lib_dlsearch_path_spec="/usr/lib"
16014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16017 *) need_version=no ;;
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16024 openbsd2.[89] | openbsd2.[89].*)
16025 shlibpath_overrides_runpath=no
16028 shlibpath_overrides_runpath=yes
16032 shlibpath_overrides_runpath=yes
16037 libname_spec='$name'
16040 library_names_spec='$libname${shared_ext} $libname.a'
16041 dynamic_linker='OS/2 ld.exe'
16042 shlibpath_var=LIBPATH
16045 osf3* | osf4* | osf5*)
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=yes
16068 hardcode_into_libs=yes
16069 # ldd complains unless libraries are executable
16070 postinstall_cmds='chmod +x $lib'
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=yes
16079 if test "$with_gnu_ld" = yes; then
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 case $host_vendor in
16092 shlibpath_overrides_runpath=no
16094 export_dynamic_flag_spec='${wl}-Blargedynsym'
16095 runpath_var=LD_RUN_PATH
16103 shlibpath_overrides_runpath=no
16104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16110 if test -d /usr/nec ;then
16112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16113 soname_spec='$libname${shared_ext}.$major'
16114 shlibpath_var=LD_LIBRARY_PATH
16118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16119 version_type=freebsd-elf
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 hardcode_into_libs=yes
16126 if test "$with_gnu_ld" = yes; then
16127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16128 shlibpath_overrides_runpath=no
16130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16131 shlibpath_overrides_runpath=yes
16134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16138 sys_lib_dlsearch_path_spec='/usr/lib'
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144 soname_spec='${libname}${release}${shared_ext}$major'
16145 shlibpath_var=LD_LIBRARY_PATH
16152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16153 echo "${ECHO_T}$dynamic_linker" >&6; }
16154 test "$dynamic_linker" = no && can_build_shared=no
16156 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16162 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16163 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16169 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16172 if test "$GCC" = yes; then
16173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16176 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16177 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16178 hardcode_action_F77=
16179 if test -n "$hardcode_libdir_flag_spec_F77" || \
16180 test -n "$runpath_var_F77" || \
16181 test "X$hardcode_automatic_F77" = "Xyes" ; then
16183 # We can hardcode non-existant directories.
16184 if test "$hardcode_direct_F77" != no &&
16185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16186 # have to relink, otherwise we might link with an installed library
16187 # when we should be linking with a yet-to-be-installed one
16188 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16189 test "$hardcode_minus_L_F77" != no; then
16190 # Linking always hardcodes the temporary library directory.
16191 hardcode_action_F77=relink
16193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16194 hardcode_action_F77=immediate
16197 # We cannot hardcode anything, or else we can only hardcode existing
16199 hardcode_action_F77=unsupported
16201 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16202 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16204 if test "$hardcode_action_F77" = relink; then
16205 # Fast installation is not supported
16206 enable_fast_install=no
16207 elif test "$shlibpath_overrides_runpath" = yes ||
16208 test "$enable_shared" = no; then
16209 # Fast installation is not necessary
16210 enable_fast_install=needless
16214 # The else clause should only fire when bootstrapping the
16215 # libtool distribution, otherwise you forgot to ship ltmain.sh
16216 # with your package, and you will get complaints that there are
16217 # no rules to generate ltmain.sh.
16218 if test -f "$ltmain"; then
16219 # See if we are running on zsh, and set the options which allow our commands through
16220 # without removal of \ escapes.
16221 if test -n "${ZSH_VERSION+set}" ; then
16222 setopt NO_GLOB_SUBST
16224 # Now quote all the things that may contain metacharacters while being
16225 # careful not to overquote the AC_SUBSTed values. We take copies of the
16226 # variables and quote the copies for generation of the libtool script.
16227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16231 deplibs_check_method reload_flag reload_cmds need_locks \
16232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16233 lt_cv_sys_global_symbol_to_c_name_address \
16234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16235 old_postinstall_cmds old_postuninstall_cmds \
16239 lt_prog_compiler_wl_F77 \
16240 lt_prog_compiler_pic_F77 \
16241 lt_prog_compiler_static_F77 \
16242 lt_prog_compiler_no_builtin_flag_F77 \
16243 export_dynamic_flag_spec_F77 \
16244 thread_safe_flag_spec_F77 \
16245 whole_archive_flag_spec_F77 \
16246 enable_shared_with_static_runtimes_F77 \
16247 old_archive_cmds_F77 \
16248 old_archive_from_new_cmds_F77 \
16249 predep_objects_F77 \
16250 postdep_objects_F77 \
16253 compiler_lib_search_path_F77 \
16254 compiler_lib_search_dirs_F77 \
16256 archive_expsym_cmds_F77 \
16257 postinstall_cmds_F77 \
16258 postuninstall_cmds_F77 \
16259 old_archive_from_expsyms_cmds_F77 \
16260 allow_undefined_flag_F77 \
16261 no_undefined_flag_F77 \
16262 export_symbols_cmds_F77 \
16263 hardcode_libdir_flag_spec_F77 \
16264 hardcode_libdir_flag_spec_ld_F77 \
16265 hardcode_libdir_separator_F77 \
16266 hardcode_automatic_F77 \
16268 module_expsym_cmds_F77 \
16269 lt_cv_prog_compiler_c_o_F77 \
16270 fix_srcfile_path_F77 \
16271 exclude_expsyms_F77 \
16272 include_expsyms_F77; do
16275 old_archive_cmds_F77 | \
16276 old_archive_from_new_cmds_F77 | \
16277 archive_cmds_F77 | \
16278 archive_expsym_cmds_F77 | \
16279 module_cmds_F77 | \
16280 module_expsym_cmds_F77 | \
16281 old_archive_from_expsyms_cmds_F77 | \
16282 export_symbols_cmds_F77 | \
16283 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16284 postinstall_cmds | postuninstall_cmds | \
16285 old_postinstall_cmds | old_postuninstall_cmds | \
16286 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16287 # Double-quote double-evaled strings.
16288 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16291 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16297 *'\$0 --fallback-echo"')
16298 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16304 cat <<__EOF__ >> "$cfgfile"
16305 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16309 # Shell to use when invoking shell scripts.
16312 # Whether or not to build shared libraries.
16313 build_libtool_libs=$enable_shared
16315 # Whether or not to build static libraries.
16316 build_old_libs=$enable_static
16318 # Whether or not to add -lc for building shared libraries.
16319 build_libtool_need_lc=$archive_cmds_need_lc_F77
16321 # Whether or not to disallow shared libs when runtime libs are static
16322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16324 # Whether or not to optimize for fast installation.
16325 fast_install=$enable_fast_install
16328 host_alias=$host_alias
16332 # The build system.
16333 build_alias=$build_alias
16337 # An echo program that does not interpret backslashes.
16342 AR_FLAGS=$lt_AR_FLAGS
16347 # LTCC compiler flags.
16348 LTCFLAGS=$lt_LTCFLAGS
16350 # A language-specific compiler.
16351 CC=$lt_compiler_F77
16353 # Is the compiler the GNU C compiler?
16359 # The linker used to build libraries.
16362 # Whether we need hard or soft links.
16365 # A BSD-compatible nm program.
16368 # A symbol stripping program
16371 # Used to examine libraries when file_magic_cmd begins "file"
16372 MAGIC_CMD=$MAGIC_CMD
16374 # Used on cygwin: DLL creation program.
16377 # Used on cygwin: object dumper.
16380 # Used on cygwin: assembler.
16383 # The name of the directory that contains temporary libtool files.
16386 # How to create reloadable object files.
16387 reload_flag=$lt_reload_flag
16388 reload_cmds=$lt_reload_cmds
16390 # How to pass a linker flag through the compiler.
16391 wl=$lt_lt_prog_compiler_wl_F77
16393 # Object file suffix (normally "o").
16394 objext="$ac_objext"
16396 # Old archive suffix (normally "a").
16399 # Shared library suffix (normally ".so").
16400 shrext_cmds='$shrext_cmds'
16402 # Executable file suffix (normally "").
16405 # Additional compiler flags for building library objects.
16406 pic_flag=$lt_lt_prog_compiler_pic_F77
16409 # What is the maximum length of a command?
16410 max_cmd_len=$lt_cv_sys_max_cmd_len
16412 # Does compiler simultaneously support -c and -o options?
16413 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16415 # Must we lock files when doing compilation?
16416 need_locks=$lt_need_locks
16418 # Do we need the lib prefix for modules?
16419 need_lib_prefix=$need_lib_prefix
16421 # Do we need a version for libraries?
16422 need_version=$need_version
16424 # Whether dlopen is supported.
16425 dlopen_support=$enable_dlopen
16427 # Whether dlopen of programs is supported.
16428 dlopen_self=$enable_dlopen_self
16430 # Whether dlopen of statically linked programs is supported.
16431 dlopen_self_static=$enable_dlopen_self_static
16433 # Compiler flag to prevent dynamic linking.
16434 link_static_flag=$lt_lt_prog_compiler_static_F77
16436 # Compiler flag to turn off builtin functions.
16437 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16439 # Compiler flag to allow reflexive dlopens.
16440 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16442 # Compiler flag to generate shared objects directly from archives.
16443 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16445 # Compiler flag to generate thread-safe objects.
16446 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16448 # Library versioning type.
16449 version_type=$version_type
16451 # Format of library name prefix.
16452 libname_spec=$lt_libname_spec
16454 # List of archive names. First name is the real one, the rest are links.
16455 # The last name is the one that the linker finds with -lNAME.
16456 library_names_spec=$lt_library_names_spec
16458 # The coded name of the library, if different from the real name.
16459 soname_spec=$lt_soname_spec
16461 # Commands used to build and install an old-style archive.
16463 old_archive_cmds=$lt_old_archive_cmds_F77
16464 old_postinstall_cmds=$lt_old_postinstall_cmds
16465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16467 # Create an old-style archive from a shared archive.
16468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16470 # Create a temporary old-style archive to link instead of a shared archive.
16471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16473 # Commands used to build and install a shared archive.
16474 archive_cmds=$lt_archive_cmds_F77
16475 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16476 postinstall_cmds=$lt_postinstall_cmds
16477 postuninstall_cmds=$lt_postuninstall_cmds
16479 # Commands used to build a loadable module (assumed same as above if empty)
16480 module_cmds=$lt_module_cmds_F77
16481 module_expsym_cmds=$lt_module_expsym_cmds_F77
16483 # Commands to strip libraries.
16484 old_striplib=$lt_old_striplib
16485 striplib=$lt_striplib
16487 # Dependencies to place before the objects being linked to create a
16489 predep_objects=$lt_predep_objects_F77
16491 # Dependencies to place after the objects being linked to create a
16493 postdep_objects=$lt_postdep_objects_F77
16495 # Dependencies to place before the objects being linked to create a
16497 predeps=$lt_predeps_F77
16499 # Dependencies to place after the objects being linked to create a
16501 postdeps=$lt_postdeps_F77
16503 # The directories searched by this compiler when creating a shared
16505 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16507 # The library search path used internally by the compiler when linking
16508 # a shared library.
16509 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16511 # Method to check whether dependent libraries are shared objects.
16512 deplibs_check_method=$lt_deplibs_check_method
16514 # Command to use when deplibs_check_method == file_magic.
16515 file_magic_cmd=$lt_file_magic_cmd
16517 # Flag that allows shared libraries with undefined symbols to be built.
16518 allow_undefined_flag=$lt_allow_undefined_flag_F77
16520 # Flag that forces no undefined symbols.
16521 no_undefined_flag=$lt_no_undefined_flag_F77
16523 # Commands used to finish a libtool library installation in a directory.
16524 finish_cmds=$lt_finish_cmds
16526 # Same as above, but a single script fragment to be evaled but not shown.
16527 finish_eval=$lt_finish_eval
16529 # Take the output of nm and produce a listing of raw symbols and C names.
16530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16532 # Transform the output of nm in a proper C declaration
16533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16535 # Transform the output of nm in a C name address pair
16536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16538 # This is the shared library runtime path variable.
16539 runpath_var=$runpath_var
16541 # This is the shared library path variable.
16542 shlibpath_var=$shlibpath_var
16544 # Is shlibpath searched before the hard-coded library search path?
16545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16547 # How to hardcode a shared library path into an executable.
16548 hardcode_action=$hardcode_action_F77
16550 # Whether we should hardcode library paths into libraries.
16551 hardcode_into_libs=$hardcode_into_libs
16553 # Flag to hardcode \$libdir into a binary during linking.
16554 # This must work even if \$libdir does not exist.
16555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16557 # If ld is used when linking, flag to hardcode \$libdir into
16558 # a binary during linking. This must work even if \$libdir does
16560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16562 # Whether we need a single -rpath flag with a separated argument.
16563 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16565 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16566 # resulting binary.
16567 hardcode_direct=$hardcode_direct_F77
16569 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16570 # resulting binary.
16571 hardcode_minus_L=$hardcode_minus_L_F77
16573 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16574 # the resulting binary.
16575 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16577 # Set to yes if building a shared library automatically hardcodes DIR into the library
16578 # and all subsequent libraries and executables linked against it.
16579 hardcode_automatic=$hardcode_automatic_F77
16581 # Variables whose values should be saved in libtool wrapper scripts and
16582 # restored at relink time.
16583 variables_saved_for_relink="$variables_saved_for_relink"
16585 # Whether libtool must link a program against all its dependency libraries.
16586 link_all_deplibs=$link_all_deplibs_F77
16588 # Compile-time system search path for libraries
16589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16591 # Run-time system search path for libraries
16592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16594 # Fix the shell variable \$srcfile for the compiler.
16595 fix_srcfile_path=$lt_fix_srcfile_path
16597 # Set to yes if exported symbols are required.
16598 always_export_symbols=$always_export_symbols_F77
16600 # The commands to list exported symbols.
16601 export_symbols_cmds=$lt_export_symbols_cmds_F77
16603 # The commands to extract the exported symbol list from a shared archive.
16604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16606 # Symbols that should not be listed in the preloaded symbols.
16607 exclude_expsyms=$lt_exclude_expsyms_F77
16609 # Symbols that must always be exported.
16610 include_expsyms=$lt_include_expsyms_F77
16612 # ### END LIBTOOL TAG CONFIG: $tagname
16618 # If there is no Makefile yet, we rely on a make rule to execute
16619 # `config.status --recheck' to rerun these tests and create the
16620 # libtool script then.
16621 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16622 if test -f "$ltmain_in"; then
16623 test -f Makefile && make "$ltmain"
16629 ac_cpp='$CPP $CPPFLAGS'
16630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16642 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16645 # Source file extension for Java test sources.
16648 # Object file extension for compiled Java test sources.
16652 # Code to be used in simple compile tests
16653 lt_simple_compile_test_code="class foo {}"
16655 # Code to be used in simple link tests
16656 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16660 # If no C compiler was specified, use CC.
16663 # If no C compiler flags were specified, use CFLAGS.
16664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16666 # Allow CC to be a program name with arguments.
16670 # save warnings/boilerplate of simple test code
16671 ac_outfile=conftest.$ac_objext
16672 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16674 _lt_compiler_boilerplate=`cat conftest.err`
16677 ac_outfile=conftest.$ac_objext
16678 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16680 _lt_linker_boilerplate=`cat conftest.err`
16684 # Allow CC to be a program name with arguments.
16689 for cc_temp in $compiler""; do
16691 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16692 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16700 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16701 archive_cmds_need_lc_GCJ=no
16703 old_archive_cmds_GCJ=$old_archive_cmds
16706 lt_prog_compiler_no_builtin_flag_GCJ=
16708 if test "$GCC" = yes; then
16709 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16712 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16713 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16714 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 lt_cv_prog_compiler_rtti_exceptions=no
16718 ac_outfile=conftest.$ac_objext
16719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16720 lt_compiler_flag="-fno-rtti -fno-exceptions"
16721 # Insert the option either (1) after the last *FLAGS variable, or
16722 # (2) before a word containing "conftest.", or (3) at the end.
16723 # Note that $ac_compile itself does not contain backslashes and begins
16724 # with a dollar sign (not a hyphen), so the echo should work correctly.
16725 # The option is referenced via a variable to avoid confusing sed.
16726 lt_compile=`echo "$ac_compile" | $SED \
16727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16729 -e 's:$: $lt_compiler_flag:'`
16730 (eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
16731 (eval "$lt_compile" 2>conftest.err)
16733 cat conftest.err >&5
16734 echo "$as_me:16734: \$? = $ac_status" >&5
16735 if (exit $ac_status) && test -s "$ac_outfile"; then
16736 # The compiler can only warn and ignore the option if not recognized
16737 # So say no if there are warnings other than the usual output.
16738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16741 lt_cv_prog_compiler_rtti_exceptions=yes
16747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16748 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16751 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16758 lt_prog_compiler_wl_GCJ=
16759 lt_prog_compiler_pic_GCJ=
16760 lt_prog_compiler_static_GCJ=
16762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16765 if test "$GCC" = yes; then
16766 lt_prog_compiler_wl_GCJ='-Wl,'
16767 lt_prog_compiler_static_GCJ='-static'
16771 # All AIX code is PIC.
16772 if test "$host_cpu" = ia64; then
16773 # AIX 5 now supports IA64 processor
16774 lt_prog_compiler_static_GCJ='-Bstatic'
16779 # FIXME: we need at least 68020 code to build shared libraries, but
16780 # adding the `-m68020' flag to GCC prevents building anything better,
16782 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16785 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16786 # PIC is the default for these OSes.
16789 mingw* | cygwin* | pw32* | os2*)
16790 # This hack is so that the source file can tell whether it is being
16791 # built for inclusion in a dll (and should export symbols for example).
16792 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16793 # (--disable-auto-import) libraries
16797 darwin* | rhapsody*)
16798 # PIC is the default on this platform
16799 # Common symbols not allowed in MH_DYLIB files
16800 lt_prog_compiler_pic_GCJ='-fno-common'
16804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16805 # Instead, we relocate shared libraries at runtime.
16809 # Just because we use GCC doesn't mean we suddenly get shared libraries
16810 # on systems that don't support them.
16811 lt_prog_compiler_can_build_shared_GCJ=no
16816 if test -d /usr/nec; then
16817 lt_prog_compiler_pic_GCJ=-Kconform_pic
16822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16823 # not for PA HP-UX.
16829 lt_prog_compiler_pic_GCJ='-fPIC'
16835 lt_prog_compiler_pic_GCJ='-fPIC'
16839 # PORTME Check for flag to pass linker flags through the system compiler.
16842 lt_prog_compiler_wl_GCJ='-Wl,'
16843 if test "$host_cpu" = ia64; then
16844 # AIX 5 now supports IA64 processor
16845 lt_prog_compiler_static_GCJ='-Bstatic'
16847 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16851 # PIC is the default on this platform
16852 # Common symbols not allowed in MH_DYLIB files
16853 case $cc_basename in
16855 lt_prog_compiler_pic_GCJ='-qnocommon'
16856 lt_prog_compiler_wl_GCJ='-Wl,'
16861 mingw* | cygwin* | pw32* | os2*)
16862 # This hack is so that the source file can tell whether it is being
16863 # built for inclusion in a dll (and should export symbols for example).
16867 hpux9* | hpux10* | hpux11*)
16868 lt_prog_compiler_wl_GCJ='-Wl,'
16869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16870 # not for PA HP-UX.
16876 lt_prog_compiler_pic_GCJ='+Z'
16879 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16880 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16883 irix5* | irix6* | nonstopux*)
16884 lt_prog_compiler_wl_GCJ='-Wl,'
16885 # PIC (with -KPIC) is the default.
16886 lt_prog_compiler_static_GCJ='-non_shared'
16890 lt_prog_compiler_pic_GCJ='-KPIC'
16891 lt_prog_compiler_static_GCJ='-Bstatic'
16894 linux* | k*bsd*-gnu)
16895 case $cc_basename in
16897 lt_prog_compiler_wl_GCJ='-Wl,'
16898 lt_prog_compiler_pic_GCJ='-KPIC'
16899 lt_prog_compiler_static_GCJ='-static'
16901 pgcc* | pgf77* | pgf90* | pgf95*)
16902 # Portland Group compilers (*not* the Pentium gcc compiler,
16903 # which looks to be a dead project)
16904 lt_prog_compiler_wl_GCJ='-Wl,'
16905 lt_prog_compiler_pic_GCJ='-fpic'
16906 lt_prog_compiler_static_GCJ='-Bstatic'
16909 lt_prog_compiler_wl_GCJ='-Wl,'
16910 # All Alpha code is PIC.
16911 lt_prog_compiler_static_GCJ='-non_shared'
16914 case `$CC -V 2>&1 | sed 5q` in
16917 lt_prog_compiler_pic_GCJ='-KPIC'
16918 lt_prog_compiler_static_GCJ='-Bstatic'
16919 lt_prog_compiler_wl_GCJ='-Wl,'
16922 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16923 lt_prog_compiler_pic_GCJ='-KPIC'
16924 lt_prog_compiler_static_GCJ='-Bstatic'
16925 lt_prog_compiler_wl_GCJ=''
16932 osf3* | osf4* | osf5*)
16933 lt_prog_compiler_wl_GCJ='-Wl,'
16934 # All OSF/1 code is PIC.
16935 lt_prog_compiler_static_GCJ='-non_shared'
16939 lt_prog_compiler_static_GCJ='-non_shared'
16943 lt_prog_compiler_pic_GCJ='-KPIC'
16944 lt_prog_compiler_static_GCJ='-Bstatic'
16945 case $cc_basename in
16946 f77* | f90* | f95*)
16947 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16949 lt_prog_compiler_wl_GCJ='-Wl,';;
16954 lt_prog_compiler_wl_GCJ='-Qoption ld '
16955 lt_prog_compiler_pic_GCJ='-PIC'
16956 lt_prog_compiler_static_GCJ='-Bstatic'
16959 sysv4 | sysv4.2uw2* | sysv4.3*)
16960 lt_prog_compiler_wl_GCJ='-Wl,'
16961 lt_prog_compiler_pic_GCJ='-KPIC'
16962 lt_prog_compiler_static_GCJ='-Bstatic'
16966 if test -d /usr/nec ;then
16967 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16968 lt_prog_compiler_static_GCJ='-Bstatic'
16972 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16973 lt_prog_compiler_wl_GCJ='-Wl,'
16974 lt_prog_compiler_pic_GCJ='-KPIC'
16975 lt_prog_compiler_static_GCJ='-Bstatic'
16979 lt_prog_compiler_wl_GCJ='-Wl,'
16980 lt_prog_compiler_can_build_shared_GCJ=no
16984 lt_prog_compiler_pic_GCJ='-pic'
16985 lt_prog_compiler_static_GCJ='-Bstatic'
16989 lt_prog_compiler_can_build_shared_GCJ=no
16994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16995 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16998 # Check to make sure the PIC flag actually works.
17000 if test -n "$lt_prog_compiler_pic_GCJ"; then
17002 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17003 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17004 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 lt_cv_prog_compiler_pic_works_GCJ=no
17008 ac_outfile=conftest.$ac_objext
17009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17010 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17011 # Insert the option either (1) after the last *FLAGS variable, or
17012 # (2) before a word containing "conftest.", or (3) at the end.
17013 # Note that $ac_compile itself does not contain backslashes and begins
17014 # with a dollar sign (not a hyphen), so the echo should work correctly.
17015 # The option is referenced via a variable to avoid confusing sed.
17016 lt_compile=`echo "$ac_compile" | $SED \
17017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17019 -e 's:$: $lt_compiler_flag:'`
17020 (eval echo "\"\$as_me:17020: $lt_compile\"" >&5)
17021 (eval "$lt_compile" 2>conftest.err)
17023 cat conftest.err >&5
17024 echo "$as_me:17024: \$? = $ac_status" >&5
17025 if (exit $ac_status) && test -s "$ac_outfile"; then
17026 # The compiler can only warn and ignore the option if not recognized
17027 # So say no if there are warnings other than the usual output.
17028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17031 lt_cv_prog_compiler_pic_works_GCJ=yes
17037 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17038 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17040 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17041 case $lt_prog_compiler_pic_GCJ in
17043 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17046 lt_prog_compiler_pic_GCJ=
17047 lt_prog_compiler_can_build_shared_GCJ=no
17052 # For platforms which do not support PIC, -DPIC is meaningless:
17054 lt_prog_compiler_pic_GCJ=
17057 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17062 # Check to make sure the static flag actually works.
17064 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17065 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17066 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17067 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 lt_cv_prog_compiler_static_works_GCJ=no
17071 save_LDFLAGS="$LDFLAGS"
17072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17075 # The linker can only warn and ignore the option if not recognized
17076 # So say no if there are warnings
17077 if test -s conftest.err; then
17078 # Append any errors to the config.log.
17079 cat conftest.err 1>&5
17080 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17082 if diff conftest.exp conftest.er2 >/dev/null; then
17083 lt_cv_prog_compiler_static_works_GCJ=yes
17086 lt_cv_prog_compiler_static_works_GCJ=yes
17090 LDFLAGS="$save_LDFLAGS"
17093 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17094 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17096 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17099 lt_prog_compiler_static_GCJ=
17103 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17105 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 lt_cv_prog_compiler_c_o_GCJ=no
17109 $rm -r conftest 2>/dev/null
17113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17115 lt_compiler_flag="-o out/conftest2.$ac_objext"
17116 # Insert the option either (1) after the last *FLAGS variable, or
17117 # (2) before a word containing "conftest.", or (3) at the end.
17118 # Note that $ac_compile itself does not contain backslashes and begins
17119 # with a dollar sign (not a hyphen), so the echo should work correctly.
17120 lt_compile=`echo "$ac_compile" | $SED \
17121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17123 -e 's:$: $lt_compiler_flag:'`
17124 (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17125 (eval "$lt_compile" 2>out/conftest.err)
17127 cat out/conftest.err >&5
17128 echo "$as_me:17128: \$? = $ac_status" >&5
17129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17131 # The compiler can only warn and ignore the option if not recognized
17132 # So say no if there are warnings
17133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17136 lt_cv_prog_compiler_c_o_GCJ=yes
17141 # SGI C++ compiler will create directory out/ii_files/ for
17142 # template instantiation
17143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17144 $rm out/* && rmdir out
17150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17154 hard_links="nottested"
17155 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17156 # do not overwrite the value of need_locks provided by the user
17157 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17163 ln conftest.a conftest.b 2>&5 || hard_links=no
17164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165 { echo "$as_me:$LINENO: result: $hard_links" >&5
17166 echo "${ECHO_T}$hard_links" >&6; }
17167 if test "$hard_links" = no; then
17168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17176 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17180 allow_undefined_flag_GCJ=
17181 enable_shared_with_static_runtimes_GCJ=no
17183 archive_expsym_cmds_GCJ=
17184 old_archive_From_new_cmds_GCJ=
17185 old_archive_from_expsyms_cmds_GCJ=
17186 export_dynamic_flag_spec_GCJ=
17187 whole_archive_flag_spec_GCJ=
17188 thread_safe_flag_spec_GCJ=
17189 hardcode_libdir_flag_spec_GCJ=
17190 hardcode_libdir_flag_spec_ld_GCJ=
17191 hardcode_libdir_separator_GCJ=
17192 hardcode_direct_GCJ=no
17193 hardcode_minus_L_GCJ=no
17194 hardcode_shlibpath_var_GCJ=unsupported
17195 link_all_deplibs_GCJ=unknown
17196 hardcode_automatic_GCJ=no
17198 module_expsym_cmds_GCJ=
17199 always_export_symbols_GCJ=no
17200 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17201 # include_expsyms should be a list of space-separated symbols to be *always*
17202 # included in the symbol list
17203 include_expsyms_GCJ=
17204 # exclude_expsyms can be an extended regexp of symbols to exclude
17205 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17206 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17207 # as well as any symbol that contains `d'.
17208 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17209 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17210 # platforms (ab)use it in PIC code, but their linkers get confused if
17211 # the symbol is explicitly referenced. Since portable code cannot
17212 # rely on this symbol name, it's probably fine to never include it in
17213 # preloaded symbol tables.
17214 # Exclude shared library initialization/finalization symbols.
17215 extract_expsyms_cmds=
17216 # Just being paranoid about ensuring that cc_basename is set.
17217 for cc_temp in $compiler""; do
17219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17225 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17228 cygwin* | mingw* | pw32*)
17229 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17230 # When not using gcc, we currently assume that we are using
17231 # Microsoft Visual C++.
17232 if test "$GCC" != yes; then
17237 # we just hope/assume this is gcc and not c89 (= MSVC++)
17246 if test "$with_gnu_ld" = yes; then
17247 # If archive_cmds runs LD, not CC, wlarc should be empty
17250 # Set some defaults for GNU ld with shared library support. These
17251 # are reset later if shared libraries are not supported. Putting them
17252 # here allows them to be overridden if necessary.
17253 runpath_var=LD_RUN_PATH
17254 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17255 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17256 # ancient GNU ld didn't support --whole-archive et. al.
17257 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17258 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17260 whole_archive_flag_spec_GCJ=
17262 supports_anon_versioning=no
17263 case `$LD -v 2>/dev/null` in
17264 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17265 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17266 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17267 *\ 2.11.*) ;; # other 2.11 versions
17268 *) supports_anon_versioning=yes ;;
17271 # See if GNU ld supports shared libraries.
17274 # On AIX/PPC, the GNU linker is very broken
17275 if test "$host_cpu" != ia64; then
17279 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17280 *** to be unable to reliably create shared libraries on AIX.
17281 *** Therefore, libtool is disabling shared libraries support. If you
17282 *** really care for shared libraries, you may want to modify your PATH
17283 *** so that a non-GNU linker is found, and then restart.
17290 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)'
17291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292 hardcode_minus_L_GCJ=yes
17294 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17295 # that the semantics of dynamic libraries on AmigaOS, at least up
17296 # to version 4, is to share data among multiple programs linked
17297 # with the same dynamic library. Since this doesn't match the
17298 # behavior of shared libraries on other platforms, we can't use
17304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17305 allow_undefined_flag_GCJ=unsupported
17306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17307 # support --undefined. This deserves some investigation. FIXME
17308 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314 cygwin* | mingw* | pw32*)
17315 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17316 # as there is no search path for DLLs.
17317 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17318 allow_undefined_flag_GCJ=unsupported
17319 always_export_symbols_GCJ=no
17320 enable_shared_with_static_runtimes_GCJ=yes
17321 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17323 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17324 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17325 # If the export-symbols file already is a .def file (1st line
17326 # is EXPORTS), use it as is; otherwise, prepend...
17327 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17328 cp $export_symbols $output_objdir/$soname.def;
17330 echo EXPORTS > $output_objdir/$soname.def;
17331 cat $export_symbols >> $output_objdir/$soname.def;
17333 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17340 hardcode_direct_GCJ=no
17341 hardcode_shlibpath_var_GCJ=no
17342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17343 export_dynamic_flag_spec_GCJ='${wl}-E'
17344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17345 # Instead, shared libraries are loaded at an image base (0x10000000 by
17346 # default) and relocated if they conflict, which is a slow very memory
17347 # consuming and fragmenting process. To avoid this, we pick a random,
17348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17349 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17350 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'
17351 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'
17354 gnu* | linux* | k*bsd*-gnu)
17355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17357 case $cc_basename,$host_cpu in
17358 pgcc*) # Portland Group C compiler
17359 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'
17360 tmp_addflag=' $pic_flag'
17362 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17363 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'
17364 tmp_addflag=' $pic_flag -Mnomain' ;;
17365 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17366 tmp_addflag=' -i_dynamic' ;;
17367 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17368 tmp_addflag=' -i_dynamic -nofor_main' ;;
17369 ifc* | ifort*) # Intel Fortran compiler
17370 tmp_addflag=' -nofor_main' ;;
17372 case `$CC -V 2>&1 | sed 5q` in
17373 *Sun\ C*) # Sun C 5.9
17374 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'
17375 tmp_sharedflag='-G' ;;
17376 *Sun\ F*) # Sun Fortran 8.3
17377 tmp_sharedflag='-G' ;;
17379 tmp_sharedflag='-shared' ;;
17381 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17383 if test $supports_anon_versioning = yes; then
17384 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17386 $echo "local: *; };" >> $output_objdir/$libname.ver~
17387 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17389 link_all_deplibs_GCJ=no
17395 netbsd* | netbsdelf*-gnu)
17396 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17397 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17406 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17411 *** create shared libraries on Solaris systems. Therefore, libtool
17412 *** is disabling shared libraries support. We urge you to upgrade GNU
17413 *** binutils to release 2.9.1 or newer. Another option is to modify
17414 *** your PATH or compiler configuration so that the native linker is
17415 *** used, and then restart.
17418 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17419 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17427 case `$LD -v 2>&1` in
17428 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17432 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17433 *** reliably create shared libraries on SCO systems. Therefore, libtool
17434 *** is disabling shared libraries support. We urge you to upgrade GNU
17435 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17436 *** your PATH or compiler configuration so that the native linker is
17437 *** used, and then restart.
17442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17443 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17444 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17445 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17454 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17456 hardcode_direct_GCJ=yes
17457 hardcode_shlibpath_var_GCJ=no
17461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17462 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17470 if test "$ld_shlibs_GCJ" = no; then
17472 hardcode_libdir_flag_spec_GCJ=
17473 export_dynamic_flag_spec_GCJ=
17474 whole_archive_flag_spec_GCJ=
17477 # PORTME fill in a description of your system's linker (not GNU ld)
17480 allow_undefined_flag_GCJ=unsupported
17481 always_export_symbols_GCJ=yes
17482 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'
17483 # Note: this linker hardcodes the directories in LIBPATH if there
17484 # are no directories specified by -L.
17485 hardcode_minus_L_GCJ=yes
17486 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17487 # Neither direct hardcoding nor static linking is supported with a
17489 hardcode_direct_GCJ=unsupported
17494 if test "$host_cpu" = ia64; then
17495 # On IA64, the linker does run time linking by default, so we don't
17496 # have to do anything special.
17497 aix_use_runtimelinking=no
17498 exp_sym_flag='-Bexport'
17501 # If we're using GNU nm, then we don't want the "-C" option.
17502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17503 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17504 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'
17506 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'
17508 aix_use_runtimelinking=no
17510 # Test if we are trying to use run time linking or normal
17511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17512 # need to do runtime linking.
17513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17514 for ld_flag in $LDFLAGS; do
17515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17516 aix_use_runtimelinking=yes
17523 exp_sym_flag='-bexport'
17524 no_entry_flag='-bnoentry'
17527 # When large executables or shared objects are built, AIX ld can
17528 # have problems creating the table of contents. If linking a library
17529 # or program results in "error TOC overflow" add -mminimal-toc to
17530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17533 archive_cmds_GCJ=''
17534 hardcode_direct_GCJ=yes
17535 hardcode_libdir_separator_GCJ=':'
17536 link_all_deplibs_GCJ=yes
17538 if test "$GCC" = yes; then
17539 case $host_os in aix4.[012]|aix4.[012].*)
17540 # We only want to do this on AIX 4.2 and lower, the check
17541 # below for broken collect2 doesn't work under 4.3+
17542 collect2name=`${CC} -print-prog-name=collect2`
17543 if test -f "$collect2name" && \
17544 strings "$collect2name" | grep resolve_lib_name >/dev/null
17546 # We have reworked collect2
17549 # We have old collect2
17550 hardcode_direct_GCJ=unsupported
17551 # It fails to find uninstalled libraries when the uninstalled
17552 # path is not listed in the libpath. Setting hardcode_minus_L
17553 # to unsupported forces relinking
17554 hardcode_minus_L_GCJ=yes
17555 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17556 hardcode_libdir_separator_GCJ=
17560 shared_flag='-shared'
17561 if test "$aix_use_runtimelinking" = yes; then
17562 shared_flag="$shared_flag "'${wl}-G'
17566 if test "$host_cpu" = ia64; then
17567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17568 # chokes on -Wl,-G. The following line is correct:
17571 if test "$aix_use_runtimelinking" = yes; then
17572 shared_flag='${wl}-G'
17574 shared_flag='${wl}-bM:SRE'
17579 # It seems that -bexpall does not export symbols beginning with
17580 # underscore (_), so it is better to generate a list of symbols to export.
17581 always_export_symbols_GCJ=yes
17582 if test "$aix_use_runtimelinking" = yes; then
17583 # Warning - without using the other runtime loading flags (-brtl),
17584 # -berok will link without error, but may produce a broken library.
17585 allow_undefined_flag_GCJ='-berok'
17586 # Determine the default libpath from the value encoded in an empty executable.
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (ac_try="$ac_link"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_link") 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest$ac_exeext &&
17619 $as_test_x conftest$ac_exeext; then
17621 lt_aix_libpath_sed='
17622 /Import File Strings/,/^$/ {
17628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17629 # Check for a 64-bit object if we didn't find anything.
17630 if test -z "$aix_libpath"; then
17631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17641 conftest$ac_exeext conftest.$ac_ext
17642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17644 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17645 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"
17647 if test "$host_cpu" = ia64; then
17648 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17649 allow_undefined_flag_GCJ="-z nodefs"
17650 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"
17652 # Determine the default libpath from the value encoded in an empty executable.
17653 cat >conftest.$ac_ext <<_ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (ac_try="$ac_link"
17670 case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_link") 2>conftest.er1
17677 grep -v '^ *+' conftest.er1 >conftest.err
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest$ac_exeext &&
17685 $as_test_x conftest$ac_exeext; then
17687 lt_aix_libpath_sed='
17688 /Import File Strings/,/^$/ {
17694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17695 # Check for a 64-bit object if we didn't find anything.
17696 if test -z "$aix_libpath"; then
17697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707 conftest$ac_exeext conftest.$ac_ext
17708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17710 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17711 # Warning - without using the other run time loading flags,
17712 # -berok will link without error, but may produce a broken library.
17713 no_undefined_flag_GCJ=' ${wl}-bernotok'
17714 allow_undefined_flag_GCJ=' ${wl}-berok'
17715 # Exported symbols can be pulled into shared objects from archives
17716 whole_archive_flag_spec_GCJ='$convenience'
17717 archive_cmds_need_lc_GCJ=yes
17718 # This is similar to how AIX traditionally builds its shared libraries.
17719 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'
17725 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)'
17726 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17727 hardcode_minus_L_GCJ=yes
17728 # see comment about different semantics on the GNU ld section
17733 export_dynamic_flag_spec_GCJ=-rdynamic
17736 cygwin* | mingw* | pw32*)
17737 # When not using gcc, we currently assume that we are using
17738 # Microsoft Visual C++.
17739 # hardcode_libdir_flag_spec is actually meaningless, as there is
17740 # no search path for DLLs.
17741 hardcode_libdir_flag_spec_GCJ=' '
17742 allow_undefined_flag_GCJ=unsupported
17743 # Tell ltmain to make .lib files, not .a files.
17745 # Tell ltmain to make .dll files, not .so files.
17747 # FIXME: Setting linknames here is a bad hack.
17748 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17749 # The linker will automatically build a .lib file if we build a DLL.
17750 old_archive_From_new_cmds_GCJ='true'
17751 # FIXME: Should let the user specify the lib program.
17752 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17753 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17754 enable_shared_with_static_runtimes_GCJ=yes
17757 darwin* | rhapsody*)
17759 rhapsody* | darwin1.[012])
17760 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17763 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17764 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17766 case ${MACOSX_DEPLOYMENT_TARGET} in
17768 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17771 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17777 archive_cmds_need_lc_GCJ=no
17778 hardcode_direct_GCJ=no
17779 hardcode_automatic_GCJ=yes
17780 hardcode_shlibpath_var_GCJ=unsupported
17781 whole_archive_flag_spec_GCJ=''
17782 link_all_deplibs_GCJ=yes
17783 if test "$GCC" = yes ; then
17784 output_verbose_link_cmd='echo'
17785 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}"
17786 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17787 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}"
17788 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}"
17790 case $cc_basename in
17792 output_verbose_link_cmd='echo'
17793 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17794 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17795 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17796 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}'
17797 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}'
17807 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17808 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17809 hardcode_shlibpath_var_GCJ=no
17816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17817 # support. Future versions do this automatically, but an explicit c++rt0.o
17818 # does not break anything, and helps significantly (at the cost of a little
17821 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17822 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17823 hardcode_direct_GCJ=yes
17824 hardcode_shlibpath_var_GCJ=no
17827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17829 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17830 hardcode_direct_GCJ=yes
17831 hardcode_minus_L_GCJ=yes
17832 hardcode_shlibpath_var_GCJ=no
17835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17836 freebsd* | dragonfly*)
17837 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17838 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17839 hardcode_direct_GCJ=yes
17840 hardcode_shlibpath_var_GCJ=no
17844 if test "$GCC" = yes; then
17845 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'
17847 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'
17849 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17850 hardcode_libdir_separator_GCJ=:
17851 hardcode_direct_GCJ=yes
17853 # hardcode_minus_L: Not really in the search PATH,
17854 # but as the default location of the library.
17855 hardcode_minus_L_GCJ=yes
17856 export_dynamic_flag_spec_GCJ='${wl}-E'
17860 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17861 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17863 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17865 if test "$with_gnu_ld" = no; then
17866 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17867 hardcode_libdir_separator_GCJ=:
17869 hardcode_direct_GCJ=yes
17870 export_dynamic_flag_spec_GCJ='${wl}-E'
17872 # hardcode_minus_L: Not really in the search PATH,
17873 # but as the default location of the library.
17874 hardcode_minus_L_GCJ=yes
17879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17882 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17885 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17888 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17894 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17897 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17900 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17904 if test "$with_gnu_ld" = no; then
17905 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17906 hardcode_libdir_separator_GCJ=:
17910 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17911 hardcode_direct_GCJ=no
17912 hardcode_shlibpath_var_GCJ=no
17915 hardcode_direct_GCJ=yes
17916 export_dynamic_flag_spec_GCJ='${wl}-E'
17918 # hardcode_minus_L: Not really in the search PATH,
17919 # but as the default location of the library.
17920 hardcode_minus_L_GCJ=yes
17926 irix5* | irix6* | nonstopux*)
17927 if test "$GCC" = yes; then
17928 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'
17930 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'
17931 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17934 hardcode_libdir_separator_GCJ=:
17935 link_all_deplibs_GCJ=yes
17938 netbsd* | netbsdelf*-gnu)
17939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17940 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17942 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945 hardcode_direct_GCJ=yes
17946 hardcode_shlibpath_var_GCJ=no
17950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17951 hardcode_direct_GCJ=yes
17952 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17953 hardcode_libdir_separator_GCJ=:
17954 hardcode_shlibpath_var_GCJ=no
17958 if test -f /usr/libexec/ld.so; then
17959 hardcode_direct_GCJ=yes
17960 hardcode_shlibpath_var_GCJ=no
17961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17962 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17963 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17965 export_dynamic_flag_spec_GCJ='${wl}-E'
17968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17973 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17985 hardcode_minus_L_GCJ=yes
17986 allow_undefined_flag_GCJ=unsupported
17987 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'
17988 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17992 if test "$GCC" = yes; then
17993 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17994 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'
17996 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17997 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'
17999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18000 hardcode_libdir_separator_GCJ=:
18003 osf4* | osf5*) # as osf3* with the addition of -msym flag
18004 if test "$GCC" = yes; then
18005 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18006 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'
18007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18009 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18010 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'
18011 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~
18012 $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'
18014 # Both c and cxx compiler support -rpath directly
18015 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18017 hardcode_libdir_separator_GCJ=:
18021 no_undefined_flag_GCJ=' -z text'
18022 if test "$GCC" = yes; then
18024 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18025 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18026 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18029 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18033 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18034 hardcode_shlibpath_var_GCJ=no
18036 solaris2.[0-5] | solaris2.[0-5].*) ;;
18038 # The compiler driver will combine and reorder linker options,
18039 # but understands `-z linker_flag'. GCC discards it without `$wl',
18040 # but is careful enough not to reorder.
18041 # Supported since Solaris 2.6 (maybe 2.5.1?)
18042 if test "$GCC" = yes; then
18043 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18045 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18049 link_all_deplibs_GCJ=yes
18053 if test "x$host_vendor" = xsequent; then
18054 # Use $CC to link under sequent, because it throws in some extra .o
18055 # files that make .init and .fini sections work.
18056 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18060 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18061 hardcode_direct_GCJ=yes
18062 hardcode_minus_L_GCJ=yes
18063 hardcode_shlibpath_var_GCJ=no
18067 case $host_vendor in
18069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070 hardcode_direct_GCJ=yes # is this really true???
18073 ## LD is ld it makes a PLAMLIB
18074 ## CC just makes a GrossModule.
18075 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18076 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18077 hardcode_direct_GCJ=no
18080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18081 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18084 runpath_var='LD_RUN_PATH'
18085 hardcode_shlibpath_var_GCJ=no
18089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18090 hardcode_shlibpath_var_GCJ=no
18091 export_dynamic_flag_spec_GCJ='-Bexport'
18095 if test -d /usr/nec; then
18096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097 hardcode_shlibpath_var_GCJ=no
18098 runpath_var=LD_RUN_PATH
18099 hardcode_runpath_var=yes
18104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18105 no_undefined_flag_GCJ='${wl}-z,text'
18106 archive_cmds_need_lc_GCJ=no
18107 hardcode_shlibpath_var_GCJ=no
18108 runpath_var='LD_RUN_PATH'
18110 if test "$GCC" = yes; then
18111 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18114 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119 sysv5* | sco3.2v5* | sco5v6*)
18120 # Note: We can NOT use -z defs as we might desire, because we do not
18121 # link with -lc, and that would cause any symbols used from libc to
18122 # always be unresolved, which means just about no library would
18123 # ever link correctly. If we're not using GNU ld we use -z text
18124 # though, which does catch some bad symbols but isn't as heavy-handed
18126 no_undefined_flag_GCJ='${wl}-z,text'
18127 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18128 archive_cmds_need_lc_GCJ=no
18129 hardcode_shlibpath_var_GCJ=no
18130 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18131 hardcode_libdir_separator_GCJ=':'
18132 link_all_deplibs_GCJ=yes
18133 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18134 runpath_var='LD_RUN_PATH'
18136 if test "$GCC" = yes; then
18137 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18140 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18148 hardcode_shlibpath_var_GCJ=no
18157 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18158 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18159 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18162 # Do we need to explicitly link libc?
18164 case "x$archive_cmds_need_lc_GCJ" in
18166 # Assume -lc should be added
18167 archive_cmds_need_lc_GCJ=yes
18169 if test "$enable_shared" = yes && test "$GCC" = yes; then
18170 case $archive_cmds_GCJ in
18172 # FIXME: we may have to deal with multi-command sequences.
18175 # Test whether the compiler implicitly links with -lc since on some
18176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18177 # to ld, don't add -lc before -lgcc.
18178 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18184 (eval $ac_compile) 2>&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } 2>conftest.err; then
18190 libobjs=conftest.$ac_objext
18192 wl=$lt_prog_compiler_wl_GCJ
18193 pic_flag=$lt_prog_compiler_pic_GCJ
18199 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18200 allow_undefined_flag_GCJ=
18201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18202 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }
18207 archive_cmds_need_lc_GCJ=no
18209 archive_cmds_need_lc_GCJ=yes
18211 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18213 cat conftest.err 1>&5
18216 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18217 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18226 library_names_spec=
18227 libname_spec='lib$name'
18231 postuninstall_cmds=
18235 shlibpath_overrides_runpath=unknown
18237 dynamic_linker="$host_os ld.so"
18238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18240 need_lib_prefix=unknown
18241 hardcode_into_libs=no
18243 # when you set need_version to no, make sure it does not cause -set_version
18244 # flags to be left without arguments
18245 need_version=unknown
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18251 shlibpath_var=LIBPATH
18253 # AIX 3 has no versioning support, so we append a major version to the name.
18254 soname_spec='${libname}${release}${shared_ext}$major'
18261 hardcode_into_libs=yes
18262 if test "$host_cpu" = ia64; then
18263 # AIX 5 supports IA64
18264 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18265 shlibpath_var=LD_LIBRARY_PATH
18267 # With GCC up to 2.95.x, collect2 would create an import file
18268 # for dependence libraries. The import file would start with
18269 # the line `#! .'. This would cause the generated library to
18270 # depend on `.', always an invalid library. This was fixed in
18271 # development snapshots of GCC prior to 3.0.
18273 aix4 | aix4.[01] | aix4.[01].*)
18274 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18276 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18279 can_build_shared=no
18283 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18284 # soname into executable. Probably we can add versioning support to
18285 # collect2, so additional links can be useful in future.
18286 if test "$aix_use_runtimelinking" = yes; then
18287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18288 # instead of lib<name>.a to let people know that these are not
18289 # typical AIX shared libraries.
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 # We preserve .a as extension for shared libraries through AIX4.2
18293 # and later when we are not doing run time linking.
18294 library_names_spec='${libname}${release}.a $libname.a'
18295 soname_spec='${libname}${release}${shared_ext}$major'
18297 shlibpath_var=LIBPATH
18302 library_names_spec='$libname.ixlibrary $libname.a'
18303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18304 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'
18308 library_names_spec='${libname}${shared_ext}'
18309 dynamic_linker="$host_os ld.so"
18310 shlibpath_var=LIBRARY_PATH
18316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317 soname_spec='${libname}${release}${shared_ext}$major'
18318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18319 shlibpath_var=LD_LIBRARY_PATH
18320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18322 # the default ld.so.conf also contains /usr/contrib/lib and
18323 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18324 # libtool to hard-code these into programs
18327 cygwin* | mingw* | pw32*)
18328 version_type=windows
18333 case $GCC,$host_os in
18334 yes,cygwin* | yes,mingw* | yes,pw32*)
18335 library_names_spec='$libname.dll.a'
18336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18337 postinstall_cmds='base_file=`basename \${file}`~
18338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18339 dldir=$destdir/`dirname \$dlpath`~
18340 test -d \$dldir || mkdir -p \$dldir~
18341 $install_prog $dir/$dlname \$dldir/$dlname~
18342 chmod a+x \$dldir/$dlname'
18343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18344 dlpath=$dir/\$dldll~
18346 shlibpath_overrides_runpath=yes
18350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18352 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18355 # MinGW DLLs use traditional 'lib' prefix
18356 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18357 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18358 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18359 # It is most probably a Windows format PATH printed by
18360 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18361 # path with ; separators, and with drive letters. We can handle the
18362 # drive letters (cygwin fileutils understands them), so leave them,
18363 # especially as we might pass files found there to a mingw objdump,
18364 # which wouldn't understand a cygwinified path. Ahh.
18365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18371 # pw32 DLLs use 'pw' prefix rather than 'lib'
18372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18378 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18381 dynamic_linker='Win32 ld.exe'
18382 # FIXME: first we should search . and the directory the executable is in
18386 darwin* | rhapsody*)
18387 dynamic_linker="$host_os dyld"
18388 version_type=darwin
18391 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18392 soname_spec='${libname}${release}${major}$shared_ext'
18393 shlibpath_overrides_runpath=yes
18394 shlibpath_var=DYLD_LIBRARY_PATH
18395 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18397 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18405 soname_spec='${libname}${release}${shared_ext}$major'
18406 shlibpath_var=LD_LIBRARY_PATH
18413 freebsd* | dragonfly*)
18414 # DragonFly does not have aout. When/if they implement a new
18415 # versioning mechanism, adjust this.
18416 if test -x /usr/bin/objformat; then
18417 objformat=`/usr/bin/objformat`
18420 freebsd[123]*) objformat=aout ;;
18421 *) objformat=elf ;;
18424 version_type=freebsd-$objformat
18425 case $version_type in
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18436 shlibpath_var=LD_LIBRARY_PATH
18439 shlibpath_overrides_runpath=yes
18441 freebsd3.[01]* | freebsdelf3.[01]*)
18442 shlibpath_overrides_runpath=yes
18443 hardcode_into_libs=yes
18445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18447 shlibpath_overrides_runpath=no
18448 hardcode_into_libs=yes
18450 *) # from 4.6 on, and DragonFly
18451 shlibpath_overrides_runpath=yes
18452 hardcode_into_libs=yes
18461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18462 soname_spec='${libname}${release}${shared_ext}$major'
18463 shlibpath_var=LD_LIBRARY_PATH
18464 hardcode_into_libs=yes
18467 hpux9* | hpux10* | hpux11*)
18468 # Give a soname corresponding to the major version so that dld.sl refuses to
18469 # link against other versions.
18476 hardcode_into_libs=yes
18477 dynamic_linker="$host_os dld.so"
18478 shlibpath_var=LD_LIBRARY_PATH
18479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 if test "X$HPUX_IA64_MODE" = X32; then
18483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18491 hardcode_into_libs=yes
18492 dynamic_linker="$host_os dld.sl"
18493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
18497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18502 dynamic_linker="$host_os dld.sl"
18503 shlibpath_var=SHLIB_PATH
18504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506 soname_spec='${libname}${release}${shared_ext}$major'
18509 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18510 postinstall_cmds='chmod 555 $lib'
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18518 soname_spec='${libname}${release}${shared_ext}$major'
18519 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18520 shlibpath_var=LD_LIBRARY_PATH
18521 shlibpath_overrides_runpath=no
18522 hardcode_into_libs=yes
18525 irix5* | irix6* | nonstopux*)
18527 nonstopux*) version_type=nonstopux ;;
18529 if test "$lt_cv_prog_gnu_ld" = yes; then
18537 soname_spec='${libname}${release}${shared_ext}$major'
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18540 irix5* | nonstopux*)
18541 libsuff= shlibsuff=
18544 case $LD in # libtool.m4 will add one of these switches to LD
18545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18546 libsuff= shlibsuff= libmagic=32-bit;;
18547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18548 libsuff=32 shlibsuff=N32 libmagic=N32;;
18549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18550 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18551 *) libsuff= shlibsuff= libmagic=never-match;;
18555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18556 shlibpath_overrides_runpath=no
18557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18559 hardcode_into_libs=yes
18562 # No shared lib support for Linux oldld, aout, or coff.
18563 linux*oldld* | linux*aout* | linux*coff*)
18567 # This must be Linux ELF.
18568 linux* | k*bsd*-gnu)
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18575 shlibpath_var=LD_LIBRARY_PATH
18576 shlibpath_overrides_runpath=no
18577 # This implies no fast_install, which is unacceptable.
18578 # Some rework will be needed to allow for fast_install
18579 # before this can be enabled.
18580 hardcode_into_libs=yes
18582 # Append ld.so.conf contents to the search path
18583 if test -f /etc/ld.so.conf; then
18584 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' ' '`
18585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18588 # We used to test for /lib/ld.so.1 and disable shared libraries on
18589 # powerpc, because MkLinux only supported shared libraries with the
18590 # GNU dynamic linker. Since this was broken with cross compilers,
18591 # most powerpc-linux boxes support dynamic linking these days and
18592 # people can always --disable-shared, the test was removed, and we
18593 # assume the GNU/Linux dynamic linker is in use.
18594 dynamic_linker='GNU/Linux ld.so'
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=no
18605 hardcode_into_libs=yes
18606 dynamic_linker='NetBSD ld.elf_so'
18613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18616 dynamic_linker='NetBSD (a.out) ld.so'
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 dynamic_linker='NetBSD ld.elf_so'
18622 shlibpath_var=LD_LIBRARY_PATH
18623 shlibpath_overrides_runpath=yes
18624 hardcode_into_libs=yes
18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 shlibpath_overrides_runpath=yes
18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18639 soname_spec='${libname}${release}${shared_ext}$major'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath=yes
18646 sys_lib_dlsearch_path_spec="/usr/lib"
18648 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18650 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18651 *) need_version=no ;;
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18658 openbsd2.[89] | openbsd2.[89].*)
18659 shlibpath_overrides_runpath=no
18662 shlibpath_overrides_runpath=yes
18666 shlibpath_overrides_runpath=yes
18671 libname_spec='$name'
18674 library_names_spec='$libname${shared_ext} $libname.a'
18675 dynamic_linker='OS/2 ld.exe'
18676 shlibpath_var=LIBPATH
18679 osf3* | osf4* | osf5*)
18683 soname_spec='${libname}${release}${shared_ext}$major'
18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18687 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 soname_spec='${libname}${release}${shared_ext}$major'
18700 shlibpath_var=LD_LIBRARY_PATH
18701 shlibpath_overrides_runpath=yes
18702 hardcode_into_libs=yes
18703 # ldd complains unless libraries are executable
18704 postinstall_cmds='chmod +x $lib'
18709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18710 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18711 shlibpath_var=LD_LIBRARY_PATH
18712 shlibpath_overrides_runpath=yes
18713 if test "$with_gnu_ld" = yes; then
18721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18722 soname_spec='${libname}${release}${shared_ext}$major'
18723 shlibpath_var=LD_LIBRARY_PATH
18724 case $host_vendor in
18726 shlibpath_overrides_runpath=no
18728 export_dynamic_flag_spec='${wl}-Blargedynsym'
18729 runpath_var=LD_RUN_PATH
18737 shlibpath_overrides_runpath=no
18738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18744 if test -d /usr/nec ;then
18746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18747 soname_spec='$libname${shared_ext}.$major'
18748 shlibpath_var=LD_LIBRARY_PATH
18752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18753 version_type=freebsd-elf
18756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18757 soname_spec='${libname}${release}${shared_ext}$major'
18758 shlibpath_var=LD_LIBRARY_PATH
18759 hardcode_into_libs=yes
18760 if test "$with_gnu_ld" = yes; then
18761 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18762 shlibpath_overrides_runpath=no
18764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18765 shlibpath_overrides_runpath=yes
18768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18772 sys_lib_dlsearch_path_spec='/usr/lib'
18777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778 soname_spec='${libname}${release}${shared_ext}$major'
18779 shlibpath_var=LD_LIBRARY_PATH
18786 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18787 echo "${ECHO_T}$dynamic_linker" >&6; }
18788 test "$dynamic_linker" = no && can_build_shared=no
18790 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18796 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18803 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18806 if test "$GCC" = yes; then
18807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18810 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18812 hardcode_action_GCJ=
18813 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18814 test -n "$runpath_var_GCJ" || \
18815 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18817 # We can hardcode non-existant directories.
18818 if test "$hardcode_direct_GCJ" != no &&
18819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18820 # have to relink, otherwise we might link with an installed library
18821 # when we should be linking with a yet-to-be-installed one
18822 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18823 test "$hardcode_minus_L_GCJ" != no; then
18824 # Linking always hardcodes the temporary library directory.
18825 hardcode_action_GCJ=relink
18827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18828 hardcode_action_GCJ=immediate
18831 # We cannot hardcode anything, or else we can only hardcode existing
18833 hardcode_action_GCJ=unsupported
18835 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18836 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18838 if test "$hardcode_action_GCJ" = relink; then
18839 # Fast installation is not supported
18840 enable_fast_install=no
18841 elif test "$shlibpath_overrides_runpath" = yes ||
18842 test "$enable_shared" = no; then
18843 # Fast installation is not necessary
18844 enable_fast_install=needless
18848 # The else clause should only fire when bootstrapping the
18849 # libtool distribution, otherwise you forgot to ship ltmain.sh
18850 # with your package, and you will get complaints that there are
18851 # no rules to generate ltmain.sh.
18852 if test -f "$ltmain"; then
18853 # See if we are running on zsh, and set the options which allow our commands through
18854 # without removal of \ escapes.
18855 if test -n "${ZSH_VERSION+set}" ; then
18856 setopt NO_GLOB_SUBST
18858 # Now quote all the things that may contain metacharacters while being
18859 # careful not to overquote the AC_SUBSTed values. We take copies of the
18860 # variables and quote the copies for generation of the libtool script.
18861 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18863 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18864 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18865 deplibs_check_method reload_flag reload_cmds need_locks \
18866 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18867 lt_cv_sys_global_symbol_to_c_name_address \
18868 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18869 old_postinstall_cmds old_postuninstall_cmds \
18873 lt_prog_compiler_wl_GCJ \
18874 lt_prog_compiler_pic_GCJ \
18875 lt_prog_compiler_static_GCJ \
18876 lt_prog_compiler_no_builtin_flag_GCJ \
18877 export_dynamic_flag_spec_GCJ \
18878 thread_safe_flag_spec_GCJ \
18879 whole_archive_flag_spec_GCJ \
18880 enable_shared_with_static_runtimes_GCJ \
18881 old_archive_cmds_GCJ \
18882 old_archive_from_new_cmds_GCJ \
18883 predep_objects_GCJ \
18884 postdep_objects_GCJ \
18887 compiler_lib_search_path_GCJ \
18888 compiler_lib_search_dirs_GCJ \
18890 archive_expsym_cmds_GCJ \
18891 postinstall_cmds_GCJ \
18892 postuninstall_cmds_GCJ \
18893 old_archive_from_expsyms_cmds_GCJ \
18894 allow_undefined_flag_GCJ \
18895 no_undefined_flag_GCJ \
18896 export_symbols_cmds_GCJ \
18897 hardcode_libdir_flag_spec_GCJ \
18898 hardcode_libdir_flag_spec_ld_GCJ \
18899 hardcode_libdir_separator_GCJ \
18900 hardcode_automatic_GCJ \
18902 module_expsym_cmds_GCJ \
18903 lt_cv_prog_compiler_c_o_GCJ \
18904 fix_srcfile_path_GCJ \
18905 exclude_expsyms_GCJ \
18906 include_expsyms_GCJ; do
18909 old_archive_cmds_GCJ | \
18910 old_archive_from_new_cmds_GCJ | \
18911 archive_cmds_GCJ | \
18912 archive_expsym_cmds_GCJ | \
18913 module_cmds_GCJ | \
18914 module_expsym_cmds_GCJ | \
18915 old_archive_from_expsyms_cmds_GCJ | \
18916 export_symbols_cmds_GCJ | \
18917 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18918 postinstall_cmds | postuninstall_cmds | \
18919 old_postinstall_cmds | old_postuninstall_cmds | \
18920 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18921 # Double-quote double-evaled strings.
18922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18931 *'\$0 --fallback-echo"')
18932 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18938 cat <<__EOF__ >> "$cfgfile"
18939 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18941 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18943 # Shell to use when invoking shell scripts.
18946 # Whether or not to build shared libraries.
18947 build_libtool_libs=$enable_shared
18949 # Whether or not to build static libraries.
18950 build_old_libs=$enable_static
18952 # Whether or not to add -lc for building shared libraries.
18953 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18955 # Whether or not to disallow shared libs when runtime libs are static
18956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18958 # Whether or not to optimize for fast installation.
18959 fast_install=$enable_fast_install
18962 host_alias=$host_alias
18966 # The build system.
18967 build_alias=$build_alias
18971 # An echo program that does not interpret backslashes.
18976 AR_FLAGS=$lt_AR_FLAGS
18981 # LTCC compiler flags.
18982 LTCFLAGS=$lt_LTCFLAGS
18984 # A language-specific compiler.
18985 CC=$lt_compiler_GCJ
18987 # Is the compiler the GNU C compiler?
18993 # The linker used to build libraries.
18996 # Whether we need hard or soft links.
18999 # A BSD-compatible nm program.
19002 # A symbol stripping program
19005 # Used to examine libraries when file_magic_cmd begins "file"
19006 MAGIC_CMD=$MAGIC_CMD
19008 # Used on cygwin: DLL creation program.
19011 # Used on cygwin: object dumper.
19014 # Used on cygwin: assembler.
19017 # The name of the directory that contains temporary libtool files.
19020 # How to create reloadable object files.
19021 reload_flag=$lt_reload_flag
19022 reload_cmds=$lt_reload_cmds
19024 # How to pass a linker flag through the compiler.
19025 wl=$lt_lt_prog_compiler_wl_GCJ
19027 # Object file suffix (normally "o").
19028 objext="$ac_objext"
19030 # Old archive suffix (normally "a").
19033 # Shared library suffix (normally ".so").
19034 shrext_cmds='$shrext_cmds'
19036 # Executable file suffix (normally "").
19039 # Additional compiler flags for building library objects.
19040 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19043 # What is the maximum length of a command?
19044 max_cmd_len=$lt_cv_sys_max_cmd_len
19046 # Does compiler simultaneously support -c and -o options?
19047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19049 # Must we lock files when doing compilation?
19050 need_locks=$lt_need_locks
19052 # Do we need the lib prefix for modules?
19053 need_lib_prefix=$need_lib_prefix
19055 # Do we need a version for libraries?
19056 need_version=$need_version
19058 # Whether dlopen is supported.
19059 dlopen_support=$enable_dlopen
19061 # Whether dlopen of programs is supported.
19062 dlopen_self=$enable_dlopen_self
19064 # Whether dlopen of statically linked programs is supported.
19065 dlopen_self_static=$enable_dlopen_self_static
19067 # Compiler flag to prevent dynamic linking.
19068 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19070 # Compiler flag to turn off builtin functions.
19071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19073 # Compiler flag to allow reflexive dlopens.
19074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19076 # Compiler flag to generate shared objects directly from archives.
19077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19079 # Compiler flag to generate thread-safe objects.
19080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19082 # Library versioning type.
19083 version_type=$version_type
19085 # Format of library name prefix.
19086 libname_spec=$lt_libname_spec
19088 # List of archive names. First name is the real one, the rest are links.
19089 # The last name is the one that the linker finds with -lNAME.
19090 library_names_spec=$lt_library_names_spec
19092 # The coded name of the library, if different from the real name.
19093 soname_spec=$lt_soname_spec
19095 # Commands used to build and install an old-style archive.
19097 old_archive_cmds=$lt_old_archive_cmds_GCJ
19098 old_postinstall_cmds=$lt_old_postinstall_cmds
19099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19101 # Create an old-style archive from a shared archive.
19102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19104 # Create a temporary old-style archive to link instead of a shared archive.
19105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19107 # Commands used to build and install a shared archive.
19108 archive_cmds=$lt_archive_cmds_GCJ
19109 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19110 postinstall_cmds=$lt_postinstall_cmds
19111 postuninstall_cmds=$lt_postuninstall_cmds
19113 # Commands used to build a loadable module (assumed same as above if empty)
19114 module_cmds=$lt_module_cmds_GCJ
19115 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19117 # Commands to strip libraries.
19118 old_striplib=$lt_old_striplib
19119 striplib=$lt_striplib
19121 # Dependencies to place before the objects being linked to create a
19123 predep_objects=$lt_predep_objects_GCJ
19125 # Dependencies to place after the objects being linked to create a
19127 postdep_objects=$lt_postdep_objects_GCJ
19129 # Dependencies to place before the objects being linked to create a
19131 predeps=$lt_predeps_GCJ
19133 # Dependencies to place after the objects being linked to create a
19135 postdeps=$lt_postdeps_GCJ
19137 # The directories searched by this compiler when creating a shared
19139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19141 # The library search path used internally by the compiler when linking
19142 # a shared library.
19143 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19145 # Method to check whether dependent libraries are shared objects.
19146 deplibs_check_method=$lt_deplibs_check_method
19148 # Command to use when deplibs_check_method == file_magic.
19149 file_magic_cmd=$lt_file_magic_cmd
19151 # Flag that allows shared libraries with undefined symbols to be built.
19152 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19154 # Flag that forces no undefined symbols.
19155 no_undefined_flag=$lt_no_undefined_flag_GCJ
19157 # Commands used to finish a libtool library installation in a directory.
19158 finish_cmds=$lt_finish_cmds
19160 # Same as above, but a single script fragment to be evaled but not shown.
19161 finish_eval=$lt_finish_eval
19163 # Take the output of nm and produce a listing of raw symbols and C names.
19164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19166 # Transform the output of nm in a proper C declaration
19167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19169 # Transform the output of nm in a C name address pair
19170 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19172 # This is the shared library runtime path variable.
19173 runpath_var=$runpath_var
19175 # This is the shared library path variable.
19176 shlibpath_var=$shlibpath_var
19178 # Is shlibpath searched before the hard-coded library search path?
19179 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19181 # How to hardcode a shared library path into an executable.
19182 hardcode_action=$hardcode_action_GCJ
19184 # Whether we should hardcode library paths into libraries.
19185 hardcode_into_libs=$hardcode_into_libs
19187 # Flag to hardcode \$libdir into a binary during linking.
19188 # This must work even if \$libdir does not exist.
19189 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19191 # If ld is used when linking, flag to hardcode \$libdir into
19192 # a binary during linking. This must work even if \$libdir does
19194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19196 # Whether we need a single -rpath flag with a separated argument.
19197 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19199 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19200 # resulting binary.
19201 hardcode_direct=$hardcode_direct_GCJ
19203 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19204 # resulting binary.
19205 hardcode_minus_L=$hardcode_minus_L_GCJ
19207 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19208 # the resulting binary.
19209 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19211 # Set to yes if building a shared library automatically hardcodes DIR into the library
19212 # and all subsequent libraries and executables linked against it.
19213 hardcode_automatic=$hardcode_automatic_GCJ
19215 # Variables whose values should be saved in libtool wrapper scripts and
19216 # restored at relink time.
19217 variables_saved_for_relink="$variables_saved_for_relink"
19219 # Whether libtool must link a program against all its dependency libraries.
19220 link_all_deplibs=$link_all_deplibs_GCJ
19222 # Compile-time system search path for libraries
19223 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19225 # Run-time system search path for libraries
19226 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19228 # Fix the shell variable \$srcfile for the compiler.
19229 fix_srcfile_path=$lt_fix_srcfile_path
19231 # Set to yes if exported symbols are required.
19232 always_export_symbols=$always_export_symbols_GCJ
19234 # The commands to list exported symbols.
19235 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19237 # The commands to extract the exported symbol list from a shared archive.
19238 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19240 # Symbols that should not be listed in the preloaded symbols.
19241 exclude_expsyms=$lt_exclude_expsyms_GCJ
19243 # Symbols that must always be exported.
19244 include_expsyms=$lt_include_expsyms_GCJ
19246 # ### END LIBTOOL TAG CONFIG: $tagname
19252 # If there is no Makefile yet, we rely on a make rule to execute
19253 # `config.status --recheck' to rerun these tests and create the
19254 # libtool script then.
19255 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19256 if test -f "$ltmain_in"; then
19257 test -f Makefile && make "$ltmain"
19263 ac_cpp='$CPP $CPPFLAGS'
19264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19278 # Source file extension for RC test sources.
19281 # Object file extension for compiled RC test sources.
19285 # Code to be used in simple compile tests
19286 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19288 # Code to be used in simple link tests
19289 lt_simple_link_test_code="$lt_simple_compile_test_code"
19291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19293 # If no C compiler was specified, use CC.
19296 # If no C compiler flags were specified, use CFLAGS.
19297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19299 # Allow CC to be a program name with arguments.
19303 # save warnings/boilerplate of simple test code
19304 ac_outfile=conftest.$ac_objext
19305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19307 _lt_compiler_boilerplate=`cat conftest.err`
19310 ac_outfile=conftest.$ac_objext
19311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19313 _lt_linker_boilerplate=`cat conftest.err`
19317 # Allow CC to be a program name with arguments.
19322 for cc_temp in $compiler""; do
19324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19332 lt_cv_prog_compiler_c_o_RC=yes
19334 # The else clause should only fire when bootstrapping the
19335 # libtool distribution, otherwise you forgot to ship ltmain.sh
19336 # with your package, and you will get complaints that there are
19337 # no rules to generate ltmain.sh.
19338 if test -f "$ltmain"; then
19339 # See if we are running on zsh, and set the options which allow our commands through
19340 # without removal of \ escapes.
19341 if test -n "${ZSH_VERSION+set}" ; then
19342 setopt NO_GLOB_SUBST
19344 # Now quote all the things that may contain metacharacters while being
19345 # careful not to overquote the AC_SUBSTed values. We take copies of the
19346 # variables and quote the copies for generation of the libtool script.
19347 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19351 deplibs_check_method reload_flag reload_cmds need_locks \
19352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19353 lt_cv_sys_global_symbol_to_c_name_address \
19354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19355 old_postinstall_cmds old_postuninstall_cmds \
19359 lt_prog_compiler_wl_RC \
19360 lt_prog_compiler_pic_RC \
19361 lt_prog_compiler_static_RC \
19362 lt_prog_compiler_no_builtin_flag_RC \
19363 export_dynamic_flag_spec_RC \
19364 thread_safe_flag_spec_RC \
19365 whole_archive_flag_spec_RC \
19366 enable_shared_with_static_runtimes_RC \
19367 old_archive_cmds_RC \
19368 old_archive_from_new_cmds_RC \
19369 predep_objects_RC \
19370 postdep_objects_RC \
19373 compiler_lib_search_path_RC \
19374 compiler_lib_search_dirs_RC \
19376 archive_expsym_cmds_RC \
19377 postinstall_cmds_RC \
19378 postuninstall_cmds_RC \
19379 old_archive_from_expsyms_cmds_RC \
19380 allow_undefined_flag_RC \
19381 no_undefined_flag_RC \
19382 export_symbols_cmds_RC \
19383 hardcode_libdir_flag_spec_RC \
19384 hardcode_libdir_flag_spec_ld_RC \
19385 hardcode_libdir_separator_RC \
19386 hardcode_automatic_RC \
19388 module_expsym_cmds_RC \
19389 lt_cv_prog_compiler_c_o_RC \
19390 fix_srcfile_path_RC \
19391 exclude_expsyms_RC \
19392 include_expsyms_RC; do
19395 old_archive_cmds_RC | \
19396 old_archive_from_new_cmds_RC | \
19397 archive_cmds_RC | \
19398 archive_expsym_cmds_RC | \
19400 module_expsym_cmds_RC | \
19401 old_archive_from_expsyms_cmds_RC | \
19402 export_symbols_cmds_RC | \
19403 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19404 postinstall_cmds | postuninstall_cmds | \
19405 old_postinstall_cmds | old_postuninstall_cmds | \
19406 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19407 # Double-quote double-evaled strings.
19408 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19417 *'\$0 --fallback-echo"')
19418 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19424 cat <<__EOF__ >> "$cfgfile"
19425 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19427 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19429 # Shell to use when invoking shell scripts.
19432 # Whether or not to build shared libraries.
19433 build_libtool_libs=$enable_shared
19435 # Whether or not to build static libraries.
19436 build_old_libs=$enable_static
19438 # Whether or not to add -lc for building shared libraries.
19439 build_libtool_need_lc=$archive_cmds_need_lc_RC
19441 # Whether or not to disallow shared libs when runtime libs are static
19442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19444 # Whether or not to optimize for fast installation.
19445 fast_install=$enable_fast_install
19448 host_alias=$host_alias
19452 # The build system.
19453 build_alias=$build_alias
19457 # An echo program that does not interpret backslashes.
19462 AR_FLAGS=$lt_AR_FLAGS
19467 # LTCC compiler flags.
19468 LTCFLAGS=$lt_LTCFLAGS
19470 # A language-specific compiler.
19473 # Is the compiler the GNU C compiler?
19479 # The linker used to build libraries.
19482 # Whether we need hard or soft links.
19485 # A BSD-compatible nm program.
19488 # A symbol stripping program
19491 # Used to examine libraries when file_magic_cmd begins "file"
19492 MAGIC_CMD=$MAGIC_CMD
19494 # Used on cygwin: DLL creation program.
19497 # Used on cygwin: object dumper.
19500 # Used on cygwin: assembler.
19503 # The name of the directory that contains temporary libtool files.
19506 # How to create reloadable object files.
19507 reload_flag=$lt_reload_flag
19508 reload_cmds=$lt_reload_cmds
19510 # How to pass a linker flag through the compiler.
19511 wl=$lt_lt_prog_compiler_wl_RC
19513 # Object file suffix (normally "o").
19514 objext="$ac_objext"
19516 # Old archive suffix (normally "a").
19519 # Shared library suffix (normally ".so").
19520 shrext_cmds='$shrext_cmds'
19522 # Executable file suffix (normally "").
19525 # Additional compiler flags for building library objects.
19526 pic_flag=$lt_lt_prog_compiler_pic_RC
19529 # What is the maximum length of a command?
19530 max_cmd_len=$lt_cv_sys_max_cmd_len
19532 # Does compiler simultaneously support -c and -o options?
19533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19535 # Must we lock files when doing compilation?
19536 need_locks=$lt_need_locks
19538 # Do we need the lib prefix for modules?
19539 need_lib_prefix=$need_lib_prefix
19541 # Do we need a version for libraries?
19542 need_version=$need_version
19544 # Whether dlopen is supported.
19545 dlopen_support=$enable_dlopen
19547 # Whether dlopen of programs is supported.
19548 dlopen_self=$enable_dlopen_self
19550 # Whether dlopen of statically linked programs is supported.
19551 dlopen_self_static=$enable_dlopen_self_static
19553 # Compiler flag to prevent dynamic linking.
19554 link_static_flag=$lt_lt_prog_compiler_static_RC
19556 # Compiler flag to turn off builtin functions.
19557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19559 # Compiler flag to allow reflexive dlopens.
19560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19562 # Compiler flag to generate shared objects directly from archives.
19563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19565 # Compiler flag to generate thread-safe objects.
19566 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19568 # Library versioning type.
19569 version_type=$version_type
19571 # Format of library name prefix.
19572 libname_spec=$lt_libname_spec
19574 # List of archive names. First name is the real one, the rest are links.
19575 # The last name is the one that the linker finds with -lNAME.
19576 library_names_spec=$lt_library_names_spec
19578 # The coded name of the library, if different from the real name.
19579 soname_spec=$lt_soname_spec
19581 # Commands used to build and install an old-style archive.
19583 old_archive_cmds=$lt_old_archive_cmds_RC
19584 old_postinstall_cmds=$lt_old_postinstall_cmds
19585 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19587 # Create an old-style archive from a shared archive.
19588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19590 # Create a temporary old-style archive to link instead of a shared archive.
19591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19593 # Commands used to build and install a shared archive.
19594 archive_cmds=$lt_archive_cmds_RC
19595 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19596 postinstall_cmds=$lt_postinstall_cmds
19597 postuninstall_cmds=$lt_postuninstall_cmds
19599 # Commands used to build a loadable module (assumed same as above if empty)
19600 module_cmds=$lt_module_cmds_RC
19601 module_expsym_cmds=$lt_module_expsym_cmds_RC
19603 # Commands to strip libraries.
19604 old_striplib=$lt_old_striplib
19605 striplib=$lt_striplib
19607 # Dependencies to place before the objects being linked to create a
19609 predep_objects=$lt_predep_objects_RC
19611 # Dependencies to place after the objects being linked to create a
19613 postdep_objects=$lt_postdep_objects_RC
19615 # Dependencies to place before the objects being linked to create a
19617 predeps=$lt_predeps_RC
19619 # Dependencies to place after the objects being linked to create a
19621 postdeps=$lt_postdeps_RC
19623 # The directories searched by this compiler when creating a shared
19625 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19627 # The library search path used internally by the compiler when linking
19628 # a shared library.
19629 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19631 # Method to check whether dependent libraries are shared objects.
19632 deplibs_check_method=$lt_deplibs_check_method
19634 # Command to use when deplibs_check_method == file_magic.
19635 file_magic_cmd=$lt_file_magic_cmd
19637 # Flag that allows shared libraries with undefined symbols to be built.
19638 allow_undefined_flag=$lt_allow_undefined_flag_RC
19640 # Flag that forces no undefined symbols.
19641 no_undefined_flag=$lt_no_undefined_flag_RC
19643 # Commands used to finish a libtool library installation in a directory.
19644 finish_cmds=$lt_finish_cmds
19646 # Same as above, but a single script fragment to be evaled but not shown.
19647 finish_eval=$lt_finish_eval
19649 # Take the output of nm and produce a listing of raw symbols and C names.
19650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19652 # Transform the output of nm in a proper C declaration
19653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19655 # Transform the output of nm in a C name address pair
19656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19658 # This is the shared library runtime path variable.
19659 runpath_var=$runpath_var
19661 # This is the shared library path variable.
19662 shlibpath_var=$shlibpath_var
19664 # Is shlibpath searched before the hard-coded library search path?
19665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19667 # How to hardcode a shared library path into an executable.
19668 hardcode_action=$hardcode_action_RC
19670 # Whether we should hardcode library paths into libraries.
19671 hardcode_into_libs=$hardcode_into_libs
19673 # Flag to hardcode \$libdir into a binary during linking.
19674 # This must work even if \$libdir does not exist.
19675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19677 # If ld is used when linking, flag to hardcode \$libdir into
19678 # a binary during linking. This must work even if \$libdir does
19680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19682 # Whether we need a single -rpath flag with a separated argument.
19683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19686 # resulting binary.
19687 hardcode_direct=$hardcode_direct_RC
19689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19690 # resulting binary.
19691 hardcode_minus_L=$hardcode_minus_L_RC
19693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19694 # the resulting binary.
19695 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19697 # Set to yes if building a shared library automatically hardcodes DIR into the library
19698 # and all subsequent libraries and executables linked against it.
19699 hardcode_automatic=$hardcode_automatic_RC
19701 # Variables whose values should be saved in libtool wrapper scripts and
19702 # restored at relink time.
19703 variables_saved_for_relink="$variables_saved_for_relink"
19705 # Whether libtool must link a program against all its dependency libraries.
19706 link_all_deplibs=$link_all_deplibs_RC
19708 # Compile-time system search path for libraries
19709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19711 # Run-time system search path for libraries
19712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19714 # Fix the shell variable \$srcfile for the compiler.
19715 fix_srcfile_path=$lt_fix_srcfile_path
19717 # Set to yes if exported symbols are required.
19718 always_export_symbols=$always_export_symbols_RC
19720 # The commands to list exported symbols.
19721 export_symbols_cmds=$lt_export_symbols_cmds_RC
19723 # The commands to extract the exported symbol list from a shared archive.
19724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19726 # Symbols that should not be listed in the preloaded symbols.
19727 exclude_expsyms=$lt_exclude_expsyms_RC
19729 # Symbols that must always be exported.
19730 include_expsyms=$lt_include_expsyms_RC
19732 # ### END LIBTOOL TAG CONFIG: $tagname
19738 # If there is no Makefile yet, we rely on a make rule to execute
19739 # `config.status --recheck' to rerun these tests and create the
19740 # libtool script then.
19741 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19742 if test -f "$ltmain_in"; then
19743 test -f Makefile && make "$ltmain"
19749 ac_cpp='$CPP $CPPFLAGS'
19750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19760 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19761 { (exit 1); exit 1; }; }
19765 # Append the new tag name to the list of available tags.
19766 if test -n "$tagname" ; then
19767 available_tags="$available_tags $tagname"
19773 # Now substitute the updated list of available tags.
19774 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19775 mv "${ofile}T" "$ofile"
19779 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19780 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19781 { (exit 1); exit 1; }; }
19787 # This can be used to rebuild libtool when needed
19788 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19790 # Always use our own libtool.
19791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19793 # Prevent multiple expansion
19816 # Check whether some low-level functions/files are available
19817 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19818 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19819 if test "${ac_cv_header_stdc+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 cat >conftest.$ac_ext <<_ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 #include <stdlib.h>
19829 #include <stdarg.h>
19830 #include <string.h>
19841 rm -f conftest.$ac_objext
19842 if { (ac_try="$ac_compile"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_compile") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && {
19855 test -z "$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19857 } && test -s conftest.$ac_objext; then
19858 ac_cv_header_stdc=yes
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 ac_cv_header_stdc=no
19866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 if test $ac_cv_header_stdc = yes; then
19869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19870 cat >conftest.$ac_ext <<_ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 #include <string.h>
19879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19880 $EGREP "memchr" >/dev/null 2>&1; then
19883 ac_cv_header_stdc=no
19889 if test $ac_cv_header_stdc = yes; then
19890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19891 cat >conftest.$ac_ext <<_ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 #include <stdlib.h>
19900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19901 $EGREP "free" >/dev/null 2>&1; then
19904 ac_cv_header_stdc=no
19910 if test $ac_cv_header_stdc = yes; then
19911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19912 if test "$cross_compiling" = yes; then
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19922 #include <stdlib.h>
19923 #if ((' ' & 0x0FF) == 0x020)
19924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19927 # define ISLOWER(c) \
19928 (('a' <= (c) && (c) <= 'i') \
19929 || ('j' <= (c) && (c) <= 'r') \
19930 || ('s' <= (c) && (c) <= 'z'))
19931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19939 for (i = 0; i < 256; i++)
19940 if (XOR (islower (i), ISLOWER (i))
19941 || toupper (i) != TOUPPER (i))
19946 rm -f conftest$ac_exeext
19947 if { (ac_try="$ac_link"
19948 case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_link") 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19957 { (case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_try") 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
19968 echo "$as_me: program exited with status $ac_status" >&5
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 ( exit $ac_status )
19973 ac_cv_header_stdc=no
19975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19981 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19982 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19983 if test $ac_cv_header_stdc = yes; then
19985 cat >>confdefs.h <<\_ACEOF
19986 #define STDC_HEADERS 1
19992 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19993 if test "${ac_cv_header_stdint_h+set}" = set; then
19994 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19995 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19996 if test "${ac_cv_header_stdint_h+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20000 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20002 # Is the header compilable?
20003 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
20004 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
20005 cat >conftest.$ac_ext <<_ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 $ac_includes_default
20012 #include <stdint.h>
20014 rm -f conftest.$ac_objext
20015 if { (ac_try="$ac_compile"
20016 case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_compile") 2>conftest.er1
20023 grep -v '^ *+' conftest.er1 >conftest.err
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } && {
20028 test -z "$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20030 } && test -s conftest.$ac_objext; then
20031 ac_header_compiler=yes
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_header_compiler=no
20039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20041 echo "${ECHO_T}$ac_header_compiler" >&6; }
20043 # Is the header present?
20044 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20045 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20046 cat >conftest.$ac_ext <<_ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20052 #include <stdint.h>
20054 if { (ac_try="$ac_cpp conftest.$ac_ext"
20055 case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20062 grep -v '^ *+' conftest.er1 >conftest.err
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } >/dev/null && {
20067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20068 test ! -s conftest.err
20070 ac_header_preproc=yes
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 ac_header_preproc=no
20078 rm -f conftest.err conftest.$ac_ext
20079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20080 echo "${ECHO_T}$ac_header_preproc" >&6; }
20082 # So? What about this header?
20083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20085 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20086 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20088 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20089 ac_header_preproc=yes
20092 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20093 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20094 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20095 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20096 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20097 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20099 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20101 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20103 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20105 ## ------------------------------------ ##
20106 ## Report this to opensource@google.com ##
20107 ## ------------------------------------ ##
20109 ) | sed "s/^/$as_me: WARNING: /" >&2
20112 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20113 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20114 if test "${ac_cv_header_stdint_h+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 ac_cv_header_stdint_h=$ac_header_preproc
20119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20120 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20123 if test $ac_cv_header_stdint_h = yes; then
20124 ac_cv_have_stdint_h=1
20126 ac_cv_have_stdint_h=0
20130 if test "${ac_cv_header_sys_types_h+set}" = set; then
20131 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20132 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20133 if test "${ac_cv_header_sys_types_h+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20137 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20139 # Is the header compilable?
20140 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20141 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 $ac_includes_default
20149 #include <sys/types.h>
20151 rm -f conftest.$ac_objext
20152 if { (ac_try="$ac_compile"
20153 case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_compile") 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest.$ac_objext; then
20168 ac_header_compiler=yes
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_header_compiler=no
20176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20178 echo "${ECHO_T}$ac_header_compiler" >&6; }
20180 # Is the header present?
20181 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20182 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 #include <sys/types.h>
20191 if { (ac_try="$ac_cpp conftest.$ac_ext"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } >/dev/null && {
20204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20207 ac_header_preproc=yes
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_header_preproc=no
20215 rm -f conftest.err conftest.$ac_ext
20216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20217 echo "${ECHO_T}$ac_header_preproc" >&6; }
20219 # So? What about this header?
20220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20222 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20223 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20224 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20225 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20226 ac_header_preproc=yes
20229 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20230 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20232 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20234 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20236 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20238 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20240 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20242 ## ------------------------------------ ##
20243 ## Report this to opensource@google.com ##
20244 ## ------------------------------------ ##
20246 ) | sed "s/^/$as_me: WARNING: /" >&2
20249 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20250 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20251 if test "${ac_cv_header_sys_types_h+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 ac_cv_header_sys_types_h=$ac_header_preproc
20256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20257 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20260 if test $ac_cv_header_sys_types_h = yes; then
20261 ac_cv_have_systypes_h=1
20263 ac_cv_have_systypes_h=0
20267 if test "${ac_cv_header_inttypes_h+set}" = set; then
20268 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20269 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20270 if test "${ac_cv_header_inttypes_h+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20274 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20276 # Is the header compilable?
20277 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20278 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 $ac_includes_default
20286 #include <inttypes.h>
20288 rm -f conftest.$ac_objext
20289 if { (ac_try="$ac_compile"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest.$ac_objext; then
20305 ac_header_compiler=yes
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 ac_header_compiler=no
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20315 echo "${ECHO_T}$ac_header_compiler" >&6; }
20317 # Is the header present?
20318 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20319 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 #include <inttypes.h>
20328 if { (ac_try="$ac_cpp conftest.$ac_ext"
20329 case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20336 grep -v '^ *+' conftest.er1 >conftest.err
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } >/dev/null && {
20341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20342 test ! -s conftest.err
20344 ac_header_preproc=yes
20346 echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20349 ac_header_preproc=no
20352 rm -f conftest.err conftest.$ac_ext
20353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20354 echo "${ECHO_T}$ac_header_preproc" >&6; }
20356 # So? What about this header?
20357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20359 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20360 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20361 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20362 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20363 ac_header_preproc=yes
20366 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20367 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20369 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20371 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20373 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20375 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20377 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20379 ## ------------------------------------ ##
20380 ## Report this to opensource@google.com ##
20381 ## ------------------------------------ ##
20383 ) | sed "s/^/$as_me: WARNING: /" >&2
20386 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20387 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20388 if test "${ac_cv_header_inttypes_h+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 ac_cv_header_inttypes_h=$ac_header_preproc
20393 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20394 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20397 if test $ac_cv_header_inttypes_h = yes; then
20398 ac_cv_have_inttypes_h=1
20400 ac_cv_have_inttypes_h=0
20405 for ac_header in unistd.h
20407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 ac_res=`eval echo '${'$as_ac_Header'}'`
20415 { echo "$as_me:$LINENO: result: $ac_res" >&5
20416 echo "${ECHO_T}$ac_res" >&6; }
20418 # Is the header compilable?
20419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20421 cat >conftest.$ac_ext <<_ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20427 $ac_includes_default
20428 #include <$ac_header>
20430 rm -f conftest.$ac_objext
20431 if { (ac_try="$ac_compile"
20432 case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_compile") 2>conftest.er1
20439 grep -v '^ *+' conftest.er1 >conftest.err
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && {
20444 test -z "$ac_c_werror_flag" ||
20445 test ! -s conftest.err
20446 } && test -s conftest.$ac_objext; then
20447 ac_header_compiler=yes
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 ac_header_compiler=no
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20457 echo "${ECHO_T}$ac_header_compiler" >&6; }
20459 # Is the header present?
20460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20462 cat >conftest.$ac_ext <<_ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468 #include <$ac_header>
20470 if { (ac_try="$ac_cpp conftest.$ac_ext"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } >/dev/null && {
20483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20484 test ! -s conftest.err
20486 ac_header_preproc=yes
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 ac_header_preproc=no
20494 rm -f conftest.err conftest.$ac_ext
20495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20496 echo "${ECHO_T}$ac_header_preproc" >&6; }
20498 # So? What about this header?
20499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20505 ac_header_preproc=yes
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20521 ## ------------------------------------ ##
20522 ## Report this to opensource@google.com ##
20523 ## ------------------------------------ ##
20525 ) | sed "s/^/$as_me: WARNING: /" >&2
20528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 eval "$as_ac_Header=\$ac_header_preproc"
20535 ac_res=`eval echo '${'$as_ac_Header'}'`
20536 { echo "$as_me:$LINENO: result: $ac_res" >&5
20537 echo "${ECHO_T}$ac_res" >&6; }
20540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20541 cat >>confdefs.h <<_ACEOF
20542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20544 ac_cv_have_unistd_h=1
20546 ac_cv_have_unistd_h=0
20552 for ac_header in syscall.h
20554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 ac_res=`eval echo '${'$as_ac_Header'}'`
20562 { echo "$as_me:$LINENO: result: $ac_res" >&5
20563 echo "${ECHO_T}$ac_res" >&6; }
20565 # Is the header compilable?
20566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20568 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 $ac_includes_default
20575 #include <$ac_header>
20577 rm -f conftest.$ac_objext
20578 if { (ac_try="$ac_compile"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_compile") 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && {
20591 test -z "$ac_c_werror_flag" ||
20592 test ! -s conftest.err
20593 } && test -s conftest.$ac_objext; then
20594 ac_header_compiler=yes
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_header_compiler=no
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20604 echo "${ECHO_T}$ac_header_compiler" >&6; }
20606 # Is the header present?
20607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615 #include <$ac_header>
20617 if { (ac_try="$ac_cpp conftest.$ac_ext"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } >/dev/null && {
20630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20631 test ! -s conftest.err
20633 ac_header_preproc=yes
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_header_preproc=no
20641 rm -f conftest.err conftest.$ac_ext
20642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20643 echo "${ECHO_T}$ac_header_preproc" >&6; }
20645 # So? What about this header?
20646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20652 ac_header_preproc=yes
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20668 ## ------------------------------------ ##
20669 ## Report this to opensource@google.com ##
20670 ## ------------------------------------ ##
20672 ) | sed "s/^/$as_me: WARNING: /" >&2
20675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20680 eval "$as_ac_Header=\$ac_header_preproc"
20682 ac_res=`eval echo '${'$as_ac_Header'}'`
20683 { echo "$as_me:$LINENO: result: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20688 cat >>confdefs.h <<_ACEOF
20689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20697 for ac_header in sys/syscall.h
20699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 ac_res=`eval echo '${'$as_ac_Header'}'`
20707 { echo "$as_me:$LINENO: result: $ac_res" >&5
20708 echo "${ECHO_T}$ac_res" >&6; }
20710 # Is the header compilable?
20711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20713 cat >conftest.$ac_ext <<_ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20719 $ac_includes_default
20720 #include <$ac_header>
20722 rm -f conftest.$ac_objext
20723 if { (ac_try="$ac_compile"
20724 case "(($ac_try" in
20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726 *) ac_try_echo=$ac_try;;
20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20729 (eval "$ac_compile") 2>conftest.er1
20731 grep -v '^ *+' conftest.er1 >conftest.err
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } && {
20736 test -z "$ac_c_werror_flag" ||
20737 test ! -s conftest.err
20738 } && test -s conftest.$ac_objext; then
20739 ac_header_compiler=yes
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 ac_header_compiler=no
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20749 echo "${ECHO_T}$ac_header_compiler" >&6; }
20751 # Is the header present?
20752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20754 cat >conftest.$ac_ext <<_ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 #include <$ac_header>
20762 if { (ac_try="$ac_cpp conftest.$ac_ext"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20770 grep -v '^ *+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } >/dev/null && {
20775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20776 test ! -s conftest.err
20778 ac_header_preproc=yes
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ac_header_preproc=no
20786 rm -f conftest.err conftest.$ac_ext
20787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20788 echo "${ECHO_T}$ac_header_preproc" >&6; }
20790 # So? What about this header?
20791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20797 ac_header_preproc=yes
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20813 ## ------------------------------------ ##
20814 ## Report this to opensource@google.com ##
20815 ## ------------------------------------ ##
20817 ) | sed "s/^/$as_me: WARNING: /" >&2
20820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 eval "$as_ac_Header=\$ac_header_preproc"
20827 ac_res=`eval echo '${'$as_ac_Header'}'`
20828 { echo "$as_me:$LINENO: result: $ac_res" >&5
20829 echo "${ECHO_T}$ac_res" >&6; }
20832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20833 cat >>confdefs.h <<_ACEOF
20834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20841 # For backtrace with glibc.
20843 for ac_header in execinfo.h
20845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 ac_res=`eval echo '${'$as_ac_Header'}'`
20853 { echo "$as_me:$LINENO: result: $ac_res" >&5
20854 echo "${ECHO_T}$ac_res" >&6; }
20856 # Is the header compilable?
20857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20859 cat >conftest.$ac_ext <<_ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 $ac_includes_default
20866 #include <$ac_header>
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20885 ac_header_compiler=yes
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 ac_header_compiler=no
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20895 echo "${ECHO_T}$ac_header_compiler" >&6; }
20897 # Is the header present?
20898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 #include <$ac_header>
20908 if { (ac_try="$ac_cpp conftest.$ac_ext"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20916 grep -v '^ *+' conftest.er1 >conftest.err
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } >/dev/null && {
20921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20924 ac_header_preproc=yes
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_header_preproc=no
20932 rm -f conftest.err conftest.$ac_ext
20933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20934 echo "${ECHO_T}$ac_header_preproc" >&6; }
20936 # So? What about this header?
20937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20943 ac_header_preproc=yes
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20959 ## ------------------------------------ ##
20960 ## Report this to opensource@google.com ##
20961 ## ------------------------------------ ##
20963 ) | sed "s/^/$as_me: WARNING: /" >&2
20966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 eval "$as_ac_Header=\$ac_header_preproc"
20973 ac_res=`eval echo '${'$as_ac_Header'}'`
20974 { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20979 cat >>confdefs.h <<_ACEOF
20980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20987 # For backtrace with libunwind.
20989 for ac_header in libunwind.h
20991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 ac_res=`eval echo '${'$as_ac_Header'}'`
20999 { echo "$as_me:$LINENO: result: $ac_res" >&5
21000 echo "${ECHO_T}$ac_res" >&6; }
21002 # Is the header compilable?
21003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 $ac_includes_default
21012 #include <$ac_header>
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_compile") 2>conftest.er1
21023 grep -v '^ *+' conftest.er1 >conftest.err
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest.$ac_objext; then
21031 ac_header_compiler=yes
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 ac_header_compiler=no
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21041 echo "${ECHO_T}$ac_header_compiler" >&6; }
21043 # Is the header present?
21044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include <$ac_header>
21054 if { (ac_try="$ac_cpp conftest.$ac_ext"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } >/dev/null && {
21067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21070 ac_header_preproc=yes
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_header_preproc=no
21078 rm -f conftest.err conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21080 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082 # So? What about this header?
21083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21089 ac_header_preproc=yes
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21105 ## ------------------------------------ ##
21106 ## Report this to opensource@google.com ##
21107 ## ------------------------------------ ##
21109 ) | sed "s/^/$as_me: WARNING: /" >&2
21112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21117 eval "$as_ac_Header=\$ac_header_preproc"
21119 ac_res=`eval echo '${'$as_ac_Header'}'`
21120 { echo "$as_me:$LINENO: result: $ac_res" >&5
21121 echo "${ECHO_T}$ac_res" >&6; }
21124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21125 cat >>confdefs.h <<_ACEOF
21126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21134 for ac_header in ucontext.h
21136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 ac_res=`eval echo '${'$as_ac_Header'}'`
21144 { echo "$as_me:$LINENO: result: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21147 # Is the header compilable?
21148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21150 cat >conftest.$ac_ext <<_ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 $ac_includes_default
21157 #include <$ac_header>
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_compile") 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest.$ac_objext; then
21176 ac_header_compiler=yes
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_compiler=no
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21186 echo "${ECHO_T}$ac_header_compiler" >&6; }
21188 # Is the header present?
21189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21191 cat >conftest.$ac_ext <<_ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 #include <$ac_header>
21199 if { (ac_try="$ac_cpp conftest.$ac_ext"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } >/dev/null && {
21212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21215 ac_header_preproc=yes
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_header_preproc=no
21223 rm -f conftest.err conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6; }
21227 # So? What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21234 ac_header_preproc=yes
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21250 ## ------------------------------------ ##
21251 ## Report this to opensource@google.com ##
21252 ## ------------------------------------ ##
21254 ) | sed "s/^/$as_me: WARNING: /" >&2
21257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 eval "$as_ac_Header=\$ac_header_preproc"
21264 ac_res=`eval echo '${'$as_ac_Header'}'`
21265 { echo "$as_me:$LINENO: result: $ac_res" >&5
21266 echo "${ECHO_T}$ac_res" >&6; }
21269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21270 cat >>confdefs.h <<_ACEOF
21271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21279 for ac_header in sys/utsname.h
21281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 ac_res=`eval echo '${'$as_ac_Header'}'`
21289 { echo "$as_me:$LINENO: result: $ac_res" >&5
21290 echo "${ECHO_T}$ac_res" >&6; }
21292 # Is the header compilable?
21293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 $ac_includes_default
21302 #include <$ac_header>
21304 rm -f conftest.$ac_objext
21305 if { (ac_try="$ac_compile"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_compile") 2>conftest.er1
21313 grep -v '^ *+' conftest.er1 >conftest.err
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } && {
21318 test -z "$ac_c_werror_flag" ||
21319 test ! -s conftest.err
21320 } && test -s conftest.$ac_objext; then
21321 ac_header_compiler=yes
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21326 ac_header_compiler=no
21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21331 echo "${ECHO_T}$ac_header_compiler" >&6; }
21333 # Is the header present?
21334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21336 cat >conftest.$ac_ext <<_ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 #include <$ac_header>
21344 if { (ac_try="$ac_cpp conftest.$ac_ext"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } >/dev/null && {
21357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21360 ac_header_preproc=yes
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 ac_header_preproc=no
21368 rm -f conftest.err conftest.$ac_ext
21369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21370 echo "${ECHO_T}$ac_header_preproc" >&6; }
21372 # So? What about this header?
21373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21379 ac_header_preproc=yes
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21395 ## ------------------------------------ ##
21396 ## Report this to opensource@google.com ##
21397 ## ------------------------------------ ##
21399 ) | sed "s/^/$as_me: WARNING: /" >&2
21402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 eval "$as_ac_Header=\$ac_header_preproc"
21409 ac_res=`eval echo '${'$as_ac_Header'}'`
21410 { echo "$as_me:$LINENO: result: $ac_res" >&5
21411 echo "${ECHO_T}$ac_res" >&6; }
21414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21415 cat >>confdefs.h <<_ACEOF
21416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21424 for ac_header in pwd.h
21426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21433 ac_res=`eval echo '${'$as_ac_Header'}'`
21434 { echo "$as_me:$LINENO: result: $ac_res" >&5
21435 echo "${ECHO_T}$ac_res" >&6; }
21437 # Is the header compilable?
21438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21440 cat >conftest.$ac_ext <<_ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 $ac_includes_default
21447 #include <$ac_header>
21449 rm -f conftest.$ac_objext
21450 if { (ac_try="$ac_compile"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_compile") 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } && {
21463 test -z "$ac_c_werror_flag" ||
21464 test ! -s conftest.err
21465 } && test -s conftest.$ac_objext; then
21466 ac_header_compiler=yes
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_header_compiler=no
21474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21476 echo "${ECHO_T}$ac_header_compiler" >&6; }
21478 # Is the header present?
21479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 #include <$ac_header>
21489 if { (ac_try="$ac_cpp conftest.$ac_ext"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21497 grep -v '^ *+' conftest.er1 >conftest.err
21499 cat conftest.err >&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } >/dev/null && {
21502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21503 test ! -s conftest.err
21505 ac_header_preproc=yes
21507 echo "$as_me: failed program was:" >&5
21508 sed 's/^/| /' conftest.$ac_ext >&5
21510 ac_header_preproc=no
21513 rm -f conftest.err conftest.$ac_ext
21514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21515 echo "${ECHO_T}$ac_header_preproc" >&6; }
21517 # So? What about this header?
21518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21524 ac_header_preproc=yes
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21540 ## ------------------------------------ ##
21541 ## Report this to opensource@google.com ##
21542 ## ------------------------------------ ##
21544 ) | sed "s/^/$as_me: WARNING: /" >&2
21547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 eval "$as_ac_Header=\$ac_header_preproc"
21554 ac_res=`eval echo '${'$as_ac_Header'}'`
21555 { echo "$as_me:$LINENO: result: $ac_res" >&5
21556 echo "${ECHO_T}$ac_res" >&6; }
21559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21560 cat >>confdefs.h <<_ACEOF
21561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21569 for ac_header in syslog.h
21571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 ac_res=`eval echo '${'$as_ac_Header'}'`
21579 { echo "$as_me:$LINENO: result: $ac_res" >&5
21580 echo "${ECHO_T}$ac_res" >&6; }
21582 # Is the header compilable?
21583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 $ac_includes_default
21592 #include <$ac_header>
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_compile") 2>conftest.er1
21603 grep -v '^ *+' conftest.er1 >conftest.err
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } && {
21608 test -z "$ac_c_werror_flag" ||
21609 test ! -s conftest.err
21610 } && test -s conftest.$ac_objext; then
21611 ac_header_compiler=yes
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ac_header_compiler=no
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21621 echo "${ECHO_T}$ac_header_compiler" >&6; }
21623 # Is the header present?
21624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21626 cat >conftest.$ac_ext <<_ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 #include <$ac_header>
21634 if { (ac_try="$ac_cpp conftest.$ac_ext"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21642 grep -v '^ *+' conftest.er1 >conftest.err
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } >/dev/null && {
21647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21650 ac_header_preproc=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_header_preproc=no
21658 rm -f conftest.err conftest.$ac_ext
21659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21660 echo "${ECHO_T}$ac_header_preproc" >&6; }
21662 # So? What about this header?
21663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21669 ac_header_preproc=yes
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21685 ## ------------------------------------ ##
21686 ## Report this to opensource@google.com ##
21687 ## ------------------------------------ ##
21689 ) | sed "s/^/$as_me: WARNING: /" >&2
21692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 eval "$as_ac_Header=\$ac_header_preproc"
21699 ac_res=`eval echo '${'$as_ac_Header'}'`
21700 { echo "$as_me:$LINENO: result: $ac_res" >&5
21701 echo "${ECHO_T}$ac_res" >&6; }
21704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21705 cat >>confdefs.h <<_ACEOF
21706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21714 for ac_header in sys/time.h
21716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21721 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 ac_res=`eval echo '${'$as_ac_Header'}'`
21724 { echo "$as_me:$LINENO: result: $ac_res" >&5
21725 echo "${ECHO_T}$ac_res" >&6; }
21727 # Is the header compilable?
21728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21730 cat >conftest.$ac_ext <<_ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736 $ac_includes_default
21737 #include <$ac_header>
21739 rm -f conftest.$ac_objext
21740 if { (ac_try="$ac_compile"
21741 case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_compile") 2>conftest.er1
21748 grep -v '^ *+' conftest.er1 >conftest.err
21750 cat conftest.err >&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } && {
21753 test -z "$ac_c_werror_flag" ||
21754 test ! -s conftest.err
21755 } && test -s conftest.$ac_objext; then
21756 ac_header_compiler=yes
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_header_compiler=no
21764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21766 echo "${ECHO_T}$ac_header_compiler" >&6; }
21768 # Is the header present?
21769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21771 cat >conftest.$ac_ext <<_ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 #include <$ac_header>
21779 if { (ac_try="$ac_cpp conftest.$ac_ext"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } >/dev/null && {
21792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21795 ac_header_preproc=yes
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ac_header_preproc=no
21803 rm -f conftest.err conftest.$ac_ext
21804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21805 echo "${ECHO_T}$ac_header_preproc" >&6; }
21807 # So? What about this header?
21808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21814 ac_header_preproc=yes
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21830 ## ------------------------------------ ##
21831 ## Report this to opensource@google.com ##
21832 ## ------------------------------------ ##
21834 ) | sed "s/^/$as_me: WARNING: /" >&2
21837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 eval "$as_ac_Header=\$ac_header_preproc"
21844 ac_res=`eval echo '${'$as_ac_Header'}'`
21845 { echo "$as_me:$LINENO: result: $ac_res" >&5
21846 echo "${ECHO_T}$ac_res" >&6; }
21849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21850 cat >>confdefs.h <<_ACEOF
21851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21859 for ac_header in glob.h
21861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 ac_res=`eval echo '${'$as_ac_Header'}'`
21869 { echo "$as_me:$LINENO: result: $ac_res" >&5
21870 echo "${ECHO_T}$ac_res" >&6; }
21872 # Is the header compilable?
21873 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21875 cat >conftest.$ac_ext <<_ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 $ac_includes_default
21882 #include <$ac_header>
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_compile") 2>conftest.er1
21893 grep -v '^ *+' conftest.er1 >conftest.err
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } && {
21898 test -z "$ac_c_werror_flag" ||
21899 test ! -s conftest.err
21900 } && test -s conftest.$ac_objext; then
21901 ac_header_compiler=yes
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 ac_header_compiler=no
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21911 echo "${ECHO_T}$ac_header_compiler" >&6; }
21913 # Is the header present?
21914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21916 cat >conftest.$ac_ext <<_ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21922 #include <$ac_header>
21924 if { (ac_try="$ac_cpp conftest.$ac_ext"
21925 case "(($ac_try" in
21926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927 *) ac_try_echo=$ac_try;;
21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21932 grep -v '^ *+' conftest.er1 >conftest.err
21934 cat conftest.err >&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } >/dev/null && {
21937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21938 test ! -s conftest.err
21940 ac_header_preproc=yes
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21945 ac_header_preproc=no
21948 rm -f conftest.err conftest.$ac_ext
21949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21950 echo "${ECHO_T}$ac_header_preproc" >&6; }
21952 # So? What about this header?
21953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21959 ac_header_preproc=yes
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21975 ## ------------------------------------ ##
21976 ## Report this to opensource@google.com ##
21977 ## ------------------------------------ ##
21979 ) | sed "s/^/$as_me: WARNING: /" >&2
21982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 eval "$as_ac_Header=\$ac_header_preproc"
21989 ac_res=`eval echo '${'$as_ac_Header'}'`
21990 { echo "$as_me:$LINENO: result: $ac_res" >&5
21991 echo "${ECHO_T}$ac_res" >&6; }
21994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21995 cat >>confdefs.h <<_ACEOF
21996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22004 { echo "$as_me:$LINENO: checking for void *" >&5
22005 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22006 if test "${ac_cv_type_void_p+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 $ac_includes_default
22016 typedef void * ac__type_new_;
22020 if ((ac__type_new_ *) 0)
22022 if (sizeof (ac__type_new_))
22028 rm -f conftest.$ac_objext
22029 if { (ac_try="$ac_compile"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_compile") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } && {
22042 test -z "$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22044 } && test -s conftest.$ac_objext; then
22045 ac_cv_type_void_p=yes
22047 echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22050 ac_cv_type_void_p=no
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22055 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22056 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22058 # The cast to long int works around a bug in the HP C Compiler
22059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22061 # This bug is HP SR number 8606223364.
22062 { echo "$as_me:$LINENO: checking size of void *" >&5
22063 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22064 if test "${ac_cv_sizeof_void_p+set}" = set; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 if test "$cross_compiling" = yes; then
22068 # Depending upon the size, compute the lo and hi bounds.
22069 cat >conftest.$ac_ext <<_ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 $ac_includes_default
22076 typedef void * ac__type_sizeof_;
22080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22087 rm -f conftest.$ac_objext
22088 if { (ac_try="$ac_compile"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_compile") 2>conftest.er1
22096 grep -v '^ *+' conftest.er1 >conftest.err
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } && {
22101 test -z "$ac_c_werror_flag" ||
22102 test ! -s conftest.err
22103 } && test -s conftest.$ac_objext; then
22106 cat >conftest.$ac_ext <<_ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 $ac_includes_default
22113 typedef void * ac__type_sizeof_;
22117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22124 rm -f conftest.$ac_objext
22125 if { (ac_try="$ac_compile"
22126 case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131 (eval "$ac_compile") 2>conftest.er1
22133 grep -v '^ *+' conftest.er1 >conftest.err
22135 cat conftest.err >&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } && {
22138 test -z "$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22140 } && test -s conftest.$ac_objext; then
22141 ac_hi=$ac_mid; break
22143 echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 ac_lo=`expr $ac_mid + 1`
22147 if test $ac_lo -le $ac_mid; then
22151 ac_mid=`expr 2 '*' $ac_mid + 1`
22154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22160 cat >conftest.$ac_ext <<_ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22166 $ac_includes_default
22167 typedef void * ac__type_sizeof_;
22171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22178 rm -f conftest.$ac_objext
22179 if { (ac_try="$ac_compile"
22180 case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_compile") 2>conftest.er1
22187 grep -v '^ *+' conftest.er1 >conftest.err
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } && {
22192 test -z "$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22194 } && test -s conftest.$ac_objext; then
22197 cat >conftest.$ac_ext <<_ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 $ac_includes_default
22204 typedef void * ac__type_sizeof_;
22208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_compile") 2>conftest.er1
22224 grep -v '^ *+' conftest.er1 >conftest.err
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest.$ac_objext; then
22232 ac_lo=$ac_mid; break
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 ac_hi=`expr '(' $ac_mid ')' - 1`
22238 if test $ac_mid -le $ac_hi; then
22242 ac_mid=`expr 2 '*' $ac_mid`
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 # Binary search between lo and hi bounds.
22259 while test "x$ac_lo" != "x$ac_hi"; do
22260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22261 cat >conftest.$ac_ext <<_ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22267 $ac_includes_default
22268 typedef void * ac__type_sizeof_;
22272 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22279 rm -f conftest.$ac_objext
22280 if { (ac_try="$ac_compile"
22281 case "(($ac_try" in
22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_compile") 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest.$ac_objext; then
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ac_lo=`expr '(' $ac_mid ')' + 1`
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22307 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22308 '') if test "$ac_cv_type_void_p" = yes; then
22309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22310 See \`config.log' for more details." >&5
22311 echo "$as_me: error: cannot compute sizeof (void *)
22312 See \`config.log' for more details." >&2;}
22313 { (exit 77); exit 77; }; }
22315 ac_cv_sizeof_void_p=0
22319 cat >conftest.$ac_ext <<_ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h. */
22325 $ac_includes_default
22326 typedef void * ac__type_sizeof_;
22327 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22328 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22330 #include <stdlib.h>
22335 FILE *f = fopen ("conftest.val", "w");
22338 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22340 long int i = longval ();
22341 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22343 fprintf (f, "%ld\n", i);
22347 unsigned long int i = ulongval ();
22348 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22350 fprintf (f, "%lu\n", i);
22352 return ferror (f) || fclose (f) != 0;
22358 rm -f conftest$ac_exeext
22359 if { (ac_try="$ac_link"
22360 case "(($ac_try" in
22361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362 *) ac_try_echo=$ac_try;;
22364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22365 (eval "$ac_link") 2>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22369 { (case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_try") 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 ac_cv_sizeof_void_p=`cat conftest.val`
22380 echo "$as_me: program exited with status $ac_status" >&5
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ( exit $ac_status )
22385 if test "$ac_cv_type_void_p" = yes; then
22386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22387 See \`config.log' for more details." >&5
22388 echo "$as_me: error: cannot compute sizeof (void *)
22389 See \`config.log' for more details." >&2;}
22390 { (exit 77); exit 77; }; }
22392 ac_cv_sizeof_void_p=0
22395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22399 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22400 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22404 cat >>confdefs.h <<_ACEOF
22405 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22410 # These are the types I need. We look for them in either stdint.h,
22411 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22412 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22413 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22414 if test "${ac_cv_type_uint16_t+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 cat >conftest.$ac_ext <<_ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 $ac_includes_default
22424 typedef uint16_t ac__type_new_;
22428 if ((ac__type_new_ *) 0)
22430 if (sizeof (ac__type_new_))
22436 rm -f conftest.$ac_objext
22437 if { (ac_try="$ac_compile"
22438 case "(($ac_try" in
22439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22440 *) ac_try_echo=$ac_try;;
22442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22443 (eval "$ac_compile") 2>conftest.er1
22445 grep -v '^ *+' conftest.er1 >conftest.err
22447 cat conftest.err >&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } && {
22450 test -z "$ac_c_werror_flag" ||
22451 test ! -s conftest.err
22452 } && test -s conftest.$ac_objext; then
22453 ac_cv_type_uint16_t=yes
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ac_cv_type_uint16_t=no
22461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22464 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22465 if test $ac_cv_type_uint16_t = yes; then
22466 ac_cv_have_uint16_t=1
22468 ac_cv_have_uint16_t=0
22471 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22472 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22473 if test "${ac_cv_type_u_int16_t+set}" = set; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 cat >conftest.$ac_ext <<_ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h. */
22482 $ac_includes_default
22483 typedef u_int16_t ac__type_new_;
22487 if ((ac__type_new_ *) 0)
22489 if (sizeof (ac__type_new_))
22495 rm -f conftest.$ac_objext
22496 if { (ac_try="$ac_compile"
22497 case "(($ac_try" in
22498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_compile") 2>conftest.er1
22504 grep -v '^ *+' conftest.er1 >conftest.err
22506 cat conftest.err >&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } && {
22509 test -z "$ac_c_werror_flag" ||
22510 test ! -s conftest.err
22511 } && test -s conftest.$ac_objext; then
22512 ac_cv_type_u_int16_t=yes
22514 echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 ac_cv_type_u_int16_t=no
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22523 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22524 if test $ac_cv_type_u_int16_t = yes; then
22525 ac_cv_have_u_int16_t=1
22527 ac_cv_have_u_int16_t=0
22530 { echo "$as_me:$LINENO: checking for __uint16" >&5
22531 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22532 if test "${ac_cv_type___uint16+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 cat >conftest.$ac_ext <<_ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22541 $ac_includes_default
22542 typedef __uint16 ac__type_new_;
22546 if ((ac__type_new_ *) 0)
22548 if (sizeof (ac__type_new_))
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
22571 ac_cv_type___uint16=yes
22573 echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22576 ac_cv_type___uint16=no
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22582 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22583 if test $ac_cv_type___uint16 = yes; then
22584 ac_cv_have___uint16=1
22586 ac_cv_have___uint16=0
22590 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22591 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22592 if test "${ac_cv_func_sigaltstack+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22603 #define sigaltstack innocuous_sigaltstack
22605 /* System header to define __stub macros and hopefully few prototypes,
22606 which can conflict with char sigaltstack (); below.
22607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22608 <limits.h> exists even on freestanding compilers. */
22611 # include <limits.h>
22613 # include <assert.h>
22618 /* Override any GCC internal prototype to avoid an error.
22619 Use char because int might match the return type of a GCC
22620 builtin and then its argument prototype would still apply. */
22624 char sigaltstack ();
22625 /* The GNU C library defines this for functions which it implements
22626 to always fail with ENOSYS. Some functions are actually named
22627 something starting with __ and the normal name is an alias. */
22628 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22635 return sigaltstack ();
22640 rm -f conftest.$ac_objext conftest$ac_exeext
22641 if { (ac_try="$ac_link"
22642 case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647 (eval "$ac_link") 2>conftest.er1
22649 grep -v '^ *+' conftest.er1 >conftest.err
22651 cat conftest.err >&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } && {
22654 test -z "$ac_c_werror_flag" ||
22655 test ! -s conftest.err
22656 } && test -s conftest$ac_exeext &&
22657 $as_test_x conftest$ac_exeext; then
22658 ac_cv_func_sigaltstack=yes
22660 echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22663 ac_cv_func_sigaltstack=no
22666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22667 conftest$ac_exeext conftest.$ac_ext
22669 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22670 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22671 if test $ac_cv_func_sigaltstack = yes; then
22673 cat >>confdefs.h <<\_ACEOF
22674 #define HAVE_SIGALTSTACK 1
22679 { echo "$as_me:$LINENO: checking for dladdr" >&5
22680 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22681 if test "${ac_cv_func_dladdr+set}" = set; then
22682 echo $ECHO_N "(cached) $ECHO_C" >&6
22684 cat >conftest.$ac_ext <<_ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h. */
22690 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22692 #define dladdr innocuous_dladdr
22694 /* System header to define __stub macros and hopefully few prototypes,
22695 which can conflict with char dladdr (); below.
22696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22697 <limits.h> exists even on freestanding compilers. */
22700 # include <limits.h>
22702 # include <assert.h>
22707 /* Override any GCC internal prototype to avoid an error.
22708 Use char because int might match the return type of a GCC
22709 builtin and then its argument prototype would still apply. */
22714 /* The GNU C library defines this for functions which it implements
22715 to always fail with ENOSYS. Some functions are actually named
22716 something starting with __ and the normal name is an alias. */
22717 #if defined __stub_dladdr || defined __stub___dladdr
22729 rm -f conftest.$ac_objext conftest$ac_exeext
22730 if { (ac_try="$ac_link"
22731 case "(($ac_try" in
22732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736 (eval "$ac_link") 2>conftest.er1
22738 grep -v '^ *+' conftest.er1 >conftest.err
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } && {
22743 test -z "$ac_c_werror_flag" ||
22744 test ! -s conftest.err
22745 } && test -s conftest$ac_exeext &&
22746 $as_test_x conftest$ac_exeext; then
22747 ac_cv_func_dladdr=yes
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ac_cv_func_dladdr=no
22755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22756 conftest$ac_exeext conftest.$ac_ext
22758 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22759 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22760 if test $ac_cv_func_dladdr = yes; then
22762 cat >>confdefs.h <<\_ACEOF
22763 #define HAVE_DLADDR 1
22768 { echo "$as_me:$LINENO: checking for fcntl" >&5
22769 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22770 if test "${ac_cv_func_fcntl+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 cat >conftest.$ac_ext <<_ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22781 #define fcntl innocuous_fcntl
22783 /* System header to define __stub macros and hopefully few prototypes,
22784 which can conflict with char fcntl (); below.
22785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22786 <limits.h> exists even on freestanding compilers. */
22789 # include <limits.h>
22791 # include <assert.h>
22796 /* Override any GCC internal prototype to avoid an error.
22797 Use char because int might match the return type of a GCC
22798 builtin and then its argument prototype would still apply. */
22803 /* The GNU C library defines this for functions which it implements
22804 to always fail with ENOSYS. Some functions are actually named
22805 something starting with __ and the normal name is an alias. */
22806 #if defined __stub_fcntl || defined __stub___fcntl
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_link") 2>conftest.er1
22827 grep -v '^ *+' conftest.er1 >conftest.err
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } && {
22832 test -z "$ac_c_werror_flag" ||
22833 test ! -s conftest.err
22834 } && test -s conftest$ac_exeext &&
22835 $as_test_x conftest$ac_exeext; then
22836 ac_cv_func_fcntl=yes
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_cv_func_fcntl=no
22844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22845 conftest$ac_exeext conftest.$ac_ext
22847 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22848 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22849 if test $ac_cv_func_fcntl = yes; then
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_FCNTL 1
22859 { echo "$as_me:$LINENO: checking for __attribute__" >&5
22860 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22861 if test "${ac_cv___attribute__+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22871 #include <stdlib.h>
22872 static void foo(void) __attribute__ ((unused));
22873 void foo(void) { exit(1); }
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889 (eval "$ac_compile") 2>conftest.er1
22891 grep -v '^ *+' conftest.er1 >conftest.err
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } && {
22896 test -z "$ac_c_werror_flag" ||
22897 test ! -s conftest.err
22898 } && test -s conftest.$ac_objext; then
22899 ac_cv___attribute__=yes
22901 echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22904 ac_cv___attribute__=no
22908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911 if test "$ac_cv___attribute__" = "yes"; then
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE___ATTRIBUTE__ 1
22918 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22919 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22921 # We only care about these two attributes.
22922 if test x"$ac_cv___attribute__" = x"yes"; then
22923 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22924 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22926 ac_cv___attribute___noreturn=
22927 ac_cv___attribute___printf_4_5=
22931 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22932 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22933 if test "${ac_cv___builtin_expect+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 cat >conftest.$ac_ext <<_ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22943 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22952 rm -f conftest.$ac_objext
22953 if { (ac_try="$ac_compile"
22954 case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959 (eval "$ac_compile") 2>conftest.er1
22961 grep -v '^ *+' conftest.er1 >conftest.err
22963 cat conftest.err >&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } && {
22966 test -z "$ac_c_werror_flag" ||
22967 test ! -s conftest.err
22968 } && test -s conftest.$ac_objext; then
22969 ac_cv___builtin_expect=yes
22971 echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22974 ac_cv___builtin_expect=no
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981 if test "$ac_cv___builtin_expect" = "yes"; then
22983 cat >>confdefs.h <<\_ACEOF
22984 #define HAVE___BUILTIN_EXPECT 1
22988 { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22989 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22991 if test x"$ac_cv___builtin_expect" = x"yes"; then
22992 ac_cv_have___builtin_expect=1
22994 ac_cv_have___builtin_expect=0
22998 { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22999 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
23000 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23004 cat >conftest.$ac_ext <<_ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23010 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (ac_try="$ac_link"
23021 case "(($ac_try" in
23022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023 *) ac_try_echo=$ac_try;;
23025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23026 (eval "$ac_link") 2>conftest.er1
23028 grep -v '^ *+' conftest.er1 >conftest.err
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } && {
23033 test -z "$ac_c_werror_flag" ||
23034 test ! -s conftest.err
23035 } && test -s conftest$ac_exeext &&
23036 $as_test_x conftest$ac_exeext; then
23037 ac_cv___sync_val_compare_and_swap=yes
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23042 ac_cv___sync_val_compare_and_swap=no
23046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23047 conftest$ac_exeext conftest.$ac_ext
23050 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23052 cat >>confdefs.h <<\_ACEOF
23053 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23057 { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23058 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23061 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23062 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23063 # Check whether --enable-frame_pointers was given.
23064 if test "${enable_frame_pointers+set}" = set; then
23065 enableval=$enable_frame_pointers; enable_frame_pointers=no
23068 cat >conftest.$ac_ext <<_ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23078 return __x86_64__ == 1 ? 0 : 1
23083 rm -f conftest.$ac_objext
23084 if { (ac_try="$ac_compile"
23085 case "(($ac_try" in
23086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087 *) ac_try_echo=$ac_try;;
23089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23090 (eval "$ac_compile") 2>conftest.er1
23092 grep -v '^ *+' conftest.er1 >conftest.err
23094 cat conftest.err >&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } && {
23097 test -z "$ac_c_werror_flag" ||
23098 test ! -s conftest.err
23099 } && test -s conftest.$ac_objext; then
23102 echo "$as_me: failed program was:" >&5
23103 sed 's/^/| /' conftest.$ac_ext >&5
23108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23109 if test "$enable_frame_pointers" = yes; then
23110 ENABLE_FRAME_POINTERS_TRUE=
23111 ENABLE_FRAME_POINTERS_FALSE='#'
23113 ENABLE_FRAME_POINTERS_TRUE='#'
23114 ENABLE_FRAME_POINTERS_FALSE=
23117 if test "$is_x86_64" = yes; then
23126 # Some of the code in this directory depends on pthreads
23131 ac_cpp='$CPP $CPPFLAGS'
23132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23138 # We used to check for pthread.h first, but this fails if pthread.h
23139 # requires special compiler flags (e.g. on True64 or Sequent).
23140 # It gets checked for in the link test anyway.
23142 # First of all, check if the user has set any of the PTHREAD_LIBS,
23143 # etcetera environment variables, and if threads linking works using
23145 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23146 save_CFLAGS="$CFLAGS"
23147 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23149 LIBS="$PTHREAD_LIBS $LIBS"
23150 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23151 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23159 /* Override any GCC internal prototype to avoid an error.
23160 Use char because int might match the return type of a GCC
23161 builtin and then its argument prototype would still apply. */
23165 char pthread_join ();
23169 return pthread_join ();
23174 rm -f conftest.$ac_objext conftest$ac_exeext
23175 if { (ac_try="$ac_link"
23176 case "(($ac_try" in
23177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178 *) ac_try_echo=$ac_try;;
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_link") 2>conftest.er1
23183 grep -v '^ *+' conftest.er1 >conftest.err
23185 cat conftest.err >&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest$ac_exeext &&
23191 $as_test_x conftest$ac_exeext; then
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23201 conftest$ac_exeext conftest.$ac_ext
23202 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23203 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23204 if test x"$acx_pthread_ok" = xno; then
23209 CFLAGS="$save_CFLAGS"
23212 # We must check for the threads library under a number of different
23213 # names; the ordering is very important because some systems
23214 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23215 # libraries is broken (non-POSIX).
23217 # Create a list of thread flags to try. Items starting with a "-" are
23218 # C compiler flags, and other items are library names, except for "none"
23219 # which indicates that we try without any flags at all, and "pthread-config"
23220 # which is a program returning the flags for the Pth emulation library.
23222 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23224 # The ordering *is* (sometimes) important. Some notes on the
23225 # individual items follow:
23227 # pthreads: AIX (must check this before -lpthread)
23228 # none: in case threads are in libc; should be tried before -Kthread and
23229 # other compiler flags to prevent continual compiler warnings
23230 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23231 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23232 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23233 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23234 # -pthreads: Solaris/gcc
23235 # -mthreads: Mingw32/gcc, Lynx/gcc
23236 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23237 # doesn't hurt to check since this sometimes defines pthreads too;
23238 # also defines -D_REENTRANT)
23239 # ... -mt is also the pthreads flag for HP/aCC
23240 # pthread: Linux, etcetera
23241 # --thread-safe: KAI C++
23242 # pthread-config: use pthread-config program (for GNU Pth library)
23244 case "${host_cpu}-${host_os}" in
23247 # On Solaris (at least, for some versions), libc contains stubbed
23248 # (non-functional) versions of the pthreads routines, so link-based
23249 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
23250 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23251 # a function called by this macro, so we could check for that, but
23252 # who knows whether they'll stub that too in a future libc.) So,
23253 # we'll just look for -pthreads and -lpthread first:
23255 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23259 if test x"$acx_pthread_ok" = xno; then
23260 for flag in $acx_pthread_flags; do
23264 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23265 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23269 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23270 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23271 PTHREAD_CFLAGS="$flag"
23275 # Extract the first word of "pthread-config", so it can be a program name with args.
23276 set dummy pthread-config; ac_word=$2
23277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23279 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23282 if test -n "$acx_pthread_config"; then
23283 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23286 for as_dir in $PATH
23289 test -z "$as_dir" && as_dir=.
23290 for ac_exec_ext in '' $ac_executable_extensions; do
23291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23292 ac_cv_prog_acx_pthread_config="yes"
23293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23300 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23303 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23304 if test -n "$acx_pthread_config"; then
23305 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23306 echo "${ECHO_T}$acx_pthread_config" >&6; }
23308 { echo "$as_me:$LINENO: result: no" >&5
23309 echo "${ECHO_T}no" >&6; }
23313 if test x"$acx_pthread_config" = xno; then continue; fi
23314 PTHREAD_CFLAGS="`pthread-config --cflags`"
23315 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23319 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23320 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23321 PTHREAD_LIBS="-l$flag"
23326 save_CFLAGS="$CFLAGS"
23327 LIBS="$PTHREAD_LIBS $LIBS"
23328 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23330 # Check for various functions. We must include pthread.h,
23331 # since some functions may be macros. (On the Sequent, we
23332 # need a special flag -Kthread to make this header compile.)
23333 # We check for pthread_join because it is in -lpthread on IRIX
23334 # while pthread_create is in libc. We check for pthread_attr_init
23335 # due to DEC craziness with -lpthreads. We check for
23336 # pthread_cleanup_push because it is one of the few pthread
23337 # functions on Solaris that doesn't have a non-functional libc stub.
23338 # We try pthread_create on general principles.
23339 cat >conftest.$ac_ext <<_ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23345 #include <pthread.h>
23349 pthread_t th; pthread_join(th, 0);
23350 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23351 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23356 rm -f conftest.$ac_objext conftest$ac_exeext
23357 if { (ac_try="$ac_link"
23358 case "(($ac_try" in
23359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360 *) ac_try_echo=$ac_try;;
23362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23363 (eval "$ac_link") 2>conftest.er1
23365 grep -v '^ *+' conftest.er1 >conftest.err
23367 cat conftest.err >&5
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); } && {
23370 test -z "$ac_c_werror_flag" ||
23371 test ! -s conftest.err
23372 } && test -s conftest$ac_exeext &&
23373 $as_test_x conftest$ac_exeext; then
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23383 conftest$ac_exeext conftest.$ac_ext
23386 CFLAGS="$save_CFLAGS"
23388 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23389 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23390 if test "x$acx_pthread_ok" = xyes; then
23399 # Various other checks:
23400 if test "x$acx_pthread_ok" = xyes; then
23402 LIBS="$PTHREAD_LIBS $LIBS"
23403 save_CFLAGS="$CFLAGS"
23404 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23406 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23407 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23408 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23410 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23411 cat >conftest.$ac_ext <<_ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23417 #include <pthread.h>
23421 int attr=$attr; return attr;
23426 rm -f conftest.$ac_objext conftest$ac_exeext
23427 if { (ac_try="$ac_link"
23428 case "(($ac_try" in
23429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430 *) ac_try_echo=$ac_try;;
23432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23433 (eval "$ac_link") 2>conftest.er1
23435 grep -v '^ *+' conftest.er1 >conftest.err
23437 cat conftest.err >&5
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); } && {
23440 test -z "$ac_c_werror_flag" ||
23441 test ! -s conftest.err
23442 } && test -s conftest$ac_exeext &&
23443 $as_test_x conftest$ac_exeext; then
23444 attr_name=$attr; break
23446 echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23453 conftest$ac_exeext conftest.$ac_ext
23455 { echo "$as_me:$LINENO: result: $attr_name" >&5
23456 echo "${ECHO_T}$attr_name" >&6; }
23457 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23459 cat >>confdefs.h <<_ACEOF
23460 #define PTHREAD_CREATE_JOINABLE $attr_name
23465 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23466 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23468 case "${host_cpu}-${host_os}" in
23469 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23470 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23472 { echo "$as_me:$LINENO: result: ${flag}" >&5
23473 echo "${ECHO_T}${flag}" >&6; }
23474 if test "x$flag" != xno; then
23475 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23479 CFLAGS="$save_CFLAGS"
23480 # More AIX lossage: must compile with xlc_r or cc_r
23481 if test x"$GCC" != xyes; then
23482 for ac_prog in xlc_r cc_r
23484 # Extract the first word of "$ac_prog", so it can be a program name with args.
23485 set dummy $ac_prog; ac_word=$2
23486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23488 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23491 if test -n "$PTHREAD_CC"; then
23492 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23495 for as_dir in $PATH
23498 test -z "$as_dir" && as_dir=.
23499 for ac_exec_ext in '' $ac_executable_extensions; do
23500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23501 ac_cv_prog_PTHREAD_CC="$ac_prog"
23502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23511 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23512 if test -n "$PTHREAD_CC"; then
23513 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23514 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23516 { echo "$as_me:$LINENO: result: no" >&5
23517 echo "${ECHO_T}no" >&6; }
23521 test -n "$PTHREAD_CC" && break
23523 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23529 # The next part tries to detect GCC inconsistency with -shared on some
23530 # architectures and systems. The problem is that in certain
23531 # configurations, when -shared is specified, GCC "forgets" to
23532 # internally use various flags which are still necessary.
23535 # Prepare the flags
23537 save_CFLAGS="$CFLAGS"
23541 # Try with the flags determined by the earlier checks.
23543 # -Wl,-z,defs forces link-time symbol resolution, so that the
23544 # linking checks with -shared actually have any value
23546 # FIXME: -fPIC is required for -shared on many architectures,
23547 # so we specify it here, but the right way would probably be to
23548 # properly detect whether it is actually required.
23549 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23550 LIBS="$PTHREAD_LIBS $LIBS"
23553 # In order not to create several levels of indentation, we test
23554 # the value of "$done" until we find the cure or run out of ideas.
23557 # First, make sure the CFLAGS we added are actually accepted by our
23558 # compiler. If not (and OS X's ld, for instance, does not accept -z),
23559 # then we can't do this test.
23560 if test x"$done" = xno; then
23561 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23562 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23563 cat >conftest.$ac_ext <<_ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h. */
23578 rm -f conftest.$ac_objext conftest$ac_exeext
23579 if { (ac_try="$ac_link"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_link") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest$ac_exeext &&
23595 $as_test_x conftest$ac_exeext; then
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23605 conftest$ac_exeext conftest.$ac_ext
23607 if test "x$done" = xyes ; then
23608 { echo "$as_me:$LINENO: result: no" >&5
23609 echo "${ECHO_T}no" >&6; }
23611 { echo "$as_me:$LINENO: result: yes" >&5
23612 echo "${ECHO_T}yes" >&6; }
23616 if test x"$done" = xno; then
23617 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23618 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23619 cat >conftest.$ac_ext <<_ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23625 #include <pthread.h>
23629 pthread_t th; pthread_join(th, 0);
23630 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23631 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23636 rm -f conftest.$ac_objext conftest$ac_exeext
23637 if { (ac_try="$ac_link"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_link") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext &&
23653 $as_test_x conftest$ac_exeext; then
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23663 conftest$ac_exeext conftest.$ac_ext
23665 if test "x$done" = xyes; then
23666 { echo "$as_me:$LINENO: result: yes" >&5
23667 echo "${ECHO_T}yes" >&6; }
23669 { echo "$as_me:$LINENO: result: no" >&5
23670 echo "${ECHO_T}no" >&6; }
23675 # Linux gcc on some architectures such as mips/mipsel forgets
23678 if test x"$done" = xno; then
23679 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23680 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23681 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23682 cat >conftest.$ac_ext <<_ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23688 #include <pthread.h>
23692 pthread_t th; pthread_join(th, 0);
23693 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23694 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23699 rm -f conftest.$ac_objext conftest$ac_exeext
23700 if { (ac_try="$ac_link"
23701 case "(($ac_try" in
23702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23703 *) ac_try_echo=$ac_try;;
23705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23706 (eval "$ac_link") 2>conftest.er1
23708 grep -v '^ *+' conftest.er1 >conftest.err
23710 cat conftest.err >&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest$ac_exeext &&
23716 $as_test_x conftest$ac_exeext; then
23719 echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.$ac_ext >&5
23725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23726 conftest$ac_exeext conftest.$ac_ext
23728 if test "x$done" = xyes; then
23729 { echo "$as_me:$LINENO: result: yes" >&5
23730 echo "${ECHO_T}yes" >&6; }
23731 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23733 { echo "$as_me:$LINENO: result: no" >&5
23734 echo "${ECHO_T}no" >&6; }
23738 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23740 if test x"$done" = xno; then
23741 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23742 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23743 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23744 cat >conftest.$ac_ext <<_ACEOF
23747 cat confdefs.h >>conftest.$ac_ext
23748 cat >>conftest.$ac_ext <<_ACEOF
23749 /* end confdefs.h. */
23750 #include <pthread.h>
23754 pthread_t th; pthread_join(th, 0);
23755 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23756 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23761 rm -f conftest.$ac_objext conftest$ac_exeext
23762 if { (ac_try="$ac_link"
23763 case "(($ac_try" in
23764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_link") 2>conftest.er1
23770 grep -v '^ *+' conftest.er1 >conftest.err
23772 cat conftest.err >&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); } && {
23775 test -z "$ac_c_werror_flag" ||
23776 test ! -s conftest.err
23777 } && test -s conftest$ac_exeext &&
23778 $as_test_x conftest$ac_exeext; then
23781 echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23788 conftest$ac_exeext conftest.$ac_ext
23790 if test "x$done" = xyes; then
23791 { echo "$as_me:$LINENO: result: yes" >&5
23792 echo "${ECHO_T}yes" >&6; }
23793 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23795 { echo "$as_me:$LINENO: result: no" >&5
23796 echo "${ECHO_T}no" >&6; }
23799 if test x"$done" = xno; then
23800 # OK, we have run out of ideas
23801 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23802 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23804 # so it's not safe to assume that we may use pthreads
23808 CFLAGS="$save_CFLAGS"
23819 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23820 if test x"$acx_pthread_ok" = xyes; then
23822 cat >>confdefs.h <<\_ACEOF
23823 #define HAVE_PTHREAD 1
23832 ac_cpp='$CPP $CPPFLAGS'
23833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23838 if test x"$acx_pthread_ok" = x"yes"; then
23839 # To make libglog depend on libpthread on Linux, we need to add
23840 # -lpthread in addition to -pthread.
23842 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23843 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23844 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23845 echo $ECHO_N "(cached) $ECHO_C" >&6
23847 ac_check_lib_save_LIBS=$LIBS
23848 LIBS="-lpthread $LIBS"
23849 cat >conftest.$ac_ext <<_ACEOF
23852 cat confdefs.h >>conftest.$ac_ext
23853 cat >>conftest.$ac_ext <<_ACEOF
23854 /* end confdefs.h. */
23856 /* Override any GCC internal prototype to avoid an error.
23857 Use char because int might match the return type of a GCC
23858 builtin and then its argument prototype would still apply. */
23862 char pthread_self ();
23866 return pthread_self ();
23871 rm -f conftest.$ac_objext conftest$ac_exeext
23872 if { (ac_try="$ac_link"
23873 case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_link") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest$ac_exeext &&
23888 $as_test_x conftest$ac_exeext; then
23889 ac_cv_lib_pthread_pthread_self=yes
23891 echo "$as_me: failed program was:" >&5
23892 sed 's/^/| /' conftest.$ac_ext >&5
23894 ac_cv_lib_pthread_pthread_self=no
23897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23898 conftest$ac_exeext conftest.$ac_ext
23899 LIBS=$ac_check_lib_save_LIBS
23901 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23902 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23903 if test $ac_cv_lib_pthread_pthread_self = yes; then
23904 cat >>confdefs.h <<_ACEOF
23905 #define HAVE_LIBPTHREAD 1
23908 LIBS="-lpthread $LIBS"
23914 # Check if there is google-gflags library installed.
23915 SAVE_CFLAGS="$CFLAGS"
23918 # Check whether --with-gflags was given.
23919 if test "${with_gflags+set}" = set; then
23920 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
23921 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
23922 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
23923 LIBS="$LIBS $GFLAGS_LIBS"
23927 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23928 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23929 if test "${ac_cv_lib_gflags_main+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 ac_check_lib_save_LIBS=$LIBS
23933 LIBS="-lgflags $LIBS"
23934 cat >conftest.$ac_ext <<_ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23950 rm -f conftest.$ac_objext conftest$ac_exeext
23951 if { (ac_try="$ac_link"
23952 case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_link") 2>conftest.er1
23959 grep -v '^ *+' conftest.er1 >conftest.err
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest$ac_exeext &&
23967 $as_test_x conftest$ac_exeext; then
23968 ac_cv_lib_gflags_main=yes
23970 echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23973 ac_cv_lib_gflags_main=no
23976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23977 conftest$ac_exeext conftest.$ac_ext
23978 LIBS=$ac_check_lib_save_LIBS
23980 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23981 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23982 if test $ac_cv_lib_gflags_main = yes; then
23983 ac_cv_have_libgflags=1
23985 ac_cv_have_libgflags=0
23988 if test x"$ac_cv_have_libgflags" = x"1"; then
23990 cat >>confdefs.h <<\_ACEOF
23991 #define HAVE_LIB_GFLAGS 1
23994 if test x"$GFLAGS_LIBS" = x""; then
23995 GFLAGS_LIBS="-lgflags"
24001 CFLAGS="$SAVE_CFLAGS"
24004 # TODO(hamaji): Use official m4 macros provided by testing libraries
24005 # once the m4 macro of Google Mocking becomes ready.
24006 # Check if there is Google Test library installed.
24007 # Extract the first word of "gtest-config", so it can be a program name with args.
24008 set dummy gtest-config; ac_word=$2
24009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24011 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24014 if test -n "$GTEST_CONFIG"; then
24015 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
24017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24018 for as_dir in $PATH
24021 test -z "$as_dir" && as_dir=.
24022 for ac_exec_ext in '' $ac_executable_extensions; do
24023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24024 ac_cv_prog_GTEST_CONFIG=""yes""
24025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24034 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
24035 if test -n "$GTEST_CONFIG"; then
24036 { echo "$as_me:$LINENO: result: $GTEST_CONFIG" >&5
24037 echo "${ECHO_T}$GTEST_CONFIG" >&6; }
24039 { echo "$as_me:$LINENO: result: no" >&5
24040 echo "${ECHO_T}no" >&6; }
24044 if test x"$GTEST_CONFIG" = "xyes"; then
24045 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
24046 GTEST_LIBS=`gtest-config --ldflags --libs`
24048 cat >>confdefs.h <<\_ACEOF
24049 #define HAVE_LIB_GTEST 1
24053 # Check if there is Google Mocking library installed.
24054 # Extract the first word of "gmock-config", so it can be a program name with args.
24055 set dummy gmock-config; ac_word=$2
24056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24058 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24061 if test -n "$GMOCK_CONFIG"; then
24062 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
24064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24065 for as_dir in $PATH
24068 test -z "$as_dir" && as_dir=.
24069 for ac_exec_ext in '' $ac_executable_extensions; do
24070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24071 ac_cv_prog_GMOCK_CONFIG=""yes""
24072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24081 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
24082 if test -n "$GMOCK_CONFIG"; then
24083 { echo "$as_me:$LINENO: result: $GMOCK_CONFIG" >&5
24084 echo "${ECHO_T}$GMOCK_CONFIG" >&6; }
24086 { echo "$as_me:$LINENO: result: no" >&5
24087 echo "${ECHO_T}no" >&6; }
24091 if test x"$GMOCK_CONFIG" = "xyes"; then
24092 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
24093 GMOCK_LIBS=`gmock-config --ldflags --libs`
24095 cat >>confdefs.h <<\_ACEOF
24096 #define HAVE_LIB_GMOCK 1
24100 # We don't run test cases which use Google Mocking framework.
24105 # We'll use src/googletest.h for our unittests.
24109 if test x"$GMOCK_CONFIG" = "xyes"; then
24111 HAVE_GMOCK_FALSE='#'
24113 HAVE_GMOCK_TRUE='#'
24118 # We want to link in libunwind if it exists
24120 # Unfortunately, we need to check the header file in addition to the
24121 # lib file to check if libunwind is available since libunwind-0.98
24122 # doesn't install all necessary header files.
24123 if test x"$ac_cv_have_libunwind_h" = x"1"; then
24124 { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
24125 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
24126 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24129 ac_check_lib_save_LIBS=$LIBS
24130 LIBS="-lunwind $LIBS"
24131 cat >conftest.$ac_ext <<_ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24138 /* Override any GCC internal prototype to avoid an error.
24139 Use char because int might match the return type of a GCC
24140 builtin and then its argument prototype would still apply. */
24148 return backtrace ();
24153 rm -f conftest.$ac_objext conftest$ac_exeext
24154 if { (ac_try="$ac_link"
24155 case "(($ac_try" in
24156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157 *) ac_try_echo=$ac_try;;
24159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24160 (eval "$ac_link") 2>conftest.er1
24162 grep -v '^ *+' conftest.er1 >conftest.err
24164 cat conftest.err >&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } && {
24167 test -z "$ac_c_werror_flag" ||
24168 test ! -s conftest.err
24169 } && test -s conftest$ac_exeext &&
24170 $as_test_x conftest$ac_exeext; then
24171 ac_cv_lib_unwind_backtrace=yes
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 ac_cv_lib_unwind_backtrace=no
24179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24180 conftest$ac_exeext conftest.$ac_ext
24181 LIBS=$ac_check_lib_save_LIBS
24183 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
24184 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
24185 if test $ac_cv_lib_unwind_backtrace = yes; then
24186 UNWIND_LIBS=-lunwind
24191 if test x"$UNWIND_LIBS" != x""; then
24193 cat >>confdefs.h <<\_ACEOF
24194 #define HAVE_LIB_UNWIND 1
24199 # We'd like to use read/write locks in several places in the code.
24200 # See if our pthreads support extends to that. Note: for linux, it
24201 # does as long as you define _XOPEN_SOURCE appropriately.
24202 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24203 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24204 if test "${ac_rwlock+set}" = set; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24209 ac_cpp='$CPP $CPPFLAGS'
24210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24214 cat >conftest.$ac_ext <<_ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24220 #define _XOPEN_SOURCE 500
24221 #include <pthread.h>
24225 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24226 pthread_rwlock_rdlock(&l);
24232 rm -f conftest.$ac_objext
24233 if { (ac_try="$ac_compile"
24234 case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239 (eval "$ac_compile") 2>conftest.er1
24241 grep -v '^ *+' conftest.er1 >conftest.err
24243 cat conftest.err >&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); } && {
24246 test -z "$ac_c_werror_flag" ||
24247 test ! -s conftest.err
24248 } && test -s conftest.$ac_objext; then
24251 echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24259 ac_cpp='$CPP $CPPFLAGS'
24260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24266 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24267 echo "${ECHO_T}$ac_rwlock" >&6; }
24268 if test "$ac_rwlock" = yes; then
24270 cat >>confdefs.h <<\_ACEOF
24271 #define HAVE_RWLOCK 1
24277 # Find out what namespace 'normal' STL code lives in, and also what namespace
24278 # the user wants our classes to be defined in
24279 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24280 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24281 if test "${ac_cv_cxx_namespaces+set}" = set; then
24282 echo $ECHO_N "(cached) $ECHO_C" >&6
24286 ac_cpp='$CXXCPP $CPPFLAGS'
24287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24291 cat >conftest.$ac_ext <<_ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h. */
24298 namespace Inner { int i = 0; }}
24302 using namespace Outer::Inner; return i;
24307 rm -f conftest.$ac_objext
24308 if { (ac_try="$ac_compile"
24309 case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314 (eval "$ac_compile") 2>conftest.er1
24316 grep -v '^ *+' conftest.er1 >conftest.err
24318 cat conftest.err >&5
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } && {
24321 test -z "$ac_cxx_werror_flag" ||
24322 test ! -s conftest.err
24323 } && test -s conftest.$ac_objext; then
24324 ac_cv_cxx_namespaces=yes
24326 echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 ac_cv_cxx_namespaces=no
24332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24334 ac_cpp='$CPP $CPPFLAGS'
24335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24341 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24342 if test "$ac_cv_cxx_namespaces" = yes; then
24344 cat >>confdefs.h <<\_ACEOF
24345 #define HAVE_NAMESPACES 1
24349 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24350 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24351 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24352 echo $ECHO_N "(cached) $ECHO_C" >&6
24357 ac_cpp='$CXXCPP $CPPFLAGS'
24358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24362 cat >conftest.$ac_ext <<_ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h. */
24372 vector<int> t; return 0;
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384 (eval "$ac_compile") 2>conftest.er1
24386 grep -v '^ *+' conftest.er1 >conftest.err
24388 cat conftest.err >&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } && {
24391 test -z "$ac_cxx_werror_flag" ||
24392 test ! -s conftest.err
24393 } && test -s conftest.$ac_objext; then
24394 ac_cv_cxx_stl_namespace=none
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403 cat >conftest.$ac_ext <<_ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h. */
24413 std::vector<int> t; return 0;
24418 rm -f conftest.$ac_objext
24419 if { (ac_try="$ac_compile"
24420 case "(($ac_try" in
24421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422 *) ac_try_echo=$ac_try;;
24424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425 (eval "$ac_compile") 2>conftest.er1
24427 grep -v '^ *+' conftest.er1 >conftest.err
24429 cat conftest.err >&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } && {
24432 test -z "$ac_cxx_werror_flag" ||
24433 test ! -s conftest.err
24434 } && test -s conftest.$ac_objext; then
24435 ac_cv_cxx_stl_namespace=std
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24451 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24452 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24453 if test "$ac_cv_cxx_stl_namespace" = none; then
24455 cat >>confdefs.h <<\_ACEOF
24456 #define STL_NAMESPACE
24460 if test "$ac_cv_cxx_stl_namespace" = std; then
24462 cat >>confdefs.h <<\_ACEOF
24463 #define STL_NAMESPACE std
24468 google_namespace_default=google
24469 # Check whether --enable-namespace was given.
24470 if test "${enable_namespace+set}" = set; then
24471 enableval=$enable_namespace; case "$enableval" in
24472 yes) google_namespace="$google_namespace_default" ;;
24473 no) google_namespace="" ;;
24474 *) google_namespace="$enableval" ;;
24477 google_namespace="$google_namespace_default"
24480 if test -n "$google_namespace"; then
24481 ac_google_namespace="$google_namespace"
24482 ac_google_start_namespace="namespace $google_namespace {"
24483 ac_google_end_namespace="}"
24485 ac_google_namespace=""
24486 ac_google_start_namespace=""
24487 ac_google_end_namespace=""
24490 cat >>confdefs.h <<_ACEOF
24491 #define GOOGLE_NAMESPACE $ac_google_namespace
24495 cat >>confdefs.h <<_ACEOF
24496 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24500 cat >>confdefs.h <<_ACEOF
24501 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24506 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24507 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24508 if test "${ac_cv_cxx_using_operator+set}" = set; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24513 ac_cpp='$CXXCPP $CPPFLAGS'
24514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24518 cat >conftest.$ac_ext <<_ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24524 #include <iostream>
24525 std::ostream& operator<<(std::ostream&, struct s);
24529 using ::operator<<; return 0;
24534 rm -f conftest.$ac_objext
24535 if { (ac_try="$ac_compile"
24536 case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541 (eval "$ac_compile") 2>conftest.er1
24543 grep -v '^ *+' conftest.er1 >conftest.err
24545 cat conftest.err >&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); } && {
24548 test -z "$ac_cxx_werror_flag" ||
24549 test ! -s conftest.err
24550 } && test -s conftest.$ac_objext; then
24551 ac_cv_cxx_using_operator=1
24553 echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24556 ac_cv_cxx_using_operator=0
24559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24561 ac_cpp='$CPP $CPPFLAGS'
24562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24567 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24568 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24569 if test "$ac_cv_cxx_using_operator" = 1; then
24571 cat >>confdefs.h <<\_ACEOF
24572 #define HAVE_USING_OPERATOR 1
24577 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24578 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24579 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
24580 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24581 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24582 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
24583 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24584 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
24585 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
24586 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
24587 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
24588 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
24589 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
24590 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
24591 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
24592 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
24593 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
24594 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
24595 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
24596 pc_field_found=false
24597 for pc_field in $pc_fields; do
24598 if ! $pc_field_found; then
24599 cat >conftest.$ac_ext <<_ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24605 #define _GNU_SOURCE 1
24606 #include <ucontext.h>
24610 ucontext_t u; return u.$pc_field == 0;
24615 rm -f conftest.$ac_objext
24616 if { (ac_try="$ac_compile"
24617 case "(($ac_try" in
24618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619 *) ac_try_echo=$ac_try;;
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622 (eval "$ac_compile") 2>conftest.er1
24624 grep -v '^ *+' conftest.er1 >conftest.err
24626 cat conftest.err >&5
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); } && {
24629 test -z "$ac_c_werror_flag" ||
24630 test ! -s conftest.err
24631 } && test -s conftest.$ac_objext; then
24633 cat >>confdefs.h <<_ACEOF
24634 #define PC_FROM_UCONTEXT $pc_field
24637 { echo "$as_me:$LINENO: result: $pc_field" >&5
24638 echo "${ECHO_T}$pc_field" >&6; }
24639 pc_field_found=true
24641 echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650 if ! $pc_field_found; then
24651 pc_fields=" sc_eip" # OpenBSD (i386)
24652 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
24653 for pc_field in $pc_fields; do
24654 if ! $pc_field_found; then
24655 cat >conftest.$ac_ext <<_ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h. */
24661 #include <signal.h>
24665 ucontext_t u; return u.$pc_field == 0;
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_compile") 2>conftest.er1
24679 grep -v '^ *+' conftest.er1 >conftest.err
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && {
24684 test -z "$ac_c_werror_flag" ||
24685 test ! -s conftest.err
24686 } && test -s conftest.$ac_objext; then
24688 cat >>confdefs.h <<_ACEOF
24689 #define PC_FROM_UCONTEXT $pc_field
24692 { echo "$as_me:$LINENO: result: $pc_field" >&5
24693 echo "${ECHO_T}$pc_field" >&6; }
24694 pc_field_found=true
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24706 if ! $pc_field_found; then
24707 { echo "$as_me:$LINENO: WARNING: Could not find the PC. Will not output failed addresses..." >&5
24708 echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
24711 # These are what's needed by logging.h.in and raw_logging.h.in
24734 # Write generated configuration file
24735 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"
24737 ac_config_files="$ac_config_files libglog.pc"
24739 cat >confcache <<\_ACEOF
24740 # This file is a shell script that caches the results of configure
24741 # tests run on this system so they can be shared between configure
24742 # scripts and configure runs, see configure's option --config-cache.
24743 # It is not useful on other systems. If it contains results you don't
24744 # want to keep, you may remove or edit it.
24746 # config.status only pays attention to the cache file if you give it
24747 # the --recheck option to rerun configure.
24749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24751 # following values.
24755 # The following way of writing the cache mishandles newlines in values,
24756 # but we know of no workaround that is simple, portable, and efficient.
24757 # So, we kill variables containing newlines.
24758 # Ultrix sh set writes to stderr and can't be redirected directly,
24759 # and sets the high bit in the cache file unless we assign to the vars.
24761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24762 eval ac_val=\$$ac_var
24766 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24767 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24770 _ | IFS | as_nl) ;; #(
24771 *) $as_unset $ac_var ;;
24777 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24778 *${as_nl}ac_space=\ *)
24779 # `set' does not quote correctly, so add quotes (double-quote
24780 # substitution turns \\\\ into \\, and sed turns \\ into \).
24783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24786 # `set' quotes correctly as required by POSIX, so do not add quotes.
24787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24798 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24800 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24801 if test -w "$cache_file"; then
24802 test "x$cache_file" != "x/dev/null" &&
24803 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24804 echo "$as_me: updating cache $cache_file" >&6;}
24805 cat confcache >$cache_file
24807 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24808 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24814 # Let make expand exec_prefix.
24815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24817 DEFS=-DHAVE_CONFIG_H
24821 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24822 # 1. Remove the extension, and $U if already installed.
24823 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24824 ac_i=`echo "$ac_i" | sed "$ac_script"`
24825 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24826 # will be set to the directory where LIBOBJS objects are built.
24827 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24828 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24830 LIBOBJS=$ac_libobjs
24832 LTLIBOBJS=$ac_ltlibobjs
24835 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24836 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24837 Usually this means the macro was only invoked conditionally." >&5
24838 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24839 Usually this means the macro was only invoked conditionally." >&2;}
24840 { (exit 1); exit 1; }; }
24842 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24843 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24844 Usually this means the macro was only invoked conditionally." >&5
24845 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24846 Usually this means the macro was only invoked conditionally." >&2;}
24847 { (exit 1); exit 1; }; }
24849 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24850 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24851 Usually this means the macro was only invoked conditionally." >&5
24852 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24853 Usually this means the macro was only invoked conditionally." >&2;}
24854 { (exit 1); exit 1; }; }
24856 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
24857 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
24858 Usually this means the macro was only invoked conditionally." >&5
24859 echo "$as_me: error: conditional \"GCC\" was never defined.
24860 Usually this means the macro was only invoked conditionally." >&2;}
24861 { (exit 1); exit 1; }; }
24863 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
24864 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24865 Usually this means the macro was only invoked conditionally." >&5
24866 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24867 Usually this means the macro was only invoked conditionally." >&2;}
24868 { (exit 1); exit 1; }; }
24870 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
24871 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
24872 Usually this means the macro was only invoked conditionally." >&5
24873 echo "$as_me: error: conditional \"X86_64\" was never defined.
24874 Usually this means the macro was only invoked conditionally." >&2;}
24875 { (exit 1); exit 1; }; }
24877 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
24878 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GMOCK\" was never defined.
24879 Usually this means the macro was only invoked conditionally." >&5
24880 echo "$as_me: error: conditional \"HAVE_GMOCK\" was never defined.
24881 Usually this means the macro was only invoked conditionally." >&2;}
24882 { (exit 1); exit 1; }; }
24885 : ${CONFIG_STATUS=./config.status}
24886 ac_clean_files_save=$ac_clean_files
24887 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24888 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24889 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24890 cat >$CONFIG_STATUS <<_ACEOF
24892 # Generated by $as_me.
24893 # Run this file to recreate the current configuration.
24894 # Compiler output produced by configure, useful for debugging
24895 # configure, is in config.log if it exists.
24898 ac_cs_recheck=false
24900 SHELL=\${CONFIG_SHELL-$SHELL}
24903 cat >>$CONFIG_STATUS <<\_ACEOF
24904 ## --------------------- ##
24905 ## M4sh Initialization. ##
24906 ## --------------------- ##
24908 # Be more Bourne compatible
24909 DUALCASE=1; export DUALCASE # for MKS sh
24910 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24913 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24914 # is contrary to our usage. Disable this feature.
24915 alias -g '${1+"$@"}'='"$@"'
24916 setopt NO_GLOB_SUBST
24918 case `(set -o) 2>/dev/null` in
24919 *posix*) set -o posix ;;
24928 # Avoid depending upon Character Ranges.
24929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24932 as_cr_digits='0123456789'
24933 as_cr_alnum=$as_cr_Letters$as_cr_digits
24935 # The user is always right.
24936 if test "${PATH_SEPARATOR+set}" != set; then
24937 echo "#! /bin/sh" >conf$$.sh
24938 echo "exit 0" >>conf$$.sh
24940 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24948 # Support unset when possible.
24949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24957 # We need space, tab and new line, in precisely that order. Quoting is
24958 # there to prevent editors from complaining about space-tab.
24959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24960 # splitting by setting IFS to empty value.)
24965 # Find who we are. Look in the path if we contain no directory separator.
24967 *[\\/]* ) as_myself=$0 ;;
24968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24969 for as_dir in $PATH
24972 test -z "$as_dir" && as_dir=.
24973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24979 # We did not find ourselves, most probably we were run as `sh COMMAND'
24980 # in which case we are not to be found in the path.
24981 if test "x$as_myself" = x; then
24984 if test ! -f "$as_myself"; then
24985 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24986 { (exit 1); exit 1; }
24989 # Work around bugs in pre-3.0 UWIN ksh.
24990 for as_var in ENV MAIL MAILPATH
24991 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24999 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25000 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25001 LC_TELEPHONE LC_TIME
25003 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25004 eval $as_var=C; export $as_var
25006 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25010 # Required to use basename.
25011 if expr a : '\(a\)' >/dev/null 2>&1 &&
25012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25018 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25019 as_basename=basename
25025 # Name of the executable.
25026 as_me=`$as_basename -- "$0" ||
25027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25028 X"$0" : 'X\(//\)$' \| \
25029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25031 sed '/^.*\/\([^/][^/]*\)\/*$/{
25050 as_lineno_1=$LINENO
25051 as_lineno_2=$LINENO
25052 test "x$as_lineno_1" != "x$as_lineno_2" &&
25053 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25055 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25056 # uniformly replaced by the line number. The first 'sed' inserts a
25057 # line-number line after each line using $LINENO; the second 'sed'
25058 # does the real work. The second script uses 'N' to pair each
25059 # line-number line with the line containing $LINENO, and appends
25060 # trailing '-' during substitution so that $LINENO is not a special
25061 # case at line end.
25062 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25063 # scripts with optimization help from Paolo Bonzini. Blame Lee
25064 # E. McMahon (1931-1989) for sed's syntax. :-)
25076 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25079 ' >$as_me.lineno &&
25080 chmod +x "$as_me.lineno" ||
25081 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25082 { (exit 1); exit 1; }; }
25084 # Don't try to exec as it changes $[0], causing all sort of problems
25085 # (the dirname of $[0] is not the place where we might find the
25086 # original and so on. Autoconf is especially sensitive to this).
25087 . "./$as_me.lineno"
25088 # Exit status is that of the last command.
25093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25099 ECHO_C= ECHO_N= ECHO_T=
25100 case `echo -n x` in
25102 case `echo 'x\c'` in
25103 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25110 if expr a : '\(a\)' >/dev/null 2>&1 &&
25111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25117 rm -f conf$$ conf$$.exe conf$$.file
25118 if test -d conf$$.dir; then
25119 rm -f conf$$.dir/conf$$.file
25125 if ln -s conf$$.file conf$$ 2>/dev/null; then
25127 # ... but there are two gotchas:
25128 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25129 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25130 # In both cases, we have to default to `cp -p'.
25131 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25133 elif ln conf$$.file conf$$ 2>/dev/null; then
25138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25139 rmdir conf$$.dir 2>/dev/null
25141 if mkdir -p . 2>/dev/null; then
25144 test -d ./-p && rmdir ./-p
25148 if test -x / >/dev/null 2>&1; then
25149 as_test_x='test -x'
25151 if ls -dL / >/dev/null 2>&1; then
25158 if test -d "$1"; then
25164 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25165 ???[sx]*):;;*)false;;esac;fi
25169 as_executable_p=$as_test_x
25171 # Sed expression to map a string onto a valid CPP name.
25172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25174 # Sed expression to map a string onto a valid variable name.
25175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25180 # Save the log message, to keep $[0] and so on meaningful, and to
25181 # report actual input values of CONFIG_FILES etc. instead of their
25182 # values after options handling.
25184 This file was extended by glog $as_me 0.2.1, which was
25185 generated by GNU Autoconf 2.61. Invocation command line was
25187 CONFIG_FILES = $CONFIG_FILES
25188 CONFIG_HEADERS = $CONFIG_HEADERS
25189 CONFIG_LINKS = $CONFIG_LINKS
25190 CONFIG_COMMANDS = $CONFIG_COMMANDS
25193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25198 cat >>$CONFIG_STATUS <<_ACEOF
25199 # Files that config.status was made for.
25200 config_files="$ac_config_files"
25201 config_headers="$ac_config_headers"
25202 config_commands="$ac_config_commands"
25206 cat >>$CONFIG_STATUS <<\_ACEOF
25208 \`$as_me' instantiates files from templates according to the
25209 current configuration.
25211 Usage: $0 [OPTIONS] [FILE]...
25213 -h, --help print this help, then exit
25214 -V, --version print version number and configuration settings, then exit
25215 -q, --quiet do not print progress messages
25216 -d, --debug don't remove temporary files
25217 --recheck update $as_me by reconfiguring in the same conditions
25218 --file=FILE[:TEMPLATE]
25219 instantiate the configuration file FILE
25220 --header=FILE[:TEMPLATE]
25221 instantiate the configuration header FILE
25223 Configuration files:
25226 Configuration headers:
25229 Configuration commands:
25232 Report bugs to <bug-autoconf@gnu.org>."
25235 cat >>$CONFIG_STATUS <<_ACEOF
25237 glog config.status 0.2.1
25238 configured by $0, generated by GNU Autoconf 2.61,
25239 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25241 Copyright (C) 2006 Free Software Foundation, Inc.
25242 This config.status script is free software; the Free Software Foundation
25243 gives unlimited permission to copy, distribute and modify it."
25251 cat >>$CONFIG_STATUS <<\_ACEOF
25252 # If no file are specified by the user, then we need to provide default
25253 # value. By we need to know if files were specified by the user.
25259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25271 # Handling of the options.
25272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25274 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25275 echo "$ac_cs_version"; exit ;;
25276 --debug | --debu | --deb | --de | --d | -d )
25278 --file | --fil | --fi | --f )
25280 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25281 ac_need_defaults=false;;
25282 --header | --heade | --head | --hea )
25284 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25285 ac_need_defaults=false;;
25287 # Conflict between --help and --header
25288 { echo "$as_me: error: ambiguous option: $1
25289 Try \`$0 --help' for more information." >&2
25290 { (exit 1); exit 1; }; };;
25291 --help | --hel | -h )
25292 echo "$ac_cs_usage"; exit ;;
25293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25297 # This is an error.
25298 -*) { echo "$as_me: error: unrecognized option: $1
25299 Try \`$0 --help' for more information." >&2
25300 { (exit 1); exit 1; }; } ;;
25302 *) ac_config_targets="$ac_config_targets $1"
25303 ac_need_defaults=false ;;
25309 ac_configure_extra_args=
25311 if $ac_cs_silent; then
25313 ac_configure_extra_args="$ac_configure_extra_args --silent"
25317 cat >>$CONFIG_STATUS <<_ACEOF
25318 if \$ac_cs_recheck; then
25319 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25320 CONFIG_SHELL=$SHELL
25321 export CONFIG_SHELL
25322 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25326 cat >>$CONFIG_STATUS <<\_ACEOF
25330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25331 ## Running $as_me. ##
25337 cat >>$CONFIG_STATUS <<_ACEOF
25341 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25345 cat >>$CONFIG_STATUS <<\_ACEOF
25347 # Handling of arguments.
25348 for ac_config_target in $ac_config_targets
25350 case $ac_config_target in
25351 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25352 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25353 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25354 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25355 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25356 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25357 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25358 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
25360 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25361 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25362 { (exit 1); exit 1; }; };;
25367 # If the user did not use the arguments to specify the items to instantiate,
25368 # then the envvar interface is used. Set only those that are not.
25369 # We use the long form for the default assignment because of an extremely
25370 # bizarre bug on SunOS 4.1.3.
25371 if $ac_need_defaults; then
25372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25374 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25377 # Have a temporary directory for convenience. Make it in the build tree
25378 # simply because there is no reason against having it here, and in addition,
25379 # creating and moving files from /tmp can sometimes cause problems.
25380 # Hook for its removal unless debugging.
25381 # Note that there is a small window in which the directory will not be cleaned:
25382 # after its creation but before its name has been assigned to `$tmp'.
25386 trap 'exit_status=$?
25387 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25389 trap '{ (exit 1); exit 1; }' 1 2 13 15
25391 # Create a (secure) tmp directory for tmp files.
25394 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25395 test -n "$tmp" && test -d "$tmp"
25398 tmp=./conf$$-$RANDOM
25399 (umask 077 && mkdir "$tmp")
25402 echo "$me: cannot create a temporary directory in ." >&2
25403 { (exit 1); exit 1; }
25407 # Set up the sed scripts for CONFIG_FILES section.
25410 # No need to generate the scripts if there are no CONFIG_FILES.
25411 # This happens for instance when ./config.status config.h
25412 if test -n "$CONFIG_FILES"; then
25419 for ac_last_try in false false false false false :; do
25420 cat >conf$$subs.sed <<_ACEOF
25421 SHELL!$SHELL$ac_delim
25422 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25423 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25424 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25425 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25426 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25427 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25428 exec_prefix!$exec_prefix$ac_delim
25429 prefix!$prefix$ac_delim
25430 program_transform_name!$program_transform_name$ac_delim
25431 bindir!$bindir$ac_delim
25432 sbindir!$sbindir$ac_delim
25433 libexecdir!$libexecdir$ac_delim
25434 datarootdir!$datarootdir$ac_delim
25435 datadir!$datadir$ac_delim
25436 sysconfdir!$sysconfdir$ac_delim
25437 sharedstatedir!$sharedstatedir$ac_delim
25438 localstatedir!$localstatedir$ac_delim
25439 includedir!$includedir$ac_delim
25440 oldincludedir!$oldincludedir$ac_delim
25441 docdir!$docdir$ac_delim
25442 infodir!$infodir$ac_delim
25443 htmldir!$htmldir$ac_delim
25444 dvidir!$dvidir$ac_delim
25445 pdfdir!$pdfdir$ac_delim
25446 psdir!$psdir$ac_delim
25447 libdir!$libdir$ac_delim
25448 localedir!$localedir$ac_delim
25449 mandir!$mandir$ac_delim
25450 DEFS!$DEFS$ac_delim
25451 ECHO_C!$ECHO_C$ac_delim
25452 ECHO_N!$ECHO_N$ac_delim
25453 ECHO_T!$ECHO_T$ac_delim
25454 LIBS!$LIBS$ac_delim
25455 build_alias!$build_alias$ac_delim
25456 host_alias!$host_alias$ac_delim
25457 target_alias!$target_alias$ac_delim
25458 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25459 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25460 INSTALL_DATA!$INSTALL_DATA$ac_delim
25461 am__isrc!$am__isrc$ac_delim
25462 CYGPATH_W!$CYGPATH_W$ac_delim
25463 PACKAGE!$PACKAGE$ac_delim
25464 VERSION!$VERSION$ac_delim
25465 ACLOCAL!$ACLOCAL$ac_delim
25466 AUTOCONF!$AUTOCONF$ac_delim
25467 AUTOMAKE!$AUTOMAKE$ac_delim
25468 AUTOHEADER!$AUTOHEADER$ac_delim
25469 MAKEINFO!$MAKEINFO$ac_delim
25470 install_sh!$install_sh$ac_delim
25471 STRIP!$STRIP$ac_delim
25472 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25473 mkdir_p!$mkdir_p$ac_delim
25475 SET_MAKE!$SET_MAKE$ac_delim
25476 am__leading_dot!$am__leading_dot$ac_delim
25477 AMTAR!$AMTAR$ac_delim
25478 am__tar!$am__tar$ac_delim
25479 am__untar!$am__untar$ac_delim
25481 CFLAGS!$CFLAGS$ac_delim
25482 LDFLAGS!$LDFLAGS$ac_delim
25483 CPPFLAGS!$CPPFLAGS$ac_delim
25484 ac_ct_CC!$ac_ct_CC$ac_delim
25485 EXEEXT!$EXEEXT$ac_delim
25486 OBJEXT!$OBJEXT$ac_delim
25487 DEPDIR!$DEPDIR$ac_delim
25488 am__include!$am__include$ac_delim
25489 am__quote!$am__quote$ac_delim
25490 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25491 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25492 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25493 CCDEPMODE!$CCDEPMODE$ac_delim
25494 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25495 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25498 CXXFLAGS!$CXXFLAGS$ac_delim
25499 ac_ct_CXX!$ac_ct_CXX$ac_delim
25500 CXXDEPMODE!$CXXDEPMODE$ac_delim
25501 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25502 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25503 GCC_TRUE!$GCC_TRUE$ac_delim
25504 GCC_FALSE!$GCC_FALSE$ac_delim
25505 build!$build$ac_delim
25506 build_cpu!$build_cpu$ac_delim
25507 build_vendor!$build_vendor$ac_delim
25508 build_os!$build_os$ac_delim
25509 host!$host$ac_delim
25510 host_cpu!$host_cpu$ac_delim
25511 host_vendor!$host_vendor$ac_delim
25512 host_os!$host_os$ac_delim
25514 GREP!$GREP$ac_delim
25515 EGREP!$EGREP$ac_delim
25516 LN_S!$LN_S$ac_delim
25517 ECHO!$ECHO$ac_delim
25520 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25522 elif $ac_last_try; then
25523 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25524 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25525 { (exit 1); exit 1; }; }
25527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25531 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25532 if test -n "$ac_eof"; then
25533 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25534 ac_eof=`expr $ac_eof + 1`
25537 cat >>$CONFIG_STATUS <<_ACEOF
25538 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25542 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25543 s/^/s,@/; s/!/@,|#_!!_#|/
25546 s/'"$ac_delim"'$/,g/; t
25548 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25549 ' >>$CONFIG_STATUS <conf$$subs.sed
25550 rm -f conf$$subs.sed
25551 cat >>$CONFIG_STATUS <<_ACEOF
25557 for ac_last_try in false false false false false :; do
25558 cat >conf$$subs.sed <<_ACEOF
25560 RANLIB!$RANLIB$ac_delim
25561 DSYMUTIL!$DSYMUTIL$ac_delim
25562 NMEDIT!$NMEDIT$ac_delim
25563 CXXCPP!$CXXCPP$ac_delim
25565 FFLAGS!$FFLAGS$ac_delim
25566 ac_ct_F77!$ac_ct_F77$ac_delim
25567 LIBTOOL!$LIBTOOL$ac_delim
25568 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25569 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25570 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25571 X86_64_TRUE!$X86_64_TRUE$ac_delim
25572 X86_64_FALSE!$X86_64_FALSE$ac_delim
25573 acx_pthread_config!$acx_pthread_config$ac_delim
25574 PTHREAD_CC!$PTHREAD_CC$ac_delim
25575 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25576 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25577 GTEST_CONFIG!$GTEST_CONFIG$ac_delim
25578 GMOCK_CONFIG!$GMOCK_CONFIG$ac_delim
25579 HAVE_GMOCK_TRUE!$HAVE_GMOCK_TRUE$ac_delim
25580 HAVE_GMOCK_FALSE!$HAVE_GMOCK_FALSE$ac_delim
25581 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25582 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25583 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25584 ac_google_namespace!$ac_google_namespace$ac_delim
25585 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25586 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25587 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25588 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25589 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25590 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25591 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25592 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25593 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25594 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25595 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25596 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25597 GFLAGS_CFLAGS!$GFLAGS_CFLAGS$ac_delim
25598 GTEST_CFLAGS!$GTEST_CFLAGS$ac_delim
25599 GMOCK_CFLAGS!$GMOCK_CFLAGS$ac_delim
25600 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25601 GTEST_LIBS!$GTEST_LIBS$ac_delim
25602 GMOCK_LIBS!$GMOCK_LIBS$ac_delim
25603 LIBOBJS!$LIBOBJS$ac_delim
25604 LTLIBOBJS!$LTLIBOBJS$ac_delim
25607 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
25609 elif $ac_last_try; then
25610 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25611 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25612 { (exit 1); exit 1; }; }
25614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25618 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25619 if test -n "$ac_eof"; then
25620 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25621 ac_eof=`expr $ac_eof + 1`
25624 cat >>$CONFIG_STATUS <<_ACEOF
25625 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25629 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25630 s/^/s,@/; s/!/@,|#_!!_#|/
25633 s/'"$ac_delim"'$/,g/; t
25635 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25636 ' >>$CONFIG_STATUS <conf$$subs.sed
25637 rm -f conf$$subs.sed
25638 cat >>$CONFIG_STATUS <<_ACEOF
25645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25647 # trailing colons and then remove the whole line if VPATH becomes empty
25648 # (actually we leave an empty line to preserve line numbers).
25649 if test "x$srcdir" = x.; then
25650 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25651 s/:*\$(srcdir):*/:/
25652 s/:*\${srcdir}:*/:/
25654 s/^\([^=]*=[ ]*\):*/\1/
25660 cat >>$CONFIG_STATUS <<\_ACEOF
25661 fi # test -n "$CONFIG_FILES"
25664 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25667 :[FHLC]) ac_mode=$ac_tag; continue;;
25669 case $ac_mode$ac_tag in
25671 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25672 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25673 { (exit 1); exit 1; }; };;
25674 :[FH]-) ac_tag=-:-;;
25675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25692 -) ac_f="$tmp/stdin";;
25693 *) # Look for the file first in the build tree, then in the source tree
25694 # (if the path is not absolute). The absolute path cannot be DOS-style,
25695 # because $ac_f cannot contain `:'.
25699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25701 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25702 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25703 { (exit 1); exit 1; }; };;
25705 ac_file_inputs="$ac_file_inputs $ac_f"
25708 # Let's still pretend it is `configure' which instantiates (i.e., don't
25709 # use $as_me), people would be surprised to read:
25710 # /* config.h. Generated by config.status. */
25711 configure_input="Generated from "`IFS=:
25712 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25713 if test x"$ac_file" != x-; then
25714 configure_input="$ac_file. $configure_input"
25715 { echo "$as_me:$LINENO: creating $ac_file" >&5
25716 echo "$as_me: creating $ac_file" >&6;}
25720 *:-:* | *:-) cat >"$tmp/stdin";;
25725 ac_dir=`$as_dirname -- "$ac_file" ||
25726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25727 X"$ac_file" : 'X\(//\)[^/]' \| \
25728 X"$ac_file" : 'X\(//\)$' \| \
25729 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25735 /^X\(\/\/\)[^/].*/{
25750 -*) as_dir=./$as_dir;;
25752 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25756 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25757 *) as_qdir=$as_dir;;
25759 as_dirs="'$as_qdir' $as_dirs"
25760 as_dir=`$as_dirname -- "$as_dir" ||
25761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25762 X"$as_dir" : 'X\(//\)[^/]' \| \
25763 X"$as_dir" : 'X\(//\)$' \| \
25764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25770 /^X\(\/\/\)[^/].*/{
25783 test -d "$as_dir" && break
25785 test -z "$as_dirs" || eval "mkdir $as_dirs"
25786 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25787 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25788 { (exit 1); exit 1; }; }; }
25792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25795 # A ".." for each directory in $ac_dir_suffix.
25796 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25797 case $ac_top_builddir_sub in
25798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25802 ac_abs_top_builddir=$ac_pwd
25803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25804 # for backward compatibility:
25805 ac_top_builddir=$ac_top_build_prefix
25808 .) # We are building in place.
25810 ac_top_srcdir=$ac_top_builddir_sub
25811 ac_abs_top_srcdir=$ac_pwd ;;
25812 [\\/]* | ?:[\\/]* ) # Absolute name.
25813 ac_srcdir=$srcdir$ac_dir_suffix;
25814 ac_top_srcdir=$srcdir
25815 ac_abs_top_srcdir=$srcdir ;;
25816 *) # Relative name.
25817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25818 ac_top_srcdir=$ac_top_build_prefix$srcdir
25819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25834 ac_MKDIR_P=$MKDIR_P
25836 [\\/$]* | ?:[\\/]* ) ;;
25837 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25841 cat >>$CONFIG_STATUS <<\_ACEOF
25842 # If the template does not know about datarootdir, expand it.
25843 # FIXME: This hack should be removed a few years after 2.60.
25844 ac_datarootdir_hack=; ac_datarootdir_seen=
25846 case `sed -n '/datarootdir/ {
25855 ' $ac_file_inputs` in
25856 *datarootdir*) ac_datarootdir_seen=yes;;
25857 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25858 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25859 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25861 cat >>$CONFIG_STATUS <<_ACEOF
25862 ac_datarootdir_hack='
25863 s&@datadir@&$datadir&g
25864 s&@docdir@&$docdir&g
25865 s&@infodir@&$infodir&g
25866 s&@localedir@&$localedir&g
25867 s&@mandir@&$mandir&g
25868 s&\\\${datarootdir}&$datarootdir&g' ;;
25872 # Neutralize VPATH when `$srcdir' = `.'.
25873 # Shell code in configure.ac might set extrasub.
25874 # FIXME: do we really want to maintain this feature?
25875 cat >>$CONFIG_STATUS <<_ACEOF
25879 cat >>$CONFIG_STATUS <<\_ACEOF
25881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25882 s&@configure_input@&$configure_input&;t t
25883 s&@top_builddir@&$ac_top_builddir_sub&;t t
25884 s&@srcdir@&$ac_srcdir&;t t
25885 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25886 s&@top_srcdir@&$ac_top_srcdir&;t t
25887 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25888 s&@builddir@&$ac_builddir&;t t
25889 s&@abs_builddir@&$ac_abs_builddir&;t t
25890 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25891 s&@INSTALL@&$ac_INSTALL&;t t
25892 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25893 $ac_datarootdir_hack
25894 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25896 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25897 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25898 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25899 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25900 which seems to be undefined. Please make sure it is defined." >&5
25901 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25902 which seems to be undefined. Please make sure it is defined." >&2;}
25906 -) cat "$tmp/out"; rm -f "$tmp/out";;
25907 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25916 # Transform confdefs.h into a sed script `conftest.defines', that
25917 # substitutes the proper values into config.h.in to produce config.h.
25918 rm -f conftest.defines conftest.tail
25919 # First, append a space to every undef/define line, to ease matching.
25920 echo 's/$/ /' >conftest.defines
25921 # Then, protect against being on the right side of a sed subst, or in
25922 # an unquoted here document, in config.status. If some macros were
25923 # called several times there might be several #defines for the same
25924 # symbol, which is useless. But do not sort them, since the last
25925 # AC_DEFINE must be honored.
25926 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25927 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25928 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25929 # PARAMS is the parameter list in the macro definition--in most cases, it's
25930 # just an empty string.
25931 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25932 ac_dB='\\)[ (].*,\\1define\\2'
25940 s/^[ ]*#[ ]*define[ ][ ]*//
25945 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25946 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25947 ' >>conftest.defines
25949 # Remove the space that was appended to ease matching.
25950 # Then replace #undef with comments. This is necessary, for
25951 # example, in the case of _POSIX_SOURCE, which is predefined and required
25952 # on some systems where configure will not decide to define it.
25953 # (The regexp can be short, since the line contains either #define or #undef.)
25955 s,^[ #]*u.*,/* & */,' >>conftest.defines
25957 # Break up conftest.defines:
25958 ac_max_sed_lines=50
25960 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25961 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25962 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25964 ac_in='$ac_file_inputs'
25965 ac_out='"$tmp/out1"'
25966 ac_nxt='"$tmp/out2"'
25970 # Write a here document:
25971 cat >>$CONFIG_STATUS <<_ACEOF
25972 # First, check the format of the line:
25973 cat >"\$tmp/defines.sed" <<\\CEOF
25974 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25975 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25979 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25981 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25982 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25983 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25984 grep . conftest.tail >/dev/null || break
25985 rm -f conftest.defines
25986 mv conftest.tail conftest.defines
25988 rm -f conftest.defines conftest.tail
25990 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25991 cat >>$CONFIG_STATUS <<\_ACEOF
25992 if test x"$ac_file" != x-; then
25993 echo "/* $configure_input */" >"$tmp/config.h"
25994 cat "$ac_result" >>"$tmp/config.h"
25995 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25996 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25997 echo "$as_me: $ac_file is unchanged" >&6;}
26000 mv "$tmp/config.h" $ac_file
26003 echo "/* $configure_input */"
26007 # Compute $ac_file's index in $config_headers.
26010 for _am_header in $config_headers :; do
26011 case $_am_header in
26012 $_am_arg | $_am_arg:* )
26015 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26018 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26019 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26020 X"$_am_arg" : 'X\(//\)[^/]' \| \
26021 X"$_am_arg" : 'X\(//\)$' \| \
26022 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26028 /^X\(\/\/\)[^/].*/{
26040 s/.*/./; q'`/stamp-h$_am_stamp_count
26043 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26044 echo "$as_me: executing $ac_file commands" >&6;}
26049 case $ac_file$ac_mode in
26050 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26051 # Strip MF so we end up with the name of the file.
26052 mf=`echo "$mf" | sed -e 's/:.*$//'`
26053 # Check whether this is an Automake generated Makefile or not.
26054 # We used to match only the files named `Makefile.in', but
26055 # some people rename them; so instead we look at the file content.
26056 # Grep'ing the first line is not enough: some people post-process
26057 # each Makefile.in and add a new line on top of each file to say so.
26058 # Grep'ing the whole file is not good either: AIX grep has a line
26059 # limit of 2048, but all sed's we know have understand at least 4000.
26060 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26061 dirpart=`$as_dirname -- "$mf" ||
26062 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26063 X"$mf" : 'X\(//\)[^/]' \| \
26064 X"$mf" : 'X\(//\)$' \| \
26065 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26071 /^X\(\/\/\)[^/].*/{
26087 # Extract the definition of DEPDIR, am__include, and am__quote
26088 # from the Makefile without running `make'.
26089 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26090 test -z "$DEPDIR" && continue
26091 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26092 test -z "am__include" && continue
26093 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26094 # When using ansi2knr, U may be empty or an underscore; expand it
26095 U=`sed -n 's/^U = //p' < "$mf"`
26096 # Find all dependency output files, they are included files with
26097 # $(DEPDIR) in their names. We invoke sed twice because it is the
26098 # simplest approach to changing $(DEPDIR) to its actual value in the
26100 for file in `sed -n "
26101 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26102 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26103 # Make sure the directory exists.
26104 test -f "$dirpart/$file" && continue
26105 fdir=`$as_dirname -- "$file" ||
26106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26107 X"$file" : 'X\(//\)[^/]' \| \
26108 X"$file" : 'X\(//\)$' \| \
26109 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26115 /^X\(\/\/\)[^/].*/{
26128 { as_dir=$dirpart/$fdir
26130 -*) as_dir=./$as_dir;;
26132 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26136 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26137 *) as_qdir=$as_dir;;
26139 as_dirs="'$as_qdir' $as_dirs"
26140 as_dir=`$as_dirname -- "$as_dir" ||
26141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26142 X"$as_dir" : 'X\(//\)[^/]' \| \
26143 X"$as_dir" : 'X\(//\)$' \| \
26144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26150 /^X\(\/\/\)[^/].*/{
26163 test -d "$as_dir" && break
26165 test -z "$as_dirs" || eval "mkdir $as_dirs"
26166 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26167 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26168 { (exit 1); exit 1; }; }; }
26169 # echo "creating $dirpart/$file"
26170 echo '# dummy' > "$dirpart/$file"
26179 { (exit 0); exit 0; }
26181 chmod +x $CONFIG_STATUS
26182 ac_clean_files=$ac_clean_files_save
26185 # configure is writing to config.log, and then calls config.status.
26186 # config.status does its own redirection, appending to config.log.
26187 # Unfortunately, on DOS this fails, as config.log is still kept open
26188 # by configure, so config.status won't be able to write to it; its
26189 # output is simply discarded. So we exec the FD to /dev/null,
26190 # effectively closing config.log, so it can be properly (re)opened and
26191 # appended to by config.status. When coming back to configure, we
26192 # need to make the FD available again.
26193 if test "$no_create" != yes; then
26195 ac_config_status_args=
26196 test "$silent" = yes &&
26197 ac_config_status_args="$ac_config_status_args --quiet"
26199 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26201 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26202 # would make configure fail if this is the last instruction.
26203 $ac_cs_success || { (exit 1); exit 1; }