2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.1.2.
5 # Report bugs to <opensource@google.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='glog'
731 PACKAGE_VERSION='0.1.2'
732 PACKAGE_STRING='glog 0.1.2'
733 PACKAGE_BUGREPORT='opensource@google.com'
735 ac_unique_file="README"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
879 ENABLE_FRAME_POINTERS_TRUE
880 ENABLE_FRAME_POINTERS_FALSE
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
915 ac_precious_vars='build_alias
932 # Initialize some variables set by options.
934 ac_init_version=false
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
944 program_transform_name=s,x,x,
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
990 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 # Accept the important Cygnus configure options, so we can diagnose typos.
996 case $ac_dashdash$ac_option in
1000 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003 bindir=$ac_optarg ;;
1005 -build | --build | --buil | --bui | --bu)
1006 ac_prev=build_alias ;;
1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008 build_alias=$ac_optarg ;;
1010 -cache-file | --cache-file | --cache-fil | --cache-fi \
1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012 ac_prev=cache_file ;;
1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015 cache_file=$ac_optarg ;;
1017 --config-cache | -C)
1018 cache_file=config.cache ;;
1020 -datadir | --datadir | --datadi | --datad)
1022 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023 datadir=$ac_optarg ;;
1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026 | --dataroo | --dataro | --datar)
1027 ac_prev=datarootdir ;;
1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030 datarootdir=$ac_optarg ;;
1032 -disable-* | --disable-*)
1033 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_$ac_feature=no ;;
1041 -docdir | --docdir | --docdi | --doc | --do)
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1051 -enable-* | --enable-*)
1052 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058 eval enable_$ac_feature=\$ac_optarg ;;
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 htmldir=$ac_optarg ;;
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1103 -libdir | --libdir | --libdi | --libd)
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1194 -psdir | --psdir | --psdi | --psd | --ps)
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 sbindir=$ac_optarg ;;
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 sharedstatedir=$ac_optarg ;;
1220 -site | --site | --sit)
1222 -site=* | --site=* | --sit=*)
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1249 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid package name: $ac_package" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1255 eval with_$ac_package=\$ac_optarg ;;
1257 -without-* | --without-*)
1258 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 { echo "$as_me: error: invalid package name: $ac_package" >&2
1262 { (exit 1); exit 1; }; }
1263 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1264 eval with_$ac_package=no ;;
1267 # Obsolete; use --with-x.
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) { echo "$as_me: error: unrecognized option: $ac_option
1285 Try \`$0 --help' for more information." >&2
1286 { (exit 1); exit 1; }; }
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1294 { (exit 1); exit 1; }; }
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 { echo "$as_me: error: missing argument to $ac_option" >&2
1312 { (exit 1); exit 1; }; }
1315 # Be sure to have absolute directory names.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1327 { (exit 1); exit 1; }; }
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1335 target=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342 If a cross compiler is detected then cross compile mode will be used." >&2
1343 elif test "x$build_alias" != "x$host_alias"; then
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351 test "$silent" = yes && exec 6>/dev/null
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 { echo "$as_me: error: Working directory cannot be determined" >&2
1358 { (exit 1); exit 1; }; }
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 { echo "$as_me: error: pwd does not report name of working directory" >&2
1361 { (exit 1); exit 1; }; }
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$0" ||
1369 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$0" : 'X\(//\)[^/]' \| \
1371 X"$0" : 'X\(//\)$' \| \
1372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1396 ac_srcdir_defaulted=no
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1401 { (exit 1); exit 1; }; }
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1406 { (exit 1); exit 1; }; }
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures glog 0.1.2 to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 if test -n "$ac_init_help"; then
1501 case $ac_init_help in
1502 short | recursive ) echo "Configuration of glog 0.1.2:";;
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --disable-dependency-tracking speeds up one-time build
1510 --enable-dependency-tracking do not reject slow dependency extractors
1511 --enable-shared[=PKGS] build shared libraries [default=yes]
1512 --enable-static[=PKGS] build static libraries [default=yes]
1513 --enable-fast-install[=PKGS]
1514 optimize for fast installation [default=yes]
1515 --disable-libtool-lock avoid locking (might break parallel builds)
1516 --enable-frame-pointers On x86_64 systems, compile with
1517 -fno-omit-frame-pointer (see INSTALL)
1518 --enable-namespace=FOO to define these Google
1519 classes in the FOO namespace. --disable-namespace
1520 to define them in the global namespace. Default
1521 is to define them in namespace google.
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-pic try to use only PIC/non-PIC objects [default=use
1529 --with-tags[=TAGS] include additional configurations [automatic]
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1542 CXXCPP C++ preprocessor
1543 F77 Fortran 77 compiler command
1544 FFLAGS Fortran 77 compiler flags
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to <opensource@google.com>.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" || continue
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1577 .) # We are building in place.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1601 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1610 glog configure 0.1.2
1611 generated by GNU Autoconf 2.61
1613 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1614 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1620 cat >config.log <<_ACEOF
1621 This file contains any messages produced by compilers while
1622 running configure, to aid debugging if configure makes a mistake.
1624 It was created by glog $as_me 0.1.2, which was
1625 generated by GNU Autoconf 2.61. Invocation command line was
1637 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1638 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1639 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1640 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1641 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1643 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1644 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1646 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1647 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1648 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1649 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1650 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1651 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1652 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 echo "PATH: $as_dir"
1677 # Keep a trace of the command line.
1678 # Strip out --no-create and --no-recursion so they do not pile up.
1679 # Strip out --silent because we don't want to record it for future runs.
1680 # Also quote any args containing shell meta-characters.
1681 # Make two passes to allow for proper duplicate-argument suppression.
1685 ac_must_keep_next=false
1691 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1693 | -silent | --silent | --silen | --sile | --sil)
1696 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1699 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1701 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1702 if test $ac_must_keep_next = true; then
1703 ac_must_keep_next=false # Got value, back to normal.
1706 *=* | --config-cache | -C | -disable-* | --disable-* \
1707 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1708 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1709 | -with-* | --with-* | -without-* | --without-* | --x)
1710 case "$ac_configure_args0 " in
1711 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1714 -* ) ac_must_keep_next=true ;;
1717 ac_configure_args="$ac_configure_args '$ac_arg'"
1722 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1723 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1725 # When interrupted or exit'd, cleanup temporary files, and complete
1726 # config.log. We remove comments because anyway the quotes in there
1727 # would cause problems or look ugly.
1728 # WARNING: Use '\'' to represent an apostrophe within the trap.
1729 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1730 trap 'exit_status=$?
1731 # Save into config.log some information that might help in debugging.
1736 ## ---------------- ##
1737 ## Cache variables. ##
1738 ## ---------------- ##
1741 # The following way of writing the cache mishandles newlines in values,
1743 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1744 eval ac_val=\$$ac_var
1748 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1749 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1752 _ | IFS | as_nl) ;; #(
1753 *) $as_unset $ac_var ;;
1758 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1759 *${as_nl}ac_space=\ *)
1761 "s/'\''/'\''\\\\'\'''\''/g;
1762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1773 ## ----------------- ##
1774 ## Output variables. ##
1775 ## ----------------- ##
1778 for ac_var in $ac_subst_vars
1780 eval ac_val=\$$ac_var
1782 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 echo "$ac_var='\''$ac_val'\''"
1788 if test -n "$ac_subst_files"; then
1790 ## ------------------- ##
1791 ## File substitutions. ##
1792 ## ------------------- ##
1795 for ac_var in $ac_subst_files
1797 eval ac_val=\$$ac_var
1799 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 echo "$ac_var='\''$ac_val'\''"
1806 if test -s confdefs.h; then
1816 test "$ac_signal" != 0 &&
1817 echo "$as_me: caught signal $ac_signal"
1818 echo "$as_me: exit $exit_status"
1820 rm -f core *.core core.conftest.* &&
1821 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1824 for ac_signal in 1 2 13 15; do
1825 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1829 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1830 rm -f -r conftest* confdefs.h
1832 # Predefined preprocessor variables.
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_NAME "$PACKAGE_NAME"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_STRING "$PACKAGE_STRING"
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1859 # Let the site file select an alternate cache file if it wants to.
1860 # Prefer explicitly selected file to automatically selected ones.
1861 if test -n "$CONFIG_SITE"; then
1862 set x "$CONFIG_SITE"
1863 elif test "x$prefix" != xNONE; then
1864 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1866 set x "$ac_default_prefix/share/config.site" \
1867 "$ac_default_prefix/etc/config.site"
1872 if test -r "$ac_site_file"; then
1873 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1874 echo "$as_me: loading site script $ac_site_file" >&6;}
1875 sed 's/^/| /' "$ac_site_file" >&5
1880 if test -r "$cache_file"; then
1881 # Some versions of bash will fail to source /dev/null (special
1882 # files actually), so we avoid doing that.
1883 if test -f "$cache_file"; then
1884 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1885 echo "$as_me: loading cache $cache_file" >&6;}
1887 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1888 *) . "./$cache_file";;
1892 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1893 echo "$as_me: creating cache $cache_file" >&6;}
1897 # Check that the precious variables saved in the cache have kept the same
1899 ac_cache_corrupted=false
1900 for ac_var in $ac_precious_vars; do
1901 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1902 eval ac_new_set=\$ac_env_${ac_var}_set
1903 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1904 eval ac_new_val=\$ac_env_${ac_var}_value
1905 case $ac_old_set,$ac_new_set in
1907 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1908 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1909 ac_cache_corrupted=: ;;
1911 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1912 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1913 ac_cache_corrupted=: ;;
1916 if test "x$ac_old_val" != "x$ac_new_val"; then
1917 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1918 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1919 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1920 echo "$as_me: former value: $ac_old_val" >&2;}
1921 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1922 echo "$as_me: current value: $ac_new_val" >&2;}
1923 ac_cache_corrupted=:
1926 # Pass precious variables to config.status.
1927 if test "$ac_new_set" = set; then
1929 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 *) ac_arg=$ac_var=$ac_new_val ;;
1932 case " $ac_configure_args " in
1933 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1934 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938 if $ac_cache_corrupted; then
1939 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1940 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1941 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1942 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1943 { (exit 1); exit 1; }; }
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977 # The argument here is just something that should be in the current directory
1978 # (for sanity checking)
1980 am__api_version='1.10'
1983 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1984 if test -f "$ac_dir/install-sh"; then
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1988 elif test -f "$ac_dir/install.sh"; then
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1992 elif test -f "$ac_dir/shtool"; then
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1998 if test -z "$ac_aux_dir"; then
1999 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2001 { (exit 1); exit 1; }; }
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2013 # Find a good install program. We prefer a C program (faster),
2014 # so one script is as good as another. But avoid the broken or
2015 # incompatible versions:
2016 # SysV /etc/install, /usr/sbin/install
2017 # SunOS /usr/etc/install
2018 # IRIX /sbin/install
2020 # AmigaOS /C/install, which installs bootblocks on floppy discs
2021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2024 # OS/2's system install, which has a completely different semantic
2025 # ./install, which can be erroneously created by make from ./install.sh.
2026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2028 if test -z "$INSTALL"; then
2029 if test "${ac_cv_path_install+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 # Account for people who put trailing slashes in PATH elements.
2039 ./ | .// | /cC/* | \
2040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2044 # OSF1 and SCO ODT 3.0 have their own names for install.
2045 # Don't use installbsd from OSF since it installs stuff as root
2047 for ac_prog in ginstall scoinst install; do
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2050 if test $ac_prog = install &&
2051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052 # AIX install. It has an incompatible calling convention.
2054 elif test $ac_prog = install &&
2055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056 # program-specific install script used by HP pwplus--don't use.
2059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2072 if test "${ac_cv_path_install+set}" = set; then
2073 INSTALL=$ac_cv_path_install
2075 # As a last resort, use the slow shell script. Don't cache a
2076 # value for INSTALL within a source directory, because that will
2077 # break other packages using the cache if that directory is
2078 # removed, or if the value is a relative name.
2079 INSTALL=$ac_install_sh
2082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2083 echo "${ECHO_T}$INSTALL" >&6; }
2085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2086 # It thinks the first close brace ends the variable substitution.
2087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2093 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2094 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2097 echo timestamp > conftest.file
2098 # Do `set' in a subshell so we don't clobber the current shell's
2099 # arguments. Must try -L first in case configure is actually a
2100 # symlink; some systems play weird games with the mod time of symlinks
2101 # (eg FreeBSD returns the mod time of the symlink's containing
2104 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2105 if test "$*" = "X"; then
2107 set X `ls -t $srcdir/configure conftest.file`
2110 if test "$*" != "X $srcdir/configure conftest.file" \
2111 && test "$*" != "X conftest.file $srcdir/configure"; then
2113 # If neither matched, then we have a broken ls. This can happen
2114 # if, for instance, CONFIG_SHELL is bash and it inherits a
2115 # broken ls alias from the environment. This has actually
2116 # happened. Such a system could not be considered "sane".
2117 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2118 alias in your environment" >&5
2119 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2120 alias in your environment" >&2;}
2121 { (exit 1); exit 1; }; }
2124 test "$2" = conftest.file
2130 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2131 Check your system clock" >&5
2132 echo "$as_me: error: newly created file is older than distributed files!
2133 Check your system clock" >&2;}
2134 { (exit 1); exit 1; }; }
2136 { echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6; }
2138 test "$program_prefix" != NONE &&
2139 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2140 # Use a double $ so make ignores it.
2141 test "$program_suffix" != NONE &&
2142 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2143 # Double any \ or $. echo might interpret backslashes.
2144 # By default was `s,x,x', remove it if useless.
2145 cat <<\_ACEOF >conftest.sed
2146 s/[\\$]/&&/g;s/;s,x,x,$//
2148 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2151 # expand $ac_aux_dir to an absolute path
2152 am_aux_dir=`cd $ac_aux_dir && pwd`
2154 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2155 # Use eval to expand $SHELL
2156 if eval "$MISSING --run true"; then
2157 am_missing_run="$MISSING --run "
2160 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2161 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2164 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2165 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2166 if test -z "$MKDIR_P"; then
2167 if test "${ac_cv_path_mkdir+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2174 test -z "$as_dir" && as_dir=.
2175 for ac_prog in mkdir gmkdir; do
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2178 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2179 'mkdir (GNU coreutils) '* | \
2180 'mkdir (coreutils) '* | \
2181 'mkdir (fileutils) '4.1*)
2182 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2192 if test "${ac_cv_path_mkdir+set}" = set; then
2193 MKDIR_P="$ac_cv_path_mkdir -p"
2195 # As a last resort, use the slow shell script. Don't cache a
2196 # value for MKDIR_P within a source directory, because that will
2197 # break other packages using the cache if that directory is
2198 # removed, or if the value is a relative name.
2199 test -d ./--version && rmdir ./--version
2200 MKDIR_P="$ac_install_sh -d"
2203 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2204 echo "${ECHO_T}$MKDIR_P" >&6; }
2208 [\\/$]* | ?:[\\/]*) ;;
2209 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2212 for ac_prog in gawk mawk nawk awk
2214 # Extract the first word of "$ac_prog", so it can be a program name with args.
2215 set dummy $ac_prog; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_AWK+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$AWK"; then
2222 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_AWK="$ac_prog"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$AWK"; then
2243 { echo "$as_me:$LINENO: result: $AWK" >&5
2244 echo "${ECHO_T}$AWK" >&6; }
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2251 test -n "$AWK" && break
2254 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2256 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2257 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 cat >conftest.make <<\_ACEOF
2263 @echo '@@@%%%=$(MAKE)=@@@%%%'
2265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2268 eval ac_cv_prog_make_${ac_make}_set=yes;;
2270 eval ac_cv_prog_make_${ac_make}_set=no;;
2274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 SET_MAKE="MAKE=${MAKE-make}"
2284 rm -rf .tst 2>/dev/null
2285 mkdir .tst 2>/dev/null
2286 if test -d .tst; then
2291 rmdir .tst 2>/dev/null
2293 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2295 # is not polluted with repeated "-I."
2296 am__isrc=' -I$(srcdir)'
2297 # test to see if srcdir already configured
2298 if test -f $srcdir/config.status; then
2299 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2301 { (exit 1); exit 1; }; }
2305 # test whether we have cygpath
2306 if test -z "$CYGPATH_W"; then
2307 if (cygpath --version) >/dev/null 2>/dev/null; then
2308 CYGPATH_W='cygpath -w'
2315 # Define the identity of the package.
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE "$PACKAGE"
2325 cat >>confdefs.h <<_ACEOF
2326 #define VERSION "$VERSION"
2329 # Some tools Automake needs.
2331 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2334 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2337 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2340 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2343 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2345 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2347 # Installed binaries are usually stripped using `strip' when the user
2348 # run `make install-strip'. However `strip' might not be the right
2349 # tool to use in cross-compilation environments, therefore Automake
2350 # will honor the `STRIP' environment variable to overrule this program.
2351 if test "$cross_compiling" != no; then
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}strip; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_STRIP+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$STRIP"; then
2361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 STRIP=$ac_cv_prog_STRIP
2381 if test -n "$STRIP"; then
2382 { echo "$as_me:$LINENO: result: $STRIP" >&5
2383 echo "${ECHO_T}$STRIP" >&6; }
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2391 if test -z "$ac_cv_prog_STRIP"; then
2393 # Extract the first word of "strip", so it can be a program name with args.
2394 set dummy strip; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$ac_ct_STRIP"; then
2401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_STRIP="strip"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421 if test -n "$ac_ct_STRIP"; then
2422 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2423 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2429 if test "x$ac_ct_STRIP" = x; then
2432 case $cross_compiling:$ac_tool_warned in
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2445 STRIP="$ac_cv_prog_STRIP"
2449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2451 # We need awk for the "check" target. The system "awk" is bad on
2453 # Always define AMTAR for backward compatibility.
2455 AMTAR=${AMTAR-"${am_missing_run}tar"}
2457 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2463 ac_config_headers="$ac_config_headers src/config.h"
2466 # Checks for programs.
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 if test -n "$CC"; then
2502 { echo "$as_me:$LINENO: result: $CC" >&5
2503 echo "${ECHO_T}$CC" >&6; }
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2511 if test -z "$ac_cv_prog_CC"; then
2513 # Extract the first word of "gcc", so it can be a program name with args.
2514 set dummy gcc; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$ac_ct_CC"; then
2521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_ac_ct_CC="gcc"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541 if test -n "$ac_ct_CC"; then
2542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2543 echo "${ECHO_T}$ac_ct_CC" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2549 if test "x$ac_ct_CC" = x; then
2552 case $cross_compiling:$ac_tool_warned in
2554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet. If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&5
2557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2558 whose name does not start with the host triplet. If you think this
2559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2560 ac_tool_warned=yes ;;
2568 if test -z "$CC"; then
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}cc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_CC="${ac_tool_prefix}cc"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 if test -n "$CC"; then
2599 { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2609 if test -z "$CC"; then
2610 # Extract the first word of "cc", so it can be a program name with args.
2611 set dummy cc; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2629 ac_prog_rejected=yes
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 if test $ac_prog_rejected = yes; then
2641 # We found a bogon in the path, so make sure we never use it.
2642 set dummy $ac_cv_prog_CC
2644 if test $# != 0; then
2645 # We chose a different compiler from the bogus one.
2646 # However, it has the same basename, so the bogon will be chosen
2647 # first if we set CC to just the basename; use the full file name.
2649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2655 if test -n "$CC"; then
2656 { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2665 if test -z "$CC"; then
2666 if test -n "$ac_tool_prefix"; then
2667 for ac_prog in cl.exe
2669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 if test -n "$CC"; then
2698 { echo "$as_me:$LINENO: result: $CC" >&5
2699 echo "${ECHO_T}$CC" >&6; }
2701 { echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6; }
2706 test -n "$CC" && break
2709 if test -z "$CC"; then
2711 for ac_prog in cl.exe
2713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_ac_ct_CC="$ac_prog"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2743 echo "${ECHO_T}$ac_ct_CC" >&6; }
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2750 test -n "$ac_ct_CC" && break
2753 if test "x$ac_ct_CC" = x; then
2756 case $cross_compiling:$ac_tool_warned in
2758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2759 whose name does not start with the host triplet. If you think this
2760 configuration is useful to you, please write to autoconf@gnu.org." >&5
2761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2762 whose name does not start with the host triplet. If you think this
2763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2764 ac_tool_warned=yes ;;
2773 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: no acceptable C compiler found in \$PATH
2776 See \`config.log' for more details." >&2;}
2777 { (exit 1); exit 1; }; }
2779 # Provide some information about the compiler.
2780 echo "$as_me:$LINENO: checking for C compiler version" >&5
2781 ac_compiler=`set X $ac_compile; echo $2`
2782 { (ac_try="$ac_compiler --version >&5"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compiler --version >&5") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }
2792 { (ac_try="$ac_compiler -v >&5"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compiler -v >&5") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }
2802 { (ac_try="$ac_compiler -V >&5"
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_compiler -V >&5") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }
2813 cat >conftest.$ac_ext <<_ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2828 ac_clean_files_save=$ac_clean_files
2829 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2830 # Try to create an executable without -o first, disregard a.out.
2831 # It will help us diagnose broken compilers, and finding out an intuition
2833 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2834 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2835 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2837 # List of possible output files, starting from the most likely.
2838 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2839 # only as a last resort. b.out is created by i960 compilers.
2840 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2842 # The IRIX 6 linker writes into existing files which may not be
2843 # executable, retaining their permissions. Remove them first so a
2844 # subsequent execution test works.
2846 for ac_file in $ac_files
2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2850 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 if { (ac_try="$ac_link_default"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_link_default") 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; then
2865 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2866 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2867 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2868 # so that the user can short-circuit this test for compilers unknown to
2870 for ac_file in $ac_files ''
2872 test -f "$ac_file" || continue
2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2877 # We found the default executable, but exeext='' is most
2881 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2883 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885 # We set ac_cv_exeext here because the later test for it is not
2886 # safe: cross compilers may not add the suffix if given an `-o'
2887 # argument, so we may need to know it at that point already.
2888 # Even if this section looks crufty: it has the advantage of
2895 test "$ac_cv_exeext" = no && ac_cv_exeext=
2901 { echo "$as_me:$LINENO: result: $ac_file" >&5
2902 echo "${ECHO_T}$ac_file" >&6; }
2903 if test -z "$ac_file"; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: C compiler cannot create executables
2910 See \`config.log' for more details." >&2;}
2911 { (exit 77); exit 77; }; }
2914 ac_exeext=$ac_cv_exeext
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2919 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2920 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2921 # If not cross compiling, check that we can run a simple program.
2922 if test "$cross_compiling" != yes; then
2923 if { ac_try='./$ac_file'
2924 { (case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_try") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2935 if test "$cross_compiling" = maybe; then
2938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2939 If you meant to cross compile, use \`--host'.
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: cannot run C compiled programs.
2942 If you meant to cross compile, use \`--host'.
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2948 { echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6; }
2951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2952 ac_clean_files=$ac_clean_files_save
2953 # Check that the compiler produces executables we can run. If not, either
2954 # the compiler is broken, or we cross compile.
2955 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2957 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2958 echo "${ECHO_T}$cross_compiling" >&6; }
2960 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2962 if { (ac_try="$ac_link"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_link") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2974 # work properly (i.e., refer to `conftest.exe'), while it won't with
2976 for ac_file in conftest.exe conftest conftest.*; do
2977 test -f "$ac_file" || continue
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details." >&5
2988 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }
2993 rm -f conftest$ac_cv_exeext
2994 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2995 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2997 rm -f conftest.$ac_ext
2998 EXEEXT=$ac_cv_exeext
3000 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3001 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3002 if test "${ac_cv_objext+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.o conftest.obj
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; then
3031 for ac_file in conftest.o conftest.obj conftest.*; do
3032 test -f "$ac_file" || continue;
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3052 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3053 echo "${ECHO_T}$ac_cv_objext" >&6; }
3054 OBJEXT=$ac_cv_objext
3056 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && {
3093 test -z "$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3108 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3109 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3110 GCC=`test $ac_compiler_gnu = yes && echo yes`
3111 ac_test_CFLAGS=${CFLAGS+set}
3112 ac_save_CFLAGS=$CFLAGS
3113 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_cc_g+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 ac_save_c_werror_flag=$ac_c_werror_flag
3119 ac_c_werror_flag=yes
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_c_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } && {
3228 test -z "$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3259 if test "$GCC" = yes; then
3265 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_cv_prog_cc_c89=no
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3296 s = g (p, va_arg (v,int));
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_c_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3350 ac_cv_prog_cc_c89=$ac_arg
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 rm -f conftest.$ac_ext
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 DEPDIR="${am__leading_dot}deps"
3387 ac_config_commands="$ac_config_commands depfiles"
3390 am_make=${MAKE-make}
3391 cat > confinc << 'END'
3396 # If we don't find an include directive, just comment out the code.
3397 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3398 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3402 # First try GNU make style include.
3403 echo "include confinc" > confmf
3404 # We grep out `Entering directory' and `Leaving directory'
3405 # messages which can occur if `w' ends up in MAKEFLAGS.
3406 # In particular we don't look at `^make:' because GNU make might
3407 # be invoked under some other name (usually "gmake"), in which
3408 # case it prints its new name instead of `make'.
3409 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3414 # Now try BSD make style include.
3415 if test "$am__include" = "#"; then
3416 echo '.include "confinc"' > confmf
3417 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3418 am__include=.include
3425 { echo "$as_me:$LINENO: result: $_am_result" >&5
3426 echo "${ECHO_T}$_am_result" >&6; }
3427 rm -f confinc confmf
3429 # Check whether --enable-dependency-tracking was given.
3430 if test "${enable_dependency_tracking+set}" = set; then
3431 enableval=$enable_dependency_tracking;
3434 if test "x$enable_dependency_tracking" != xno; then
3435 am_depcomp="$ac_aux_dir/depcomp"
3438 if test "x$enable_dependency_tracking" != xno; then
3448 depcc="$CC" am_compiler_list=
3450 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3451 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3452 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3456 # We make a subdir and do the tests there. Otherwise we can end up
3457 # making bogus files that we don't know about and never remove. For
3458 # instance it was reported that on HP-UX the gcc test will end up
3459 # making a dummy file named `D' -- because `-MD' means `put the output
3462 # Copy depcomp to subdir because otherwise we won't find it if we're
3463 # using a relative directory.
3464 cp "$am_depcomp" conftest.dir
3466 # We will build objects and dependencies in a subdirectory because
3467 # it helps to detect inapplicable dependency modes. For instance
3468 # both Tru64's cc and ICC support -MD to output dependencies as a
3469 # side effect of compilation, but ICC will put the dependencies in
3470 # the current directory while Tru64 will put them in the object
3474 am_cv_CC_dependencies_compiler_type=none
3475 if test "$am_compiler_list" = ""; then
3476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3478 for depmode in $am_compiler_list; do
3479 # Setup a source with many dependencies, because some compilers
3480 # like to wrap large dependency lists on column 80 (with \), and
3481 # we should not choose a depcomp mode which is confused by this.
3483 # We need to recreate these files for each test, as the compiler may
3484 # overwrite some of them when testing with obscure command lines.
3485 # This happens at least with the AIX C compiler.
3487 for i in 1 2 3 4 5 6; do
3488 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3489 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3490 # Solaris 8's {/usr,}/bin/sh.
3491 touch sub/conftst$i.h
3493 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3497 # after this tag, mechanisms are not by side-effect, so they'll
3498 # only be used when explicitly requested
3499 if test "x$enable_dependency_tracking" = xyes; then
3507 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508 # mode. It turns out that the SunPro C++ compiler does not properly
3509 # handle `-M -o', and we need to detect this.
3510 if depmode=$depmode \
3511 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3512 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3513 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3514 >/dev/null 2>conftest.err &&
3515 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3516 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3517 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3518 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3519 # icc doesn't choke on unknown options, it will just issue warnings
3520 # or remarks (even with -Werror). So we grep stderr for any message
3521 # that says an option was ignored or not supported.
3522 # When given -MP, icc 7.0 and 7.1 complain thusly:
3523 # icc: Command line warning: ignoring option '-M'; no argument required
3524 # The diagnosis changed in icc 8.0:
3525 # icc: Command line remark: option '-MP' not supported
3526 if (grep 'ignoring option' conftest.err ||
3527 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3528 am_cv_CC_dependencies_compiler_type=$depmode
3537 am_cv_CC_dependencies_compiler_type=none
3541 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3542 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3543 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3546 test "x$enable_dependency_tracking" != xno \
3547 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3549 am__fastdepCC_FALSE='#'
3551 am__fastdepCC_TRUE='#'
3552 am__fastdepCC_FALSE=
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3563 # On Suns, sometimes $CPP names a directory.
3564 if test -n "$CPP" && test -d "$CPP"; then
3567 if test -z "$CPP"; then
3568 if test "${ac_cv_prog_CPP+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 # Double quotes because CPP needs to be expanded
3572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3575 for ac_c_preproc_warn_flag in '' yes
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580 # <limits.h> exists even on freestanding compilers.
3581 # On the NeXT, cc -E runs the code through the compiler's parser,
3582 # not just through cpp. "Syntax error" is here to catch this case.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 # include <limits.h>
3592 # include <assert.h>
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null && {
3609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 # Broken: fails on valid input.
3621 rm -f conftest.err conftest.$ac_ext
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include <ac_nonexistent.h>
3633 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 grep -v '^ *+' conftest.er1 >conftest.err
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null && {
3646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3647 test ! -s conftest.err
3649 # Broken: success on invalid input.
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 # Passes both tests.
3660 rm -f conftest.err conftest.$ac_ext
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3677 { echo "$as_me:$LINENO: result: $CPP" >&5
3678 echo "${ECHO_T}$CPP" >&6; }
3680 for ac_c_preproc_warn_flag in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.$ac_ext <<_ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3695 # include <limits.h>
3697 # include <assert.h>
3701 if { (ac_try="$ac_cpp conftest.$ac_ext"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } >/dev/null && {
3714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 # Broken: fails on valid input.
3726 rm -f conftest.err conftest.$ac_ext
3728 # OK, works on sane cases. Now check whether nonexistent headers
3729 # can be detected and how.
3730 cat >conftest.$ac_ext <<_ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736 #include <ac_nonexistent.h>
3738 if { (ac_try="$ac_cpp conftest.$ac_ext"
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3746 grep -v '^ *+' conftest.er1 >conftest.err
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } >/dev/null && {
3751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3754 # Broken: success on invalid input.
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 # Passes both tests.
3765 rm -f conftest.err conftest.$ac_ext
3768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3769 rm -f conftest.err conftest.$ac_ext
3770 if $ac_preproc_ok; then
3773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3774 See \`config.log' for more details." >&5
3775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3776 See \`config.log' for more details." >&2;}
3777 { (exit 1); exit 1; }; }
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 ac_cpp='$CXXCPP $CPPFLAGS'
3788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3791 if test -z "$CXX"; then
3792 if test -n "$CCC"; then
3795 if test -n "$ac_tool_prefix"; then
3796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3802 if test "${ac_cv_prog_CXX+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 if test -n "$CXX"; then
3806 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 if test -n "$CXX"; then
3827 { echo "$as_me:$LINENO: result: $CXX" >&5
3828 echo "${ECHO_T}$CXX" >&6; }
3830 { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3835 test -n "$CXX" && break
3838 if test -z "$CXX"; then
3840 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3842 # Extract the first word of "$ac_prog", so it can be a program name with args.
3843 set dummy $ac_prog; ac_word=$2
3844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3846 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -n "$ac_ct_CXX"; then
3850 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859 ac_cv_prog_ac_ct_CXX="$ac_prog"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3870 if test -n "$ac_ct_CXX"; then
3871 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3872 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3874 { echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6; }
3879 test -n "$ac_ct_CXX" && break
3882 if test "x$ac_ct_CXX" = x; then
3885 case $cross_compiling:$ac_tool_warned in
3887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3888 whose name does not start with the host triplet. If you think this
3889 configuration is useful to you, please write to autoconf@gnu.org." >&5
3890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3891 whose name does not start with the host triplet. If you think this
3892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3893 ac_tool_warned=yes ;;
3901 # Provide some information about the compiler.
3902 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3903 ac_compiler=`set X $ac_compile; echo $2`
3904 { (ac_try="$ac_compiler --version >&5"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_compiler --version >&5") 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }
3914 { (ac_try="$ac_compiler -v >&5"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compiler -v >&5") 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }
3924 { (ac_try="$ac_compiler -V >&5"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_compiler -V >&5") 2>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }
3935 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3936 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3937 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_cxx_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest.$ac_objext; then
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3987 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3988 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3989 GXX=`test $ac_compiler_gnu = yes && echo yes`
3990 ac_test_CXXFLAGS=${CXXFLAGS+set}
3991 ac_save_CXXFLAGS=$CXXFLAGS
3992 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3993 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3994 if test "${ac_cv_prog_cxx_g+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3998 ac_cxx_werror_flag=yes
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } && {
4030 test -z "$ac_cxx_werror_flag" ||
4031 test ! -s conftest.err
4032 } && test -s conftest.$ac_objext; then
4033 ac_cv_prog_cxx_g=yes
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_compile") 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } && {
4068 test -z "$ac_cxx_werror_flag" ||
4069 test ! -s conftest.err
4070 } && test -s conftest.$ac_objext; then
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4093 rm -f conftest.$ac_objext
4094 if { (ac_try="$ac_compile"
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_compile") 2>conftest.er1
4102 grep -v '^ *+' conftest.er1 >conftest.err
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } && {
4107 test -z "$ac_cxx_werror_flag" ||
4108 test ! -s conftest.err
4109 } && test -s conftest.$ac_objext; then
4110 ac_cv_prog_cxx_g=yes
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4128 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4129 if test "$ac_test_CXXFLAGS" = set; then
4130 CXXFLAGS=$ac_save_CXXFLAGS
4131 elif test $ac_cv_prog_cxx_g = yes; then
4132 if test "$GXX" = yes; then
4138 if test "$GXX" = yes; then
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 depcc="$CXX" am_compiler_list=
4152 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4153 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4154 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4158 # We make a subdir and do the tests there. Otherwise we can end up
4159 # making bogus files that we don't know about and never remove. For
4160 # instance it was reported that on HP-UX the gcc test will end up
4161 # making a dummy file named `D' -- because `-MD' means `put the output
4164 # Copy depcomp to subdir because otherwise we won't find it if we're
4165 # using a relative directory.
4166 cp "$am_depcomp" conftest.dir
4168 # We will build objects and dependencies in a subdirectory because
4169 # it helps to detect inapplicable dependency modes. For instance
4170 # both Tru64's cc and ICC support -MD to output dependencies as a
4171 # side effect of compilation, but ICC will put the dependencies in
4172 # the current directory while Tru64 will put them in the object
4176 am_cv_CXX_dependencies_compiler_type=none
4177 if test "$am_compiler_list" = ""; then
4178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4180 for depmode in $am_compiler_list; do
4181 # Setup a source with many dependencies, because some compilers
4182 # like to wrap large dependency lists on column 80 (with \), and
4183 # we should not choose a depcomp mode which is confused by this.
4185 # We need to recreate these files for each test, as the compiler may
4186 # overwrite some of them when testing with obscure command lines.
4187 # This happens at least with the AIX C compiler.
4189 for i in 1 2 3 4 5 6; do
4190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4191 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4192 # Solaris 8's {/usr,}/bin/sh.
4193 touch sub/conftst$i.h
4195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4199 # after this tag, mechanisms are not by side-effect, so they'll
4200 # only be used when explicitly requested
4201 if test "x$enable_dependency_tracking" = xyes; then
4209 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4210 # mode. It turns out that the SunPro C++ compiler does not properly
4211 # handle `-M -o', and we need to detect this.
4212 if depmode=$depmode \
4213 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4214 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4215 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4216 >/dev/null 2>conftest.err &&
4217 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4219 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4221 # icc doesn't choke on unknown options, it will just issue warnings
4222 # or remarks (even with -Werror). So we grep stderr for any message
4223 # that says an option was ignored or not supported.
4224 # When given -MP, icc 7.0 and 7.1 complain thusly:
4225 # icc: Command line warning: ignoring option '-M'; no argument required
4226 # The diagnosis changed in icc 8.0:
4227 # icc: Command line remark: option '-MP' not supported
4228 if (grep 'ignoring option' conftest.err ||
4229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4230 am_cv_CXX_dependencies_compiler_type=$depmode
4239 am_cv_CXX_dependencies_compiler_type=none
4243 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4244 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4245 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4248 test "x$enable_dependency_tracking" != xno \
4249 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4250 am__fastdepCXX_TRUE=
4251 am__fastdepCXX_FALSE='#'
4253 am__fastdepCXX_TRUE='#'
4254 am__fastdepCXX_FALSE=
4258 if test "$GCC" = yes; then
4265 # let the Makefile know if we're gcc
4267 # Check whether --enable-shared was given.
4268 if test "${enable_shared+set}" = set; then
4269 enableval=$enable_shared; p=${PACKAGE-default}
4271 yes) enable_shared=yes ;;
4272 no) enable_shared=no ;;
4275 # Look at the argument we got. We use all the common list separators.
4276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4277 for pkg in $enableval; do
4279 if test "X$pkg" = "X$p"; then
4291 # Check whether --enable-static was given.
4292 if test "${enable_static+set}" = set; then
4293 enableval=$enable_static; p=${PACKAGE-default}
4295 yes) enable_static=yes ;;
4296 no) enable_static=no ;;
4299 # Look at the argument we got. We use all the common list separators.
4300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4301 for pkg in $enableval; do
4303 if test "X$pkg" = "X$p"; then
4315 # Check whether --enable-fast-install was given.
4316 if test "${enable_fast_install+set}" = set; then
4317 enableval=$enable_fast_install; p=${PACKAGE-default}
4319 yes) enable_fast_install=yes ;;
4320 no) enable_fast_install=no ;;
4322 enable_fast_install=no
4323 # Look at the argument we got. We use all the common list separators.
4324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4325 for pkg in $enableval; do
4327 if test "X$pkg" = "X$p"; then
4328 enable_fast_install=yes
4335 enable_fast_install=yes
4339 # Make sure we can run config.sub.
4340 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4341 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4342 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4343 { (exit 1); exit 1; }; }
4345 { echo "$as_me:$LINENO: checking build system type" >&5
4346 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4347 if test "${ac_cv_build+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 ac_build_alias=$build_alias
4351 test "x$ac_build_alias" = x &&
4352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4353 test "x$ac_build_alias" = x &&
4354 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4355 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4356 { (exit 1); exit 1; }; }
4357 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4358 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4359 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4360 { (exit 1); exit 1; }; }
4363 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4364 echo "${ECHO_T}$ac_cv_build" >&6; }
4365 case $ac_cv_build in
4367 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4368 echo "$as_me: error: invalid value of canonical build" >&2;}
4369 { (exit 1); exit 1; }; };;
4372 ac_save_IFS=$IFS; IFS='-'
4378 # Remember, the first character of IFS is used to create $*,
4379 # except with old shells:
4382 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4385 { echo "$as_me:$LINENO: checking host system type" >&5
4386 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4387 if test "${ac_cv_host+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test "x$host_alias" = x; then
4391 ac_cv_host=$ac_cv_build
4393 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4394 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4395 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4396 { (exit 1); exit 1; }; }
4400 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4401 echo "${ECHO_T}$ac_cv_host" >&6; }
4404 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4405 echo "$as_me: error: invalid value of canonical host" >&2;}
4406 { (exit 1); exit 1; }; };;
4409 ac_save_IFS=$IFS; IFS='-'
4415 # Remember, the first character of IFS is used to create $*,
4416 # except with old shells:
4419 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4422 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4423 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4424 if test "${lt_cv_path_SED+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 # Loop through the user's path and test for sed and gsed.
4428 # Then use that list of sed's as ones to test for truncation.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for lt_ac_prog in sed gsed; do
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4437 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4445 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4446 # along with /bin/sed that truncates output.
4447 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4448 test ! -f $lt_ac_sed && continue
4449 cat /dev/null > conftest.in
4451 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4452 # Check for GNU sed and select it if it is found.
4453 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4454 lt_cv_path_SED=$lt_ac_sed
4458 cat conftest.in conftest.in >conftest.tmp
4459 mv conftest.tmp conftest.in
4460 cp conftest.in conftest.nl
4462 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4463 cmp -s conftest.out conftest.nl || break
4464 # 10000 chars as input seems more than enough
4465 test $lt_ac_count -gt 10 && break
4466 lt_ac_count=`expr $lt_ac_count + 1`
4467 if test $lt_ac_count -gt $lt_ac_max; then
4468 lt_ac_max=$lt_ac_count
4469 lt_cv_path_SED=$lt_ac_sed
4478 { echo "$as_me:$LINENO: result: $SED" >&5
4479 echo "${ECHO_T}$SED" >&6; }
4481 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4482 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4483 if test "${ac_cv_path_GREP+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 # Extract the first word of "grep ggrep" to use in msg output
4487 if test -z "$GREP"; then
4488 set dummy grep ggrep; ac_prog_name=$2
4489 if test "${ac_cv_path_GREP+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 ac_path_GREP_found=false
4493 # Loop through the user's path and test for each of PROGNAME-LIST
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 test -z "$as_dir" && as_dir=.
4499 for ac_prog in grep ggrep; do
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4502 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4503 # Check for GNU ac_path_GREP and select it if it is found.
4504 # Check for GNU $ac_path_GREP
4505 case `"$ac_path_GREP" --version 2>&1` in
4507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4510 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4513 cat "conftest.in" "conftest.in" >"conftest.tmp"
4514 mv "conftest.tmp" "conftest.in"
4515 cp "conftest.in" "conftest.nl"
4516 echo 'GREP' >> "conftest.nl"
4517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519 ac_count=`expr $ac_count + 1`
4520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4521 # Best one so far, save it but keep looking for a better one
4522 ac_cv_path_GREP="$ac_path_GREP"
4523 ac_path_GREP_max=$ac_count
4525 # 10*(2^10) chars as input seems more than enough
4526 test $ac_count -gt 10 && break
4528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 $ac_path_GREP_found && break 3
4542 GREP="$ac_cv_path_GREP"
4543 if test -z "$GREP"; then
4544 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4545 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4546 { (exit 1); exit 1; }; }
4550 ac_cv_path_GREP=$GREP
4555 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4556 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4557 GREP="$ac_cv_path_GREP"
4560 { echo "$as_me:$LINENO: checking for egrep" >&5
4561 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4562 if test "${ac_cv_path_EGREP+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4566 then ac_cv_path_EGREP="$GREP -E"
4568 # Extract the first word of "egrep" to use in msg output
4569 if test -z "$EGREP"; then
4570 set dummy egrep; ac_prog_name=$2
4571 if test "${ac_cv_path_EGREP+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 ac_path_EGREP_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in egrep; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4584 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4585 # Check for GNU ac_path_EGREP and select it if it is found.
4586 # Check for GNU $ac_path_EGREP
4587 case `"$ac_path_EGREP" --version 2>&1` in
4589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4592 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 echo 'EGREP' >> "conftest.nl"
4599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 ac_count=`expr $ac_count + 1`
4602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_EGREP="$ac_path_EGREP"
4605 ac_path_EGREP_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 $ac_path_EGREP_found && break 3
4624 EGREP="$ac_cv_path_EGREP"
4625 if test -z "$EGREP"; then
4626 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4627 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4628 { (exit 1); exit 1; }; }
4632 ac_cv_path_EGREP=$EGREP
4638 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4639 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4640 EGREP="$ac_cv_path_EGREP"
4644 # Check whether --with-gnu-ld was given.
4645 if test "${with_gnu_ld+set}" = set; then
4646 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4652 if test "$GCC" = yes; then
4653 # Check if gcc -print-prog-name=ld gives a path.
4654 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4655 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4658 # gcc leaves a trailing carriage return which upsets mingw
4659 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4661 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4664 # Accept absolute paths.
4666 re_direlt='/[^/][^/]*/\.\./'
4667 # Canonicalize the pathname of ld
4668 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4670 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4672 test -z "$LD" && LD="$ac_prog"
4675 # If it fails, then pretend we aren't using GCC.
4679 # If it is relative, then search for the first ld in PATH.
4683 elif test "$with_gnu_ld" = yes; then
4684 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4687 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4690 if test "${lt_cv_path_LD+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 if test -z "$LD"; then
4694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4695 for ac_dir in $PATH; do
4697 test -z "$ac_dir" && ac_dir=.
4698 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4699 lt_cv_path_LD="$ac_dir/$ac_prog"
4700 # Check to see if the program is GNU ld. I'd rather use --version,
4701 # but apparently some variants of GNU ld only accept -v.
4702 # Break only if it was the GNU/non-GNU ld that we prefer.
4703 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4704 *GNU* | *'with BFD'*)
4705 test "$with_gnu_ld" != no && break
4708 test "$with_gnu_ld" != yes && break
4715 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4720 if test -n "$LD"; then
4721 { echo "$as_me:$LINENO: result: $LD" >&5
4722 echo "${ECHO_T}$LD" >&6; }
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4727 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4728 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4729 { (exit 1); exit 1; }; }
4730 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4731 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4732 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4736 case `$LD -v 2>&1 </dev/null` in
4737 *GNU* | *'with BFD'*)
4738 lt_cv_prog_gnu_ld=yes
4741 lt_cv_prog_gnu_ld=no
4745 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4746 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4747 with_gnu_ld=$lt_cv_prog_gnu_ld
4750 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4751 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4752 if test "${lt_cv_ld_reload_flag+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 lt_cv_ld_reload_flag='-r'
4757 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4758 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4759 reload_flag=$lt_cv_ld_reload_flag
4760 case $reload_flag in
4762 *) reload_flag=" $reload_flag" ;;
4764 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4767 if test "$GCC" = yes; then
4768 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4770 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4775 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4776 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4777 if test "${lt_cv_path_NM+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 if test -n "$NM"; then
4781 # Let the user override the test.
4784 lt_nm_to_check="${ac_tool_prefix}nm"
4785 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4786 lt_nm_to_check="$lt_nm_to_check nm"
4788 for lt_tmp_nm in $lt_nm_to_check; do
4789 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4790 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4792 test -z "$ac_dir" && ac_dir=.
4793 tmp_nm="$ac_dir/$lt_tmp_nm"
4794 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4795 # Check to see if the nm accepts a BSD-compat flag.
4796 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4797 # nm: unknown option "B" ignored
4798 # Tru64's nm complains that /dev/null is an invalid object file
4799 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4800 */dev/null* | *'Invalid file or object type'*)
4801 lt_cv_path_NM="$tmp_nm -B"
4805 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4807 lt_cv_path_NM="$tmp_nm -p"
4811 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4812 continue # so that we can try to find one that supports BSD flags
4821 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4824 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4825 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4828 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4829 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4831 if test "$LN_S" = "ln -s"; then
4832 { echo "$as_me:$LINENO: result: yes" >&5
4833 echo "${ECHO_T}yes" >&6; }
4835 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4836 echo "${ECHO_T}no, using $LN_S" >&6; }
4839 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4840 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4841 if test "${lt_cv_deplibs_check_method+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 lt_cv_file_magic_cmd='$MAGIC_CMD'
4845 lt_cv_file_magic_test_file=
4846 lt_cv_deplibs_check_method='unknown'
4847 # Need to set the preceding variable on all platforms that support
4848 # interlibrary dependencies.
4849 # 'none' -- dependencies not supported.
4850 # `unknown' -- same as none, but documents that we really don't know.
4851 # 'pass_all' -- all dependencies passed with no checks.
4852 # 'test_compile' -- check by making test program.
4853 # 'file_magic [[regex]]' -- check by looking for files in library path
4854 # which responds to the $file_magic_cmd with a given extended regex.
4855 # If you have `file' or equivalent on your system and you're not sure
4856 # whether `pass_all' will *always* work, you probably want this one.
4860 lt_cv_deplibs_check_method=pass_all
4864 lt_cv_deplibs_check_method=pass_all
4868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4869 lt_cv_file_magic_cmd='/usr/bin/file -L'
4870 lt_cv_file_magic_test_file=/shlib/libc.so
4874 # func_win32_libid is a shell function defined in ltmain.sh
4875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4876 lt_cv_file_magic_cmd='func_win32_libid'
4880 # Base MSYS/MinGW do not provide the 'file' command needed by
4881 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4882 # unless we find 'file', for example because we are cross-compiling.
4883 if ( file / ) >/dev/null 2>&1; then
4884 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4885 lt_cv_file_magic_cmd='func_win32_libid'
4887 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4888 lt_cv_file_magic_cmd='$OBJDUMP -f'
4892 darwin* | rhapsody*)
4893 lt_cv_deplibs_check_method=pass_all
4896 freebsd* | dragonfly*)
4897 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4900 # Not sure whether the presence of OpenBSD here was a mistake.
4901 # Let's accept both of them until this is cleared up.
4902 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4903 lt_cv_file_magic_cmd=/usr/bin/file
4904 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4908 lt_cv_deplibs_check_method=pass_all
4913 lt_cv_deplibs_check_method=pass_all
4916 hpux10.20* | hpux11*)
4917 lt_cv_file_magic_cmd=/usr/bin/file
4920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4921 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4924 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]'
4925 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4928 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4929 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4935 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4939 irix5* | irix6* | nonstopux*)
4941 *-32|*"-32 ") libmagic=32-bit;;
4942 *-n32|*"-n32 ") libmagic=N32;;
4943 *-64|*"-64 ") libmagic=64-bit;;
4944 *) libmagic=never-match;;
4946 lt_cv_deplibs_check_method=pass_all
4949 # This must be Linux ELF.
4950 linux* | k*bsd*-gnu)
4951 lt_cv_deplibs_check_method=pass_all
4954 netbsd* | netbsdelf*-gnu)
4955 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4964 lt_cv_file_magic_cmd=/usr/bin/file
4965 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4969 lt_cv_deplibs_check_method=unknown
4973 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4980 osf3* | osf4* | osf5*)
4981 lt_cv_deplibs_check_method=pass_all
4985 lt_cv_deplibs_check_method=pass_all
4989 lt_cv_deplibs_check_method=pass_all
4993 case $host_vendor in
4995 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]'
4996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4999 lt_cv_deplibs_check_method=pass_all
5002 lt_cv_file_magic_cmd='/bin/file'
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5006 lt_cv_file_magic_cmd='/bin/file'
5007 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5008 lt_cv_file_magic_test_file=/lib/libc.so
5011 lt_cv_deplibs_check_method=pass_all
5014 lt_cv_deplibs_check_method=pass_all
5019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5020 lt_cv_deplibs_check_method=pass_all
5025 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5026 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5027 file_magic_cmd=$lt_cv_file_magic_cmd
5028 deplibs_check_method=$lt_cv_deplibs_check_method
5029 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5034 # If no C compiler was specified, use CC.
5037 # If no C compiler flags were specified, use CFLAGS.
5038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5040 # Allow CC to be a program name with arguments.
5044 # Check whether --enable-libtool-lock was given.
5045 if test "${enable_libtool_lock+set}" = set; then
5046 enableval=$enable_libtool_lock;
5049 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5051 # Some flags need to be propagated to the compiler or linker for good
5055 # Find out which ABI we are using.
5056 echo 'int i;' > conftest.$ac_ext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; then
5062 case `/usr/bin/file conftest.$ac_objext` in
5074 # Find out which ABI we are using.
5075 echo '#line 5075 "configure"' > conftest.$ac_ext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; then
5081 if test "$lt_cv_prog_gnu_ld" = yes; then
5082 case `/usr/bin/file conftest.$ac_objext` in
5084 LD="${LD-ld} -melf32bsmip"
5087 LD="${LD-ld} -melf32bmipn32"
5090 LD="${LD-ld} -melf64bmip"
5094 case `/usr/bin/file conftest.$ac_objext` in
5110 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5111 s390*-*linux*|sparc*-*linux*)
5112 # Find out which ABI we are using.
5113 echo 'int i;' > conftest.$ac_ext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115 (eval $ac_compile) 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; then
5119 case `/usr/bin/file conftest.o` in
5122 x86_64-*kfreebsd*-gnu)
5123 LD="${LD-ld} -m elf_i386_fbsd"
5126 LD="${LD-ld} -m elf_i386"
5128 ppc64-*linux*|powerpc64-*linux*)
5129 LD="${LD-ld} -m elf32ppclinux"
5132 LD="${LD-ld} -m elf_s390"
5135 LD="${LD-ld} -m elf32_sparc"
5141 x86_64-*kfreebsd*-gnu)
5142 LD="${LD-ld} -m elf_x86_64_fbsd"
5145 LD="${LD-ld} -m elf_x86_64"
5147 ppc*-*linux*|powerpc*-*linux*)
5148 LD="${LD-ld} -m elf64ppc"
5151 LD="${LD-ld} -m elf64_s390"
5154 LD="${LD-ld} -m elf64_sparc"
5164 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5165 SAVE_CFLAGS="$CFLAGS"
5166 CFLAGS="$CFLAGS -belf"
5167 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5168 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5169 if test "${lt_cv_cc_needs_belf+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (ac_try="$ac_link"
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_link") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest$ac_exeext &&
5210 $as_test_x conftest$ac_exeext; then
5211 lt_cv_cc_needs_belf=yes
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 lt_cv_cc_needs_belf=no
5219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5220 conftest$ac_exeext conftest.$ac_ext
5222 ac_cpp='$CPP $CPPFLAGS'
5223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5229 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5230 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5231 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5232 CFLAGS="$SAVE_CFLAGS"
5236 # Find out which ABI we are using.
5237 echo 'int i;' > conftest.$ac_ext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239 (eval $ac_compile) 2>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; then
5243 case `/usr/bin/file conftest.o` in
5245 case $lt_cv_prog_gnu_ld in
5246 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5248 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5262 need_locks="$enable_libtool_lock"
5266 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5267 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5268 if test "${ac_cv_header_stdc+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5290 rm -f conftest.$ac_objext
5291 if { (ac_try="$ac_compile"
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_compile") 2>conftest.er1
5299 grep -v '^ *+' conftest.er1 >conftest.err
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && {
5304 test -z "$ac_c_werror_flag" ||
5305 test ! -s conftest.err
5306 } && test -s conftest.$ac_objext; then
5307 ac_cv_header_stdc=yes
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 ac_cv_header_stdc=no
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 if test $ac_cv_header_stdc = yes; then
5318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 $EGREP "memchr" >/dev/null 2>&1; then
5332 ac_cv_header_stdc=no
5338 if test $ac_cv_header_stdc = yes; then
5339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "free" >/dev/null 2>&1; then
5353 ac_cv_header_stdc=no
5359 if test $ac_cv_header_stdc = yes; then
5360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5361 if test "$cross_compiling" = yes; then
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5372 #if ((' ' & 0x0FF) == 0x020)
5373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5376 # define ISLOWER(c) \
5377 (('a' <= (c) && (c) <= 'i') \
5378 || ('j' <= (c) && (c) <= 'r') \
5379 || ('s' <= (c) && (c) <= 'z'))
5380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5388 for (i = 0; i < 256; i++)
5389 if (XOR (islower (i), ISLOWER (i))
5390 || toupper (i) != TOUPPER (i))
5395 rm -f conftest$ac_exeext
5396 if { (ac_try="$ac_link"
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_link") 2>&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5406 { (case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_try") 2>&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5417 echo "$as_me: program exited with status $ac_status" >&5
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_cv_header_stdc=no
5424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5430 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5431 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5432 if test $ac_cv_header_stdc = yes; then
5434 cat >>confdefs.h <<\_ACEOF
5435 #define STDC_HEADERS 1
5440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5451 inttypes.h stdint.h unistd.h
5453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 cat >conftest.$ac_ext <<_ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 $ac_includes_default
5467 #include <$ac_header>
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
5486 eval "$as_ac_Header=yes"
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 eval "$as_ac_Header=no"
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 ac_res=`eval echo '${'$as_ac_Header'}'`
5497 { echo "$as_me:$LINENO: result: $ac_res" >&5
5498 echo "${ECHO_T}$ac_res" >&6; }
5499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5500 cat >>confdefs.h <<_ACEOF
5501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510 for ac_header in dlfcn.h
5512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 ac_res=`eval echo '${'$as_ac_Header'}'`
5520 { echo "$as_me:$LINENO: result: $ac_res" >&5
5521 echo "${ECHO_T}$ac_res" >&6; }
5523 # Is the header compilable?
5524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5526 cat >conftest.$ac_ext <<_ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532 $ac_includes_default
5533 #include <$ac_header>
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.$ac_objext; then
5552 ac_header_compiler=yes
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_header_compiler=no
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5562 echo "${ECHO_T}$ac_header_compiler" >&6; }
5564 # Is the header present?
5565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5567 cat >conftest.$ac_ext <<_ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573 #include <$ac_header>
5575 if { (ac_try="$ac_cpp conftest.$ac_ext"
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5583 grep -v '^ *+' conftest.er1 >conftest.err
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } >/dev/null && {
5588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5589 test ! -s conftest.err
5591 ac_header_preproc=yes
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 ac_header_preproc=no
5599 rm -f conftest.err conftest.$ac_ext
5600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5601 echo "${ECHO_T}$ac_header_preproc" >&6; }
5603 # So? What about this header?
5604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5610 ac_header_preproc=yes
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5626 ## ------------------------------------ ##
5627 ## Report this to opensource@google.com ##
5628 ## ------------------------------------ ##
5630 ) | sed "s/^/$as_me: WARNING: /" >&2
5633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 eval "$as_ac_Header=\$ac_header_preproc"
5640 ac_res=`eval echo '${'$as_ac_Header'}'`
5641 { echo "$as_me:$LINENO: result: $ac_res" >&5
5642 echo "${ECHO_T}$ac_res" >&6; }
5645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5646 cat >>confdefs.h <<_ACEOF
5647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5656 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5657 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5658 (test "X$CXX" != "Xg++"))) ; then
5660 ac_cpp='$CXXCPP $CPPFLAGS'
5661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5665 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5666 if test -z "$CXXCPP"; then
5667 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 # Double quotes because CXXCPP needs to be expanded
5671 for CXXCPP in "$CXX -E" "/lib/cpp"
5674 for ac_cxx_preproc_warn_flag in '' yes
5676 # Use a header file that comes with gcc, so configuring glibc
5677 # with a fresh cross-compiler works.
5678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679 # <limits.h> exists even on freestanding compilers.
5680 # On the NeXT, cc -E runs the code through the compiler's parser,
5681 # not just through cpp. "Syntax error" is here to catch this case.
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5689 # include <limits.h>
5691 # include <assert.h>
5695 if { (ac_try="$ac_cpp conftest.$ac_ext"
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5703 grep -v '^ *+' conftest.er1 >conftest.err
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } >/dev/null && {
5708 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5709 test ! -s conftest.err
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 # Broken: fails on valid input.
5720 rm -f conftest.err conftest.$ac_ext
5722 # OK, works on sane cases. Now check whether nonexistent headers
5723 # can be detected and how.
5724 cat >conftest.$ac_ext <<_ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #include <ac_nonexistent.h>
5732 if { (ac_try="$ac_cpp conftest.$ac_ext"
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null && {
5745 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5746 test ! -s conftest.err
5748 # Broken: success on invalid input.
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 # Passes both tests.
5759 rm -f conftest.err conftest.$ac_ext
5762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5763 rm -f conftest.err conftest.$ac_ext
5764 if $ac_preproc_ok; then
5769 ac_cv_prog_CXXCPP=$CXXCPP
5772 CXXCPP=$ac_cv_prog_CXXCPP
5774 ac_cv_prog_CXXCPP=$CXXCPP
5776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5777 echo "${ECHO_T}$CXXCPP" >&6; }
5779 for ac_cxx_preproc_warn_flag in '' yes
5781 # Use a header file that comes with gcc, so configuring glibc
5782 # with a fresh cross-compiler works.
5783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5784 # <limits.h> exists even on freestanding compilers.
5785 # On the NeXT, cc -E runs the code through the compiler's parser,
5786 # not just through cpp. "Syntax error" is here to catch this case.
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5794 # include <limits.h>
5796 # include <assert.h>
5800 if { (ac_try="$ac_cpp conftest.$ac_ext"
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } >/dev/null && {
5813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5814 test ! -s conftest.err
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 # Broken: fails on valid input.
5825 rm -f conftest.err conftest.$ac_ext
5827 # OK, works on sane cases. Now check whether nonexistent headers
5828 # can be detected and how.
5829 cat >conftest.$ac_ext <<_ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5837 if { (ac_try="$ac_cpp conftest.$ac_ext"
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } >/dev/null && {
5850 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5851 test ! -s conftest.err
5853 # Broken: success on invalid input.
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 # Passes both tests.
5864 rm -f conftest.err conftest.$ac_ext
5867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868 rm -f conftest.err conftest.$ac_ext
5869 if $ac_preproc_ok; then
5872 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5873 See \`config.log' for more details." >&5
5874 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5875 See \`config.log' for more details." >&2;}
5876 { (exit 1); exit 1; }; }
5880 ac_cpp='$CXXCPP $CPPFLAGS'
5881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5890 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5892 if test -n "$ac_tool_prefix"; then
5893 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
5895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_prog_F77+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 if test -n "$F77"; then
5903 ac_cv_prog_F77="$F77" # Let the user override the test.
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 if test -n "$F77"; then
5924 { echo "$as_me:$LINENO: result: $F77" >&5
5925 echo "${ECHO_T}$F77" >&6; }
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5932 test -n "$F77" && break
5935 if test -z "$F77"; then
5937 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
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 if test -n "$ac_ct_F77"; then
5947 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_F77="$ac_prog"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5967 if test -n "$ac_ct_F77"; then
5968 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5969 echo "${ECHO_T}$ac_ct_F77" >&6; }
5971 { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5976 test -n "$ac_ct_F77" && break
5979 if test "x$ac_ct_F77" = x; then
5982 case $cross_compiling:$ac_tool_warned in
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet. If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet. If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990 ac_tool_warned=yes ;;
5997 # Provide some information about the compiler.
5998 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5999 ac_compiler=`set X $ac_compile; echo $2`
6000 { (ac_try="$ac_compiler --version >&5"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_compiler --version >&5") 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }
6010 { (ac_try="$ac_compiler -v >&5"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compiler -v >&5") 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }
6020 { (ac_try="$ac_compiler -V >&5"
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compiler -V >&5") 2>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }
6032 # If we don't use `.F' as extension, the preprocessor is not run on the
6033 # input file. (Note that this only needs to work for GNU compilers.)
6036 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6037 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6038 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 cat >conftest.$ac_ext <<_ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (ac_try="$ac_compile"
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6058 grep -v '^ *+' conftest.er1 >conftest.err
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_f77_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6078 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6079 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6081 ac_test_FFLAGS=${FFLAGS+set}
6082 ac_save_FFLAGS=$FFLAGS
6084 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6085 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_f77_g+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 cat >conftest.$ac_ext <<_ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (ac_try="$ac_compile"
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && {
6109 test -z "$ac_f77_werror_flag" ||
6110 test ! -s conftest.err
6111 } && test -s conftest.$ac_objext; then
6112 ac_cv_prog_f77_g=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6124 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6125 if test "$ac_test_FFLAGS" = set; then
6126 FFLAGS=$ac_save_FFLAGS
6127 elif test $ac_cv_prog_f77_g = yes; then
6128 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6134 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6141 G77=`test $ac_compiler_gnu = yes && echo yes`
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6150 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6151 # find the maximum length of command line arguments
6152 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6153 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6154 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 # On DJGPP, this test can blow up pretty badly due to problems in libc
6163 # (any single argument exceeding 2000 bytes causes a buffer overrun
6164 # during glob expansion). Even if it were fixed, the result of this
6165 # check would be larger than it should be.
6166 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6170 # Under GNU Hurd, this test is not required because there is
6171 # no limit to the length of command line arguments.
6172 # Libtool will interpret -1 as no limit whatsoever
6173 lt_cv_sys_max_cmd_len=-1;
6177 # On Win9x/ME, this test blows up -- it succeeds, but takes
6178 # about 5 minutes as the teststring grows exponentially.
6179 # Worse, since 9x/ME are not pre-emptively multitasking,
6180 # you end up with a "frozen" computer, even though with patience
6181 # the test eventually succeeds (with a max line length of 256k).
6182 # Instead, let's just punt: use the minimum linelength reported by
6183 # all of the supported platforms: 8192 (on NT/2K/XP).
6184 lt_cv_sys_max_cmd_len=8192;
6188 # On AmigaOS with pdksh, this test takes hours, literally.
6189 # So we just punt and use a minimum line length of 8192.
6190 lt_cv_sys_max_cmd_len=8192;
6193 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6194 # This has been around since 386BSD, at least. Likely further.
6195 if test -x /sbin/sysctl; then
6196 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6197 elif test -x /usr/sbin/sysctl; then
6198 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6200 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6202 # And add a safety zone
6203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6208 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6209 lt_cv_sys_max_cmd_len=196608
6213 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6214 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6215 # nice to cause kernel panics so lets avoid the loop below.
6216 # First set a reasonable default.
6217 lt_cv_sys_max_cmd_len=16384
6219 if test -x /sbin/sysconfig; then
6220 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6221 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6226 lt_cv_sys_max_cmd_len=102400
6228 sysv5* | sco5v6* | sysv4.2uw2*)
6229 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6230 if test -n "$kargmax"; then
6231 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6233 lt_cv_sys_max_cmd_len=32768
6237 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6238 if test -n "$lt_cv_sys_max_cmd_len"; then
6239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6242 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6243 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6244 = "XX$teststring") >/dev/null 2>&1 &&
6245 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6246 lt_cv_sys_max_cmd_len=$new_result &&
6247 test $i != 17 # 1/2 MB should be enough
6250 teststring=$teststring$teststring
6253 # Add a significant safety factor because C++ compilers can tack on massive
6254 # amounts of additional arguments before passing them to the linker.
6255 # It appears as though 1/2 is a usable value.
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6263 if test -n $lt_cv_sys_max_cmd_len ; then
6264 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6265 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6267 { echo "$as_me:$LINENO: result: none" >&5
6268 echo "${ECHO_T}none" >&6; }
6275 # Check for command to grab the raw symbol name followed by C symbol from nm.
6276 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6277 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6278 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 # These are sane defaults that work on at least a few old systems.
6283 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6285 # Character class describing NM global symbol codes.
6286 symcode='[BCDEGRST]'
6288 # Regexp to match symbols that can be accessed directly from C.
6289 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6291 # Transform an extracted symbol line into a proper C declaration
6292 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6294 # Transform an extracted symbol line into symbol name and symbol address
6295 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'"
6297 # Define system-specific variables.
6302 cygwin* | mingw* | pw32*)
6303 symcode='[ABCDGISTW]'
6305 hpux*) # Its linker distinguishes data from code symbols
6306 if test "$host_cpu" = ia64; then
6307 symcode='[ABCDEGRST]'
6309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6310 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6312 linux* | k*bsd*-gnu)
6313 if test "$host_cpu" = ia64; then
6314 symcode='[ABCDGIRSTW]'
6315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6316 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'"
6320 symcode='[BCDEGRST]'
6323 symcode='[BCDEGQRST]'
6334 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6342 # Handle CRLF in mingw tool chain
6346 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6350 # If we're using GNU nm, then use its standard symbol codes.
6351 case `$NM -V 2>&1` in
6352 *GNU* | *'with BFD'*)
6353 symcode='[ABCDGIRSTW]' ;;
6356 # Try without a prefix undercore, then with it.
6357 for ac_symprfx in "" "_"; do
6359 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6360 symxfrm="\\1 $ac_symprfx\\2 \\2"
6362 # Write the raw and C identifiers.
6363 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6365 # Check to see that the pipe works correctly.
6369 cat > conftest.$ac_ext <<EOF
6374 void nm_test_func(){}
6378 int main(){nm_test_var='a';nm_test_func();return(0);}
6381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382 (eval $ac_compile) 2>&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; then
6386 # Now try to grab the symbols.
6388 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6389 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && test -s "$nlist"; then
6393 # Try sorting and uniquifying the output.
6394 if sort "$nlist" | uniq > "$nlist"T; then
6395 mv -f "$nlist"T "$nlist"
6400 # Make sure that we snagged all the symbols we need.
6401 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6402 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6403 cat <<EOF > conftest.$ac_ext
6409 # Now generate the symbol file.
6410 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6412 cat <<EOF >> conftest.$ac_ext
6413 #if defined (__STDC__) && __STDC__
6414 # define lt_ptr_t void *
6416 # define lt_ptr_t char *
6420 /* The mapping between symbol names and symbols. */
6425 lt_preloaded_symbols[] =
6428 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6429 cat <<\EOF >> conftest.$ac_ext
6437 # Now try linking the two files.
6438 mv conftest.$ac_objext conftstm.$ac_objext
6439 lt_save_LIBS="$LIBS"
6440 lt_save_CFLAGS="$CFLAGS"
6441 LIBS="conftstm.$ac_objext"
6442 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6444 (eval $ac_link) 2>&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6450 LIBS="$lt_save_LIBS"
6451 CFLAGS="$lt_save_CFLAGS"
6453 echo "cannot find nm_test_func in $nlist" >&5
6456 echo "cannot find nm_test_var in $nlist" >&5
6459 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6462 echo "$progname: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 rm -rf conftest* conftst*
6467 # Do not use the global_symbol_pipe unless it works.
6468 if test "$pipe_works" = yes; then
6471 lt_cv_sys_global_symbol_pipe=
6477 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6478 lt_cv_sys_global_symbol_to_cdecl=
6480 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6481 { echo "$as_me:$LINENO: result: failed" >&5
6482 echo "${ECHO_T}failed" >&6; }
6484 { echo "$as_me:$LINENO: result: ok" >&5
6485 echo "${ECHO_T}ok" >&6; }
6488 { echo "$as_me:$LINENO: checking for objdir" >&5
6489 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6490 if test "${lt_cv_objdir+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 rm -f .libs 2>/dev/null
6494 mkdir .libs 2>/dev/null
6495 if test -d .libs; then
6498 # MS-DOS does not allow filenames that begin with a dot.
6501 rmdir .libs 2>/dev/null
6503 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6504 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6505 objdir=$lt_cv_objdir
6513 # AIX sometimes has problems with the GCC collect2 program. For some
6514 # reason, if we set the COLLECT_NAMES environment variable, the problems
6515 # vanish in a puff of smoke.
6516 if test "X${COLLECT_NAMES+set}" != Xset; then
6518 export COLLECT_NAMES
6523 # Sed substitution that helps us do robust quoting. It backslashifies
6524 # metacharacters that are still active within double-quoted strings.
6525 Xsed='sed -e 1s/^X//'
6526 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6528 # Same as above, but do not quote variable references.
6529 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6531 # Sed substitution to delay expansion of an escaped shell variable in a
6532 # double_quote_subst'ed string.
6533 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6535 # Sed substitution to avoid accidental globbing in evaled expressions
6536 no_glob_subst='s/\*/\\\*/g'
6542 default_ofile=libtool
6543 can_build_shared=yes
6545 # All known linkers require a `.a' archive for static linking (except MSVC,
6546 # which needs '.lib').
6548 ltmain="$ac_aux_dir/ltmain.sh"
6549 ofile="$default_ofile"
6550 with_gnu_ld="$lt_cv_prog_gnu_ld"
6552 if test -n "$ac_tool_prefix"; then
6553 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6554 set dummy ${ac_tool_prefix}ar; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_AR+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 if test -n "$AR"; then
6561 ac_cv_prog_AR="$AR" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_AR="${ac_tool_prefix}ar"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 if test -n "$AR"; then
6582 { echo "$as_me:$LINENO: result: $AR" >&5
6583 echo "${ECHO_T}$AR" >&6; }
6585 { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6591 if test -z "$ac_cv_prog_AR"; then
6593 # Extract the first word of "ar", so it can be a program name with args.
6594 set dummy ar; ac_word=$2
6595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6597 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 if test -n "$ac_ct_AR"; then
6601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_prog_ac_ct_AR="ar"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6621 if test -n "$ac_ct_AR"; then
6622 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6623 echo "${ECHO_T}$ac_ct_AR" >&6; }
6625 { echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6; }
6629 if test "x$ac_ct_AR" = x; then
6632 case $cross_compiling:$ac_tool_warned in
6634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet. If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&5
6637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6638 whose name does not start with the host triplet. If you think this
6639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6640 ac_tool_warned=yes ;;
6648 if test -n "$ac_tool_prefix"; then
6649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653 if test "${ac_cv_prog_RANLIB+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 if test -n "$RANLIB"; then
6657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 RANLIB=$ac_cv_prog_RANLIB
6677 if test -n "$RANLIB"; then
6678 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6679 echo "${ECHO_T}$RANLIB" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6687 if test -z "$ac_cv_prog_RANLIB"; then
6688 ac_ct_RANLIB=$RANLIB
6689 # Extract the first word of "ranlib", so it can be a program name with args.
6690 set dummy ranlib; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 if test -n "$ac_ct_RANLIB"; then
6697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_prog_ac_ct_RANLIB="ranlib"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6717 if test -n "$ac_ct_RANLIB"; then
6718 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6719 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6725 if test "x$ac_ct_RANLIB" = x; then
6728 case $cross_compiling:$ac_tool_warned in
6730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6731 whose name does not start with the host triplet. If you think this
6732 configuration is useful to you, please write to autoconf@gnu.org." >&5
6733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6734 whose name does not start with the host triplet. If you think this
6735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6736 ac_tool_warned=yes ;;
6738 RANLIB=$ac_ct_RANLIB
6741 RANLIB="$ac_cv_prog_RANLIB"
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}strip; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_prog_STRIP+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 if test -n "$STRIP"; then
6753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 STRIP=$ac_cv_prog_STRIP
6773 if test -n "$STRIP"; then
6774 { echo "$as_me:$LINENO: result: $STRIP" >&5
6775 echo "${ECHO_T}$STRIP" >&6; }
6777 { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6783 if test -z "$ac_cv_prog_STRIP"; then
6785 # Extract the first word of "strip", so it can be a program name with args.
6786 set dummy strip; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 if test -n "$ac_ct_STRIP"; then
6793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_ac_ct_STRIP="strip"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6813 if test -n "$ac_ct_STRIP"; then
6814 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6815 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6821 if test "x$ac_ct_STRIP" = x; then
6824 case $cross_compiling:$ac_tool_warned in
6826 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6827 whose name does not start with the host triplet. If you think this
6828 configuration is useful to you, please write to autoconf@gnu.org." >&5
6829 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6830 whose name does not start with the host triplet. If you think this
6831 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6832 ac_tool_warned=yes ;;
6837 STRIP="$ac_cv_prog_STRIP"
6842 old_CFLAGS="$CFLAGS"
6844 # Set sane defaults for various variables
6845 test -z "$AR" && AR=ar
6846 test -z "$AR_FLAGS" && AR_FLAGS=cru
6847 test -z "$AS" && AS=as
6848 test -z "$CC" && CC=cc
6849 test -z "$LTCC" && LTCC=$CC
6850 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6851 test -z "$DLLTOOL" && DLLTOOL=dlltool
6852 test -z "$LD" && LD=ld
6853 test -z "$LN_S" && LN_S="ln -s"
6854 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6855 test -z "$NM" && NM=nm
6856 test -z "$SED" && SED=sed
6857 test -z "$OBJDUMP" && OBJDUMP=objdump
6858 test -z "$RANLIB" && RANLIB=:
6859 test -z "$STRIP" && STRIP=:
6860 test -z "$ac_objext" && ac_objext=o
6862 # Determine commands to create old-style static archives.
6863 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6864 old_postinstall_cmds='chmod 644 $oldlib'
6865 old_postuninstall_cmds=
6867 if test -n "$RANLIB"; then
6870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6876 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6879 for cc_temp in $compiler""; do
6881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6887 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6890 # Only perform the check for file, if the check method requires it
6891 case $deplibs_check_method in
6893 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6894 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6895 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6896 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6904 lt_save_MAGIC_CMD="$MAGIC_CMD"
6905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6906 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6907 for ac_dir in $ac_dummy; do
6909 test -z "$ac_dir" && ac_dir=.
6910 if test -f $ac_dir/${ac_tool_prefix}file; then
6911 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6912 if test -n "$file_magic_test_file"; then
6913 case $deplibs_check_method in
6915 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6918 $EGREP "$file_magic_regex" > /dev/null; then
6923 *** Warning: the command libtool uses to detect shared libraries,
6924 *** $file_magic_cmd, produces output that libtool cannot recognize.
6925 *** The result is that libtool may fail to recognize shared libraries
6926 *** as such. This will affect the creation of libtool libraries that
6927 *** depend on shared libraries, but programs linked with such libtool
6928 *** libraries will work regardless of this problem. Nevertheless, you
6929 *** may want to report the problem to your system manager and/or to
6930 *** bug-libtool@gnu.org
6940 MAGIC_CMD="$lt_save_MAGIC_CMD"
6945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6946 if test -n "$MAGIC_CMD"; then
6947 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6948 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6950 { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6954 if test -z "$lt_cv_path_MAGIC_CMD"; then
6955 if test -n "$ac_tool_prefix"; then
6956 { echo "$as_me:$LINENO: checking for file" >&5
6957 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6958 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6966 lt_save_MAGIC_CMD="$MAGIC_CMD"
6967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6968 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6969 for ac_dir in $ac_dummy; do
6971 test -z "$ac_dir" && ac_dir=.
6972 if test -f $ac_dir/file; then
6973 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6974 if test -n "$file_magic_test_file"; then
6975 case $deplibs_check_method in
6977 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6980 $EGREP "$file_magic_regex" > /dev/null; then
6985 *** Warning: the command libtool uses to detect shared libraries,
6986 *** $file_magic_cmd, produces output that libtool cannot recognize.
6987 *** The result is that libtool may fail to recognize shared libraries
6988 *** as such. This will affect the creation of libtool libraries that
6989 *** depend on shared libraries, but programs linked with such libtool
6990 *** libraries will work regardless of this problem. Nevertheless, you
6991 *** may want to report the problem to your system manager and/or to
6992 *** bug-libtool@gnu.org
7002 MAGIC_CMD="$lt_save_MAGIC_CMD"
7007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7008 if test -n "$MAGIC_CMD"; then
7009 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7010 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7027 rhapsody* | darwin*)
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 if test -n "$DSYMUTIL"; then
7037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7057 if test -n "$DSYMUTIL"; then
7058 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7059 echo "${ECHO_T}$DSYMUTIL" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7067 if test -z "$ac_cv_prog_DSYMUTIL"; then
7068 ac_ct_DSYMUTIL=$DSYMUTIL
7069 # Extract the first word of "dsymutil", so it can be a program name with args.
7070 set dummy dsymutil; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 if test -n "$ac_ct_DSYMUTIL"; then
7077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7097 if test -n "$ac_ct_DSYMUTIL"; then
7098 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7099 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7105 if test "x$ac_ct_DSYMUTIL" = x; then
7108 case $cross_compiling:$ac_tool_warned in
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet. If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet. If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7118 DSYMUTIL=$ac_ct_DSYMUTIL
7121 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 if test -n "$NMEDIT"; then
7133 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 NMEDIT=$ac_cv_prog_NMEDIT
7153 if test -n "$NMEDIT"; then
7154 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7155 echo "${ECHO_T}$NMEDIT" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7163 if test -z "$ac_cv_prog_NMEDIT"; then
7164 ac_ct_NMEDIT=$NMEDIT
7165 # Extract the first word of "nmedit", so it can be a program name with args.
7166 set dummy nmedit; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 if test -n "$ac_ct_NMEDIT"; then
7173 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7193 if test -n "$ac_ct_NMEDIT"; then
7194 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7195 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7201 if test "x$ac_ct_NMEDIT" = x; then
7204 case $cross_compiling:$ac_tool_warned in
7206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7207 whose name does not start with the host triplet. If you think this
7208 configuration is useful to you, please write to autoconf@gnu.org." >&5
7209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7210 whose name does not start with the host triplet. If you think this
7211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7212 ac_tool_warned=yes ;;
7214 NMEDIT=$ac_ct_NMEDIT
7217 NMEDIT="$ac_cv_prog_NMEDIT"
7221 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7222 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7223 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 lt_cv_apple_cc_single_mod=no
7227 if test -z "${LT_MULTI_MODULE}"; then
7228 # By default we will add the -single_module flag. You can override
7229 # by either setting the environment variable LT_MULTI_MODULE
7230 # non-empty at configure time, or by adding -multi_module to the
7232 echo "int foo(void){return 1;}" > conftest.c
7233 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7234 -dynamiclib ${wl}-single_module conftest.c
7235 if test -f libconftest.dylib; then
7236 lt_cv_apple_cc_single_mod=yes
7237 rm -rf libconftest.dylib*
7242 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7243 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7244 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7245 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7246 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 lt_cv_ld_exported_symbols_list=no
7250 save_LDFLAGS=$LDFLAGS
7251 echo "_main" > conftest.sym
7252 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (ac_try="$ac_link"
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_link") 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest$ac_exeext &&
7285 $as_test_x conftest$ac_exeext; then
7286 lt_cv_ld_exported_symbols_list=yes
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 lt_cv_ld_exported_symbols_list=no
7294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7295 conftest$ac_exeext conftest.$ac_ext
7296 LDFLAGS="$save_LDFLAGS"
7299 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7300 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7302 rhapsody* | darwin1.[0123])
7303 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307 # if running on 10.5 or later, the deployment target defaults
7308 # to the OS version, if on x86, and 10.4, the deployment
7309 # target defaults to 10.4. Don't you love it?
7310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7320 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7321 _lt_dar_single_mod='$single_module'
7323 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7324 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7326 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7328 if test "$DSYMUTIL" != ":"; then
7329 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7340 # Check whether --enable-libtool-lock was given.
7341 if test "${enable_libtool_lock+set}" = set; then
7342 enableval=$enable_libtool_lock;
7345 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7348 # Check whether --with-pic was given.
7349 if test "${with_pic+set}" = set; then
7350 withval=$with_pic; pic_mode="$withval"
7355 test -z "$pic_mode" && pic_mode=default
7357 # Use C for the default configuration in the libtool script
7361 ac_cpp='$CPP $CPPFLAGS'
7362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367 # Source file extension for C test sources.
7370 # Object file extension for compiled C test sources.
7374 # Code to be used in simple compile tests
7375 lt_simple_compile_test_code="int some_variable = 0;"
7377 # Code to be used in simple link tests
7378 lt_simple_link_test_code='int main(){return(0);}'
7381 # If no C compiler was specified, use CC.
7384 # If no C compiler flags were specified, use CFLAGS.
7385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7387 # Allow CC to be a program name with arguments.
7391 # save warnings/boilerplate of simple test code
7392 ac_outfile=conftest.$ac_objext
7393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7395 _lt_compiler_boilerplate=`cat conftest.err`
7398 ac_outfile=conftest.$ac_objext
7399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7401 _lt_linker_boilerplate=`cat conftest.err`
7406 lt_prog_compiler_no_builtin_flag=
7408 if test "$GCC" = yes; then
7409 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7412 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7413 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7414 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 lt_cv_prog_compiler_rtti_exceptions=no
7418 ac_outfile=conftest.$ac_objext
7419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7420 lt_compiler_flag="-fno-rtti -fno-exceptions"
7421 # Insert the option either (1) after the last *FLAGS variable, or
7422 # (2) before a word containing "conftest.", or (3) at the end.
7423 # Note that $ac_compile itself does not contain backslashes and begins
7424 # with a dollar sign (not a hyphen), so the echo should work correctly.
7425 # The option is referenced via a variable to avoid confusing sed.
7426 lt_compile=`echo "$ac_compile" | $SED \
7427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7429 -e 's:$: $lt_compiler_flag:'`
7430 (eval echo "\"\$as_me:7430: $lt_compile\"" >&5)
7431 (eval "$lt_compile" 2>conftest.err)
7433 cat conftest.err >&5
7434 echo "$as_me:7434: \$? = $ac_status" >&5
7435 if (exit $ac_status) && test -s "$ac_outfile"; then
7436 # The compiler can only warn and ignore the option if not recognized
7437 # So say no if there are warnings other than the usual output.
7438 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7441 lt_cv_prog_compiler_rtti_exceptions=yes
7447 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7448 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7450 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7458 lt_prog_compiler_wl=
7459 lt_prog_compiler_pic=
7460 lt_prog_compiler_static=
7462 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7465 if test "$GCC" = yes; then
7466 lt_prog_compiler_wl='-Wl,'
7467 lt_prog_compiler_static='-static'
7471 # All AIX code is PIC.
7472 if test "$host_cpu" = ia64; then
7473 # AIX 5 now supports IA64 processor
7474 lt_prog_compiler_static='-Bstatic'
7479 # FIXME: we need at least 68020 code to build shared libraries, but
7480 # adding the `-m68020' flag to GCC prevents building anything better,
7482 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7486 # PIC is the default for these OSes.
7489 mingw* | cygwin* | pw32* | os2*)
7490 # This hack is so that the source file can tell whether it is being
7491 # built for inclusion in a dll (and should export symbols for example).
7492 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7493 # (--disable-auto-import) libraries
7494 lt_prog_compiler_pic='-DDLL_EXPORT'
7497 darwin* | rhapsody*)
7498 # PIC is the default on this platform
7499 # Common symbols not allowed in MH_DYLIB files
7500 lt_prog_compiler_pic='-fno-common'
7504 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7505 # Instead, we relocate shared libraries at runtime.
7509 # Just because we use GCC doesn't mean we suddenly get shared libraries
7510 # on systems that don't support them.
7511 lt_prog_compiler_can_build_shared=no
7516 if test -d /usr/nec; then
7517 lt_prog_compiler_pic=-Kconform_pic
7522 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7529 lt_prog_compiler_pic='-fPIC'
7535 lt_prog_compiler_pic='-fPIC'
7539 # PORTME Check for flag to pass linker flags through the system compiler.
7542 lt_prog_compiler_wl='-Wl,'
7543 if test "$host_cpu" = ia64; then
7544 # AIX 5 now supports IA64 processor
7545 lt_prog_compiler_static='-Bstatic'
7547 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7551 # PIC is the default on this platform
7552 # Common symbols not allowed in MH_DYLIB files
7553 case $cc_basename in
7555 lt_prog_compiler_pic='-qnocommon'
7556 lt_prog_compiler_wl='-Wl,'
7561 mingw* | cygwin* | pw32* | os2*)
7562 # This hack is so that the source file can tell whether it is being
7563 # built for inclusion in a dll (and should export symbols for example).
7564 lt_prog_compiler_pic='-DDLL_EXPORT'
7567 hpux9* | hpux10* | hpux11*)
7568 lt_prog_compiler_wl='-Wl,'
7569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7576 lt_prog_compiler_pic='+Z'
7579 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7580 lt_prog_compiler_static='${wl}-a ${wl}archive'
7583 irix5* | irix6* | nonstopux*)
7584 lt_prog_compiler_wl='-Wl,'
7585 # PIC (with -KPIC) is the default.
7586 lt_prog_compiler_static='-non_shared'
7590 lt_prog_compiler_pic='-KPIC'
7591 lt_prog_compiler_static='-Bstatic'
7594 linux* | k*bsd*-gnu)
7595 case $cc_basename in
7597 lt_prog_compiler_wl='-Wl,'
7598 lt_prog_compiler_pic='-KPIC'
7599 lt_prog_compiler_static='-static'
7601 pgcc* | pgf77* | pgf90* | pgf95*)
7602 # Portland Group compilers (*not* the Pentium gcc compiler,
7603 # which looks to be a dead project)
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_pic='-fpic'
7606 lt_prog_compiler_static='-Bstatic'
7609 lt_prog_compiler_wl='-Wl,'
7610 # All Alpha code is PIC.
7611 lt_prog_compiler_static='-non_shared'
7614 case `$CC -V 2>&1 | sed 5q` in
7617 lt_prog_compiler_pic='-KPIC'
7618 lt_prog_compiler_static='-Bstatic'
7619 lt_prog_compiler_wl='-Wl,'
7622 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7623 lt_prog_compiler_pic='-KPIC'
7624 lt_prog_compiler_static='-Bstatic'
7625 lt_prog_compiler_wl=''
7632 osf3* | osf4* | osf5*)
7633 lt_prog_compiler_wl='-Wl,'
7634 # All OSF/1 code is PIC.
7635 lt_prog_compiler_static='-non_shared'
7639 lt_prog_compiler_static='-non_shared'
7643 lt_prog_compiler_pic='-KPIC'
7644 lt_prog_compiler_static='-Bstatic'
7645 case $cc_basename in
7647 lt_prog_compiler_wl='-Qoption ld ';;
7649 lt_prog_compiler_wl='-Wl,';;
7654 lt_prog_compiler_wl='-Qoption ld '
7655 lt_prog_compiler_pic='-PIC'
7656 lt_prog_compiler_static='-Bstatic'
7659 sysv4 | sysv4.2uw2* | sysv4.3*)
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='-KPIC'
7662 lt_prog_compiler_static='-Bstatic'
7666 if test -d /usr/nec ;then
7667 lt_prog_compiler_pic='-Kconform_pic'
7668 lt_prog_compiler_static='-Bstatic'
7672 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7673 lt_prog_compiler_wl='-Wl,'
7674 lt_prog_compiler_pic='-KPIC'
7675 lt_prog_compiler_static='-Bstatic'
7679 lt_prog_compiler_wl='-Wl,'
7680 lt_prog_compiler_can_build_shared=no
7684 lt_prog_compiler_pic='-pic'
7685 lt_prog_compiler_static='-Bstatic'
7689 lt_prog_compiler_can_build_shared=no
7694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7695 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7698 # Check to make sure the PIC flag actually works.
7700 if test -n "$lt_prog_compiler_pic"; then
7702 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7703 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7704 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 lt_cv_prog_compiler_pic_works=no
7708 ac_outfile=conftest.$ac_objext
7709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7710 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7711 # Insert the option either (1) after the last *FLAGS variable, or
7712 # (2) before a word containing "conftest.", or (3) at the end.
7713 # Note that $ac_compile itself does not contain backslashes and begins
7714 # with a dollar sign (not a hyphen), so the echo should work correctly.
7715 # The option is referenced via a variable to avoid confusing sed.
7716 lt_compile=`echo "$ac_compile" | $SED \
7717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719 -e 's:$: $lt_compiler_flag:'`
7720 (eval echo "\"\$as_me:7720: $lt_compile\"" >&5)
7721 (eval "$lt_compile" 2>conftest.err)
7723 cat conftest.err >&5
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 if (exit $ac_status) && test -s "$ac_outfile"; then
7726 # The compiler can only warn and ignore the option if not recognized
7727 # So say no if there are warnings other than the usual output.
7728 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7731 lt_cv_prog_compiler_pic_works=yes
7737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7738 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7740 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7741 case $lt_prog_compiler_pic in
7743 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7746 lt_prog_compiler_pic=
7747 lt_prog_compiler_can_build_shared=no
7752 # For platforms which do not support PIC, -DPIC is meaningless:
7754 lt_prog_compiler_pic=
7757 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7762 # Check to make sure the static flag actually works.
7764 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7765 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7766 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7767 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 lt_cv_prog_compiler_static_works=no
7771 save_LDFLAGS="$LDFLAGS"
7772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7773 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7775 # The linker can only warn and ignore the option if not recognized
7776 # So say no if there are warnings
7777 if test -s conftest.err; then
7778 # Append any errors to the config.log.
7779 cat conftest.err 1>&5
7780 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7782 if diff conftest.exp conftest.er2 >/dev/null; then
7783 lt_cv_prog_compiler_static_works=yes
7786 lt_cv_prog_compiler_static_works=yes
7790 LDFLAGS="$save_LDFLAGS"
7793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7794 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7796 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7799 lt_prog_compiler_static=
7803 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7805 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 lt_cv_prog_compiler_c_o=no
7809 $rm -r conftest 2>/dev/null
7813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7815 lt_compiler_flag="-o out/conftest2.$ac_objext"
7816 # Insert the option either (1) after the last *FLAGS variable, or
7817 # (2) before a word containing "conftest.", or (3) at the end.
7818 # Note that $ac_compile itself does not contain backslashes and begins
7819 # with a dollar sign (not a hyphen), so the echo should work correctly.
7820 lt_compile=`echo "$ac_compile" | $SED \
7821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7823 -e 's:$: $lt_compiler_flag:'`
7824 (eval echo "\"\$as_me:7824: $lt_compile\"" >&5)
7825 (eval "$lt_compile" 2>out/conftest.err)
7827 cat out/conftest.err >&5
7828 echo "$as_me:7828: \$? = $ac_status" >&5
7829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7831 # The compiler can only warn and ignore the option if not recognized
7832 # So say no if there are warnings
7833 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7836 lt_cv_prog_compiler_c_o=yes
7841 # SGI C++ compiler will create directory out/ii_files/ for
7842 # template instantiation
7843 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7844 $rm out/* && rmdir out
7850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7854 hard_links="nottested"
7855 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7856 # do not overwrite the value of need_locks provided by the user
7857 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7858 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7863 ln conftest.a conftest.b 2>&5 || hard_links=no
7864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7865 { echo "$as_me:$LINENO: result: $hard_links" >&5
7866 echo "${ECHO_T}$hard_links" >&6; }
7867 if test "$hard_links" = no; then
7868 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7869 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7876 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7877 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7880 allow_undefined_flag=
7881 enable_shared_with_static_runtimes=no
7883 archive_expsym_cmds=
7884 old_archive_From_new_cmds=
7885 old_archive_from_expsyms_cmds=
7886 export_dynamic_flag_spec=
7887 whole_archive_flag_spec=
7888 thread_safe_flag_spec=
7889 hardcode_libdir_flag_spec=
7890 hardcode_libdir_flag_spec_ld=
7891 hardcode_libdir_separator=
7894 hardcode_shlibpath_var=unsupported
7895 link_all_deplibs=unknown
7896 hardcode_automatic=no
7899 always_export_symbols=no
7900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7901 # include_expsyms should be a list of space-separated symbols to be *always*
7902 # included in the symbol list
7904 # exclude_expsyms can be an extended regexp of symbols to exclude
7905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7907 # as well as any symbol that contains `d'.
7908 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7910 # platforms (ab)use it in PIC code, but their linkers get confused if
7911 # the symbol is explicitly referenced. Since portable code cannot
7912 # rely on this symbol name, it's probably fine to never include it in
7913 # preloaded symbol tables.
7914 # Exclude shared library initialization/finalization symbols.
7915 extract_expsyms_cmds=
7916 # Just being paranoid about ensuring that cc_basename is set.
7917 for cc_temp in $compiler""; do
7919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7925 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7928 cygwin* | mingw* | pw32*)
7929 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7930 # When not using gcc, we currently assume that we are using
7931 # Microsoft Visual C++.
7932 if test "$GCC" != yes; then
7937 # we just hope/assume this is gcc and not c89 (= MSVC++)
7946 if test "$with_gnu_ld" = yes; then
7947 # If archive_cmds runs LD, not CC, wlarc should be empty
7950 # Set some defaults for GNU ld with shared library support. These
7951 # are reset later if shared libraries are not supported. Putting them
7952 # here allows them to be overridden if necessary.
7953 runpath_var=LD_RUN_PATH
7954 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7955 export_dynamic_flag_spec='${wl}--export-dynamic'
7956 # ancient GNU ld didn't support --whole-archive et. al.
7957 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7958 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7960 whole_archive_flag_spec=
7962 supports_anon_versioning=no
7963 case `$LD -v 2>/dev/null` in
7964 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7965 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7966 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7967 *\ 2.11.*) ;; # other 2.11 versions
7968 *) supports_anon_versioning=yes ;;
7971 # See if GNU ld supports shared libraries.
7974 # On AIX/PPC, the GNU linker is very broken
7975 if test "$host_cpu" != ia64; then
7979 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7980 *** to be unable to reliably create shared libraries on AIX.
7981 *** Therefore, libtool is disabling shared libraries support. If you
7982 *** really care for shared libraries, you may want to modify your PATH
7983 *** so that a non-GNU linker is found, and then restart.
7990 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)'
7991 hardcode_libdir_flag_spec='-L$libdir'
7992 hardcode_minus_L=yes
7994 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7995 # that the semantics of dynamic libraries on AmigaOS, at least up
7996 # to version 4, is to share data among multiple programs linked
7997 # with the same dynamic library. Since this doesn't match the
7998 # behavior of shared libraries on other platforms, we can't use
8004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8005 allow_undefined_flag=unsupported
8006 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8007 # support --undefined. This deserves some investigation. FIXME
8008 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014 cygwin* | mingw* | pw32*)
8015 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8016 # as there is no search path for DLLs.
8017 hardcode_libdir_flag_spec='-L$libdir'
8018 allow_undefined_flag=unsupported
8019 always_export_symbols=no
8020 enable_shared_with_static_runtimes=yes
8021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8023 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8025 # If the export-symbols file already is a .def file (1st line
8026 # is EXPORTS), use it as is; otherwise, prepend...
8027 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8028 cp $export_symbols $output_objdir/$soname.def;
8030 echo EXPORTS > $output_objdir/$soname.def;
8031 cat $export_symbols >> $output_objdir/$soname.def;
8033 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8041 hardcode_shlibpath_var=no
8042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8043 export_dynamic_flag_spec='${wl}-E'
8044 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8045 # Instead, shared libraries are loaded at an image base (0x10000000 by
8046 # default) and relocated if they conflict, which is a slow very memory
8047 # consuming and fragmenting process. To avoid this, we pick a random,
8048 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8049 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8050 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8051 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'
8054 gnu* | linux* | k*bsd*-gnu)
8055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8057 case $cc_basename,$host_cpu in
8058 pgcc*) # Portland Group C compiler
8059 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'
8060 tmp_addflag=' $pic_flag'
8062 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8063 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'
8064 tmp_addflag=' $pic_flag -Mnomain' ;;
8065 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8066 tmp_addflag=' -i_dynamic' ;;
8067 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8068 tmp_addflag=' -i_dynamic -nofor_main' ;;
8069 ifc* | ifort*) # Intel Fortran compiler
8070 tmp_addflag=' -nofor_main' ;;
8072 case `$CC -V 2>&1 | sed 5q` in
8073 *Sun\ C*) # Sun C 5.9
8074 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'
8075 tmp_sharedflag='-G' ;;
8076 *Sun\ F*) # Sun Fortran 8.3
8077 tmp_sharedflag='-G' ;;
8079 tmp_sharedflag='-shared' ;;
8081 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8083 if test $supports_anon_versioning = yes; then
8084 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8086 $echo "local: *; };" >> $output_objdir/$libname.ver~
8087 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8095 netbsd* | netbsdelf*-gnu)
8096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8097 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8106 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8110 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8111 *** create shared libraries on Solaris systems. Therefore, libtool
8112 *** is disabling shared libraries support. We urge you to upgrade GNU
8113 *** binutils to release 2.9.1 or newer. Another option is to modify
8114 *** your PATH or compiler configuration so that the native linker is
8115 *** used, and then restart.
8118 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8127 case `$LD -v 2>&1` in
8128 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8132 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8133 *** reliably create shared libraries on SCO systems. Therefore, libtool
8134 *** is disabling shared libraries support. We urge you to upgrade GNU
8135 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8136 *** your PATH or compiler configuration so that the native linker is
8137 *** used, and then restart.
8142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8143 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8154 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8157 hardcode_shlibpath_var=no
8161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8170 if test "$ld_shlibs" = no; then
8172 hardcode_libdir_flag_spec=
8173 export_dynamic_flag_spec=
8174 whole_archive_flag_spec=
8177 # PORTME fill in a description of your system's linker (not GNU ld)
8180 allow_undefined_flag=unsupported
8181 always_export_symbols=yes
8182 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'
8183 # Note: this linker hardcodes the directories in LIBPATH if there
8184 # are no directories specified by -L.
8185 hardcode_minus_L=yes
8186 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8187 # Neither direct hardcoding nor static linking is supported with a
8189 hardcode_direct=unsupported
8194 if test "$host_cpu" = ia64; then
8195 # On IA64, the linker does run time linking by default, so we don't
8196 # have to do anything special.
8197 aix_use_runtimelinking=no
8198 exp_sym_flag='-Bexport'
8201 # If we're using GNU nm, then we don't want the "-C" option.
8202 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8203 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8204 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'
8206 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'
8208 aix_use_runtimelinking=no
8210 # Test if we are trying to use run time linking or normal
8211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8212 # need to do runtime linking.
8213 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8214 for ld_flag in $LDFLAGS; do
8215 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8216 aix_use_runtimelinking=yes
8223 exp_sym_flag='-bexport'
8224 no_entry_flag='-bnoentry'
8227 # When large executables or shared objects are built, AIX ld can
8228 # have problems creating the table of contents. If linking a library
8229 # or program results in "error TOC overflow" add -mminimal-toc to
8230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8235 hardcode_libdir_separator=':'
8236 link_all_deplibs=yes
8238 if test "$GCC" = yes; then
8239 case $host_os in aix4.[012]|aix4.[012].*)
8240 # We only want to do this on AIX 4.2 and lower, the check
8241 # below for broken collect2 doesn't work under 4.3+
8242 collect2name=`${CC} -print-prog-name=collect2`
8243 if test -f "$collect2name" && \
8244 strings "$collect2name" | grep resolve_lib_name >/dev/null
8246 # We have reworked collect2
8249 # We have old collect2
8250 hardcode_direct=unsupported
8251 # It fails to find uninstalled libraries when the uninstalled
8252 # path is not listed in the libpath. Setting hardcode_minus_L
8253 # to unsupported forces relinking
8254 hardcode_minus_L=yes
8255 hardcode_libdir_flag_spec='-L$libdir'
8256 hardcode_libdir_separator=
8260 shared_flag='-shared'
8261 if test "$aix_use_runtimelinking" = yes; then
8262 shared_flag="$shared_flag "'${wl}-G'
8266 if test "$host_cpu" = ia64; then
8267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8268 # chokes on -Wl,-G. The following line is correct:
8271 if test "$aix_use_runtimelinking" = yes; then
8272 shared_flag='${wl}-G'
8274 shared_flag='${wl}-bM:SRE'
8279 # It seems that -bexpall does not export symbols beginning with
8280 # underscore (_), so it is better to generate a list of symbols to export.
8281 always_export_symbols=yes
8282 if test "$aix_use_runtimelinking" = yes; then
8283 # Warning - without using the other runtime loading flags (-brtl),
8284 # -berok will link without error, but may produce a broken library.
8285 allow_undefined_flag='-berok'
8286 # Determine the default libpath from the value encoded in an empty executable.
8287 cat >conftest.$ac_ext <<_ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_link") 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest$ac_exeext &&
8319 $as_test_x conftest$ac_exeext; then
8321 lt_aix_libpath_sed='
8322 /Import File Strings/,/^$/ {
8328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8329 # Check for a 64-bit object if we didn't find anything.
8330 if test -z "$aix_libpath"; then
8331 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8341 conftest$ac_exeext conftest.$ac_ext
8342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8345 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"
8347 if test "$host_cpu" = ia64; then
8348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8349 allow_undefined_flag="-z nodefs"
8350 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"
8352 # Determine the default libpath from the value encoded in an empty executable.
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (ac_try="$ac_link"
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_link") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest$ac_exeext &&
8385 $as_test_x conftest$ac_exeext; then
8387 lt_aix_libpath_sed='
8388 /Import File Strings/,/^$/ {
8394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8395 # Check for a 64-bit object if we didn't find anything.
8396 if test -z "$aix_libpath"; then
8397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8407 conftest$ac_exeext conftest.$ac_ext
8408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8411 # Warning - without using the other run time loading flags,
8412 # -berok will link without error, but may produce a broken library.
8413 no_undefined_flag=' ${wl}-bernotok'
8414 allow_undefined_flag=' ${wl}-berok'
8415 # Exported symbols can be pulled into shared objects from archives
8416 whole_archive_flag_spec='$convenience'
8417 archive_cmds_need_lc=yes
8418 # This is similar to how AIX traditionally builds its shared libraries.
8419 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'
8425 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)'
8426 hardcode_libdir_flag_spec='-L$libdir'
8427 hardcode_minus_L=yes
8428 # see comment about different semantics on the GNU ld section
8433 export_dynamic_flag_spec=-rdynamic
8436 cygwin* | mingw* | pw32*)
8437 # When not using gcc, we currently assume that we are using
8438 # Microsoft Visual C++.
8439 # hardcode_libdir_flag_spec is actually meaningless, as there is
8440 # no search path for DLLs.
8441 hardcode_libdir_flag_spec=' '
8442 allow_undefined_flag=unsupported
8443 # Tell ltmain to make .lib files, not .a files.
8445 # Tell ltmain to make .dll files, not .so files.
8447 # FIXME: Setting linknames here is a bad hack.
8448 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8449 # The linker will automatically build a .lib file if we build a DLL.
8450 old_archive_From_new_cmds='true'
8451 # FIXME: Should let the user specify the lib program.
8452 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8453 fix_srcfile_path='`cygpath -w "$srcfile"`'
8454 enable_shared_with_static_runtimes=yes
8457 darwin* | rhapsody*)
8459 rhapsody* | darwin1.[012])
8460 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8464 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8466 case ${MACOSX_DEPLOYMENT_TARGET} in
8468 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8471 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8477 archive_cmds_need_lc=no
8479 hardcode_automatic=yes
8480 hardcode_shlibpath_var=unsupported
8481 whole_archive_flag_spec=''
8482 link_all_deplibs=yes
8483 if test "$GCC" = yes ; then
8484 output_verbose_link_cmd='echo'
8485 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8486 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8487 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}"
8488 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}"
8490 case $cc_basename in
8492 output_verbose_link_cmd='echo'
8493 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8494 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8495 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8496 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}'
8497 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}'
8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_libdir_flag_spec='-L$libdir'
8509 hardcode_shlibpath_var=no
8516 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8517 # support. Future versions do this automatically, but an explicit c++rt0.o
8518 # does not break anything, and helps significantly (at the cost of a little
8521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8522 hardcode_libdir_flag_spec='-R$libdir'
8524 hardcode_shlibpath_var=no
8527 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8531 hardcode_minus_L=yes
8532 hardcode_shlibpath_var=no
8535 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8536 freebsd* | dragonfly*)
8537 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8538 hardcode_libdir_flag_spec='-R$libdir'
8540 hardcode_shlibpath_var=no
8544 if test "$GCC" = yes; then
8545 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'
8547 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'
8549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8550 hardcode_libdir_separator=:
8553 # hardcode_minus_L: Not really in the search PATH,
8554 # but as the default location of the library.
8555 hardcode_minus_L=yes
8556 export_dynamic_flag_spec='${wl}-E'
8560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8561 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8565 if test "$with_gnu_ld" = no; then
8566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567 hardcode_libdir_separator=:
8570 export_dynamic_flag_spec='${wl}-E'
8572 # hardcode_minus_L: Not really in the search PATH,
8573 # but as the default location of the library.
8574 hardcode_minus_L=yes
8579 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8582 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8588 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8594 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8597 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8600 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8604 if test "$with_gnu_ld" = no; then
8605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8606 hardcode_libdir_separator=:
8610 hardcode_libdir_flag_spec_ld='+b $libdir'
8612 hardcode_shlibpath_var=no
8616 export_dynamic_flag_spec='${wl}-E'
8618 # hardcode_minus_L: Not really in the search PATH,
8619 # but as the default location of the library.
8620 hardcode_minus_L=yes
8626 irix5* | irix6* | nonstopux*)
8627 if test "$GCC" = yes; then
8628 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'
8630 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'
8631 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634 hardcode_libdir_separator=:
8635 link_all_deplibs=yes
8638 netbsd* | netbsdelf*-gnu)
8639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8642 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8644 hardcode_libdir_flag_spec='-R$libdir'
8646 hardcode_shlibpath_var=no
8650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653 hardcode_libdir_separator=:
8654 hardcode_shlibpath_var=no
8658 if test -f /usr/libexec/ld.so; then
8660 hardcode_shlibpath_var=no
8661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665 export_dynamic_flag_spec='${wl}-E'
8668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec='-R$libdir'
8673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 hardcode_minus_L=yes
8686 allow_undefined_flag=unsupported
8687 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'
8688 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8692 if test "$GCC" = yes; then
8693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694 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'
8696 allow_undefined_flag=' -expect_unresolved \*'
8697 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'
8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 hardcode_libdir_separator=:
8703 osf4* | osf5*) # as osf3* with the addition of -msym flag
8704 if test "$GCC" = yes; then
8705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8706 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'
8707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 allow_undefined_flag=' -expect_unresolved \*'
8710 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'
8711 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8712 $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'
8714 # Both c and cxx compiler support -rpath directly
8715 hardcode_libdir_flag_spec='-rpath $libdir'
8717 hardcode_libdir_separator=:
8721 no_undefined_flag=' -z text'
8722 if test "$GCC" = yes; then
8724 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8726 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8729 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8733 hardcode_libdir_flag_spec='-R$libdir'
8734 hardcode_shlibpath_var=no
8736 solaris2.[0-5] | solaris2.[0-5].*) ;;
8738 # The compiler driver will combine and reorder linker options,
8739 # but understands `-z linker_flag'. GCC discards it without `$wl',
8740 # but is careful enough not to reorder.
8741 # Supported since Solaris 2.6 (maybe 2.5.1?)
8742 if test "$GCC" = yes; then
8743 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8749 link_all_deplibs=yes
8753 if test "x$host_vendor" = xsequent; then
8754 # Use $CC to link under sequent, because it throws in some extra .o
8755 # files that make .init and .fini sections work.
8756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8760 hardcode_libdir_flag_spec='-L$libdir'
8762 hardcode_minus_L=yes
8763 hardcode_shlibpath_var=no
8767 case $host_vendor in
8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_direct=yes # is this really true???
8773 ## LD is ld it makes a PLAMLIB
8774 ## CC just makes a GrossModule.
8775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8776 reload_cmds='$CC -r -o $output$reload_objs'
8780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8784 runpath_var='LD_RUN_PATH'
8785 hardcode_shlibpath_var=no
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_shlibpath_var=no
8791 export_dynamic_flag_spec='-Bexport'
8795 if test -d /usr/nec; then
8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_shlibpath_var=no
8798 runpath_var=LD_RUN_PATH
8799 hardcode_runpath_var=yes
8804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8805 no_undefined_flag='${wl}-z,text'
8806 archive_cmds_need_lc=no
8807 hardcode_shlibpath_var=no
8808 runpath_var='LD_RUN_PATH'
8810 if test "$GCC" = yes; then
8811 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8812 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8819 sysv5* | sco3.2v5* | sco5v6*)
8820 # Note: We can NOT use -z defs as we might desire, because we do not
8821 # link with -lc, and that would cause any symbols used from libc to
8822 # always be unresolved, which means just about no library would
8823 # ever link correctly. If we're not using GNU ld we use -z text
8824 # though, which does catch some bad symbols but isn't as heavy-handed
8826 no_undefined_flag='${wl}-z,text'
8827 allow_undefined_flag='${wl}-z,nodefs'
8828 archive_cmds_need_lc=no
8829 hardcode_shlibpath_var=no
8830 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8831 hardcode_libdir_separator=':'
8832 link_all_deplibs=yes
8833 export_dynamic_flag_spec='${wl}-Bexport'
8834 runpath_var='LD_RUN_PATH'
8836 if test "$GCC" = yes; then
8837 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847 hardcode_libdir_flag_spec='-L$libdir'
8848 hardcode_shlibpath_var=no
8857 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8858 echo "${ECHO_T}$ld_shlibs" >&6; }
8859 test "$ld_shlibs" = no && can_build_shared=no
8862 # Do we need to explicitly link libc?
8864 case "x$archive_cmds_need_lc" in
8866 # Assume -lc should be added
8867 archive_cmds_need_lc=yes
8869 if test "$enable_shared" = yes && test "$GCC" = yes; then
8870 case $archive_cmds in
8872 # FIXME: we may have to deal with multi-command sequences.
8875 # Test whether the compiler implicitly links with -lc since on some
8876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8877 # to ld, don't add -lc before -lgcc.
8878 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8879 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884 (eval $ac_compile) 2>&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } 2>conftest.err; then
8890 libobjs=conftest.$ac_objext
8892 wl=$lt_prog_compiler_wl
8893 pic_flag=$lt_prog_compiler_pic
8899 lt_save_allow_undefined_flag=$allow_undefined_flag
8900 allow_undefined_flag=
8901 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8902 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }
8907 archive_cmds_need_lc=no
8909 archive_cmds_need_lc=yes
8911 allow_undefined_flag=$lt_save_allow_undefined_flag
8913 cat conftest.err 1>&5
8916 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8917 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8924 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8925 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8927 libname_spec='lib$name'
8935 shlibpath_overrides_runpath=unknown
8937 dynamic_linker="$host_os ld.so"
8938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8940 if test "$GCC" = yes; then
8942 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8943 *) lt_awk_arg="/^libraries:/" ;;
8945 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8946 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8947 # if the path contains ";" then we assume it to be the separator
8948 # otherwise default to the standard path separator (i.e. ":") - it is
8949 # assumed that no part of a normal pathname contains ";" but that should
8950 # okay in the real world where ";" in dirpaths is itself problematic.
8951 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8953 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8955 # Ok, now we have the path, separated by spaces, we can step through it
8956 # and add multilib dir if necessary.
8957 lt_tmp_lt_search_path_spec=
8958 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8959 for lt_sys_path in $lt_search_path_spec; do
8960 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8963 test -d "$lt_sys_path" && \
8964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8967 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8968 BEGIN {RS=" "; FS="/|\n";} {
8971 for (lt_i = NF; lt_i > 0; lt_i--) {
8972 if ($lt_i != "" && $lt_i != ".") {
8973 if ($lt_i == "..") {
8976 if (lt_count == 0) {
8977 lt_foo="/" $lt_i lt_foo;
8984 if (lt_foo != "") { lt_freq[lt_foo]++; }
8985 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8987 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8989 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8991 need_lib_prefix=unknown
8992 hardcode_into_libs=no
8994 # when you set need_version to no, make sure it does not cause -set_version
8995 # flags to be left without arguments
8996 need_version=unknown
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9002 shlibpath_var=LIBPATH
9004 # AIX 3 has no versioning support, so we append a major version to the name.
9005 soname_spec='${libname}${release}${shared_ext}$major'
9012 hardcode_into_libs=yes
9013 if test "$host_cpu" = ia64; then
9014 # AIX 5 supports IA64
9015 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9016 shlibpath_var=LD_LIBRARY_PATH
9018 # With GCC up to 2.95.x, collect2 would create an import file
9019 # for dependence libraries. The import file would start with
9020 # the line `#! .'. This would cause the generated library to
9021 # depend on `.', always an invalid library. This was fixed in
9022 # development snapshots of GCC prior to 3.0.
9024 aix4 | aix4.[01] | aix4.[01].*)
9025 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9027 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9034 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9035 # soname into executable. Probably we can add versioning support to
9036 # collect2, so additional links can be useful in future.
9037 if test "$aix_use_runtimelinking" = yes; then
9038 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9039 # instead of lib<name>.a to let people know that these are not
9040 # typical AIX shared libraries.
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 # We preserve .a as extension for shared libraries through AIX4.2
9044 # and later when we are not doing run time linking.
9045 library_names_spec='${libname}${release}.a $libname.a'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LIBPATH
9053 library_names_spec='$libname.ixlibrary $libname.a'
9054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9055 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'
9059 library_names_spec='${libname}${shared_ext}'
9060 dynamic_linker="$host_os ld.so"
9061 shlibpath_var=LIBRARY_PATH
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9073 # the default ld.so.conf also contains /usr/contrib/lib and
9074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9075 # libtool to hard-code these into programs
9078 cygwin* | mingw* | pw32*)
9079 version_type=windows
9084 case $GCC,$host_os in
9085 yes,cygwin* | yes,mingw* | yes,pw32*)
9086 library_names_spec='$libname.dll.a'
9087 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9088 postinstall_cmds='base_file=`basename \${file}`~
9089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9090 dldir=$destdir/`dirname \$dlpath`~
9091 test -d \$dldir || mkdir -p \$dldir~
9092 $install_prog $dir/$dlname \$dldir/$dlname~
9093 chmod a+x \$dldir/$dlname'
9094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9095 dlpath=$dir/\$dldll~
9097 shlibpath_overrides_runpath=yes
9101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9103 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9106 # MinGW DLLs use traditional 'lib' prefix
9107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9110 # It is most probably a Windows format PATH printed by
9111 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9112 # path with ; separators, and with drive letters. We can handle the
9113 # drive letters (cygwin fileutils understands them), so leave them,
9114 # especially as we might pass files found there to a mingw objdump,
9115 # which wouldn't understand a cygwinified path. Ahh.
9116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9122 # pw32 DLLs use 'pw' prefix rather than 'lib'
9123 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9132 dynamic_linker='Win32 ld.exe'
9133 # FIXME: first we should search . and the directory the executable is in
9137 darwin* | rhapsody*)
9138 dynamic_linker="$host_os dyld"
9142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9143 soname_spec='${libname}${release}${major}$shared_ext'
9144 shlibpath_overrides_runpath=yes
9145 shlibpath_var=DYLD_LIBRARY_PATH
9146 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9148 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9149 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9165 freebsd* | dragonfly*)
9166 # DragonFly does not have aout. When/if they implement a new
9167 # versioning mechanism, adjust this.
9168 if test -x /usr/bin/objformat; then
9169 objformat=`/usr/bin/objformat`
9172 freebsd[123]*) objformat=aout ;;
9176 version_type=freebsd-$objformat
9177 case $version_type in
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9188 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9193 freebsd3.[01]* | freebsdelf3.[01]*)
9194 shlibpath_overrides_runpath=yes
9195 hardcode_into_libs=yes
9197 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9198 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9199 shlibpath_overrides_runpath=no
9200 hardcode_into_libs=yes
9202 *) # from 4.6 on, and DragonFly
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 hardcode_into_libs=yes
9219 hpux9* | hpux10* | hpux11*)
9220 # Give a soname corresponding to the major version so that dld.sl refuses to
9221 # link against other versions.
9228 hardcode_into_libs=yes
9229 dynamic_linker="$host_os dld.so"
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 if test "X$HPUX_IA64_MODE" = X32; then
9235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9243 hardcode_into_libs=yes
9244 dynamic_linker="$host_os dld.sl"
9245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9254 dynamic_linker="$host_os dld.sl"
9255 shlibpath_var=SHLIB_PATH
9256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9261 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9262 postinstall_cmds='chmod 555 $lib'
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 shlibpath_overrides_runpath=no
9274 hardcode_into_libs=yes
9277 irix5* | irix6* | nonstopux*)
9279 nonstopux*) version_type=nonstopux ;;
9281 if test "$lt_cv_prog_gnu_ld" = yes; then
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9292 irix5* | nonstopux*)
9296 case $LD in # libtool.m4 will add one of these switches to LD
9297 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9298 libsuff= shlibsuff= libmagic=32-bit;;
9299 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9300 libsuff=32 shlibsuff=N32 libmagic=N32;;
9301 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9302 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9303 *) libsuff= shlibsuff= libmagic=never-match;;
9307 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9308 shlibpath_overrides_runpath=no
9309 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9310 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9311 hardcode_into_libs=yes
9314 # No shared lib support for Linux oldld, aout, or coff.
9315 linux*oldld* | linux*aout* | linux*coff*)
9319 # This must be Linux ELF.
9320 linux* | k*bsd*-gnu)
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=no
9329 # This implies no fast_install, which is unacceptable.
9330 # Some rework will be needed to allow for fast_install
9331 # before this can be enabled.
9332 hardcode_into_libs=yes
9334 # Append ld.so.conf contents to the search path
9335 if test -f /etc/ld.so.conf; then
9336 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' ' '`
9337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9340 # We used to test for /lib/ld.so.1 and disable shared libraries on
9341 # powerpc, because MkLinux only supported shared libraries with the
9342 # GNU dynamic linker. Since this was broken with cross compilers,
9343 # most powerpc-linux boxes support dynamic linking these days and
9344 # people can always --disable-shared, the test was removed, and we
9345 # assume the GNU/Linux dynamic linker is in use.
9346 dynamic_linker='GNU/Linux ld.so'
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 shlibpath_overrides_runpath=no
9357 hardcode_into_libs=yes
9358 dynamic_linker='NetBSD ld.elf_so'
9365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9368 dynamic_linker='NetBSD (a.out) ld.so'
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9371 soname_spec='${libname}${release}${shared_ext}$major'
9372 dynamic_linker='NetBSD ld.elf_so'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 shlibpath_overrides_runpath=yes
9376 hardcode_into_libs=yes
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 shlibpath_overrides_runpath=yes
9398 sys_lib_dlsearch_path_spec="/usr/lib"
9400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9402 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9403 *) need_version=no ;;
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9410 openbsd2.[89] | openbsd2.[89].*)
9411 shlibpath_overrides_runpath=no
9414 shlibpath_overrides_runpath=yes
9418 shlibpath_overrides_runpath=yes
9423 libname_spec='$name'
9426 library_names_spec='$libname${shared_ext} $libname.a'
9427 dynamic_linker='OS/2 ld.exe'
9428 shlibpath_var=LIBPATH
9431 osf3* | osf4* | osf5*)
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=yes
9454 hardcode_into_libs=yes
9455 # ldd complains unless libraries are executable
9456 postinstall_cmds='chmod +x $lib'
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=yes
9465 if test "$with_gnu_ld" = yes; then
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 case $host_vendor in
9478 shlibpath_overrides_runpath=no
9480 export_dynamic_flag_spec='${wl}-Blargedynsym'
9481 runpath_var=LD_RUN_PATH
9489 shlibpath_overrides_runpath=no
9490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9496 if test -d /usr/nec ;then
9498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9499 soname_spec='$libname${shared_ext}.$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9505 version_type=freebsd-elf
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 hardcode_into_libs=yes
9512 if test "$with_gnu_ld" = yes; then
9513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9514 shlibpath_overrides_runpath=no
9516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9517 shlibpath_overrides_runpath=yes
9520 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9524 sys_lib_dlsearch_path_spec='/usr/lib'
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LD_LIBRARY_PATH
9538 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9539 echo "${ECHO_T}$dynamic_linker" >&6; }
9540 test "$dynamic_linker" = no && can_build_shared=no
9542 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9555 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9558 if test "$GCC" = yes; then
9559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9562 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9565 if test -n "$hardcode_libdir_flag_spec" || \
9566 test -n "$runpath_var" || \
9567 test "X$hardcode_automatic" = "Xyes" ; then
9569 # We can hardcode non-existant directories.
9570 if test "$hardcode_direct" != no &&
9571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9572 # have to relink, otherwise we might link with an installed library
9573 # when we should be linking with a yet-to-be-installed one
9574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9575 test "$hardcode_minus_L" != no; then
9576 # Linking always hardcodes the temporary library directory.
9577 hardcode_action=relink
9579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9580 hardcode_action=immediate
9583 # We cannot hardcode anything, or else we can only hardcode existing
9585 hardcode_action=unsupported
9587 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9588 echo "${ECHO_T}$hardcode_action" >&6; }
9590 if test "$hardcode_action" = relink; then
9591 # Fast installation is not supported
9592 enable_fast_install=no
9593 elif test "$shlibpath_overrides_runpath" = yes ||
9594 test "$enable_shared" = no; then
9595 # Fast installation is not necessary
9596 enable_fast_install=needless
9601 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9602 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9606 { echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6; }
9609 # FIXME - insert some real tests, host_os isn't really good enough
9612 if test -n "$STRIP" ; then
9613 striplib="$STRIP -x"
9614 old_striplib="$STRIP -S"
9615 { echo "$as_me:$LINENO: result: yes" >&5
9616 echo "${ECHO_T}yes" >&6; }
9618 { echo "$as_me:$LINENO: result: no" >&5
9619 echo "${ECHO_T}no" >&6; }
9623 { echo "$as_me:$LINENO: result: no" >&5
9624 echo "${ECHO_T}no" >&6; }
9629 if test "x$enable_dlopen" != xyes; then
9630 enable_dlopen=unknown
9631 enable_dlopen_self=unknown
9632 enable_dlopen_self_static=unknown
9639 lt_cv_dlopen="load_add_on"
9641 lt_cv_dlopen_self=yes
9645 lt_cv_dlopen="LoadLibrary"
9650 lt_cv_dlopen="dlopen"
9655 # if libdl is installed we need to link against it
9656 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9657 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9658 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 ac_check_lib_save_LIBS=$LIBS
9663 cat >conftest.$ac_ext <<_ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext &&
9702 $as_test_x conftest$ac_exeext; then
9703 ac_cv_lib_dl_dlopen=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 ac_cv_lib_dl_dlopen=no
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712 conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9716 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9717 if test $ac_cv_lib_dl_dlopen = yes; then
9718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9723 lt_cv_dlopen_self=yes
9730 { echo "$as_me:$LINENO: checking for shl_load" >&5
9731 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9732 if test "${ac_cv_func_shl_load+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743 #define shl_load innocuous_shl_load
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char shl_load (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9751 # include <limits.h>
9753 # include <assert.h>
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined __stub_shl_load || defined __stub___shl_load
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9789 grep -v '^ *+' conftest.er1 >conftest.err
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } && {
9794 test -z "$ac_c_werror_flag" ||
9795 test ! -s conftest.err
9796 } && test -s conftest$ac_exeext &&
9797 $as_test_x conftest$ac_exeext; then
9798 ac_cv_func_shl_load=yes
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 ac_cv_func_shl_load=no
9806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807 conftest$ac_exeext conftest.$ac_ext
9809 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9810 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9811 if test $ac_cv_func_shl_load = yes; then
9812 lt_cv_dlopen="shl_load"
9814 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9815 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9816 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 ac_check_lib_save_LIBS=$LIBS
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9828 /* Override any GCC internal prototype to avoid an error.
9829 Use char because int might match the return type of a GCC
9830 builtin and then its argument prototype would still apply. */
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9852 grep -v '^ *+' conftest.er1 >conftest.err
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext &&
9860 $as_test_x conftest$ac_exeext; then
9861 ac_cv_lib_dld_shl_load=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_cv_lib_dld_shl_load=no
9869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9870 conftest$ac_exeext conftest.$ac_ext
9871 LIBS=$ac_check_lib_save_LIBS
9873 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9874 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9875 if test $ac_cv_lib_dld_shl_load = yes; then
9876 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9878 { echo "$as_me:$LINENO: checking for dlopen" >&5
9879 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9880 if test "${ac_cv_func_dlopen+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9891 #define dlopen innocuous_dlopen
9893 /* System header to define __stub macros and hopefully few prototypes,
9894 which can conflict with char dlopen (); below.
9895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896 <limits.h> exists even on freestanding compilers. */
9899 # include <limits.h>
9901 # include <assert.h>
9906 /* Override any GCC internal prototype to avoid an error.
9907 Use char because int might match the return type of a GCC
9908 builtin and then its argument prototype would still apply. */
9913 /* The GNU C library defines this for functions which it implements
9914 to always fail with ENOSYS. Some functions are actually named
9915 something starting with __ and the normal name is an alias. */
9916 #if defined __stub_dlopen || defined __stub___dlopen
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_link") 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest$ac_exeext &&
9945 $as_test_x conftest$ac_exeext; then
9946 ac_cv_func_dlopen=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_func_dlopen=no
9954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955 conftest$ac_exeext conftest.$ac_ext
9957 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9958 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9959 if test $ac_cv_func_dlopen = yes; then
9960 lt_cv_dlopen="dlopen"
9962 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 ac_check_lib_save_LIBS=$LIBS
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (ac_try="$ac_link"
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_link") 2>conftest.er1
10000 grep -v '^ *+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest$ac_exeext &&
10008 $as_test_x conftest$ac_exeext; then
10009 ac_cv_lib_dl_dlopen=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_cv_lib_dl_dlopen=no
10017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10018 conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10022 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10023 if test $ac_cv_lib_dl_dlopen = yes; then
10024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10026 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10027 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-lsvld $LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (ac_try="$ac_link"
10057 case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_link") 2>conftest.er1
10064 grep -v '^ *+' conftest.er1 >conftest.err
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && {
10069 test -z "$ac_c_werror_flag" ||
10070 test ! -s conftest.err
10071 } && test -s conftest$ac_exeext &&
10072 $as_test_x conftest$ac_exeext; then
10073 ac_cv_lib_svld_dlopen=yes
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_lib_svld_dlopen=no
10081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10085 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10087 if test $ac_cv_lib_svld_dlopen = yes; then
10088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10090 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS=$LIBS
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10104 /* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10114 return dld_link ();
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
10128 grep -v '^ *+' conftest.er1 >conftest.err
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && {
10133 test -z "$ac_c_werror_flag" ||
10134 test ! -s conftest.err
10135 } && test -s conftest$ac_exeext &&
10136 $as_test_x conftest$ac_exeext; then
10137 ac_cv_lib_dld_dld_link=yes
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10142 ac_cv_lib_dld_dld_link=no
10145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10146 conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_check_lib_save_LIBS
10149 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10150 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10151 if test $ac_cv_lib_dld_dld_link = yes; then
10152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10173 if test "x$lt_cv_dlopen" != xno; then
10179 case $lt_cv_dlopen in
10181 save_CPPFLAGS="$CPPFLAGS"
10182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10184 save_LDFLAGS="$LDFLAGS"
10185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10188 LIBS="$lt_cv_dlopen_libs $LIBS"
10190 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10191 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10192 if test "${lt_cv_dlopen_self+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 if test "$cross_compiling" = yes; then :
10196 lt_cv_dlopen_self=cross
10198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10199 lt_status=$lt_dlunknown
10200 cat > conftest.$ac_ext <<EOF
10201 #line 10201 "configure"
10202 #include "confdefs.h"
10211 # define LT_DLGLOBAL RTLD_GLOBAL
10214 # define LT_DLGLOBAL DL_GLOBAL
10216 # define LT_DLGLOBAL 0
10220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10221 find out it does not work in some platform. */
10222 #ifndef LT_DLLAZY_OR_NOW
10224 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10227 # define LT_DLLAZY_OR_NOW DL_LAZY
10230 # define LT_DLLAZY_OR_NOW RTLD_NOW
10233 # define LT_DLLAZY_OR_NOW DL_NOW
10235 # define LT_DLLAZY_OR_NOW 0
10243 extern "C" void exit (int);
10246 void fnord() { int i=42;}
10249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10250 int status = $lt_dlunknown;
10254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10256 /* dlclose (self); */
10264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265 (eval $ac_link) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10269 (./conftest; exit; ) >&5 2>/dev/null
10271 case x$lt_status in
10272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10277 # compilation failed
10278 lt_cv_dlopen_self=no
10285 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10286 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10288 if test "x$lt_cv_dlopen_self" = xyes; then
10289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10290 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10291 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10292 if test "${lt_cv_dlopen_self_static+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 if test "$cross_compiling" = yes; then :
10296 lt_cv_dlopen_self_static=cross
10298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10299 lt_status=$lt_dlunknown
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10301 "configure"
10302 #include "confdefs.h"
10311 # define LT_DLGLOBAL RTLD_GLOBAL
10314 # define LT_DLGLOBAL DL_GLOBAL
10316 # define LT_DLGLOBAL 0
10320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10321 find out it does not work in some platform. */
10322 #ifndef LT_DLLAZY_OR_NOW
10324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10327 # define LT_DLLAZY_OR_NOW DL_LAZY
10330 # define LT_DLLAZY_OR_NOW RTLD_NOW
10333 # define LT_DLLAZY_OR_NOW DL_NOW
10335 # define LT_DLLAZY_OR_NOW 0
10343 extern "C" void exit (int);
10346 void fnord() { int i=42;}
10349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10350 int status = $lt_dlunknown;
10354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10356 /* dlclose (self); */
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10369 (./conftest; exit; ) >&5 2>/dev/null
10371 case x$lt_status in
10372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10377 # compilation failed
10378 lt_cv_dlopen_self_static=no
10385 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10386 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10389 CPPFLAGS="$save_CPPFLAGS"
10390 LDFLAGS="$save_LDFLAGS"
10395 case $lt_cv_dlopen_self in
10396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10397 *) enable_dlopen_self=unknown ;;
10400 case $lt_cv_dlopen_self_static in
10401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10402 *) enable_dlopen_self_static=unknown ;;
10407 # Report which library types will actually be built
10408 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10409 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10410 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10411 echo "${ECHO_T}$can_build_shared" >&6; }
10413 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10414 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10415 test "$can_build_shared" = "no" && enable_shared=no
10417 # On AIX, shared libraries and static libraries use the same namespace, and
10418 # are all built from PIC.
10421 test "$enable_shared" = yes && enable_static=no
10422 if test -n "$RANLIB"; then
10423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10424 postinstall_cmds='$RANLIB $lib'
10429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10430 test "$enable_shared" = yes && enable_static=no
10434 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10435 echo "${ECHO_T}$enable_shared" >&6; }
10437 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10438 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10439 # Make sure either enable_shared or enable_static is yes.
10440 test "$enable_shared" = yes || enable_static=yes
10441 { echo "$as_me:$LINENO: result: $enable_static" >&5
10442 echo "${ECHO_T}$enable_static" >&6; }
10444 # The else clause should only fire when bootstrapping the
10445 # libtool distribution, otherwise you forgot to ship ltmain.sh
10446 # with your package, and you will get complaints that there are
10447 # no rules to generate ltmain.sh.
10448 if test -f "$ltmain"; then
10449 # See if we are running on zsh, and set the options which allow our commands through
10450 # without removal of \ escapes.
10451 if test -n "${ZSH_VERSION+set}" ; then
10452 setopt NO_GLOB_SUBST
10454 # Now quote all the things that may contain metacharacters while being
10455 # careful not to overquote the AC_SUBSTed values. We take copies of the
10456 # variables and quote the copies for generation of the libtool script.
10457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10461 deplibs_check_method reload_flag reload_cmds need_locks \
10462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10463 lt_cv_sys_global_symbol_to_c_name_address \
10464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10465 old_postinstall_cmds old_postuninstall_cmds \
10469 lt_prog_compiler_wl \
10470 lt_prog_compiler_pic \
10471 lt_prog_compiler_static \
10472 lt_prog_compiler_no_builtin_flag \
10473 export_dynamic_flag_spec \
10474 thread_safe_flag_spec \
10475 whole_archive_flag_spec \
10476 enable_shared_with_static_runtimes \
10478 old_archive_from_new_cmds \
10483 compiler_lib_search_path \
10484 compiler_lib_search_dirs \
10486 archive_expsym_cmds \
10488 postuninstall_cmds \
10489 old_archive_from_expsyms_cmds \
10490 allow_undefined_flag \
10491 no_undefined_flag \
10492 export_symbols_cmds \
10493 hardcode_libdir_flag_spec \
10494 hardcode_libdir_flag_spec_ld \
10495 hardcode_libdir_separator \
10496 hardcode_automatic \
10498 module_expsym_cmds \
10499 lt_cv_prog_compiler_c_o \
10502 include_expsyms; do
10505 old_archive_cmds | \
10506 old_archive_from_new_cmds | \
10508 archive_expsym_cmds | \
10510 module_expsym_cmds | \
10511 old_archive_from_expsyms_cmds | \
10512 export_symbols_cmds | \
10513 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10514 postinstall_cmds | postuninstall_cmds | \
10515 old_postinstall_cmds | old_postuninstall_cmds | \
10516 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10517 # Double-quote double-evaled strings.
10518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10527 *'\$0 --fallback-echo"')
10528 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10532 cfgfile="${ofile}T"
10533 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10535 { echo "$as_me:$LINENO: creating $ofile" >&5
10536 echo "$as_me: creating $ofile" >&6;}
10538 cat <<__EOF__ >> "$cfgfile"
10541 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10542 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10543 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10545 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10546 # Free Software Foundation, Inc.
10548 # This file is part of GNU Libtool:
10549 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10551 # This program is free software; you can redistribute it and/or modify
10552 # it under the terms of the GNU General Public License as published by
10553 # the Free Software Foundation; either version 2 of the License, or
10554 # (at your option) any later version.
10556 # This program is distributed in the hope that it will be useful, but
10557 # WITHOUT ANY WARRANTY; without even the implied warranty of
10558 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10559 # General Public License for more details.
10561 # You should have received a copy of the GNU General Public License
10562 # along with this program; if not, write to the Free Software
10563 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10565 # As a special exception to the GNU General Public License, if you
10566 # distribute this file as part of a program that contains a
10567 # configuration script generated by Autoconf, you may include it under
10568 # the same distribution terms that you use for the rest of that program.
10570 # A sed program that does not truncate output.
10573 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10574 Xsed="$SED -e 1s/^X//"
10576 # The HP-UX ksh and POSIX shell print the target directory to stdout
10577 # if CDPATH is set.
10578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10580 # The names of the tagged configurations supported by this script.
10583 # ### BEGIN LIBTOOL CONFIG
10585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10587 # Shell to use when invoking shell scripts.
10590 # Whether or not to build shared libraries.
10591 build_libtool_libs=$enable_shared
10593 # Whether or not to build static libraries.
10594 build_old_libs=$enable_static
10596 # Whether or not to add -lc for building shared libraries.
10597 build_libtool_need_lc=$archive_cmds_need_lc
10599 # Whether or not to disallow shared libs when runtime libs are static
10600 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10602 # Whether or not to optimize for fast installation.
10603 fast_install=$enable_fast_install
10606 host_alias=$host_alias
10610 # The build system.
10611 build_alias=$build_alias
10615 # An echo program that does not interpret backslashes.
10620 AR_FLAGS=$lt_AR_FLAGS
10625 # LTCC compiler flags.
10626 LTCFLAGS=$lt_LTCFLAGS
10628 # A language-specific compiler.
10631 # Is the compiler the GNU C compiler?
10637 # The linker used to build libraries.
10640 # Whether we need hard or soft links.
10643 # A BSD-compatible nm program.
10646 # A symbol stripping program
10649 # Used to examine libraries when file_magic_cmd begins "file"
10650 MAGIC_CMD=$MAGIC_CMD
10652 # Used on cygwin: DLL creation program.
10655 # Used on cygwin: object dumper.
10658 # Used on cygwin: assembler.
10661 # The name of the directory that contains temporary libtool files.
10664 # How to create reloadable object files.
10665 reload_flag=$lt_reload_flag
10666 reload_cmds=$lt_reload_cmds
10668 # How to pass a linker flag through the compiler.
10669 wl=$lt_lt_prog_compiler_wl
10671 # Object file suffix (normally "o").
10672 objext="$ac_objext"
10674 # Old archive suffix (normally "a").
10677 # Shared library suffix (normally ".so").
10678 shrext_cmds='$shrext_cmds'
10680 # Executable file suffix (normally "").
10683 # Additional compiler flags for building library objects.
10684 pic_flag=$lt_lt_prog_compiler_pic
10687 # What is the maximum length of a command?
10688 max_cmd_len=$lt_cv_sys_max_cmd_len
10690 # Does compiler simultaneously support -c and -o options?
10691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10693 # Must we lock files when doing compilation?
10694 need_locks=$lt_need_locks
10696 # Do we need the lib prefix for modules?
10697 need_lib_prefix=$need_lib_prefix
10699 # Do we need a version for libraries?
10700 need_version=$need_version
10702 # Whether dlopen is supported.
10703 dlopen_support=$enable_dlopen
10705 # Whether dlopen of programs is supported.
10706 dlopen_self=$enable_dlopen_self
10708 # Whether dlopen of statically linked programs is supported.
10709 dlopen_self_static=$enable_dlopen_self_static
10711 # Compiler flag to prevent dynamic linking.
10712 link_static_flag=$lt_lt_prog_compiler_static
10714 # Compiler flag to turn off builtin functions.
10715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10717 # Compiler flag to allow reflexive dlopens.
10718 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10720 # Compiler flag to generate shared objects directly from archives.
10721 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10723 # Compiler flag to generate thread-safe objects.
10724 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10726 # Library versioning type.
10727 version_type=$version_type
10729 # Format of library name prefix.
10730 libname_spec=$lt_libname_spec
10732 # List of archive names. First name is the real one, the rest are links.
10733 # The last name is the one that the linker finds with -lNAME.
10734 library_names_spec=$lt_library_names_spec
10736 # The coded name of the library, if different from the real name.
10737 soname_spec=$lt_soname_spec
10739 # Commands used to build and install an old-style archive.
10741 old_archive_cmds=$lt_old_archive_cmds
10742 old_postinstall_cmds=$lt_old_postinstall_cmds
10743 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10745 # Create an old-style archive from a shared archive.
10746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10748 # Create a temporary old-style archive to link instead of a shared archive.
10749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10751 # Commands used to build and install a shared archive.
10752 archive_cmds=$lt_archive_cmds
10753 archive_expsym_cmds=$lt_archive_expsym_cmds
10754 postinstall_cmds=$lt_postinstall_cmds
10755 postuninstall_cmds=$lt_postuninstall_cmds
10757 # Commands used to build a loadable module (assumed same as above if empty)
10758 module_cmds=$lt_module_cmds
10759 module_expsym_cmds=$lt_module_expsym_cmds
10761 # Commands to strip libraries.
10762 old_striplib=$lt_old_striplib
10763 striplib=$lt_striplib
10765 # Dependencies to place before the objects being linked to create a
10767 predep_objects=$lt_predep_objects
10769 # Dependencies to place after the objects being linked to create a
10771 postdep_objects=$lt_postdep_objects
10773 # Dependencies to place before the objects being linked to create a
10775 predeps=$lt_predeps
10777 # Dependencies to place after the objects being linked to create a
10779 postdeps=$lt_postdeps
10781 # The directories searched by this compiler when creating a shared
10783 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10785 # The library search path used internally by the compiler when linking
10786 # a shared library.
10787 compiler_lib_search_path=$lt_compiler_lib_search_path
10789 # Method to check whether dependent libraries are shared objects.
10790 deplibs_check_method=$lt_deplibs_check_method
10792 # Command to use when deplibs_check_method == file_magic.
10793 file_magic_cmd=$lt_file_magic_cmd
10795 # Flag that allows shared libraries with undefined symbols to be built.
10796 allow_undefined_flag=$lt_allow_undefined_flag
10798 # Flag that forces no undefined symbols.
10799 no_undefined_flag=$lt_no_undefined_flag
10801 # Commands used to finish a libtool library installation in a directory.
10802 finish_cmds=$lt_finish_cmds
10804 # Same as above, but a single script fragment to be evaled but not shown.
10805 finish_eval=$lt_finish_eval
10807 # Take the output of nm and produce a listing of raw symbols and C names.
10808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10810 # Transform the output of nm in a proper C declaration
10811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10813 # Transform the output of nm in a C name address pair
10814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10816 # This is the shared library runtime path variable.
10817 runpath_var=$runpath_var
10819 # This is the shared library path variable.
10820 shlibpath_var=$shlibpath_var
10822 # Is shlibpath searched before the hard-coded library search path?
10823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10825 # How to hardcode a shared library path into an executable.
10826 hardcode_action=$hardcode_action
10828 # Whether we should hardcode library paths into libraries.
10829 hardcode_into_libs=$hardcode_into_libs
10831 # Flag to hardcode \$libdir into a binary during linking.
10832 # This must work even if \$libdir does not exist.
10833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10835 # If ld is used when linking, flag to hardcode \$libdir into
10836 # a binary during linking. This must work even if \$libdir does
10838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10840 # Whether we need a single -rpath flag with a separated argument.
10841 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10844 # resulting binary.
10845 hardcode_direct=$hardcode_direct
10847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10848 # resulting binary.
10849 hardcode_minus_L=$hardcode_minus_L
10851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10852 # the resulting binary.
10853 hardcode_shlibpath_var=$hardcode_shlibpath_var
10855 # Set to yes if building a shared library automatically hardcodes DIR into the library
10856 # and all subsequent libraries and executables linked against it.
10857 hardcode_automatic=$hardcode_automatic
10859 # Variables whose values should be saved in libtool wrapper scripts and
10860 # restored at relink time.
10861 variables_saved_for_relink="$variables_saved_for_relink"
10863 # Whether libtool must link a program against all its dependency libraries.
10864 link_all_deplibs=$link_all_deplibs
10866 # Compile-time system search path for libraries
10867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10869 # Run-time system search path for libraries
10870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10872 # Fix the shell variable \$srcfile for the compiler.
10873 fix_srcfile_path=$lt_fix_srcfile_path
10875 # Set to yes if exported symbols are required.
10876 always_export_symbols=$always_export_symbols
10878 # The commands to list exported symbols.
10879 export_symbols_cmds=$lt_export_symbols_cmds
10881 # The commands to extract the exported symbol list from a shared archive.
10882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10884 # Symbols that should not be listed in the preloaded symbols.
10885 exclude_expsyms=$lt_exclude_expsyms
10887 # Symbols that must always be exported.
10888 include_expsyms=$lt_include_expsyms
10890 # ### END LIBTOOL CONFIG
10897 cat <<\EOF >> "$cfgfile"
10899 # AIX sometimes has problems with the GCC collect2 program. For some
10900 # reason, if we set the COLLECT_NAMES environment variable, the problems
10901 # vanish in a puff of smoke.
10902 if test "X${COLLECT_NAMES+set}" != Xset; then
10904 export COLLECT_NAMES
10910 # We use sed instead of cat because bash on DJGPP gets confused if
10911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10912 # text mode, it properly converts lines to CR/LF. This bash problem
10913 # is reportedly fixed, but why not run on old versions too?
10914 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10916 mv -f "$cfgfile" "$ofile" || \
10917 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10921 # If there is no Makefile yet, we rely on a make rule to execute
10922 # `config.status --recheck' to rerun these tests and create the
10923 # libtool script then.
10924 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10925 if test -f "$ltmain_in"; then
10926 test -f Makefile && make "$ltmain"
10932 ac_cpp='$CPP $CPPFLAGS'
10933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10940 # Check whether --with-tags was given.
10941 if test "${with_tags+set}" = set; then
10942 withval=$with_tags; tagnames="$withval"
10946 if test -f "$ltmain" && test -n "$tagnames"; then
10947 if test ! -f "${ofile}"; then
10948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10949 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10952 if test -z "$LTCC"; then
10953 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10954 if test -z "$LTCC"; then
10955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10956 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10959 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10962 if test -z "$LTCFLAGS"; then
10963 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10966 # Extract list of available tagged configurations in $ofile.
10967 # Note that this assumes the entire list is on one line.
10968 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10971 for tagname in $tagnames; do
10973 # Check whether tagname contains only valid characters
10974 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10976 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10977 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10978 { (exit 1); exit 1; }; }
10982 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10984 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10985 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10986 { (exit 1); exit 1; }; }
10989 # Update the list of available tags.
10990 if test -n "$tagname"; then
10991 echo appending configuration tag \"$tagname\" to $ofile
10995 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10996 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10997 (test "X$CXX" != "Xg++"))) ; then
10999 ac_cpp='$CXXCPP $CPPFLAGS'
11000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11007 archive_cmds_need_lc_CXX=no
11008 allow_undefined_flag_CXX=
11009 always_export_symbols_CXX=no
11010 archive_expsym_cmds_CXX=
11011 export_dynamic_flag_spec_CXX=
11012 hardcode_direct_CXX=no
11013 hardcode_libdir_flag_spec_CXX=
11014 hardcode_libdir_flag_spec_ld_CXX=
11015 hardcode_libdir_separator_CXX=
11016 hardcode_minus_L_CXX=no
11017 hardcode_shlibpath_var_CXX=unsupported
11018 hardcode_automatic_CXX=no
11020 module_expsym_cmds_CXX=
11021 link_all_deplibs_CXX=unknown
11022 old_archive_cmds_CXX=$old_archive_cmds
11023 no_undefined_flag_CXX=
11024 whole_archive_flag_spec_CXX=
11025 enable_shared_with_static_runtimes_CXX=no
11027 # Dependencies to place before and after the object being linked:
11028 predep_objects_CXX=
11029 postdep_objects_CXX=
11032 compiler_lib_search_path_CXX=
11033 compiler_lib_search_dirs_CXX=
11035 # Source file extension for C++ test sources.
11038 # Object file extension for compiled C++ test sources.
11042 # Code to be used in simple compile tests
11043 lt_simple_compile_test_code="int some_variable = 0;"
11045 # Code to be used in simple link tests
11046 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11048 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11050 # If no C compiler was specified, use CC.
11053 # If no C compiler flags were specified, use CFLAGS.
11054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11056 # Allow CC to be a program name with arguments.
11060 # save warnings/boilerplate of simple test code
11061 ac_outfile=conftest.$ac_objext
11062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11064 _lt_compiler_boilerplate=`cat conftest.err`
11067 ac_outfile=conftest.$ac_objext
11068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11070 _lt_linker_boilerplate=`cat conftest.err`
11074 # Allow CC to be a program name with arguments.
11079 lt_save_with_gnu_ld=$with_gnu_ld
11080 lt_save_path_LD=$lt_cv_path_LD
11081 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11082 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11084 $as_unset lt_cv_prog_gnu_ld
11086 if test -n "${lt_cv_path_LDCXX+set}"; then
11087 lt_cv_path_LD=$lt_cv_path_LDCXX
11089 $as_unset lt_cv_path_LD
11091 test -z "${LDCXX+set}" || LD=$LDCXX
11095 for cc_temp in $compiler""; do
11097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11106 # We don't want -fno-exception wen compiling C++ code, so set the
11107 # no_builtin_flag separately
11108 if test "$GXX" = yes; then
11109 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11111 lt_prog_compiler_no_builtin_flag_CXX=
11114 if test "$GXX" = yes; then
11115 # Set up default GNU C++ configuration
11118 # Check whether --with-gnu-ld was given.
11119 if test "${with_gnu_ld+set}" = set; then
11120 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11126 if test "$GCC" = yes; then
11127 # Check if gcc -print-prog-name=ld gives a path.
11128 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11129 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11132 # gcc leaves a trailing carriage return which upsets mingw
11133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11138 # Accept absolute paths.
11140 re_direlt='/[^/][^/]*/\.\./'
11141 # Canonicalize the pathname of ld
11142 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11143 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11144 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11146 test -z "$LD" && LD="$ac_prog"
11149 # If it fails, then pretend we aren't using GCC.
11153 # If it is relative, then search for the first ld in PATH.
11154 with_gnu_ld=unknown
11157 elif test "$with_gnu_ld" = yes; then
11158 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11159 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11161 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11162 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11164 if test "${lt_cv_path_LD+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 if test -z "$LD"; then
11168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11169 for ac_dir in $PATH; do
11171 test -z "$ac_dir" && ac_dir=.
11172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11173 lt_cv_path_LD="$ac_dir/$ac_prog"
11174 # Check to see if the program is GNU ld. I'd rather use --version,
11175 # but apparently some variants of GNU ld only accept -v.
11176 # Break only if it was the GNU/non-GNU ld that we prefer.
11177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11178 *GNU* | *'with BFD'*)
11179 test "$with_gnu_ld" != no && break
11182 test "$with_gnu_ld" != yes && break
11189 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11193 LD="$lt_cv_path_LD"
11194 if test -n "$LD"; then
11195 { echo "$as_me:$LINENO: result: $LD" >&5
11196 echo "${ECHO_T}$LD" >&6; }
11198 { echo "$as_me:$LINENO: result: no" >&5
11199 echo "${ECHO_T}no" >&6; }
11201 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11202 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11203 { (exit 1); exit 1; }; }
11204 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11205 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11206 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11210 case `$LD -v 2>&1 </dev/null` in
11211 *GNU* | *'with BFD'*)
11212 lt_cv_prog_gnu_ld=yes
11215 lt_cv_prog_gnu_ld=no
11219 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11220 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11221 with_gnu_ld=$lt_cv_prog_gnu_ld
11225 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11226 # archiving commands below assume that GNU ld is being used.
11227 if test "$with_gnu_ld" = yes; then
11228 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229 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'
11231 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11232 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11234 # If archive_cmds runs LD, not CC, wlarc should be empty
11235 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11236 # investigate it a little bit more. (MM)
11239 # ancient GNU ld didn't support --whole-archive et. al.
11240 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11241 grep 'no-whole-archive' > /dev/null; then
11242 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11244 whole_archive_flag_spec_CXX=
11250 # A generic and very simple default shared library creation
11251 # command for GNU C++ for the case where it uses the native
11252 # linker, instead of GNU ld. If possible, this setting should
11253 # overridden to take advantage of the native linker features on
11254 # the platform it is being used on.
11255 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11258 # Commands to make compiler produce verbose output that lists
11259 # what "hidden" libraries, object files and flags are used when
11260 # linking a shared library.
11261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11269 # PORTME: fill in a description of your system's C++ link characteristics
11270 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11271 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11275 # FIXME: insert proper C++ library support
11279 if test "$host_cpu" = ia64; then
11280 # On IA64, the linker does run time linking by default, so we don't
11281 # have to do anything special.
11282 aix_use_runtimelinking=no
11283 exp_sym_flag='-Bexport'
11286 aix_use_runtimelinking=no
11288 # Test if we are trying to use run time linking or normal
11289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11290 # need to do runtime linking.
11291 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11292 for ld_flag in $LDFLAGS; do
11295 aix_use_runtimelinking=yes
11303 exp_sym_flag='-bexport'
11304 no_entry_flag='-bnoentry'
11307 # When large executables or shared objects are built, AIX ld can
11308 # have problems creating the table of contents. If linking a library
11309 # or program results in "error TOC overflow" add -mminimal-toc to
11310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11313 archive_cmds_CXX=''
11314 hardcode_direct_CXX=yes
11315 hardcode_libdir_separator_CXX=':'
11316 link_all_deplibs_CXX=yes
11318 if test "$GXX" = yes; then
11319 case $host_os in aix4.[012]|aix4.[012].*)
11320 # We only want to do this on AIX 4.2 and lower, the check
11321 # below for broken collect2 doesn't work under 4.3+
11322 collect2name=`${CC} -print-prog-name=collect2`
11323 if test -f "$collect2name" && \
11324 strings "$collect2name" | grep resolve_lib_name >/dev/null
11326 # We have reworked collect2
11329 # We have old collect2
11330 hardcode_direct_CXX=unsupported
11331 # It fails to find uninstalled libraries when the uninstalled
11332 # path is not listed in the libpath. Setting hardcode_minus_L
11333 # to unsupported forces relinking
11334 hardcode_minus_L_CXX=yes
11335 hardcode_libdir_flag_spec_CXX='-L$libdir'
11336 hardcode_libdir_separator_CXX=
11340 shared_flag='-shared'
11341 if test "$aix_use_runtimelinking" = yes; then
11342 shared_flag="$shared_flag "'${wl}-G'
11346 if test "$host_cpu" = ia64; then
11347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11348 # chokes on -Wl,-G. The following line is correct:
11351 if test "$aix_use_runtimelinking" = yes; then
11352 shared_flag='${wl}-G'
11354 shared_flag='${wl}-bM:SRE'
11359 # It seems that -bexpall does not export symbols beginning with
11360 # underscore (_), so it is better to generate a list of symbols to export.
11361 always_export_symbols_CXX=yes
11362 if test "$aix_use_runtimelinking" = yes; then
11363 # Warning - without using the other runtime loading flags (-brtl),
11364 # -berok will link without error, but may produce a broken library.
11365 allow_undefined_flag_CXX='-berok'
11366 # Determine the default libpath from the value encoded in an empty executable.
11367 cat >conftest.$ac_ext <<_ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11382 rm -f conftest.$ac_objext conftest$ac_exeext
11383 if { (ac_try="$ac_link"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_link") 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_cxx_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext &&
11399 $as_test_x conftest$ac_exeext; then
11401 lt_aix_libpath_sed='
11402 /Import File Strings/,/^$/ {
11408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11409 # Check for a 64-bit object if we didn't find anything.
11410 if test -z "$aix_libpath"; then
11411 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11421 conftest$ac_exeext conftest.$ac_ext
11422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11424 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11426 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"
11428 if test "$host_cpu" = ia64; then
11429 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11430 allow_undefined_flag_CXX="-z nodefs"
11431 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"
11433 # Determine the default libpath from the value encoded in an empty executable.
11434 cat >conftest.$ac_ext <<_ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (ac_try="$ac_link"
11451 case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_link") 2>conftest.er1
11458 grep -v '^ *+' conftest.er1 >conftest.err
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_cxx_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest$ac_exeext &&
11466 $as_test_x conftest$ac_exeext; then
11468 lt_aix_libpath_sed='
11469 /Import File Strings/,/^$/ {
11475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11476 # Check for a 64-bit object if we didn't find anything.
11477 if test -z "$aix_libpath"; then
11478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11488 conftest$ac_exeext conftest.$ac_ext
11489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11492 # Warning - without using the other run time loading flags,
11493 # -berok will link without error, but may produce a broken library.
11494 no_undefined_flag_CXX=' ${wl}-bernotok'
11495 allow_undefined_flag_CXX=' ${wl}-berok'
11496 # Exported symbols can be pulled into shared objects from archives
11497 whole_archive_flag_spec_CXX='$convenience'
11498 archive_cmds_need_lc_CXX=yes
11499 # This is similar to how AIX traditionally builds its shared libraries.
11500 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'
11506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11507 allow_undefined_flag_CXX=unsupported
11508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11509 # support --undefined. This deserves some investigation. FIXME
11510 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11517 case $cc_basename in
11519 # FIXME: insert proper C++ library support
11525 cygwin* | mingw* | pw32*)
11526 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11527 # as there is no search path for DLLs.
11528 hardcode_libdir_flag_spec_CXX='-L$libdir'
11529 allow_undefined_flag_CXX=unsupported
11530 always_export_symbols_CXX=no
11531 enable_shared_with_static_runtimes_CXX=yes
11533 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11534 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'
11535 # If the export-symbols file already is a .def file (1st line
11536 # is EXPORTS), use it as is; otherwise, prepend...
11537 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11538 cp $export_symbols $output_objdir/$soname.def;
11540 echo EXPORTS > $output_objdir/$soname.def;
11541 cat $export_symbols >> $output_objdir/$soname.def;
11543 $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'
11548 darwin* | rhapsody*)
11549 archive_cmds_need_lc_CXX=no
11550 hardcode_direct_CXX=no
11551 hardcode_automatic_CXX=yes
11552 hardcode_shlibpath_var_CXX=unsupported
11553 whole_archive_flag_spec_CXX=''
11554 link_all_deplibs_CXX=yes
11555 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11556 if test "$GXX" = yes ; then
11557 output_verbose_link_cmd='echo'
11558 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}"
11559 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11560 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}"
11561 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}"
11562 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11563 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}"
11564 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}"
11567 case $cc_basename in
11569 output_verbose_link_cmd='echo'
11570 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'
11571 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11573 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}'
11574 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}'
11584 case $cc_basename in
11586 # FIXME: insert proper C++ library support
11590 # Green Hills C++ Compiler
11591 # FIXME: insert proper C++ library support
11595 # FIXME: insert proper C++ library support
11601 # C++ shared libraries reported to be fairly broken before switch to ELF
11605 archive_cmds_need_lc_CXX=no
11607 freebsd* | dragonfly*)
11608 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11615 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11616 hardcode_libdir_separator_CXX=:
11617 export_dynamic_flag_spec_CXX='${wl}-E'
11618 hardcode_direct_CXX=yes
11619 hardcode_minus_L_CXX=yes # Not in the search PATH,
11620 # but as the default
11621 # location of the library.
11623 case $cc_basename in
11625 # FIXME: insert proper C++ library support
11629 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'
11630 # Commands to make compiler produce verbose output that lists
11631 # what "hidden" libraries, object files and flags are used when
11632 # linking a shared library.
11634 # There doesn't appear to be a way to prevent this compiler from
11635 # explicitly linking system object files so we need to strip them
11636 # from the output so that they don't get included in the library
11638 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'
11641 if test "$GXX" = yes; then
11642 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'
11644 # FIXME: insert proper C++ library support
11651 if test $with_gnu_ld = no; then
11652 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11653 hardcode_libdir_separator_CXX=:
11658 export_dynamic_flag_spec_CXX='${wl}-E'
11664 hardcode_direct_CXX=no
11665 hardcode_shlibpath_var_CXX=no
11668 hardcode_direct_CXX=yes
11669 hardcode_minus_L_CXX=yes # Not in the search PATH,
11670 # but as the default
11671 # location of the library.
11675 case $cc_basename in
11677 # FIXME: insert proper C++ library support
11683 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11686 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11689 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11692 # Commands to make compiler produce verbose output that lists
11693 # what "hidden" libraries, object files and flags are used when
11694 # linking a shared library.
11696 # There doesn't appear to be a way to prevent this compiler from
11697 # explicitly linking system object files so we need to strip them
11698 # from the output so that they don't get included in the library
11700 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'
11703 if test "$GXX" = yes; then
11704 if test $with_gnu_ld = no; then
11707 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713 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'
11718 # FIXME: insert proper C++ library support
11725 hardcode_direct_CXX=no
11726 hardcode_shlibpath_var_CXX=no
11727 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11728 export_dynamic_flag_spec_CXX='${wl}-E'
11729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11730 # Instead, shared libraries are loaded at an image base (0x10000000 by
11731 # default) and relocated if they conflict, which is a slow very memory
11732 # consuming and fragmenting process. To avoid this, we pick a random,
11733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11735 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'
11736 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'
11739 case $cc_basename in
11742 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'
11744 # Archives containing C++ object files must be created using
11745 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11746 # necessary to make sure instantiated templates are included
11748 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11751 if test "$GXX" = yes; then
11752 if test "$with_gnu_ld" = no; then
11753 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'
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` -o $lib'
11758 link_all_deplibs_CXX=yes
11761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11762 hardcode_libdir_separator_CXX=:
11764 linux* | k*bsd*-gnu)
11765 case $cc_basename in
11767 # Kuck and Associates, Inc. (KAI) C++ Compiler
11769 # KCC will only create a shared library if the output file
11770 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11771 # to its proper name (with version) after linking.
11772 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'
11773 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'
11774 # Commands to make compiler produce verbose output that lists
11775 # what "hidden" libraries, object files and flags are used when
11776 # linking a shared library.
11778 # There doesn't appear to be a way to prevent this compiler from
11779 # explicitly linking system object files so we need to strip them
11780 # from the output so that they don't get included in the library
11782 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'
11784 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11785 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11787 # Archives containing C++ object files must be created using
11788 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11789 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11794 # version 8.0 and above of icpc choke on multiply defined symbols
11795 # if we add $predep_objects and $postdep_objects, however 7.1 and
11796 # earlier do not add the objects themselves.
11797 case `$CC -V 2>&1` in
11799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11800 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'
11802 *) # Version 8.0 or newer
11805 ia64*) tmp_idyn=' -i_dynamic';;
11807 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11808 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'
11811 archive_cmds_need_lc_CXX=no
11812 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11814 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11817 # Portland Group C++ compiler
11818 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11819 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'
11821 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11822 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11823 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'
11827 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11828 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'
11830 runpath_var=LD_RUN_PATH
11831 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11832 hardcode_libdir_separator_CXX=:
11834 # Commands to make compiler produce verbose output that lists
11835 # what "hidden" libraries, object files and flags are used when
11836 # linking a shared library.
11838 # There doesn't appear to be a way to prevent this compiler from
11839 # explicitly linking system object files so we need to strip them
11840 # from the output so that they don't get included in the library
11842 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'
11845 case `$CC -V 2>&1 | sed 5q` in
11848 no_undefined_flag_CXX=' -zdefs'
11849 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11850 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'
11851 hardcode_libdir_flag_spec_CXX='-R$libdir'
11852 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'
11854 # Not sure whether something based on
11855 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11857 output_verbose_link_cmd='echo'
11859 # Archives containing C++ object files must be created using
11860 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11861 # necessary to make sure instantiated templates are included
11863 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11870 # FIXME: insert proper C++ library support
11874 # FIXME: insert proper C++ library support
11878 case $cc_basename in
11880 # FIXME: insert proper C++ library support
11884 # FIXME: insert proper C++ library support
11889 netbsd* | netbsdelf*-gnu)
11890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11891 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11893 hardcode_libdir_flag_spec_CXX='-R$libdir'
11894 hardcode_direct_CXX=yes
11895 hardcode_shlibpath_var_CXX=no
11897 # Workaround some broken pre-1.5 toolchains
11898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11901 # C++ shared libraries are fairly broken
11905 if test -f /usr/libexec/ld.so; then
11906 hardcode_direct_CXX=yes
11907 hardcode_shlibpath_var_CXX=no
11908 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11910 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11911 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11912 export_dynamic_flag_spec_CXX='${wl}-E'
11913 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11915 output_verbose_link_cmd='echo'
11921 case $cc_basename in
11923 # Kuck and Associates, Inc. (KAI) C++ Compiler
11925 # KCC will only create a shared library if the output file
11926 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11927 # to its proper name (with version) after linking.
11928 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'
11930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11931 hardcode_libdir_separator_CXX=:
11933 # Archives containing C++ object files must be created using
11934 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11935 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11939 # Rational C++ 2.4.1
11940 # FIXME: insert proper C++ library support
11944 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11945 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'
11947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11948 hardcode_libdir_separator_CXX=:
11950 # Commands to make compiler produce verbose output that lists
11951 # what "hidden" libraries, object files and flags are used when
11952 # linking a shared library.
11954 # There doesn't appear to be a way to prevent this compiler from
11955 # explicitly linking system object files so we need to strip them
11956 # from the output so that they don't get included in the library
11958 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'
11961 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11962 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11963 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'
11965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11966 hardcode_libdir_separator_CXX=:
11968 # Commands to make compiler produce verbose output that lists
11969 # what "hidden" libraries, object files and flags are used when
11970 # linking a shared library.
11971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11974 # FIXME: insert proper C++ library support
11981 case $cc_basename in
11983 # Kuck and Associates, Inc. (KAI) C++ Compiler
11985 # KCC will only create a shared library if the output file
11986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11987 # to its proper name (with version) after linking.
11988 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'
11990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11991 hardcode_libdir_separator_CXX=:
11993 # Archives containing C++ object files must be created using
11994 # the KAI C++ compiler.
11995 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11998 # Rational C++ 2.4.1
11999 # FIXME: insert proper C++ library support
12003 allow_undefined_flag_CXX=' -expect_unresolved \*'
12004 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'
12005 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12006 echo "-hidden">> $lib.exp~
12007 $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~
12010 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12011 hardcode_libdir_separator_CXX=:
12013 # Commands to make compiler produce verbose output that lists
12014 # what "hidden" libraries, object files and flags are used when
12015 # linking a shared library.
12017 # There doesn't appear to be a way to prevent this compiler from
12018 # explicitly linking system object files so we need to strip them
12019 # from the output so that they don't get included in the library
12021 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'
12024 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12025 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12026 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'
12028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12029 hardcode_libdir_separator_CXX=:
12031 # Commands to make compiler produce verbose output that lists
12032 # what "hidden" libraries, object files and flags are used when
12033 # linking a shared library.
12034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12037 # FIXME: insert proper C++ library support
12044 # FIXME: insert proper C++ library support
12048 case $cc_basename in
12051 # FIXME: insert proper C++ library support
12056 # FIXME: insert proper C++ library support
12060 # FIXME: insert proper C++ library support
12066 case $cc_basename in
12068 # Sun C++ 4.2, 5.x and Centerline C++
12069 archive_cmds_need_lc_CXX=yes
12070 no_undefined_flag_CXX=' -zdefs'
12071 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12072 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12073 $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'
12075 hardcode_libdir_flag_spec_CXX='-R$libdir'
12076 hardcode_shlibpath_var_CXX=no
12078 solaris2.[0-5] | solaris2.[0-5].*) ;;
12080 # The compiler driver will combine and reorder linker options,
12081 # but understands `-z linker_flag'.
12082 # Supported since Solaris 2.6 (maybe 2.5.1?)
12083 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12086 link_all_deplibs_CXX=yes
12088 output_verbose_link_cmd='echo'
12090 # Archives containing C++ object files must be created using
12091 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12092 # necessary to make sure instantiated templates are included
12094 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12097 # Green Hills C++ Compiler
12098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12100 # The C++ compiler must be used to create the archive.
12101 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12104 # GNU C++ compiler with Solaris linker
12105 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12106 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12107 if $CC --version | grep -v '^2\.7' > /dev/null; then
12108 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12109 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12110 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12112 # Commands to make compiler produce verbose output that lists
12113 # what "hidden" libraries, object files and flags are used when
12114 # linking a shared library.
12115 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12117 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12119 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12120 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12121 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12123 # Commands to make compiler produce verbose output that lists
12124 # what "hidden" libraries, object files and flags are used when
12125 # linking a shared library.
12126 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12129 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12131 solaris2.[0-5] | solaris2.[0-5].*) ;;
12133 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12140 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12141 no_undefined_flag_CXX='${wl}-z,text'
12142 archive_cmds_need_lc_CXX=no
12143 hardcode_shlibpath_var_CXX=no
12144 runpath_var='LD_RUN_PATH'
12146 case $cc_basename in
12148 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12152 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12153 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12157 sysv5* | sco3.2v5* | sco5v6*)
12158 # Note: We can NOT use -z defs as we might desire, because we do not
12159 # link with -lc, and that would cause any symbols used from libc to
12160 # always be unresolved, which means just about no library would
12161 # ever link correctly. If we're not using GNU ld we use -z text
12162 # though, which does catch some bad symbols but isn't as heavy-handed
12164 # For security reasons, it is highly recommended that you always
12165 # use absolute paths for naming shared libraries, and exclude the
12166 # DT_RUNPATH tag from executables and libraries. But doing so
12167 # requires that you compile everything twice, which is a pain.
12168 # So that behaviour is only enabled if SCOABSPATH is set to a
12169 # non-empty value in the environment. Most likely only useful for
12170 # creating official distributions of packages.
12171 # This is a hack until libtool officially supports absolute path
12172 # names for shared libraries.
12173 no_undefined_flag_CXX='${wl}-z,text'
12174 allow_undefined_flag_CXX='${wl}-z,nodefs'
12175 archive_cmds_need_lc_CXX=no
12176 hardcode_shlibpath_var_CXX=no
12177 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12178 hardcode_libdir_separator_CXX=':'
12179 link_all_deplibs_CXX=yes
12180 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12181 runpath_var='LD_RUN_PATH'
12183 case $cc_basename in
12185 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12186 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12189 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12190 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12195 case $cc_basename in
12197 # NonStop-UX NCC 3.20
12198 # FIXME: insert proper C++ library support
12202 # FIXME: insert proper C++ library support
12208 # FIXME: insert proper C++ library support
12212 # FIXME: insert proper C++ library support
12216 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12217 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12218 test "$ld_shlibs_CXX" = no && can_build_shared=no
12223 cat > conftest.$ac_ext <<EOF
12227 Foo (void) { a = 0; }
12233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; then
12238 # Parse the compiler output and extract the necessary
12239 # objects, libraries and library flags.
12241 # Sentinel used to keep track of whether or not we are before
12242 # the conftest object file.
12243 pre_test_object_deps_done=no
12245 # The `*' in the case matches for architectures that use `case' in
12246 # $output_verbose_cmd can trigger glob expansion during the loop
12247 # eval without this substitution.
12248 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12250 for p in `eval $output_verbose_link_cmd`; do
12254 # Some compilers place space between "-{L,R}" and the path.
12255 # Remove the space.
12256 if test $p = "-L" \
12257 || test $p = "-R"; then
12264 if test "$pre_test_object_deps_done" = no; then
12267 # Internal compiler library paths should come after those
12268 # provided the user. The postdeps already come after the
12269 # user supplied libs so there is no need to process them.
12270 if test -z "$compiler_lib_search_path_CXX"; then
12271 compiler_lib_search_path_CXX="${prev}${p}"
12273 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12276 # The "-l" case would never come before the object being
12277 # linked, so don't bother handling this case.
12280 if test -z "$postdeps_CXX"; then
12281 postdeps_CXX="${prev}${p}"
12283 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12289 # This assumes that the test object file only shows up
12290 # once in the compiler output.
12291 if test "$p" = "conftest.$objext"; then
12292 pre_test_object_deps_done=yes
12296 if test "$pre_test_object_deps_done" = no; then
12297 if test -z "$predep_objects_CXX"; then
12298 predep_objects_CXX="$p"
12300 predep_objects_CXX="$predep_objects_CXX $p"
12303 if test -z "$postdep_objects_CXX"; then
12304 postdep_objects_CXX="$p"
12306 postdep_objects_CXX="$postdep_objects_CXX $p"
12311 *) ;; # Ignore the rest.
12319 echo "libtool.m4: error: problem compiling CXX test program"
12322 $rm -f confest.$objext
12324 compiler_lib_search_dirs_CXX=
12325 if test -n "$compiler_lib_search_path_CXX"; then
12326 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12329 # PORTME: override above test on systems where it is broken
12332 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12333 # hack all around it, let's just trust "g++" to DTRT.
12334 predep_objects_CXX=
12335 postdep_objects_CXX=
12340 case `$CC -V 2>&1 | sed 5q` in
12344 # The more standards-conforming stlport4 library is
12345 # incompatible with the Cstd library. Avoid specifying
12346 # it if it's in CXXFLAGS. Ignore libCrun as
12347 # -library=stlport4 depends on it.
12348 case " $CXX $CXXFLAGS " in
12349 *" -library=stlport4 "*)
12350 solaris_use_stlport4=yes
12353 if test "$solaris_use_stlport4" != yes; then
12354 postdeps_CXX='-library=Cstd -library=Crun'
12361 case $cc_basename in
12363 # The more standards-conforming stlport4 library is
12364 # incompatible with the Cstd library. Avoid specifying
12365 # it if it's in CXXFLAGS. Ignore libCrun as
12366 # -library=stlport4 depends on it.
12367 case " $CXX $CXXFLAGS " in
12368 *" -library=stlport4 "*)
12369 solaris_use_stlport4=yes
12373 # Adding this requires a known-good setup of shared libraries for
12374 # Sun compiler versions before 5.6, else PIC objects from an old
12375 # archive will be linked into the output, leading to subtle bugs.
12376 if test "$solaris_use_stlport4" != yes; then
12377 postdeps_CXX='-library=Cstd -library=Crun'
12384 case " $postdeps_CXX " in
12385 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12388 lt_prog_compiler_wl_CXX=
12389 lt_prog_compiler_pic_CXX=
12390 lt_prog_compiler_static_CXX=
12392 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12393 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12395 # C++ specific cases for pic, static, wl, etc.
12396 if test "$GXX" = yes; then
12397 lt_prog_compiler_wl_CXX='-Wl,'
12398 lt_prog_compiler_static_CXX='-static'
12402 # All AIX code is PIC.
12403 if test "$host_cpu" = ia64; then
12404 # AIX 5 now supports IA64 processor
12405 lt_prog_compiler_static_CXX='-Bstatic'
12409 # FIXME: we need at least 68020 code to build shared libraries, but
12410 # adding the `-m68020' flag to GCC prevents building anything better,
12412 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12415 # PIC is the default for these OSes.
12417 mingw* | cygwin* | os2* | pw32*)
12418 # This hack is so that the source file can tell whether it is being
12419 # built for inclusion in a dll (and should export symbols for example).
12420 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12421 # (--disable-auto-import) libraries
12422 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12424 darwin* | rhapsody*)
12425 # PIC is the default on this platform
12426 # Common symbols not allowed in MH_DYLIB files
12427 lt_prog_compiler_pic_CXX='-fno-common'
12430 # DJGPP does not support shared libraries at all
12431 lt_prog_compiler_pic_CXX=
12434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12435 # Instead, we relocate shared libraries at runtime.
12438 if test -d /usr/nec; then
12439 lt_prog_compiler_pic_CXX=-Kconform_pic
12443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12444 # not for PA HP-UX.
12449 lt_prog_compiler_pic_CXX='-fPIC'
12454 lt_prog_compiler_pic_CXX='-fPIC'
12460 # All AIX code is PIC.
12461 if test "$host_cpu" = ia64; then
12462 # AIX 5 now supports IA64 processor
12463 lt_prog_compiler_static_CXX='-Bstatic'
12465 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12469 case $cc_basename in
12471 # Green Hills C++ Compiler
12472 # _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"
12477 # PIC is the default on this platform
12478 # Common symbols not allowed in MH_DYLIB files
12479 case $cc_basename in
12481 lt_prog_compiler_pic_CXX='-qnocommon'
12482 lt_prog_compiler_wl_CXX='-Wl,'
12487 case $cc_basename in
12489 lt_prog_compiler_pic_CXX='-KPIC'
12492 # Green Hills C++ Compiler
12493 lt_prog_compiler_pic_CXX='-pic'
12499 freebsd* | dragonfly*)
12500 # FreeBSD uses GNU C++
12502 hpux9* | hpux10* | hpux11*)
12503 case $cc_basename in
12505 lt_prog_compiler_wl_CXX='-Wl,'
12506 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12507 if test "$host_cpu" != ia64; then
12508 lt_prog_compiler_pic_CXX='+Z'
12512 lt_prog_compiler_wl_CXX='-Wl,'
12513 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12519 lt_prog_compiler_pic_CXX='+Z'
12528 # This is c89, which is MS Visual C++ (no shared libs)
12529 # Anyone wants to do a port?
12531 irix5* | irix6* | nonstopux*)
12532 case $cc_basename in
12534 lt_prog_compiler_wl_CXX='-Wl,'
12535 lt_prog_compiler_static_CXX='-non_shared'
12536 # CC pic flag -KPIC is the default.
12542 linux* | k*bsd*-gnu)
12543 case $cc_basename in
12546 lt_prog_compiler_wl_CXX='--backend -Wl,'
12547 lt_prog_compiler_pic_CXX='-fPIC'
12551 lt_prog_compiler_wl_CXX='-Wl,'
12552 lt_prog_compiler_pic_CXX='-KPIC'
12553 lt_prog_compiler_static_CXX='-static'
12556 # Portland Group C++ compiler.
12557 lt_prog_compiler_wl_CXX='-Wl,'
12558 lt_prog_compiler_pic_CXX='-fpic'
12559 lt_prog_compiler_static_CXX='-Bstatic'
12563 # Make sure the PIC flag is empty. It appears that all Alpha
12564 # Linux and Compaq Tru64 Unix objects are PIC.
12565 lt_prog_compiler_pic_CXX=
12566 lt_prog_compiler_static_CXX='-non_shared'
12569 case `$CC -V 2>&1 | sed 5q` in
12572 lt_prog_compiler_pic_CXX='-KPIC'
12573 lt_prog_compiler_static_CXX='-Bstatic'
12574 lt_prog_compiler_wl_CXX='-Qoption ld '
12585 case $cc_basename in
12587 lt_prog_compiler_pic_CXX='-W c,exportall'
12593 netbsd* | netbsdelf*-gnu)
12595 osf3* | osf4* | osf5*)
12596 case $cc_basename in
12598 lt_prog_compiler_wl_CXX='--backend -Wl,'
12601 # Rational C++ 2.4.1
12602 lt_prog_compiler_pic_CXX='-pic'
12605 # Digital/Compaq C++
12606 lt_prog_compiler_wl_CXX='-Wl,'
12607 # Make sure the PIC flag is empty. It appears that all Alpha
12608 # Linux and Compaq Tru64 Unix objects are PIC.
12609 lt_prog_compiler_pic_CXX=
12610 lt_prog_compiler_static_CXX='-non_shared'
12619 case $cc_basename in
12621 # Sun C++ 4.2, 5.x and Centerline C++
12622 lt_prog_compiler_pic_CXX='-KPIC'
12623 lt_prog_compiler_static_CXX='-Bstatic'
12624 lt_prog_compiler_wl_CXX='-Qoption ld '
12627 # Green Hills C++ Compiler
12628 lt_prog_compiler_pic_CXX='-PIC'
12635 case $cc_basename in
12638 lt_prog_compiler_pic_CXX='-pic'
12639 lt_prog_compiler_static_CXX='-Bstatic'
12643 lt_prog_compiler_pic_CXX='-pic'
12650 case $cc_basename in
12652 # NonStop-UX NCC 3.20
12653 lt_prog_compiler_pic_CXX='-KPIC'
12659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12660 case $cc_basename in
12662 lt_prog_compiler_wl_CXX='-Wl,'
12663 lt_prog_compiler_pic_CXX='-KPIC'
12664 lt_prog_compiler_static_CXX='-Bstatic'
12671 lt_prog_compiler_can_build_shared_CXX=no
12676 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12677 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12680 # Check to make sure the PIC flag actually works.
12682 if test -n "$lt_prog_compiler_pic_CXX"; then
12684 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12686 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 lt_cv_prog_compiler_pic_works_CXX=no
12690 ac_outfile=conftest.$ac_objext
12691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12692 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12693 # Insert the option either (1) after the last *FLAGS variable, or
12694 # (2) before a word containing "conftest.", or (3) at the end.
12695 # Note that $ac_compile itself does not contain backslashes and begins
12696 # with a dollar sign (not a hyphen), so the echo should work correctly.
12697 # The option is referenced via a variable to avoid confusing sed.
12698 lt_compile=`echo "$ac_compile" | $SED \
12699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12701 -e 's:$: $lt_compiler_flag:'`
12702 (eval echo "\"\$as_me:12702: $lt_compile\"" >&5)
12703 (eval "$lt_compile" 2>conftest.err)
12705 cat conftest.err >&5
12706 echo "$as_me:12706: \$? = $ac_status" >&5
12707 if (exit $ac_status) && test -s "$ac_outfile"; then
12708 # The compiler can only warn and ignore the option if not recognized
12709 # So say no if there are warnings other than the usual output.
12710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12713 lt_cv_prog_compiler_pic_works_CXX=yes
12719 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12720 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12722 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12723 case $lt_prog_compiler_pic_CXX in
12725 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12728 lt_prog_compiler_pic_CXX=
12729 lt_prog_compiler_can_build_shared_CXX=no
12734 # For platforms which do not support PIC, -DPIC is meaningless:
12736 lt_prog_compiler_pic_CXX=
12739 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12744 # Check to make sure the static flag actually works.
12746 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12747 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12749 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 lt_cv_prog_compiler_static_works_CXX=no
12753 save_LDFLAGS="$LDFLAGS"
12754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12757 # The linker can only warn and ignore the option if not recognized
12758 # So say no if there are warnings
12759 if test -s conftest.err; then
12760 # Append any errors to the config.log.
12761 cat conftest.err 1>&5
12762 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12764 if diff conftest.exp conftest.er2 >/dev/null; then
12765 lt_cv_prog_compiler_static_works_CXX=yes
12768 lt_cv_prog_compiler_static_works_CXX=yes
12772 LDFLAGS="$save_LDFLAGS"
12775 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12776 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12778 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12781 lt_prog_compiler_static_CXX=
12785 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12786 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12787 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 lt_cv_prog_compiler_c_o_CXX=no
12791 $rm -r conftest 2>/dev/null
12795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12797 lt_compiler_flag="-o out/conftest2.$ac_objext"
12798 # Insert the option either (1) after the last *FLAGS variable, or
12799 # (2) before a word containing "conftest.", or (3) at the end.
12800 # Note that $ac_compile itself does not contain backslashes and begins
12801 # with a dollar sign (not a hyphen), so the echo should work correctly.
12802 lt_compile=`echo "$ac_compile" | $SED \
12803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12805 -e 's:$: $lt_compiler_flag:'`
12806 (eval echo "\"\$as_me:12806: $lt_compile\"" >&5)
12807 (eval "$lt_compile" 2>out/conftest.err)
12809 cat out/conftest.err >&5
12810 echo "$as_me:12810: \$? = $ac_status" >&5
12811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12813 # The compiler can only warn and ignore the option if not recognized
12814 # So say no if there are warnings
12815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12818 lt_cv_prog_compiler_c_o_CXX=yes
12823 # SGI C++ compiler will create directory out/ii_files/ for
12824 # template instantiation
12825 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12826 $rm out/* && rmdir out
12832 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12833 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12836 hard_links="nottested"
12837 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12838 # do not overwrite the value of need_locks provided by the user
12839 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12840 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12845 ln conftest.a conftest.b 2>&5 || hard_links=no
12846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12847 { echo "$as_me:$LINENO: result: $hard_links" >&5
12848 echo "${ECHO_T}$hard_links" >&6; }
12849 if test "$hard_links" = no; then
12850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12851 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12858 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12859 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12861 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12864 # If we're using GNU nm, then we don't want the "-C" option.
12865 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12866 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12867 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'
12869 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'
12873 export_symbols_cmds_CXX="$ltdll_cmds"
12876 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'
12878 linux* | k*bsd*-gnu)
12879 link_all_deplibs_CXX=no
12882 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12885 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12887 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12888 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12889 test "$ld_shlibs_CXX" = no && can_build_shared=no
12892 # Do we need to explicitly link libc?
12894 case "x$archive_cmds_need_lc_CXX" in
12896 # Assume -lc should be added
12897 archive_cmds_need_lc_CXX=yes
12899 if test "$enable_shared" = yes && test "$GCC" = yes; then
12900 case $archive_cmds_CXX in
12902 # FIXME: we may have to deal with multi-command sequences.
12905 # Test whether the compiler implicitly links with -lc since on some
12906 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12907 # to ld, don't add -lc before -lgcc.
12908 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12909 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } 2>conftest.err; then
12920 libobjs=conftest.$ac_objext
12922 wl=$lt_prog_compiler_wl_CXX
12923 pic_flag=$lt_prog_compiler_pic_CXX
12929 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12930 allow_undefined_flag_CXX=
12931 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12932 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }
12937 archive_cmds_need_lc_CXX=no
12939 archive_cmds_need_lc_CXX=yes
12941 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12943 cat conftest.err 1>&5
12946 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12947 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12954 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12955 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12956 library_names_spec=
12957 libname_spec='lib$name'
12961 postuninstall_cmds=
12965 shlibpath_overrides_runpath=unknown
12967 dynamic_linker="$host_os ld.so"
12968 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12970 need_lib_prefix=unknown
12971 hardcode_into_libs=no
12973 # when you set need_version to no, make sure it does not cause -set_version
12974 # flags to be left without arguments
12975 need_version=unknown
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12981 shlibpath_var=LIBPATH
12983 # AIX 3 has no versioning support, so we append a major version to the name.
12984 soname_spec='${libname}${release}${shared_ext}$major'
12991 hardcode_into_libs=yes
12992 if test "$host_cpu" = ia64; then
12993 # AIX 5 supports IA64
12994 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12995 shlibpath_var=LD_LIBRARY_PATH
12997 # With GCC up to 2.95.x, collect2 would create an import file
12998 # for dependence libraries. The import file would start with
12999 # the line `#! .'. This would cause the generated library to
13000 # depend on `.', always an invalid library. This was fixed in
13001 # development snapshots of GCC prior to 3.0.
13003 aix4 | aix4.[01] | aix4.[01].*)
13004 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13006 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13009 can_build_shared=no
13013 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13014 # soname into executable. Probably we can add versioning support to
13015 # collect2, so additional links can be useful in future.
13016 if test "$aix_use_runtimelinking" = yes; then
13017 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13018 # instead of lib<name>.a to let people know that these are not
13019 # typical AIX shared libraries.
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 # We preserve .a as extension for shared libraries through AIX4.2
13023 # and later when we are not doing run time linking.
13024 library_names_spec='${libname}${release}.a $libname.a'
13025 soname_spec='${libname}${release}${shared_ext}$major'
13027 shlibpath_var=LIBPATH
13032 library_names_spec='$libname.ixlibrary $libname.a'
13033 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13034 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'
13038 library_names_spec='${libname}${shared_ext}'
13039 dynamic_linker="$host_os ld.so"
13040 shlibpath_var=LIBRARY_PATH
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047 soname_spec='${libname}${release}${shared_ext}$major'
13048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13052 # the default ld.so.conf also contains /usr/contrib/lib and
13053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13054 # libtool to hard-code these into programs
13057 cygwin* | mingw* | pw32*)
13058 version_type=windows
13063 case $GCC,$host_os in
13064 yes,cygwin* | yes,mingw* | yes,pw32*)
13065 library_names_spec='$libname.dll.a'
13066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13067 postinstall_cmds='base_file=`basename \${file}`~
13068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13069 dldir=$destdir/`dirname \$dlpath`~
13070 test -d \$dldir || mkdir -p \$dldir~
13071 $install_prog $dir/$dlname \$dldir/$dlname~
13072 chmod a+x \$dldir/$dlname'
13073 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13074 dlpath=$dir/\$dldll~
13076 shlibpath_overrides_runpath=yes
13080 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13081 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13082 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13085 # MinGW DLLs use traditional 'lib' prefix
13086 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13088 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13089 # It is most probably a Windows format PATH printed by
13090 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13091 # path with ; separators, and with drive letters. We can handle the
13092 # drive letters (cygwin fileutils understands them), so leave them,
13093 # especially as we might pass files found there to a mingw objdump,
13094 # which wouldn't understand a cygwinified path. Ahh.
13095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13101 # pw32 DLLs use 'pw' prefix rather than 'lib'
13102 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13108 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13111 dynamic_linker='Win32 ld.exe'
13112 # FIXME: first we should search . and the directory the executable is in
13116 darwin* | rhapsody*)
13117 dynamic_linker="$host_os dyld"
13118 version_type=darwin
13121 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13122 soname_spec='${libname}${release}${major}$shared_ext'
13123 shlibpath_overrides_runpath=yes
13124 shlibpath_var=DYLD_LIBRARY_PATH
13125 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13127 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13135 soname_spec='${libname}${release}${shared_ext}$major'
13136 shlibpath_var=LD_LIBRARY_PATH
13143 freebsd* | dragonfly*)
13144 # DragonFly does not have aout. When/if they implement a new
13145 # versioning mechanism, adjust this.
13146 if test -x /usr/bin/objformat; then
13147 objformat=`/usr/bin/objformat`
13150 freebsd[123]*) objformat=aout ;;
13151 *) objformat=elf ;;
13154 version_type=freebsd-$objformat
13155 case $version_type in
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13166 shlibpath_var=LD_LIBRARY_PATH
13169 shlibpath_overrides_runpath=yes
13171 freebsd3.[01]* | freebsdelf3.[01]*)
13172 shlibpath_overrides_runpath=yes
13173 hardcode_into_libs=yes
13175 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13176 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13177 shlibpath_overrides_runpath=no
13178 hardcode_into_libs=yes
13180 *) # from 4.6 on, and DragonFly
13181 shlibpath_overrides_runpath=yes
13182 hardcode_into_libs=yes
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 hardcode_into_libs=yes
13197 hpux9* | hpux10* | hpux11*)
13198 # Give a soname corresponding to the major version so that dld.sl refuses to
13199 # link against other versions.
13206 hardcode_into_libs=yes
13207 dynamic_linker="$host_os dld.so"
13208 shlibpath_var=LD_LIBRARY_PATH
13209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13211 soname_spec='${libname}${release}${shared_ext}$major'
13212 if test "X$HPUX_IA64_MODE" = X32; then
13213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13221 hardcode_into_libs=yes
13222 dynamic_linker="$host_os dld.sl"
13223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226 soname_spec='${libname}${release}${shared_ext}$major'
13227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13232 dynamic_linker="$host_os dld.sl"
13233 shlibpath_var=SHLIB_PATH
13234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236 soname_spec='${libname}${release}${shared_ext}$major'
13239 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13240 postinstall_cmds='chmod 555 $lib'
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
13249 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 shlibpath_overrides_runpath=no
13252 hardcode_into_libs=yes
13255 irix5* | irix6* | nonstopux*)
13257 nonstopux*) version_type=nonstopux ;;
13259 if test "$lt_cv_prog_gnu_ld" = yes; then
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13270 irix5* | nonstopux*)
13271 libsuff= shlibsuff=
13274 case $LD in # libtool.m4 will add one of these switches to LD
13275 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13276 libsuff= shlibsuff= libmagic=32-bit;;
13277 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13278 libsuff=32 shlibsuff=N32 libmagic=N32;;
13279 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13280 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13281 *) libsuff= shlibsuff= libmagic=never-match;;
13285 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13286 shlibpath_overrides_runpath=no
13287 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13288 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13289 hardcode_into_libs=yes
13292 # No shared lib support for Linux oldld, aout, or coff.
13293 linux*oldld* | linux*aout* | linux*coff*)
13297 # This must be Linux ELF.
13298 linux* | k*bsd*-gnu)
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303 soname_spec='${libname}${release}${shared_ext}$major'
13304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13305 shlibpath_var=LD_LIBRARY_PATH
13306 shlibpath_overrides_runpath=no
13307 # This implies no fast_install, which is unacceptable.
13308 # Some rework will be needed to allow for fast_install
13309 # before this can be enabled.
13310 hardcode_into_libs=yes
13312 # Append ld.so.conf contents to the search path
13313 if test -f /etc/ld.so.conf; then
13314 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' ' '`
13315 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13318 # We used to test for /lib/ld.so.1 and disable shared libraries on
13319 # powerpc, because MkLinux only supported shared libraries with the
13320 # GNU dynamic linker. Since this was broken with cross compilers,
13321 # most powerpc-linux boxes support dynamic linking these days and
13322 # people can always --disable-shared, the test was removed, and we
13323 # assume the GNU/Linux dynamic linker is in use.
13324 dynamic_linker='GNU/Linux ld.so'
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13332 soname_spec='${libname}${release}${shared_ext}$major'
13333 shlibpath_var=LD_LIBRARY_PATH
13334 shlibpath_overrides_runpath=no
13335 hardcode_into_libs=yes
13336 dynamic_linker='NetBSD ld.elf_so'
13343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13346 dynamic_linker='NetBSD (a.out) ld.so'
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13349 soname_spec='${libname}${release}${shared_ext}$major'
13350 dynamic_linker='NetBSD ld.elf_so'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=yes
13354 hardcode_into_libs=yes
13359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13360 shlibpath_var=LD_LIBRARY_PATH
13361 shlibpath_overrides_runpath=yes
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369 soname_spec='${libname}${release}${shared_ext}$major'
13370 shlibpath_var=LD_LIBRARY_PATH
13371 shlibpath_overrides_runpath=yes
13376 sys_lib_dlsearch_path_spec="/usr/lib"
13378 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13380 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13381 *) need_version=no ;;
13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13385 shlibpath_var=LD_LIBRARY_PATH
13386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13388 openbsd2.[89] | openbsd2.[89].*)
13389 shlibpath_overrides_runpath=no
13392 shlibpath_overrides_runpath=yes
13396 shlibpath_overrides_runpath=yes
13401 libname_spec='$name'
13404 library_names_spec='$libname${shared_ext} $libname.a'
13405 dynamic_linker='OS/2 ld.exe'
13406 shlibpath_var=LIBPATH
13409 osf3* | osf4* | osf5*)
13413 soname_spec='${libname}${release}${shared_ext}$major'
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13417 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429 soname_spec='${libname}${release}${shared_ext}$major'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 shlibpath_overrides_runpath=yes
13432 hardcode_into_libs=yes
13433 # ldd complains unless libraries are executable
13434 postinstall_cmds='chmod +x $lib'
13439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13441 shlibpath_var=LD_LIBRARY_PATH
13442 shlibpath_overrides_runpath=yes
13443 if test "$with_gnu_ld" = yes; then
13451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452 soname_spec='${libname}${release}${shared_ext}$major'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 case $host_vendor in
13456 shlibpath_overrides_runpath=no
13458 export_dynamic_flag_spec='${wl}-Blargedynsym'
13459 runpath_var=LD_RUN_PATH
13467 shlibpath_overrides_runpath=no
13468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13474 if test -d /usr/nec ;then
13476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13477 soname_spec='$libname${shared_ext}.$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13483 version_type=freebsd-elf
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13487 soname_spec='${libname}${release}${shared_ext}$major'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 hardcode_into_libs=yes
13490 if test "$with_gnu_ld" = yes; then
13491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13492 shlibpath_overrides_runpath=no
13494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13495 shlibpath_overrides_runpath=yes
13498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13502 sys_lib_dlsearch_path_spec='/usr/lib'
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 shlibpath_var=LD_LIBRARY_PATH
13516 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13517 echo "${ECHO_T}$dynamic_linker" >&6; }
13518 test "$dynamic_linker" = no && can_build_shared=no
13520 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13526 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13527 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13533 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13536 if test "$GCC" = yes; then
13537 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13540 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13541 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13542 hardcode_action_CXX=
13543 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13544 test -n "$runpath_var_CXX" || \
13545 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13547 # We can hardcode non-existant directories.
13548 if test "$hardcode_direct_CXX" != no &&
13549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13550 # have to relink, otherwise we might link with an installed library
13551 # when we should be linking with a yet-to-be-installed one
13552 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13553 test "$hardcode_minus_L_CXX" != no; then
13554 # Linking always hardcodes the temporary library directory.
13555 hardcode_action_CXX=relink
13557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13558 hardcode_action_CXX=immediate
13561 # We cannot hardcode anything, or else we can only hardcode existing
13563 hardcode_action_CXX=unsupported
13565 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13566 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13568 if test "$hardcode_action_CXX" = relink; then
13569 # Fast installation is not supported
13570 enable_fast_install=no
13571 elif test "$shlibpath_overrides_runpath" = yes ||
13572 test "$enable_shared" = no; then
13573 # Fast installation is not necessary
13574 enable_fast_install=needless
13578 # The else clause should only fire when bootstrapping the
13579 # libtool distribution, otherwise you forgot to ship ltmain.sh
13580 # with your package, and you will get complaints that there are
13581 # no rules to generate ltmain.sh.
13582 if test -f "$ltmain"; then
13583 # See if we are running on zsh, and set the options which allow our commands through
13584 # without removal of \ escapes.
13585 if test -n "${ZSH_VERSION+set}" ; then
13586 setopt NO_GLOB_SUBST
13588 # Now quote all the things that may contain metacharacters while being
13589 # careful not to overquote the AC_SUBSTed values. We take copies of the
13590 # variables and quote the copies for generation of the libtool script.
13591 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13593 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13594 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13595 deplibs_check_method reload_flag reload_cmds need_locks \
13596 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13597 lt_cv_sys_global_symbol_to_c_name_address \
13598 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13599 old_postinstall_cmds old_postuninstall_cmds \
13603 lt_prog_compiler_wl_CXX \
13604 lt_prog_compiler_pic_CXX \
13605 lt_prog_compiler_static_CXX \
13606 lt_prog_compiler_no_builtin_flag_CXX \
13607 export_dynamic_flag_spec_CXX \
13608 thread_safe_flag_spec_CXX \
13609 whole_archive_flag_spec_CXX \
13610 enable_shared_with_static_runtimes_CXX \
13611 old_archive_cmds_CXX \
13612 old_archive_from_new_cmds_CXX \
13613 predep_objects_CXX \
13614 postdep_objects_CXX \
13617 compiler_lib_search_path_CXX \
13618 compiler_lib_search_dirs_CXX \
13620 archive_expsym_cmds_CXX \
13621 postinstall_cmds_CXX \
13622 postuninstall_cmds_CXX \
13623 old_archive_from_expsyms_cmds_CXX \
13624 allow_undefined_flag_CXX \
13625 no_undefined_flag_CXX \
13626 export_symbols_cmds_CXX \
13627 hardcode_libdir_flag_spec_CXX \
13628 hardcode_libdir_flag_spec_ld_CXX \
13629 hardcode_libdir_separator_CXX \
13630 hardcode_automatic_CXX \
13632 module_expsym_cmds_CXX \
13633 lt_cv_prog_compiler_c_o_CXX \
13634 fix_srcfile_path_CXX \
13635 exclude_expsyms_CXX \
13636 include_expsyms_CXX; do
13639 old_archive_cmds_CXX | \
13640 old_archive_from_new_cmds_CXX | \
13641 archive_cmds_CXX | \
13642 archive_expsym_cmds_CXX | \
13643 module_cmds_CXX | \
13644 module_expsym_cmds_CXX | \
13645 old_archive_from_expsyms_cmds_CXX | \
13646 export_symbols_cmds_CXX | \
13647 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13648 postinstall_cmds | postuninstall_cmds | \
13649 old_postinstall_cmds | old_postuninstall_cmds | \
13650 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13651 # Double-quote double-evaled strings.
13652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13661 *'\$0 --fallback-echo"')
13662 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13668 cat <<__EOF__ >> "$cfgfile"
13669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13673 # Shell to use when invoking shell scripts.
13676 # Whether or not to build shared libraries.
13677 build_libtool_libs=$enable_shared
13679 # Whether or not to build static libraries.
13680 build_old_libs=$enable_static
13682 # Whether or not to add -lc for building shared libraries.
13683 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13685 # Whether or not to disallow shared libs when runtime libs are static
13686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13688 # Whether or not to optimize for fast installation.
13689 fast_install=$enable_fast_install
13692 host_alias=$host_alias
13696 # The build system.
13697 build_alias=$build_alias
13701 # An echo program that does not interpret backslashes.
13706 AR_FLAGS=$lt_AR_FLAGS
13711 # LTCC compiler flags.
13712 LTCFLAGS=$lt_LTCFLAGS
13714 # A language-specific compiler.
13715 CC=$lt_compiler_CXX
13717 # Is the compiler the GNU C compiler?
13723 # The linker used to build libraries.
13726 # Whether we need hard or soft links.
13729 # A BSD-compatible nm program.
13732 # A symbol stripping program
13735 # Used to examine libraries when file_magic_cmd begins "file"
13736 MAGIC_CMD=$MAGIC_CMD
13738 # Used on cygwin: DLL creation program.
13741 # Used on cygwin: object dumper.
13744 # Used on cygwin: assembler.
13747 # The name of the directory that contains temporary libtool files.
13750 # How to create reloadable object files.
13751 reload_flag=$lt_reload_flag
13752 reload_cmds=$lt_reload_cmds
13754 # How to pass a linker flag through the compiler.
13755 wl=$lt_lt_prog_compiler_wl_CXX
13757 # Object file suffix (normally "o").
13758 objext="$ac_objext"
13760 # Old archive suffix (normally "a").
13763 # Shared library suffix (normally ".so").
13764 shrext_cmds='$shrext_cmds'
13766 # Executable file suffix (normally "").
13769 # Additional compiler flags for building library objects.
13770 pic_flag=$lt_lt_prog_compiler_pic_CXX
13773 # What is the maximum length of a command?
13774 max_cmd_len=$lt_cv_sys_max_cmd_len
13776 # Does compiler simultaneously support -c and -o options?
13777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13779 # Must we lock files when doing compilation?
13780 need_locks=$lt_need_locks
13782 # Do we need the lib prefix for modules?
13783 need_lib_prefix=$need_lib_prefix
13785 # Do we need a version for libraries?
13786 need_version=$need_version
13788 # Whether dlopen is supported.
13789 dlopen_support=$enable_dlopen
13791 # Whether dlopen of programs is supported.
13792 dlopen_self=$enable_dlopen_self
13794 # Whether dlopen of statically linked programs is supported.
13795 dlopen_self_static=$enable_dlopen_self_static
13797 # Compiler flag to prevent dynamic linking.
13798 link_static_flag=$lt_lt_prog_compiler_static_CXX
13800 # Compiler flag to turn off builtin functions.
13801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13803 # Compiler flag to allow reflexive dlopens.
13804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13806 # Compiler flag to generate shared objects directly from archives.
13807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13809 # Compiler flag to generate thread-safe objects.
13810 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13812 # Library versioning type.
13813 version_type=$version_type
13815 # Format of library name prefix.
13816 libname_spec=$lt_libname_spec
13818 # List of archive names. First name is the real one, the rest are links.
13819 # The last name is the one that the linker finds with -lNAME.
13820 library_names_spec=$lt_library_names_spec
13822 # The coded name of the library, if different from the real name.
13823 soname_spec=$lt_soname_spec
13825 # Commands used to build and install an old-style archive.
13827 old_archive_cmds=$lt_old_archive_cmds_CXX
13828 old_postinstall_cmds=$lt_old_postinstall_cmds
13829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13831 # Create an old-style archive from a shared archive.
13832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13834 # Create a temporary old-style archive to link instead of a shared archive.
13835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13837 # Commands used to build and install a shared archive.
13838 archive_cmds=$lt_archive_cmds_CXX
13839 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13840 postinstall_cmds=$lt_postinstall_cmds
13841 postuninstall_cmds=$lt_postuninstall_cmds
13843 # Commands used to build a loadable module (assumed same as above if empty)
13844 module_cmds=$lt_module_cmds_CXX
13845 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13847 # Commands to strip libraries.
13848 old_striplib=$lt_old_striplib
13849 striplib=$lt_striplib
13851 # Dependencies to place before the objects being linked to create a
13853 predep_objects=$lt_predep_objects_CXX
13855 # Dependencies to place after the objects being linked to create a
13857 postdep_objects=$lt_postdep_objects_CXX
13859 # Dependencies to place before the objects being linked to create a
13861 predeps=$lt_predeps_CXX
13863 # Dependencies to place after the objects being linked to create a
13865 postdeps=$lt_postdeps_CXX
13867 # The directories searched by this compiler when creating a shared
13869 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13871 # The library search path used internally by the compiler when linking
13872 # a shared library.
13873 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13875 # Method to check whether dependent libraries are shared objects.
13876 deplibs_check_method=$lt_deplibs_check_method
13878 # Command to use when deplibs_check_method == file_magic.
13879 file_magic_cmd=$lt_file_magic_cmd
13881 # Flag that allows shared libraries with undefined symbols to be built.
13882 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13884 # Flag that forces no undefined symbols.
13885 no_undefined_flag=$lt_no_undefined_flag_CXX
13887 # Commands used to finish a libtool library installation in a directory.
13888 finish_cmds=$lt_finish_cmds
13890 # Same as above, but a single script fragment to be evaled but not shown.
13891 finish_eval=$lt_finish_eval
13893 # Take the output of nm and produce a listing of raw symbols and C names.
13894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13896 # Transform the output of nm in a proper C declaration
13897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13899 # Transform the output of nm in a C name address pair
13900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13902 # This is the shared library runtime path variable.
13903 runpath_var=$runpath_var
13905 # This is the shared library path variable.
13906 shlibpath_var=$shlibpath_var
13908 # Is shlibpath searched before the hard-coded library search path?
13909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13911 # How to hardcode a shared library path into an executable.
13912 hardcode_action=$hardcode_action_CXX
13914 # Whether we should hardcode library paths into libraries.
13915 hardcode_into_libs=$hardcode_into_libs
13917 # Flag to hardcode \$libdir into a binary during linking.
13918 # This must work even if \$libdir does not exist.
13919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13921 # If ld is used when linking, flag to hardcode \$libdir into
13922 # a binary during linking. This must work even if \$libdir does
13924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13926 # Whether we need a single -rpath flag with a separated argument.
13927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13930 # resulting binary.
13931 hardcode_direct=$hardcode_direct_CXX
13933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13934 # resulting binary.
13935 hardcode_minus_L=$hardcode_minus_L_CXX
13937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13938 # the resulting binary.
13939 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13941 # Set to yes if building a shared library automatically hardcodes DIR into the library
13942 # and all subsequent libraries and executables linked against it.
13943 hardcode_automatic=$hardcode_automatic_CXX
13945 # Variables whose values should be saved in libtool wrapper scripts and
13946 # restored at relink time.
13947 variables_saved_for_relink="$variables_saved_for_relink"
13949 # Whether libtool must link a program against all its dependency libraries.
13950 link_all_deplibs=$link_all_deplibs_CXX
13952 # Compile-time system search path for libraries
13953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13955 # Run-time system search path for libraries
13956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13958 # Fix the shell variable \$srcfile for the compiler.
13959 fix_srcfile_path=$lt_fix_srcfile_path
13961 # Set to yes if exported symbols are required.
13962 always_export_symbols=$always_export_symbols_CXX
13964 # The commands to list exported symbols.
13965 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13967 # The commands to extract the exported symbol list from a shared archive.
13968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13970 # Symbols that should not be listed in the preloaded symbols.
13971 exclude_expsyms=$lt_exclude_expsyms_CXX
13973 # Symbols that must always be exported.
13974 include_expsyms=$lt_include_expsyms_CXX
13976 # ### END LIBTOOL TAG CONFIG: $tagname
13982 # If there is no Makefile yet, we rely on a make rule to execute
13983 # `config.status --recheck' to rerun these tests and create the
13984 # libtool script then.
13985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13986 if test -f "$ltmain_in"; then
13987 test -f Makefile && make "$ltmain"
13993 ac_cpp='$CPP $CPPFLAGS'
13994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14002 with_gnu_ldcxx=$with_gnu_ld
14003 with_gnu_ld=$lt_save_with_gnu_ld
14004 lt_cv_path_LDCXX=$lt_cv_path_LD
14005 lt_cv_path_LD=$lt_save_path_LD
14006 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14007 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14015 if test -n "$F77" && test "X$F77" != "Xno"; then
14018 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14019 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14023 archive_cmds_need_lc_F77=no
14024 allow_undefined_flag_F77=
14025 always_export_symbols_F77=no
14026 archive_expsym_cmds_F77=
14027 export_dynamic_flag_spec_F77=
14028 hardcode_direct_F77=no
14029 hardcode_libdir_flag_spec_F77=
14030 hardcode_libdir_flag_spec_ld_F77=
14031 hardcode_libdir_separator_F77=
14032 hardcode_minus_L_F77=no
14033 hardcode_automatic_F77=no
14035 module_expsym_cmds_F77=
14036 link_all_deplibs_F77=unknown
14037 old_archive_cmds_F77=$old_archive_cmds
14038 no_undefined_flag_F77=
14039 whole_archive_flag_spec_F77=
14040 enable_shared_with_static_runtimes_F77=no
14042 # Source file extension for f77 test sources.
14045 # Object file extension for compiled f77 test sources.
14049 # Code to be used in simple compile tests
14050 lt_simple_compile_test_code="\
14056 # Code to be used in simple link tests
14057 lt_simple_link_test_code="\
14062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14064 # If no C compiler was specified, use CC.
14067 # If no C compiler flags were specified, use CFLAGS.
14068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14070 # Allow CC to be a program name with arguments.
14074 # save warnings/boilerplate of simple test code
14075 ac_outfile=conftest.$ac_objext
14076 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14078 _lt_compiler_boilerplate=`cat conftest.err`
14081 ac_outfile=conftest.$ac_objext
14082 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14084 _lt_linker_boilerplate=`cat conftest.err`
14088 # Allow CC to be a program name with arguments.
14093 for cc_temp in $compiler""; do
14095 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14096 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14101 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14104 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14105 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14106 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14107 echo "${ECHO_T}$can_build_shared" >&6; }
14109 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14110 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14111 test "$can_build_shared" = "no" && enable_shared=no
14113 # On AIX, shared libraries and static libraries use the same namespace, and
14114 # are all built from PIC.
14117 test "$enable_shared" = yes && enable_static=no
14118 if test -n "$RANLIB"; then
14119 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14120 postinstall_cmds='$RANLIB $lib'
14124 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14125 test "$enable_shared" = yes && enable_static=no
14129 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14130 echo "${ECHO_T}$enable_shared" >&6; }
14132 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14133 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14134 # Make sure either enable_shared or enable_static is yes.
14135 test "$enable_shared" = yes || enable_static=yes
14136 { echo "$as_me:$LINENO: result: $enable_static" >&5
14137 echo "${ECHO_T}$enable_static" >&6; }
14142 lt_prog_compiler_wl_F77=
14143 lt_prog_compiler_pic_F77=
14144 lt_prog_compiler_static_F77=
14146 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14147 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14149 if test "$GCC" = yes; then
14150 lt_prog_compiler_wl_F77='-Wl,'
14151 lt_prog_compiler_static_F77='-static'
14155 # All AIX code is PIC.
14156 if test "$host_cpu" = ia64; then
14157 # AIX 5 now supports IA64 processor
14158 lt_prog_compiler_static_F77='-Bstatic'
14163 # FIXME: we need at least 68020 code to build shared libraries, but
14164 # adding the `-m68020' flag to GCC prevents building anything better,
14166 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14169 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14170 # PIC is the default for these OSes.
14173 mingw* | cygwin* | pw32* | os2*)
14174 # This hack is so that the source file can tell whether it is being
14175 # built for inclusion in a dll (and should export symbols for example).
14176 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14177 # (--disable-auto-import) libraries
14178 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14181 darwin* | rhapsody*)
14182 # PIC is the default on this platform
14183 # Common symbols not allowed in MH_DYLIB files
14184 lt_prog_compiler_pic_F77='-fno-common'
14188 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14189 # Instead, we relocate shared libraries at runtime.
14193 # Just because we use GCC doesn't mean we suddenly get shared libraries
14194 # on systems that don't support them.
14195 lt_prog_compiler_can_build_shared_F77=no
14200 if test -d /usr/nec; then
14201 lt_prog_compiler_pic_F77=-Kconform_pic
14206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14207 # not for PA HP-UX.
14213 lt_prog_compiler_pic_F77='-fPIC'
14219 lt_prog_compiler_pic_F77='-fPIC'
14223 # PORTME Check for flag to pass linker flags through the system compiler.
14226 lt_prog_compiler_wl_F77='-Wl,'
14227 if test "$host_cpu" = ia64; then
14228 # AIX 5 now supports IA64 processor
14229 lt_prog_compiler_static_F77='-Bstatic'
14231 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14235 # PIC is the default on this platform
14236 # Common symbols not allowed in MH_DYLIB files
14237 case $cc_basename in
14239 lt_prog_compiler_pic_F77='-qnocommon'
14240 lt_prog_compiler_wl_F77='-Wl,'
14245 mingw* | cygwin* | pw32* | os2*)
14246 # This hack is so that the source file can tell whether it is being
14247 # built for inclusion in a dll (and should export symbols for example).
14248 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14251 hpux9* | hpux10* | hpux11*)
14252 lt_prog_compiler_wl_F77='-Wl,'
14253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14254 # not for PA HP-UX.
14260 lt_prog_compiler_pic_F77='+Z'
14263 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14264 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14267 irix5* | irix6* | nonstopux*)
14268 lt_prog_compiler_wl_F77='-Wl,'
14269 # PIC (with -KPIC) is the default.
14270 lt_prog_compiler_static_F77='-non_shared'
14274 lt_prog_compiler_pic_F77='-KPIC'
14275 lt_prog_compiler_static_F77='-Bstatic'
14278 linux* | k*bsd*-gnu)
14279 case $cc_basename in
14281 lt_prog_compiler_wl_F77='-Wl,'
14282 lt_prog_compiler_pic_F77='-KPIC'
14283 lt_prog_compiler_static_F77='-static'
14285 pgcc* | pgf77* | pgf90* | pgf95*)
14286 # Portland Group compilers (*not* the Pentium gcc compiler,
14287 # which looks to be a dead project)
14288 lt_prog_compiler_wl_F77='-Wl,'
14289 lt_prog_compiler_pic_F77='-fpic'
14290 lt_prog_compiler_static_F77='-Bstatic'
14293 lt_prog_compiler_wl_F77='-Wl,'
14294 # All Alpha code is PIC.
14295 lt_prog_compiler_static_F77='-non_shared'
14298 case `$CC -V 2>&1 | sed 5q` in
14301 lt_prog_compiler_pic_F77='-KPIC'
14302 lt_prog_compiler_static_F77='-Bstatic'
14303 lt_prog_compiler_wl_F77='-Wl,'
14306 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14307 lt_prog_compiler_pic_F77='-KPIC'
14308 lt_prog_compiler_static_F77='-Bstatic'
14309 lt_prog_compiler_wl_F77=''
14316 osf3* | osf4* | osf5*)
14317 lt_prog_compiler_wl_F77='-Wl,'
14318 # All OSF/1 code is PIC.
14319 lt_prog_compiler_static_F77='-non_shared'
14323 lt_prog_compiler_static_F77='-non_shared'
14327 lt_prog_compiler_pic_F77='-KPIC'
14328 lt_prog_compiler_static_F77='-Bstatic'
14329 case $cc_basename in
14330 f77* | f90* | f95*)
14331 lt_prog_compiler_wl_F77='-Qoption ld ';;
14333 lt_prog_compiler_wl_F77='-Wl,';;
14338 lt_prog_compiler_wl_F77='-Qoption ld '
14339 lt_prog_compiler_pic_F77='-PIC'
14340 lt_prog_compiler_static_F77='-Bstatic'
14343 sysv4 | sysv4.2uw2* | sysv4.3*)
14344 lt_prog_compiler_wl_F77='-Wl,'
14345 lt_prog_compiler_pic_F77='-KPIC'
14346 lt_prog_compiler_static_F77='-Bstatic'
14350 if test -d /usr/nec ;then
14351 lt_prog_compiler_pic_F77='-Kconform_pic'
14352 lt_prog_compiler_static_F77='-Bstatic'
14356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14357 lt_prog_compiler_wl_F77='-Wl,'
14358 lt_prog_compiler_pic_F77='-KPIC'
14359 lt_prog_compiler_static_F77='-Bstatic'
14363 lt_prog_compiler_wl_F77='-Wl,'
14364 lt_prog_compiler_can_build_shared_F77=no
14368 lt_prog_compiler_pic_F77='-pic'
14369 lt_prog_compiler_static_F77='-Bstatic'
14373 lt_prog_compiler_can_build_shared_F77=no
14378 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14379 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14382 # Check to make sure the PIC flag actually works.
14384 if test -n "$lt_prog_compiler_pic_F77"; then
14386 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14387 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14388 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 lt_cv_prog_compiler_pic_works_F77=no
14392 ac_outfile=conftest.$ac_objext
14393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14394 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14395 # Insert the option either (1) after the last *FLAGS variable, or
14396 # (2) before a word containing "conftest.", or (3) at the end.
14397 # Note that $ac_compile itself does not contain backslashes and begins
14398 # with a dollar sign (not a hyphen), so the echo should work correctly.
14399 # The option is referenced via a variable to avoid confusing sed.
14400 lt_compile=`echo "$ac_compile" | $SED \
14401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14403 -e 's:$: $lt_compiler_flag:'`
14404 (eval echo "\"\$as_me:14404: $lt_compile\"" >&5)
14405 (eval "$lt_compile" 2>conftest.err)
14407 cat conftest.err >&5
14408 echo "$as_me:14408: \$? = $ac_status" >&5
14409 if (exit $ac_status) && test -s "$ac_outfile"; then
14410 # The compiler can only warn and ignore the option if not recognized
14411 # So say no if there are warnings other than the usual output.
14412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14415 lt_cv_prog_compiler_pic_works_F77=yes
14421 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14422 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14424 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14425 case $lt_prog_compiler_pic_F77 in
14427 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14430 lt_prog_compiler_pic_F77=
14431 lt_prog_compiler_can_build_shared_F77=no
14436 # For platforms which do not support PIC, -DPIC is meaningless:
14438 lt_prog_compiler_pic_F77=
14441 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14446 # Check to make sure the static flag actually works.
14448 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14449 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14450 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14451 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 lt_cv_prog_compiler_static_works_F77=no
14455 save_LDFLAGS="$LDFLAGS"
14456 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14457 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14459 # The linker can only warn and ignore the option if not recognized
14460 # So say no if there are warnings
14461 if test -s conftest.err; then
14462 # Append any errors to the config.log.
14463 cat conftest.err 1>&5
14464 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14466 if diff conftest.exp conftest.er2 >/dev/null; then
14467 lt_cv_prog_compiler_static_works_F77=yes
14470 lt_cv_prog_compiler_static_works_F77=yes
14474 LDFLAGS="$save_LDFLAGS"
14477 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14478 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14480 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14483 lt_prog_compiler_static_F77=
14487 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14488 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14489 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 lt_cv_prog_compiler_c_o_F77=no
14493 $rm -r conftest 2>/dev/null
14497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14499 lt_compiler_flag="-o out/conftest2.$ac_objext"
14500 # Insert the option either (1) after the last *FLAGS variable, or
14501 # (2) before a word containing "conftest.", or (3) at the end.
14502 # Note that $ac_compile itself does not contain backslashes and begins
14503 # with a dollar sign (not a hyphen), so the echo should work correctly.
14504 lt_compile=`echo "$ac_compile" | $SED \
14505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14507 -e 's:$: $lt_compiler_flag:'`
14508 (eval echo "\"\$as_me:14508: $lt_compile\"" >&5)
14509 (eval "$lt_compile" 2>out/conftest.err)
14511 cat out/conftest.err >&5
14512 echo "$as_me:14512: \$? = $ac_status" >&5
14513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14515 # The compiler can only warn and ignore the option if not recognized
14516 # So say no if there are warnings
14517 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14520 lt_cv_prog_compiler_c_o_F77=yes
14525 # SGI C++ compiler will create directory out/ii_files/ for
14526 # template instantiation
14527 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14528 $rm out/* && rmdir out
14534 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14535 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14538 hard_links="nottested"
14539 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14540 # do not overwrite the value of need_locks provided by the user
14541 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14542 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14547 ln conftest.a conftest.b 2>&5 || hard_links=no
14548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14549 { echo "$as_me:$LINENO: result: $hard_links" >&5
14550 echo "${ECHO_T}$hard_links" >&6; }
14551 if test "$hard_links" = no; then
14552 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14553 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14560 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14561 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14564 allow_undefined_flag_F77=
14565 enable_shared_with_static_runtimes_F77=no
14567 archive_expsym_cmds_F77=
14568 old_archive_From_new_cmds_F77=
14569 old_archive_from_expsyms_cmds_F77=
14570 export_dynamic_flag_spec_F77=
14571 whole_archive_flag_spec_F77=
14572 thread_safe_flag_spec_F77=
14573 hardcode_libdir_flag_spec_F77=
14574 hardcode_libdir_flag_spec_ld_F77=
14575 hardcode_libdir_separator_F77=
14576 hardcode_direct_F77=no
14577 hardcode_minus_L_F77=no
14578 hardcode_shlibpath_var_F77=unsupported
14579 link_all_deplibs_F77=unknown
14580 hardcode_automatic_F77=no
14582 module_expsym_cmds_F77=
14583 always_export_symbols_F77=no
14584 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14585 # include_expsyms should be a list of space-separated symbols to be *always*
14586 # included in the symbol list
14587 include_expsyms_F77=
14588 # exclude_expsyms can be an extended regexp of symbols to exclude
14589 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14590 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14591 # as well as any symbol that contains `d'.
14592 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14593 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14594 # platforms (ab)use it in PIC code, but their linkers get confused if
14595 # the symbol is explicitly referenced. Since portable code cannot
14596 # rely on this symbol name, it's probably fine to never include it in
14597 # preloaded symbol tables.
14598 # Exclude shared library initialization/finalization symbols.
14599 extract_expsyms_cmds=
14600 # Just being paranoid about ensuring that cc_basename is set.
14601 for cc_temp in $compiler""; do
14603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14609 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14612 cygwin* | mingw* | pw32*)
14613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14614 # When not using gcc, we currently assume that we are using
14615 # Microsoft Visual C++.
14616 if test "$GCC" != yes; then
14621 # we just hope/assume this is gcc and not c89 (= MSVC++)
14630 if test "$with_gnu_ld" = yes; then
14631 # If archive_cmds runs LD, not CC, wlarc should be empty
14634 # Set some defaults for GNU ld with shared library support. These
14635 # are reset later if shared libraries are not supported. Putting them
14636 # here allows them to be overridden if necessary.
14637 runpath_var=LD_RUN_PATH
14638 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14639 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14640 # ancient GNU ld didn't support --whole-archive et. al.
14641 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14642 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14644 whole_archive_flag_spec_F77=
14646 supports_anon_versioning=no
14647 case `$LD -v 2>/dev/null` in
14648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14651 *\ 2.11.*) ;; # other 2.11 versions
14652 *) supports_anon_versioning=yes ;;
14655 # See if GNU ld supports shared libraries.
14658 # On AIX/PPC, the GNU linker is very broken
14659 if test "$host_cpu" != ia64; then
14663 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14664 *** to be unable to reliably create shared libraries on AIX.
14665 *** Therefore, libtool is disabling shared libraries support. If you
14666 *** really care for shared libraries, you may want to modify your PATH
14667 *** so that a non-GNU linker is found, and then restart.
14674 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)'
14675 hardcode_libdir_flag_spec_F77='-L$libdir'
14676 hardcode_minus_L_F77=yes
14678 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14679 # that the semantics of dynamic libraries on AmigaOS, at least up
14680 # to version 4, is to share data among multiple programs linked
14681 # with the same dynamic library. Since this doesn't match the
14682 # behavior of shared libraries on other platforms, we can't use
14688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14689 allow_undefined_flag_F77=unsupported
14690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14691 # support --undefined. This deserves some investigation. FIXME
14692 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14698 cygwin* | mingw* | pw32*)
14699 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14700 # as there is no search path for DLLs.
14701 hardcode_libdir_flag_spec_F77='-L$libdir'
14702 allow_undefined_flag_F77=unsupported
14703 always_export_symbols_F77=no
14704 enable_shared_with_static_runtimes_F77=yes
14705 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14707 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14708 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14709 # If the export-symbols file already is a .def file (1st line
14710 # is EXPORTS), use it as is; otherwise, prepend...
14711 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14712 cp $export_symbols $output_objdir/$soname.def;
14714 echo EXPORTS > $output_objdir/$soname.def;
14715 cat $export_symbols >> $output_objdir/$soname.def;
14717 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14724 hardcode_direct_F77=no
14725 hardcode_shlibpath_var_F77=no
14726 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14727 export_dynamic_flag_spec_F77='${wl}-E'
14728 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14729 # Instead, shared libraries are loaded at an image base (0x10000000 by
14730 # default) and relocated if they conflict, which is a slow very memory
14731 # consuming and fragmenting process. To avoid this, we pick a random,
14732 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14733 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14734 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'
14735 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'
14738 gnu* | linux* | k*bsd*-gnu)
14739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14741 case $cc_basename,$host_cpu in
14742 pgcc*) # Portland Group C compiler
14743 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'
14744 tmp_addflag=' $pic_flag'
14746 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14747 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'
14748 tmp_addflag=' $pic_flag -Mnomain' ;;
14749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14750 tmp_addflag=' -i_dynamic' ;;
14751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14752 tmp_addflag=' -i_dynamic -nofor_main' ;;
14753 ifc* | ifort*) # Intel Fortran compiler
14754 tmp_addflag=' -nofor_main' ;;
14756 case `$CC -V 2>&1 | sed 5q` in
14757 *Sun\ C*) # Sun C 5.9
14758 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'
14759 tmp_sharedflag='-G' ;;
14760 *Sun\ F*) # Sun Fortran 8.3
14761 tmp_sharedflag='-G' ;;
14763 tmp_sharedflag='-shared' ;;
14765 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14767 if test $supports_anon_versioning = yes; then
14768 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14770 $echo "local: *; };" >> $output_objdir/$libname.ver~
14771 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14773 link_all_deplibs_F77=no
14779 netbsd* | netbsdelf*-gnu)
14780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14781 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14784 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14785 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14790 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14794 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14795 *** create shared libraries on Solaris systems. Therefore, libtool
14796 *** is disabling shared libraries support. We urge you to upgrade GNU
14797 *** binutils to release 2.9.1 or newer. Another option is to modify
14798 *** your PATH or compiler configuration so that the native linker is
14799 *** used, and then restart.
14802 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14803 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14804 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14811 case `$LD -v 2>&1` in
14812 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14816 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14817 *** reliably create shared libraries on SCO systems. Therefore, libtool
14818 *** is disabling shared libraries support. We urge you to upgrade GNU
14819 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14820 *** your PATH or compiler configuration so that the native linker is
14821 *** used, and then restart.
14826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14827 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14829 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14838 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14840 hardcode_direct_F77=yes
14841 hardcode_shlibpath_var_F77=no
14845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14854 if test "$ld_shlibs_F77" = no; then
14856 hardcode_libdir_flag_spec_F77=
14857 export_dynamic_flag_spec_F77=
14858 whole_archive_flag_spec_F77=
14861 # PORTME fill in a description of your system's linker (not GNU ld)
14864 allow_undefined_flag_F77=unsupported
14865 always_export_symbols_F77=yes
14866 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'
14867 # Note: this linker hardcodes the directories in LIBPATH if there
14868 # are no directories specified by -L.
14869 hardcode_minus_L_F77=yes
14870 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14871 # Neither direct hardcoding nor static linking is supported with a
14873 hardcode_direct_F77=unsupported
14878 if test "$host_cpu" = ia64; then
14879 # On IA64, the linker does run time linking by default, so we don't
14880 # have to do anything special.
14881 aix_use_runtimelinking=no
14882 exp_sym_flag='-Bexport'
14885 # If we're using GNU nm, then we don't want the "-C" option.
14886 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14887 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14888 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'
14890 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'
14892 aix_use_runtimelinking=no
14894 # Test if we are trying to use run time linking or normal
14895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14896 # need to do runtime linking.
14897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14898 for ld_flag in $LDFLAGS; do
14899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14900 aix_use_runtimelinking=yes
14907 exp_sym_flag='-bexport'
14908 no_entry_flag='-bnoentry'
14911 # When large executables or shared objects are built, AIX ld can
14912 # have problems creating the table of contents. If linking a library
14913 # or program results in "error TOC overflow" add -mminimal-toc to
14914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14917 archive_cmds_F77=''
14918 hardcode_direct_F77=yes
14919 hardcode_libdir_separator_F77=':'
14920 link_all_deplibs_F77=yes
14922 if test "$GCC" = yes; then
14923 case $host_os in aix4.[012]|aix4.[012].*)
14924 # We only want to do this on AIX 4.2 and lower, the check
14925 # below for broken collect2 doesn't work under 4.3+
14926 collect2name=`${CC} -print-prog-name=collect2`
14927 if test -f "$collect2name" && \
14928 strings "$collect2name" | grep resolve_lib_name >/dev/null
14930 # We have reworked collect2
14933 # We have old collect2
14934 hardcode_direct_F77=unsupported
14935 # It fails to find uninstalled libraries when the uninstalled
14936 # path is not listed in the libpath. Setting hardcode_minus_L
14937 # to unsupported forces relinking
14938 hardcode_minus_L_F77=yes
14939 hardcode_libdir_flag_spec_F77='-L$libdir'
14940 hardcode_libdir_separator_F77=
14944 shared_flag='-shared'
14945 if test "$aix_use_runtimelinking" = yes; then
14946 shared_flag="$shared_flag "'${wl}-G'
14950 if test "$host_cpu" = ia64; then
14951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14952 # chokes on -Wl,-G. The following line is correct:
14955 if test "$aix_use_runtimelinking" = yes; then
14956 shared_flag='${wl}-G'
14958 shared_flag='${wl}-bM:SRE'
14963 # It seems that -bexpall does not export symbols beginning with
14964 # underscore (_), so it is better to generate a list of symbols to export.
14965 always_export_symbols_F77=yes
14966 if test "$aix_use_runtimelinking" = yes; then
14967 # Warning - without using the other runtime loading flags (-brtl),
14968 # -berok will link without error, but may produce a broken library.
14969 allow_undefined_flag_F77='-berok'
14970 # Determine the default libpath from the value encoded in an empty executable.
14971 cat >conftest.$ac_ext <<_ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_f77_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest$ac_exeext &&
14993 $as_test_x conftest$ac_exeext; then
14995 lt_aix_libpath_sed='
14996 /Import File Strings/,/^$/ {
15002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15003 # Check for a 64-bit object if we didn't find anything.
15004 if test -z "$aix_libpath"; then
15005 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015 conftest$ac_exeext conftest.$ac_ext
15016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15018 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15019 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"
15021 if test "$host_cpu" = ia64; then
15022 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15023 allow_undefined_flag_F77="-z nodefs"
15024 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"
15026 # Determine the default libpath from the value encoded in an empty executable.
15027 cat >conftest.$ac_ext <<_ACEOF
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (ac_try="$ac_link"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_link") 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } && {
15046 test -z "$ac_f77_werror_flag" ||
15047 test ! -s conftest.err
15048 } && test -s conftest$ac_exeext &&
15049 $as_test_x conftest$ac_exeext; then
15051 lt_aix_libpath_sed='
15052 /Import File Strings/,/^$/ {
15058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15059 # Check for a 64-bit object if we didn't find anything.
15060 if test -z "$aix_libpath"; then
15061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15071 conftest$ac_exeext conftest.$ac_ext
15072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15074 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15075 # Warning - without using the other run time loading flags,
15076 # -berok will link without error, but may produce a broken library.
15077 no_undefined_flag_F77=' ${wl}-bernotok'
15078 allow_undefined_flag_F77=' ${wl}-berok'
15079 # Exported symbols can be pulled into shared objects from archives
15080 whole_archive_flag_spec_F77='$convenience'
15081 archive_cmds_need_lc_F77=yes
15082 # This is similar to how AIX traditionally builds its shared libraries.
15083 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'
15089 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)'
15090 hardcode_libdir_flag_spec_F77='-L$libdir'
15091 hardcode_minus_L_F77=yes
15092 # see comment about different semantics on the GNU ld section
15097 export_dynamic_flag_spec_F77=-rdynamic
15100 cygwin* | mingw* | pw32*)
15101 # When not using gcc, we currently assume that we are using
15102 # Microsoft Visual C++.
15103 # hardcode_libdir_flag_spec is actually meaningless, as there is
15104 # no search path for DLLs.
15105 hardcode_libdir_flag_spec_F77=' '
15106 allow_undefined_flag_F77=unsupported
15107 # Tell ltmain to make .lib files, not .a files.
15109 # Tell ltmain to make .dll files, not .so files.
15111 # FIXME: Setting linknames here is a bad hack.
15112 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15113 # The linker will automatically build a .lib file if we build a DLL.
15114 old_archive_From_new_cmds_F77='true'
15115 # FIXME: Should let the user specify the lib program.
15116 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15117 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15118 enable_shared_with_static_runtimes_F77=yes
15121 darwin* | rhapsody*)
15123 rhapsody* | darwin1.[012])
15124 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15127 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15128 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15130 case ${MACOSX_DEPLOYMENT_TARGET} in
15132 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15135 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15141 archive_cmds_need_lc_F77=no
15142 hardcode_direct_F77=no
15143 hardcode_automatic_F77=yes
15144 hardcode_shlibpath_var_F77=unsupported
15145 whole_archive_flag_spec_F77=''
15146 link_all_deplibs_F77=yes
15147 if test "$GCC" = yes ; then
15148 output_verbose_link_cmd='echo'
15149 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}"
15150 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15151 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}"
15152 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}"
15154 case $cc_basename in
15156 output_verbose_link_cmd='echo'
15157 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15158 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15159 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15160 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}'
15161 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}'
15171 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15172 hardcode_libdir_flag_spec_F77='-L$libdir'
15173 hardcode_shlibpath_var_F77=no
15180 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15181 # support. Future versions do this automatically, but an explicit c++rt0.o
15182 # does not break anything, and helps significantly (at the cost of a little
15185 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15186 hardcode_libdir_flag_spec_F77='-R$libdir'
15187 hardcode_direct_F77=yes
15188 hardcode_shlibpath_var_F77=no
15191 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15193 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15194 hardcode_direct_F77=yes
15195 hardcode_minus_L_F77=yes
15196 hardcode_shlibpath_var_F77=no
15199 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15200 freebsd* | dragonfly*)
15201 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15202 hardcode_libdir_flag_spec_F77='-R$libdir'
15203 hardcode_direct_F77=yes
15204 hardcode_shlibpath_var_F77=no
15208 if test "$GCC" = yes; then
15209 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'
15211 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'
15213 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15214 hardcode_libdir_separator_F77=:
15215 hardcode_direct_F77=yes
15217 # hardcode_minus_L: Not really in the search PATH,
15218 # but as the default location of the library.
15219 hardcode_minus_L_F77=yes
15220 export_dynamic_flag_spec_F77='${wl}-E'
15224 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15225 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15227 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15229 if test "$with_gnu_ld" = no; then
15230 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15231 hardcode_libdir_separator_F77=:
15233 hardcode_direct_F77=yes
15234 export_dynamic_flag_spec_F77='${wl}-E'
15236 # hardcode_minus_L: Not really in the search PATH,
15237 # but as the default location of the library.
15238 hardcode_minus_L_F77=yes
15243 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15246 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15252 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15258 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15264 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15268 if test "$with_gnu_ld" = no; then
15269 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15270 hardcode_libdir_separator_F77=:
15274 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15275 hardcode_direct_F77=no
15276 hardcode_shlibpath_var_F77=no
15279 hardcode_direct_F77=yes
15280 export_dynamic_flag_spec_F77='${wl}-E'
15282 # hardcode_minus_L: Not really in the search PATH,
15283 # but as the default location of the library.
15284 hardcode_minus_L_F77=yes
15290 irix5* | irix6* | nonstopux*)
15291 if test "$GCC" = yes; then
15292 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'
15294 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'
15295 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15297 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15298 hardcode_libdir_separator_F77=:
15299 link_all_deplibs_F77=yes
15302 netbsd* | netbsdelf*-gnu)
15303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15304 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15306 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15308 hardcode_libdir_flag_spec_F77='-R$libdir'
15309 hardcode_direct_F77=yes
15310 hardcode_shlibpath_var_F77=no
15314 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15315 hardcode_direct_F77=yes
15316 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15317 hardcode_libdir_separator_F77=:
15318 hardcode_shlibpath_var_F77=no
15322 if test -f /usr/libexec/ld.so; then
15323 hardcode_direct_F77=yes
15324 hardcode_shlibpath_var_F77=no
15325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15326 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15327 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15328 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15329 export_dynamic_flag_spec_F77='${wl}-E'
15332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15333 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15334 hardcode_libdir_flag_spec_F77='-R$libdir'
15337 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15338 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15348 hardcode_libdir_flag_spec_F77='-L$libdir'
15349 hardcode_minus_L_F77=yes
15350 allow_undefined_flag_F77=unsupported
15351 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'
15352 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15356 if test "$GCC" = yes; then
15357 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15358 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'
15360 allow_undefined_flag_F77=' -expect_unresolved \*'
15361 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'
15363 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15364 hardcode_libdir_separator_F77=:
15367 osf4* | osf5*) # as osf3* with the addition of -msym flag
15368 if test "$GCC" = yes; then
15369 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15370 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'
15371 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15373 allow_undefined_flag_F77=' -expect_unresolved \*'
15374 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'
15375 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~
15376 $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'
15378 # Both c and cxx compiler support -rpath directly
15379 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15381 hardcode_libdir_separator_F77=:
15385 no_undefined_flag_F77=' -z text'
15386 if test "$GCC" = yes; then
15388 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15389 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15390 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15393 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15394 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15397 hardcode_libdir_flag_spec_F77='-R$libdir'
15398 hardcode_shlibpath_var_F77=no
15400 solaris2.[0-5] | solaris2.[0-5].*) ;;
15402 # The compiler driver will combine and reorder linker options,
15403 # but understands `-z linker_flag'. GCC discards it without `$wl',
15404 # but is careful enough not to reorder.
15405 # Supported since Solaris 2.6 (maybe 2.5.1?)
15406 if test "$GCC" = yes; then
15407 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15409 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15413 link_all_deplibs_F77=yes
15417 if test "x$host_vendor" = xsequent; then
15418 # Use $CC to link under sequent, because it throws in some extra .o
15419 # files that make .init and .fini sections work.
15420 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15422 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_libdir_flag_spec_F77='-L$libdir'
15425 hardcode_direct_F77=yes
15426 hardcode_minus_L_F77=yes
15427 hardcode_shlibpath_var_F77=no
15431 case $host_vendor in
15433 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15434 hardcode_direct_F77=yes # is this really true???
15437 ## LD is ld it makes a PLAMLIB
15438 ## CC just makes a GrossModule.
15439 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15440 reload_cmds_F77='$CC -r -o $output$reload_objs'
15441 hardcode_direct_F77=no
15444 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15448 runpath_var='LD_RUN_PATH'
15449 hardcode_shlibpath_var_F77=no
15453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15454 hardcode_shlibpath_var_F77=no
15455 export_dynamic_flag_spec_F77='-Bexport'
15459 if test -d /usr/nec; then
15460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15461 hardcode_shlibpath_var_F77=no
15462 runpath_var=LD_RUN_PATH
15463 hardcode_runpath_var=yes
15468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15469 no_undefined_flag_F77='${wl}-z,text'
15470 archive_cmds_need_lc_F77=no
15471 hardcode_shlibpath_var_F77=no
15472 runpath_var='LD_RUN_PATH'
15474 if test "$GCC" = yes; then
15475 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15478 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15483 sysv5* | sco3.2v5* | sco5v6*)
15484 # Note: We can NOT use -z defs as we might desire, because we do not
15485 # link with -lc, and that would cause any symbols used from libc to
15486 # always be unresolved, which means just about no library would
15487 # ever link correctly. If we're not using GNU ld we use -z text
15488 # though, which does catch some bad symbols but isn't as heavy-handed
15490 no_undefined_flag_F77='${wl}-z,text'
15491 allow_undefined_flag_F77='${wl}-z,nodefs'
15492 archive_cmds_need_lc_F77=no
15493 hardcode_shlibpath_var_F77=no
15494 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15495 hardcode_libdir_separator_F77=':'
15496 link_all_deplibs_F77=yes
15497 export_dynamic_flag_spec_F77='${wl}-Bexport'
15498 runpath_var='LD_RUN_PATH'
15500 if test "$GCC" = yes; then
15501 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15505 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15511 hardcode_libdir_flag_spec_F77='-L$libdir'
15512 hardcode_shlibpath_var_F77=no
15521 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15522 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15523 test "$ld_shlibs_F77" = no && can_build_shared=no
15526 # Do we need to explicitly link libc?
15528 case "x$archive_cmds_need_lc_F77" in
15530 # Assume -lc should be added
15531 archive_cmds_need_lc_F77=yes
15533 if test "$enable_shared" = yes && test "$GCC" = yes; then
15534 case $archive_cmds_F77 in
15536 # FIXME: we may have to deal with multi-command sequences.
15539 # Test whether the compiler implicitly links with -lc since on some
15540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15541 # to ld, don't add -lc before -lgcc.
15542 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15548 (eval $ac_compile) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } 2>conftest.err; then
15554 libobjs=conftest.$ac_objext
15556 wl=$lt_prog_compiler_wl_F77
15557 pic_flag=$lt_prog_compiler_pic_F77
15563 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15564 allow_undefined_flag_F77=
15565 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15566 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }
15571 archive_cmds_need_lc_F77=no
15573 archive_cmds_need_lc_F77=yes
15575 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15577 cat conftest.err 1>&5
15580 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15581 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15588 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15590 library_names_spec=
15591 libname_spec='lib$name'
15595 postuninstall_cmds=
15599 shlibpath_overrides_runpath=unknown
15601 dynamic_linker="$host_os ld.so"
15602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15604 need_lib_prefix=unknown
15605 hardcode_into_libs=no
15607 # when you set need_version to no, make sure it does not cause -set_version
15608 # flags to be left without arguments
15609 need_version=unknown
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15615 shlibpath_var=LIBPATH
15617 # AIX 3 has no versioning support, so we append a major version to the name.
15618 soname_spec='${libname}${release}${shared_ext}$major'
15625 hardcode_into_libs=yes
15626 if test "$host_cpu" = ia64; then
15627 # AIX 5 supports IA64
15628 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15629 shlibpath_var=LD_LIBRARY_PATH
15631 # With GCC up to 2.95.x, collect2 would create an import file
15632 # for dependence libraries. The import file would start with
15633 # the line `#! .'. This would cause the generated library to
15634 # depend on `.', always an invalid library. This was fixed in
15635 # development snapshots of GCC prior to 3.0.
15637 aix4 | aix4.[01] | aix4.[01].*)
15638 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15640 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15643 can_build_shared=no
15647 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15648 # soname into executable. Probably we can add versioning support to
15649 # collect2, so additional links can be useful in future.
15650 if test "$aix_use_runtimelinking" = yes; then
15651 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15652 # instead of lib<name>.a to let people know that these are not
15653 # typical AIX shared libraries.
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 # We preserve .a as extension for shared libraries through AIX4.2
15657 # and later when we are not doing run time linking.
15658 library_names_spec='${libname}${release}.a $libname.a'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15661 shlibpath_var=LIBPATH
15666 library_names_spec='$libname.ixlibrary $libname.a'
15667 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15668 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'
15672 library_names_spec='${libname}${shared_ext}'
15673 dynamic_linker="$host_os ld.so"
15674 shlibpath_var=LIBRARY_PATH
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15686 # the default ld.so.conf also contains /usr/contrib/lib and
15687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15688 # libtool to hard-code these into programs
15691 cygwin* | mingw* | pw32*)
15692 version_type=windows
15697 case $GCC,$host_os in
15698 yes,cygwin* | yes,mingw* | yes,pw32*)
15699 library_names_spec='$libname.dll.a'
15700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15701 postinstall_cmds='base_file=`basename \${file}`~
15702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15703 dldir=$destdir/`dirname \$dlpath`~
15704 test -d \$dldir || mkdir -p \$dldir~
15705 $install_prog $dir/$dlname \$dldir/$dlname~
15706 chmod a+x \$dldir/$dlname'
15707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15708 dlpath=$dir/\$dldll~
15710 shlibpath_overrides_runpath=yes
15714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15716 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15719 # MinGW DLLs use traditional 'lib' prefix
15720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15722 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15723 # It is most probably a Windows format PATH printed by
15724 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15725 # path with ; separators, and with drive letters. We can handle the
15726 # drive letters (cygwin fileutils understands them), so leave them,
15727 # especially as we might pass files found there to a mingw objdump,
15728 # which wouldn't understand a cygwinified path. Ahh.
15729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15735 # pw32 DLLs use 'pw' prefix rather than 'lib'
15736 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15742 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15745 dynamic_linker='Win32 ld.exe'
15746 # FIXME: first we should search . and the directory the executable is in
15750 darwin* | rhapsody*)
15751 dynamic_linker="$host_os dyld"
15752 version_type=darwin
15755 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15756 soname_spec='${libname}${release}${major}$shared_ext'
15757 shlibpath_overrides_runpath=yes
15758 shlibpath_var=DYLD_LIBRARY_PATH
15759 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15761 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 shlibpath_var=LD_LIBRARY_PATH
15777 freebsd* | dragonfly*)
15778 # DragonFly does not have aout. When/if they implement a new
15779 # versioning mechanism, adjust this.
15780 if test -x /usr/bin/objformat; then
15781 objformat=`/usr/bin/objformat`
15784 freebsd[123]*) objformat=aout ;;
15785 *) objformat=elf ;;
15788 version_type=freebsd-$objformat
15789 case $version_type in
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15800 shlibpath_var=LD_LIBRARY_PATH
15803 shlibpath_overrides_runpath=yes
15805 freebsd3.[01]* | freebsdelf3.[01]*)
15806 shlibpath_overrides_runpath=yes
15807 hardcode_into_libs=yes
15809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15811 shlibpath_overrides_runpath=no
15812 hardcode_into_libs=yes
15814 *) # from 4.6 on, and DragonFly
15815 shlibpath_overrides_runpath=yes
15816 hardcode_into_libs=yes
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 hardcode_into_libs=yes
15831 hpux9* | hpux10* | hpux11*)
15832 # Give a soname corresponding to the major version so that dld.sl refuses to
15833 # link against other versions.
15840 hardcode_into_libs=yes
15841 dynamic_linker="$host_os dld.so"
15842 shlibpath_var=LD_LIBRARY_PATH
15843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 if test "X$HPUX_IA64_MODE" = X32; then
15847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15855 hardcode_into_libs=yes
15856 dynamic_linker="$host_os dld.sl"
15857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15866 dynamic_linker="$host_os dld.sl"
15867 shlibpath_var=SHLIB_PATH
15868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15873 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15874 postinstall_cmds='chmod 555 $lib'
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=no
15886 hardcode_into_libs=yes
15889 irix5* | irix6* | nonstopux*)
15891 nonstopux*) version_type=nonstopux ;;
15893 if test "$lt_cv_prog_gnu_ld" = yes; then
15901 soname_spec='${libname}${release}${shared_ext}$major'
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15904 irix5* | nonstopux*)
15905 libsuff= shlibsuff=
15908 case $LD in # libtool.m4 will add one of these switches to LD
15909 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15910 libsuff= shlibsuff= libmagic=32-bit;;
15911 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15912 libsuff=32 shlibsuff=N32 libmagic=N32;;
15913 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15914 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15915 *) libsuff= shlibsuff= libmagic=never-match;;
15919 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15920 shlibpath_overrides_runpath=no
15921 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15922 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15923 hardcode_into_libs=yes
15926 # No shared lib support for Linux oldld, aout, or coff.
15927 linux*oldld* | linux*aout* | linux*coff*)
15931 # This must be Linux ELF.
15932 linux* | k*bsd*-gnu)
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 shlibpath_overrides_runpath=no
15941 # This implies no fast_install, which is unacceptable.
15942 # Some rework will be needed to allow for fast_install
15943 # before this can be enabled.
15944 hardcode_into_libs=yes
15946 # Append ld.so.conf contents to the search path
15947 if test -f /etc/ld.so.conf; then
15948 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' ' '`
15949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15952 # We used to test for /lib/ld.so.1 and disable shared libraries on
15953 # powerpc, because MkLinux only supported shared libraries with the
15954 # GNU dynamic linker. Since this was broken with cross compilers,
15955 # most powerpc-linux boxes support dynamic linking these days and
15956 # people can always --disable-shared, the test was removed, and we
15957 # assume the GNU/Linux dynamic linker is in use.
15958 dynamic_linker='GNU/Linux ld.so'
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=no
15969 hardcode_into_libs=yes
15970 dynamic_linker='NetBSD ld.elf_so'
15977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15980 dynamic_linker='NetBSD (a.out) ld.so'
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 dynamic_linker='NetBSD ld.elf_so'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15988 hardcode_into_libs=yes
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=yes
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 soname_spec='${libname}${release}${shared_ext}$major'
16004 shlibpath_var=LD_LIBRARY_PATH
16005 shlibpath_overrides_runpath=yes
16010 sys_lib_dlsearch_path_spec="/usr/lib"
16012 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16014 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16015 *) need_version=no ;;
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16022 openbsd2.[89] | openbsd2.[89].*)
16023 shlibpath_overrides_runpath=no
16026 shlibpath_overrides_runpath=yes
16030 shlibpath_overrides_runpath=yes
16035 libname_spec='$name'
16038 library_names_spec='$libname${shared_ext} $libname.a'
16039 dynamic_linker='OS/2 ld.exe'
16040 shlibpath_var=LIBPATH
16043 osf3* | osf4* | osf5*)
16047 soname_spec='${libname}${release}${shared_ext}$major'
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 shlibpath_overrides_runpath=yes
16066 hardcode_into_libs=yes
16067 # ldd complains unless libraries are executable
16068 postinstall_cmds='chmod +x $lib'
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16075 shlibpath_var=LD_LIBRARY_PATH
16076 shlibpath_overrides_runpath=yes
16077 if test "$with_gnu_ld" = yes; then
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 case $host_vendor in
16090 shlibpath_overrides_runpath=no
16092 export_dynamic_flag_spec='${wl}-Blargedynsym'
16093 runpath_var=LD_RUN_PATH
16101 shlibpath_overrides_runpath=no
16102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16108 if test -d /usr/nec ;then
16110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16111 soname_spec='$libname${shared_ext}.$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16117 version_type=freebsd-elf
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16121 soname_spec='${libname}${release}${shared_ext}$major'
16122 shlibpath_var=LD_LIBRARY_PATH
16123 hardcode_into_libs=yes
16124 if test "$with_gnu_ld" = yes; then
16125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16126 shlibpath_overrides_runpath=no
16128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16129 shlibpath_overrides_runpath=yes
16132 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16136 sys_lib_dlsearch_path_spec='/usr/lib'
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 shlibpath_var=LD_LIBRARY_PATH
16150 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16151 echo "${ECHO_T}$dynamic_linker" >&6; }
16152 test "$dynamic_linker" = no && can_build_shared=no
16154 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16160 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16161 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16167 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16170 if test "$GCC" = yes; then
16171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16174 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16176 hardcode_action_F77=
16177 if test -n "$hardcode_libdir_flag_spec_F77" || \
16178 test -n "$runpath_var_F77" || \
16179 test "X$hardcode_automatic_F77" = "Xyes" ; then
16181 # We can hardcode non-existant directories.
16182 if test "$hardcode_direct_F77" != no &&
16183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16184 # have to relink, otherwise we might link with an installed library
16185 # when we should be linking with a yet-to-be-installed one
16186 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16187 test "$hardcode_minus_L_F77" != no; then
16188 # Linking always hardcodes the temporary library directory.
16189 hardcode_action_F77=relink
16191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16192 hardcode_action_F77=immediate
16195 # We cannot hardcode anything, or else we can only hardcode existing
16197 hardcode_action_F77=unsupported
16199 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16200 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16202 if test "$hardcode_action_F77" = relink; then
16203 # Fast installation is not supported
16204 enable_fast_install=no
16205 elif test "$shlibpath_overrides_runpath" = yes ||
16206 test "$enable_shared" = no; then
16207 # Fast installation is not necessary
16208 enable_fast_install=needless
16212 # The else clause should only fire when bootstrapping the
16213 # libtool distribution, otherwise you forgot to ship ltmain.sh
16214 # with your package, and you will get complaints that there are
16215 # no rules to generate ltmain.sh.
16216 if test -f "$ltmain"; then
16217 # See if we are running on zsh, and set the options which allow our commands through
16218 # without removal of \ escapes.
16219 if test -n "${ZSH_VERSION+set}" ; then
16220 setopt NO_GLOB_SUBST
16222 # Now quote all the things that may contain metacharacters while being
16223 # careful not to overquote the AC_SUBSTed values. We take copies of the
16224 # variables and quote the copies for generation of the libtool script.
16225 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16227 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16228 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16229 deplibs_check_method reload_flag reload_cmds need_locks \
16230 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16231 lt_cv_sys_global_symbol_to_c_name_address \
16232 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16233 old_postinstall_cmds old_postuninstall_cmds \
16237 lt_prog_compiler_wl_F77 \
16238 lt_prog_compiler_pic_F77 \
16239 lt_prog_compiler_static_F77 \
16240 lt_prog_compiler_no_builtin_flag_F77 \
16241 export_dynamic_flag_spec_F77 \
16242 thread_safe_flag_spec_F77 \
16243 whole_archive_flag_spec_F77 \
16244 enable_shared_with_static_runtimes_F77 \
16245 old_archive_cmds_F77 \
16246 old_archive_from_new_cmds_F77 \
16247 predep_objects_F77 \
16248 postdep_objects_F77 \
16251 compiler_lib_search_path_F77 \
16252 compiler_lib_search_dirs_F77 \
16254 archive_expsym_cmds_F77 \
16255 postinstall_cmds_F77 \
16256 postuninstall_cmds_F77 \
16257 old_archive_from_expsyms_cmds_F77 \
16258 allow_undefined_flag_F77 \
16259 no_undefined_flag_F77 \
16260 export_symbols_cmds_F77 \
16261 hardcode_libdir_flag_spec_F77 \
16262 hardcode_libdir_flag_spec_ld_F77 \
16263 hardcode_libdir_separator_F77 \
16264 hardcode_automatic_F77 \
16266 module_expsym_cmds_F77 \
16267 lt_cv_prog_compiler_c_o_F77 \
16268 fix_srcfile_path_F77 \
16269 exclude_expsyms_F77 \
16270 include_expsyms_F77; do
16273 old_archive_cmds_F77 | \
16274 old_archive_from_new_cmds_F77 | \
16275 archive_cmds_F77 | \
16276 archive_expsym_cmds_F77 | \
16277 module_cmds_F77 | \
16278 module_expsym_cmds_F77 | \
16279 old_archive_from_expsyms_cmds_F77 | \
16280 export_symbols_cmds_F77 | \
16281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16282 postinstall_cmds | postuninstall_cmds | \
16283 old_postinstall_cmds | old_postuninstall_cmds | \
16284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16285 # Double-quote double-evaled strings.
16286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16295 *'\$0 --fallback-echo"')
16296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16302 cat <<__EOF__ >> "$cfgfile"
16303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16307 # Shell to use when invoking shell scripts.
16310 # Whether or not to build shared libraries.
16311 build_libtool_libs=$enable_shared
16313 # Whether or not to build static libraries.
16314 build_old_libs=$enable_static
16316 # Whether or not to add -lc for building shared libraries.
16317 build_libtool_need_lc=$archive_cmds_need_lc_F77
16319 # Whether or not to disallow shared libs when runtime libs are static
16320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16322 # Whether or not to optimize for fast installation.
16323 fast_install=$enable_fast_install
16326 host_alias=$host_alias
16330 # The build system.
16331 build_alias=$build_alias
16335 # An echo program that does not interpret backslashes.
16340 AR_FLAGS=$lt_AR_FLAGS
16345 # LTCC compiler flags.
16346 LTCFLAGS=$lt_LTCFLAGS
16348 # A language-specific compiler.
16349 CC=$lt_compiler_F77
16351 # Is the compiler the GNU C compiler?
16357 # The linker used to build libraries.
16360 # Whether we need hard or soft links.
16363 # A BSD-compatible nm program.
16366 # A symbol stripping program
16369 # Used to examine libraries when file_magic_cmd begins "file"
16370 MAGIC_CMD=$MAGIC_CMD
16372 # Used on cygwin: DLL creation program.
16375 # Used on cygwin: object dumper.
16378 # Used on cygwin: assembler.
16381 # The name of the directory that contains temporary libtool files.
16384 # How to create reloadable object files.
16385 reload_flag=$lt_reload_flag
16386 reload_cmds=$lt_reload_cmds
16388 # How to pass a linker flag through the compiler.
16389 wl=$lt_lt_prog_compiler_wl_F77
16391 # Object file suffix (normally "o").
16392 objext="$ac_objext"
16394 # Old archive suffix (normally "a").
16397 # Shared library suffix (normally ".so").
16398 shrext_cmds='$shrext_cmds'
16400 # Executable file suffix (normally "").
16403 # Additional compiler flags for building library objects.
16404 pic_flag=$lt_lt_prog_compiler_pic_F77
16407 # What is the maximum length of a command?
16408 max_cmd_len=$lt_cv_sys_max_cmd_len
16410 # Does compiler simultaneously support -c and -o options?
16411 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16413 # Must we lock files when doing compilation?
16414 need_locks=$lt_need_locks
16416 # Do we need the lib prefix for modules?
16417 need_lib_prefix=$need_lib_prefix
16419 # Do we need a version for libraries?
16420 need_version=$need_version
16422 # Whether dlopen is supported.
16423 dlopen_support=$enable_dlopen
16425 # Whether dlopen of programs is supported.
16426 dlopen_self=$enable_dlopen_self
16428 # Whether dlopen of statically linked programs is supported.
16429 dlopen_self_static=$enable_dlopen_self_static
16431 # Compiler flag to prevent dynamic linking.
16432 link_static_flag=$lt_lt_prog_compiler_static_F77
16434 # Compiler flag to turn off builtin functions.
16435 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16437 # Compiler flag to allow reflexive dlopens.
16438 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16440 # Compiler flag to generate shared objects directly from archives.
16441 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16443 # Compiler flag to generate thread-safe objects.
16444 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16446 # Library versioning type.
16447 version_type=$version_type
16449 # Format of library name prefix.
16450 libname_spec=$lt_libname_spec
16452 # List of archive names. First name is the real one, the rest are links.
16453 # The last name is the one that the linker finds with -lNAME.
16454 library_names_spec=$lt_library_names_spec
16456 # The coded name of the library, if different from the real name.
16457 soname_spec=$lt_soname_spec
16459 # Commands used to build and install an old-style archive.
16461 old_archive_cmds=$lt_old_archive_cmds_F77
16462 old_postinstall_cmds=$lt_old_postinstall_cmds
16463 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16465 # Create an old-style archive from a shared archive.
16466 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16468 # Create a temporary old-style archive to link instead of a shared archive.
16469 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16471 # Commands used to build and install a shared archive.
16472 archive_cmds=$lt_archive_cmds_F77
16473 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16474 postinstall_cmds=$lt_postinstall_cmds
16475 postuninstall_cmds=$lt_postuninstall_cmds
16477 # Commands used to build a loadable module (assumed same as above if empty)
16478 module_cmds=$lt_module_cmds_F77
16479 module_expsym_cmds=$lt_module_expsym_cmds_F77
16481 # Commands to strip libraries.
16482 old_striplib=$lt_old_striplib
16483 striplib=$lt_striplib
16485 # Dependencies to place before the objects being linked to create a
16487 predep_objects=$lt_predep_objects_F77
16489 # Dependencies to place after the objects being linked to create a
16491 postdep_objects=$lt_postdep_objects_F77
16493 # Dependencies to place before the objects being linked to create a
16495 predeps=$lt_predeps_F77
16497 # Dependencies to place after the objects being linked to create a
16499 postdeps=$lt_postdeps_F77
16501 # The directories searched by this compiler when creating a shared
16503 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16505 # The library search path used internally by the compiler when linking
16506 # a shared library.
16507 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16509 # Method to check whether dependent libraries are shared objects.
16510 deplibs_check_method=$lt_deplibs_check_method
16512 # Command to use when deplibs_check_method == file_magic.
16513 file_magic_cmd=$lt_file_magic_cmd
16515 # Flag that allows shared libraries with undefined symbols to be built.
16516 allow_undefined_flag=$lt_allow_undefined_flag_F77
16518 # Flag that forces no undefined symbols.
16519 no_undefined_flag=$lt_no_undefined_flag_F77
16521 # Commands used to finish a libtool library installation in a directory.
16522 finish_cmds=$lt_finish_cmds
16524 # Same as above, but a single script fragment to be evaled but not shown.
16525 finish_eval=$lt_finish_eval
16527 # Take the output of nm and produce a listing of raw symbols and C names.
16528 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16530 # Transform the output of nm in a proper C declaration
16531 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16533 # Transform the output of nm in a C name address pair
16534 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16536 # This is the shared library runtime path variable.
16537 runpath_var=$runpath_var
16539 # This is the shared library path variable.
16540 shlibpath_var=$shlibpath_var
16542 # Is shlibpath searched before the hard-coded library search path?
16543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16545 # How to hardcode a shared library path into an executable.
16546 hardcode_action=$hardcode_action_F77
16548 # Whether we should hardcode library paths into libraries.
16549 hardcode_into_libs=$hardcode_into_libs
16551 # Flag to hardcode \$libdir into a binary during linking.
16552 # This must work even if \$libdir does not exist.
16553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16555 # If ld is used when linking, flag to hardcode \$libdir into
16556 # a binary during linking. This must work even if \$libdir does
16558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16560 # Whether we need a single -rpath flag with a separated argument.
16561 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16563 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16564 # resulting binary.
16565 hardcode_direct=$hardcode_direct_F77
16567 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16568 # resulting binary.
16569 hardcode_minus_L=$hardcode_minus_L_F77
16571 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16572 # the resulting binary.
16573 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16575 # Set to yes if building a shared library automatically hardcodes DIR into the library
16576 # and all subsequent libraries and executables linked against it.
16577 hardcode_automatic=$hardcode_automatic_F77
16579 # Variables whose values should be saved in libtool wrapper scripts and
16580 # restored at relink time.
16581 variables_saved_for_relink="$variables_saved_for_relink"
16583 # Whether libtool must link a program against all its dependency libraries.
16584 link_all_deplibs=$link_all_deplibs_F77
16586 # Compile-time system search path for libraries
16587 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16589 # Run-time system search path for libraries
16590 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16592 # Fix the shell variable \$srcfile for the compiler.
16593 fix_srcfile_path=$lt_fix_srcfile_path
16595 # Set to yes if exported symbols are required.
16596 always_export_symbols=$always_export_symbols_F77
16598 # The commands to list exported symbols.
16599 export_symbols_cmds=$lt_export_symbols_cmds_F77
16601 # The commands to extract the exported symbol list from a shared archive.
16602 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16604 # Symbols that should not be listed in the preloaded symbols.
16605 exclude_expsyms=$lt_exclude_expsyms_F77
16607 # Symbols that must always be exported.
16608 include_expsyms=$lt_include_expsyms_F77
16610 # ### END LIBTOOL TAG CONFIG: $tagname
16616 # If there is no Makefile yet, we rely on a make rule to execute
16617 # `config.status --recheck' to rerun these tests and create the
16618 # libtool script then.
16619 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16620 if test -f "$ltmain_in"; then
16621 test -f Makefile && make "$ltmain"
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16640 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16643 # Source file extension for Java test sources.
16646 # Object file extension for compiled Java test sources.
16650 # Code to be used in simple compile tests
16651 lt_simple_compile_test_code="class foo {}"
16653 # Code to be used in simple link tests
16654 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16656 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16658 # If no C compiler was specified, use CC.
16661 # If no C compiler flags were specified, use CFLAGS.
16662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16664 # Allow CC to be a program name with arguments.
16668 # save warnings/boilerplate of simple test code
16669 ac_outfile=conftest.$ac_objext
16670 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16672 _lt_compiler_boilerplate=`cat conftest.err`
16675 ac_outfile=conftest.$ac_objext
16676 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16678 _lt_linker_boilerplate=`cat conftest.err`
16682 # Allow CC to be a program name with arguments.
16687 for cc_temp in $compiler""; do
16689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16698 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16699 archive_cmds_need_lc_GCJ=no
16701 old_archive_cmds_GCJ=$old_archive_cmds
16704 lt_prog_compiler_no_builtin_flag_GCJ=
16706 if test "$GCC" = yes; then
16707 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16710 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16711 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16712 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 lt_cv_prog_compiler_rtti_exceptions=no
16716 ac_outfile=conftest.$ac_objext
16717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16718 lt_compiler_flag="-fno-rtti -fno-exceptions"
16719 # Insert the option either (1) after the last *FLAGS variable, or
16720 # (2) before a word containing "conftest.", or (3) at the end.
16721 # Note that $ac_compile itself does not contain backslashes and begins
16722 # with a dollar sign (not a hyphen), so the echo should work correctly.
16723 # The option is referenced via a variable to avoid confusing sed.
16724 lt_compile=`echo "$ac_compile" | $SED \
16725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16727 -e 's:$: $lt_compiler_flag:'`
16728 (eval echo "\"\$as_me:16728: $lt_compile\"" >&5)
16729 (eval "$lt_compile" 2>conftest.err)
16731 cat conftest.err >&5
16732 echo "$as_me:16732: \$? = $ac_status" >&5
16733 if (exit $ac_status) && test -s "$ac_outfile"; then
16734 # The compiler can only warn and ignore the option if not recognized
16735 # So say no if there are warnings other than the usual output.
16736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16739 lt_cv_prog_compiler_rtti_exceptions=yes
16745 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16746 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16748 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16749 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16756 lt_prog_compiler_wl_GCJ=
16757 lt_prog_compiler_pic_GCJ=
16758 lt_prog_compiler_static_GCJ=
16760 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16761 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16763 if test "$GCC" = yes; then
16764 lt_prog_compiler_wl_GCJ='-Wl,'
16765 lt_prog_compiler_static_GCJ='-static'
16769 # All AIX code is PIC.
16770 if test "$host_cpu" = ia64; then
16771 # AIX 5 now supports IA64 processor
16772 lt_prog_compiler_static_GCJ='-Bstatic'
16777 # FIXME: we need at least 68020 code to build shared libraries, but
16778 # adding the `-m68020' flag to GCC prevents building anything better,
16780 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16783 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16784 # PIC is the default for these OSes.
16787 mingw* | cygwin* | pw32* | os2*)
16788 # This hack is so that the source file can tell whether it is being
16789 # built for inclusion in a dll (and should export symbols for example).
16790 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16791 # (--disable-auto-import) libraries
16795 darwin* | rhapsody*)
16796 # PIC is the default on this platform
16797 # Common symbols not allowed in MH_DYLIB files
16798 lt_prog_compiler_pic_GCJ='-fno-common'
16802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16803 # Instead, we relocate shared libraries at runtime.
16807 # Just because we use GCC doesn't mean we suddenly get shared libraries
16808 # on systems that don't support them.
16809 lt_prog_compiler_can_build_shared_GCJ=no
16814 if test -d /usr/nec; then
16815 lt_prog_compiler_pic_GCJ=-Kconform_pic
16820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16821 # not for PA HP-UX.
16827 lt_prog_compiler_pic_GCJ='-fPIC'
16833 lt_prog_compiler_pic_GCJ='-fPIC'
16837 # PORTME Check for flag to pass linker flags through the system compiler.
16840 lt_prog_compiler_wl_GCJ='-Wl,'
16841 if test "$host_cpu" = ia64; then
16842 # AIX 5 now supports IA64 processor
16843 lt_prog_compiler_static_GCJ='-Bstatic'
16845 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16849 # PIC is the default on this platform
16850 # Common symbols not allowed in MH_DYLIB files
16851 case $cc_basename in
16853 lt_prog_compiler_pic_GCJ='-qnocommon'
16854 lt_prog_compiler_wl_GCJ='-Wl,'
16859 mingw* | cygwin* | pw32* | os2*)
16860 # This hack is so that the source file can tell whether it is being
16861 # built for inclusion in a dll (and should export symbols for example).
16865 hpux9* | hpux10* | hpux11*)
16866 lt_prog_compiler_wl_GCJ='-Wl,'
16867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16868 # not for PA HP-UX.
16874 lt_prog_compiler_pic_GCJ='+Z'
16877 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16878 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16881 irix5* | irix6* | nonstopux*)
16882 lt_prog_compiler_wl_GCJ='-Wl,'
16883 # PIC (with -KPIC) is the default.
16884 lt_prog_compiler_static_GCJ='-non_shared'
16888 lt_prog_compiler_pic_GCJ='-KPIC'
16889 lt_prog_compiler_static_GCJ='-Bstatic'
16892 linux* | k*bsd*-gnu)
16893 case $cc_basename in
16895 lt_prog_compiler_wl_GCJ='-Wl,'
16896 lt_prog_compiler_pic_GCJ='-KPIC'
16897 lt_prog_compiler_static_GCJ='-static'
16899 pgcc* | pgf77* | pgf90* | pgf95*)
16900 # Portland Group compilers (*not* the Pentium gcc compiler,
16901 # which looks to be a dead project)
16902 lt_prog_compiler_wl_GCJ='-Wl,'
16903 lt_prog_compiler_pic_GCJ='-fpic'
16904 lt_prog_compiler_static_GCJ='-Bstatic'
16907 lt_prog_compiler_wl_GCJ='-Wl,'
16908 # All Alpha code is PIC.
16909 lt_prog_compiler_static_GCJ='-non_shared'
16912 case `$CC -V 2>&1 | sed 5q` in
16915 lt_prog_compiler_pic_GCJ='-KPIC'
16916 lt_prog_compiler_static_GCJ='-Bstatic'
16917 lt_prog_compiler_wl_GCJ='-Wl,'
16920 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16921 lt_prog_compiler_pic_GCJ='-KPIC'
16922 lt_prog_compiler_static_GCJ='-Bstatic'
16923 lt_prog_compiler_wl_GCJ=''
16930 osf3* | osf4* | osf5*)
16931 lt_prog_compiler_wl_GCJ='-Wl,'
16932 # All OSF/1 code is PIC.
16933 lt_prog_compiler_static_GCJ='-non_shared'
16937 lt_prog_compiler_static_GCJ='-non_shared'
16941 lt_prog_compiler_pic_GCJ='-KPIC'
16942 lt_prog_compiler_static_GCJ='-Bstatic'
16943 case $cc_basename in
16944 f77* | f90* | f95*)
16945 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16947 lt_prog_compiler_wl_GCJ='-Wl,';;
16952 lt_prog_compiler_wl_GCJ='-Qoption ld '
16953 lt_prog_compiler_pic_GCJ='-PIC'
16954 lt_prog_compiler_static_GCJ='-Bstatic'
16957 sysv4 | sysv4.2uw2* | sysv4.3*)
16958 lt_prog_compiler_wl_GCJ='-Wl,'
16959 lt_prog_compiler_pic_GCJ='-KPIC'
16960 lt_prog_compiler_static_GCJ='-Bstatic'
16964 if test -d /usr/nec ;then
16965 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16966 lt_prog_compiler_static_GCJ='-Bstatic'
16970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16971 lt_prog_compiler_wl_GCJ='-Wl,'
16972 lt_prog_compiler_pic_GCJ='-KPIC'
16973 lt_prog_compiler_static_GCJ='-Bstatic'
16977 lt_prog_compiler_wl_GCJ='-Wl,'
16978 lt_prog_compiler_can_build_shared_GCJ=no
16982 lt_prog_compiler_pic_GCJ='-pic'
16983 lt_prog_compiler_static_GCJ='-Bstatic'
16987 lt_prog_compiler_can_build_shared_GCJ=no
16992 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16993 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16996 # Check to make sure the PIC flag actually works.
16998 if test -n "$lt_prog_compiler_pic_GCJ"; then
17000 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17001 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17002 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17003 echo $ECHO_N "(cached) $ECHO_C" >&6
17005 lt_cv_prog_compiler_pic_works_GCJ=no
17006 ac_outfile=conftest.$ac_objext
17007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17008 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17009 # Insert the option either (1) after the last *FLAGS variable, or
17010 # (2) before a word containing "conftest.", or (3) at the end.
17011 # Note that $ac_compile itself does not contain backslashes and begins
17012 # with a dollar sign (not a hyphen), so the echo should work correctly.
17013 # The option is referenced via a variable to avoid confusing sed.
17014 lt_compile=`echo "$ac_compile" | $SED \
17015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17017 -e 's:$: $lt_compiler_flag:'`
17018 (eval echo "\"\$as_me:17018: $lt_compile\"" >&5)
17019 (eval "$lt_compile" 2>conftest.err)
17021 cat conftest.err >&5
17022 echo "$as_me:17022: \$? = $ac_status" >&5
17023 if (exit $ac_status) && test -s "$ac_outfile"; then
17024 # The compiler can only warn and ignore the option if not recognized
17025 # So say no if there are warnings other than the usual output.
17026 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17029 lt_cv_prog_compiler_pic_works_GCJ=yes
17035 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17036 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17038 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17039 case $lt_prog_compiler_pic_GCJ in
17041 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17044 lt_prog_compiler_pic_GCJ=
17045 lt_prog_compiler_can_build_shared_GCJ=no
17050 # For platforms which do not support PIC, -DPIC is meaningless:
17052 lt_prog_compiler_pic_GCJ=
17055 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17060 # Check to make sure the static flag actually works.
17062 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17063 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17064 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17065 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 lt_cv_prog_compiler_static_works_GCJ=no
17069 save_LDFLAGS="$LDFLAGS"
17070 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17071 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17073 # The linker can only warn and ignore the option if not recognized
17074 # So say no if there are warnings
17075 if test -s conftest.err; then
17076 # Append any errors to the config.log.
17077 cat conftest.err 1>&5
17078 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17080 if diff conftest.exp conftest.er2 >/dev/null; then
17081 lt_cv_prog_compiler_static_works_GCJ=yes
17084 lt_cv_prog_compiler_static_works_GCJ=yes
17088 LDFLAGS="$save_LDFLAGS"
17091 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17092 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17094 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17097 lt_prog_compiler_static_GCJ=
17101 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17103 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 lt_cv_prog_compiler_c_o_GCJ=no
17107 $rm -r conftest 2>/dev/null
17111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17113 lt_compiler_flag="-o out/conftest2.$ac_objext"
17114 # Insert the option either (1) after the last *FLAGS variable, or
17115 # (2) before a word containing "conftest.", or (3) at the end.
17116 # Note that $ac_compile itself does not contain backslashes and begins
17117 # with a dollar sign (not a hyphen), so the echo should work correctly.
17118 lt_compile=`echo "$ac_compile" | $SED \
17119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17121 -e 's:$: $lt_compiler_flag:'`
17122 (eval echo "\"\$as_me:17122: $lt_compile\"" >&5)
17123 (eval "$lt_compile" 2>out/conftest.err)
17125 cat out/conftest.err >&5
17126 echo "$as_me:17126: \$? = $ac_status" >&5
17127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17129 # The compiler can only warn and ignore the option if not recognized
17130 # So say no if there are warnings
17131 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17132 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17133 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17134 lt_cv_prog_compiler_c_o_GCJ=yes
17139 # SGI C++ compiler will create directory out/ii_files/ for
17140 # template instantiation
17141 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17142 $rm out/* && rmdir out
17148 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17152 hard_links="nottested"
17153 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17154 # do not overwrite the value of need_locks provided by the user
17155 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17161 ln conftest.a conftest.b 2>&5 || hard_links=no
17162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17163 { echo "$as_me:$LINENO: result: $hard_links" >&5
17164 echo "${ECHO_T}$hard_links" >&6; }
17165 if test "$hard_links" = no; then
17166 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17174 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17178 allow_undefined_flag_GCJ=
17179 enable_shared_with_static_runtimes_GCJ=no
17181 archive_expsym_cmds_GCJ=
17182 old_archive_From_new_cmds_GCJ=
17183 old_archive_from_expsyms_cmds_GCJ=
17184 export_dynamic_flag_spec_GCJ=
17185 whole_archive_flag_spec_GCJ=
17186 thread_safe_flag_spec_GCJ=
17187 hardcode_libdir_flag_spec_GCJ=
17188 hardcode_libdir_flag_spec_ld_GCJ=
17189 hardcode_libdir_separator_GCJ=
17190 hardcode_direct_GCJ=no
17191 hardcode_minus_L_GCJ=no
17192 hardcode_shlibpath_var_GCJ=unsupported
17193 link_all_deplibs_GCJ=unknown
17194 hardcode_automatic_GCJ=no
17196 module_expsym_cmds_GCJ=
17197 always_export_symbols_GCJ=no
17198 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17199 # include_expsyms should be a list of space-separated symbols to be *always*
17200 # included in the symbol list
17201 include_expsyms_GCJ=
17202 # exclude_expsyms can be an extended regexp of symbols to exclude
17203 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17204 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17205 # as well as any symbol that contains `d'.
17206 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17207 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17208 # platforms (ab)use it in PIC code, but their linkers get confused if
17209 # the symbol is explicitly referenced. Since portable code cannot
17210 # rely on this symbol name, it's probably fine to never include it in
17211 # preloaded symbol tables.
17212 # Exclude shared library initialization/finalization symbols.
17213 extract_expsyms_cmds=
17214 # Just being paranoid about ensuring that cc_basename is set.
17215 for cc_temp in $compiler""; do
17217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17226 cygwin* | mingw* | pw32*)
17227 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17228 # When not using gcc, we currently assume that we are using
17229 # Microsoft Visual C++.
17230 if test "$GCC" != yes; then
17235 # we just hope/assume this is gcc and not c89 (= MSVC++)
17244 if test "$with_gnu_ld" = yes; then
17245 # If archive_cmds runs LD, not CC, wlarc should be empty
17248 # Set some defaults for GNU ld with shared library support. These
17249 # are reset later if shared libraries are not supported. Putting them
17250 # here allows them to be overridden if necessary.
17251 runpath_var=LD_RUN_PATH
17252 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17253 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17254 # ancient GNU ld didn't support --whole-archive et. al.
17255 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17256 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17258 whole_archive_flag_spec_GCJ=
17260 supports_anon_versioning=no
17261 case `$LD -v 2>/dev/null` in
17262 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17263 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17264 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17265 *\ 2.11.*) ;; # other 2.11 versions
17266 *) supports_anon_versioning=yes ;;
17269 # See if GNU ld supports shared libraries.
17272 # On AIX/PPC, the GNU linker is very broken
17273 if test "$host_cpu" != ia64; then
17277 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17278 *** to be unable to reliably create shared libraries on AIX.
17279 *** Therefore, libtool is disabling shared libraries support. If you
17280 *** really care for shared libraries, you may want to modify your PATH
17281 *** so that a non-GNU linker is found, and then restart.
17288 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)'
17289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290 hardcode_minus_L_GCJ=yes
17292 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17293 # that the semantics of dynamic libraries on AmigaOS, at least up
17294 # to version 4, is to share data among multiple programs linked
17295 # with the same dynamic library. Since this doesn't match the
17296 # behavior of shared libraries on other platforms, we can't use
17302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17303 allow_undefined_flag_GCJ=unsupported
17304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17305 # support --undefined. This deserves some investigation. FIXME
17306 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17312 cygwin* | mingw* | pw32*)
17313 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17314 # as there is no search path for DLLs.
17315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17316 allow_undefined_flag_GCJ=unsupported
17317 always_export_symbols_GCJ=no
17318 enable_shared_with_static_runtimes_GCJ=yes
17319 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17321 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17322 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17323 # If the export-symbols file already is a .def file (1st line
17324 # is EXPORTS), use it as is; otherwise, prepend...
17325 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17326 cp $export_symbols $output_objdir/$soname.def;
17328 echo EXPORTS > $output_objdir/$soname.def;
17329 cat $export_symbols >> $output_objdir/$soname.def;
17331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17338 hardcode_direct_GCJ=no
17339 hardcode_shlibpath_var_GCJ=no
17340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17341 export_dynamic_flag_spec_GCJ='${wl}-E'
17342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17343 # Instead, shared libraries are loaded at an image base (0x10000000 by
17344 # default) and relocated if they conflict, which is a slow very memory
17345 # consuming and fragmenting process. To avoid this, we pick a random,
17346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17348 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'
17349 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'
17352 gnu* | linux* | k*bsd*-gnu)
17353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17355 case $cc_basename,$host_cpu in
17356 pgcc*) # Portland Group C compiler
17357 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'
17358 tmp_addflag=' $pic_flag'
17360 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17361 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'
17362 tmp_addflag=' $pic_flag -Mnomain' ;;
17363 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17364 tmp_addflag=' -i_dynamic' ;;
17365 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17366 tmp_addflag=' -i_dynamic -nofor_main' ;;
17367 ifc* | ifort*) # Intel Fortran compiler
17368 tmp_addflag=' -nofor_main' ;;
17370 case `$CC -V 2>&1 | sed 5q` in
17371 *Sun\ C*) # Sun C 5.9
17372 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'
17373 tmp_sharedflag='-G' ;;
17374 *Sun\ F*) # Sun Fortran 8.3
17375 tmp_sharedflag='-G' ;;
17377 tmp_sharedflag='-shared' ;;
17379 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17381 if test $supports_anon_versioning = yes; then
17382 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17384 $echo "local: *; };" >> $output_objdir/$libname.ver~
17385 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17387 link_all_deplibs_GCJ=no
17393 netbsd* | netbsdelf*-gnu)
17394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17395 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17398 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17399 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17404 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17409 *** create shared libraries on Solaris systems. Therefore, libtool
17410 *** is disabling shared libraries support. We urge you to upgrade GNU
17411 *** binutils to release 2.9.1 or newer. Another option is to modify
17412 *** your PATH or compiler configuration so that the native linker is
17413 *** used, and then restart.
17416 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17417 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17418 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17425 case `$LD -v 2>&1` in
17426 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17431 *** reliably create shared libraries on SCO systems. Therefore, libtool
17432 *** is disabling shared libraries support. We urge you to upgrade GNU
17433 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17434 *** your PATH or compiler configuration so that the native linker is
17435 *** used, and then restart.
17440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17441 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17442 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17443 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17452 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_direct_GCJ=yes
17455 hardcode_shlibpath_var_GCJ=no
17459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17468 if test "$ld_shlibs_GCJ" = no; then
17470 hardcode_libdir_flag_spec_GCJ=
17471 export_dynamic_flag_spec_GCJ=
17472 whole_archive_flag_spec_GCJ=
17475 # PORTME fill in a description of your system's linker (not GNU ld)
17478 allow_undefined_flag_GCJ=unsupported
17479 always_export_symbols_GCJ=yes
17480 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'
17481 # Note: this linker hardcodes the directories in LIBPATH if there
17482 # are no directories specified by -L.
17483 hardcode_minus_L_GCJ=yes
17484 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17485 # Neither direct hardcoding nor static linking is supported with a
17487 hardcode_direct_GCJ=unsupported
17492 if test "$host_cpu" = ia64; then
17493 # On IA64, the linker does run time linking by default, so we don't
17494 # have to do anything special.
17495 aix_use_runtimelinking=no
17496 exp_sym_flag='-Bexport'
17499 # If we're using GNU nm, then we don't want the "-C" option.
17500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17501 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17502 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'
17504 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'
17506 aix_use_runtimelinking=no
17508 # Test if we are trying to use run time linking or normal
17509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17510 # need to do runtime linking.
17511 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17512 for ld_flag in $LDFLAGS; do
17513 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17514 aix_use_runtimelinking=yes
17521 exp_sym_flag='-bexport'
17522 no_entry_flag='-bnoentry'
17525 # When large executables or shared objects are built, AIX ld can
17526 # have problems creating the table of contents. If linking a library
17527 # or program results in "error TOC overflow" add -mminimal-toc to
17528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17531 archive_cmds_GCJ=''
17532 hardcode_direct_GCJ=yes
17533 hardcode_libdir_separator_GCJ=':'
17534 link_all_deplibs_GCJ=yes
17536 if test "$GCC" = yes; then
17537 case $host_os in aix4.[012]|aix4.[012].*)
17538 # We only want to do this on AIX 4.2 and lower, the check
17539 # below for broken collect2 doesn't work under 4.3+
17540 collect2name=`${CC} -print-prog-name=collect2`
17541 if test -f "$collect2name" && \
17542 strings "$collect2name" | grep resolve_lib_name >/dev/null
17544 # We have reworked collect2
17547 # We have old collect2
17548 hardcode_direct_GCJ=unsupported
17549 # It fails to find uninstalled libraries when the uninstalled
17550 # path is not listed in the libpath. Setting hardcode_minus_L
17551 # to unsupported forces relinking
17552 hardcode_minus_L_GCJ=yes
17553 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17554 hardcode_libdir_separator_GCJ=
17558 shared_flag='-shared'
17559 if test "$aix_use_runtimelinking" = yes; then
17560 shared_flag="$shared_flag "'${wl}-G'
17564 if test "$host_cpu" = ia64; then
17565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17566 # chokes on -Wl,-G. The following line is correct:
17569 if test "$aix_use_runtimelinking" = yes; then
17570 shared_flag='${wl}-G'
17572 shared_flag='${wl}-bM:SRE'
17577 # It seems that -bexpall does not export symbols beginning with
17578 # underscore (_), so it is better to generate a list of symbols to export.
17579 always_export_symbols_GCJ=yes
17580 if test "$aix_use_runtimelinking" = yes; then
17581 # Warning - without using the other runtime loading flags (-brtl),
17582 # -berok will link without error, but may produce a broken library.
17583 allow_undefined_flag_GCJ='-berok'
17584 # Determine the default libpath from the value encoded in an empty executable.
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } && {
17614 test -z "$ac_c_werror_flag" ||
17615 test ! -s conftest.err
17616 } && test -s conftest$ac_exeext &&
17617 $as_test_x conftest$ac_exeext; then
17619 lt_aix_libpath_sed='
17620 /Import File Strings/,/^$/ {
17626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17627 # Check for a 64-bit object if we didn't find anything.
17628 if test -z "$aix_libpath"; then
17629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17639 conftest$ac_exeext conftest.$ac_ext
17640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17642 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17643 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"
17645 if test "$host_cpu" = ia64; then
17646 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17647 allow_undefined_flag_GCJ="-z nodefs"
17648 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"
17650 # Determine the default libpath from the value encoded in an empty executable.
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17666 rm -f conftest.$ac_objext conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_link") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1 >conftest.err
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest$ac_exeext &&
17683 $as_test_x conftest$ac_exeext; then
17685 lt_aix_libpath_sed='
17686 /Import File Strings/,/^$/ {
17692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17693 # Check for a 64-bit object if we didn't find anything.
17694 if test -z "$aix_libpath"; then
17695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17705 conftest$ac_exeext conftest.$ac_ext
17706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17708 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17709 # Warning - without using the other run time loading flags,
17710 # -berok will link without error, but may produce a broken library.
17711 no_undefined_flag_GCJ=' ${wl}-bernotok'
17712 allow_undefined_flag_GCJ=' ${wl}-berok'
17713 # Exported symbols can be pulled into shared objects from archives
17714 whole_archive_flag_spec_GCJ='$convenience'
17715 archive_cmds_need_lc_GCJ=yes
17716 # This is similar to how AIX traditionally builds its shared libraries.
17717 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'
17723 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)'
17724 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17725 hardcode_minus_L_GCJ=yes
17726 # see comment about different semantics on the GNU ld section
17731 export_dynamic_flag_spec_GCJ=-rdynamic
17734 cygwin* | mingw* | pw32*)
17735 # When not using gcc, we currently assume that we are using
17736 # Microsoft Visual C++.
17737 # hardcode_libdir_flag_spec is actually meaningless, as there is
17738 # no search path for DLLs.
17739 hardcode_libdir_flag_spec_GCJ=' '
17740 allow_undefined_flag_GCJ=unsupported
17741 # Tell ltmain to make .lib files, not .a files.
17743 # Tell ltmain to make .dll files, not .so files.
17745 # FIXME: Setting linknames here is a bad hack.
17746 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17747 # The linker will automatically build a .lib file if we build a DLL.
17748 old_archive_From_new_cmds_GCJ='true'
17749 # FIXME: Should let the user specify the lib program.
17750 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17751 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17752 enable_shared_with_static_runtimes_GCJ=yes
17755 darwin* | rhapsody*)
17757 rhapsody* | darwin1.[012])
17758 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17761 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17762 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17764 case ${MACOSX_DEPLOYMENT_TARGET} in
17766 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17769 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17775 archive_cmds_need_lc_GCJ=no
17776 hardcode_direct_GCJ=no
17777 hardcode_automatic_GCJ=yes
17778 hardcode_shlibpath_var_GCJ=unsupported
17779 whole_archive_flag_spec_GCJ=''
17780 link_all_deplibs_GCJ=yes
17781 if test "$GCC" = yes ; then
17782 output_verbose_link_cmd='echo'
17783 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}"
17784 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17785 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}"
17786 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}"
17788 case $cc_basename in
17790 output_verbose_link_cmd='echo'
17791 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17792 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17793 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17794 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}'
17795 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}'
17805 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17807 hardcode_shlibpath_var_GCJ=no
17814 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17815 # support. Future versions do this automatically, but an explicit c++rt0.o
17816 # does not break anything, and helps significantly (at the cost of a little
17819 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17820 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17821 hardcode_direct_GCJ=yes
17822 hardcode_shlibpath_var_GCJ=no
17825 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17827 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17828 hardcode_direct_GCJ=yes
17829 hardcode_minus_L_GCJ=yes
17830 hardcode_shlibpath_var_GCJ=no
17833 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17834 freebsd* | dragonfly*)
17835 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17836 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17837 hardcode_direct_GCJ=yes
17838 hardcode_shlibpath_var_GCJ=no
17842 if test "$GCC" = yes; then
17843 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'
17845 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'
17847 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17848 hardcode_libdir_separator_GCJ=:
17849 hardcode_direct_GCJ=yes
17851 # hardcode_minus_L: Not really in the search PATH,
17852 # but as the default location of the library.
17853 hardcode_minus_L_GCJ=yes
17854 export_dynamic_flag_spec_GCJ='${wl}-E'
17858 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17859 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17861 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17863 if test "$with_gnu_ld" = no; then
17864 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17865 hardcode_libdir_separator_GCJ=:
17867 hardcode_direct_GCJ=yes
17868 export_dynamic_flag_spec_GCJ='${wl}-E'
17870 # hardcode_minus_L: Not really in the search PATH,
17871 # but as the default location of the library.
17872 hardcode_minus_L_GCJ=yes
17877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17880 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17883 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17886 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17892 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17895 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17898 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17902 if test "$with_gnu_ld" = no; then
17903 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17904 hardcode_libdir_separator_GCJ=:
17908 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17909 hardcode_direct_GCJ=no
17910 hardcode_shlibpath_var_GCJ=no
17913 hardcode_direct_GCJ=yes
17914 export_dynamic_flag_spec_GCJ='${wl}-E'
17916 # hardcode_minus_L: Not really in the search PATH,
17917 # but as the default location of the library.
17918 hardcode_minus_L_GCJ=yes
17924 irix5* | irix6* | nonstopux*)
17925 if test "$GCC" = yes; then
17926 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'
17928 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'
17929 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17931 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17932 hardcode_libdir_separator_GCJ=:
17933 link_all_deplibs_GCJ=yes
17936 netbsd* | netbsdelf*-gnu)
17937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17938 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17940 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17942 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17943 hardcode_direct_GCJ=yes
17944 hardcode_shlibpath_var_GCJ=no
17948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17949 hardcode_direct_GCJ=yes
17950 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17951 hardcode_libdir_separator_GCJ=:
17952 hardcode_shlibpath_var_GCJ=no
17956 if test -f /usr/libexec/ld.so; then
17957 hardcode_direct_GCJ=yes
17958 hardcode_shlibpath_var_GCJ=no
17959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17960 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17961 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17963 export_dynamic_flag_spec_GCJ='${wl}-E'
17966 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17967 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17968 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17971 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17982 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17983 hardcode_minus_L_GCJ=yes
17984 allow_undefined_flag_GCJ=unsupported
17985 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'
17986 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17990 if test "$GCC" = yes; then
17991 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17992 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'
17994 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17995 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'
17997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17998 hardcode_libdir_separator_GCJ=:
18001 osf4* | osf5*) # as osf3* with the addition of -msym flag
18002 if test "$GCC" = yes; then
18003 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18004 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'
18005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18007 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18008 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'
18009 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~
18010 $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'
18012 # Both c and cxx compiler support -rpath directly
18013 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18015 hardcode_libdir_separator_GCJ=:
18019 no_undefined_flag_GCJ=' -z text'
18020 if test "$GCC" = yes; then
18022 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18023 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18024 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18027 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18028 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18029 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18031 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18032 hardcode_shlibpath_var_GCJ=no
18034 solaris2.[0-5] | solaris2.[0-5].*) ;;
18036 # The compiler driver will combine and reorder linker options,
18037 # but understands `-z linker_flag'. GCC discards it without `$wl',
18038 # but is careful enough not to reorder.
18039 # Supported since Solaris 2.6 (maybe 2.5.1?)
18040 if test "$GCC" = yes; then
18041 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18043 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18047 link_all_deplibs_GCJ=yes
18051 if test "x$host_vendor" = xsequent; then
18052 # Use $CC to link under sequent, because it throws in some extra .o
18053 # files that make .init and .fini sections work.
18054 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18056 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18059 hardcode_direct_GCJ=yes
18060 hardcode_minus_L_GCJ=yes
18061 hardcode_shlibpath_var_GCJ=no
18065 case $host_vendor in
18067 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18068 hardcode_direct_GCJ=yes # is this really true???
18071 ## LD is ld it makes a PLAMLIB
18072 ## CC just makes a GrossModule.
18073 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18074 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18075 hardcode_direct_GCJ=no
18078 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18079 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18082 runpath_var='LD_RUN_PATH'
18083 hardcode_shlibpath_var_GCJ=no
18087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088 hardcode_shlibpath_var_GCJ=no
18089 export_dynamic_flag_spec_GCJ='-Bexport'
18093 if test -d /usr/nec; then
18094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095 hardcode_shlibpath_var_GCJ=no
18096 runpath_var=LD_RUN_PATH
18097 hardcode_runpath_var=yes
18102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18103 no_undefined_flag_GCJ='${wl}-z,text'
18104 archive_cmds_need_lc_GCJ=no
18105 hardcode_shlibpath_var_GCJ=no
18106 runpath_var='LD_RUN_PATH'
18108 if test "$GCC" = yes; then
18109 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18110 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18113 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18117 sysv5* | sco3.2v5* | sco5v6*)
18118 # Note: We can NOT use -z defs as we might desire, because we do not
18119 # link with -lc, and that would cause any symbols used from libc to
18120 # always be unresolved, which means just about no library would
18121 # ever link correctly. If we're not using GNU ld we use -z text
18122 # though, which does catch some bad symbols but isn't as heavy-handed
18124 no_undefined_flag_GCJ='${wl}-z,text'
18125 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18126 archive_cmds_need_lc_GCJ=no
18127 hardcode_shlibpath_var_GCJ=no
18128 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18129 hardcode_libdir_separator_GCJ=':'
18130 link_all_deplibs_GCJ=yes
18131 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18132 runpath_var='LD_RUN_PATH'
18134 if test "$GCC" = yes; then
18135 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18136 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18139 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18146 hardcode_shlibpath_var_GCJ=no
18155 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18156 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18157 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18160 # Do we need to explicitly link libc?
18162 case "x$archive_cmds_need_lc_GCJ" in
18164 # Assume -lc should be added
18165 archive_cmds_need_lc_GCJ=yes
18167 if test "$enable_shared" = yes && test "$GCC" = yes; then
18168 case $archive_cmds_GCJ in
18170 # FIXME: we may have to deal with multi-command sequences.
18173 # Test whether the compiler implicitly links with -lc since on some
18174 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18175 # to ld, don't add -lc before -lgcc.
18176 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18177 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18182 (eval $ac_compile) 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } 2>conftest.err; then
18188 libobjs=conftest.$ac_objext
18190 wl=$lt_prog_compiler_wl_GCJ
18191 pic_flag=$lt_prog_compiler_pic_GCJ
18197 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18198 allow_undefined_flag_GCJ=
18199 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18200 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }
18205 archive_cmds_need_lc_GCJ=no
18207 archive_cmds_need_lc_GCJ=yes
18209 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18211 cat conftest.err 1>&5
18214 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18215 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18222 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18223 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18224 library_names_spec=
18225 libname_spec='lib$name'
18229 postuninstall_cmds=
18233 shlibpath_overrides_runpath=unknown
18235 dynamic_linker="$host_os ld.so"
18236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18238 need_lib_prefix=unknown
18239 hardcode_into_libs=no
18241 # when you set need_version to no, make sure it does not cause -set_version
18242 # flags to be left without arguments
18243 need_version=unknown
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18249 shlibpath_var=LIBPATH
18251 # AIX 3 has no versioning support, so we append a major version to the name.
18252 soname_spec='${libname}${release}${shared_ext}$major'
18259 hardcode_into_libs=yes
18260 if test "$host_cpu" = ia64; then
18261 # AIX 5 supports IA64
18262 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18263 shlibpath_var=LD_LIBRARY_PATH
18265 # With GCC up to 2.95.x, collect2 would create an import file
18266 # for dependence libraries. The import file would start with
18267 # the line `#! .'. This would cause the generated library to
18268 # depend on `.', always an invalid library. This was fixed in
18269 # development snapshots of GCC prior to 3.0.
18271 aix4 | aix4.[01] | aix4.[01].*)
18272 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18274 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18277 can_build_shared=no
18281 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18282 # soname into executable. Probably we can add versioning support to
18283 # collect2, so additional links can be useful in future.
18284 if test "$aix_use_runtimelinking" = yes; then
18285 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18286 # instead of lib<name>.a to let people know that these are not
18287 # typical AIX shared libraries.
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18290 # We preserve .a as extension for shared libraries through AIX4.2
18291 # and later when we are not doing run time linking.
18292 library_names_spec='${libname}${release}.a $libname.a'
18293 soname_spec='${libname}${release}${shared_ext}$major'
18295 shlibpath_var=LIBPATH
18300 library_names_spec='$libname.ixlibrary $libname.a'
18301 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18302 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'
18306 library_names_spec='${libname}${shared_ext}'
18307 dynamic_linker="$host_os ld.so"
18308 shlibpath_var=LIBRARY_PATH
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18317 shlibpath_var=LD_LIBRARY_PATH
18318 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18319 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18320 # the default ld.so.conf also contains /usr/contrib/lib and
18321 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18322 # libtool to hard-code these into programs
18325 cygwin* | mingw* | pw32*)
18326 version_type=windows
18331 case $GCC,$host_os in
18332 yes,cygwin* | yes,mingw* | yes,pw32*)
18333 library_names_spec='$libname.dll.a'
18334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18335 postinstall_cmds='base_file=`basename \${file}`~
18336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18337 dldir=$destdir/`dirname \$dlpath`~
18338 test -d \$dldir || mkdir -p \$dldir~
18339 $install_prog $dir/$dlname \$dldir/$dlname~
18340 chmod a+x \$dldir/$dlname'
18341 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18342 dlpath=$dir/\$dldll~
18344 shlibpath_overrides_runpath=yes
18348 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18349 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18350 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18353 # MinGW DLLs use traditional 'lib' prefix
18354 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18355 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18356 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18357 # It is most probably a Windows format PATH printed by
18358 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18359 # path with ; separators, and with drive letters. We can handle the
18360 # drive letters (cygwin fileutils understands them), so leave them,
18361 # especially as we might pass files found there to a mingw objdump,
18362 # which wouldn't understand a cygwinified path. Ahh.
18363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18369 # pw32 DLLs use 'pw' prefix rather than 'lib'
18370 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18376 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18379 dynamic_linker='Win32 ld.exe'
18380 # FIXME: first we should search . and the directory the executable is in
18384 darwin* | rhapsody*)
18385 dynamic_linker="$host_os dyld"
18386 version_type=darwin
18389 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18390 soname_spec='${libname}${release}${major}$shared_ext'
18391 shlibpath_overrides_runpath=yes
18392 shlibpath_var=DYLD_LIBRARY_PATH
18393 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18395 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18403 soname_spec='${libname}${release}${shared_ext}$major'
18404 shlibpath_var=LD_LIBRARY_PATH
18411 freebsd* | dragonfly*)
18412 # DragonFly does not have aout. When/if they implement a new
18413 # versioning mechanism, adjust this.
18414 if test -x /usr/bin/objformat; then
18415 objformat=`/usr/bin/objformat`
18418 freebsd[123]*) objformat=aout ;;
18419 *) objformat=elf ;;
18422 version_type=freebsd-$objformat
18423 case $version_type in
18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18434 shlibpath_var=LD_LIBRARY_PATH
18437 shlibpath_overrides_runpath=yes
18439 freebsd3.[01]* | freebsdelf3.[01]*)
18440 shlibpath_overrides_runpath=yes
18441 hardcode_into_libs=yes
18443 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18444 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18445 shlibpath_overrides_runpath=no
18446 hardcode_into_libs=yes
18448 *) # from 4.6 on, and DragonFly
18449 shlibpath_overrides_runpath=yes
18450 hardcode_into_libs=yes
18459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18460 soname_spec='${libname}${release}${shared_ext}$major'
18461 shlibpath_var=LD_LIBRARY_PATH
18462 hardcode_into_libs=yes
18465 hpux9* | hpux10* | hpux11*)
18466 # Give a soname corresponding to the major version so that dld.sl refuses to
18467 # link against other versions.
18474 hardcode_into_libs=yes
18475 dynamic_linker="$host_os dld.so"
18476 shlibpath_var=LD_LIBRARY_PATH
18477 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18479 soname_spec='${libname}${release}${shared_ext}$major'
18480 if test "X$HPUX_IA64_MODE" = X32; then
18481 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18483 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18489 hardcode_into_libs=yes
18490 dynamic_linker="$host_os dld.sl"
18491 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494 soname_spec='${libname}${release}${shared_ext}$major'
18495 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18500 dynamic_linker="$host_os dld.sl"
18501 shlibpath_var=SHLIB_PATH
18502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504 soname_spec='${libname}${release}${shared_ext}$major'
18507 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18508 postinstall_cmds='chmod 555 $lib'
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18516 soname_spec='${libname}${release}${shared_ext}$major'
18517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18518 shlibpath_var=LD_LIBRARY_PATH
18519 shlibpath_overrides_runpath=no
18520 hardcode_into_libs=yes
18523 irix5* | irix6* | nonstopux*)
18525 nonstopux*) version_type=nonstopux ;;
18527 if test "$lt_cv_prog_gnu_ld" = yes; then
18535 soname_spec='${libname}${release}${shared_ext}$major'
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18538 irix5* | nonstopux*)
18539 libsuff= shlibsuff=
18542 case $LD in # libtool.m4 will add one of these switches to LD
18543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18544 libsuff= shlibsuff= libmagic=32-bit;;
18545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18546 libsuff=32 shlibsuff=N32 libmagic=N32;;
18547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18549 *) libsuff= shlibsuff= libmagic=never-match;;
18553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18554 shlibpath_overrides_runpath=no
18555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18557 hardcode_into_libs=yes
18560 # No shared lib support for Linux oldld, aout, or coff.
18561 linux*oldld* | linux*aout* | linux*coff*)
18565 # This must be Linux ELF.
18566 linux* | k*bsd*-gnu)
18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571 soname_spec='${libname}${release}${shared_ext}$major'
18572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18573 shlibpath_var=LD_LIBRARY_PATH
18574 shlibpath_overrides_runpath=no
18575 # This implies no fast_install, which is unacceptable.
18576 # Some rework will be needed to allow for fast_install
18577 # before this can be enabled.
18578 hardcode_into_libs=yes
18580 # Append ld.so.conf contents to the search path
18581 if test -f /etc/ld.so.conf; then
18582 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' ' '`
18583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18586 # We used to test for /lib/ld.so.1 and disable shared libraries on
18587 # powerpc, because MkLinux only supported shared libraries with the
18588 # GNU dynamic linker. Since this was broken with cross compilers,
18589 # most powerpc-linux boxes support dynamic linking these days and
18590 # people can always --disable-shared, the test was removed, and we
18591 # assume the GNU/Linux dynamic linker is in use.
18592 dynamic_linker='GNU/Linux ld.so'
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18600 soname_spec='${libname}${release}${shared_ext}$major'
18601 shlibpath_var=LD_LIBRARY_PATH
18602 shlibpath_overrides_runpath=no
18603 hardcode_into_libs=yes
18604 dynamic_linker='NetBSD ld.elf_so'
18611 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18614 dynamic_linker='NetBSD (a.out) ld.so'
18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18617 soname_spec='${libname}${release}${shared_ext}$major'
18618 dynamic_linker='NetBSD ld.elf_so'
18620 shlibpath_var=LD_LIBRARY_PATH
18621 shlibpath_overrides_runpath=yes
18622 hardcode_into_libs=yes
18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 shlibpath_overrides_runpath=yes
18636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637 soname_spec='${libname}${release}${shared_ext}$major'
18638 shlibpath_var=LD_LIBRARY_PATH
18639 shlibpath_overrides_runpath=yes
18644 sys_lib_dlsearch_path_spec="/usr/lib"
18646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18649 *) need_version=no ;;
18651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18653 shlibpath_var=LD_LIBRARY_PATH
18654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18656 openbsd2.[89] | openbsd2.[89].*)
18657 shlibpath_overrides_runpath=no
18660 shlibpath_overrides_runpath=yes
18664 shlibpath_overrides_runpath=yes
18669 libname_spec='$name'
18672 library_names_spec='$libname${shared_ext} $libname.a'
18673 dynamic_linker='OS/2 ld.exe'
18674 shlibpath_var=LIBPATH
18677 osf3* | osf4* | osf5*)
18681 soname_spec='${libname}${release}${shared_ext}$major'
18682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18683 shlibpath_var=LD_LIBRARY_PATH
18684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697 soname_spec='${libname}${release}${shared_ext}$major'
18698 shlibpath_var=LD_LIBRARY_PATH
18699 shlibpath_overrides_runpath=yes
18700 hardcode_into_libs=yes
18701 # ldd complains unless libraries are executable
18702 postinstall_cmds='chmod +x $lib'
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18709 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=yes
18711 if test "$with_gnu_ld" = yes; then
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720 soname_spec='${libname}${release}${shared_ext}$major'
18721 shlibpath_var=LD_LIBRARY_PATH
18722 case $host_vendor in
18724 shlibpath_overrides_runpath=no
18726 export_dynamic_flag_spec='${wl}-Blargedynsym'
18727 runpath_var=LD_RUN_PATH
18735 shlibpath_overrides_runpath=no
18736 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18742 if test -d /usr/nec ;then
18744 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18745 soname_spec='$libname${shared_ext}.$major'
18746 shlibpath_var=LD_LIBRARY_PATH
18750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18751 version_type=freebsd-elf
18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18755 soname_spec='${libname}${release}${shared_ext}$major'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 hardcode_into_libs=yes
18758 if test "$with_gnu_ld" = yes; then
18759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18760 shlibpath_overrides_runpath=no
18762 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18763 shlibpath_overrides_runpath=yes
18766 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18770 sys_lib_dlsearch_path_spec='/usr/lib'
18775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776 soname_spec='${libname}${release}${shared_ext}$major'
18777 shlibpath_var=LD_LIBRARY_PATH
18784 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18785 echo "${ECHO_T}$dynamic_linker" >&6; }
18786 test "$dynamic_linker" = no && can_build_shared=no
18788 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18794 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18795 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18804 if test "$GCC" = yes; then
18805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18808 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18810 hardcode_action_GCJ=
18811 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18812 test -n "$runpath_var_GCJ" || \
18813 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18815 # We can hardcode non-existant directories.
18816 if test "$hardcode_direct_GCJ" != no &&
18817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18818 # have to relink, otherwise we might link with an installed library
18819 # when we should be linking with a yet-to-be-installed one
18820 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18821 test "$hardcode_minus_L_GCJ" != no; then
18822 # Linking always hardcodes the temporary library directory.
18823 hardcode_action_GCJ=relink
18825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18826 hardcode_action_GCJ=immediate
18829 # We cannot hardcode anything, or else we can only hardcode existing
18831 hardcode_action_GCJ=unsupported
18833 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18834 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18836 if test "$hardcode_action_GCJ" = relink; then
18837 # Fast installation is not supported
18838 enable_fast_install=no
18839 elif test "$shlibpath_overrides_runpath" = yes ||
18840 test "$enable_shared" = no; then
18841 # Fast installation is not necessary
18842 enable_fast_install=needless
18846 # The else clause should only fire when bootstrapping the
18847 # libtool distribution, otherwise you forgot to ship ltmain.sh
18848 # with your package, and you will get complaints that there are
18849 # no rules to generate ltmain.sh.
18850 if test -f "$ltmain"; then
18851 # See if we are running on zsh, and set the options which allow our commands through
18852 # without removal of \ escapes.
18853 if test -n "${ZSH_VERSION+set}" ; then
18854 setopt NO_GLOB_SUBST
18856 # Now quote all the things that may contain metacharacters while being
18857 # careful not to overquote the AC_SUBSTed values. We take copies of the
18858 # variables and quote the copies for generation of the libtool script.
18859 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18861 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18862 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18863 deplibs_check_method reload_flag reload_cmds need_locks \
18864 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18865 lt_cv_sys_global_symbol_to_c_name_address \
18866 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18867 old_postinstall_cmds old_postuninstall_cmds \
18871 lt_prog_compiler_wl_GCJ \
18872 lt_prog_compiler_pic_GCJ \
18873 lt_prog_compiler_static_GCJ \
18874 lt_prog_compiler_no_builtin_flag_GCJ \
18875 export_dynamic_flag_spec_GCJ \
18876 thread_safe_flag_spec_GCJ \
18877 whole_archive_flag_spec_GCJ \
18878 enable_shared_with_static_runtimes_GCJ \
18879 old_archive_cmds_GCJ \
18880 old_archive_from_new_cmds_GCJ \
18881 predep_objects_GCJ \
18882 postdep_objects_GCJ \
18885 compiler_lib_search_path_GCJ \
18886 compiler_lib_search_dirs_GCJ \
18888 archive_expsym_cmds_GCJ \
18889 postinstall_cmds_GCJ \
18890 postuninstall_cmds_GCJ \
18891 old_archive_from_expsyms_cmds_GCJ \
18892 allow_undefined_flag_GCJ \
18893 no_undefined_flag_GCJ \
18894 export_symbols_cmds_GCJ \
18895 hardcode_libdir_flag_spec_GCJ \
18896 hardcode_libdir_flag_spec_ld_GCJ \
18897 hardcode_libdir_separator_GCJ \
18898 hardcode_automatic_GCJ \
18900 module_expsym_cmds_GCJ \
18901 lt_cv_prog_compiler_c_o_GCJ \
18902 fix_srcfile_path_GCJ \
18903 exclude_expsyms_GCJ \
18904 include_expsyms_GCJ; do
18907 old_archive_cmds_GCJ | \
18908 old_archive_from_new_cmds_GCJ | \
18909 archive_cmds_GCJ | \
18910 archive_expsym_cmds_GCJ | \
18911 module_cmds_GCJ | \
18912 module_expsym_cmds_GCJ | \
18913 old_archive_from_expsyms_cmds_GCJ | \
18914 export_symbols_cmds_GCJ | \
18915 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18916 postinstall_cmds | postuninstall_cmds | \
18917 old_postinstall_cmds | old_postuninstall_cmds | \
18918 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18919 # Double-quote double-evaled strings.
18920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18929 *'\$0 --fallback-echo"')
18930 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18936 cat <<__EOF__ >> "$cfgfile"
18937 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18939 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18941 # Shell to use when invoking shell scripts.
18944 # Whether or not to build shared libraries.
18945 build_libtool_libs=$enable_shared
18947 # Whether or not to build static libraries.
18948 build_old_libs=$enable_static
18950 # Whether or not to add -lc for building shared libraries.
18951 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18953 # Whether or not to disallow shared libs when runtime libs are static
18954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18956 # Whether or not to optimize for fast installation.
18957 fast_install=$enable_fast_install
18960 host_alias=$host_alias
18964 # The build system.
18965 build_alias=$build_alias
18969 # An echo program that does not interpret backslashes.
18974 AR_FLAGS=$lt_AR_FLAGS
18979 # LTCC compiler flags.
18980 LTCFLAGS=$lt_LTCFLAGS
18982 # A language-specific compiler.
18983 CC=$lt_compiler_GCJ
18985 # Is the compiler the GNU C compiler?
18991 # The linker used to build libraries.
18994 # Whether we need hard or soft links.
18997 # A BSD-compatible nm program.
19000 # A symbol stripping program
19003 # Used to examine libraries when file_magic_cmd begins "file"
19004 MAGIC_CMD=$MAGIC_CMD
19006 # Used on cygwin: DLL creation program.
19009 # Used on cygwin: object dumper.
19012 # Used on cygwin: assembler.
19015 # The name of the directory that contains temporary libtool files.
19018 # How to create reloadable object files.
19019 reload_flag=$lt_reload_flag
19020 reload_cmds=$lt_reload_cmds
19022 # How to pass a linker flag through the compiler.
19023 wl=$lt_lt_prog_compiler_wl_GCJ
19025 # Object file suffix (normally "o").
19026 objext="$ac_objext"
19028 # Old archive suffix (normally "a").
19031 # Shared library suffix (normally ".so").
19032 shrext_cmds='$shrext_cmds'
19034 # Executable file suffix (normally "").
19037 # Additional compiler flags for building library objects.
19038 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19041 # What is the maximum length of a command?
19042 max_cmd_len=$lt_cv_sys_max_cmd_len
19044 # Does compiler simultaneously support -c and -o options?
19045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19047 # Must we lock files when doing compilation?
19048 need_locks=$lt_need_locks
19050 # Do we need the lib prefix for modules?
19051 need_lib_prefix=$need_lib_prefix
19053 # Do we need a version for libraries?
19054 need_version=$need_version
19056 # Whether dlopen is supported.
19057 dlopen_support=$enable_dlopen
19059 # Whether dlopen of programs is supported.
19060 dlopen_self=$enable_dlopen_self
19062 # Whether dlopen of statically linked programs is supported.
19063 dlopen_self_static=$enable_dlopen_self_static
19065 # Compiler flag to prevent dynamic linking.
19066 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19068 # Compiler flag to turn off builtin functions.
19069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19071 # Compiler flag to allow reflexive dlopens.
19072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19074 # Compiler flag to generate shared objects directly from archives.
19075 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19077 # Compiler flag to generate thread-safe objects.
19078 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19080 # Library versioning type.
19081 version_type=$version_type
19083 # Format of library name prefix.
19084 libname_spec=$lt_libname_spec
19086 # List of archive names. First name is the real one, the rest are links.
19087 # The last name is the one that the linker finds with -lNAME.
19088 library_names_spec=$lt_library_names_spec
19090 # The coded name of the library, if different from the real name.
19091 soname_spec=$lt_soname_spec
19093 # Commands used to build and install an old-style archive.
19095 old_archive_cmds=$lt_old_archive_cmds_GCJ
19096 old_postinstall_cmds=$lt_old_postinstall_cmds
19097 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19099 # Create an old-style archive from a shared archive.
19100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19102 # Create a temporary old-style archive to link instead of a shared archive.
19103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19105 # Commands used to build and install a shared archive.
19106 archive_cmds=$lt_archive_cmds_GCJ
19107 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19108 postinstall_cmds=$lt_postinstall_cmds
19109 postuninstall_cmds=$lt_postuninstall_cmds
19111 # Commands used to build a loadable module (assumed same as above if empty)
19112 module_cmds=$lt_module_cmds_GCJ
19113 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19115 # Commands to strip libraries.
19116 old_striplib=$lt_old_striplib
19117 striplib=$lt_striplib
19119 # Dependencies to place before the objects being linked to create a
19121 predep_objects=$lt_predep_objects_GCJ
19123 # Dependencies to place after the objects being linked to create a
19125 postdep_objects=$lt_postdep_objects_GCJ
19127 # Dependencies to place before the objects being linked to create a
19129 predeps=$lt_predeps_GCJ
19131 # Dependencies to place after the objects being linked to create a
19133 postdeps=$lt_postdeps_GCJ
19135 # The directories searched by this compiler when creating a shared
19137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19139 # The library search path used internally by the compiler when linking
19140 # a shared library.
19141 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19143 # Method to check whether dependent libraries are shared objects.
19144 deplibs_check_method=$lt_deplibs_check_method
19146 # Command to use when deplibs_check_method == file_magic.
19147 file_magic_cmd=$lt_file_magic_cmd
19149 # Flag that allows shared libraries with undefined symbols to be built.
19150 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19152 # Flag that forces no undefined symbols.
19153 no_undefined_flag=$lt_no_undefined_flag_GCJ
19155 # Commands used to finish a libtool library installation in a directory.
19156 finish_cmds=$lt_finish_cmds
19158 # Same as above, but a single script fragment to be evaled but not shown.
19159 finish_eval=$lt_finish_eval
19161 # Take the output of nm and produce a listing of raw symbols and C names.
19162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19164 # Transform the output of nm in a proper C declaration
19165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19167 # Transform the output of nm in a C name address pair
19168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19170 # This is the shared library runtime path variable.
19171 runpath_var=$runpath_var
19173 # This is the shared library path variable.
19174 shlibpath_var=$shlibpath_var
19176 # Is shlibpath searched before the hard-coded library search path?
19177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19179 # How to hardcode a shared library path into an executable.
19180 hardcode_action=$hardcode_action_GCJ
19182 # Whether we should hardcode library paths into libraries.
19183 hardcode_into_libs=$hardcode_into_libs
19185 # Flag to hardcode \$libdir into a binary during linking.
19186 # This must work even if \$libdir does not exist.
19187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19189 # If ld is used when linking, flag to hardcode \$libdir into
19190 # a binary during linking. This must work even if \$libdir does
19192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19194 # Whether we need a single -rpath flag with a separated argument.
19195 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19198 # resulting binary.
19199 hardcode_direct=$hardcode_direct_GCJ
19201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19202 # resulting binary.
19203 hardcode_minus_L=$hardcode_minus_L_GCJ
19205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19206 # the resulting binary.
19207 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19209 # Set to yes if building a shared library automatically hardcodes DIR into the library
19210 # and all subsequent libraries and executables linked against it.
19211 hardcode_automatic=$hardcode_automatic_GCJ
19213 # Variables whose values should be saved in libtool wrapper scripts and
19214 # restored at relink time.
19215 variables_saved_for_relink="$variables_saved_for_relink"
19217 # Whether libtool must link a program against all its dependency libraries.
19218 link_all_deplibs=$link_all_deplibs_GCJ
19220 # Compile-time system search path for libraries
19221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19223 # Run-time system search path for libraries
19224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19226 # Fix the shell variable \$srcfile for the compiler.
19227 fix_srcfile_path=$lt_fix_srcfile_path
19229 # Set to yes if exported symbols are required.
19230 always_export_symbols=$always_export_symbols_GCJ
19232 # The commands to list exported symbols.
19233 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19235 # The commands to extract the exported symbol list from a shared archive.
19236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19238 # Symbols that should not be listed in the preloaded symbols.
19239 exclude_expsyms=$lt_exclude_expsyms_GCJ
19241 # Symbols that must always be exported.
19242 include_expsyms=$lt_include_expsyms_GCJ
19244 # ### END LIBTOOL TAG CONFIG: $tagname
19250 # If there is no Makefile yet, we rely on a make rule to execute
19251 # `config.status --recheck' to rerun these tests and create the
19252 # libtool script then.
19253 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19254 if test -f "$ltmain_in"; then
19255 test -f Makefile && make "$ltmain"
19261 ac_cpp='$CPP $CPPFLAGS'
19262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19276 # Source file extension for RC test sources.
19279 # Object file extension for compiled RC test sources.
19283 # Code to be used in simple compile tests
19284 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19286 # Code to be used in simple link tests
19287 lt_simple_link_test_code="$lt_simple_compile_test_code"
19289 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19291 # If no C compiler was specified, use CC.
19294 # If no C compiler flags were specified, use CFLAGS.
19295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19297 # Allow CC to be a program name with arguments.
19301 # save warnings/boilerplate of simple test code
19302 ac_outfile=conftest.$ac_objext
19303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19305 _lt_compiler_boilerplate=`cat conftest.err`
19308 ac_outfile=conftest.$ac_objext
19309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19311 _lt_linker_boilerplate=`cat conftest.err`
19315 # Allow CC to be a program name with arguments.
19320 for cc_temp in $compiler""; do
19322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19328 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19330 lt_cv_prog_compiler_c_o_RC=yes
19332 # The else clause should only fire when bootstrapping the
19333 # libtool distribution, otherwise you forgot to ship ltmain.sh
19334 # with your package, and you will get complaints that there are
19335 # no rules to generate ltmain.sh.
19336 if test -f "$ltmain"; then
19337 # See if we are running on zsh, and set the options which allow our commands through
19338 # without removal of \ escapes.
19339 if test -n "${ZSH_VERSION+set}" ; then
19340 setopt NO_GLOB_SUBST
19342 # Now quote all the things that may contain metacharacters while being
19343 # careful not to overquote the AC_SUBSTed values. We take copies of the
19344 # variables and quote the copies for generation of the libtool script.
19345 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19347 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19348 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19349 deplibs_check_method reload_flag reload_cmds need_locks \
19350 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19351 lt_cv_sys_global_symbol_to_c_name_address \
19352 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19353 old_postinstall_cmds old_postuninstall_cmds \
19357 lt_prog_compiler_wl_RC \
19358 lt_prog_compiler_pic_RC \
19359 lt_prog_compiler_static_RC \
19360 lt_prog_compiler_no_builtin_flag_RC \
19361 export_dynamic_flag_spec_RC \
19362 thread_safe_flag_spec_RC \
19363 whole_archive_flag_spec_RC \
19364 enable_shared_with_static_runtimes_RC \
19365 old_archive_cmds_RC \
19366 old_archive_from_new_cmds_RC \
19367 predep_objects_RC \
19368 postdep_objects_RC \
19371 compiler_lib_search_path_RC \
19372 compiler_lib_search_dirs_RC \
19374 archive_expsym_cmds_RC \
19375 postinstall_cmds_RC \
19376 postuninstall_cmds_RC \
19377 old_archive_from_expsyms_cmds_RC \
19378 allow_undefined_flag_RC \
19379 no_undefined_flag_RC \
19380 export_symbols_cmds_RC \
19381 hardcode_libdir_flag_spec_RC \
19382 hardcode_libdir_flag_spec_ld_RC \
19383 hardcode_libdir_separator_RC \
19384 hardcode_automatic_RC \
19386 module_expsym_cmds_RC \
19387 lt_cv_prog_compiler_c_o_RC \
19388 fix_srcfile_path_RC \
19389 exclude_expsyms_RC \
19390 include_expsyms_RC; do
19393 old_archive_cmds_RC | \
19394 old_archive_from_new_cmds_RC | \
19395 archive_cmds_RC | \
19396 archive_expsym_cmds_RC | \
19398 module_expsym_cmds_RC | \
19399 old_archive_from_expsyms_cmds_RC | \
19400 export_symbols_cmds_RC | \
19401 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19402 postinstall_cmds | postuninstall_cmds | \
19403 old_postinstall_cmds | old_postuninstall_cmds | \
19404 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19405 # Double-quote double-evaled strings.
19406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19415 *'\$0 --fallback-echo"')
19416 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19422 cat <<__EOF__ >> "$cfgfile"
19423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19427 # Shell to use when invoking shell scripts.
19430 # Whether or not to build shared libraries.
19431 build_libtool_libs=$enable_shared
19433 # Whether or not to build static libraries.
19434 build_old_libs=$enable_static
19436 # Whether or not to add -lc for building shared libraries.
19437 build_libtool_need_lc=$archive_cmds_need_lc_RC
19439 # Whether or not to disallow shared libs when runtime libs are static
19440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19442 # Whether or not to optimize for fast installation.
19443 fast_install=$enable_fast_install
19446 host_alias=$host_alias
19450 # The build system.
19451 build_alias=$build_alias
19455 # An echo program that does not interpret backslashes.
19460 AR_FLAGS=$lt_AR_FLAGS
19465 # LTCC compiler flags.
19466 LTCFLAGS=$lt_LTCFLAGS
19468 # A language-specific compiler.
19471 # Is the compiler the GNU C compiler?
19477 # The linker used to build libraries.
19480 # Whether we need hard or soft links.
19483 # A BSD-compatible nm program.
19486 # A symbol stripping program
19489 # Used to examine libraries when file_magic_cmd begins "file"
19490 MAGIC_CMD=$MAGIC_CMD
19492 # Used on cygwin: DLL creation program.
19495 # Used on cygwin: object dumper.
19498 # Used on cygwin: assembler.
19501 # The name of the directory that contains temporary libtool files.
19504 # How to create reloadable object files.
19505 reload_flag=$lt_reload_flag
19506 reload_cmds=$lt_reload_cmds
19508 # How to pass a linker flag through the compiler.
19509 wl=$lt_lt_prog_compiler_wl_RC
19511 # Object file suffix (normally "o").
19512 objext="$ac_objext"
19514 # Old archive suffix (normally "a").
19517 # Shared library suffix (normally ".so").
19518 shrext_cmds='$shrext_cmds'
19520 # Executable file suffix (normally "").
19523 # Additional compiler flags for building library objects.
19524 pic_flag=$lt_lt_prog_compiler_pic_RC
19527 # What is the maximum length of a command?
19528 max_cmd_len=$lt_cv_sys_max_cmd_len
19530 # Does compiler simultaneously support -c and -o options?
19531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19533 # Must we lock files when doing compilation?
19534 need_locks=$lt_need_locks
19536 # Do we need the lib prefix for modules?
19537 need_lib_prefix=$need_lib_prefix
19539 # Do we need a version for libraries?
19540 need_version=$need_version
19542 # Whether dlopen is supported.
19543 dlopen_support=$enable_dlopen
19545 # Whether dlopen of programs is supported.
19546 dlopen_self=$enable_dlopen_self
19548 # Whether dlopen of statically linked programs is supported.
19549 dlopen_self_static=$enable_dlopen_self_static
19551 # Compiler flag to prevent dynamic linking.
19552 link_static_flag=$lt_lt_prog_compiler_static_RC
19554 # Compiler flag to turn off builtin functions.
19555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19557 # Compiler flag to allow reflexive dlopens.
19558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19560 # Compiler flag to generate shared objects directly from archives.
19561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19563 # Compiler flag to generate thread-safe objects.
19564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19566 # Library versioning type.
19567 version_type=$version_type
19569 # Format of library name prefix.
19570 libname_spec=$lt_libname_spec
19572 # List of archive names. First name is the real one, the rest are links.
19573 # The last name is the one that the linker finds with -lNAME.
19574 library_names_spec=$lt_library_names_spec
19576 # The coded name of the library, if different from the real name.
19577 soname_spec=$lt_soname_spec
19579 # Commands used to build and install an old-style archive.
19581 old_archive_cmds=$lt_old_archive_cmds_RC
19582 old_postinstall_cmds=$lt_old_postinstall_cmds
19583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19585 # Create an old-style archive from a shared archive.
19586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19588 # Create a temporary old-style archive to link instead of a shared archive.
19589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19591 # Commands used to build and install a shared archive.
19592 archive_cmds=$lt_archive_cmds_RC
19593 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19594 postinstall_cmds=$lt_postinstall_cmds
19595 postuninstall_cmds=$lt_postuninstall_cmds
19597 # Commands used to build a loadable module (assumed same as above if empty)
19598 module_cmds=$lt_module_cmds_RC
19599 module_expsym_cmds=$lt_module_expsym_cmds_RC
19601 # Commands to strip libraries.
19602 old_striplib=$lt_old_striplib
19603 striplib=$lt_striplib
19605 # Dependencies to place before the objects being linked to create a
19607 predep_objects=$lt_predep_objects_RC
19609 # Dependencies to place after the objects being linked to create a
19611 postdep_objects=$lt_postdep_objects_RC
19613 # Dependencies to place before the objects being linked to create a
19615 predeps=$lt_predeps_RC
19617 # Dependencies to place after the objects being linked to create a
19619 postdeps=$lt_postdeps_RC
19621 # The directories searched by this compiler when creating a shared
19623 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19625 # The library search path used internally by the compiler when linking
19626 # a shared library.
19627 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19629 # Method to check whether dependent libraries are shared objects.
19630 deplibs_check_method=$lt_deplibs_check_method
19632 # Command to use when deplibs_check_method == file_magic.
19633 file_magic_cmd=$lt_file_magic_cmd
19635 # Flag that allows shared libraries with undefined symbols to be built.
19636 allow_undefined_flag=$lt_allow_undefined_flag_RC
19638 # Flag that forces no undefined symbols.
19639 no_undefined_flag=$lt_no_undefined_flag_RC
19641 # Commands used to finish a libtool library installation in a directory.
19642 finish_cmds=$lt_finish_cmds
19644 # Same as above, but a single script fragment to be evaled but not shown.
19645 finish_eval=$lt_finish_eval
19647 # Take the output of nm and produce a listing of raw symbols and C names.
19648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19650 # Transform the output of nm in a proper C declaration
19651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19653 # Transform the output of nm in a C name address pair
19654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19656 # This is the shared library runtime path variable.
19657 runpath_var=$runpath_var
19659 # This is the shared library path variable.
19660 shlibpath_var=$shlibpath_var
19662 # Is shlibpath searched before the hard-coded library search path?
19663 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19665 # How to hardcode a shared library path into an executable.
19666 hardcode_action=$hardcode_action_RC
19668 # Whether we should hardcode library paths into libraries.
19669 hardcode_into_libs=$hardcode_into_libs
19671 # Flag to hardcode \$libdir into a binary during linking.
19672 # This must work even if \$libdir does not exist.
19673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19675 # If ld is used when linking, flag to hardcode \$libdir into
19676 # a binary during linking. This must work even if \$libdir does
19678 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19680 # Whether we need a single -rpath flag with a separated argument.
19681 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19683 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19684 # resulting binary.
19685 hardcode_direct=$hardcode_direct_RC
19687 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19688 # resulting binary.
19689 hardcode_minus_L=$hardcode_minus_L_RC
19691 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19692 # the resulting binary.
19693 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19695 # Set to yes if building a shared library automatically hardcodes DIR into the library
19696 # and all subsequent libraries and executables linked against it.
19697 hardcode_automatic=$hardcode_automatic_RC
19699 # Variables whose values should be saved in libtool wrapper scripts and
19700 # restored at relink time.
19701 variables_saved_for_relink="$variables_saved_for_relink"
19703 # Whether libtool must link a program against all its dependency libraries.
19704 link_all_deplibs=$link_all_deplibs_RC
19706 # Compile-time system search path for libraries
19707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19709 # Run-time system search path for libraries
19710 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19712 # Fix the shell variable \$srcfile for the compiler.
19713 fix_srcfile_path=$lt_fix_srcfile_path
19715 # Set to yes if exported symbols are required.
19716 always_export_symbols=$always_export_symbols_RC
19718 # The commands to list exported symbols.
19719 export_symbols_cmds=$lt_export_symbols_cmds_RC
19721 # The commands to extract the exported symbol list from a shared archive.
19722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19724 # Symbols that should not be listed in the preloaded symbols.
19725 exclude_expsyms=$lt_exclude_expsyms_RC
19727 # Symbols that must always be exported.
19728 include_expsyms=$lt_include_expsyms_RC
19730 # ### END LIBTOOL TAG CONFIG: $tagname
19736 # If there is no Makefile yet, we rely on a make rule to execute
19737 # `config.status --recheck' to rerun these tests and create the
19738 # libtool script then.
19739 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19740 if test -f "$ltmain_in"; then
19741 test -f Makefile && make "$ltmain"
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19757 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19758 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19759 { (exit 1); exit 1; }; }
19763 # Append the new tag name to the list of available tags.
19764 if test -n "$tagname" ; then
19765 available_tags="$available_tags $tagname"
19771 # Now substitute the updated list of available tags.
19772 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19773 mv "${ofile}T" "$ofile"
19777 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19778 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19779 { (exit 1); exit 1; }; }
19785 # This can be used to rebuild libtool when needed
19786 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19788 # Always use our own libtool.
19789 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19791 # Prevent multiple expansion
19814 # Check whether some low-level functions/files are available
19815 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19817 if test "${ac_cv_header_stdc+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 cat >conftest.$ac_ext <<_ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19826 #include <stdlib.h>
19827 #include <stdarg.h>
19828 #include <string.h>
19839 rm -f conftest.$ac_objext
19840 if { (ac_try="$ac_compile"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_compile") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && {
19853 test -z "$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19855 } && test -s conftest.$ac_objext; then
19856 ac_cv_header_stdc=yes
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 ac_cv_header_stdc=no
19864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19866 if test $ac_cv_header_stdc = yes; then
19867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19868 cat >conftest.$ac_ext <<_ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 #include <string.h>
19877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19878 $EGREP "memchr" >/dev/null 2>&1; then
19881 ac_cv_header_stdc=no
19887 if test $ac_cv_header_stdc = yes; then
19888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19889 cat >conftest.$ac_ext <<_ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19895 #include <stdlib.h>
19898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19899 $EGREP "free" >/dev/null 2>&1; then
19902 ac_cv_header_stdc=no
19908 if test $ac_cv_header_stdc = yes; then
19909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19910 if test "$cross_compiling" = yes; then
19913 cat >conftest.$ac_ext <<_ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19920 #include <stdlib.h>
19921 #if ((' ' & 0x0FF) == 0x020)
19922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19925 # define ISLOWER(c) \
19926 (('a' <= (c) && (c) <= 'i') \
19927 || ('j' <= (c) && (c) <= 'r') \
19928 || ('s' <= (c) && (c) <= 'z'))
19929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19937 for (i = 0; i < 256; i++)
19938 if (XOR (islower (i), ISLOWER (i))
19939 || toupper (i) != TOUPPER (i))
19944 rm -f conftest$ac_exeext
19945 if { (ac_try="$ac_link"
19946 case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_link") 2>&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19955 { (case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_try") 2>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; }; then
19966 echo "$as_me: program exited with status $ac_status" >&5
19967 echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19970 ( exit $ac_status )
19971 ac_cv_header_stdc=no
19973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19979 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19980 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19981 if test $ac_cv_header_stdc = yes; then
19983 cat >>confdefs.h <<\_ACEOF
19984 #define STDC_HEADERS 1
19990 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19991 if test "${ac_cv_header_stdint_h+set}" = set; then
19992 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19993 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19994 if test "${ac_cv_header_stdint_h+set}" = set; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19998 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20000 # Is the header compilable?
20001 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
20002 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 $ac_includes_default
20010 #include <stdint.h>
20012 rm -f conftest.$ac_objext
20013 if { (ac_try="$ac_compile"
20014 case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_compile") 2>conftest.er1
20021 grep -v '^ *+' conftest.er1 >conftest.err
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && {
20026 test -z "$ac_c_werror_flag" ||
20027 test ! -s conftest.err
20028 } && test -s conftest.$ac_objext; then
20029 ac_header_compiler=yes
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ac_header_compiler=no
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20039 echo "${ECHO_T}$ac_header_compiler" >&6; }
20041 # Is the header present?
20042 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20043 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20044 cat >conftest.$ac_ext <<_ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 #include <stdint.h>
20052 if { (ac_try="$ac_cpp conftest.$ac_ext"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20060 grep -v '^ *+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } >/dev/null && {
20065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20068 ac_header_preproc=yes
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20073 ac_header_preproc=no
20076 rm -f conftest.err conftest.$ac_ext
20077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20078 echo "${ECHO_T}$ac_header_preproc" >&6; }
20080 # So? What about this header?
20081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20083 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20084 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20086 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20087 ac_header_preproc=yes
20090 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20091 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20092 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20093 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20094 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20095 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20096 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20097 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20099 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20101 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20103 ## ------------------------------------ ##
20104 ## Report this to opensource@google.com ##
20105 ## ------------------------------------ ##
20107 ) | sed "s/^/$as_me: WARNING: /" >&2
20110 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20111 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20112 if test "${ac_cv_header_stdint_h+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 ac_cv_header_stdint_h=$ac_header_preproc
20117 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20118 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20121 if test $ac_cv_header_stdint_h = yes; then
20122 ac_cv_have_stdint_h=1
20124 ac_cv_have_stdint_h=0
20128 if test "${ac_cv_header_sys_types_h+set}" = set; then
20129 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20130 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20131 if test "${ac_cv_header_sys_types_h+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20135 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20137 # Is the header compilable?
20138 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20139 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 $ac_includes_default
20147 #include <sys/types.h>
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20158 grep -v '^ *+' conftest.er1 >conftest.err
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } && {
20163 test -z "$ac_c_werror_flag" ||
20164 test ! -s conftest.err
20165 } && test -s conftest.$ac_objext; then
20166 ac_header_compiler=yes
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_header_compiler=no
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20176 echo "${ECHO_T}$ac_header_compiler" >&6; }
20178 # Is the header present?
20179 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20180 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 #include <sys/types.h>
20189 if { (ac_try="$ac_cpp conftest.$ac_ext"
20190 case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20197 grep -v '^ *+' conftest.er1 >conftest.err
20199 cat conftest.err >&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } >/dev/null && {
20202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20203 test ! -s conftest.err
20205 ac_header_preproc=yes
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 ac_header_preproc=no
20213 rm -f conftest.err conftest.$ac_ext
20214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20215 echo "${ECHO_T}$ac_header_preproc" >&6; }
20217 # So? What about this header?
20218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20220 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20221 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20223 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20224 ac_header_preproc=yes
20227 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20228 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20230 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20232 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20234 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20236 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20238 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20240 ## ------------------------------------ ##
20241 ## Report this to opensource@google.com ##
20242 ## ------------------------------------ ##
20244 ) | sed "s/^/$as_me: WARNING: /" >&2
20247 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20248 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20249 if test "${ac_cv_header_sys_types_h+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 ac_cv_header_sys_types_h=$ac_header_preproc
20254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20255 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20258 if test $ac_cv_header_sys_types_h = yes; then
20259 ac_cv_have_systypes_h=1
20261 ac_cv_have_systypes_h=0
20265 if test "${ac_cv_header_inttypes_h+set}" = set; then
20266 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20267 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20268 if test "${ac_cv_header_inttypes_h+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20272 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20274 # Is the header compilable?
20275 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20276 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 $ac_includes_default
20284 #include <inttypes.h>
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_compile") 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest.$ac_objext; then
20303 ac_header_compiler=yes
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 ac_header_compiler=no
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20313 echo "${ECHO_T}$ac_header_compiler" >&6; }
20315 # Is the header present?
20316 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20317 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20318 cat >conftest.$ac_ext <<_ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 #include <inttypes.h>
20326 if { (ac_try="$ac_cpp conftest.$ac_ext"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } >/dev/null && {
20339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20342 ac_header_preproc=yes
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_header_preproc=no
20350 rm -f conftest.err conftest.$ac_ext
20351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20352 echo "${ECHO_T}$ac_header_preproc" >&6; }
20354 # So? What about this header?
20355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20357 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20358 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20359 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20360 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20361 ac_header_preproc=yes
20364 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20365 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20367 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20369 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20371 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20373 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20375 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20377 ## ------------------------------------ ##
20378 ## Report this to opensource@google.com ##
20379 ## ------------------------------------ ##
20381 ) | sed "s/^/$as_me: WARNING: /" >&2
20384 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20385 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20386 if test "${ac_cv_header_inttypes_h+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 ac_cv_header_inttypes_h=$ac_header_preproc
20391 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20392 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20395 if test $ac_cv_header_inttypes_h = yes; then
20396 ac_cv_have_inttypes_h=1
20398 ac_cv_have_inttypes_h=0
20403 for ac_header in unistd.h
20405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20412 ac_res=`eval echo '${'$as_ac_Header'}'`
20413 { echo "$as_me:$LINENO: result: $ac_res" >&5
20414 echo "${ECHO_T}$ac_res" >&6; }
20416 # Is the header compilable?
20417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 $ac_includes_default
20426 #include <$ac_header>
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_compile") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest.$ac_objext; then
20445 ac_header_compiler=yes
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ac_header_compiler=no
20453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20455 echo "${ECHO_T}$ac_header_compiler" >&6; }
20457 # Is the header present?
20458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 #include <$ac_header>
20468 if { (ac_try="$ac_cpp conftest.$ac_ext"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } >/dev/null && {
20481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20484 ac_header_preproc=yes
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_header_preproc=no
20492 rm -f conftest.err conftest.$ac_ext
20493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20494 echo "${ECHO_T}$ac_header_preproc" >&6; }
20496 # So? What about this header?
20497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20503 ac_header_preproc=yes
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20519 ## ------------------------------------ ##
20520 ## Report this to opensource@google.com ##
20521 ## ------------------------------------ ##
20523 ) | sed "s/^/$as_me: WARNING: /" >&2
20526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 eval "$as_ac_Header=\$ac_header_preproc"
20533 ac_res=`eval echo '${'$as_ac_Header'}'`
20534 { echo "$as_me:$LINENO: result: $ac_res" >&5
20535 echo "${ECHO_T}$ac_res" >&6; }
20538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20539 cat >>confdefs.h <<_ACEOF
20540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20542 ac_cv_have_unistd_h=1
20544 ac_cv_have_unistd_h=0
20550 for ac_header in syscall.h
20552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 ac_res=`eval echo '${'$as_ac_Header'}'`
20560 { echo "$as_me:$LINENO: result: $ac_res" >&5
20561 echo "${ECHO_T}$ac_res" >&6; }
20563 # Is the header compilable?
20564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20566 cat >conftest.$ac_ext <<_ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20572 $ac_includes_default
20573 #include <$ac_header>
20575 rm -f conftest.$ac_objext
20576 if { (ac_try="$ac_compile"
20577 case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_compile") 2>conftest.er1
20584 grep -v '^ *+' conftest.er1 >conftest.err
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } && {
20589 test -z "$ac_c_werror_flag" ||
20590 test ! -s conftest.err
20591 } && test -s conftest.$ac_objext; then
20592 ac_header_compiler=yes
20594 echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20597 ac_header_compiler=no
20600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20602 echo "${ECHO_T}$ac_header_compiler" >&6; }
20604 # Is the header present?
20605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 #include <$ac_header>
20615 if { (ac_try="$ac_cpp conftest.$ac_ext"
20616 case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } >/dev/null && {
20628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20629 test ! -s conftest.err
20631 ac_header_preproc=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_header_preproc=no
20639 rm -f conftest.err conftest.$ac_ext
20640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20641 echo "${ECHO_T}$ac_header_preproc" >&6; }
20643 # So? What about this header?
20644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20650 ac_header_preproc=yes
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20666 ## ------------------------------------ ##
20667 ## Report this to opensource@google.com ##
20668 ## ------------------------------------ ##
20670 ) | sed "s/^/$as_me: WARNING: /" >&2
20673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 eval "$as_ac_Header=\$ac_header_preproc"
20680 ac_res=`eval echo '${'$as_ac_Header'}'`
20681 { echo "$as_me:$LINENO: result: $ac_res" >&5
20682 echo "${ECHO_T}$ac_res" >&6; }
20685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20686 cat >>confdefs.h <<_ACEOF
20687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20695 for ac_header in sys/syscall.h
20697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 ac_res=`eval echo '${'$as_ac_Header'}'`
20705 { echo "$as_me:$LINENO: result: $ac_res" >&5
20706 echo "${ECHO_T}$ac_res" >&6; }
20708 # Is the header compilable?
20709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 $ac_includes_default
20718 #include <$ac_header>
20720 rm -f conftest.$ac_objext
20721 if { (ac_try="$ac_compile"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_compile") 2>conftest.er1
20729 grep -v '^ *+' conftest.er1 >conftest.err
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest.$ac_objext; then
20737 ac_header_compiler=yes
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20742 ac_header_compiler=no
20745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20747 echo "${ECHO_T}$ac_header_compiler" >&6; }
20749 # Is the header present?
20750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 #include <$ac_header>
20760 if { (ac_try="$ac_cpp conftest.$ac_ext"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } >/dev/null && {
20773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20774 test ! -s conftest.err
20776 ac_header_preproc=yes
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20781 ac_header_preproc=no
20784 rm -f conftest.err conftest.$ac_ext
20785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20786 echo "${ECHO_T}$ac_header_preproc" >&6; }
20788 # So? What about this header?
20789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20795 ac_header_preproc=yes
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20811 ## ------------------------------------ ##
20812 ## Report this to opensource@google.com ##
20813 ## ------------------------------------ ##
20815 ) | sed "s/^/$as_me: WARNING: /" >&2
20818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 eval "$as_ac_Header=\$ac_header_preproc"
20825 ac_res=`eval echo '${'$as_ac_Header'}'`
20826 { echo "$as_me:$LINENO: result: $ac_res" >&5
20827 echo "${ECHO_T}$ac_res" >&6; }
20830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20831 cat >>confdefs.h <<_ACEOF
20832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20839 # For backtrace with glibc.
20841 for ac_header in execinfo.h
20843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 ac_res=`eval echo '${'$as_ac_Header'}'`
20851 { echo "$as_me:$LINENO: result: $ac_res" >&5
20852 echo "${ECHO_T}$ac_res" >&6; }
20854 # Is the header compilable?
20855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 $ac_includes_default
20864 #include <$ac_header>
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_compile") 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest.$ac_objext; then
20883 ac_header_compiler=yes
20885 echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20888 ac_header_compiler=no
20891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20893 echo "${ECHO_T}$ac_header_compiler" >&6; }
20895 # Is the header present?
20896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 #include <$ac_header>
20906 if { (ac_try="$ac_cpp conftest.$ac_ext"
20907 case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20914 grep -v '^ *+' conftest.er1 >conftest.err
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } >/dev/null && {
20919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20920 test ! -s conftest.err
20922 ac_header_preproc=yes
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_header_preproc=no
20930 rm -f conftest.err conftest.$ac_ext
20931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20932 echo "${ECHO_T}$ac_header_preproc" >&6; }
20934 # So? What about this header?
20935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20941 ac_header_preproc=yes
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20957 ## ------------------------------------ ##
20958 ## Report this to opensource@google.com ##
20959 ## ------------------------------------ ##
20961 ) | sed "s/^/$as_me: WARNING: /" >&2
20964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 eval "$as_ac_Header=\$ac_header_preproc"
20971 ac_res=`eval echo '${'$as_ac_Header'}'`
20972 { echo "$as_me:$LINENO: result: $ac_res" >&5
20973 echo "${ECHO_T}$ac_res" >&6; }
20976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20977 cat >>confdefs.h <<_ACEOF
20978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20985 # For backtrace with libunwind.
20987 for ac_header in libunwind.h
20989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 ac_res=`eval echo '${'$as_ac_Header'}'`
20997 { echo "$as_me:$LINENO: result: $ac_res" >&5
20998 echo "${ECHO_T}$ac_res" >&6; }
21000 # Is the header compilable?
21001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21003 cat >conftest.$ac_ext <<_ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 $ac_includes_default
21010 #include <$ac_header>
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_compile") 2>conftest.er1
21021 grep -v '^ *+' conftest.er1 >conftest.err
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } && {
21026 test -z "$ac_c_werror_flag" ||
21027 test ! -s conftest.err
21028 } && test -s conftest.$ac_objext; then
21029 ac_header_compiler=yes
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ac_header_compiler=no
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21039 echo "${ECHO_T}$ac_header_compiler" >&6; }
21041 # Is the header present?
21042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21044 cat >conftest.$ac_ext <<_ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 #include <$ac_header>
21052 if { (ac_try="$ac_cpp conftest.$ac_ext"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } >/dev/null && {
21065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21068 ac_header_preproc=yes
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_header_preproc=no
21076 rm -f conftest.err conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21078 echo "${ECHO_T}$ac_header_preproc" >&6; }
21080 # So? What about this header?
21081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21087 ac_header_preproc=yes
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21103 ## ------------------------------------ ##
21104 ## Report this to opensource@google.com ##
21105 ## ------------------------------------ ##
21107 ) | sed "s/^/$as_me: WARNING: /" >&2
21110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 eval "$as_ac_Header=\$ac_header_preproc"
21117 ac_res=`eval echo '${'$as_ac_Header'}'`
21118 { echo "$as_me:$LINENO: result: $ac_res" >&5
21119 echo "${ECHO_T}$ac_res" >&6; }
21122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21123 cat >>confdefs.h <<_ACEOF
21124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21132 for ac_header in ucontext.h
21134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 ac_res=`eval echo '${'$as_ac_Header'}'`
21142 { echo "$as_me:$LINENO: result: $ac_res" >&5
21143 echo "${ECHO_T}$ac_res" >&6; }
21145 # Is the header compilable?
21146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 $ac_includes_default
21155 #include <$ac_header>
21157 rm -f conftest.$ac_objext
21158 if { (ac_try="$ac_compile"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && {
21171 test -z "$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 } && test -s conftest.$ac_objext; then
21174 ac_header_compiler=yes
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 ac_header_compiler=no
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21184 echo "${ECHO_T}$ac_header_compiler" >&6; }
21186 # Is the header present?
21187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21189 cat >conftest.$ac_ext <<_ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 #include <$ac_header>
21197 if { (ac_try="$ac_cpp conftest.$ac_ext"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } >/dev/null && {
21210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21213 ac_header_preproc=yes
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_header_preproc=no
21221 rm -f conftest.err conftest.$ac_ext
21222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21223 echo "${ECHO_T}$ac_header_preproc" >&6; }
21225 # So? What about this header?
21226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21232 ac_header_preproc=yes
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21242 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21248 ## ------------------------------------ ##
21249 ## Report this to opensource@google.com ##
21250 ## ------------------------------------ ##
21252 ) | sed "s/^/$as_me: WARNING: /" >&2
21255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 eval "$as_ac_Header=\$ac_header_preproc"
21262 ac_res=`eval echo '${'$as_ac_Header'}'`
21263 { echo "$as_me:$LINENO: result: $ac_res" >&5
21264 echo "${ECHO_T}$ac_res" >&6; }
21267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21268 cat >>confdefs.h <<_ACEOF
21269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21277 for ac_header in sys/utsname.h
21279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 ac_res=`eval echo '${'$as_ac_Header'}'`
21287 { echo "$as_me:$LINENO: result: $ac_res" >&5
21288 echo "${ECHO_T}$ac_res" >&6; }
21290 # Is the header compilable?
21291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 $ac_includes_default
21300 #include <$ac_header>
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_compile") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1 >conftest.err
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } && {
21316 test -z "$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21318 } && test -s conftest.$ac_objext; then
21319 ac_header_compiler=yes
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_header_compiler=no
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21329 echo "${ECHO_T}$ac_header_compiler" >&6; }
21331 # Is the header present?
21332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21334 cat >conftest.$ac_ext <<_ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <$ac_header>
21342 if { (ac_try="$ac_cpp conftest.$ac_ext"
21343 case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } >/dev/null && {
21355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21358 ac_header_preproc=yes
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 ac_header_preproc=no
21366 rm -f conftest.err conftest.$ac_ext
21367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368 echo "${ECHO_T}$ac_header_preproc" >&6; }
21370 # So? What about this header?
21371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21377 ac_header_preproc=yes
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21393 ## ------------------------------------ ##
21394 ## Report this to opensource@google.com ##
21395 ## ------------------------------------ ##
21397 ) | sed "s/^/$as_me: WARNING: /" >&2
21400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 eval "$as_ac_Header=\$ac_header_preproc"
21407 ac_res=`eval echo '${'$as_ac_Header'}'`
21408 { echo "$as_me:$LINENO: result: $ac_res" >&5
21409 echo "${ECHO_T}$ac_res" >&6; }
21412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21413 cat >>confdefs.h <<_ACEOF
21414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21422 for ac_header in pwd.h
21424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 ac_res=`eval echo '${'$as_ac_Header'}'`
21432 { echo "$as_me:$LINENO: result: $ac_res" >&5
21433 echo "${ECHO_T}$ac_res" >&6; }
21435 # Is the header compilable?
21436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 $ac_includes_default
21445 #include <$ac_header>
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_compile") 2>conftest.er1
21456 grep -v '^ *+' conftest.er1 >conftest.err
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } && {
21461 test -z "$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest.$ac_objext; then
21464 ac_header_compiler=yes
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21469 ac_header_compiler=no
21472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21474 echo "${ECHO_T}$ac_header_compiler" >&6; }
21476 # Is the header present?
21477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 #include <$ac_header>
21487 if { (ac_try="$ac_cpp conftest.$ac_ext"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21495 grep -v '^ *+' conftest.er1 >conftest.err
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } >/dev/null && {
21500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21503 ac_header_preproc=yes
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ac_header_preproc=no
21511 rm -f conftest.err conftest.$ac_ext
21512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21513 echo "${ECHO_T}$ac_header_preproc" >&6; }
21515 # So? What about this header?
21516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21522 ac_header_preproc=yes
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21538 ## ------------------------------------ ##
21539 ## Report this to opensource@google.com ##
21540 ## ------------------------------------ ##
21542 ) | sed "s/^/$as_me: WARNING: /" >&2
21545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 eval "$as_ac_Header=\$ac_header_preproc"
21552 ac_res=`eval echo '${'$as_ac_Header'}'`
21553 { echo "$as_me:$LINENO: result: $ac_res" >&5
21554 echo "${ECHO_T}$ac_res" >&6; }
21557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21558 cat >>confdefs.h <<_ACEOF
21559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21567 for ac_header in syslog.h
21569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 ac_res=`eval echo '${'$as_ac_Header'}'`
21577 { echo "$as_me:$LINENO: result: $ac_res" >&5
21578 echo "${ECHO_T}$ac_res" >&6; }
21580 # Is the header compilable?
21581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21583 cat >conftest.$ac_ext <<_ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21590 #include <$ac_header>
21592 rm -f conftest.$ac_objext
21593 if { (ac_try="$ac_compile"
21594 case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_compile") 2>conftest.er1
21601 grep -v '^ *+' conftest.er1 >conftest.err
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } && {
21606 test -z "$ac_c_werror_flag" ||
21607 test ! -s conftest.err
21608 } && test -s conftest.$ac_objext; then
21609 ac_header_compiler=yes
21611 echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21614 ac_header_compiler=no
21617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21619 echo "${ECHO_T}$ac_header_compiler" >&6; }
21621 # Is the header present?
21622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21624 cat >conftest.$ac_ext <<_ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 #include <$ac_header>
21632 if { (ac_try="$ac_cpp conftest.$ac_ext"
21633 case "(($ac_try" in
21634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635 *) ac_try_echo=$ac_try;;
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21640 grep -v '^ *+' conftest.er1 >conftest.err
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } >/dev/null && {
21645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21646 test ! -s conftest.err
21648 ac_header_preproc=yes
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 ac_header_preproc=no
21656 rm -f conftest.err conftest.$ac_ext
21657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21658 echo "${ECHO_T}$ac_header_preproc" >&6; }
21660 # So? What about this header?
21661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21667 ac_header_preproc=yes
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21683 ## ------------------------------------ ##
21684 ## Report this to opensource@google.com ##
21685 ## ------------------------------------ ##
21687 ) | sed "s/^/$as_me: WARNING: /" >&2
21690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21693 echo $ECHO_N "(cached) $ECHO_C" >&6
21695 eval "$as_ac_Header=\$ac_header_preproc"
21697 ac_res=`eval echo '${'$as_ac_Header'}'`
21698 { echo "$as_me:$LINENO: result: $ac_res" >&5
21699 echo "${ECHO_T}$ac_res" >&6; }
21702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21703 cat >>confdefs.h <<_ACEOF
21704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21712 for ac_header in sys/time.h
21714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 ac_res=`eval echo '${'$as_ac_Header'}'`
21722 { echo "$as_me:$LINENO: result: $ac_res" >&5
21723 echo "${ECHO_T}$ac_res" >&6; }
21725 # Is the header compilable?
21726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21728 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21734 $ac_includes_default
21735 #include <$ac_header>
21737 rm -f conftest.$ac_objext
21738 if { (ac_try="$ac_compile"
21739 case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_compile") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest.$ac_objext; then
21754 ac_header_compiler=yes
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21759 ac_header_compiler=no
21762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21764 echo "${ECHO_T}$ac_header_compiler" >&6; }
21766 # Is the header present?
21767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21769 cat >conftest.$ac_ext <<_ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21775 #include <$ac_header>
21777 if { (ac_try="$ac_cpp conftest.$ac_ext"
21778 case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21785 grep -v '^ *+' conftest.er1 >conftest.err
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } >/dev/null && {
21790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21793 ac_header_preproc=yes
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_header_preproc=no
21801 rm -f conftest.err conftest.$ac_ext
21802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21803 echo "${ECHO_T}$ac_header_preproc" >&6; }
21805 # So? What about this header?
21806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21812 ac_header_preproc=yes
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21828 ## ------------------------------------ ##
21829 ## Report this to opensource@google.com ##
21830 ## ------------------------------------ ##
21832 ) | sed "s/^/$as_me: WARNING: /" >&2
21835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 eval "$as_ac_Header=\$ac_header_preproc"
21842 ac_res=`eval echo '${'$as_ac_Header'}'`
21843 { echo "$as_me:$LINENO: result: $ac_res" >&5
21844 echo "${ECHO_T}$ac_res" >&6; }
21847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21848 cat >>confdefs.h <<_ACEOF
21849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21857 for ac_header in glob.h
21859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 ac_res=`eval echo '${'$as_ac_Header'}'`
21867 { echo "$as_me:$LINENO: result: $ac_res" >&5
21868 echo "${ECHO_T}$ac_res" >&6; }
21870 # Is the header compilable?
21871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21873 cat >conftest.$ac_ext <<_ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 $ac_includes_default
21880 #include <$ac_header>
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_compile") 2>conftest.er1
21891 grep -v '^ *+' conftest.er1 >conftest.err
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest.$ac_objext; then
21899 ac_header_compiler=yes
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_header_compiler=no
21907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21909 echo "${ECHO_T}$ac_header_compiler" >&6; }
21911 # Is the header present?
21912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21914 cat >conftest.$ac_ext <<_ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 #include <$ac_header>
21922 if { (ac_try="$ac_cpp conftest.$ac_ext"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21930 grep -v '^ *+' conftest.er1 >conftest.err
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } >/dev/null && {
21935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21938 ac_header_preproc=yes
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_header_preproc=no
21946 rm -f conftest.err conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21948 echo "${ECHO_T}$ac_header_preproc" >&6; }
21950 # So? What about this header?
21951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21957 ac_header_preproc=yes
21960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21973 ## ------------------------------------ ##
21974 ## Report this to opensource@google.com ##
21975 ## ------------------------------------ ##
21977 ) | sed "s/^/$as_me: WARNING: /" >&2
21980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21985 eval "$as_ac_Header=\$ac_header_preproc"
21987 ac_res=`eval echo '${'$as_ac_Header'}'`
21988 { echo "$as_me:$LINENO: result: $ac_res" >&5
21989 echo "${ECHO_T}$ac_res" >&6; }
21992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21993 cat >>confdefs.h <<_ACEOF
21994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22002 { echo "$as_me:$LINENO: checking for void *" >&5
22003 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22004 if test "${ac_cv_type_void_p+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 cat >conftest.$ac_ext <<_ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22013 $ac_includes_default
22014 typedef void * ac__type_new_;
22018 if ((ac__type_new_ *) 0)
22020 if (sizeof (ac__type_new_))
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_cv_type_void_p=yes
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_cv_type_void_p=no
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22054 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22056 # The cast to long int works around a bug in the HP C Compiler
22057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22059 # This bug is HP SR number 8606223364.
22060 { echo "$as_me:$LINENO: checking size of void *" >&5
22061 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22062 if test "${ac_cv_sizeof_void_p+set}" = set; then
22063 echo $ECHO_N "(cached) $ECHO_C" >&6
22065 if test "$cross_compiling" = yes; then
22066 # Depending upon the size, compute the lo and hi bounds.
22067 cat >conftest.$ac_ext <<_ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h. */
22073 $ac_includes_default
22074 typedef void * ac__type_sizeof_;
22078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22085 rm -f conftest.$ac_objext
22086 if { (ac_try="$ac_compile"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_compile") 2>conftest.er1
22094 grep -v '^ *+' conftest.er1 >conftest.err
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } && {
22099 test -z "$ac_c_werror_flag" ||
22100 test ! -s conftest.err
22101 } && test -s conftest.$ac_objext; then
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 $ac_includes_default
22111 typedef void * ac__type_sizeof_;
22115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22122 rm -f conftest.$ac_objext
22123 if { (ac_try="$ac_compile"
22124 case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_compile") 2>conftest.er1
22131 grep -v '^ *+' conftest.er1 >conftest.err
22133 cat conftest.err >&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } && {
22136 test -z "$ac_c_werror_flag" ||
22137 test ! -s conftest.err
22138 } && test -s conftest.$ac_objext; then
22139 ac_hi=$ac_mid; break
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 ac_lo=`expr $ac_mid + 1`
22145 if test $ac_lo -le $ac_mid; then
22149 ac_mid=`expr 2 '*' $ac_mid + 1`
22152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 $ac_includes_default
22165 typedef void * ac__type_sizeof_;
22169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22176 rm -f conftest.$ac_objext
22177 if { (ac_try="$ac_compile"
22178 case "(($ac_try" in
22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180 *) ac_try_echo=$ac_try;;
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183 (eval "$ac_compile") 2>conftest.er1
22185 grep -v '^ *+' conftest.er1 >conftest.err
22187 cat conftest.err >&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } && {
22190 test -z "$ac_c_werror_flag" ||
22191 test ! -s conftest.err
22192 } && test -s conftest.$ac_objext; then
22195 cat >conftest.$ac_ext <<_ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22201 $ac_includes_default
22202 typedef void * ac__type_sizeof_;
22206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22213 rm -f conftest.$ac_objext
22214 if { (ac_try="$ac_compile"
22215 case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_compile") 2>conftest.er1
22222 grep -v '^ *+' conftest.er1 >conftest.err
22224 cat conftest.err >&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && {
22227 test -z "$ac_c_werror_flag" ||
22228 test ! -s conftest.err
22229 } && test -s conftest.$ac_objext; then
22230 ac_lo=$ac_mid; break
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 ac_hi=`expr '(' $ac_mid ')' - 1`
22236 if test $ac_mid -le $ac_hi; then
22240 ac_mid=`expr 2 '*' $ac_mid`
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256 # Binary search between lo and hi bounds.
22257 while test "x$ac_lo" != "x$ac_hi"; do
22258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22259 cat >conftest.$ac_ext <<_ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22265 $ac_includes_default
22266 typedef void * ac__type_sizeof_;
22270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22286 grep -v '^ *+' conftest.er1 >conftest.err
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest.$ac_objext; then
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22299 ac_lo=`expr '(' $ac_mid ')' + 1`
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22306 '') if test "$ac_cv_type_void_p" = yes; then
22307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22308 See \`config.log' for more details." >&5
22309 echo "$as_me: error: cannot compute sizeof (void *)
22310 See \`config.log' for more details." >&2;}
22311 { (exit 77); exit 77; }; }
22313 ac_cv_sizeof_void_p=0
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22323 $ac_includes_default
22324 typedef void * ac__type_sizeof_;
22325 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22326 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22328 #include <stdlib.h>
22333 FILE *f = fopen ("conftest.val", "w");
22336 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22338 long int i = longval ();
22339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22341 fprintf (f, "%ld\n", i);
22345 unsigned long int i = ulongval ();
22346 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22348 fprintf (f, "%lu\n", i);
22350 return ferror (f) || fclose (f) != 0;
22356 rm -f conftest$ac_exeext
22357 if { (ac_try="$ac_link"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_link") 2>&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22367 { (case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_try") 2>&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; }; then
22376 ac_cv_sizeof_void_p=`cat conftest.val`
22378 echo "$as_me: program exited with status $ac_status" >&5
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ( exit $ac_status )
22383 if test "$ac_cv_type_void_p" = yes; then
22384 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22385 See \`config.log' for more details." >&5
22386 echo "$as_me: error: cannot compute sizeof (void *)
22387 See \`config.log' for more details." >&2;}
22388 { (exit 77); exit 77; }; }
22390 ac_cv_sizeof_void_p=0
22393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22397 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22398 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22402 cat >>confdefs.h <<_ACEOF
22403 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22408 # These are the types I need. We look for them in either stdint.h,
22409 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22410 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22411 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22412 if test "${ac_cv_type_uint16_t+set}" = set; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22415 cat >conftest.$ac_ext <<_ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 $ac_includes_default
22422 typedef uint16_t ac__type_new_;
22426 if ((ac__type_new_ *) 0)
22428 if (sizeof (ac__type_new_))
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_compile") 2>conftest.er1
22443 grep -v '^ *+' conftest.er1 >conftest.err
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest.$ac_objext; then
22451 ac_cv_type_uint16_t=yes
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ac_cv_type_uint16_t=no
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22462 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22463 if test $ac_cv_type_uint16_t = yes; then
22464 ac_cv_have_uint16_t=1
22466 ac_cv_have_uint16_t=0
22469 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22470 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22471 if test "${ac_cv_type_u_int16_t+set}" = set; then
22472 echo $ECHO_N "(cached) $ECHO_C" >&6
22474 cat >conftest.$ac_ext <<_ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 $ac_includes_default
22481 typedef u_int16_t ac__type_new_;
22485 if ((ac__type_new_ *) 0)
22487 if (sizeof (ac__type_new_))
22493 rm -f conftest.$ac_objext
22494 if { (ac_try="$ac_compile"
22495 case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_compile") 2>conftest.er1
22502 grep -v '^ *+' conftest.er1 >conftest.err
22504 cat conftest.err >&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } && {
22507 test -z "$ac_c_werror_flag" ||
22508 test ! -s conftest.err
22509 } && test -s conftest.$ac_objext; then
22510 ac_cv_type_u_int16_t=yes
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 ac_cv_type_u_int16_t=no
22518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22520 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22521 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22522 if test $ac_cv_type_u_int16_t = yes; then
22523 ac_cv_have_u_int16_t=1
22525 ac_cv_have_u_int16_t=0
22528 { echo "$as_me:$LINENO: checking for __uint16" >&5
22529 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22530 if test "${ac_cv_type___uint16+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 $ac_includes_default
22540 typedef __uint16 ac__type_new_;
22544 if ((ac__type_new_ *) 0)
22546 if (sizeof (ac__type_new_))
22552 rm -f conftest.$ac_objext
22553 if { (ac_try="$ac_compile"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_compile") 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest.$ac_objext; then
22569 ac_cv_type___uint16=yes
22571 echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22574 ac_cv_type___uint16=no
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22580 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22581 if test $ac_cv_type___uint16 = yes; then
22582 ac_cv_have___uint16=1
22584 ac_cv_have___uint16=0
22588 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22589 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22590 if test "${ac_cv_func_sigaltstack+set}" = set; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22593 cat >conftest.$ac_ext <<_ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22601 #define sigaltstack innocuous_sigaltstack
22603 /* System header to define __stub macros and hopefully few prototypes,
22604 which can conflict with char sigaltstack (); below.
22605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22606 <limits.h> exists even on freestanding compilers. */
22609 # include <limits.h>
22611 # include <assert.h>
22616 /* Override any GCC internal prototype to avoid an error.
22617 Use char because int might match the return type of a GCC
22618 builtin and then its argument prototype would still apply. */
22622 char sigaltstack ();
22623 /* The GNU C library defines this for functions which it implements
22624 to always fail with ENOSYS. Some functions are actually named
22625 something starting with __ and the normal name is an alias. */
22626 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22633 return sigaltstack ();
22638 rm -f conftest.$ac_objext conftest$ac_exeext
22639 if { (ac_try="$ac_link"
22640 case "(($ac_try" in
22641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22642 *) ac_try_echo=$ac_try;;
22644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22645 (eval "$ac_link") 2>conftest.er1
22647 grep -v '^ *+' conftest.er1 >conftest.err
22649 cat conftest.err >&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } && {
22652 test -z "$ac_c_werror_flag" ||
22653 test ! -s conftest.err
22654 } && test -s conftest$ac_exeext &&
22655 $as_test_x conftest$ac_exeext; then
22656 ac_cv_func_sigaltstack=yes
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ac_cv_func_sigaltstack=no
22664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22665 conftest$ac_exeext conftest.$ac_ext
22667 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22668 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22669 if test $ac_cv_func_sigaltstack = yes; then
22671 cat >>confdefs.h <<\_ACEOF
22672 #define HAVE_SIGALTSTACK 1
22677 { echo "$as_me:$LINENO: checking for dladdr" >&5
22678 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22679 if test "${ac_cv_func_dladdr+set}" = set; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22690 #define dladdr innocuous_dladdr
22692 /* System header to define __stub macros and hopefully few prototypes,
22693 which can conflict with char dladdr (); below.
22694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22695 <limits.h> exists even on freestanding compilers. */
22698 # include <limits.h>
22700 # include <assert.h>
22705 /* Override any GCC internal prototype to avoid an error.
22706 Use char because int might match the return type of a GCC
22707 builtin and then its argument prototype would still apply. */
22712 /* The GNU C library defines this for functions which it implements
22713 to always fail with ENOSYS. Some functions are actually named
22714 something starting with __ and the normal name is an alias. */
22715 #if defined __stub_dladdr || defined __stub___dladdr
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_link") 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } && {
22741 test -z "$ac_c_werror_flag" ||
22742 test ! -s conftest.err
22743 } && test -s conftest$ac_exeext &&
22744 $as_test_x conftest$ac_exeext; then
22745 ac_cv_func_dladdr=yes
22747 echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22750 ac_cv_func_dladdr=no
22753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22754 conftest$ac_exeext conftest.$ac_ext
22756 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22757 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22758 if test $ac_cv_func_dladdr = yes; then
22760 cat >>confdefs.h <<\_ACEOF
22761 #define HAVE_DLADDR 1
22766 { echo "$as_me:$LINENO: checking for fcntl" >&5
22767 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22768 if test "${ac_cv_func_fcntl+set}" = set; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 cat >conftest.$ac_ext <<_ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22779 #define fcntl innocuous_fcntl
22781 /* System header to define __stub macros and hopefully few prototypes,
22782 which can conflict with char fcntl (); below.
22783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22784 <limits.h> exists even on freestanding compilers. */
22787 # include <limits.h>
22789 # include <assert.h>
22794 /* Override any GCC internal prototype to avoid an error.
22795 Use char because int might match the return type of a GCC
22796 builtin and then its argument prototype would still apply. */
22801 /* The GNU C library defines this for functions which it implements
22802 to always fail with ENOSYS. Some functions are actually named
22803 something starting with __ and the normal name is an alias. */
22804 #if defined __stub_fcntl || defined __stub___fcntl
22816 rm -f conftest.$ac_objext conftest$ac_exeext
22817 if { (ac_try="$ac_link"
22818 case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823 (eval "$ac_link") 2>conftest.er1
22825 grep -v '^ *+' conftest.er1 >conftest.err
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } && {
22830 test -z "$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22832 } && test -s conftest$ac_exeext &&
22833 $as_test_x conftest$ac_exeext; then
22834 ac_cv_func_fcntl=yes
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22839 ac_cv_func_fcntl=no
22842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22843 conftest$ac_exeext conftest.$ac_ext
22845 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22846 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22847 if test $ac_cv_func_fcntl = yes; then
22849 cat >>confdefs.h <<\_ACEOF
22850 #define HAVE_FCNTL 1
22857 { echo "$as_me:$LINENO: checking for __attribute__" >&5
22858 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22859 if test "${ac_cv___attribute__+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 cat >conftest.$ac_ext <<_ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 #include <stdlib.h>
22870 static void foo(void) __attribute__ ((unused));
22871 void foo(void) { exit(1); }
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887 (eval "$ac_compile") 2>conftest.er1
22889 grep -v '^ *+' conftest.er1 >conftest.err
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } && {
22894 test -z "$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 } && test -s conftest.$ac_objext; then
22897 ac_cv___attribute__=yes
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_cv___attribute__=no
22906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909 if test "$ac_cv___attribute__" = "yes"; then
22911 cat >>confdefs.h <<\_ACEOF
22912 #define HAVE___ATTRIBUTE__ 1
22916 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22917 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22919 # We only care about these two attributes.
22920 if test x"$ac_cv___attribute__" = x"yes"; then
22921 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22922 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22924 ac_cv___attribute___noreturn=
22925 ac_cv___attribute___printf_4_5=
22929 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22930 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22931 if test "${ac_cv___builtin_expect+set}" = set; then
22932 echo $ECHO_N "(cached) $ECHO_C" >&6
22935 cat >conftest.$ac_ext <<_ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h. */
22941 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22967 ac_cv___builtin_expect=yes
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_cv___builtin_expect=no
22976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979 if test "$ac_cv___builtin_expect" = "yes"; then
22981 cat >>confdefs.h <<\_ACEOF
22982 #define HAVE___BUILTIN_EXPECT 1
22986 { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22987 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22989 if test x"$ac_cv___builtin_expect" = x"yes"; then
22990 ac_cv_have___builtin_expect=1
22992 ac_cv_have___builtin_expect=0
22996 { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22997 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
22998 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
22999 echo $ECHO_N "(cached) $ECHO_C" >&6
23002 cat >conftest.$ac_ext <<_ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23008 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23017 rm -f conftest.$ac_objext conftest$ac_exeext
23018 if { (ac_try="$ac_link"
23019 case "(($ac_try" in
23020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021 *) ac_try_echo=$ac_try;;
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024 (eval "$ac_link") 2>conftest.er1
23026 grep -v '^ *+' conftest.er1 >conftest.err
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } && {
23031 test -z "$ac_c_werror_flag" ||
23032 test ! -s conftest.err
23033 } && test -s conftest$ac_exeext &&
23034 $as_test_x conftest$ac_exeext; then
23035 ac_cv___sync_val_compare_and_swap=yes
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23040 ac_cv___sync_val_compare_and_swap=no
23044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23045 conftest$ac_exeext conftest.$ac_ext
23048 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23050 cat >>confdefs.h <<\_ACEOF
23051 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23055 { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23056 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23059 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23060 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23061 # Check whether --enable-frame_pointers was given.
23062 if test "${enable_frame_pointers+set}" = set; then
23063 enableval=$enable_frame_pointers; enable_frame_pointers=no
23066 cat >conftest.$ac_ext <<_ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h. */
23076 return __x86_64__ == 1 ? 0 : 1
23081 rm -f conftest.$ac_objext
23082 if { (ac_try="$ac_compile"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_compile") 2>conftest.er1
23090 grep -v '^ *+' conftest.er1 >conftest.err
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } && {
23095 test -z "$ac_c_werror_flag" ||
23096 test ! -s conftest.err
23097 } && test -s conftest.$ac_objext; then
23100 echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23107 if test "$enable_frame_pointers" = yes; then
23108 ENABLE_FRAME_POINTERS_TRUE=
23109 ENABLE_FRAME_POINTERS_FALSE='#'
23111 ENABLE_FRAME_POINTERS_TRUE='#'
23112 ENABLE_FRAME_POINTERS_FALSE=
23115 if test "$is_x86_64" = yes; then
23124 # Some of the code in this directory depends on pthreads
23129 ac_cpp='$CPP $CPPFLAGS'
23130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23136 # We used to check for pthread.h first, but this fails if pthread.h
23137 # requires special compiler flags (e.g. on True64 or Sequent).
23138 # It gets checked for in the link test anyway.
23140 # First of all, check if the user has set any of the PTHREAD_LIBS,
23141 # etcetera environment variables, and if threads linking works using
23143 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23144 save_CFLAGS="$CFLAGS"
23145 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23147 LIBS="$PTHREAD_LIBS $LIBS"
23148 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23149 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23150 cat >conftest.$ac_ext <<_ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23157 /* Override any GCC internal prototype to avoid an error.
23158 Use char because int might match the return type of a GCC
23159 builtin and then its argument prototype would still apply. */
23163 char pthread_join ();
23167 return pthread_join ();
23172 rm -f conftest.$ac_objext conftest$ac_exeext
23173 if { (ac_try="$ac_link"
23174 case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_link") 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } && {
23186 test -z "$ac_c_werror_flag" ||
23187 test ! -s conftest.err
23188 } && test -s conftest$ac_exeext &&
23189 $as_test_x conftest$ac_exeext; then
23192 echo "$as_me: failed program was:" >&5
23193 sed 's/^/| /' conftest.$ac_ext >&5
23198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23199 conftest$ac_exeext conftest.$ac_ext
23200 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23201 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23202 if test x"$acx_pthread_ok" = xno; then
23207 CFLAGS="$save_CFLAGS"
23210 # We must check for the threads library under a number of different
23211 # names; the ordering is very important because some systems
23212 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23213 # libraries is broken (non-POSIX).
23215 # Create a list of thread flags to try. Items starting with a "-" are
23216 # C compiler flags, and other items are library names, except for "none"
23217 # which indicates that we try without any flags at all, and "pthread-config"
23218 # which is a program returning the flags for the Pth emulation library.
23220 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23222 # The ordering *is* (sometimes) important. Some notes on the
23223 # individual items follow:
23225 # pthreads: AIX (must check this before -lpthread)
23226 # none: in case threads are in libc; should be tried before -Kthread and
23227 # other compiler flags to prevent continual compiler warnings
23228 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23229 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23230 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23231 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23232 # -pthreads: Solaris/gcc
23233 # -mthreads: Mingw32/gcc, Lynx/gcc
23234 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23235 # doesn't hurt to check since this sometimes defines pthreads too;
23236 # also defines -D_REENTRANT)
23237 # ... -mt is also the pthreads flag for HP/aCC
23238 # pthread: Linux, etcetera
23239 # --thread-safe: KAI C++
23240 # pthread-config: use pthread-config program (for GNU Pth library)
23242 case "${host_cpu}-${host_os}" in
23245 # On Solaris (at least, for some versions), libc contains stubbed
23246 # (non-functional) versions of the pthreads routines, so link-based
23247 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
23248 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23249 # a function called by this macro, so we could check for that, but
23250 # who knows whether they'll stub that too in a future libc.) So,
23251 # we'll just look for -pthreads and -lpthread first:
23253 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23257 if test x"$acx_pthread_ok" = xno; then
23258 for flag in $acx_pthread_flags; do
23262 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23263 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23267 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23268 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23269 PTHREAD_CFLAGS="$flag"
23273 # Extract the first word of "pthread-config", so it can be a program name with args.
23274 set dummy pthread-config; ac_word=$2
23275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23277 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23280 if test -n "$acx_pthread_config"; then
23281 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23284 for as_dir in $PATH
23287 test -z "$as_dir" && as_dir=.
23288 for ac_exec_ext in '' $ac_executable_extensions; do
23289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23290 ac_cv_prog_acx_pthread_config="yes"
23291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23298 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23301 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23302 if test -n "$acx_pthread_config"; then
23303 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23304 echo "${ECHO_T}$acx_pthread_config" >&6; }
23306 { echo "$as_me:$LINENO: result: no" >&5
23307 echo "${ECHO_T}no" >&6; }
23311 if test x"$acx_pthread_config" = xno; then continue; fi
23312 PTHREAD_CFLAGS="`pthread-config --cflags`"
23313 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23317 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23318 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23319 PTHREAD_LIBS="-l$flag"
23324 save_CFLAGS="$CFLAGS"
23325 LIBS="$PTHREAD_LIBS $LIBS"
23326 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23328 # Check for various functions. We must include pthread.h,
23329 # since some functions may be macros. (On the Sequent, we
23330 # need a special flag -Kthread to make this header compile.)
23331 # We check for pthread_join because it is in -lpthread on IRIX
23332 # while pthread_create is in libc. We check for pthread_attr_init
23333 # due to DEC craziness with -lpthreads. We check for
23334 # pthread_cleanup_push because it is one of the few pthread
23335 # functions on Solaris that doesn't have a non-functional libc stub.
23336 # We try pthread_create on general principles.
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23343 #include <pthread.h>
23347 pthread_t th; pthread_join(th, 0);
23348 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23349 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23354 rm -f conftest.$ac_objext conftest$ac_exeext
23355 if { (ac_try="$ac_link"
23356 case "(($ac_try" in
23357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23358 *) ac_try_echo=$ac_try;;
23360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23361 (eval "$ac_link") 2>conftest.er1
23363 grep -v '^ *+' conftest.er1 >conftest.err
23365 cat conftest.err >&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } && {
23368 test -z "$ac_c_werror_flag" ||
23369 test ! -s conftest.err
23370 } && test -s conftest$ac_exeext &&
23371 $as_test_x conftest$ac_exeext; then
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23381 conftest$ac_exeext conftest.$ac_ext
23384 CFLAGS="$save_CFLAGS"
23386 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23387 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23388 if test "x$acx_pthread_ok" = xyes; then
23397 # Various other checks:
23398 if test "x$acx_pthread_ok" = xyes; then
23400 LIBS="$PTHREAD_LIBS $LIBS"
23401 save_CFLAGS="$CFLAGS"
23402 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23404 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23405 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23406 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23408 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23409 cat >conftest.$ac_ext <<_ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23415 #include <pthread.h>
23419 int attr=$attr; return attr;
23424 rm -f conftest.$ac_objext conftest$ac_exeext
23425 if { (ac_try="$ac_link"
23426 case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_link") 2>conftest.er1
23433 grep -v '^ *+' conftest.er1 >conftest.err
23435 cat conftest.err >&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } && {
23438 test -z "$ac_c_werror_flag" ||
23439 test ! -s conftest.err
23440 } && test -s conftest$ac_exeext &&
23441 $as_test_x conftest$ac_exeext; then
23442 attr_name=$attr; break
23444 echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23451 conftest$ac_exeext conftest.$ac_ext
23453 { echo "$as_me:$LINENO: result: $attr_name" >&5
23454 echo "${ECHO_T}$attr_name" >&6; }
23455 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23457 cat >>confdefs.h <<_ACEOF
23458 #define PTHREAD_CREATE_JOINABLE $attr_name
23463 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23464 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23466 case "${host_cpu}-${host_os}" in
23467 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23468 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23470 { echo "$as_me:$LINENO: result: ${flag}" >&5
23471 echo "${ECHO_T}${flag}" >&6; }
23472 if test "x$flag" != xno; then
23473 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23477 CFLAGS="$save_CFLAGS"
23478 # More AIX lossage: must compile with xlc_r or cc_r
23479 if test x"$GCC" != xyes; then
23480 for ac_prog in xlc_r cc_r
23482 # Extract the first word of "$ac_prog", so it can be a program name with args.
23483 set dummy $ac_prog; ac_word=$2
23484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23486 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23489 if test -n "$PTHREAD_CC"; then
23490 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23493 for as_dir in $PATH
23496 test -z "$as_dir" && as_dir=.
23497 for ac_exec_ext in '' $ac_executable_extensions; do
23498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23499 ac_cv_prog_PTHREAD_CC="$ac_prog"
23500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23509 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23510 if test -n "$PTHREAD_CC"; then
23511 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23512 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23514 { echo "$as_me:$LINENO: result: no" >&5
23515 echo "${ECHO_T}no" >&6; }
23519 test -n "$PTHREAD_CC" && break
23521 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23527 # The next part tries to detect GCC inconsistency with -shared on some
23528 # architectures and systems. The problem is that in certain
23529 # configurations, when -shared is specified, GCC "forgets" to
23530 # internally use various flags which are still necessary.
23532 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23533 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23534 check_inconsistencies=yes
23535 case "${host_cpu}-${host_os}" in
23536 *-darwin*) check_inconsistencies=no ;;
23538 if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
23539 { echo "$as_me:$LINENO: result: no" >&5
23540 echo "${ECHO_T}no" >&6; }
23542 { echo "$as_me:$LINENO: result: yes" >&5
23543 echo "${ECHO_T}yes" >&6; }
23545 # In order not to create several levels of indentation, we test
23546 # the value of "$ok" until we find out the cure or run out of
23551 # Prepare the flags
23553 save_CFLAGS="$CFLAGS"
23556 # Try with the flags determined by the earlier checks.
23558 # -Wl,-z,defs forces link-time symbol resolution, so that the
23559 # linking checks with -shared actually have any value
23561 # FIXME: -fPIC is required for -shared on many architectures,
23562 # so we specify it here, but the right way would probably be to
23563 # properly detect whether it is actually required.
23564 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23565 LIBS="$PTHREAD_LIBS $LIBS"
23568 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23569 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23570 cat >conftest.$ac_ext <<_ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23576 #include <pthread.h>
23580 pthread_t th; pthread_join(th, 0);
23581 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23582 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23587 rm -f conftest.$ac_objext conftest$ac_exeext
23588 if { (ac_try="$ac_link"
23589 case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_link") 2>conftest.er1
23596 grep -v '^ *+' conftest.er1 >conftest.err
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } && {
23601 test -z "$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 } && test -s conftest$ac_exeext &&
23604 $as_test_x conftest$ac_exeext; then
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23614 conftest$ac_exeext conftest.$ac_ext
23616 if test "x$ok" = xyes; then
23617 { echo "$as_me:$LINENO: result: yes" >&5
23618 echo "${ECHO_T}yes" >&6; }
23620 { echo "$as_me:$LINENO: result: no" >&5
23621 echo "${ECHO_T}no" >&6; }
23625 # Linux gcc on some architectures such as mips/mipsel forgets
23628 if test x"$ok" = xno; then
23629 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23630 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23631 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23632 cat >conftest.$ac_ext <<_ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 #include <pthread.h>
23642 pthread_t th; pthread_join(th, 0);
23643 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23644 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23649 rm -f conftest.$ac_objext conftest$ac_exeext
23650 if { (ac_try="$ac_link"
23651 case "(($ac_try" in
23652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653 *) ac_try_echo=$ac_try;;
23655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23656 (eval "$ac_link") 2>conftest.er1
23658 grep -v '^ *+' conftest.er1 >conftest.err
23660 cat conftest.err >&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } && {
23663 test -z "$ac_c_werror_flag" ||
23664 test ! -s conftest.err
23665 } && test -s conftest$ac_exeext &&
23666 $as_test_x conftest$ac_exeext; then
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23676 conftest$ac_exeext conftest.$ac_ext
23678 if test "x$ok" = xyes; then
23679 { echo "$as_me:$LINENO: result: yes" >&5
23680 echo "${ECHO_T}yes" >&6; }
23681 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23683 { echo "$as_me:$LINENO: result: no" >&5
23684 echo "${ECHO_T}no" >&6; }
23688 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23690 if test x"$ok" = xno; then
23691 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23692 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23693 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23694 cat >conftest.$ac_ext <<_ACEOF
23697 cat confdefs.h >>conftest.$ac_ext
23698 cat >>conftest.$ac_ext <<_ACEOF
23699 /* end confdefs.h. */
23700 #include <pthread.h>
23704 pthread_t th; pthread_join(th, 0);
23705 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23706 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23711 rm -f conftest.$ac_objext conftest$ac_exeext
23712 if { (ac_try="$ac_link"
23713 case "(($ac_try" in
23714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715 *) ac_try_echo=$ac_try;;
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718 (eval "$ac_link") 2>conftest.er1
23720 grep -v '^ *+' conftest.er1 >conftest.err
23722 cat conftest.err >&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && {
23725 test -z "$ac_c_werror_flag" ||
23726 test ! -s conftest.err
23727 } && test -s conftest$ac_exeext &&
23728 $as_test_x conftest$ac_exeext; then
23731 echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23738 conftest$ac_exeext conftest.$ac_ext
23740 if test "x$ok" = xyes; then
23741 { echo "$as_me:$LINENO: result: yes" >&5
23742 echo "${ECHO_T}yes" >&6; }
23743 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23745 { echo "$as_me:$LINENO: result: no" >&5
23746 echo "${ECHO_T}no" >&6; }
23749 if test x"$ok" = xno; then
23750 # OK, we have run out of ideas
23751 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23752 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23754 # so it's not safe to assume that we may use pthreads
23758 CFLAGS="$save_CFLAGS"
23770 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23771 if test x"$acx_pthread_ok" = xyes; then
23773 cat >>confdefs.h <<\_ACEOF
23774 #define HAVE_PTHREAD 1
23783 ac_cpp='$CPP $CPPFLAGS'
23784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23789 # To make libglog depend on libpthread on Linux, we need to add
23790 # -lpthread in addition to -pthread.
23792 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23793 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23794 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23795 echo $ECHO_N "(cached) $ECHO_C" >&6
23797 ac_check_lib_save_LIBS=$LIBS
23798 LIBS="-lpthread $LIBS"
23799 cat >conftest.$ac_ext <<_ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23806 /* Override any GCC internal prototype to avoid an error.
23807 Use char because int might match the return type of a GCC
23808 builtin and then its argument prototype would still apply. */
23812 char pthread_self ();
23816 return pthread_self ();
23821 rm -f conftest.$ac_objext conftest$ac_exeext
23822 if { (ac_try="$ac_link"
23823 case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828 (eval "$ac_link") 2>conftest.er1
23830 grep -v '^ *+' conftest.er1 >conftest.err
23832 cat conftest.err >&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } && {
23835 test -z "$ac_c_werror_flag" ||
23836 test ! -s conftest.err
23837 } && test -s conftest$ac_exeext &&
23838 $as_test_x conftest$ac_exeext; then
23839 ac_cv_lib_pthread_pthread_self=yes
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23844 ac_cv_lib_pthread_pthread_self=no
23847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23848 conftest$ac_exeext conftest.$ac_ext
23849 LIBS=$ac_check_lib_save_LIBS
23851 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23852 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23853 if test $ac_cv_lib_pthread_pthread_self = yes; then
23854 cat >>confdefs.h <<_ACEOF
23855 #define HAVE_LIBPTHREAD 1
23858 LIBS="-lpthread $LIBS"
23863 # Check if there is google-gflags library installed.
23864 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23865 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23866 if test "${ac_cv_lib_gflags_main+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23869 ac_check_lib_save_LIBS=$LIBS
23870 LIBS="-lgflags $LIBS"
23871 cat >conftest.$ac_ext <<_ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23887 rm -f conftest.$ac_objext conftest$ac_exeext
23888 if { (ac_try="$ac_link"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_link") 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest$ac_exeext &&
23904 $as_test_x conftest$ac_exeext; then
23905 ac_cv_lib_gflags_main=yes
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23910 ac_cv_lib_gflags_main=no
23913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23914 conftest$ac_exeext conftest.$ac_ext
23915 LIBS=$ac_check_lib_save_LIBS
23917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23918 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23919 if test $ac_cv_lib_gflags_main = yes; then
23920 ac_cv_have_libgflags=1
23922 ac_cv_have_libgflags=0
23925 if test x"$ac_cv_have_libgflags" = x"1"; then
23926 GFLAGS_LIBS=-lgflags
23928 cat >>confdefs.h <<\_ACEOF
23929 #define HAVE_LIB_GFLAGS 1
23936 # TODO(hamaji): Use official m4 macros provided by testing libraries
23937 # once the m4 macro of Google Mocking becomes ready.
23938 # Check if there is Google Test library installed.
23939 # Extract the first word of "gtest-config", so it can be a program name with args.
23940 set dummy gtest-config; ac_word=$2
23941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23943 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 if test -n "$GTEST_CONFIG"; then
23947 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
23949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23950 for as_dir in $PATH
23953 test -z "$as_dir" && as_dir=.
23954 for ac_exec_ext in '' $ac_executable_extensions; do
23955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23956 ac_cv_prog_GTEST_CONFIG=""yes""
23957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23966 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
23967 if test -n "$GTEST_CONFIG"; then
23968 { echo "$as_me:$LINENO: result: $GTEST_CONFIG" >&5
23969 echo "${ECHO_T}$GTEST_CONFIG" >&6; }
23971 { echo "$as_me:$LINENO: result: no" >&5
23972 echo "${ECHO_T}no" >&6; }
23976 if test x"$GTEST_CONFIG" = "xyes"; then
23977 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
23978 GTEST_LIBS=`gtest-config --ldflags --libs`
23980 cat >>confdefs.h <<\_ACEOF
23981 #define HAVE_LIB_GTEST 1
23985 # Check if there is Google Mocking library installed.
23986 # Extract the first word of "gmock-config", so it can be a program name with args.
23987 set dummy gmock-config; ac_word=$2
23988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23990 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then
23991 echo $ECHO_N "(cached) $ECHO_C" >&6
23993 if test -n "$GMOCK_CONFIG"; then
23994 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
23996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23997 for as_dir in $PATH
24000 test -z "$as_dir" && as_dir=.
24001 for ac_exec_ext in '' $ac_executable_extensions; do
24002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24003 ac_cv_prog_GMOCK_CONFIG=""yes""
24004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24013 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
24014 if test -n "$GMOCK_CONFIG"; then
24015 { echo "$as_me:$LINENO: result: $GMOCK_CONFIG" >&5
24016 echo "${ECHO_T}$GMOCK_CONFIG" >&6; }
24018 { echo "$as_me:$LINENO: result: no" >&5
24019 echo "${ECHO_T}no" >&6; }
24023 if test x"$GMOCK_CONFIG" = "xyes"; then
24024 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
24025 GMOCK_LIBS=`gmock-config --ldflags --libs`
24027 cat >>confdefs.h <<\_ACEOF
24028 #define HAVE_LIB_GMOCK 1
24032 # We don't run test cases which use Google Mocking framework.
24037 # We'll use src/googletest.h for our unittests.
24041 if test x"$GMOCK_CONFIG" = "xyes"; then
24043 HAVE_GMOCK_FALSE='#'
24045 HAVE_GMOCK_TRUE='#'
24050 # We want to link in libunwind if it exists
24052 # Unfortunately, we need to check the header file in addition to the
24053 # lib file to check if libunwind is available since libunwind-0.98
24054 # doesn't install all necessary header files.
24055 if test x"$ac_cv_have_libunwind_h" = x"1"; then
24056 { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
24057 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
24058 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24061 ac_check_lib_save_LIBS=$LIBS
24062 LIBS="-lunwind $LIBS"
24063 cat >conftest.$ac_ext <<_ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24070 /* Override any GCC internal prototype to avoid an error.
24071 Use char because int might match the return type of a GCC
24072 builtin and then its argument prototype would still apply. */
24080 return backtrace ();
24085 rm -f conftest.$ac_objext conftest$ac_exeext
24086 if { (ac_try="$ac_link"
24087 case "(($ac_try" in
24088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089 *) ac_try_echo=$ac_try;;
24091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24092 (eval "$ac_link") 2>conftest.er1
24094 grep -v '^ *+' conftest.er1 >conftest.err
24096 cat conftest.err >&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest$ac_exeext &&
24102 $as_test_x conftest$ac_exeext; then
24103 ac_cv_lib_unwind_backtrace=yes
24105 echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24108 ac_cv_lib_unwind_backtrace=no
24111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24112 conftest$ac_exeext conftest.$ac_ext
24113 LIBS=$ac_check_lib_save_LIBS
24115 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
24116 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
24117 if test $ac_cv_lib_unwind_backtrace = yes; then
24118 UNWIND_LIBS=-lunwind
24123 if test x"$UNWIND_LIBS" != x""; then
24125 cat >>confdefs.h <<\_ACEOF
24126 #define HAVE_LIB_UNWIND 1
24131 # We'd like to use read/write locks in several places in the code.
24132 # See if our pthreads support extends to that. Note: for linux, it
24133 # does as long as you define _XOPEN_SOURCE appropriately.
24134 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24135 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24136 if test "${ac_rwlock+set}" = set; then
24137 echo $ECHO_N "(cached) $ECHO_C" >&6
24141 ac_cpp='$CPP $CPPFLAGS'
24142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24146 cat >conftest.$ac_ext <<_ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24152 #define _XOPEN_SOURCE 500
24153 #include <pthread.h>
24157 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24158 pthread_rwlock_rdlock(&l);
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168 *) ac_try_echo=$ac_try;;
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171 (eval "$ac_compile") 2>conftest.er1
24173 grep -v '^ *+' conftest.er1 >conftest.err
24175 cat conftest.err >&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); } && {
24178 test -z "$ac_c_werror_flag" ||
24179 test ! -s conftest.err
24180 } && test -s conftest.$ac_objext; then
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24191 ac_cpp='$CPP $CPPFLAGS'
24192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24198 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24199 echo "${ECHO_T}$ac_rwlock" >&6; }
24200 if test "$ac_rwlock" = yes; then
24202 cat >>confdefs.h <<\_ACEOF
24203 #define HAVE_RWLOCK 1
24209 # Find out what namespace 'normal' STL code lives in, and also what namespace
24210 # the user wants our classes to be defined in
24211 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24212 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24213 if test "${ac_cv_cxx_namespaces+set}" = set; then
24214 echo $ECHO_N "(cached) $ECHO_C" >&6
24218 ac_cpp='$CXXCPP $CPPFLAGS'
24219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24223 cat >conftest.$ac_ext <<_ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h. */
24230 namespace Inner { int i = 0; }}
24234 using namespace Outer::Inner; return i;
24239 rm -f conftest.$ac_objext
24240 if { (ac_try="$ac_compile"
24241 case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246 (eval "$ac_compile") 2>conftest.er1
24248 grep -v '^ *+' conftest.er1 >conftest.err
24250 cat conftest.err >&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } && {
24253 test -z "$ac_cxx_werror_flag" ||
24254 test ! -s conftest.err
24255 } && test -s conftest.$ac_objext; then
24256 ac_cv_cxx_namespaces=yes
24258 echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24261 ac_cv_cxx_namespaces=no
24264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 ac_cpp='$CPP $CPPFLAGS'
24267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24272 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24273 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24274 if test "$ac_cv_cxx_namespaces" = yes; then
24276 cat >>confdefs.h <<\_ACEOF
24277 #define HAVE_NAMESPACES 1
24281 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24282 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24283 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24289 ac_cpp='$CXXCPP $CPPFLAGS'
24290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24304 vector<int> t; return 0;
24309 rm -f conftest.$ac_objext
24310 if { (ac_try="$ac_compile"
24311 case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24316 (eval "$ac_compile") 2>conftest.er1
24318 grep -v '^ *+' conftest.er1 >conftest.err
24320 cat conftest.err >&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } && {
24323 test -z "$ac_cxx_werror_flag" ||
24324 test ! -s conftest.err
24325 } && test -s conftest.$ac_objext; then
24326 ac_cv_cxx_stl_namespace=none
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 cat >conftest.$ac_ext <<_ACEOF
24338 cat confdefs.h >>conftest.$ac_ext
24339 cat >>conftest.$ac_ext <<_ACEOF
24340 /* end confdefs.h. */
24345 std::vector<int> t; return 0;
24350 rm -f conftest.$ac_objext
24351 if { (ac_try="$ac_compile"
24352 case "(($ac_try" in
24353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354 *) ac_try_echo=$ac_try;;
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357 (eval "$ac_compile") 2>conftest.er1
24359 grep -v '^ *+' conftest.er1 >conftest.err
24361 cat conftest.err >&5
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); } && {
24364 test -z "$ac_cxx_werror_flag" ||
24365 test ! -s conftest.err
24366 } && test -s conftest.$ac_objext; then
24367 ac_cv_cxx_stl_namespace=std
24369 echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24377 ac_cpp='$CPP $CPPFLAGS'
24378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24384 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24385 if test "$ac_cv_cxx_stl_namespace" = none; then
24387 cat >>confdefs.h <<\_ACEOF
24388 #define STL_NAMESPACE
24392 if test "$ac_cv_cxx_stl_namespace" = std; then
24394 cat >>confdefs.h <<\_ACEOF
24395 #define STL_NAMESPACE std
24400 google_namespace_default=google
24401 # Check whether --enable-namespace was given.
24402 if test "${enable_namespace+set}" = set; then
24403 enableval=$enable_namespace; case "$enableval" in
24404 yes) google_namespace="$google_namespace_default" ;;
24405 no) google_namespace="" ;;
24406 *) google_namespace="$enableval" ;;
24409 google_namespace="$google_namespace_default"
24412 if test -n "$google_namespace"; then
24413 ac_google_namespace="$google_namespace"
24414 ac_google_start_namespace="namespace $google_namespace {"
24415 ac_google_end_namespace="}"
24417 ac_google_namespace=""
24418 ac_google_start_namespace=""
24419 ac_google_end_namespace=""
24422 cat >>confdefs.h <<_ACEOF
24423 #define GOOGLE_NAMESPACE $ac_google_namespace
24427 cat >>confdefs.h <<_ACEOF
24428 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24432 cat >>confdefs.h <<_ACEOF
24433 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24438 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24439 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24440 if test "${ac_cv_cxx_using_operator+set}" = set; then
24441 echo $ECHO_N "(cached) $ECHO_C" >&6
24445 ac_cpp='$CXXCPP $CPPFLAGS'
24446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24450 cat >conftest.$ac_ext <<_ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h. */
24456 #include <iostream>
24457 std::ostream& operator<<(std::ostream&, struct s);
24461 using ::operator<<; return 0;
24466 rm -f conftest.$ac_objext
24467 if { (ac_try="$ac_compile"
24468 case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24475 grep -v '^ *+' conftest.er1 >conftest.err
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_cxx_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest.$ac_objext; then
24483 ac_cv_cxx_using_operator=1
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24488 ac_cv_cxx_using_operator=0
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24493 ac_cpp='$CPP $CPPFLAGS'
24494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24499 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24500 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24501 if test "$ac_cv_cxx_using_operator" = 1; then
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_USING_OPERATOR 1
24509 # We want to access the "PC" (Program Counter) register from a struct
24510 # ucontext. Every system has its own way of doing that. We try all the
24511 # possibilities we know about. Note REG_PC should come first (REG_RIP
24512 # is also defined on solaris, but does the wrong thing).
24513 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24514 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24515 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
24516 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24517 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24518 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
24519 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24520 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
24521 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
24522 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
24523 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
24524 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
24525 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
24526 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
24527 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
24528 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
24529 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
24530 pc_field_found=false
24531 for pc_field in $pc_fields; do
24532 if ! $pc_field_found; then
24533 cat >conftest.$ac_ext <<_ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h. */
24539 #define _GNU_SOURCE 1
24540 #include <ucontext.h>
24544 ucontext_t u; return u.$pc_field == 0;
24549 rm -f conftest.$ac_objext
24550 if { (ac_try="$ac_compile"
24551 case "(($ac_try" in
24552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553 *) ac_try_echo=$ac_try;;
24555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556 (eval "$ac_compile") 2>conftest.er1
24558 grep -v '^ *+' conftest.er1 >conftest.err
24560 cat conftest.err >&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } && {
24563 test -z "$ac_c_werror_flag" ||
24564 test ! -s conftest.err
24565 } && test -s conftest.$ac_objext; then
24567 cat >>confdefs.h <<_ACEOF
24568 #define PC_FROM_UCONTEXT $pc_field
24571 { echo "$as_me:$LINENO: result: $pc_field" >&5
24572 echo "${ECHO_T}$pc_field" >&6; }
24573 pc_field_found=true
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24584 if ! $pc_field_found; then
24585 { echo "$as_me:$LINENO: WARNING: Could not find the PC. Will not output failed addresses..." >&5
24586 echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
24589 # These are what's needed by logging.h.in and raw_logging.h.in
24611 # Write generated configuration file
24612 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"
24614 cat >confcache <<\_ACEOF
24615 # This file is a shell script that caches the results of configure
24616 # tests run on this system so they can be shared between configure
24617 # scripts and configure runs, see configure's option --config-cache.
24618 # It is not useful on other systems. If it contains results you don't
24619 # want to keep, you may remove or edit it.
24621 # config.status only pays attention to the cache file if you give it
24622 # the --recheck option to rerun configure.
24624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24626 # following values.
24630 # The following way of writing the cache mishandles newlines in values,
24631 # but we know of no workaround that is simple, portable, and efficient.
24632 # So, we kill variables containing newlines.
24633 # Ultrix sh set writes to stderr and can't be redirected directly,
24634 # and sets the high bit in the cache file unless we assign to the vars.
24636 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24637 eval ac_val=\$$ac_var
24641 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24642 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24645 _ | IFS | as_nl) ;; #(
24646 *) $as_unset $ac_var ;;
24652 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24653 *${as_nl}ac_space=\ *)
24654 # `set' does not quote correctly, so add quotes (double-quote
24655 # substitution turns \\\\ into \\, and sed turns \\ into \).
24658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24661 # `set' quotes correctly as required by POSIX, so do not add quotes.
24662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24671 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24673 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24675 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24676 if test -w "$cache_file"; then
24677 test "x$cache_file" != "x/dev/null" &&
24678 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24679 echo "$as_me: updating cache $cache_file" >&6;}
24680 cat confcache >$cache_file
24682 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24683 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24688 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24689 # Let make expand exec_prefix.
24690 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24692 DEFS=-DHAVE_CONFIG_H
24696 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24697 # 1. Remove the extension, and $U if already installed.
24698 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24699 ac_i=`echo "$ac_i" | sed "$ac_script"`
24700 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24701 # will be set to the directory where LIBOBJS objects are built.
24702 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24703 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24705 LIBOBJS=$ac_libobjs
24707 LTLIBOBJS=$ac_ltlibobjs
24710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24711 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24712 Usually this means the macro was only invoked conditionally." >&5
24713 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24714 Usually this means the macro was only invoked conditionally." >&2;}
24715 { (exit 1); exit 1; }; }
24717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24718 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24719 Usually this means the macro was only invoked conditionally." >&5
24720 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24721 Usually this means the macro was only invoked conditionally." >&2;}
24722 { (exit 1); exit 1; }; }
24724 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24725 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24726 Usually this means the macro was only invoked conditionally." >&5
24727 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24728 Usually this means the macro was only invoked conditionally." >&2;}
24729 { (exit 1); exit 1; }; }
24731 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
24732 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
24733 Usually this means the macro was only invoked conditionally." >&5
24734 echo "$as_me: error: conditional \"GCC\" was never defined.
24735 Usually this means the macro was only invoked conditionally." >&2;}
24736 { (exit 1); exit 1; }; }
24738 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
24739 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24740 Usually this means the macro was only invoked conditionally." >&5
24741 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24742 Usually this means the macro was only invoked conditionally." >&2;}
24743 { (exit 1); exit 1; }; }
24745 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
24746 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
24747 Usually this means the macro was only invoked conditionally." >&5
24748 echo "$as_me: error: conditional \"X86_64\" was never defined.
24749 Usually this means the macro was only invoked conditionally." >&2;}
24750 { (exit 1); exit 1; }; }
24752 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
24753 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GMOCK\" was never defined.
24754 Usually this means the macro was only invoked conditionally." >&5
24755 echo "$as_me: error: conditional \"HAVE_GMOCK\" was never defined.
24756 Usually this means the macro was only invoked conditionally." >&2;}
24757 { (exit 1); exit 1; }; }
24760 : ${CONFIG_STATUS=./config.status}
24761 ac_clean_files_save=$ac_clean_files
24762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24765 cat >$CONFIG_STATUS <<_ACEOF
24767 # Generated by $as_me.
24768 # Run this file to recreate the current configuration.
24769 # Compiler output produced by configure, useful for debugging
24770 # configure, is in config.log if it exists.
24773 ac_cs_recheck=false
24775 SHELL=\${CONFIG_SHELL-$SHELL}
24778 cat >>$CONFIG_STATUS <<\_ACEOF
24779 ## --------------------- ##
24780 ## M4sh Initialization. ##
24781 ## --------------------- ##
24783 # Be more Bourne compatible
24784 DUALCASE=1; export DUALCASE # for MKS sh
24785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24788 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24789 # is contrary to our usage. Disable this feature.
24790 alias -g '${1+"$@"}'='"$@"'
24791 setopt NO_GLOB_SUBST
24793 case `(set -o) 2>/dev/null` in
24794 *posix*) set -o posix ;;
24803 # Avoid depending upon Character Ranges.
24804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24807 as_cr_digits='0123456789'
24808 as_cr_alnum=$as_cr_Letters$as_cr_digits
24810 # The user is always right.
24811 if test "${PATH_SEPARATOR+set}" != set; then
24812 echo "#! /bin/sh" >conf$$.sh
24813 echo "exit 0" >>conf$$.sh
24815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24823 # Support unset when possible.
24824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24832 # We need space, tab and new line, in precisely that order. Quoting is
24833 # there to prevent editors from complaining about space-tab.
24834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24835 # splitting by setting IFS to empty value.)
24840 # Find who we are. Look in the path if we contain no directory separator.
24842 *[\\/]* ) as_myself=$0 ;;
24843 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24844 for as_dir in $PATH
24847 test -z "$as_dir" && as_dir=.
24848 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24854 # We did not find ourselves, most probably we were run as `sh COMMAND'
24855 # in which case we are not to be found in the path.
24856 if test "x$as_myself" = x; then
24859 if test ! -f "$as_myself"; then
24860 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24861 { (exit 1); exit 1; }
24864 # Work around bugs in pre-3.0 UWIN ksh.
24865 for as_var in ENV MAIL MAILPATH
24866 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24874 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24875 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24876 LC_TELEPHONE LC_TIME
24878 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24879 eval $as_var=C; export $as_var
24881 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24885 # Required to use basename.
24886 if expr a : '\(a\)' >/dev/null 2>&1 &&
24887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24894 as_basename=basename
24900 # Name of the executable.
24901 as_me=`$as_basename -- "$0" ||
24902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24903 X"$0" : 'X\(//\)$' \| \
24904 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24906 sed '/^.*\/\([^/][^/]*\)\/*$/{
24925 as_lineno_1=$LINENO
24926 as_lineno_2=$LINENO
24927 test "x$as_lineno_1" != "x$as_lineno_2" &&
24928 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24930 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24931 # uniformly replaced by the line number. The first 'sed' inserts a
24932 # line-number line after each line using $LINENO; the second 'sed'
24933 # does the real work. The second script uses 'N' to pair each
24934 # line-number line with the line containing $LINENO, and appends
24935 # trailing '-' during substitution so that $LINENO is not a special
24936 # case at line end.
24937 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24938 # scripts with optimization help from Paolo Bonzini. Blame Lee
24939 # E. McMahon (1931-1989) for sed's syntax. :-)
24951 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24954 ' >$as_me.lineno &&
24955 chmod +x "$as_me.lineno" ||
24956 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24957 { (exit 1); exit 1; }; }
24959 # Don't try to exec as it changes $[0], causing all sort of problems
24960 # (the dirname of $[0] is not the place where we might find the
24961 # original and so on. Autoconf is especially sensitive to this).
24962 . "./$as_me.lineno"
24963 # Exit status is that of the last command.
24968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24974 ECHO_C= ECHO_N= ECHO_T=
24975 case `echo -n x` in
24977 case `echo 'x\c'` in
24978 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24985 if expr a : '\(a\)' >/dev/null 2>&1 &&
24986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24992 rm -f conf$$ conf$$.exe conf$$.file
24993 if test -d conf$$.dir; then
24994 rm -f conf$$.dir/conf$$.file
25000 if ln -s conf$$.file conf$$ 2>/dev/null; then
25002 # ... but there are two gotchas:
25003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25005 # In both cases, we have to default to `cp -p'.
25006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25008 elif ln conf$$.file conf$$ 2>/dev/null; then
25013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25014 rmdir conf$$.dir 2>/dev/null
25016 if mkdir -p . 2>/dev/null; then
25019 test -d ./-p && rmdir ./-p
25023 if test -x / >/dev/null 2>&1; then
25024 as_test_x='test -x'
25026 if ls -dL / >/dev/null 2>&1; then
25033 if test -d "$1"; then
25039 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25040 ???[sx]*):;;*)false;;esac;fi
25044 as_executable_p=$as_test_x
25046 # Sed expression to map a string onto a valid CPP name.
25047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25049 # Sed expression to map a string onto a valid variable name.
25050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25055 # Save the log message, to keep $[0] and so on meaningful, and to
25056 # report actual input values of CONFIG_FILES etc. instead of their
25057 # values after options handling.
25059 This file was extended by glog $as_me 0.1.2, which was
25060 generated by GNU Autoconf 2.61. Invocation command line was
25062 CONFIG_FILES = $CONFIG_FILES
25063 CONFIG_HEADERS = $CONFIG_HEADERS
25064 CONFIG_LINKS = $CONFIG_LINKS
25065 CONFIG_COMMANDS = $CONFIG_COMMANDS
25068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25073 cat >>$CONFIG_STATUS <<_ACEOF
25074 # Files that config.status was made for.
25075 config_files="$ac_config_files"
25076 config_headers="$ac_config_headers"
25077 config_commands="$ac_config_commands"
25081 cat >>$CONFIG_STATUS <<\_ACEOF
25083 \`$as_me' instantiates files from templates according to the
25084 current configuration.
25086 Usage: $0 [OPTIONS] [FILE]...
25088 -h, --help print this help, then exit
25089 -V, --version print version number and configuration settings, then exit
25090 -q, --quiet do not print progress messages
25091 -d, --debug don't remove temporary files
25092 --recheck update $as_me by reconfiguring in the same conditions
25093 --file=FILE[:TEMPLATE]
25094 instantiate the configuration file FILE
25095 --header=FILE[:TEMPLATE]
25096 instantiate the configuration header FILE
25098 Configuration files:
25101 Configuration headers:
25104 Configuration commands:
25107 Report bugs to <bug-autoconf@gnu.org>."
25110 cat >>$CONFIG_STATUS <<_ACEOF
25112 glog config.status 0.1.2
25113 configured by $0, generated by GNU Autoconf 2.61,
25114 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25116 Copyright (C) 2006 Free Software Foundation, Inc.
25117 This config.status script is free software; the Free Software Foundation
25118 gives unlimited permission to copy, distribute and modify it."
25126 cat >>$CONFIG_STATUS <<\_ACEOF
25127 # If no file are specified by the user, then we need to provide default
25128 # value. By we need to know if files were specified by the user.
25134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25146 # Handling of the options.
25147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25149 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25150 echo "$ac_cs_version"; exit ;;
25151 --debug | --debu | --deb | --de | --d | -d )
25153 --file | --fil | --fi | --f )
25155 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25156 ac_need_defaults=false;;
25157 --header | --heade | --head | --hea )
25159 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25160 ac_need_defaults=false;;
25162 # Conflict between --help and --header
25163 { echo "$as_me: error: ambiguous option: $1
25164 Try \`$0 --help' for more information." >&2
25165 { (exit 1); exit 1; }; };;
25166 --help | --hel | -h )
25167 echo "$ac_cs_usage"; exit ;;
25168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25169 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25172 # This is an error.
25173 -*) { echo "$as_me: error: unrecognized option: $1
25174 Try \`$0 --help' for more information." >&2
25175 { (exit 1); exit 1; }; } ;;
25177 *) ac_config_targets="$ac_config_targets $1"
25178 ac_need_defaults=false ;;
25184 ac_configure_extra_args=
25186 if $ac_cs_silent; then
25188 ac_configure_extra_args="$ac_configure_extra_args --silent"
25192 cat >>$CONFIG_STATUS <<_ACEOF
25193 if \$ac_cs_recheck; then
25194 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25195 CONFIG_SHELL=$SHELL
25196 export CONFIG_SHELL
25197 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25201 cat >>$CONFIG_STATUS <<\_ACEOF
25205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25206 ## Running $as_me. ##
25212 cat >>$CONFIG_STATUS <<_ACEOF
25216 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25220 cat >>$CONFIG_STATUS <<\_ACEOF
25222 # Handling of arguments.
25223 for ac_config_target in $ac_config_targets
25225 case $ac_config_target in
25226 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25227 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25228 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25229 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25230 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25231 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25232 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25234 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25235 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25236 { (exit 1); exit 1; }; };;
25241 # If the user did not use the arguments to specify the items to instantiate,
25242 # then the envvar interface is used. Set only those that are not.
25243 # We use the long form for the default assignment because of an extremely
25244 # bizarre bug on SunOS 4.1.3.
25245 if $ac_need_defaults; then
25246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25247 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25248 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25251 # Have a temporary directory for convenience. Make it in the build tree
25252 # simply because there is no reason against having it here, and in addition,
25253 # creating and moving files from /tmp can sometimes cause problems.
25254 # Hook for its removal unless debugging.
25255 # Note that there is a small window in which the directory will not be cleaned:
25256 # after its creation but before its name has been assigned to `$tmp'.
25260 trap 'exit_status=$?
25261 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25263 trap '{ (exit 1); exit 1; }' 1 2 13 15
25265 # Create a (secure) tmp directory for tmp files.
25268 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25269 test -n "$tmp" && test -d "$tmp"
25272 tmp=./conf$$-$RANDOM
25273 (umask 077 && mkdir "$tmp")
25276 echo "$me: cannot create a temporary directory in ." >&2
25277 { (exit 1); exit 1; }
25281 # Set up the sed scripts for CONFIG_FILES section.
25284 # No need to generate the scripts if there are no CONFIG_FILES.
25285 # This happens for instance when ./config.status config.h
25286 if test -n "$CONFIG_FILES"; then
25293 for ac_last_try in false false false false false :; do
25294 cat >conf$$subs.sed <<_ACEOF
25295 SHELL!$SHELL$ac_delim
25296 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25297 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25298 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25299 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25300 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25301 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25302 exec_prefix!$exec_prefix$ac_delim
25303 prefix!$prefix$ac_delim
25304 program_transform_name!$program_transform_name$ac_delim
25305 bindir!$bindir$ac_delim
25306 sbindir!$sbindir$ac_delim
25307 libexecdir!$libexecdir$ac_delim
25308 datarootdir!$datarootdir$ac_delim
25309 datadir!$datadir$ac_delim
25310 sysconfdir!$sysconfdir$ac_delim
25311 sharedstatedir!$sharedstatedir$ac_delim
25312 localstatedir!$localstatedir$ac_delim
25313 includedir!$includedir$ac_delim
25314 oldincludedir!$oldincludedir$ac_delim
25315 docdir!$docdir$ac_delim
25316 infodir!$infodir$ac_delim
25317 htmldir!$htmldir$ac_delim
25318 dvidir!$dvidir$ac_delim
25319 pdfdir!$pdfdir$ac_delim
25320 psdir!$psdir$ac_delim
25321 libdir!$libdir$ac_delim
25322 localedir!$localedir$ac_delim
25323 mandir!$mandir$ac_delim
25324 DEFS!$DEFS$ac_delim
25325 ECHO_C!$ECHO_C$ac_delim
25326 ECHO_N!$ECHO_N$ac_delim
25327 ECHO_T!$ECHO_T$ac_delim
25328 LIBS!$LIBS$ac_delim
25329 build_alias!$build_alias$ac_delim
25330 host_alias!$host_alias$ac_delim
25331 target_alias!$target_alias$ac_delim
25332 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25333 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25334 INSTALL_DATA!$INSTALL_DATA$ac_delim
25335 am__isrc!$am__isrc$ac_delim
25336 CYGPATH_W!$CYGPATH_W$ac_delim
25337 PACKAGE!$PACKAGE$ac_delim
25338 VERSION!$VERSION$ac_delim
25339 ACLOCAL!$ACLOCAL$ac_delim
25340 AUTOCONF!$AUTOCONF$ac_delim
25341 AUTOMAKE!$AUTOMAKE$ac_delim
25342 AUTOHEADER!$AUTOHEADER$ac_delim
25343 MAKEINFO!$MAKEINFO$ac_delim
25344 install_sh!$install_sh$ac_delim
25345 STRIP!$STRIP$ac_delim
25346 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25347 mkdir_p!$mkdir_p$ac_delim
25349 SET_MAKE!$SET_MAKE$ac_delim
25350 am__leading_dot!$am__leading_dot$ac_delim
25351 AMTAR!$AMTAR$ac_delim
25352 am__tar!$am__tar$ac_delim
25353 am__untar!$am__untar$ac_delim
25355 CFLAGS!$CFLAGS$ac_delim
25356 LDFLAGS!$LDFLAGS$ac_delim
25357 CPPFLAGS!$CPPFLAGS$ac_delim
25358 ac_ct_CC!$ac_ct_CC$ac_delim
25359 EXEEXT!$EXEEXT$ac_delim
25360 OBJEXT!$OBJEXT$ac_delim
25361 DEPDIR!$DEPDIR$ac_delim
25362 am__include!$am__include$ac_delim
25363 am__quote!$am__quote$ac_delim
25364 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25365 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25366 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25367 CCDEPMODE!$CCDEPMODE$ac_delim
25368 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25369 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25372 CXXFLAGS!$CXXFLAGS$ac_delim
25373 ac_ct_CXX!$ac_ct_CXX$ac_delim
25374 CXXDEPMODE!$CXXDEPMODE$ac_delim
25375 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25376 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25377 GCC_TRUE!$GCC_TRUE$ac_delim
25378 GCC_FALSE!$GCC_FALSE$ac_delim
25379 build!$build$ac_delim
25380 build_cpu!$build_cpu$ac_delim
25381 build_vendor!$build_vendor$ac_delim
25382 build_os!$build_os$ac_delim
25383 host!$host$ac_delim
25384 host_cpu!$host_cpu$ac_delim
25385 host_vendor!$host_vendor$ac_delim
25386 host_os!$host_os$ac_delim
25388 GREP!$GREP$ac_delim
25389 EGREP!$EGREP$ac_delim
25390 LN_S!$LN_S$ac_delim
25391 ECHO!$ECHO$ac_delim
25394 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25396 elif $ac_last_try; then
25397 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25399 { (exit 1); exit 1; }; }
25401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25405 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25406 if test -n "$ac_eof"; then
25407 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25408 ac_eof=`expr $ac_eof + 1`
25411 cat >>$CONFIG_STATUS <<_ACEOF
25412 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25417 s/^/s,@/; s/!/@,|#_!!_#|/
25420 s/'"$ac_delim"'$/,g/; t
25422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25423 ' >>$CONFIG_STATUS <conf$$subs.sed
25424 rm -f conf$$subs.sed
25425 cat >>$CONFIG_STATUS <<_ACEOF
25431 for ac_last_try in false false false false false :; do
25432 cat >conf$$subs.sed <<_ACEOF
25434 RANLIB!$RANLIB$ac_delim
25435 DSYMUTIL!$DSYMUTIL$ac_delim
25436 NMEDIT!$NMEDIT$ac_delim
25437 CXXCPP!$CXXCPP$ac_delim
25439 FFLAGS!$FFLAGS$ac_delim
25440 ac_ct_F77!$ac_ct_F77$ac_delim
25441 LIBTOOL!$LIBTOOL$ac_delim
25442 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25443 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25444 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25445 X86_64_TRUE!$X86_64_TRUE$ac_delim
25446 X86_64_FALSE!$X86_64_FALSE$ac_delim
25447 acx_pthread_config!$acx_pthread_config$ac_delim
25448 PTHREAD_CC!$PTHREAD_CC$ac_delim
25449 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25450 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25451 GTEST_CONFIG!$GTEST_CONFIG$ac_delim
25452 GMOCK_CONFIG!$GMOCK_CONFIG$ac_delim
25453 HAVE_GMOCK_TRUE!$HAVE_GMOCK_TRUE$ac_delim
25454 HAVE_GMOCK_FALSE!$HAVE_GMOCK_FALSE$ac_delim
25455 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25456 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25457 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25458 ac_google_namespace!$ac_google_namespace$ac_delim
25459 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25460 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25461 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25462 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25463 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25464 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25465 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25466 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25467 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25468 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25469 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25470 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25471 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25472 GTEST_CFLAGS!$GTEST_CFLAGS$ac_delim
25473 GMOCK_CFLAGS!$GMOCK_CFLAGS$ac_delim
25474 GTEST_LIBS!$GTEST_LIBS$ac_delim
25475 GMOCK_LIBS!$GMOCK_LIBS$ac_delim
25476 LIBOBJS!$LIBOBJS$ac_delim
25477 LTLIBOBJS!$LTLIBOBJS$ac_delim
25480 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
25482 elif $ac_last_try; then
25483 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25484 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25485 { (exit 1); exit 1; }; }
25487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25491 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25492 if test -n "$ac_eof"; then
25493 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25494 ac_eof=`expr $ac_eof + 1`
25497 cat >>$CONFIG_STATUS <<_ACEOF
25498 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25502 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25503 s/^/s,@/; s/!/@,|#_!!_#|/
25506 s/'"$ac_delim"'$/,g/; t
25508 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25509 ' >>$CONFIG_STATUS <conf$$subs.sed
25510 rm -f conf$$subs.sed
25511 cat >>$CONFIG_STATUS <<_ACEOF
25518 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25519 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25520 # trailing colons and then remove the whole line if VPATH becomes empty
25521 # (actually we leave an empty line to preserve line numbers).
25522 if test "x$srcdir" = x.; then
25523 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25524 s/:*\$(srcdir):*/:/
25525 s/:*\${srcdir}:*/:/
25527 s/^\([^=]*=[ ]*\):*/\1/
25533 cat >>$CONFIG_STATUS <<\_ACEOF
25534 fi # test -n "$CONFIG_FILES"
25537 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25540 :[FHLC]) ac_mode=$ac_tag; continue;;
25542 case $ac_mode$ac_tag in
25544 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25545 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25546 { (exit 1); exit 1; }; };;
25547 :[FH]-) ac_tag=-:-;;
25548 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25565 -) ac_f="$tmp/stdin";;
25566 *) # Look for the file first in the build tree, then in the source tree
25567 # (if the path is not absolute). The absolute path cannot be DOS-style,
25568 # because $ac_f cannot contain `:'.
25572 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25574 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25575 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25576 { (exit 1); exit 1; }; };;
25578 ac_file_inputs="$ac_file_inputs $ac_f"
25581 # Let's still pretend it is `configure' which instantiates (i.e., don't
25582 # use $as_me), people would be surprised to read:
25583 # /* config.h. Generated by config.status. */
25584 configure_input="Generated from "`IFS=:
25585 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25586 if test x"$ac_file" != x-; then
25587 configure_input="$ac_file. $configure_input"
25588 { echo "$as_me:$LINENO: creating $ac_file" >&5
25589 echo "$as_me: creating $ac_file" >&6;}
25593 *:-:* | *:-) cat >"$tmp/stdin";;
25598 ac_dir=`$as_dirname -- "$ac_file" ||
25599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25600 X"$ac_file" : 'X\(//\)[^/]' \| \
25601 X"$ac_file" : 'X\(//\)$' \| \
25602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25608 /^X\(\/\/\)[^/].*/{
25623 -*) as_dir=./$as_dir;;
25625 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25629 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25630 *) as_qdir=$as_dir;;
25632 as_dirs="'$as_qdir' $as_dirs"
25633 as_dir=`$as_dirname -- "$as_dir" ||
25634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25635 X"$as_dir" : 'X\(//\)[^/]' \| \
25636 X"$as_dir" : 'X\(//\)$' \| \
25637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25643 /^X\(\/\/\)[^/].*/{
25656 test -d "$as_dir" && break
25658 test -z "$as_dirs" || eval "mkdir $as_dirs"
25659 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25661 { (exit 1); exit 1; }; }; }
25665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25667 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25668 # A ".." for each directory in $ac_dir_suffix.
25669 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25670 case $ac_top_builddir_sub in
25671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25675 ac_abs_top_builddir=$ac_pwd
25676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25677 # for backward compatibility:
25678 ac_top_builddir=$ac_top_build_prefix
25681 .) # We are building in place.
25683 ac_top_srcdir=$ac_top_builddir_sub
25684 ac_abs_top_srcdir=$ac_pwd ;;
25685 [\\/]* | ?:[\\/]* ) # Absolute name.
25686 ac_srcdir=$srcdir$ac_dir_suffix;
25687 ac_top_srcdir=$srcdir
25688 ac_abs_top_srcdir=$srcdir ;;
25689 *) # Relative name.
25690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25691 ac_top_srcdir=$ac_top_build_prefix$srcdir
25692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25705 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25707 ac_MKDIR_P=$MKDIR_P
25709 [\\/$]* | ?:[\\/]* ) ;;
25710 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25714 cat >>$CONFIG_STATUS <<\_ACEOF
25715 # If the template does not know about datarootdir, expand it.
25716 # FIXME: This hack should be removed a few years after 2.60.
25717 ac_datarootdir_hack=; ac_datarootdir_seen=
25719 case `sed -n '/datarootdir/ {
25728 ' $ac_file_inputs` in
25729 *datarootdir*) ac_datarootdir_seen=yes;;
25730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25731 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25732 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25734 cat >>$CONFIG_STATUS <<_ACEOF
25735 ac_datarootdir_hack='
25736 s&@datadir@&$datadir&g
25737 s&@docdir@&$docdir&g
25738 s&@infodir@&$infodir&g
25739 s&@localedir@&$localedir&g
25740 s&@mandir@&$mandir&g
25741 s&\\\${datarootdir}&$datarootdir&g' ;;
25745 # Neutralize VPATH when `$srcdir' = `.'.
25746 # Shell code in configure.ac might set extrasub.
25747 # FIXME: do we really want to maintain this feature?
25748 cat >>$CONFIG_STATUS <<_ACEOF
25752 cat >>$CONFIG_STATUS <<\_ACEOF
25754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25755 s&@configure_input@&$configure_input&;t t
25756 s&@top_builddir@&$ac_top_builddir_sub&;t t
25757 s&@srcdir@&$ac_srcdir&;t t
25758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25759 s&@top_srcdir@&$ac_top_srcdir&;t t
25760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25761 s&@builddir@&$ac_builddir&;t t
25762 s&@abs_builddir@&$ac_abs_builddir&;t t
25763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25764 s&@INSTALL@&$ac_INSTALL&;t t
25765 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25766 $ac_datarootdir_hack
25767 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25770 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25772 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25773 which seems to be undefined. Please make sure it is defined." >&5
25774 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25775 which seems to be undefined. Please make sure it is defined." >&2;}
25779 -) cat "$tmp/out"; rm -f "$tmp/out";;
25780 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25789 # Transform confdefs.h into a sed script `conftest.defines', that
25790 # substitutes the proper values into config.h.in to produce config.h.
25791 rm -f conftest.defines conftest.tail
25792 # First, append a space to every undef/define line, to ease matching.
25793 echo 's/$/ /' >conftest.defines
25794 # Then, protect against being on the right side of a sed subst, or in
25795 # an unquoted here document, in config.status. If some macros were
25796 # called several times there might be several #defines for the same
25797 # symbol, which is useless. But do not sort them, since the last
25798 # AC_DEFINE must be honored.
25799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25800 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25801 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25802 # PARAMS is the parameter list in the macro definition--in most cases, it's
25803 # just an empty string.
25804 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25805 ac_dB='\\)[ (].*,\\1define\\2'
25813 s/^[ ]*#[ ]*define[ ][ ]*//
25818 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25819 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25820 ' >>conftest.defines
25822 # Remove the space that was appended to ease matching.
25823 # Then replace #undef with comments. This is necessary, for
25824 # example, in the case of _POSIX_SOURCE, which is predefined and required
25825 # on some systems where configure will not decide to define it.
25826 # (The regexp can be short, since the line contains either #define or #undef.)
25828 s,^[ #]*u.*,/* & */,' >>conftest.defines
25830 # Break up conftest.defines:
25831 ac_max_sed_lines=50
25833 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25834 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25835 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25837 ac_in='$ac_file_inputs'
25838 ac_out='"$tmp/out1"'
25839 ac_nxt='"$tmp/out2"'
25843 # Write a here document:
25844 cat >>$CONFIG_STATUS <<_ACEOF
25845 # First, check the format of the line:
25846 cat >"\$tmp/defines.sed" <<\\CEOF
25847 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25848 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25852 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25854 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25855 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25856 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25857 grep . conftest.tail >/dev/null || break
25858 rm -f conftest.defines
25859 mv conftest.tail conftest.defines
25861 rm -f conftest.defines conftest.tail
25863 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25864 cat >>$CONFIG_STATUS <<\_ACEOF
25865 if test x"$ac_file" != x-; then
25866 echo "/* $configure_input */" >"$tmp/config.h"
25867 cat "$ac_result" >>"$tmp/config.h"
25868 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25869 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25870 echo "$as_me: $ac_file is unchanged" >&6;}
25873 mv "$tmp/config.h" $ac_file
25876 echo "/* $configure_input */"
25880 # Compute $ac_file's index in $config_headers.
25883 for _am_header in $config_headers :; do
25884 case $_am_header in
25885 $_am_arg | $_am_arg:* )
25888 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25891 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25892 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25893 X"$_am_arg" : 'X\(//\)[^/]' \| \
25894 X"$_am_arg" : 'X\(//\)$' \| \
25895 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25901 /^X\(\/\/\)[^/].*/{
25913 s/.*/./; q'`/stamp-h$_am_stamp_count
25916 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25917 echo "$as_me: executing $ac_file commands" >&6;}
25922 case $ac_file$ac_mode in
25923 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25924 # Strip MF so we end up with the name of the file.
25925 mf=`echo "$mf" | sed -e 's/:.*$//'`
25926 # Check whether this is an Automake generated Makefile or not.
25927 # We used to match only the files named `Makefile.in', but
25928 # some people rename them; so instead we look at the file content.
25929 # Grep'ing the first line is not enough: some people post-process
25930 # each Makefile.in and add a new line on top of each file to say so.
25931 # Grep'ing the whole file is not good either: AIX grep has a line
25932 # limit of 2048, but all sed's we know have understand at least 4000.
25933 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25934 dirpart=`$as_dirname -- "$mf" ||
25935 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25936 X"$mf" : 'X\(//\)[^/]' \| \
25937 X"$mf" : 'X\(//\)$' \| \
25938 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25944 /^X\(\/\/\)[^/].*/{
25960 # Extract the definition of DEPDIR, am__include, and am__quote
25961 # from the Makefile without running `make'.
25962 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25963 test -z "$DEPDIR" && continue
25964 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25965 test -z "am__include" && continue
25966 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25967 # When using ansi2knr, U may be empty or an underscore; expand it
25968 U=`sed -n 's/^U = //p' < "$mf"`
25969 # Find all dependency output files, they are included files with
25970 # $(DEPDIR) in their names. We invoke sed twice because it is the
25971 # simplest approach to changing $(DEPDIR) to its actual value in the
25973 for file in `sed -n "
25974 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25975 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25976 # Make sure the directory exists.
25977 test -f "$dirpart/$file" && continue
25978 fdir=`$as_dirname -- "$file" ||
25979 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25980 X"$file" : 'X\(//\)[^/]' \| \
25981 X"$file" : 'X\(//\)$' \| \
25982 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25988 /^X\(\/\/\)[^/].*/{
26001 { as_dir=$dirpart/$fdir
26003 -*) as_dir=./$as_dir;;
26005 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26009 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26010 *) as_qdir=$as_dir;;
26012 as_dirs="'$as_qdir' $as_dirs"
26013 as_dir=`$as_dirname -- "$as_dir" ||
26014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26015 X"$as_dir" : 'X\(//\)[^/]' \| \
26016 X"$as_dir" : 'X\(//\)$' \| \
26017 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26023 /^X\(\/\/\)[^/].*/{
26036 test -d "$as_dir" && break
26038 test -z "$as_dirs" || eval "mkdir $as_dirs"
26039 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26040 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26041 { (exit 1); exit 1; }; }; }
26042 # echo "creating $dirpart/$file"
26043 echo '# dummy' > "$dirpart/$file"
26052 { (exit 0); exit 0; }
26054 chmod +x $CONFIG_STATUS
26055 ac_clean_files=$ac_clean_files_save
26058 # configure is writing to config.log, and then calls config.status.
26059 # config.status does its own redirection, appending to config.log.
26060 # Unfortunately, on DOS this fails, as config.log is still kept open
26061 # by configure, so config.status won't be able to write to it; its
26062 # output is simply discarded. So we exec the FD to /dev/null,
26063 # effectively closing config.log, so it can be properly (re)opened and
26064 # appended to by config.status. When coming back to configure, we
26065 # need to make the FD available again.
26066 if test "$no_create" != yes; then
26068 ac_config_status_args=
26069 test "$silent" = yes &&
26070 ac_config_status_args="$ac_config_status_args --quiet"
26072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26075 # would make configure fail if this is the last instruction.
26076 $ac_cs_success || { (exit 1); exit 1; }