2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.1.1.
5 # Report bugs to <opensource@google.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='glog'
731 PACKAGE_VERSION='0.1.1'
732 PACKAGE_STRING='glog 0.1.1'
733 PACKAGE_BUGREPORT='opensource@google.com'
735 ac_unique_file="README"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
879 ENABLE_FRAME_POINTERS_TRUE
880 ENABLE_FRAME_POINTERS_FALSE
888 ac_google_start_namespace
889 ac_google_end_namespace
891 ac_cv_cxx_using_operator
892 ac_cv___attribute___noreturn
893 ac_cv___attribute___printf_4_5
894 ac_cv_have___builtin_expect
896 ac_cv_have_systypes_h
897 ac_cv_have_inttypes_h
906 ac_precious_vars='build_alias
923 # Initialize some variables set by options.
925 ac_init_version=false
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
935 program_transform_name=s,x,x,
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir='${exec_prefix}/bin'
950 sbindir='${exec_prefix}/sbin'
951 libexecdir='${exec_prefix}/libexec'
952 datarootdir='${prefix}/share'
953 datadir='${datarootdir}'
954 sysconfdir='${prefix}/etc'
955 sharedstatedir='${prefix}/com'
956 localstatedir='${prefix}/var'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir='${datarootdir}/info'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030 eval enable_$ac_feature=no ;;
1032 -docdir | --docdir | --docdi | --doc | --do)
1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1035 docdir=$ac_optarg ;;
1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1040 dvidir=$ac_optarg ;;
1042 -enable-* | --enable-*)
1043 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1049 eval enable_$ac_feature=\$ac_optarg ;;
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 htmldir=$ac_optarg ;;
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1094 -libdir | --libdir | --libdi | --libd)
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1185 -psdir | --psdir | --psdi | --psd | --ps)
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 sbindir=$ac_optarg ;;
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 sharedstatedir=$ac_optarg ;;
1211 -site | --site | --sit)
1213 -site=* | --site=* | --sit=*)
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1240 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 { echo "$as_me: error: invalid package name: $ac_package" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246 eval with_$ac_package=\$ac_optarg ;;
1248 -without-* | --without-*)
1249 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1258 # Obsolete; use --with-x.
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) { echo "$as_me: error: unrecognized option: $ac_option
1276 Try \`$0 --help' for more information." >&2
1277 { (exit 1); exit 1; }; }
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1285 { (exit 1); exit 1; }; }
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 { echo "$as_me: error: missing argument to $ac_option" >&2
1303 { (exit 1); exit 1; }; }
1306 # Be sure to have absolute directory names.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1318 { (exit 1); exit 1; }; }
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1326 target=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342 test "$silent" = yes && exec 6>/dev/null
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 { echo "$as_me: error: Working directory cannot be determined" >&2
1349 { (exit 1); exit 1; }; }
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 { echo "$as_me: error: pwd does not report name of working directory" >&2
1352 { (exit 1); exit 1; }; }
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$0" ||
1360 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$0" : 'X\(//\)[^/]' \| \
1362 X"$0" : 'X\(//\)$' \| \
1363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1392 { (exit 1); exit 1; }; }
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1397 { (exit 1); exit 1; }; }
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 # Report the --help message.
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1423 \`configure' configures glog 0.1.1 to adapt to many kinds of systems.
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1430 Defaults for the options are specified in brackets.
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1454 For better control, use the options below.
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1481 --program-prefix=PREFIX prepend PREFIX to installed program names
1482 --program-suffix=SUFFIX append SUFFIX to installed program names
1483 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486 --build=BUILD configure for building on BUILD [guessed]
1487 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 if test -n "$ac_init_help"; then
1492 case $ac_init_help in
1493 short | recursive ) echo "Configuration of glog 0.1.1:";;
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --disable-dependency-tracking speeds up one-time build
1501 --enable-dependency-tracking do not reject slow dependency extractors
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --enable-frame-pointers On x86_64 systems, compile with
1508 -fno-omit-frame-pointer (see INSTALL)
1509 --enable-namespace=FOO to define these Google
1510 classes in the FOO namespace. --disable-namespace
1511 to define them in the global namespace. Default
1512 is to define them in namespace google.
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518 --with-pic try to use only PIC/non-PIC objects [default=use
1520 --with-tags[=TAGS] include additional configurations [automatic]
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1533 CXXCPP C++ preprocessor
1534 F77 Fortran 77 compiler command
1535 FFLAGS Fortran 77 compiler flags
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1540 Report bugs to <opensource@google.com>.
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" || continue
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1568 .) # We are building in place.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1592 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1601 glog configure 0.1.1
1602 generated by GNU Autoconf 2.61
1604 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1605 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1611 cat >config.log <<_ACEOF
1612 This file contains any messages produced by compilers while
1613 running configure, to aid debugging if configure makes a mistake.
1615 It was created by glog $as_me 0.1.1, which was
1616 generated by GNU Autoconf 2.61. Invocation command line was
1628 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1637 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1638 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1639 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1641 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1642 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1643 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 test -z "$as_dir" && as_dir=.
1652 echo "PATH: $as_dir"
1668 # Keep a trace of the command line.
1669 # Strip out --no-create and --no-recursion so they do not pile up.
1670 # Strip out --silent because we don't want to record it for future runs.
1671 # Also quote any args containing shell meta-characters.
1672 # Make two passes to allow for proper duplicate-argument suppression.
1676 ac_must_keep_next=false
1682 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684 | -silent | --silent | --silen | --sile | --sil)
1687 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1690 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693 if test $ac_must_keep_next = true; then
1694 ac_must_keep_next=false # Got value, back to normal.
1697 *=* | --config-cache | -C | -disable-* | --disable-* \
1698 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700 | -with-* | --with-* | -without-* | --without-* | --x)
1701 case "$ac_configure_args0 " in
1702 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1705 -* ) ac_must_keep_next=true ;;
1708 ac_configure_args="$ac_configure_args '$ac_arg'"
1713 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716 # When interrupted or exit'd, cleanup temporary files, and complete
1717 # config.log. We remove comments because anyway the quotes in there
1718 # would cause problems or look ugly.
1719 # WARNING: Use '\'' to represent an apostrophe within the trap.
1720 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721 trap 'exit_status=$?
1722 # Save into config.log some information that might help in debugging.
1727 ## ---------------- ##
1728 ## Cache variables. ##
1729 ## ---------------- ##
1732 # The following way of writing the cache mishandles newlines in values,
1734 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735 eval ac_val=\$$ac_var
1739 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1740 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1743 _ | IFS | as_nl) ;; #(
1744 *) $as_unset $ac_var ;;
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1769 for ac_var in $ac_subst_vars
1771 eval ac_val=\$$ac_var
1773 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 echo "$ac_var='\''$ac_val'\''"
1779 if test -n "$ac_subst_files"; then
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1786 for ac_var in $ac_subst_files
1788 eval ac_val=\$$ac_var
1790 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 echo "$ac_var='\''$ac_val'\''"
1797 if test -s confdefs.h; then
1807 test "$ac_signal" != 0 &&
1808 echo "$as_me: caught signal $ac_signal"
1809 echo "$as_me: exit $exit_status"
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815 for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1823 # Predefined preprocessor variables.
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer explicitly selected file to automatically selected ones.
1852 if test -n "$CONFIG_SITE"; then
1853 set x "$CONFIG_SITE"
1854 elif test "x$prefix" != xNONE; then
1855 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857 set x "$ac_default_prefix/share/config.site" \
1858 "$ac_default_prefix/etc/config.site"
1863 if test -r "$ac_site_file"; then
1864 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865 echo "$as_me: loading site script $ac_site_file" >&6;}
1866 sed 's/^/| /' "$ac_site_file" >&5
1871 if test -r "$cache_file"; then
1872 # Some versions of bash will fail to source /dev/null (special
1873 # files actually), so we avoid doing that.
1874 if test -f "$cache_file"; then
1875 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876 echo "$as_me: loading cache $cache_file" >&6;}
1878 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879 *) . "./$cache_file";;
1883 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884 echo "$as_me: creating cache $cache_file" >&6;}
1888 # Check that the precious variables saved in the cache have kept the same
1890 ac_cache_corrupted=false
1891 for ac_var in $ac_precious_vars; do
1892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893 eval ac_new_set=\$ac_env_${ac_var}_set
1894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895 eval ac_new_val=\$ac_env_${ac_var}_value
1896 case $ac_old_set,$ac_new_set in
1898 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1902 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1907 if test "x$ac_old_val" != "x$ac_new_val"; then
1908 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1911 echo "$as_me: former value: $ac_old_val" >&2;}
1912 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1913 echo "$as_me: current value: $ac_new_val" >&2;}
1914 ac_cache_corrupted=:
1917 # Pass precious variables to config.status.
1918 if test "$ac_new_set" = set; then
1920 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 *) ac_arg=$ac_var=$ac_new_val ;;
1923 case " $ac_configure_args " in
1924 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1925 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929 if $ac_cache_corrupted; then
1930 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1934 { (exit 1); exit 1; }; }
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968 # The argument here is just something that should be in the current directory
1969 # (for sanity checking)
1971 am__api_version='1.10'
1974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1975 if test -f "$ac_dir/install-sh"; then
1977 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 elif test -f "$ac_dir/install.sh"; then
1981 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 elif test -f "$ac_dir/shtool"; then
1985 ac_install_sh="$ac_aux_dir/shtool install -c"
1989 if test -z "$ac_aux_dir"; then
1990 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1991 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1992 { (exit 1); exit 1; }; }
1995 # These three variables are undocumented and unsupported,
1996 # and are intended to be withdrawn in a future Autoconf release.
1997 # They can cause serious problems if a builder's source tree is in a directory
1998 # whose full name contains unusual characters.
1999 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2000 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2001 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2019 if test -z "$INSTALL"; then
2020 if test "${ac_cv_path_install+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 # Account for people who put trailing slashes in PATH elements.
2030 ./ | .// | /cC/* | \
2031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2035 # OSF1 and SCO ODT 3.0 have their own names for install.
2036 # Don't use installbsd from OSF since it installs stuff as root
2038 for ac_prog in ginstall scoinst install; do
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2041 if test $ac_prog = install &&
2042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043 # AIX install. It has an incompatible calling convention.
2045 elif test $ac_prog = install &&
2046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047 # program-specific install script used by HP pwplus--don't use.
2050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2063 if test "${ac_cv_path_install+set}" = set; then
2064 INSTALL=$ac_cv_path_install
2066 # As a last resort, use the slow shell script. Don't cache a
2067 # value for INSTALL within a source directory, because that will
2068 # break other packages using the cache if that directory is
2069 # removed, or if the value is a relative name.
2070 INSTALL=$ac_install_sh
2073 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2074 echo "${ECHO_T}$INSTALL" >&6; }
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077 # It thinks the first close brace ends the variable substitution.
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2088 echo timestamp > conftest.file
2089 # Do `set' in a subshell so we don't clobber the current shell's
2090 # arguments. Must try -L first in case configure is actually a
2091 # symlink; some systems play weird games with the mod time of symlinks
2092 # (eg FreeBSD returns the mod time of the symlink's containing
2095 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2096 if test "$*" = "X"; then
2098 set X `ls -t $srcdir/configure conftest.file`
2101 if test "$*" != "X $srcdir/configure conftest.file" \
2102 && test "$*" != "X conftest.file $srcdir/configure"; then
2104 # If neither matched, then we have a broken ls. This can happen
2105 # if, for instance, CONFIG_SHELL is bash and it inherits a
2106 # broken ls alias from the environment. This has actually
2107 # happened. Such a system could not be considered "sane".
2108 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2109 alias in your environment" >&5
2110 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2111 alias in your environment" >&2;}
2112 { (exit 1); exit 1; }; }
2115 test "$2" = conftest.file
2121 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2122 Check your system clock" >&5
2123 echo "$as_me: error: newly created file is older than distributed files!
2124 Check your system clock" >&2;}
2125 { (exit 1); exit 1; }; }
2127 { echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6; }
2129 test "$program_prefix" != NONE &&
2130 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2131 # Use a double $ so make ignores it.
2132 test "$program_suffix" != NONE &&
2133 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2134 # Double any \ or $. echo might interpret backslashes.
2135 # By default was `s,x,x', remove it if useless.
2136 cat <<\_ACEOF >conftest.sed
2137 s/[\\$]/&&/g;s/;s,x,x,$//
2139 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2142 # expand $ac_aux_dir to an absolute path
2143 am_aux_dir=`cd $ac_aux_dir && pwd`
2145 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2146 # Use eval to expand $SHELL
2147 if eval "$MISSING --run true"; then
2148 am_missing_run="$MISSING --run "
2151 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2155 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2156 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2157 if test -z "$MKDIR_P"; then
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2165 test -z "$as_dir" && as_dir=.
2166 for ac_prog in mkdir gmkdir; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2170 'mkdir (GNU coreutils) '* | \
2171 'mkdir (coreutils) '* | \
2172 'mkdir (fileutils) '4.1*)
2173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2183 if test "${ac_cv_path_mkdir+set}" = set; then
2184 MKDIR_P="$ac_cv_path_mkdir -p"
2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for MKDIR_P within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 test -d ./--version && rmdir ./--version
2191 MKDIR_P="$ac_install_sh -d"
2194 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2195 echo "${ECHO_T}$MKDIR_P" >&6; }
2199 [\\/$]* | ?:[\\/]*) ;;
2200 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2203 for ac_prog in gawk mawk nawk awk
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy $ac_prog; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_AWK+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$AWK"; then
2213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_AWK="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 if test -n "$AWK"; then
2234 { echo "$as_me:$LINENO: result: $AWK" >&5
2235 echo "${ECHO_T}$AWK" >&6; }
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2242 test -n "$AWK" && break
2245 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.make <<\_ACEOF
2254 @echo '@@@%%%=$(MAKE)=@@@%%%'
2256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2257 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259 eval ac_cv_prog_make_${ac_make}_set=yes;;
2261 eval ac_cv_prog_make_${ac_make}_set=no;;
2265 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 SET_MAKE="MAKE=${MAKE-make}"
2275 rm -rf .tst 2>/dev/null
2276 mkdir .tst 2>/dev/null
2277 if test -d .tst; then
2282 rmdir .tst 2>/dev/null
2284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2286 # is not polluted with repeated "-I."
2287 am__isrc=' -I$(srcdir)'
2288 # test to see if srcdir already configured
2289 if test -f $srcdir/config.status; then
2290 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2296 # test whether we have cygpath
2297 if test -z "$CYGPATH_W"; then
2298 if (cygpath --version) >/dev/null 2>/dev/null; then
2299 CYGPATH_W='cygpath -w'
2306 # Define the identity of the package.
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE "$PACKAGE"
2316 cat >>confdefs.h <<_ACEOF
2317 #define VERSION "$VERSION"
2320 # Some tools Automake needs.
2322 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2325 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2328 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2331 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2334 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2336 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2338 # Installed binaries are usually stripped using `strip' when the user
2339 # run `make install-strip'. However `strip' might not be the right
2340 # tool to use in cross-compilation environments, therefore Automake
2341 # will honor the `STRIP' environment variable to overrule this program.
2342 if test "$cross_compiling" != no; then
2343 if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2345 set dummy ${ac_tool_prefix}strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$STRIP"; then
2352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 STRIP=$ac_cv_prog_STRIP
2372 if test -n "$STRIP"; then
2373 { echo "$as_me:$LINENO: result: $STRIP" >&5
2374 echo "${ECHO_T}$STRIP" >&6; }
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2382 if test -z "$ac_cv_prog_STRIP"; then
2384 # Extract the first word of "strip", so it can be a program name with args.
2385 set dummy strip; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$ac_ct_STRIP"; then
2392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_ac_ct_STRIP="strip"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2412 if test -n "$ac_ct_STRIP"; then
2413 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2414 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2420 if test "x$ac_ct_STRIP" = x; then
2423 case $cross_compiling:$ac_tool_warned in
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2436 STRIP="$ac_cv_prog_STRIP"
2440 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2442 # We need awk for the "check" target. The system "awk" is bad on
2444 # Always define AMTAR for backward compatibility.
2446 AMTAR=${AMTAR-"${am_missing_run}tar"}
2448 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2454 ac_config_headers="$ac_config_headers src/config.h"
2457 # Checks for programs.
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 if test -n "$CC"; then
2493 { echo "$as_me:$LINENO: result: $CC" >&5
2494 echo "${ECHO_T}$CC" >&6; }
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2502 if test -z "$ac_cv_prog_CC"; then
2504 # Extract the first word of "gcc", so it can be a program name with args.
2505 set dummy gcc; ac_word=$2
2506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 if test -n "$ac_ct_CC"; then
2512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_CC="gcc"
2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2532 if test -n "$ac_ct_CC"; then
2533 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2534 echo "${ECHO_T}$ac_ct_CC" >&6; }
2536 { echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6; }
2540 if test "x$ac_ct_CC" = x; then
2543 case $cross_compiling:$ac_tool_warned in
2545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2546 whose name does not start with the host triplet. If you think this
2547 configuration is useful to you, please write to autoconf@gnu.org." >&5
2548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2549 whose name does not start with the host triplet. If you think this
2550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2551 ac_tool_warned=yes ;;
2559 if test -z "$CC"; then
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}cc; ac_word=$2
2563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_CC="${ac_tool_prefix}cc"
2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 if test -n "$CC"; then
2590 { echo "$as_me:$LINENO: result: $CC" >&5
2591 echo "${ECHO_T}$CC" >&6; }
2593 { echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6; }
2600 if test -z "$CC"; then
2601 # Extract the first word of "cc", so it can be a program name with args.
2602 set dummy cc; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2620 ac_prog_rejected=yes
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 if test $ac_prog_rejected = yes; then
2632 # We found a bogon in the path, so make sure we never use it.
2633 set dummy $ac_cv_prog_CC
2635 if test $# != 0; then
2636 # We chose a different compiler from the bogus one.
2637 # However, it has the same basename, so the bogon will be chosen
2638 # first if we set CC to just the basename; use the full file name.
2640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2646 if test -n "$CC"; then
2647 { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2650 { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2656 if test -z "$CC"; then
2657 if test -n "$ac_tool_prefix"; then
2658 for ac_prog in cl.exe
2660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_CC+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test -n "$CC"; then
2689 { echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6; }
2692 { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2697 test -n "$CC" && break
2700 if test -z "$CC"; then
2702 for ac_prog in cl.exe
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_ac_ct_CC="$ac_prog"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732 if test -n "$ac_ct_CC"; then
2733 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2734 echo "${ECHO_T}$ac_ct_CC" >&6; }
2736 { echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6; }
2741 test -n "$ac_ct_CC" && break
2744 if test "x$ac_ct_CC" = x; then
2747 case $cross_compiling:$ac_tool_warned in
2749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2750 whose name does not start with the host triplet. If you think this
2751 configuration is useful to you, please write to autoconf@gnu.org." >&5
2752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet. If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2755 ac_tool_warned=yes ;;
2764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2765 See \`config.log' for more details." >&5
2766 echo "$as_me: error: no acceptable C compiler found in \$PATH
2767 See \`config.log' for more details." >&2;}
2768 { (exit 1); exit 1; }; }
2770 # Provide some information about the compiler.
2771 echo "$as_me:$LINENO: checking for C compiler version" >&5
2772 ac_compiler=`set X $ac_compile; echo $2`
2773 { (ac_try="$ac_compiler --version >&5"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compiler --version >&5") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2783 { (ac_try="$ac_compiler -v >&5"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compiler -v >&5") 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }
2793 { (ac_try="$ac_compiler -V >&5"
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_compiler -V >&5") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }
2804 cat >conftest.$ac_ext <<_ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2819 ac_clean_files_save=$ac_clean_files
2820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2821 # Try to create an executable without -o first, disregard a.out.
2822 # It will help us diagnose broken compilers, and finding out an intuition
2824 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2825 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2828 # List of possible output files, starting from the most likely.
2829 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2830 # only as a last resort. b.out is created by i960 compilers.
2831 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2833 # The IRIX 6 linker writes into existing files which may not be
2834 # executable, retaining their permissions. Remove them first so a
2835 # subsequent execution test works.
2837 for ac_file in $ac_files
2840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2846 if { (ac_try="$ac_link_default"
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_link_default") 2>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; then
2856 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2857 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2858 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2859 # so that the user can short-circuit this test for compilers unknown to
2861 for ac_file in $ac_files ''
2863 test -f "$ac_file" || continue
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2868 # We found the default executable, but exeext='' is most
2872 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2874 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876 # We set ac_cv_exeext here because the later test for it is not
2877 # safe: cross compilers may not add the suffix if given an `-o'
2878 # argument, so we may need to know it at that point already.
2879 # Even if this section looks crufty: it has the advantage of
2886 test "$ac_cv_exeext" = no && ac_cv_exeext=
2892 { echo "$as_me:$LINENO: result: $ac_file" >&5
2893 echo "${ECHO_T}$ac_file" >&6; }
2894 if test -z "$ac_file"; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: C compiler cannot create executables
2901 See \`config.log' for more details." >&2;}
2902 { (exit 77); exit 77; }; }
2905 ac_exeext=$ac_cv_exeext
2907 # Check that the compiler produces executables we can run. If not, either
2908 # the compiler is broken, or we cross compile.
2909 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2910 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2911 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2912 # If not cross compiling, check that we can run a simple program.
2913 if test "$cross_compiling" != yes; then
2914 if { ac_try='./$ac_file'
2915 { (case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_try") 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2926 if test "$cross_compiling" = maybe; then
2929 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2930 If you meant to cross compile, use \`--host'.
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: cannot run C compiled programs.
2933 If you meant to cross compile, use \`--host'.
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
2939 { echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6; }
2942 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2943 ac_clean_files=$ac_clean_files_save
2944 # Check that the compiler produces executables we can run. If not, either
2945 # the compiler is broken, or we cross compile.
2946 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2947 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2948 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2949 echo "${ECHO_T}$cross_compiling" >&6; }
2951 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2952 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2953 if { (ac_try="$ac_link"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_link") 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
2963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2964 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2965 # work properly (i.e., refer to `conftest.exe'), while it won't with
2967 for ac_file in conftest.exe conftest conftest.*; do
2968 test -f "$ac_file" || continue
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details." >&5
2979 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2980 See \`config.log' for more details." >&2;}
2981 { (exit 1); exit 1; }; }
2984 rm -f conftest$ac_cv_exeext
2985 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2986 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2988 rm -f conftest.$ac_ext
2989 EXEEXT=$ac_cv_exeext
2991 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2992 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2993 if test "${ac_cv_objext+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.o conftest.obj
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; then
3022 for ac_file in conftest.o conftest.obj conftest.*; do
3023 test -f "$ac_file" || continue;
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3037 See \`config.log' for more details." >&2;}
3038 { (exit 1); exit 1; }; }
3041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3044 echo "${ECHO_T}$ac_cv_objext" >&6; }
3045 OBJEXT=$ac_cv_objext
3047 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3048 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3049 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && {
3084 test -z "$ac_c_werror_flag" ||
3085 test ! -s conftest.err
3086 } && test -s conftest.$ac_objext; then
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3099 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3100 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3101 GCC=`test $ac_compiler_gnu = yes && echo yes`
3102 ac_test_CFLAGS=${CFLAGS+set}
3103 ac_save_CFLAGS=$CFLAGS
3104 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3105 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3106 if test "${ac_cv_prog_cc_g+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 ac_save_c_werror_flag=$ac_c_werror_flag
3110 ac_c_werror_flag=yes
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1 >conftest.err
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } && {
3142 test -z "$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 } && test -s conftest.$ac_objext; then
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>conftest.er1
3175 grep -v '^ *+' conftest.er1 >conftest.err
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && {
3180 test -z "$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 } && test -s conftest.$ac_objext; then
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 ac_c_werror_flag=$ac_save_c_werror_flag
3190 cat >conftest.$ac_ext <<_ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_compile") 2>conftest.er1
3214 grep -v '^ *+' conftest.er1 >conftest.err
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } && {
3219 test -z "$ac_c_werror_flag" ||
3220 test ! -s conftest.err
3221 } && test -s conftest.$ac_objext; then
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_c_werror_flag=$ac_save_c_werror_flag
3239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3241 if test "$ac_test_CFLAGS" = set; then
3242 CFLAGS=$ac_save_CFLAGS
3243 elif test $ac_cv_prog_cc_g = yes; then
3244 if test "$GCC" = yes; then
3250 if test "$GCC" = yes; then
3256 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3257 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3258 if test "${ac_cv_prog_cc_c89+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 ac_cv_prog_cc_c89=no
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3271 #include <sys/types.h>
3272 #include <sys/stat.h>
3273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3274 struct buf { int x; };
3275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276 static char *e (p, i)
3282 static char *f (char * (*g) (char **, int), char **p, ...)
3287 s = g (p, va_arg (v,int));
3292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3293 function prototypes and stuff, but not '\xHH' hex character constants.
3294 These don't provoke an error unfortunately, instead are silently treated
3295 as 'x'. The following induces an error, until -std is added to get
3296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3297 array size at least. It's necessary to write '\x00'==0 to get something
3298 that's true only with -std. */
3299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3302 inside strings and character constants. */
3304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3306 int test (int i, double x);
3307 struct s1 {int (*f) (int a);};
3308 struct s2 {int (*f) (double a);};
3309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3323 CC="$ac_save_CC $ac_arg"
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_compile") 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } && {
3338 test -z "$ac_c_werror_flag" ||
3339 test ! -s conftest.err
3340 } && test -s conftest.$ac_objext; then
3341 ac_cv_prog_cc_c89=$ac_arg
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3349 rm -f core conftest.err conftest.$ac_objext
3350 test "x$ac_cv_prog_cc_c89" != "xno" && break
3352 rm -f conftest.$ac_ext
3357 case "x$ac_cv_prog_cc_c89" in
3359 { echo "$as_me:$LINENO: result: none needed" >&5
3360 echo "${ECHO_T}none needed" >&6; } ;;
3362 { echo "$as_me:$LINENO: result: unsupported" >&5
3363 echo "${ECHO_T}unsupported" >&6; } ;;
3365 CC="$CC $ac_cv_prog_cc_c89"
3366 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3367 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 DEPDIR="${am__leading_dot}deps"
3378 ac_config_commands="$ac_config_commands depfiles"
3381 am_make=${MAKE-make}
3382 cat > confinc << 'END'
3387 # If we don't find an include directive, just comment out the code.
3388 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3389 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3393 # First try GNU make style include.
3394 echo "include confinc" > confmf
3395 # We grep out `Entering directory' and `Leaving directory'
3396 # messages which can occur if `w' ends up in MAKEFLAGS.
3397 # In particular we don't look at `^make:' because GNU make might
3398 # be invoked under some other name (usually "gmake"), in which
3399 # case it prints its new name instead of `make'.
3400 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3405 # Now try BSD make style include.
3406 if test "$am__include" = "#"; then
3407 echo '.include "confinc"' > confmf
3408 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3409 am__include=.include
3416 { echo "$as_me:$LINENO: result: $_am_result" >&5
3417 echo "${ECHO_T}$_am_result" >&6; }
3418 rm -f confinc confmf
3420 # Check whether --enable-dependency-tracking was given.
3421 if test "${enable_dependency_tracking+set}" = set; then
3422 enableval=$enable_dependency_tracking;
3425 if test "x$enable_dependency_tracking" != xno; then
3426 am_depcomp="$ac_aux_dir/depcomp"
3429 if test "x$enable_dependency_tracking" != xno; then
3439 depcc="$CC" am_compiler_list=
3441 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3442 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3443 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3447 # We make a subdir and do the tests there. Otherwise we can end up
3448 # making bogus files that we don't know about and never remove. For
3449 # instance it was reported that on HP-UX the gcc test will end up
3450 # making a dummy file named `D' -- because `-MD' means `put the output
3453 # Copy depcomp to subdir because otherwise we won't find it if we're
3454 # using a relative directory.
3455 cp "$am_depcomp" conftest.dir
3457 # We will build objects and dependencies in a subdirectory because
3458 # it helps to detect inapplicable dependency modes. For instance
3459 # both Tru64's cc and ICC support -MD to output dependencies as a
3460 # side effect of compilation, but ICC will put the dependencies in
3461 # the current directory while Tru64 will put them in the object
3465 am_cv_CC_dependencies_compiler_type=none
3466 if test "$am_compiler_list" = ""; then
3467 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3469 for depmode in $am_compiler_list; do
3470 # Setup a source with many dependencies, because some compilers
3471 # like to wrap large dependency lists on column 80 (with \), and
3472 # we should not choose a depcomp mode which is confused by this.
3474 # We need to recreate these files for each test, as the compiler may
3475 # overwrite some of them when testing with obscure command lines.
3476 # This happens at least with the AIX C compiler.
3478 for i in 1 2 3 4 5 6; do
3479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3480 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3481 # Solaris 8's {/usr,}/bin/sh.
3482 touch sub/conftst$i.h
3484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3488 # after this tag, mechanisms are not by side-effect, so they'll
3489 # only be used when explicitly requested
3490 if test "x$enable_dependency_tracking" = xyes; then
3498 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3499 # mode. It turns out that the SunPro C++ compiler does not properly
3500 # handle `-M -o', and we need to detect this.
3501 if depmode=$depmode \
3502 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3503 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3504 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3505 >/dev/null 2>conftest.err &&
3506 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3507 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3508 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3509 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3510 # icc doesn't choke on unknown options, it will just issue warnings
3511 # or remarks (even with -Werror). So we grep stderr for any message
3512 # that says an option was ignored or not supported.
3513 # When given -MP, icc 7.0 and 7.1 complain thusly:
3514 # icc: Command line warning: ignoring option '-M'; no argument required
3515 # The diagnosis changed in icc 8.0:
3516 # icc: Command line remark: option '-MP' not supported
3517 if (grep 'ignoring option' conftest.err ||
3518 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3519 am_cv_CC_dependencies_compiler_type=$depmode
3528 am_cv_CC_dependencies_compiler_type=none
3532 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3533 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3534 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3537 test "x$enable_dependency_tracking" != xno \
3538 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3540 am__fastdepCC_FALSE='#'
3542 am__fastdepCC_TRUE='#'
3543 am__fastdepCC_FALSE=
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3553 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3554 # On Suns, sometimes $CPP names a directory.
3555 if test -n "$CPP" && test -d "$CPP"; then
3558 if test -z "$CPP"; then
3559 if test "${ac_cv_prog_CPP+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 # Double quotes because CPP needs to be expanded
3563 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3566 for ac_c_preproc_warn_flag in '' yes
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3581 # include <limits.h>
3583 # include <assert.h>
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } >/dev/null && {
3600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3601 test ! -s conftest.err
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 # Broken: fails on valid input.
3612 rm -f conftest.err conftest.$ac_ext
3614 # OK, works on sane cases. Now check whether nonexistent headers
3615 # can be detected and how.
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3624 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } >/dev/null && {
3637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3640 # Broken: success on invalid input.
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 # Passes both tests.
3651 rm -f conftest.err conftest.$ac_ext
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then
3668 { echo "$as_me:$LINENO: result: $CPP" >&5
3669 echo "${ECHO_T}$CPP" >&6; }
3671 for ac_c_preproc_warn_flag in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat >conftest.$ac_ext <<_ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3686 # include <limits.h>
3688 # include <assert.h>
3692 if { (ac_try="$ac_cpp conftest.$ac_ext"
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3700 grep -v '^ *+' conftest.er1 >conftest.err
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } >/dev/null && {
3705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 # Broken: fails on valid input.
3717 rm -f conftest.err conftest.$ac_ext
3719 # OK, works on sane cases. Now check whether nonexistent headers
3720 # can be detected and how.
3721 cat >conftest.$ac_ext <<_ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 #include <ac_nonexistent.h>
3729 if { (ac_try="$ac_cpp conftest.$ac_ext"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3737 grep -v '^ *+' conftest.er1 >conftest.err
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } >/dev/null && {
3742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3743 test ! -s conftest.err
3745 # Broken: success on invalid input.
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 # Passes both tests.
3756 rm -f conftest.err conftest.$ac_ext
3759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3760 rm -f conftest.err conftest.$ac_ext
3761 if $ac_preproc_ok; then
3764 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3767 See \`config.log' for more details." >&2;}
3768 { (exit 1); exit 1; }; }
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 ac_cpp='$CXXCPP $CPPFLAGS'
3779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3782 if test -z "$CXX"; then
3783 if test -n "$CCC"; then
3786 if test -n "$ac_tool_prefix"; then
3787 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3793 if test "${ac_cv_prog_CXX+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -n "$CXX"; then
3797 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 if test -n "$CXX"; then
3818 { echo "$as_me:$LINENO: result: $CXX" >&5
3819 echo "${ECHO_T}$CXX" >&6; }
3821 { echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6; }
3826 test -n "$CXX" && break
3829 if test -z "$CXX"; then
3831 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy $ac_prog; ac_word=$2
3835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 if test -n "$ac_ct_CXX"; then
3841 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_ac_ct_CXX="$ac_prog"
3851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3861 if test -n "$ac_ct_CXX"; then
3862 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3863 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3865 { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3870 test -n "$ac_ct_CXX" && break
3873 if test "x$ac_ct_CXX" = x; then
3876 case $cross_compiling:$ac_tool_warned in
3878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3879 whose name does not start with the host triplet. If you think this
3880 configuration is useful to you, please write to autoconf@gnu.org." >&5
3881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3882 whose name does not start with the host triplet. If you think this
3883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3884 ac_tool_warned=yes ;;
3892 # Provide some information about the compiler.
3893 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3894 ac_compiler=`set X $ac_compile; echo $2`
3895 { (ac_try="$ac_compiler --version >&5"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compiler --version >&5") 2>&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }
3905 { (ac_try="$ac_compiler -v >&5"
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_compiler -v >&5") 2>&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }
3915 { (ac_try="$ac_compiler -V >&5"
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compiler -V >&5") 2>&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }
3926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 cat >conftest.$ac_ext <<_ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_compile") 2>conftest.er1
3958 grep -v '^ *+' conftest.er1 >conftest.err
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } && {
3963 test -z "$ac_cxx_werror_flag" ||
3964 test ! -s conftest.err
3965 } && test -s conftest.$ac_objext; then
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3978 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3979 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3980 GXX=`test $ac_compiler_gnu = yes && echo yes`
3981 ac_test_CXXFLAGS=${CXXFLAGS+set}
3982 ac_save_CXXFLAGS=$CXXFLAGS
3983 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3984 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3985 if test "${ac_cv_prog_cxx_g+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3989 ac_cxx_werror_flag=yes
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
4007 rm -f conftest.$ac_objext
4008 if { (ac_try="$ac_compile"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_compile") 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && {
4021 test -z "$ac_cxx_werror_flag" ||
4022 test ! -s conftest.err
4023 } && test -s conftest.$ac_objext; then
4024 ac_cv_prog_cxx_g=yes
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } && {
4059 test -z "$ac_cxx_werror_flag" ||
4060 test ! -s conftest.err
4061 } && test -s conftest.$ac_objext; then
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4084 rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_compile") 2>conftest.er1
4093 grep -v '^ *+' conftest.er1 >conftest.err
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } && {
4098 test -z "$ac_cxx_werror_flag" ||
4099 test ! -s conftest.err
4100 } && test -s conftest.$ac_objext; then
4101 ac_cv_prog_cxx_g=yes
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4118 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4119 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4120 if test "$ac_test_CXXFLAGS" = set; then
4121 CXXFLAGS=$ac_save_CXXFLAGS
4122 elif test $ac_cv_prog_cxx_g = yes; then
4123 if test "$GXX" = yes; then
4129 if test "$GXX" = yes; then
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 depcc="$CXX" am_compiler_list=
4143 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4144 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4145 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4149 # We make a subdir and do the tests there. Otherwise we can end up
4150 # making bogus files that we don't know about and never remove. For
4151 # instance it was reported that on HP-UX the gcc test will end up
4152 # making a dummy file named `D' -- because `-MD' means `put the output
4155 # Copy depcomp to subdir because otherwise we won't find it if we're
4156 # using a relative directory.
4157 cp "$am_depcomp" conftest.dir
4159 # We will build objects and dependencies in a subdirectory because
4160 # it helps to detect inapplicable dependency modes. For instance
4161 # both Tru64's cc and ICC support -MD to output dependencies as a
4162 # side effect of compilation, but ICC will put the dependencies in
4163 # the current directory while Tru64 will put them in the object
4167 am_cv_CXX_dependencies_compiler_type=none
4168 if test "$am_compiler_list" = ""; then
4169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4171 for depmode in $am_compiler_list; do
4172 # Setup a source with many dependencies, because some compilers
4173 # like to wrap large dependency lists on column 80 (with \), and
4174 # we should not choose a depcomp mode which is confused by this.
4176 # We need to recreate these files for each test, as the compiler may
4177 # overwrite some of them when testing with obscure command lines.
4178 # This happens at least with the AIX C compiler.
4180 for i in 1 2 3 4 5 6; do
4181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4183 # Solaris 8's {/usr,}/bin/sh.
4184 touch sub/conftst$i.h
4186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190 # after this tag, mechanisms are not by side-effect, so they'll
4191 # only be used when explicitly requested
4192 if test "x$enable_dependency_tracking" = xyes; then
4200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4201 # mode. It turns out that the SunPro C++ compiler does not properly
4202 # handle `-M -o', and we need to detect this.
4203 if depmode=$depmode \
4204 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4206 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4207 >/dev/null 2>conftest.err &&
4208 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4209 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4210 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4211 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4212 # icc doesn't choke on unknown options, it will just issue warnings
4213 # or remarks (even with -Werror). So we grep stderr for any message
4214 # that says an option was ignored or not supported.
4215 # When given -MP, icc 7.0 and 7.1 complain thusly:
4216 # icc: Command line warning: ignoring option '-M'; no argument required
4217 # The diagnosis changed in icc 8.0:
4218 # icc: Command line remark: option '-MP' not supported
4219 if (grep 'ignoring option' conftest.err ||
4220 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4221 am_cv_CXX_dependencies_compiler_type=$depmode
4230 am_cv_CXX_dependencies_compiler_type=none
4234 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4235 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4236 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4239 test "x$enable_dependency_tracking" != xno \
4240 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4241 am__fastdepCXX_TRUE=
4242 am__fastdepCXX_FALSE='#'
4244 am__fastdepCXX_TRUE='#'
4245 am__fastdepCXX_FALSE=
4249 if test "$GCC" = yes; then
4256 # let the Makefile know if we're gcc
4258 # Check whether --enable-shared was given.
4259 if test "${enable_shared+set}" = set; then
4260 enableval=$enable_shared; p=${PACKAGE-default}
4262 yes) enable_shared=yes ;;
4263 no) enable_shared=no ;;
4266 # Look at the argument we got. We use all the common list separators.
4267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268 for pkg in $enableval; do
4270 if test "X$pkg" = "X$p"; then
4282 # Check whether --enable-static was given.
4283 if test "${enable_static+set}" = set; then
4284 enableval=$enable_static; p=${PACKAGE-default}
4286 yes) enable_static=yes ;;
4287 no) enable_static=no ;;
4290 # Look at the argument we got. We use all the common list separators.
4291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4292 for pkg in $enableval; do
4294 if test "X$pkg" = "X$p"; then
4306 # Check whether --enable-fast-install was given.
4307 if test "${enable_fast_install+set}" = set; then
4308 enableval=$enable_fast_install; p=${PACKAGE-default}
4310 yes) enable_fast_install=yes ;;
4311 no) enable_fast_install=no ;;
4313 enable_fast_install=no
4314 # Look at the argument we got. We use all the common list separators.
4315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4316 for pkg in $enableval; do
4318 if test "X$pkg" = "X$p"; then
4319 enable_fast_install=yes
4326 enable_fast_install=yes
4330 # Make sure we can run config.sub.
4331 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4332 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4333 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4334 { (exit 1); exit 1; }; }
4336 { echo "$as_me:$LINENO: checking build system type" >&5
4337 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4338 if test "${ac_cv_build+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 ac_build_alias=$build_alias
4342 test "x$ac_build_alias" = x &&
4343 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4344 test "x$ac_build_alias" = x &&
4345 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4347 { (exit 1); exit 1; }; }
4348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4349 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4350 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4351 { (exit 1); exit 1; }; }
4354 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4355 echo "${ECHO_T}$ac_cv_build" >&6; }
4356 case $ac_cv_build in
4358 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4359 echo "$as_me: error: invalid value of canonical build" >&2;}
4360 { (exit 1); exit 1; }; };;
4363 ac_save_IFS=$IFS; IFS='-'
4369 # Remember, the first character of IFS is used to create $*,
4370 # except with old shells:
4373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4376 { echo "$as_me:$LINENO: checking host system type" >&5
4377 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4378 if test "${ac_cv_host+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 if test "x$host_alias" = x; then
4382 ac_cv_host=$ac_cv_build
4384 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4385 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4386 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4387 { (exit 1); exit 1; }; }
4391 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4392 echo "${ECHO_T}$ac_cv_host" >&6; }
4395 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4396 echo "$as_me: error: invalid value of canonical host" >&2;}
4397 { (exit 1); exit 1; }; };;
4400 ac_save_IFS=$IFS; IFS='-'
4406 # Remember, the first character of IFS is used to create $*,
4407 # except with old shells:
4410 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4413 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4414 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4415 if test "${lt_cv_path_SED+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 # Loop through the user's path and test for sed and gsed.
4419 # Then use that list of sed's as ones to test for truncation.
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir=.
4425 for lt_ac_prog in sed gsed; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4428 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4436 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4437 # along with /bin/sed that truncates output.
4438 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4439 test ! -f $lt_ac_sed && continue
4440 cat /dev/null > conftest.in
4442 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4443 # Check for GNU sed and select it if it is found.
4444 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4445 lt_cv_path_SED=$lt_ac_sed
4449 cat conftest.in conftest.in >conftest.tmp
4450 mv conftest.tmp conftest.in
4451 cp conftest.in conftest.nl
4453 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4454 cmp -s conftest.out conftest.nl || break
4455 # 10000 chars as input seems more than enough
4456 test $lt_ac_count -gt 10 && break
4457 lt_ac_count=`expr $lt_ac_count + 1`
4458 if test $lt_ac_count -gt $lt_ac_max; then
4459 lt_ac_max=$lt_ac_count
4460 lt_cv_path_SED=$lt_ac_sed
4469 { echo "$as_me:$LINENO: result: $SED" >&5
4470 echo "${ECHO_T}$SED" >&6; }
4472 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4473 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4474 if test "${ac_cv_path_GREP+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 # Extract the first word of "grep ggrep" to use in msg output
4478 if test -z "$GREP"; then
4479 set dummy grep ggrep; ac_prog_name=$2
4480 if test "${ac_cv_path_GREP+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_path_GREP_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489 test -z "$as_dir" && as_dir=.
4490 for ac_prog in grep ggrep; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4493 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4494 # Check for GNU ac_path_GREP and select it if it is found.
4495 # Check for GNU $ac_path_GREP
4496 case `"$ac_path_GREP" --version 2>&1` in
4498 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4501 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 echo 'GREP' >> "conftest.nl"
4508 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510 ac_count=`expr $ac_count + 1`
4511 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_GREP="$ac_path_GREP"
4514 ac_path_GREP_max=$ac_count
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523 $ac_path_GREP_found && break 3
4533 GREP="$ac_cv_path_GREP"
4534 if test -z "$GREP"; then
4535 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4536 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4537 { (exit 1); exit 1; }; }
4541 ac_cv_path_GREP=$GREP
4546 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4547 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4548 GREP="$ac_cv_path_GREP"
4551 { echo "$as_me:$LINENO: checking for egrep" >&5
4552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4553 if test "${ac_cv_path_EGREP+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557 then ac_cv_path_EGREP="$GREP -E"
4559 # Extract the first word of "egrep" to use in msg output
4560 if test -z "$EGREP"; then
4561 set dummy egrep; ac_prog_name=$2
4562 if test "${ac_cv_path_EGREP+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 ac_path_EGREP_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 test -z "$as_dir" && as_dir=.
4572 for ac_prog in egrep; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4575 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4576 # Check for GNU ac_path_EGREP and select it if it is found.
4577 # Check for GNU $ac_path_EGREP
4578 case `"$ac_path_EGREP" --version 2>&1` in
4580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4583 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4586 cat "conftest.in" "conftest.in" >"conftest.tmp"
4587 mv "conftest.tmp" "conftest.in"
4588 cp "conftest.in" "conftest.nl"
4589 echo 'EGREP' >> "conftest.nl"
4590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592 ac_count=`expr $ac_count + 1`
4593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4594 # Best one so far, save it but keep looking for a better one
4595 ac_cv_path_EGREP="$ac_path_EGREP"
4596 ac_path_EGREP_max=$ac_count
4598 # 10*(2^10) chars as input seems more than enough
4599 test $ac_count -gt 10 && break
4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605 $ac_path_EGREP_found && break 3
4615 EGREP="$ac_cv_path_EGREP"
4616 if test -z "$EGREP"; then
4617 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4618 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4619 { (exit 1); exit 1; }; }
4623 ac_cv_path_EGREP=$EGREP
4629 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4630 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4631 EGREP="$ac_cv_path_EGREP"
4635 # Check whether --with-gnu-ld was given.
4636 if test "${with_gnu_ld+set}" = set; then
4637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4643 if test "$GCC" = yes; then
4644 # Check if gcc -print-prog-name=ld gives a path.
4645 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4646 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4649 # gcc leaves a trailing carriage return which upsets mingw
4650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4655 # Accept absolute paths.
4657 re_direlt='/[^/][^/]*/\.\./'
4658 # Canonicalize the pathname of ld
4659 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4660 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4661 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4663 test -z "$LD" && LD="$ac_prog"
4666 # If it fails, then pretend we aren't using GCC.
4670 # If it is relative, then search for the first ld in PATH.
4674 elif test "$with_gnu_ld" = yes; then
4675 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4676 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4678 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4679 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4681 if test "${lt_cv_path_LD+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 if test -z "$LD"; then
4685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4686 for ac_dir in $PATH; do
4688 test -z "$ac_dir" && ac_dir=.
4689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4690 lt_cv_path_LD="$ac_dir/$ac_prog"
4691 # Check to see if the program is GNU ld. I'd rather use --version,
4692 # but apparently some variants of GNU ld only accept -v.
4693 # Break only if it was the GNU/non-GNU ld that we prefer.
4694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4695 *GNU* | *'with BFD'*)
4696 test "$with_gnu_ld" != no && break
4699 test "$with_gnu_ld" != yes && break
4706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4711 if test -n "$LD"; then
4712 { echo "$as_me:$LINENO: result: $LD" >&5
4713 echo "${ECHO_T}$LD" >&6; }
4715 { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4718 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4719 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4720 { (exit 1); exit 1; }; }
4721 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4722 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4723 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4727 case `$LD -v 2>&1 </dev/null` in
4728 *GNU* | *'with BFD'*)
4729 lt_cv_prog_gnu_ld=yes
4732 lt_cv_prog_gnu_ld=no
4736 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4737 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4738 with_gnu_ld=$lt_cv_prog_gnu_ld
4741 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4742 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4743 if test "${lt_cv_ld_reload_flag+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 lt_cv_ld_reload_flag='-r'
4748 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4749 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4750 reload_flag=$lt_cv_ld_reload_flag
4751 case $reload_flag in
4753 *) reload_flag=" $reload_flag" ;;
4755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4758 if test "$GCC" = yes; then
4759 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4761 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4766 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4767 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4768 if test "${lt_cv_path_NM+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 if test -n "$NM"; then
4772 # Let the user override the test.
4775 lt_nm_to_check="${ac_tool_prefix}nm"
4776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4777 lt_nm_to_check="$lt_nm_to_check nm"
4779 for lt_tmp_nm in $lt_nm_to_check; do
4780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4783 test -z "$ac_dir" && ac_dir=.
4784 tmp_nm="$ac_dir/$lt_tmp_nm"
4785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4786 # Check to see if the nm accepts a BSD-compat flag.
4787 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4788 # nm: unknown option "B" ignored
4789 # Tru64's nm complains that /dev/null is an invalid object file
4790 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4791 */dev/null* | *'Invalid file or object type'*)
4792 lt_cv_path_NM="$tmp_nm -B"
4796 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4798 lt_cv_path_NM="$tmp_nm -p"
4802 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4803 continue # so that we can try to find one that supports BSD flags
4812 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4815 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4816 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4819 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4820 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4822 if test "$LN_S" = "ln -s"; then
4823 { echo "$as_me:$LINENO: result: yes" >&5
4824 echo "${ECHO_T}yes" >&6; }
4826 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4827 echo "${ECHO_T}no, using $LN_S" >&6; }
4830 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4831 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4832 if test "${lt_cv_deplibs_check_method+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 lt_cv_file_magic_cmd='$MAGIC_CMD'
4836 lt_cv_file_magic_test_file=
4837 lt_cv_deplibs_check_method='unknown'
4838 # Need to set the preceding variable on all platforms that support
4839 # interlibrary dependencies.
4840 # 'none' -- dependencies not supported.
4841 # `unknown' -- same as none, but documents that we really don't know.
4842 # 'pass_all' -- all dependencies passed with no checks.
4843 # 'test_compile' -- check by making test program.
4844 # 'file_magic [[regex]]' -- check by looking for files in library path
4845 # which responds to the $file_magic_cmd with a given extended regex.
4846 # If you have `file' or equivalent on your system and you're not sure
4847 # whether `pass_all' will *always* work, you probably want this one.
4851 lt_cv_deplibs_check_method=pass_all
4855 lt_cv_deplibs_check_method=pass_all
4859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4860 lt_cv_file_magic_cmd='/usr/bin/file -L'
4861 lt_cv_file_magic_test_file=/shlib/libc.so
4865 # func_win32_libid is a shell function defined in ltmain.sh
4866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4867 lt_cv_file_magic_cmd='func_win32_libid'
4871 # Base MSYS/MinGW do not provide the 'file' command needed by
4872 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4873 # unless we find 'file', for example because we are cross-compiling.
4874 if ( file / ) >/dev/null 2>&1; then
4875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4876 lt_cv_file_magic_cmd='func_win32_libid'
4878 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4879 lt_cv_file_magic_cmd='$OBJDUMP -f'
4883 darwin* | rhapsody*)
4884 lt_cv_deplibs_check_method=pass_all
4887 freebsd* | dragonfly*)
4888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4891 # Not sure whether the presence of OpenBSD here was a mistake.
4892 # Let's accept both of them until this is cleared up.
4893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4894 lt_cv_file_magic_cmd=/usr/bin/file
4895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4899 lt_cv_deplibs_check_method=pass_all
4904 lt_cv_deplibs_check_method=pass_all
4907 hpux10.20* | hpux11*)
4908 lt_cv_file_magic_cmd=/usr/bin/file
4911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4915 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]'
4916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4930 irix5* | irix6* | nonstopux*)
4932 *-32|*"-32 ") libmagic=32-bit;;
4933 *-n32|*"-n32 ") libmagic=N32;;
4934 *-64|*"-64 ") libmagic=64-bit;;
4935 *) libmagic=never-match;;
4937 lt_cv_deplibs_check_method=pass_all
4940 # This must be Linux ELF.
4941 linux* | k*bsd*-gnu)
4942 lt_cv_deplibs_check_method=pass_all
4945 netbsd* | netbsdelf*-gnu)
4946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4955 lt_cv_file_magic_cmd=/usr/bin/file
4956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4960 lt_cv_deplibs_check_method=unknown
4964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4971 osf3* | osf4* | osf5*)
4972 lt_cv_deplibs_check_method=pass_all
4976 lt_cv_deplibs_check_method=pass_all
4980 lt_cv_deplibs_check_method=pass_all
4984 case $host_vendor in
4986 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]'
4987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4990 lt_cv_deplibs_check_method=pass_all
4993 lt_cv_file_magic_cmd='/bin/file'
4994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4997 lt_cv_file_magic_cmd='/bin/file'
4998 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4999 lt_cv_file_magic_test_file=/lib/libc.so
5002 lt_cv_deplibs_check_method=pass_all
5005 lt_cv_deplibs_check_method=pass_all
5010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5011 lt_cv_deplibs_check_method=pass_all
5016 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5017 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5018 file_magic_cmd=$lt_cv_file_magic_cmd
5019 deplibs_check_method=$lt_cv_deplibs_check_method
5020 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5025 # If no C compiler was specified, use CC.
5028 # If no C compiler flags were specified, use CFLAGS.
5029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5031 # Allow CC to be a program name with arguments.
5035 # Check whether --enable-libtool-lock was given.
5036 if test "${enable_libtool_lock+set}" = set; then
5037 enableval=$enable_libtool_lock;
5040 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5042 # Some flags need to be propagated to the compiler or linker for good
5046 # Find out which ABI we are using.
5047 echo 'int i;' > conftest.$ac_ext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; then
5053 case `/usr/bin/file conftest.$ac_objext` in
5065 # Find out which ABI we are using.
5066 echo '#line 5066 "configure"' > conftest.$ac_ext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; then
5072 if test "$lt_cv_prog_gnu_ld" = yes; then
5073 case `/usr/bin/file conftest.$ac_objext` in
5075 LD="${LD-ld} -melf32bsmip"
5078 LD="${LD-ld} -melf32bmipn32"
5081 LD="${LD-ld} -melf64bmip"
5085 case `/usr/bin/file conftest.$ac_objext` in
5101 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5102 s390*-*linux*|sparc*-*linux*)
5103 # Find out which ABI we are using.
5104 echo 'int i;' > conftest.$ac_ext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; then
5110 case `/usr/bin/file conftest.o` in
5113 x86_64-*kfreebsd*-gnu)
5114 LD="${LD-ld} -m elf_i386_fbsd"
5117 LD="${LD-ld} -m elf_i386"
5119 ppc64-*linux*|powerpc64-*linux*)
5120 LD="${LD-ld} -m elf32ppclinux"
5123 LD="${LD-ld} -m elf_s390"
5126 LD="${LD-ld} -m elf32_sparc"
5132 x86_64-*kfreebsd*-gnu)
5133 LD="${LD-ld} -m elf_x86_64_fbsd"
5136 LD="${LD-ld} -m elf_x86_64"
5138 ppc*-*linux*|powerpc*-*linux*)
5139 LD="${LD-ld} -m elf64ppc"
5142 LD="${LD-ld} -m elf64_s390"
5145 LD="${LD-ld} -m elf64_sparc"
5155 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5156 SAVE_CFLAGS="$CFLAGS"
5157 CFLAGS="$CFLAGS -belf"
5158 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5159 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5160 if test "${lt_cv_cc_needs_belf+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 ac_cpp='$CPP $CPPFLAGS'
5165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (ac_try="$ac_link"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_link") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest$ac_exeext &&
5201 $as_test_x conftest$ac_exeext; then
5202 lt_cv_cc_needs_belf=yes
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 lt_cv_cc_needs_belf=no
5210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5211 conftest$ac_exeext conftest.$ac_ext
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5220 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5221 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5222 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5223 CFLAGS="$SAVE_CFLAGS"
5227 # Find out which ABI we are using.
5228 echo 'int i;' > conftest.$ac_ext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; then
5234 case `/usr/bin/file conftest.o` in
5236 case $lt_cv_prog_gnu_ld in
5237 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5239 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5253 need_locks="$enable_libtool_lock"
5257 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5259 if test "${ac_cv_header_stdc+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 cat >conftest.$ac_ext <<_ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5281 rm -f conftest.$ac_objext
5282 if { (ac_try="$ac_compile"
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_compile") 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && {
5295 test -z "$ac_c_werror_flag" ||
5296 test ! -s conftest.err
5297 } && test -s conftest.$ac_objext; then
5298 ac_cv_header_stdc=yes
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 ac_cv_header_stdc=no
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 if test $ac_cv_header_stdc = yes; then
5309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "memchr" >/dev/null 2>&1; then
5323 ac_cv_header_stdc=no
5329 if test $ac_cv_header_stdc = yes; then
5330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5341 $EGREP "free" >/dev/null 2>&1; then
5344 ac_cv_header_stdc=no
5350 if test $ac_cv_header_stdc = yes; then
5351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5352 if test "$cross_compiling" = yes; then
5355 cat >conftest.$ac_ext <<_ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5363 #if ((' ' & 0x0FF) == 0x020)
5364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5367 # define ISLOWER(c) \
5368 (('a' <= (c) && (c) <= 'i') \
5369 || ('j' <= (c) && (c) <= 'r') \
5370 || ('s' <= (c) && (c) <= 'z'))
5371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5379 for (i = 0; i < 256; i++)
5380 if (XOR (islower (i), ISLOWER (i))
5381 || toupper (i) != TOUPPER (i))
5386 rm -f conftest$ac_exeext
5387 if { (ac_try="$ac_link"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_link") 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5397 { (case "(($ac_try" in
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_try") 2>&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5408 echo "$as_me: program exited with status $ac_status" >&5
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_cv_header_stdc=no
5415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5421 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5422 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5423 if test $ac_cv_header_stdc = yes; then
5425 cat >>confdefs.h <<\_ACEOF
5426 #define STDC_HEADERS 1
5431 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5442 inttypes.h stdint.h unistd.h
5444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 $ac_includes_default
5458 #include <$ac_header>
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5469 grep -v '^ *+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_c_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5477 eval "$as_ac_Header=yes"
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 eval "$as_ac_Header=no"
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 ac_res=`eval echo '${'$as_ac_Header'}'`
5488 { echo "$as_me:$LINENO: result: $ac_res" >&5
5489 echo "${ECHO_T}$ac_res" >&6; }
5490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5491 cat >>confdefs.h <<_ACEOF
5492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5501 for ac_header in dlfcn.h
5503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 ac_res=`eval echo '${'$as_ac_Header'}'`
5511 { echo "$as_me:$LINENO: result: $ac_res" >&5
5512 echo "${ECHO_T}$ac_res" >&6; }
5514 # Is the header compilable?
5515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5524 #include <$ac_header>
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 ac_header_compiler=yes
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_header_compiler=no
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5553 echo "${ECHO_T}$ac_header_compiler" >&6; }
5555 # Is the header present?
5556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 #include <$ac_header>
5566 if { (ac_try="$ac_cpp conftest.$ac_ext"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } >/dev/null && {
5579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5582 ac_header_preproc=yes
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 ac_header_preproc=no
5590 rm -f conftest.err conftest.$ac_ext
5591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5592 echo "${ECHO_T}$ac_header_preproc" >&6; }
5594 # So? What about this header?
5595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5601 ac_header_preproc=yes
5604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5617 ## ------------------------------------ ##
5618 ## Report this to opensource@google.com ##
5619 ## ------------------------------------ ##
5621 ) | sed "s/^/$as_me: WARNING: /" >&2
5624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 eval "$as_ac_Header=\$ac_header_preproc"
5631 ac_res=`eval echo '${'$as_ac_Header'}'`
5632 { echo "$as_me:$LINENO: result: $ac_res" >&5
5633 echo "${ECHO_T}$ac_res" >&6; }
5636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5637 cat >>confdefs.h <<_ACEOF
5638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5647 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5648 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5649 (test "X$CXX" != "Xg++"))) ; then
5651 ac_cpp='$CXXCPP $CPPFLAGS'
5652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5656 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5657 if test -z "$CXXCPP"; then
5658 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 # Double quotes because CXXCPP needs to be expanded
5662 for CXXCPP in "$CXX -E" "/lib/cpp"
5665 for ac_cxx_preproc_warn_flag in '' yes
5667 # Use a header file that comes with gcc, so configuring glibc
5668 # with a fresh cross-compiler works.
5669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 # <limits.h> exists even on freestanding compilers.
5671 # On the NeXT, cc -E runs the code through the compiler's parser,
5672 # not just through cpp. "Syntax error" is here to catch this case.
5673 cat >conftest.$ac_ext <<_ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5680 # include <limits.h>
5682 # include <assert.h>
5686 if { (ac_try="$ac_cpp conftest.$ac_ext"
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5694 grep -v '^ *+' conftest.er1 >conftest.err
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev/null && {
5699 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5700 test ! -s conftest.err
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 # Broken: fails on valid input.
5711 rm -f conftest.err conftest.$ac_ext
5713 # OK, works on sane cases. Now check whether nonexistent headers
5714 # can be detected and how.
5715 cat >conftest.$ac_ext <<_ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <ac_nonexistent.h>
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5737 test ! -s conftest.err
5739 # Broken: success on invalid input.
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 # Passes both tests.
5750 rm -f conftest.err conftest.$ac_ext
5753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5754 rm -f conftest.err conftest.$ac_ext
5755 if $ac_preproc_ok; then
5760 ac_cv_prog_CXXCPP=$CXXCPP
5763 CXXCPP=$ac_cv_prog_CXXCPP
5765 ac_cv_prog_CXXCPP=$CXXCPP
5767 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5768 echo "${ECHO_T}$CXXCPP" >&6; }
5770 for ac_cxx_preproc_warn_flag in '' yes
5772 # Use a header file that comes with gcc, so configuring glibc
5773 # with a fresh cross-compiler works.
5774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5775 # <limits.h> exists even on freestanding compilers.
5776 # On the NeXT, cc -E runs the code through the compiler's parser,
5777 # not just through cpp. "Syntax error" is here to catch this case.
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5785 # include <limits.h>
5787 # include <assert.h>
5791 if { (ac_try="$ac_cpp conftest.$ac_ext"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } >/dev/null && {
5804 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5805 test ! -s conftest.err
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5812 # Broken: fails on valid input.
5816 rm -f conftest.err conftest.$ac_ext
5818 # OK, works on sane cases. Now check whether nonexistent headers
5819 # can be detected and how.
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <ac_nonexistent.h>
5828 if { (ac_try="$ac_cpp conftest.$ac_ext"
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } >/dev/null && {
5841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5842 test ! -s conftest.err
5844 # Broken: success on invalid input.
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 # Passes both tests.
5855 rm -f conftest.err conftest.$ac_ext
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.err conftest.$ac_ext
5860 if $ac_preproc_ok; then
5863 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5864 See \`config.log' for more details." >&5
5865 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5866 See \`config.log' for more details." >&2;}
5867 { (exit 1); exit 1; }; }
5871 ac_cpp='$CXXCPP $CPPFLAGS'
5872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5880 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5881 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5883 if test -n "$ac_tool_prefix"; then
5884 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
5886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890 if test "${ac_cv_prog_F77+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 if test -n "$F77"; then
5894 ac_cv_prog_F77="$F77" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 if test -n "$F77"; then
5915 { echo "$as_me:$LINENO: result: $F77" >&5
5916 echo "${ECHO_T}$F77" >&6; }
5918 { echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6; }
5923 test -n "$F77" && break
5926 if test -z "$F77"; then
5928 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
5930 # Extract the first word of "$ac_prog", so it can be a program name with args.
5931 set dummy $ac_prog; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 if test -n "$ac_ct_F77"; then
5938 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_ac_ct_F77="$ac_prog"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5958 if test -n "$ac_ct_F77"; then
5959 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5960 echo "${ECHO_T}$ac_ct_F77" >&6; }
5962 { echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6; }
5967 test -n "$ac_ct_F77" && break
5970 if test "x$ac_ct_F77" = x; then
5973 case $cross_compiling:$ac_tool_warned in
5975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5976 whose name does not start with the host triplet. If you think this
5977 configuration is useful to you, please write to autoconf@gnu.org." >&5
5978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5979 whose name does not start with the host triplet. If you think this
5980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5981 ac_tool_warned=yes ;;
5988 # Provide some information about the compiler.
5989 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5990 ac_compiler=`set X $ac_compile; echo $2`
5991 { (ac_try="$ac_compiler --version >&5"
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compiler --version >&5") 2>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }
6001 { (ac_try="$ac_compiler -v >&5"
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compiler -v >&5") 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011 { (ac_try="$ac_compiler -V >&5"
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compiler -V >&5") 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }
6023 # If we don't use `.F' as extension, the preprocessor is not run on the
6024 # input file. (Note that this only needs to work for GNU compilers.)
6027 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6028 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6029 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.$ac_ext <<_ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_f77_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6069 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6070 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6072 ac_test_FFLAGS=${FFLAGS+set}
6073 ac_save_FFLAGS=$FFLAGS
6075 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6076 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_f77_g+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 cat >conftest.$ac_ext <<_ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_f77_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.$ac_objext; then
6103 ac_cv_prog_f77_g=yes
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6115 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6116 if test "$ac_test_FFLAGS" = set; then
6117 FFLAGS=$ac_save_FFLAGS
6118 elif test $ac_cv_prog_f77_g = yes; then
6119 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6125 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6132 G77=`test $ac_compiler_gnu = yes && echo yes`
6134 ac_cpp='$CPP $CPPFLAGS'
6135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6142 # find the maximum length of command line arguments
6143 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6144 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6145 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 # On DJGPP, this test can blow up pretty badly due to problems in libc
6154 # (any single argument exceeding 2000 bytes causes a buffer overrun
6155 # during glob expansion). Even if it were fixed, the result of this
6156 # check would be larger than it should be.
6157 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6161 # Under GNU Hurd, this test is not required because there is
6162 # no limit to the length of command line arguments.
6163 # Libtool will interpret -1 as no limit whatsoever
6164 lt_cv_sys_max_cmd_len=-1;
6168 # On Win9x/ME, this test blows up -- it succeeds, but takes
6169 # about 5 minutes as the teststring grows exponentially.
6170 # Worse, since 9x/ME are not pre-emptively multitasking,
6171 # you end up with a "frozen" computer, even though with patience
6172 # the test eventually succeeds (with a max line length of 256k).
6173 # Instead, let's just punt: use the minimum linelength reported by
6174 # all of the supported platforms: 8192 (on NT/2K/XP).
6175 lt_cv_sys_max_cmd_len=8192;
6179 # On AmigaOS with pdksh, this test takes hours, literally.
6180 # So we just punt and use a minimum line length of 8192.
6181 lt_cv_sys_max_cmd_len=8192;
6184 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6185 # This has been around since 386BSD, at least. Likely further.
6186 if test -x /sbin/sysctl; then
6187 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6188 elif test -x /usr/sbin/sysctl; then
6189 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6191 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6193 # And add a safety zone
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6199 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6200 lt_cv_sys_max_cmd_len=196608
6204 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6205 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6206 # nice to cause kernel panics so lets avoid the loop below.
6207 # First set a reasonable default.
6208 lt_cv_sys_max_cmd_len=16384
6210 if test -x /sbin/sysconfig; then
6211 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6212 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6217 lt_cv_sys_max_cmd_len=102400
6219 sysv5* | sco5v6* | sysv4.2uw2*)
6220 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6221 if test -n "$kargmax"; then
6222 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6224 lt_cv_sys_max_cmd_len=32768
6228 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6229 if test -n "$lt_cv_sys_max_cmd_len"; then
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6233 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6234 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6235 = "XX$teststring") >/dev/null 2>&1 &&
6236 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6237 lt_cv_sys_max_cmd_len=$new_result &&
6238 test $i != 17 # 1/2 MB should be enough
6241 teststring=$teststring$teststring
6244 # Add a significant safety factor because C++ compilers can tack on massive
6245 # amounts of additional arguments before passing them to the linker.
6246 # It appears as though 1/2 is a usable value.
6247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6254 if test -n $lt_cv_sys_max_cmd_len ; then
6255 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6256 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6258 { echo "$as_me:$LINENO: result: none" >&5
6259 echo "${ECHO_T}none" >&6; }
6266 # Check for command to grab the raw symbol name followed by C symbol from nm.
6267 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6268 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6269 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 # These are sane defaults that work on at least a few old systems.
6274 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6276 # Character class describing NM global symbol codes.
6277 symcode='[BCDEGRST]'
6279 # Regexp to match symbols that can be accessed directly from C.
6280 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6282 # Transform an extracted symbol line into a proper C declaration
6283 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6285 # Transform an extracted symbol line into symbol name and symbol address
6286 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'"
6288 # Define system-specific variables.
6293 cygwin* | mingw* | pw32*)
6294 symcode='[ABCDGISTW]'
6296 hpux*) # Its linker distinguishes data from code symbols
6297 if test "$host_cpu" = ia64; then
6298 symcode='[ABCDEGRST]'
6300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6301 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'"
6303 linux* | k*bsd*-gnu)
6304 if test "$host_cpu" = ia64; then
6305 symcode='[ABCDGIRSTW]'
6306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6307 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'"
6311 symcode='[BCDEGRST]'
6314 symcode='[BCDEGQRST]'
6325 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6333 # Handle CRLF in mingw tool chain
6337 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6341 # If we're using GNU nm, then use its standard symbol codes.
6342 case `$NM -V 2>&1` in
6343 *GNU* | *'with BFD'*)
6344 symcode='[ABCDGIRSTW]' ;;
6347 # Try without a prefix undercore, then with it.
6348 for ac_symprfx in "" "_"; do
6350 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6351 symxfrm="\\1 $ac_symprfx\\2 \\2"
6353 # Write the raw and C identifiers.
6354 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6356 # Check to see that the pipe works correctly.
6360 cat > conftest.$ac_ext <<EOF
6365 void nm_test_func(){}
6369 int main(){nm_test_var='a';nm_test_func();return(0);}
6372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373 (eval $ac_compile) 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; then
6377 # Now try to grab the symbols.
6379 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6380 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && test -s "$nlist"; then
6384 # Try sorting and uniquifying the output.
6385 if sort "$nlist" | uniq > "$nlist"T; then
6386 mv -f "$nlist"T "$nlist"
6391 # Make sure that we snagged all the symbols we need.
6392 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6393 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6394 cat <<EOF > conftest.$ac_ext
6400 # Now generate the symbol file.
6401 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6403 cat <<EOF >> conftest.$ac_ext
6404 #if defined (__STDC__) && __STDC__
6405 # define lt_ptr_t void *
6407 # define lt_ptr_t char *
6411 /* The mapping between symbol names and symbols. */
6416 lt_preloaded_symbols[] =
6419 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6420 cat <<\EOF >> conftest.$ac_ext
6428 # Now try linking the two files.
6429 mv conftest.$ac_objext conftstm.$ac_objext
6430 lt_save_LIBS="$LIBS"
6431 lt_save_CFLAGS="$CFLAGS"
6432 LIBS="conftstm.$ac_objext"
6433 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435 (eval $ac_link) 2>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6441 LIBS="$lt_save_LIBS"
6442 CFLAGS="$lt_save_CFLAGS"
6444 echo "cannot find nm_test_func in $nlist" >&5
6447 echo "cannot find nm_test_var in $nlist" >&5
6450 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6453 echo "$progname: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 rm -rf conftest* conftst*
6458 # Do not use the global_symbol_pipe unless it works.
6459 if test "$pipe_works" = yes; then
6462 lt_cv_sys_global_symbol_pipe=
6468 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6469 lt_cv_sys_global_symbol_to_cdecl=
6471 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6472 { echo "$as_me:$LINENO: result: failed" >&5
6473 echo "${ECHO_T}failed" >&6; }
6475 { echo "$as_me:$LINENO: result: ok" >&5
6476 echo "${ECHO_T}ok" >&6; }
6479 { echo "$as_me:$LINENO: checking for objdir" >&5
6480 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6481 if test "${lt_cv_objdir+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 rm -f .libs 2>/dev/null
6485 mkdir .libs 2>/dev/null
6486 if test -d .libs; then
6489 # MS-DOS does not allow filenames that begin with a dot.
6492 rmdir .libs 2>/dev/null
6494 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6495 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6496 objdir=$lt_cv_objdir
6504 # AIX sometimes has problems with the GCC collect2 program. For some
6505 # reason, if we set the COLLECT_NAMES environment variable, the problems
6506 # vanish in a puff of smoke.
6507 if test "X${COLLECT_NAMES+set}" != Xset; then
6509 export COLLECT_NAMES
6514 # Sed substitution that helps us do robust quoting. It backslashifies
6515 # metacharacters that are still active within double-quoted strings.
6516 Xsed='sed -e 1s/^X//'
6517 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6519 # Same as above, but do not quote variable references.
6520 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6522 # Sed substitution to delay expansion of an escaped shell variable in a
6523 # double_quote_subst'ed string.
6524 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6526 # Sed substitution to avoid accidental globbing in evaled expressions
6527 no_glob_subst='s/\*/\\\*/g'
6533 default_ofile=libtool
6534 can_build_shared=yes
6536 # All known linkers require a `.a' archive for static linking (except MSVC,
6537 # which needs '.lib').
6539 ltmain="$ac_aux_dir/ltmain.sh"
6540 ofile="$default_ofile"
6541 with_gnu_ld="$lt_cv_prog_gnu_ld"
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}ar; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_prog_AR+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 if test -n "$AR"; then
6552 ac_cv_prog_AR="$AR" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_AR="${ac_tool_prefix}ar"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 if test -n "$AR"; then
6573 { echo "$as_me:$LINENO: result: $AR" >&5
6574 echo "${ECHO_T}$AR" >&6; }
6576 { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6582 if test -z "$ac_cv_prog_AR"; then
6584 # Extract the first word of "ar", so it can be a program name with args.
6585 set dummy ar; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 if test -n "$ac_ct_AR"; then
6592 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_ac_ct_AR="ar"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6612 if test -n "$ac_ct_AR"; then
6613 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6614 echo "${ECHO_T}$ac_ct_AR" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6620 if test "x$ac_ct_AR" = x; then
6623 case $cross_compiling:$ac_tool_warned in
6625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6626 whose name does not start with the host triplet. If you think this
6627 configuration is useful to you, please write to autoconf@gnu.org." >&5
6628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6629 whose name does not start with the host triplet. If you think this
6630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6631 ac_tool_warned=yes ;;
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_prog_RANLIB+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 if test -n "$RANLIB"; then
6648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6670 echo "${ECHO_T}$RANLIB" >&6; }
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6678 if test -z "$ac_cv_prog_RANLIB"; then
6679 ac_ct_RANLIB=$RANLIB
6680 # Extract the first word of "ranlib", so it can be a program name with args.
6681 set dummy ranlib; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 if test -n "$ac_ct_RANLIB"; then
6688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_RANLIB="ranlib"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6708 if test -n "$ac_ct_RANLIB"; then
6709 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6710 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6712 { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6716 if test "x$ac_ct_RANLIB" = x; then
6719 case $cross_compiling:$ac_tool_warned in
6721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6722 whose name does not start with the host triplet. If you think this
6723 configuration is useful to you, please write to autoconf@gnu.org." >&5
6724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6725 whose name does not start with the host triplet. If you think this
6726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6727 ac_tool_warned=yes ;;
6729 RANLIB=$ac_ct_RANLIB
6732 RANLIB="$ac_cv_prog_RANLIB"
6735 if test -n "$ac_tool_prefix"; then
6736 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6737 set dummy ${ac_tool_prefix}strip; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_prog_STRIP+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 if test -n "$STRIP"; then
6744 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 STRIP=$ac_cv_prog_STRIP
6764 if test -n "$STRIP"; then
6765 { echo "$as_me:$LINENO: result: $STRIP" >&5
6766 echo "${ECHO_T}$STRIP" >&6; }
6768 { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6774 if test -z "$ac_cv_prog_STRIP"; then
6776 # Extract the first word of "strip", so it can be a program name with args.
6777 set dummy strip; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 if test -n "$ac_ct_STRIP"; then
6784 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_prog_ac_ct_STRIP="strip"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6804 if test -n "$ac_ct_STRIP"; then
6805 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6806 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6812 if test "x$ac_ct_STRIP" = x; then
6815 case $cross_compiling:$ac_tool_warned in
6817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6818 whose name does not start with the host triplet. If you think this
6819 configuration is useful to you, please write to autoconf@gnu.org." >&5
6820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6821 whose name does not start with the host triplet. If you think this
6822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6823 ac_tool_warned=yes ;;
6828 STRIP="$ac_cv_prog_STRIP"
6833 old_CFLAGS="$CFLAGS"
6835 # Set sane defaults for various variables
6836 test -z "$AR" && AR=ar
6837 test -z "$AR_FLAGS" && AR_FLAGS=cru
6838 test -z "$AS" && AS=as
6839 test -z "$CC" && CC=cc
6840 test -z "$LTCC" && LTCC=$CC
6841 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6842 test -z "$DLLTOOL" && DLLTOOL=dlltool
6843 test -z "$LD" && LD=ld
6844 test -z "$LN_S" && LN_S="ln -s"
6845 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6846 test -z "$NM" && NM=nm
6847 test -z "$SED" && SED=sed
6848 test -z "$OBJDUMP" && OBJDUMP=objdump
6849 test -z "$RANLIB" && RANLIB=:
6850 test -z "$STRIP" && STRIP=:
6851 test -z "$ac_objext" && ac_objext=o
6853 # Determine commands to create old-style static archives.
6854 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6855 old_postinstall_cmds='chmod 644 $oldlib'
6856 old_postuninstall_cmds=
6858 if test -n "$RANLIB"; then
6861 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6867 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6870 for cc_temp in $compiler""; do
6872 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6873 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6878 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6881 # Only perform the check for file, if the check method requires it
6882 case $deplibs_check_method in
6884 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6885 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6886 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6887 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6895 lt_save_MAGIC_CMD="$MAGIC_CMD"
6896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6898 for ac_dir in $ac_dummy; do
6900 test -z "$ac_dir" && ac_dir=.
6901 if test -f $ac_dir/${ac_tool_prefix}file; then
6902 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6903 if test -n "$file_magic_test_file"; then
6904 case $deplibs_check_method in
6906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6909 $EGREP "$file_magic_regex" > /dev/null; then
6914 *** Warning: the command libtool uses to detect shared libraries,
6915 *** $file_magic_cmd, produces output that libtool cannot recognize.
6916 *** The result is that libtool may fail to recognize shared libraries
6917 *** as such. This will affect the creation of libtool libraries that
6918 *** depend on shared libraries, but programs linked with such libtool
6919 *** libraries will work regardless of this problem. Nevertheless, you
6920 *** may want to report the problem to your system manager and/or to
6921 *** bug-libtool@gnu.org
6931 MAGIC_CMD="$lt_save_MAGIC_CMD"
6936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6937 if test -n "$MAGIC_CMD"; then
6938 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6939 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6945 if test -z "$lt_cv_path_MAGIC_CMD"; then
6946 if test -n "$ac_tool_prefix"; then
6947 { echo "$as_me:$LINENO: checking for file" >&5
6948 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6957 lt_save_MAGIC_CMD="$MAGIC_CMD"
6958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6959 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6960 for ac_dir in $ac_dummy; do
6962 test -z "$ac_dir" && ac_dir=.
6963 if test -f $ac_dir/file; then
6964 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6965 if test -n "$file_magic_test_file"; then
6966 case $deplibs_check_method in
6968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6971 $EGREP "$file_magic_regex" > /dev/null; then
6976 *** Warning: the command libtool uses to detect shared libraries,
6977 *** $file_magic_cmd, produces output that libtool cannot recognize.
6978 *** The result is that libtool may fail to recognize shared libraries
6979 *** as such. This will affect the creation of libtool libraries that
6980 *** depend on shared libraries, but programs linked with such libtool
6981 *** libraries will work regardless of this problem. Nevertheless, you
6982 *** may want to report the problem to your system manager and/or to
6983 *** bug-libtool@gnu.org
6993 MAGIC_CMD="$lt_save_MAGIC_CMD"
6998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6999 if test -n "$MAGIC_CMD"; then
7000 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7001 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7003 { echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6; }
7018 rhapsody* | darwin*)
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 if test -n "$DSYMUTIL"; then
7028 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7048 if test -n "$DSYMUTIL"; then
7049 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7050 echo "${ECHO_T}$DSYMUTIL" >&6; }
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7058 if test -z "$ac_cv_prog_DSYMUTIL"; then
7059 ac_ct_DSYMUTIL=$DSYMUTIL
7060 # Extract the first word of "dsymutil", so it can be a program name with args.
7061 set dummy dsymutil; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 if test -n "$ac_ct_DSYMUTIL"; then
7068 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7088 if test -n "$ac_ct_DSYMUTIL"; then
7089 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7090 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7096 if test "x$ac_ct_DSYMUTIL" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7102 whose name does not start with the host triplet. If you think this
7103 configuration is useful to you, please write to autoconf@gnu.org." >&5
7104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7107 ac_tool_warned=yes ;;
7109 DSYMUTIL=$ac_ct_DSYMUTIL
7112 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 if test -n "$NMEDIT"; then
7124 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 NMEDIT=$ac_cv_prog_NMEDIT
7144 if test -n "$NMEDIT"; then
7145 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7146 echo "${ECHO_T}$NMEDIT" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7154 if test -z "$ac_cv_prog_NMEDIT"; then
7155 ac_ct_NMEDIT=$NMEDIT
7156 # Extract the first word of "nmedit", so it can be a program name with args.
7157 set dummy nmedit; ac_word=$2
7158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 if test -n "$ac_ct_NMEDIT"; then
7164 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7184 if test -n "$ac_ct_NMEDIT"; then
7185 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7186 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7192 if test "x$ac_ct_NMEDIT" = x; then
7195 case $cross_compiling:$ac_tool_warned in
7197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7198 whose name does not start with the host triplet. If you think this
7199 configuration is useful to you, please write to autoconf@gnu.org." >&5
7200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet. If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7203 ac_tool_warned=yes ;;
7205 NMEDIT=$ac_ct_NMEDIT
7208 NMEDIT="$ac_cv_prog_NMEDIT"
7212 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7213 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7214 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 lt_cv_apple_cc_single_mod=no
7218 if test -z "${LT_MULTI_MODULE}"; then
7219 # By default we will add the -single_module flag. You can override
7220 # by either setting the environment variable LT_MULTI_MODULE
7221 # non-empty at configure time, or by adding -multi_module to the
7223 echo "int foo(void){return 1;}" > conftest.c
7224 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7225 -dynamiclib ${wl}-single_module conftest.c
7226 if test -f libconftest.dylib; then
7227 lt_cv_apple_cc_single_mod=yes
7228 rm -rf libconftest.dylib*
7233 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7234 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7235 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7236 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7237 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 lt_cv_ld_exported_symbols_list=no
7241 save_LDFLAGS=$LDFLAGS
7242 echo "_main" > conftest.sym
7243 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (ac_try="$ac_link"
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_link") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest$ac_exeext &&
7276 $as_test_x conftest$ac_exeext; then
7277 lt_cv_ld_exported_symbols_list=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7282 lt_cv_ld_exported_symbols_list=no
7285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7286 conftest$ac_exeext conftest.$ac_ext
7287 LDFLAGS="$save_LDFLAGS"
7290 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7291 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7293 rhapsody* | darwin1.[0123])
7294 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298 # if running on 10.5 or later, the deployment target defaults
7299 # to the OS version, if on x86, and 10.4, the deployment
7300 # target defaults to 10.4. Don't you love it?
7301 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7302 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7303 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7311 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7312 _lt_dar_single_mod='$single_module'
7314 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7315 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7317 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7319 if test "$DSYMUTIL" != ":"; then
7320 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then
7333 enableval=$enable_libtool_lock;
7336 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7339 # Check whether --with-pic was given.
7340 if test "${with_pic+set}" = set; then
7341 withval=$with_pic; pic_mode="$withval"
7346 test -z "$pic_mode" && pic_mode=default
7348 # Use C for the default configuration in the libtool script
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7358 # Source file extension for C test sources.
7361 # Object file extension for compiled C test sources.
7365 # Code to be used in simple compile tests
7366 lt_simple_compile_test_code="int some_variable = 0;"
7368 # Code to be used in simple link tests
7369 lt_simple_link_test_code='int main(){return(0);}'
7372 # If no C compiler was specified, use CC.
7375 # If no C compiler flags were specified, use CFLAGS.
7376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7378 # Allow CC to be a program name with arguments.
7382 # save warnings/boilerplate of simple test code
7383 ac_outfile=conftest.$ac_objext
7384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7386 _lt_compiler_boilerplate=`cat conftest.err`
7389 ac_outfile=conftest.$ac_objext
7390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7392 _lt_linker_boilerplate=`cat conftest.err`
7397 lt_prog_compiler_no_builtin_flag=
7399 if test "$GCC" = yes; then
7400 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7403 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7404 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7405 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 lt_cv_prog_compiler_rtti_exceptions=no
7409 ac_outfile=conftest.$ac_objext
7410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7411 lt_compiler_flag="-fno-rtti -fno-exceptions"
7412 # Insert the option either (1) after the last *FLAGS variable, or
7413 # (2) before a word containing "conftest.", or (3) at the end.
7414 # Note that $ac_compile itself does not contain backslashes and begins
7415 # with a dollar sign (not a hyphen), so the echo should work correctly.
7416 # The option is referenced via a variable to avoid confusing sed.
7417 lt_compile=`echo "$ac_compile" | $SED \
7418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7420 -e 's:$: $lt_compiler_flag:'`
7421 (eval echo "\"\$as_me:7421: $lt_compile\"" >&5)
7422 (eval "$lt_compile" 2>conftest.err)
7424 cat conftest.err >&5
7425 echo "$as_me:7425: \$? = $ac_status" >&5
7426 if (exit $ac_status) && test -s "$ac_outfile"; then
7427 # The compiler can only warn and ignore the option if not recognized
7428 # So say no if there are warnings other than the usual output.
7429 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7432 lt_cv_prog_compiler_rtti_exceptions=yes
7438 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7439 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7441 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7442 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7449 lt_prog_compiler_wl=
7450 lt_prog_compiler_pic=
7451 lt_prog_compiler_static=
7453 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7454 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7456 if test "$GCC" = yes; then
7457 lt_prog_compiler_wl='-Wl,'
7458 lt_prog_compiler_static='-static'
7462 # All AIX code is PIC.
7463 if test "$host_cpu" = ia64; then
7464 # AIX 5 now supports IA64 processor
7465 lt_prog_compiler_static='-Bstatic'
7470 # FIXME: we need at least 68020 code to build shared libraries, but
7471 # adding the `-m68020' flag to GCC prevents building anything better,
7473 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7477 # PIC is the default for these OSes.
7480 mingw* | cygwin* | pw32* | os2*)
7481 # This hack is so that the source file can tell whether it is being
7482 # built for inclusion in a dll (and should export symbols for example).
7483 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7484 # (--disable-auto-import) libraries
7485 lt_prog_compiler_pic='-DDLL_EXPORT'
7488 darwin* | rhapsody*)
7489 # PIC is the default on this platform
7490 # Common symbols not allowed in MH_DYLIB files
7491 lt_prog_compiler_pic='-fno-common'
7495 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7496 # Instead, we relocate shared libraries at runtime.
7500 # Just because we use GCC doesn't mean we suddenly get shared libraries
7501 # on systems that don't support them.
7502 lt_prog_compiler_can_build_shared=no
7507 if test -d /usr/nec; then
7508 lt_prog_compiler_pic=-Kconform_pic
7513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7520 lt_prog_compiler_pic='-fPIC'
7526 lt_prog_compiler_pic='-fPIC'
7530 # PORTME Check for flag to pass linker flags through the system compiler.
7533 lt_prog_compiler_wl='-Wl,'
7534 if test "$host_cpu" = ia64; then
7535 # AIX 5 now supports IA64 processor
7536 lt_prog_compiler_static='-Bstatic'
7538 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7542 # PIC is the default on this platform
7543 # Common symbols not allowed in MH_DYLIB files
7544 case $cc_basename in
7546 lt_prog_compiler_pic='-qnocommon'
7547 lt_prog_compiler_wl='-Wl,'
7552 mingw* | cygwin* | pw32* | os2*)
7553 # This hack is so that the source file can tell whether it is being
7554 # built for inclusion in a dll (and should export symbols for example).
7555 lt_prog_compiler_pic='-DDLL_EXPORT'
7558 hpux9* | hpux10* | hpux11*)
7559 lt_prog_compiler_wl='-Wl,'
7560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7567 lt_prog_compiler_pic='+Z'
7570 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7571 lt_prog_compiler_static='${wl}-a ${wl}archive'
7574 irix5* | irix6* | nonstopux*)
7575 lt_prog_compiler_wl='-Wl,'
7576 # PIC (with -KPIC) is the default.
7577 lt_prog_compiler_static='-non_shared'
7581 lt_prog_compiler_pic='-KPIC'
7582 lt_prog_compiler_static='-Bstatic'
7585 linux* | k*bsd*-gnu)
7586 case $cc_basename in
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_pic='-KPIC'
7590 lt_prog_compiler_static='-static'
7592 pgcc* | pgf77* | pgf90* | pgf95*)
7593 # Portland Group compilers (*not* the Pentium gcc compiler,
7594 # which looks to be a dead project)
7595 lt_prog_compiler_wl='-Wl,'
7596 lt_prog_compiler_pic='-fpic'
7597 lt_prog_compiler_static='-Bstatic'
7600 lt_prog_compiler_wl='-Wl,'
7601 # All Alpha code is PIC.
7602 lt_prog_compiler_static='-non_shared'
7605 case `$CC -V 2>&1 | sed 5q` in
7608 lt_prog_compiler_pic='-KPIC'
7609 lt_prog_compiler_static='-Bstatic'
7610 lt_prog_compiler_wl='-Wl,'
7613 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7614 lt_prog_compiler_pic='-KPIC'
7615 lt_prog_compiler_static='-Bstatic'
7616 lt_prog_compiler_wl=''
7623 osf3* | osf4* | osf5*)
7624 lt_prog_compiler_wl='-Wl,'
7625 # All OSF/1 code is PIC.
7626 lt_prog_compiler_static='-non_shared'
7630 lt_prog_compiler_static='-non_shared'
7634 lt_prog_compiler_pic='-KPIC'
7635 lt_prog_compiler_static='-Bstatic'
7636 case $cc_basename in
7638 lt_prog_compiler_wl='-Qoption ld ';;
7640 lt_prog_compiler_wl='-Wl,';;
7645 lt_prog_compiler_wl='-Qoption ld '
7646 lt_prog_compiler_pic='-PIC'
7647 lt_prog_compiler_static='-Bstatic'
7650 sysv4 | sysv4.2uw2* | sysv4.3*)
7651 lt_prog_compiler_wl='-Wl,'
7652 lt_prog_compiler_pic='-KPIC'
7653 lt_prog_compiler_static='-Bstatic'
7657 if test -d /usr/nec ;then
7658 lt_prog_compiler_pic='-Kconform_pic'
7659 lt_prog_compiler_static='-Bstatic'
7663 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7664 lt_prog_compiler_wl='-Wl,'
7665 lt_prog_compiler_pic='-KPIC'
7666 lt_prog_compiler_static='-Bstatic'
7670 lt_prog_compiler_wl='-Wl,'
7671 lt_prog_compiler_can_build_shared=no
7675 lt_prog_compiler_pic='-pic'
7676 lt_prog_compiler_static='-Bstatic'
7680 lt_prog_compiler_can_build_shared=no
7685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7689 # Check to make sure the PIC flag actually works.
7691 if test -n "$lt_prog_compiler_pic"; then
7693 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7694 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7695 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 lt_cv_prog_compiler_pic_works=no
7699 ac_outfile=conftest.$ac_objext
7700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7701 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7702 # Insert the option either (1) after the last *FLAGS variable, or
7703 # (2) before a word containing "conftest.", or (3) at the end.
7704 # Note that $ac_compile itself does not contain backslashes and begins
7705 # with a dollar sign (not a hyphen), so the echo should work correctly.
7706 # The option is referenced via a variable to avoid confusing sed.
7707 lt_compile=`echo "$ac_compile" | $SED \
7708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7710 -e 's:$: $lt_compiler_flag:'`
7711 (eval echo "\"\$as_me:7711: $lt_compile\"" >&5)
7712 (eval "$lt_compile" 2>conftest.err)
7714 cat conftest.err >&5
7715 echo "$as_me:7715: \$? = $ac_status" >&5
7716 if (exit $ac_status) && test -s "$ac_outfile"; then
7717 # The compiler can only warn and ignore the option if not recognized
7718 # So say no if there are warnings other than the usual output.
7719 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7722 lt_cv_prog_compiler_pic_works=yes
7728 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7729 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7731 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7732 case $lt_prog_compiler_pic in
7734 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7737 lt_prog_compiler_pic=
7738 lt_prog_compiler_can_build_shared=no
7743 # For platforms which do not support PIC, -DPIC is meaningless:
7745 lt_prog_compiler_pic=
7748 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7753 # Check to make sure the static flag actually works.
7755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7758 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 lt_cv_prog_compiler_static_works=no
7762 save_LDFLAGS="$LDFLAGS"
7763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7766 # The linker can only warn and ignore the option if not recognized
7767 # So say no if there are warnings
7768 if test -s conftest.err; then
7769 # Append any errors to the config.log.
7770 cat conftest.err 1>&5
7771 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773 if diff conftest.exp conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_static_works=yes
7777 lt_cv_prog_compiler_static_works=yes
7781 LDFLAGS="$save_LDFLAGS"
7784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7790 lt_prog_compiler_static=
7794 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7795 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7796 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 lt_cv_prog_compiler_c_o=no
7800 $rm -r conftest 2>/dev/null
7804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7806 lt_compiler_flag="-o out/conftest2.$ac_objext"
7807 # Insert the option either (1) after the last *FLAGS variable, or
7808 # (2) before a word containing "conftest.", or (3) at the end.
7809 # Note that $ac_compile itself does not contain backslashes and begins
7810 # with a dollar sign (not a hyphen), so the echo should work correctly.
7811 lt_compile=`echo "$ac_compile" | $SED \
7812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7814 -e 's:$: $lt_compiler_flag:'`
7815 (eval echo "\"\$as_me:7815: $lt_compile\"" >&5)
7816 (eval "$lt_compile" 2>out/conftest.err)
7818 cat out/conftest.err >&5
7819 echo "$as_me:7819: \$? = $ac_status" >&5
7820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7822 # The compiler can only warn and ignore the option if not recognized
7823 # So say no if there are warnings
7824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7827 lt_cv_prog_compiler_c_o=yes
7832 # SGI C++ compiler will create directory out/ii_files/ for
7833 # template instantiation
7834 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7835 $rm out/* && rmdir out
7841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7842 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7845 hard_links="nottested"
7846 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7847 # do not overwrite the value of need_locks provided by the user
7848 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7849 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7854 ln conftest.a conftest.b 2>&5 || hard_links=no
7855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7856 { echo "$as_me:$LINENO: result: $hard_links" >&5
7857 echo "${ECHO_T}$hard_links" >&6; }
7858 if test "$hard_links" = no; then
7859 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7860 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7871 allow_undefined_flag=
7872 enable_shared_with_static_runtimes=no
7874 archive_expsym_cmds=
7875 old_archive_From_new_cmds=
7876 old_archive_from_expsyms_cmds=
7877 export_dynamic_flag_spec=
7878 whole_archive_flag_spec=
7879 thread_safe_flag_spec=
7880 hardcode_libdir_flag_spec=
7881 hardcode_libdir_flag_spec_ld=
7882 hardcode_libdir_separator=
7885 hardcode_shlibpath_var=unsupported
7886 link_all_deplibs=unknown
7887 hardcode_automatic=no
7890 always_export_symbols=no
7891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7892 # include_expsyms should be a list of space-separated symbols to be *always*
7893 # included in the symbol list
7895 # exclude_expsyms can be an extended regexp of symbols to exclude
7896 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7897 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7898 # as well as any symbol that contains `d'.
7899 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7900 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7901 # platforms (ab)use it in PIC code, but their linkers get confused if
7902 # the symbol is explicitly referenced. Since portable code cannot
7903 # rely on this symbol name, it's probably fine to never include it in
7904 # preloaded symbol tables.
7905 # Exclude shared library initialization/finalization symbols.
7906 extract_expsyms_cmds=
7907 # Just being paranoid about ensuring that cc_basename is set.
7908 for cc_temp in $compiler""; do
7910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7919 cygwin* | mingw* | pw32*)
7920 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7921 # When not using gcc, we currently assume that we are using
7922 # Microsoft Visual C++.
7923 if test "$GCC" != yes; then
7928 # we just hope/assume this is gcc and not c89 (= MSVC++)
7937 if test "$with_gnu_ld" = yes; then
7938 # If archive_cmds runs LD, not CC, wlarc should be empty
7941 # Set some defaults for GNU ld with shared library support. These
7942 # are reset later if shared libraries are not supported. Putting them
7943 # here allows them to be overridden if necessary.
7944 runpath_var=LD_RUN_PATH
7945 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7946 export_dynamic_flag_spec='${wl}--export-dynamic'
7947 # ancient GNU ld didn't support --whole-archive et. al.
7948 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7949 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7951 whole_archive_flag_spec=
7953 supports_anon_versioning=no
7954 case `$LD -v 2>/dev/null` in
7955 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7956 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7957 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7958 *\ 2.11.*) ;; # other 2.11 versions
7959 *) supports_anon_versioning=yes ;;
7962 # See if GNU ld supports shared libraries.
7965 # On AIX/PPC, the GNU linker is very broken
7966 if test "$host_cpu" != ia64; then
7970 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7971 *** to be unable to reliably create shared libraries on AIX.
7972 *** Therefore, libtool is disabling shared libraries support. If you
7973 *** really care for shared libraries, you may want to modify your PATH
7974 *** so that a non-GNU linker is found, and then restart.
7981 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)'
7982 hardcode_libdir_flag_spec='-L$libdir'
7983 hardcode_minus_L=yes
7985 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7986 # that the semantics of dynamic libraries on AmigaOS, at least up
7987 # to version 4, is to share data among multiple programs linked
7988 # with the same dynamic library. Since this doesn't match the
7989 # behavior of shared libraries on other platforms, we can't use
7995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7996 allow_undefined_flag=unsupported
7997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7998 # support --undefined. This deserves some investigation. FIXME
7999 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8005 cygwin* | mingw* | pw32*)
8006 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8007 # as there is no search path for DLLs.
8008 hardcode_libdir_flag_spec='-L$libdir'
8009 allow_undefined_flag=unsupported
8010 always_export_symbols=no
8011 enable_shared_with_static_runtimes=yes
8012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8014 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8016 # If the export-symbols file already is a .def file (1st line
8017 # is EXPORTS), use it as is; otherwise, prepend...
8018 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8019 cp $export_symbols $output_objdir/$soname.def;
8021 echo EXPORTS > $output_objdir/$soname.def;
8022 cat $export_symbols >> $output_objdir/$soname.def;
8024 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8032 hardcode_shlibpath_var=no
8033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8034 export_dynamic_flag_spec='${wl}-E'
8035 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8036 # Instead, shared libraries are loaded at an image base (0x10000000 by
8037 # default) and relocated if they conflict, which is a slow very memory
8038 # consuming and fragmenting process. To avoid this, we pick a random,
8039 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8040 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8042 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'
8045 gnu* | linux* | k*bsd*-gnu)
8046 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8048 case $cc_basename,$host_cpu in
8049 pgcc*) # Portland Group C compiler
8050 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'
8051 tmp_addflag=' $pic_flag'
8053 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8054 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'
8055 tmp_addflag=' $pic_flag -Mnomain' ;;
8056 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8057 tmp_addflag=' -i_dynamic' ;;
8058 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8059 tmp_addflag=' -i_dynamic -nofor_main' ;;
8060 ifc* | ifort*) # Intel Fortran compiler
8061 tmp_addflag=' -nofor_main' ;;
8063 case `$CC -V 2>&1 | sed 5q` in
8064 *Sun\ C*) # Sun C 5.9
8065 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'
8066 tmp_sharedflag='-G' ;;
8067 *Sun\ F*) # Sun Fortran 8.3
8068 tmp_sharedflag='-G' ;;
8070 tmp_sharedflag='-shared' ;;
8072 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074 if test $supports_anon_versioning = yes; then
8075 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8077 $echo "local: *; };" >> $output_objdir/$libname.ver~
8078 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8086 netbsd* | netbsdelf*-gnu)
8087 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8088 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8097 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8101 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8102 *** create shared libraries on Solaris systems. Therefore, libtool
8103 *** is disabling shared libraries support. We urge you to upgrade GNU
8104 *** binutils to release 2.9.1 or newer. Another option is to modify
8105 *** your PATH or compiler configuration so that the native linker is
8106 *** used, and then restart.
8109 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8118 case `$LD -v 2>&1` in
8119 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8123 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8124 *** reliably create shared libraries on SCO systems. Therefore, libtool
8125 *** is disabling shared libraries support. We urge you to upgrade GNU
8126 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8127 *** your PATH or compiler configuration so that the native linker is
8128 *** used, and then restart.
8133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8134 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8145 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8148 hardcode_shlibpath_var=no
8152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8161 if test "$ld_shlibs" = no; then
8163 hardcode_libdir_flag_spec=
8164 export_dynamic_flag_spec=
8165 whole_archive_flag_spec=
8168 # PORTME fill in a description of your system's linker (not GNU ld)
8171 allow_undefined_flag=unsupported
8172 always_export_symbols=yes
8173 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'
8174 # Note: this linker hardcodes the directories in LIBPATH if there
8175 # are no directories specified by -L.
8176 hardcode_minus_L=yes
8177 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8178 # Neither direct hardcoding nor static linking is supported with a
8180 hardcode_direct=unsupported
8185 if test "$host_cpu" = ia64; then
8186 # On IA64, the linker does run time linking by default, so we don't
8187 # have to do anything special.
8188 aix_use_runtimelinking=no
8189 exp_sym_flag='-Bexport'
8192 # If we're using GNU nm, then we don't want the "-C" option.
8193 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8194 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8195 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'
8197 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'
8199 aix_use_runtimelinking=no
8201 # Test if we are trying to use run time linking or normal
8202 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8203 # need to do runtime linking.
8204 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8205 for ld_flag in $LDFLAGS; do
8206 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8207 aix_use_runtimelinking=yes
8214 exp_sym_flag='-bexport'
8215 no_entry_flag='-bnoentry'
8218 # When large executables or shared objects are built, AIX ld can
8219 # have problems creating the table of contents. If linking a library
8220 # or program results in "error TOC overflow" add -mminimal-toc to
8221 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8222 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8226 hardcode_libdir_separator=':'
8227 link_all_deplibs=yes
8229 if test "$GCC" = yes; then
8230 case $host_os in aix4.[012]|aix4.[012].*)
8231 # We only want to do this on AIX 4.2 and lower, the check
8232 # below for broken collect2 doesn't work under 4.3+
8233 collect2name=`${CC} -print-prog-name=collect2`
8234 if test -f "$collect2name" && \
8235 strings "$collect2name" | grep resolve_lib_name >/dev/null
8237 # We have reworked collect2
8240 # We have old collect2
8241 hardcode_direct=unsupported
8242 # It fails to find uninstalled libraries when the uninstalled
8243 # path is not listed in the libpath. Setting hardcode_minus_L
8244 # to unsupported forces relinking
8245 hardcode_minus_L=yes
8246 hardcode_libdir_flag_spec='-L$libdir'
8247 hardcode_libdir_separator=
8251 shared_flag='-shared'
8252 if test "$aix_use_runtimelinking" = yes; then
8253 shared_flag="$shared_flag "'${wl}-G'
8257 if test "$host_cpu" = ia64; then
8258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8259 # chokes on -Wl,-G. The following line is correct:
8262 if test "$aix_use_runtimelinking" = yes; then
8263 shared_flag='${wl}-G'
8265 shared_flag='${wl}-bM:SRE'
8270 # It seems that -bexpall does not export symbols beginning with
8271 # underscore (_), so it is better to generate a list of symbols to export.
8272 always_export_symbols=yes
8273 if test "$aix_use_runtimelinking" = yes; then
8274 # Warning - without using the other runtime loading flags (-brtl),
8275 # -berok will link without error, but may produce a broken library.
8276 allow_undefined_flag='-berok'
8277 # Determine the default libpath from the value encoded in an empty executable.
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_link") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1 >conftest.err
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest$ac_exeext &&
8310 $as_test_x conftest$ac_exeext; then
8312 lt_aix_libpath_sed='
8313 /Import File Strings/,/^$/ {
8319 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8320 # Check for a 64-bit object if we didn't find anything.
8321 if test -z "$aix_libpath"; then
8322 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332 conftest$ac_exeext conftest.$ac_ext
8333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8335 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8336 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"
8338 if test "$host_cpu" = ia64; then
8339 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8340 allow_undefined_flag="-z nodefs"
8341 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"
8343 # Determine the default libpath from the value encoded in an empty executable.
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (ac_try="$ac_link"
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_link") 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest$ac_exeext &&
8376 $as_test_x conftest$ac_exeext; then
8378 lt_aix_libpath_sed='
8379 /Import File Strings/,/^$/ {
8385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8386 # Check for a 64-bit object if we didn't find anything.
8387 if test -z "$aix_libpath"; then
8388 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8398 conftest$ac_exeext conftest.$ac_ext
8399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8402 # Warning - without using the other run time loading flags,
8403 # -berok will link without error, but may produce a broken library.
8404 no_undefined_flag=' ${wl}-bernotok'
8405 allow_undefined_flag=' ${wl}-berok'
8406 # Exported symbols can be pulled into shared objects from archives
8407 whole_archive_flag_spec='$convenience'
8408 archive_cmds_need_lc=yes
8409 # This is similar to how AIX traditionally builds its shared libraries.
8410 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'
8416 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)'
8417 hardcode_libdir_flag_spec='-L$libdir'
8418 hardcode_minus_L=yes
8419 # see comment about different semantics on the GNU ld section
8424 export_dynamic_flag_spec=-rdynamic
8427 cygwin* | mingw* | pw32*)
8428 # When not using gcc, we currently assume that we are using
8429 # Microsoft Visual C++.
8430 # hardcode_libdir_flag_spec is actually meaningless, as there is
8431 # no search path for DLLs.
8432 hardcode_libdir_flag_spec=' '
8433 allow_undefined_flag=unsupported
8434 # Tell ltmain to make .lib files, not .a files.
8436 # Tell ltmain to make .dll files, not .so files.
8438 # FIXME: Setting linknames here is a bad hack.
8439 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8440 # The linker will automatically build a .lib file if we build a DLL.
8441 old_archive_From_new_cmds='true'
8442 # FIXME: Should let the user specify the lib program.
8443 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8444 fix_srcfile_path='`cygpath -w "$srcfile"`'
8445 enable_shared_with_static_runtimes=yes
8448 darwin* | rhapsody*)
8450 rhapsody* | darwin1.[012])
8451 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8454 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8455 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8457 case ${MACOSX_DEPLOYMENT_TARGET} in
8459 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8462 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8468 archive_cmds_need_lc=no
8470 hardcode_automatic=yes
8471 hardcode_shlibpath_var=unsupported
8472 whole_archive_flag_spec=''
8473 link_all_deplibs=yes
8474 if test "$GCC" = yes ; then
8475 output_verbose_link_cmd='echo'
8476 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8477 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8478 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}"
8479 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}"
8481 case $cc_basename in
8483 output_verbose_link_cmd='echo'
8484 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8485 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8486 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8487 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}'
8488 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}'
8498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499 hardcode_libdir_flag_spec='-L$libdir'
8500 hardcode_shlibpath_var=no
8507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8508 # support. Future versions do this automatically, but an explicit c++rt0.o
8509 # does not break anything, and helps significantly (at the cost of a little
8512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8513 hardcode_libdir_flag_spec='-R$libdir'
8515 hardcode_shlibpath_var=no
8518 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_minus_L=yes
8523 hardcode_shlibpath_var=no
8526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8527 freebsd* | dragonfly*)
8528 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8529 hardcode_libdir_flag_spec='-R$libdir'
8531 hardcode_shlibpath_var=no
8535 if test "$GCC" = yes; then
8536 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'
8538 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'
8540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8541 hardcode_libdir_separator=:
8544 # hardcode_minus_L: Not really in the search PATH,
8545 # but as the default location of the library.
8546 hardcode_minus_L=yes
8547 export_dynamic_flag_spec='${wl}-E'
8551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8554 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8556 if test "$with_gnu_ld" = no; then
8557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8558 hardcode_libdir_separator=:
8561 export_dynamic_flag_spec='${wl}-E'
8563 # hardcode_minus_L: Not really in the search PATH,
8564 # but as the default location of the library.
8565 hardcode_minus_L=yes
8570 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8573 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8585 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8588 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8595 if test "$with_gnu_ld" = no; then
8596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8597 hardcode_libdir_separator=:
8601 hardcode_libdir_flag_spec_ld='+b $libdir'
8603 hardcode_shlibpath_var=no
8607 export_dynamic_flag_spec='${wl}-E'
8609 # hardcode_minus_L: Not really in the search PATH,
8610 # but as the default location of the library.
8611 hardcode_minus_L=yes
8617 irix5* | irix6* | nonstopux*)
8618 if test "$GCC" = yes; then
8619 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'
8621 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'
8622 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625 hardcode_libdir_separator=:
8626 link_all_deplibs=yes
8629 netbsd* | netbsdelf*-gnu)
8630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8633 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8635 hardcode_libdir_flag_spec='-R$libdir'
8637 hardcode_shlibpath_var=no
8641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644 hardcode_libdir_separator=:
8645 hardcode_shlibpath_var=no
8649 if test -f /usr/libexec/ld.so; then
8651 hardcode_shlibpath_var=no
8652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8654 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8656 export_dynamic_flag_spec='${wl}-E'
8659 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_libdir_flag_spec='-R$libdir'
8664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675 hardcode_libdir_flag_spec='-L$libdir'
8676 hardcode_minus_L=yes
8677 allow_undefined_flag=unsupported
8678 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'
8679 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8683 if test "$GCC" = yes; then
8684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8685 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'
8687 allow_undefined_flag=' -expect_unresolved \*'
8688 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'
8690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8691 hardcode_libdir_separator=:
8694 osf4* | osf5*) # as osf3* with the addition of -msym flag
8695 if test "$GCC" = yes; then
8696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8697 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'
8698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 allow_undefined_flag=' -expect_unresolved \*'
8701 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'
8702 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8703 $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'
8705 # Both c and cxx compiler support -rpath directly
8706 hardcode_libdir_flag_spec='-rpath $libdir'
8708 hardcode_libdir_separator=:
8712 no_undefined_flag=' -z text'
8713 if test "$GCC" = yes; then
8715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8717 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8720 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8724 hardcode_libdir_flag_spec='-R$libdir'
8725 hardcode_shlibpath_var=no
8727 solaris2.[0-5] | solaris2.[0-5].*) ;;
8729 # The compiler driver will combine and reorder linker options,
8730 # but understands `-z linker_flag'. GCC discards it without `$wl',
8731 # but is careful enough not to reorder.
8732 # Supported since Solaris 2.6 (maybe 2.5.1?)
8733 if test "$GCC" = yes; then
8734 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8736 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8740 link_all_deplibs=yes
8744 if test "x$host_vendor" = xsequent; then
8745 # Use $CC to link under sequent, because it throws in some extra .o
8746 # files that make .init and .fini sections work.
8747 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8751 hardcode_libdir_flag_spec='-L$libdir'
8753 hardcode_minus_L=yes
8754 hardcode_shlibpath_var=no
8758 case $host_vendor in
8760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8761 hardcode_direct=yes # is this really true???
8764 ## LD is ld it makes a PLAMLIB
8765 ## CC just makes a GrossModule.
8766 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8767 reload_cmds='$CC -r -o $output$reload_objs'
8771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8775 runpath_var='LD_RUN_PATH'
8776 hardcode_shlibpath_var=no
8780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_shlibpath_var=no
8782 export_dynamic_flag_spec='-Bexport'
8786 if test -d /usr/nec; then
8787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_shlibpath_var=no
8789 runpath_var=LD_RUN_PATH
8790 hardcode_runpath_var=yes
8795 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8796 no_undefined_flag='${wl}-z,text'
8797 archive_cmds_need_lc=no
8798 hardcode_shlibpath_var=no
8799 runpath_var='LD_RUN_PATH'
8801 if test "$GCC" = yes; then
8802 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8810 sysv5* | sco3.2v5* | sco5v6*)
8811 # Note: We can NOT use -z defs as we might desire, because we do not
8812 # link with -lc, and that would cause any symbols used from libc to
8813 # always be unresolved, which means just about no library would
8814 # ever link correctly. If we're not using GNU ld we use -z text
8815 # though, which does catch some bad symbols but isn't as heavy-handed
8817 no_undefined_flag='${wl}-z,text'
8818 allow_undefined_flag='${wl}-z,nodefs'
8819 archive_cmds_need_lc=no
8820 hardcode_shlibpath_var=no
8821 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8822 hardcode_libdir_separator=':'
8823 link_all_deplibs=yes
8824 export_dynamic_flag_spec='${wl}-Bexport'
8825 runpath_var='LD_RUN_PATH'
8827 if test "$GCC" = yes; then
8828 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_shlibpath_var=no
8848 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8849 echo "${ECHO_T}$ld_shlibs" >&6; }
8850 test "$ld_shlibs" = no && can_build_shared=no
8853 # Do we need to explicitly link libc?
8855 case "x$archive_cmds_need_lc" in
8857 # Assume -lc should be added
8858 archive_cmds_need_lc=yes
8860 if test "$enable_shared" = yes && test "$GCC" = yes; then
8861 case $archive_cmds in
8863 # FIXME: we may have to deal with multi-command sequences.
8866 # Test whether the compiler implicitly links with -lc since on some
8867 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8868 # to ld, don't add -lc before -lgcc.
8869 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8870 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8875 (eval $ac_compile) 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } 2>conftest.err; then
8881 libobjs=conftest.$ac_objext
8883 wl=$lt_prog_compiler_wl
8884 pic_flag=$lt_prog_compiler_pic
8890 lt_save_allow_undefined_flag=$allow_undefined_flag
8891 allow_undefined_flag=
8892 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8893 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }
8898 archive_cmds_need_lc=no
8900 archive_cmds_need_lc=yes
8902 allow_undefined_flag=$lt_save_allow_undefined_flag
8904 cat conftest.err 1>&5
8907 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8908 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8915 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8916 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8918 libname_spec='lib$name'
8926 shlibpath_overrides_runpath=unknown
8928 dynamic_linker="$host_os ld.so"
8929 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8931 if test "$GCC" = yes; then
8933 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8934 *) lt_awk_arg="/^libraries:/" ;;
8936 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8937 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8938 # if the path contains ";" then we assume it to be the separator
8939 # otherwise default to the standard path separator (i.e. ":") - it is
8940 # assumed that no part of a normal pathname contains ";" but that should
8941 # okay in the real world where ";" in dirpaths is itself problematic.
8942 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8944 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8946 # Ok, now we have the path, separated by spaces, we can step through it
8947 # and add multilib dir if necessary.
8948 lt_tmp_lt_search_path_spec=
8949 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8950 for lt_sys_path in $lt_search_path_spec; do
8951 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8952 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8954 test -d "$lt_sys_path" && \
8955 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8958 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8959 BEGIN {RS=" "; FS="/|\n";} {
8962 for (lt_i = NF; lt_i > 0; lt_i--) {
8963 if ($lt_i != "" && $lt_i != ".") {
8964 if ($lt_i == "..") {
8967 if (lt_count == 0) {
8968 lt_foo="/" $lt_i lt_foo;
8975 if (lt_foo != "") { lt_freq[lt_foo]++; }
8976 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8978 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8982 need_lib_prefix=unknown
8983 hardcode_into_libs=no
8985 # when you set need_version to no, make sure it does not cause -set_version
8986 # flags to be left without arguments
8987 need_version=unknown
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8993 shlibpath_var=LIBPATH
8995 # AIX 3 has no versioning support, so we append a major version to the name.
8996 soname_spec='${libname}${release}${shared_ext}$major'
9003 hardcode_into_libs=yes
9004 if test "$host_cpu" = ia64; then
9005 # AIX 5 supports IA64
9006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9007 shlibpath_var=LD_LIBRARY_PATH
9009 # With GCC up to 2.95.x, collect2 would create an import file
9010 # for dependence libraries. The import file would start with
9011 # the line `#! .'. This would cause the generated library to
9012 # depend on `.', always an invalid library. This was fixed in
9013 # development snapshots of GCC prior to 3.0.
9015 aix4 | aix4.[01] | aix4.[01].*)
9016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9018 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9026 # soname into executable. Probably we can add versioning support to
9027 # collect2, so additional links can be useful in future.
9028 if test "$aix_use_runtimelinking" = yes; then
9029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9030 # instead of lib<name>.a to let people know that these are not
9031 # typical AIX shared libraries.
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 # We preserve .a as extension for shared libraries through AIX4.2
9035 # and later when we are not doing run time linking.
9036 library_names_spec='${libname}${release}.a $libname.a'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LIBPATH
9044 library_names_spec='$libname.ixlibrary $libname.a'
9045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9046 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'
9050 library_names_spec='${libname}${shared_ext}'
9051 dynamic_linker="$host_os ld.so"
9052 shlibpath_var=LIBRARY_PATH
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9064 # the default ld.so.conf also contains /usr/contrib/lib and
9065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9066 # libtool to hard-code these into programs
9069 cygwin* | mingw* | pw32*)
9070 version_type=windows
9075 case $GCC,$host_os in
9076 yes,cygwin* | yes,mingw* | yes,pw32*)
9077 library_names_spec='$libname.dll.a'
9078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9079 postinstall_cmds='base_file=`basename \${file}`~
9080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9081 dldir=$destdir/`dirname \$dlpath`~
9082 test -d \$dldir || mkdir -p \$dldir~
9083 $install_prog $dir/$dlname \$dldir/$dlname~
9084 chmod a+x \$dldir/$dlname'
9085 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9086 dlpath=$dir/\$dldll~
9088 shlibpath_overrides_runpath=yes
9092 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9093 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9094 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9097 # MinGW DLLs use traditional 'lib' prefix
9098 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9099 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9100 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9101 # It is most probably a Windows format PATH printed by
9102 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9103 # path with ; separators, and with drive letters. We can handle the
9104 # drive letters (cygwin fileutils understands them), so leave them,
9105 # especially as we might pass files found there to a mingw objdump,
9106 # which wouldn't understand a cygwinified path. Ahh.
9107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9113 # pw32 DLLs use 'pw' prefix rather than 'lib'
9114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9120 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9123 dynamic_linker='Win32 ld.exe'
9124 # FIXME: first we should search . and the directory the executable is in
9128 darwin* | rhapsody*)
9129 dynamic_linker="$host_os dyld"
9133 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9134 soname_spec='${libname}${release}${major}$shared_ext'
9135 shlibpath_overrides_runpath=yes
9136 shlibpath_var=DYLD_LIBRARY_PATH
9137 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9156 freebsd* | dragonfly*)
9157 # DragonFly does not have aout. When/if they implement a new
9158 # versioning mechanism, adjust this.
9159 if test -x /usr/bin/objformat; then
9160 objformat=`/usr/bin/objformat`
9163 freebsd[123]*) objformat=aout ;;
9167 version_type=freebsd-$objformat
9168 case $version_type in
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9179 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9184 freebsd3.[01]* | freebsdelf3.[01]*)
9185 shlibpath_overrides_runpath=yes
9186 hardcode_into_libs=yes
9188 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9189 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9190 shlibpath_overrides_runpath=no
9191 hardcode_into_libs=yes
9193 *) # from 4.6 on, and DragonFly
9194 shlibpath_overrides_runpath=yes
9195 hardcode_into_libs=yes
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 hardcode_into_libs=yes
9210 hpux9* | hpux10* | hpux11*)
9211 # Give a soname corresponding to the major version so that dld.sl refuses to
9212 # link against other versions.
9219 hardcode_into_libs=yes
9220 dynamic_linker="$host_os dld.so"
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 if test "X$HPUX_IA64_MODE" = X32; then
9226 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9228 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9234 hardcode_into_libs=yes
9235 dynamic_linker="$host_os dld.sl"
9236 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9245 dynamic_linker="$host_os dld.sl"
9246 shlibpath_var=SHLIB_PATH
9247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9252 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9253 postinstall_cmds='chmod 555 $lib'
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9261 soname_spec='${libname}${release}${shared_ext}$major'
9262 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 shlibpath_overrides_runpath=no
9265 hardcode_into_libs=yes
9268 irix5* | irix6* | nonstopux*)
9270 nonstopux*) version_type=nonstopux ;;
9272 if test "$lt_cv_prog_gnu_ld" = yes; then
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9283 irix5* | nonstopux*)
9287 case $LD in # libtool.m4 will add one of these switches to LD
9288 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9289 libsuff= shlibsuff= libmagic=32-bit;;
9290 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9291 libsuff=32 shlibsuff=N32 libmagic=N32;;
9292 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9293 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9294 *) libsuff= shlibsuff= libmagic=never-match;;
9298 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9299 shlibpath_overrides_runpath=no
9300 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9301 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9302 hardcode_into_libs=yes
9305 # No shared lib support for Linux oldld, aout, or coff.
9306 linux*oldld* | linux*aout* | linux*coff*)
9310 # This must be Linux ELF.
9311 linux* | k*bsd*-gnu)
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=no
9320 # This implies no fast_install, which is unacceptable.
9321 # Some rework will be needed to allow for fast_install
9322 # before this can be enabled.
9323 hardcode_into_libs=yes
9325 # Append ld.so.conf contents to the search path
9326 if test -f /etc/ld.so.conf; then
9327 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' ' '`
9328 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9331 # We used to test for /lib/ld.so.1 and disable shared libraries on
9332 # powerpc, because MkLinux only supported shared libraries with the
9333 # GNU dynamic linker. Since this was broken with cross compilers,
9334 # most powerpc-linux boxes support dynamic linking these days and
9335 # people can always --disable-shared, the test was removed, and we
9336 # assume the GNU/Linux dynamic linker is in use.
9337 dynamic_linker='GNU/Linux ld.so'
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 shlibpath_overrides_runpath=no
9348 hardcode_into_libs=yes
9349 dynamic_linker='NetBSD ld.elf_so'
9356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9359 dynamic_linker='NetBSD (a.out) ld.so'
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 dynamic_linker='NetBSD ld.elf_so'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 shlibpath_overrides_runpath=yes
9367 hardcode_into_libs=yes
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 shlibpath_overrides_runpath=yes
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=yes
9389 sys_lib_dlsearch_path_spec="/usr/lib"
9391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9394 *) need_version=no ;;
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9401 openbsd2.[89] | openbsd2.[89].*)
9402 shlibpath_overrides_runpath=no
9405 shlibpath_overrides_runpath=yes
9409 shlibpath_overrides_runpath=yes
9414 libname_spec='$name'
9417 library_names_spec='$libname${shared_ext} $libname.a'
9418 dynamic_linker='OS/2 ld.exe'
9419 shlibpath_var=LIBPATH
9422 osf3* | osf4* | osf5*)
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 shlibpath_overrides_runpath=yes
9445 hardcode_into_libs=yes
9446 # ldd complains unless libraries are executable
9447 postinstall_cmds='chmod +x $lib'
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 if test "$with_gnu_ld" = yes; then
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 case $host_vendor in
9469 shlibpath_overrides_runpath=no
9471 export_dynamic_flag_spec='${wl}-Blargedynsym'
9472 runpath_var=LD_RUN_PATH
9480 shlibpath_overrides_runpath=no
9481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9487 if test -d /usr/nec ;then
9489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9490 soname_spec='$libname${shared_ext}.$major'
9491 shlibpath_var=LD_LIBRARY_PATH
9495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9496 version_type=freebsd-elf
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 hardcode_into_libs=yes
9503 if test "$with_gnu_ld" = yes; then
9504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9505 shlibpath_overrides_runpath=no
9507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9508 shlibpath_overrides_runpath=yes
9511 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9515 sys_lib_dlsearch_path_spec='/usr/lib'
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 shlibpath_var=LD_LIBRARY_PATH
9529 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9530 echo "${ECHO_T}$dynamic_linker" >&6; }
9531 test "$dynamic_linker" = no && can_build_shared=no
9533 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9539 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9540 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9546 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9549 if test "$GCC" = yes; then
9550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9553 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9554 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9556 if test -n "$hardcode_libdir_flag_spec" || \
9557 test -n "$runpath_var" || \
9558 test "X$hardcode_automatic" = "Xyes" ; then
9560 # We can hardcode non-existant directories.
9561 if test "$hardcode_direct" != no &&
9562 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9563 # have to relink, otherwise we might link with an installed library
9564 # when we should be linking with a yet-to-be-installed one
9565 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9566 test "$hardcode_minus_L" != no; then
9567 # Linking always hardcodes the temporary library directory.
9568 hardcode_action=relink
9570 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9571 hardcode_action=immediate
9574 # We cannot hardcode anything, or else we can only hardcode existing
9576 hardcode_action=unsupported
9578 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9579 echo "${ECHO_T}$hardcode_action" >&6; }
9581 if test "$hardcode_action" = relink; then
9582 # Fast installation is not supported
9583 enable_fast_install=no
9584 elif test "$shlibpath_overrides_runpath" = yes ||
9585 test "$enable_shared" = no; then
9586 # Fast installation is not necessary
9587 enable_fast_install=needless
9592 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9593 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9594 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9595 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9596 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9597 { echo "$as_me:$LINENO: result: yes" >&5
9598 echo "${ECHO_T}yes" >&6; }
9600 # FIXME - insert some real tests, host_os isn't really good enough
9603 if test -n "$STRIP" ; then
9604 striplib="$STRIP -x"
9605 old_striplib="$STRIP -S"
9606 { echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6; }
9609 { echo "$as_me:$LINENO: result: no" >&5
9610 echo "${ECHO_T}no" >&6; }
9614 { echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6; }
9620 if test "x$enable_dlopen" != xyes; then
9621 enable_dlopen=unknown
9622 enable_dlopen_self=unknown
9623 enable_dlopen_self_static=unknown
9630 lt_cv_dlopen="load_add_on"
9632 lt_cv_dlopen_self=yes
9636 lt_cv_dlopen="LoadLibrary"
9641 lt_cv_dlopen="dlopen"
9646 # if libdl is installed we need to link against it
9647 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9648 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9649 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 ac_check_lib_save_LIBS=$LIBS
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9661 /* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (ac_try="$ac_link"
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_link") 2>conftest.er1
9685 grep -v '^ *+' conftest.er1 >conftest.err
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && {
9690 test -z "$ac_c_werror_flag" ||
9691 test ! -s conftest.err
9692 } && test -s conftest$ac_exeext &&
9693 $as_test_x conftest$ac_exeext; then
9694 ac_cv_lib_dl_dlopen=yes
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_cv_lib_dl_dlopen=no
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703 conftest$ac_exeext conftest.$ac_ext
9704 LIBS=$ac_check_lib_save_LIBS
9706 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9707 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9708 if test $ac_cv_lib_dl_dlopen = yes; then
9709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9714 lt_cv_dlopen_self=yes
9721 { echo "$as_me:$LINENO: checking for shl_load" >&5
9722 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9723 if test "${ac_cv_func_shl_load+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define shl_load innocuous_shl_load
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char shl_load (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9742 # include <limits.h>
9744 # include <assert.h>
9749 /* Override any GCC internal prototype to avoid an error.
9750 Use char because int might match the return type of a GCC
9751 builtin and then its argument prototype would still apply. */
9756 /* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759 #if defined __stub_shl_load || defined __stub___shl_load
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest$ac_exeext &&
9788 $as_test_x conftest$ac_exeext; then
9789 ac_cv_func_shl_load=yes
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9794 ac_cv_func_shl_load=no
9797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798 conftest$ac_exeext conftest.$ac_ext
9800 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9801 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9802 if test $ac_cv_func_shl_load = yes; then
9803 lt_cv_dlopen="shl_load"
9805 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9806 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9807 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 ac_check_lib_save_LIBS=$LIBS
9812 cat >conftest.$ac_ext <<_ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_link") 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest$ac_exeext &&
9851 $as_test_x conftest$ac_exeext; then
9852 ac_cv_lib_dld_shl_load=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_lib_dld_shl_load=no
9860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9866 if test $ac_cv_lib_dld_shl_load = yes; then
9867 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9869 { echo "$as_me:$LINENO: checking for dlopen" >&5
9870 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9871 if test "${ac_cv_func_dlopen+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 cat >conftest.$ac_ext <<_ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9882 #define dlopen innocuous_dlopen
9884 /* System header to define __stub macros and hopefully few prototypes,
9885 which can conflict with char dlopen (); below.
9886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9887 <limits.h> exists even on freestanding compilers. */
9890 # include <limits.h>
9892 # include <assert.h>
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9904 /* The GNU C library defines this for functions which it implements
9905 to always fail with ENOSYS. Some functions are actually named
9906 something starting with __ and the normal name is an alias. */
9907 #if defined __stub_dlopen || defined __stub___dlopen
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (ac_try="$ac_link"
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_link") 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest$ac_exeext &&
9936 $as_test_x conftest$ac_exeext; then
9937 ac_cv_func_dlopen=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_func_dlopen=no
9945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946 conftest$ac_exeext conftest.$ac_ext
9948 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9949 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9950 if test $ac_cv_func_dlopen = yes; then
9951 lt_cv_dlopen="dlopen"
9953 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9954 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 ac_check_lib_save_LIBS=$LIBS
9960 cat >conftest.$ac_ext <<_ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9982 rm -f conftest.$ac_objext conftest$ac_exeext
9983 if { (ac_try="$ac_link"
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_link") 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest$ac_exeext &&
9999 $as_test_x conftest$ac_exeext; then
10000 ac_cv_lib_dl_dlopen=yes
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 ac_cv_lib_dl_dlopen=no
10008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10009 conftest$ac_exeext conftest.$ac_ext
10010 LIBS=$ac_check_lib_save_LIBS
10012 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10013 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10014 if test $ac_cv_lib_dl_dlopen = yes; then
10015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10017 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-lsvld $LIBS"
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_link") 2>conftest.er1
10055 grep -v '^ *+' conftest.er1 >conftest.err
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } && {
10060 test -z "$ac_c_werror_flag" ||
10061 test ! -s conftest.err
10062 } && test -s conftest$ac_exeext &&
10063 $as_test_x conftest$ac_exeext; then
10064 ac_cv_lib_svld_dlopen=yes
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_cv_lib_svld_dlopen=no
10072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10073 conftest$ac_exeext conftest.$ac_ext
10074 LIBS=$ac_check_lib_save_LIBS
10076 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10077 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10078 if test $ac_cv_lib_svld_dlopen = yes; then
10079 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10081 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10082 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 ac_check_lib_save_LIBS=$LIBS
10088 cat >conftest.$ac_ext <<_ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 /* Override any GCC internal prototype to avoid an error.
10096 Use char because int might match the return type of a GCC
10097 builtin and then its argument prototype would still apply. */
10105 return dld_link ();
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1 >conftest.err
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest$ac_exeext &&
10127 $as_test_x conftest$ac_exeext; then
10128 ac_cv_lib_dld_dld_link=yes
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_lib_dld_dld_link=no
10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10141 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10142 if test $ac_cv_lib_dld_dld_link = yes; then
10143 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10164 if test "x$lt_cv_dlopen" != xno; then
10170 case $lt_cv_dlopen in
10172 save_CPPFLAGS="$CPPFLAGS"
10173 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10175 save_LDFLAGS="$LDFLAGS"
10176 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10179 LIBS="$lt_cv_dlopen_libs $LIBS"
10181 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10182 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10183 if test "${lt_cv_dlopen_self+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 if test "$cross_compiling" = yes; then :
10187 lt_cv_dlopen_self=cross
10189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10190 lt_status=$lt_dlunknown
10191 cat > conftest.$ac_ext <<EOF
10192 #line 10192 "configure"
10193 #include "confdefs.h"
10202 # define LT_DLGLOBAL RTLD_GLOBAL
10205 # define LT_DLGLOBAL DL_GLOBAL
10207 # define LT_DLGLOBAL 0
10211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10212 find out it does not work in some platform. */
10213 #ifndef LT_DLLAZY_OR_NOW
10215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10218 # define LT_DLLAZY_OR_NOW DL_LAZY
10221 # define LT_DLLAZY_OR_NOW RTLD_NOW
10224 # define LT_DLLAZY_OR_NOW DL_NOW
10226 # define LT_DLLAZY_OR_NOW 0
10234 extern "C" void exit (int);
10237 void fnord() { int i=42;}
10240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10241 int status = $lt_dlunknown;
10245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10246 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10247 /* dlclose (self); */
10255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256 (eval $ac_link) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10260 (./conftest; exit; ) >&5 2>/dev/null
10262 case x$lt_status in
10263 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10264 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10265 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10268 # compilation failed
10269 lt_cv_dlopen_self=no
10276 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10277 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10279 if test "x$lt_cv_dlopen_self" = xyes; then
10280 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10281 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10282 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10283 if test "${lt_cv_dlopen_self_static+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 if test "$cross_compiling" = yes; then :
10287 lt_cv_dlopen_self_static=cross
10289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10290 lt_status=$lt_dlunknown
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10292 "configure"
10293 #include "confdefs.h"
10302 # define LT_DLGLOBAL RTLD_GLOBAL
10305 # define LT_DLGLOBAL DL_GLOBAL
10307 # define LT_DLGLOBAL 0
10311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10312 find out it does not work in some platform. */
10313 #ifndef LT_DLLAZY_OR_NOW
10315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10318 # define LT_DLLAZY_OR_NOW DL_LAZY
10321 # define LT_DLLAZY_OR_NOW RTLD_NOW
10324 # define LT_DLLAZY_OR_NOW DL_NOW
10326 # define LT_DLLAZY_OR_NOW 0
10334 extern "C" void exit (int);
10337 void fnord() { int i=42;}
10340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10341 int status = $lt_dlunknown;
10345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10347 /* dlclose (self); */
10355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10356 (eval $ac_link) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10360 (./conftest; exit; ) >&5 2>/dev/null
10362 case x$lt_status in
10363 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10364 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10365 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10368 # compilation failed
10369 lt_cv_dlopen_self_static=no
10376 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10377 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10380 CPPFLAGS="$save_CPPFLAGS"
10381 LDFLAGS="$save_LDFLAGS"
10386 case $lt_cv_dlopen_self in
10387 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10388 *) enable_dlopen_self=unknown ;;
10391 case $lt_cv_dlopen_self_static in
10392 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10393 *) enable_dlopen_self_static=unknown ;;
10398 # Report which library types will actually be built
10399 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10400 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10401 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10402 echo "${ECHO_T}$can_build_shared" >&6; }
10404 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10405 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10406 test "$can_build_shared" = "no" && enable_shared=no
10408 # On AIX, shared libraries and static libraries use the same namespace, and
10409 # are all built from PIC.
10412 test "$enable_shared" = yes && enable_static=no
10413 if test -n "$RANLIB"; then
10414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10415 postinstall_cmds='$RANLIB $lib'
10420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10421 test "$enable_shared" = yes && enable_static=no
10425 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10426 echo "${ECHO_T}$enable_shared" >&6; }
10428 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10429 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10430 # Make sure either enable_shared or enable_static is yes.
10431 test "$enable_shared" = yes || enable_static=yes
10432 { echo "$as_me:$LINENO: result: $enable_static" >&5
10433 echo "${ECHO_T}$enable_static" >&6; }
10435 # The else clause should only fire when bootstrapping the
10436 # libtool distribution, otherwise you forgot to ship ltmain.sh
10437 # with your package, and you will get complaints that there are
10438 # no rules to generate ltmain.sh.
10439 if test -f "$ltmain"; then
10440 # See if we are running on zsh, and set the options which allow our commands through
10441 # without removal of \ escapes.
10442 if test -n "${ZSH_VERSION+set}" ; then
10443 setopt NO_GLOB_SUBST
10445 # Now quote all the things that may contain metacharacters while being
10446 # careful not to overquote the AC_SUBSTed values. We take copies of the
10447 # variables and quote the copies for generation of the libtool script.
10448 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10450 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10451 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10452 deplibs_check_method reload_flag reload_cmds need_locks \
10453 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10454 lt_cv_sys_global_symbol_to_c_name_address \
10455 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10456 old_postinstall_cmds old_postuninstall_cmds \
10460 lt_prog_compiler_wl \
10461 lt_prog_compiler_pic \
10462 lt_prog_compiler_static \
10463 lt_prog_compiler_no_builtin_flag \
10464 export_dynamic_flag_spec \
10465 thread_safe_flag_spec \
10466 whole_archive_flag_spec \
10467 enable_shared_with_static_runtimes \
10469 old_archive_from_new_cmds \
10474 compiler_lib_search_path \
10475 compiler_lib_search_dirs \
10477 archive_expsym_cmds \
10479 postuninstall_cmds \
10480 old_archive_from_expsyms_cmds \
10481 allow_undefined_flag \
10482 no_undefined_flag \
10483 export_symbols_cmds \
10484 hardcode_libdir_flag_spec \
10485 hardcode_libdir_flag_spec_ld \
10486 hardcode_libdir_separator \
10487 hardcode_automatic \
10489 module_expsym_cmds \
10490 lt_cv_prog_compiler_c_o \
10493 include_expsyms; do
10496 old_archive_cmds | \
10497 old_archive_from_new_cmds | \
10499 archive_expsym_cmds | \
10501 module_expsym_cmds | \
10502 old_archive_from_expsyms_cmds | \
10503 export_symbols_cmds | \
10504 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10505 postinstall_cmds | postuninstall_cmds | \
10506 old_postinstall_cmds | old_postuninstall_cmds | \
10507 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10508 # Double-quote double-evaled strings.
10509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10518 *'\$0 --fallback-echo"')
10519 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10523 cfgfile="${ofile}T"
10524 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10526 { echo "$as_me:$LINENO: creating $ofile" >&5
10527 echo "$as_me: creating $ofile" >&6;}
10529 cat <<__EOF__ >> "$cfgfile"
10532 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10533 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10534 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10536 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10537 # Free Software Foundation, Inc.
10539 # This file is part of GNU Libtool:
10540 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10542 # This program is free software; you can redistribute it and/or modify
10543 # it under the terms of the GNU General Public License as published by
10544 # the Free Software Foundation; either version 2 of the License, or
10545 # (at your option) any later version.
10547 # This program is distributed in the hope that it will be useful, but
10548 # WITHOUT ANY WARRANTY; without even the implied warranty of
10549 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10550 # General Public License for more details.
10552 # You should have received a copy of the GNU General Public License
10553 # along with this program; if not, write to the Free Software
10554 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10556 # As a special exception to the GNU General Public License, if you
10557 # distribute this file as part of a program that contains a
10558 # configuration script generated by Autoconf, you may include it under
10559 # the same distribution terms that you use for the rest of that program.
10561 # A sed program that does not truncate output.
10564 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10565 Xsed="$SED -e 1s/^X//"
10567 # The HP-UX ksh and POSIX shell print the target directory to stdout
10568 # if CDPATH is set.
10569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10571 # The names of the tagged configurations supported by this script.
10574 # ### BEGIN LIBTOOL CONFIG
10576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10578 # Shell to use when invoking shell scripts.
10581 # Whether or not to build shared libraries.
10582 build_libtool_libs=$enable_shared
10584 # Whether or not to build static libraries.
10585 build_old_libs=$enable_static
10587 # Whether or not to add -lc for building shared libraries.
10588 build_libtool_need_lc=$archive_cmds_need_lc
10590 # Whether or not to disallow shared libs when runtime libs are static
10591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10593 # Whether or not to optimize for fast installation.
10594 fast_install=$enable_fast_install
10597 host_alias=$host_alias
10601 # The build system.
10602 build_alias=$build_alias
10606 # An echo program that does not interpret backslashes.
10611 AR_FLAGS=$lt_AR_FLAGS
10616 # LTCC compiler flags.
10617 LTCFLAGS=$lt_LTCFLAGS
10619 # A language-specific compiler.
10622 # Is the compiler the GNU C compiler?
10628 # The linker used to build libraries.
10631 # Whether we need hard or soft links.
10634 # A BSD-compatible nm program.
10637 # A symbol stripping program
10640 # Used to examine libraries when file_magic_cmd begins "file"
10641 MAGIC_CMD=$MAGIC_CMD
10643 # Used on cygwin: DLL creation program.
10646 # Used on cygwin: object dumper.
10649 # Used on cygwin: assembler.
10652 # The name of the directory that contains temporary libtool files.
10655 # How to create reloadable object files.
10656 reload_flag=$lt_reload_flag
10657 reload_cmds=$lt_reload_cmds
10659 # How to pass a linker flag through the compiler.
10660 wl=$lt_lt_prog_compiler_wl
10662 # Object file suffix (normally "o").
10663 objext="$ac_objext"
10665 # Old archive suffix (normally "a").
10668 # Shared library suffix (normally ".so").
10669 shrext_cmds='$shrext_cmds'
10671 # Executable file suffix (normally "").
10674 # Additional compiler flags for building library objects.
10675 pic_flag=$lt_lt_prog_compiler_pic
10678 # What is the maximum length of a command?
10679 max_cmd_len=$lt_cv_sys_max_cmd_len
10681 # Does compiler simultaneously support -c and -o options?
10682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10684 # Must we lock files when doing compilation?
10685 need_locks=$lt_need_locks
10687 # Do we need the lib prefix for modules?
10688 need_lib_prefix=$need_lib_prefix
10690 # Do we need a version for libraries?
10691 need_version=$need_version
10693 # Whether dlopen is supported.
10694 dlopen_support=$enable_dlopen
10696 # Whether dlopen of programs is supported.
10697 dlopen_self=$enable_dlopen_self
10699 # Whether dlopen of statically linked programs is supported.
10700 dlopen_self_static=$enable_dlopen_self_static
10702 # Compiler flag to prevent dynamic linking.
10703 link_static_flag=$lt_lt_prog_compiler_static
10705 # Compiler flag to turn off builtin functions.
10706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10708 # Compiler flag to allow reflexive dlopens.
10709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10711 # Compiler flag to generate shared objects directly from archives.
10712 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10714 # Compiler flag to generate thread-safe objects.
10715 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10717 # Library versioning type.
10718 version_type=$version_type
10720 # Format of library name prefix.
10721 libname_spec=$lt_libname_spec
10723 # List of archive names. First name is the real one, the rest are links.
10724 # The last name is the one that the linker finds with -lNAME.
10725 library_names_spec=$lt_library_names_spec
10727 # The coded name of the library, if different from the real name.
10728 soname_spec=$lt_soname_spec
10730 # Commands used to build and install an old-style archive.
10732 old_archive_cmds=$lt_old_archive_cmds
10733 old_postinstall_cmds=$lt_old_postinstall_cmds
10734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10736 # Create an old-style archive from a shared archive.
10737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10739 # Create a temporary old-style archive to link instead of a shared archive.
10740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10742 # Commands used to build and install a shared archive.
10743 archive_cmds=$lt_archive_cmds
10744 archive_expsym_cmds=$lt_archive_expsym_cmds
10745 postinstall_cmds=$lt_postinstall_cmds
10746 postuninstall_cmds=$lt_postuninstall_cmds
10748 # Commands used to build a loadable module (assumed same as above if empty)
10749 module_cmds=$lt_module_cmds
10750 module_expsym_cmds=$lt_module_expsym_cmds
10752 # Commands to strip libraries.
10753 old_striplib=$lt_old_striplib
10754 striplib=$lt_striplib
10756 # Dependencies to place before the objects being linked to create a
10758 predep_objects=$lt_predep_objects
10760 # Dependencies to place after the objects being linked to create a
10762 postdep_objects=$lt_postdep_objects
10764 # Dependencies to place before the objects being linked to create a
10766 predeps=$lt_predeps
10768 # Dependencies to place after the objects being linked to create a
10770 postdeps=$lt_postdeps
10772 # The directories searched by this compiler when creating a shared
10774 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10776 # The library search path used internally by the compiler when linking
10777 # a shared library.
10778 compiler_lib_search_path=$lt_compiler_lib_search_path
10780 # Method to check whether dependent libraries are shared objects.
10781 deplibs_check_method=$lt_deplibs_check_method
10783 # Command to use when deplibs_check_method == file_magic.
10784 file_magic_cmd=$lt_file_magic_cmd
10786 # Flag that allows shared libraries with undefined symbols to be built.
10787 allow_undefined_flag=$lt_allow_undefined_flag
10789 # Flag that forces no undefined symbols.
10790 no_undefined_flag=$lt_no_undefined_flag
10792 # Commands used to finish a libtool library installation in a directory.
10793 finish_cmds=$lt_finish_cmds
10795 # Same as above, but a single script fragment to be evaled but not shown.
10796 finish_eval=$lt_finish_eval
10798 # Take the output of nm and produce a listing of raw symbols and C names.
10799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10801 # Transform the output of nm in a proper C declaration
10802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10804 # Transform the output of nm in a C name address pair
10805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10807 # This is the shared library runtime path variable.
10808 runpath_var=$runpath_var
10810 # This is the shared library path variable.
10811 shlibpath_var=$shlibpath_var
10813 # Is shlibpath searched before the hard-coded library search path?
10814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10816 # How to hardcode a shared library path into an executable.
10817 hardcode_action=$hardcode_action
10819 # Whether we should hardcode library paths into libraries.
10820 hardcode_into_libs=$hardcode_into_libs
10822 # Flag to hardcode \$libdir into a binary during linking.
10823 # This must work even if \$libdir does not exist.
10824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10826 # If ld is used when linking, flag to hardcode \$libdir into
10827 # a binary during linking. This must work even if \$libdir does
10829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10831 # Whether we need a single -rpath flag with a separated argument.
10832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10835 # resulting binary.
10836 hardcode_direct=$hardcode_direct
10838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10839 # resulting binary.
10840 hardcode_minus_L=$hardcode_minus_L
10842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10843 # the resulting binary.
10844 hardcode_shlibpath_var=$hardcode_shlibpath_var
10846 # Set to yes if building a shared library automatically hardcodes DIR into the library
10847 # and all subsequent libraries and executables linked against it.
10848 hardcode_automatic=$hardcode_automatic
10850 # Variables whose values should be saved in libtool wrapper scripts and
10851 # restored at relink time.
10852 variables_saved_for_relink="$variables_saved_for_relink"
10854 # Whether libtool must link a program against all its dependency libraries.
10855 link_all_deplibs=$link_all_deplibs
10857 # Compile-time system search path for libraries
10858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10860 # Run-time system search path for libraries
10861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10863 # Fix the shell variable \$srcfile for the compiler.
10864 fix_srcfile_path=$lt_fix_srcfile_path
10866 # Set to yes if exported symbols are required.
10867 always_export_symbols=$always_export_symbols
10869 # The commands to list exported symbols.
10870 export_symbols_cmds=$lt_export_symbols_cmds
10872 # The commands to extract the exported symbol list from a shared archive.
10873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10875 # Symbols that should not be listed in the preloaded symbols.
10876 exclude_expsyms=$lt_exclude_expsyms
10878 # Symbols that must always be exported.
10879 include_expsyms=$lt_include_expsyms
10881 # ### END LIBTOOL CONFIG
10888 cat <<\EOF >> "$cfgfile"
10890 # AIX sometimes has problems with the GCC collect2 program. For some
10891 # reason, if we set the COLLECT_NAMES environment variable, the problems
10892 # vanish in a puff of smoke.
10893 if test "X${COLLECT_NAMES+set}" != Xset; then
10895 export COLLECT_NAMES
10901 # We use sed instead of cat because bash on DJGPP gets confused if
10902 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10903 # text mode, it properly converts lines to CR/LF. This bash problem
10904 # is reportedly fixed, but why not run on old versions too?
10905 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10907 mv -f "$cfgfile" "$ofile" || \
10908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10912 # If there is no Makefile yet, we rely on a make rule to execute
10913 # `config.status --recheck' to rerun these tests and create the
10914 # libtool script then.
10915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10916 if test -f "$ltmain_in"; then
10917 test -f Makefile && make "$ltmain"
10923 ac_cpp='$CPP $CPPFLAGS'
10924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10931 # Check whether --with-tags was given.
10932 if test "${with_tags+set}" = set; then
10933 withval=$with_tags; tagnames="$withval"
10937 if test -f "$ltmain" && test -n "$tagnames"; then
10938 if test ! -f "${ofile}"; then
10939 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10940 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10943 if test -z "$LTCC"; then
10944 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10945 if test -z "$LTCC"; then
10946 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10947 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10950 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10953 if test -z "$LTCFLAGS"; then
10954 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10957 # Extract list of available tagged configurations in $ofile.
10958 # Note that this assumes the entire list is on one line.
10959 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10962 for tagname in $tagnames; do
10964 # Check whether tagname contains only valid characters
10965 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10967 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10968 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10969 { (exit 1); exit 1; }; }
10973 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10975 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10976 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10977 { (exit 1); exit 1; }; }
10980 # Update the list of available tags.
10981 if test -n "$tagname"; then
10982 echo appending configuration tag \"$tagname\" to $ofile
10986 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10987 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10988 (test "X$CXX" != "Xg++"))) ; then
10990 ac_cpp='$CXXCPP $CPPFLAGS'
10991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10998 archive_cmds_need_lc_CXX=no
10999 allow_undefined_flag_CXX=
11000 always_export_symbols_CXX=no
11001 archive_expsym_cmds_CXX=
11002 export_dynamic_flag_spec_CXX=
11003 hardcode_direct_CXX=no
11004 hardcode_libdir_flag_spec_CXX=
11005 hardcode_libdir_flag_spec_ld_CXX=
11006 hardcode_libdir_separator_CXX=
11007 hardcode_minus_L_CXX=no
11008 hardcode_shlibpath_var_CXX=unsupported
11009 hardcode_automatic_CXX=no
11011 module_expsym_cmds_CXX=
11012 link_all_deplibs_CXX=unknown
11013 old_archive_cmds_CXX=$old_archive_cmds
11014 no_undefined_flag_CXX=
11015 whole_archive_flag_spec_CXX=
11016 enable_shared_with_static_runtimes_CXX=no
11018 # Dependencies to place before and after the object being linked:
11019 predep_objects_CXX=
11020 postdep_objects_CXX=
11023 compiler_lib_search_path_CXX=
11024 compiler_lib_search_dirs_CXX=
11026 # Source file extension for C++ test sources.
11029 # Object file extension for compiled C++ test sources.
11033 # Code to be used in simple compile tests
11034 lt_simple_compile_test_code="int some_variable = 0;"
11036 # Code to be used in simple link tests
11037 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11041 # If no C compiler was specified, use CC.
11044 # If no C compiler flags were specified, use CFLAGS.
11045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11047 # Allow CC to be a program name with arguments.
11051 # save warnings/boilerplate of simple test code
11052 ac_outfile=conftest.$ac_objext
11053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11055 _lt_compiler_boilerplate=`cat conftest.err`
11058 ac_outfile=conftest.$ac_objext
11059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11061 _lt_linker_boilerplate=`cat conftest.err`
11065 # Allow CC to be a program name with arguments.
11070 lt_save_with_gnu_ld=$with_gnu_ld
11071 lt_save_path_LD=$lt_cv_path_LD
11072 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11073 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11075 $as_unset lt_cv_prog_gnu_ld
11077 if test -n "${lt_cv_path_LDCXX+set}"; then
11078 lt_cv_path_LD=$lt_cv_path_LDCXX
11080 $as_unset lt_cv_path_LD
11082 test -z "${LDCXX+set}" || LD=$LDCXX
11086 for cc_temp in $compiler""; do
11088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11097 # We don't want -fno-exception wen compiling C++ code, so set the
11098 # no_builtin_flag separately
11099 if test "$GXX" = yes; then
11100 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11102 lt_prog_compiler_no_builtin_flag_CXX=
11105 if test "$GXX" = yes; then
11106 # Set up default GNU C++ configuration
11109 # Check whether --with-gnu-ld was given.
11110 if test "${with_gnu_ld+set}" = set; then
11111 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11117 if test "$GCC" = yes; then
11118 # Check if gcc -print-prog-name=ld gives a path.
11119 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11120 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11123 # gcc leaves a trailing carriage return which upsets mingw
11124 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11126 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11129 # Accept absolute paths.
11131 re_direlt='/[^/][^/]*/\.\./'
11132 # Canonicalize the pathname of ld
11133 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11134 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11135 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11137 test -z "$LD" && LD="$ac_prog"
11140 # If it fails, then pretend we aren't using GCC.
11144 # If it is relative, then search for the first ld in PATH.
11145 with_gnu_ld=unknown
11148 elif test "$with_gnu_ld" = yes; then
11149 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11150 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11152 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11153 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11155 if test "${lt_cv_path_LD+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 if test -z "$LD"; then
11159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11160 for ac_dir in $PATH; do
11162 test -z "$ac_dir" && ac_dir=.
11163 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11164 lt_cv_path_LD="$ac_dir/$ac_prog"
11165 # Check to see if the program is GNU ld. I'd rather use --version,
11166 # but apparently some variants of GNU ld only accept -v.
11167 # Break only if it was the GNU/non-GNU ld that we prefer.
11168 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11169 *GNU* | *'with BFD'*)
11170 test "$with_gnu_ld" != no && break
11173 test "$with_gnu_ld" != yes && break
11180 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11184 LD="$lt_cv_path_LD"
11185 if test -n "$LD"; then
11186 { echo "$as_me:$LINENO: result: $LD" >&5
11187 echo "${ECHO_T}$LD" >&6; }
11189 { echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6; }
11192 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11193 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11194 { (exit 1); exit 1; }; }
11195 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11196 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11197 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11201 case `$LD -v 2>&1 </dev/null` in
11202 *GNU* | *'with BFD'*)
11203 lt_cv_prog_gnu_ld=yes
11206 lt_cv_prog_gnu_ld=no
11210 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11211 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11212 with_gnu_ld=$lt_cv_prog_gnu_ld
11216 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11217 # archiving commands below assume that GNU ld is being used.
11218 if test "$with_gnu_ld" = yes; then
11219 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11220 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'
11222 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11223 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11225 # If archive_cmds runs LD, not CC, wlarc should be empty
11226 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11227 # investigate it a little bit more. (MM)
11230 # ancient GNU ld didn't support --whole-archive et. al.
11231 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11232 grep 'no-whole-archive' > /dev/null; then
11233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11235 whole_archive_flag_spec_CXX=
11241 # A generic and very simple default shared library creation
11242 # command for GNU C++ for the case where it uses the native
11243 # linker, instead of GNU ld. If possible, this setting should
11244 # overridden to take advantage of the native linker features on
11245 # the platform it is being used on.
11246 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11249 # Commands to make compiler produce verbose output that lists
11250 # what "hidden" libraries, object files and flags are used when
11251 # linking a shared library.
11252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11260 # PORTME: fill in a description of your system's C++ link characteristics
11261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11266 # FIXME: insert proper C++ library support
11270 if test "$host_cpu" = ia64; then
11271 # On IA64, the linker does run time linking by default, so we don't
11272 # have to do anything special.
11273 aix_use_runtimelinking=no
11274 exp_sym_flag='-Bexport'
11277 aix_use_runtimelinking=no
11279 # Test if we are trying to use run time linking or normal
11280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11281 # need to do runtime linking.
11282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11283 for ld_flag in $LDFLAGS; do
11286 aix_use_runtimelinking=yes
11294 exp_sym_flag='-bexport'
11295 no_entry_flag='-bnoentry'
11298 # When large executables or shared objects are built, AIX ld can
11299 # have problems creating the table of contents. If linking a library
11300 # or program results in "error TOC overflow" add -mminimal-toc to
11301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11304 archive_cmds_CXX=''
11305 hardcode_direct_CXX=yes
11306 hardcode_libdir_separator_CXX=':'
11307 link_all_deplibs_CXX=yes
11309 if test "$GXX" = yes; then
11310 case $host_os in aix4.[012]|aix4.[012].*)
11311 # We only want to do this on AIX 4.2 and lower, the check
11312 # below for broken collect2 doesn't work under 4.3+
11313 collect2name=`${CC} -print-prog-name=collect2`
11314 if test -f "$collect2name" && \
11315 strings "$collect2name" | grep resolve_lib_name >/dev/null
11317 # We have reworked collect2
11320 # We have old collect2
11321 hardcode_direct_CXX=unsupported
11322 # It fails to find uninstalled libraries when the uninstalled
11323 # path is not listed in the libpath. Setting hardcode_minus_L
11324 # to unsupported forces relinking
11325 hardcode_minus_L_CXX=yes
11326 hardcode_libdir_flag_spec_CXX='-L$libdir'
11327 hardcode_libdir_separator_CXX=
11331 shared_flag='-shared'
11332 if test "$aix_use_runtimelinking" = yes; then
11333 shared_flag="$shared_flag "'${wl}-G'
11337 if test "$host_cpu" = ia64; then
11338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11339 # chokes on -Wl,-G. The following line is correct:
11342 if test "$aix_use_runtimelinking" = yes; then
11343 shared_flag='${wl}-G'
11345 shared_flag='${wl}-bM:SRE'
11350 # It seems that -bexpall does not export symbols beginning with
11351 # underscore (_), so it is better to generate a list of symbols to export.
11352 always_export_symbols_CXX=yes
11353 if test "$aix_use_runtimelinking" = yes; then
11354 # Warning - without using the other runtime loading flags (-brtl),
11355 # -berok will link without error, but may produce a broken library.
11356 allow_undefined_flag_CXX='-berok'
11357 # Determine the default libpath from the value encoded in an empty executable.
11358 cat >conftest.$ac_ext <<_ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (ac_try="$ac_link"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_link") 2>conftest.er1
11382 grep -v '^ *+' conftest.er1 >conftest.err
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && {
11387 test -z "$ac_cxx_werror_flag" ||
11388 test ! -s conftest.err
11389 } && test -s conftest$ac_exeext &&
11390 $as_test_x conftest$ac_exeext; then
11392 lt_aix_libpath_sed='
11393 /Import File Strings/,/^$/ {
11399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11400 # Check for a 64-bit object if we didn't find anything.
11401 if test -z "$aix_libpath"; then
11402 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11412 conftest$ac_exeext conftest.$ac_ext
11413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11415 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11417 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"
11419 if test "$host_cpu" = ia64; then
11420 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11421 allow_undefined_flag_CXX="-z nodefs"
11422 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"
11424 # Determine the default libpath from the value encoded in an empty executable.
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (ac_try="$ac_link"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_link") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_cxx_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest$ac_exeext &&
11457 $as_test_x conftest$ac_exeext; then
11459 lt_aix_libpath_sed='
11460 /Import File Strings/,/^$/ {
11466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11467 # Check for a 64-bit object if we didn't find anything.
11468 if test -z "$aix_libpath"; then
11469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11479 conftest$ac_exeext conftest.$ac_ext
11480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11482 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11483 # Warning - without using the other run time loading flags,
11484 # -berok will link without error, but may produce a broken library.
11485 no_undefined_flag_CXX=' ${wl}-bernotok'
11486 allow_undefined_flag_CXX=' ${wl}-berok'
11487 # Exported symbols can be pulled into shared objects from archives
11488 whole_archive_flag_spec_CXX='$convenience'
11489 archive_cmds_need_lc_CXX=yes
11490 # This is similar to how AIX traditionally builds its shared libraries.
11491 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'
11497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11498 allow_undefined_flag_CXX=unsupported
11499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11500 # support --undefined. This deserves some investigation. FIXME
11501 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11508 case $cc_basename in
11510 # FIXME: insert proper C++ library support
11516 cygwin* | mingw* | pw32*)
11517 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11518 # as there is no search path for DLLs.
11519 hardcode_libdir_flag_spec_CXX='-L$libdir'
11520 allow_undefined_flag_CXX=unsupported
11521 always_export_symbols_CXX=no
11522 enable_shared_with_static_runtimes_CXX=yes
11524 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11525 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'
11526 # If the export-symbols file already is a .def file (1st line
11527 # is EXPORTS), use it as is; otherwise, prepend...
11528 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11529 cp $export_symbols $output_objdir/$soname.def;
11531 echo EXPORTS > $output_objdir/$soname.def;
11532 cat $export_symbols >> $output_objdir/$soname.def;
11534 $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'
11539 darwin* | rhapsody*)
11540 archive_cmds_need_lc_CXX=no
11541 hardcode_direct_CXX=no
11542 hardcode_automatic_CXX=yes
11543 hardcode_shlibpath_var_CXX=unsupported
11544 whole_archive_flag_spec_CXX=''
11545 link_all_deplibs_CXX=yes
11546 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11547 if test "$GXX" = yes ; then
11548 output_verbose_link_cmd='echo'
11549 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}"
11550 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11551 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}"
11552 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}"
11553 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11554 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}"
11555 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}"
11558 case $cc_basename in
11560 output_verbose_link_cmd='echo'
11561 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'
11562 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11563 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11564 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}'
11565 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}'
11575 case $cc_basename in
11577 # FIXME: insert proper C++ library support
11581 # Green Hills C++ Compiler
11582 # FIXME: insert proper C++ library support
11586 # FIXME: insert proper C++ library support
11592 # C++ shared libraries reported to be fairly broken before switch to ELF
11596 archive_cmds_need_lc_CXX=no
11598 freebsd* | dragonfly*)
11599 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11606 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11607 hardcode_libdir_separator_CXX=:
11608 export_dynamic_flag_spec_CXX='${wl}-E'
11609 hardcode_direct_CXX=yes
11610 hardcode_minus_L_CXX=yes # Not in the search PATH,
11611 # but as the default
11612 # location of the library.
11614 case $cc_basename in
11616 # FIXME: insert proper C++ library support
11620 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'
11621 # Commands to make compiler produce verbose output that lists
11622 # what "hidden" libraries, object files and flags are used when
11623 # linking a shared library.
11625 # There doesn't appear to be a way to prevent this compiler from
11626 # explicitly linking system object files so we need to strip them
11627 # from the output so that they don't get included in the library
11629 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'
11632 if test "$GXX" = yes; then
11633 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'
11635 # FIXME: insert proper C++ library support
11642 if test $with_gnu_ld = no; then
11643 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11644 hardcode_libdir_separator_CXX=:
11649 export_dynamic_flag_spec_CXX='${wl}-E'
11655 hardcode_direct_CXX=no
11656 hardcode_shlibpath_var_CXX=no
11659 hardcode_direct_CXX=yes
11660 hardcode_minus_L_CXX=yes # Not in the search PATH,
11661 # but as the default
11662 # location of the library.
11666 case $cc_basename in
11668 # FIXME: insert proper C++ library support
11674 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11680 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11683 # Commands to make compiler produce verbose output that lists
11684 # what "hidden" libraries, object files and flags are used when
11685 # linking a shared library.
11687 # There doesn't appear to be a way to prevent this compiler from
11688 # explicitly linking system object files so we need to strip them
11689 # from the output so that they don't get included in the library
11691 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'
11694 if test "$GXX" = yes; then
11695 if test $with_gnu_ld = no; then
11698 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11701 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11704 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'
11709 # FIXME: insert proper C++ library support
11716 hardcode_direct_CXX=no
11717 hardcode_shlibpath_var_CXX=no
11718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11719 export_dynamic_flag_spec_CXX='${wl}-E'
11720 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11721 # Instead, shared libraries are loaded at an image base (0x10000000 by
11722 # default) and relocated if they conflict, which is a slow very memory
11723 # consuming and fragmenting process. To avoid this, we pick a random,
11724 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11725 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11726 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'
11727 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'
11730 case $cc_basename in
11733 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'
11735 # Archives containing C++ object files must be created using
11736 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11737 # necessary to make sure instantiated templates are included
11739 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11742 if test "$GXX" = yes; then
11743 if test "$with_gnu_ld" = no; then
11744 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'
11746 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'
11749 link_all_deplibs_CXX=yes
11752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11753 hardcode_libdir_separator_CXX=:
11755 linux* | k*bsd*-gnu)
11756 case $cc_basename in
11758 # Kuck and Associates, Inc. (KAI) C++ Compiler
11760 # KCC will only create a shared library if the output file
11761 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11762 # to its proper name (with version) after linking.
11763 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'
11764 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'
11765 # Commands to make compiler produce verbose output that lists
11766 # what "hidden" libraries, object files and flags are used when
11767 # linking a shared library.
11769 # There doesn't appear to be a way to prevent this compiler from
11770 # explicitly linking system object files so we need to strip them
11771 # from the output so that they don't get included in the library
11773 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'
11775 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11778 # Archives containing C++ object files must be created using
11779 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11780 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11785 # version 8.0 and above of icpc choke on multiply defined symbols
11786 # if we add $predep_objects and $postdep_objects, however 7.1 and
11787 # earlier do not add the objects themselves.
11788 case `$CC -V 2>&1` in
11790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11791 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'
11793 *) # Version 8.0 or newer
11796 ia64*) tmp_idyn=' -i_dynamic';;
11798 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11799 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'
11802 archive_cmds_need_lc_CXX=no
11803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11805 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11808 # Portland Group C++ compiler
11809 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11810 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'
11812 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11814 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'
11818 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11819 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'
11821 runpath_var=LD_RUN_PATH
11822 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11823 hardcode_libdir_separator_CXX=:
11825 # Commands to make compiler produce verbose output that lists
11826 # what "hidden" libraries, object files and flags are used when
11827 # linking a shared library.
11829 # There doesn't appear to be a way to prevent this compiler from
11830 # explicitly linking system object files so we need to strip them
11831 # from the output so that they don't get included in the library
11833 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'
11836 case `$CC -V 2>&1 | sed 5q` in
11839 no_undefined_flag_CXX=' -zdefs'
11840 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11841 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'
11842 hardcode_libdir_flag_spec_CXX='-R$libdir'
11843 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'
11845 # Not sure whether something based on
11846 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11848 output_verbose_link_cmd='echo'
11850 # Archives containing C++ object files must be created using
11851 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11852 # necessary to make sure instantiated templates are included
11854 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11861 # FIXME: insert proper C++ library support
11865 # FIXME: insert proper C++ library support
11869 case $cc_basename in
11871 # FIXME: insert proper C++ library support
11875 # FIXME: insert proper C++ library support
11880 netbsd* | netbsdelf*-gnu)
11881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11882 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11884 hardcode_libdir_flag_spec_CXX='-R$libdir'
11885 hardcode_direct_CXX=yes
11886 hardcode_shlibpath_var_CXX=no
11888 # Workaround some broken pre-1.5 toolchains
11889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11892 # C++ shared libraries are fairly broken
11896 if test -f /usr/libexec/ld.so; then
11897 hardcode_direct_CXX=yes
11898 hardcode_shlibpath_var_CXX=no
11899 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11902 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11903 export_dynamic_flag_spec_CXX='${wl}-E'
11904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11906 output_verbose_link_cmd='echo'
11912 case $cc_basename in
11914 # Kuck and Associates, Inc. (KAI) C++ Compiler
11916 # KCC will only create a shared library if the output file
11917 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11918 # to its proper name (with version) after linking.
11919 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'
11921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11922 hardcode_libdir_separator_CXX=:
11924 # Archives containing C++ object files must be created using
11925 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11926 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11930 # Rational C++ 2.4.1
11931 # FIXME: insert proper C++ library support
11935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11936 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'
11938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11939 hardcode_libdir_separator_CXX=:
11941 # Commands to make compiler produce verbose output that lists
11942 # what "hidden" libraries, object files and flags are used when
11943 # linking a shared library.
11945 # There doesn't appear to be a way to prevent this compiler from
11946 # explicitly linking system object files so we need to strip them
11947 # from the output so that they don't get included in the library
11949 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'
11952 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11953 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11954 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'
11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11957 hardcode_libdir_separator_CXX=:
11959 # Commands to make compiler produce verbose output that lists
11960 # what "hidden" libraries, object files and flags are used when
11961 # linking a shared library.
11962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11965 # FIXME: insert proper C++ library support
11972 case $cc_basename in
11974 # Kuck and Associates, Inc. (KAI) C++ Compiler
11976 # KCC will only create a shared library if the output file
11977 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11978 # to its proper name (with version) after linking.
11979 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'
11981 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11982 hardcode_libdir_separator_CXX=:
11984 # Archives containing C++ object files must be created using
11985 # the KAI C++ compiler.
11986 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11989 # Rational C++ 2.4.1
11990 # FIXME: insert proper C++ library support
11994 allow_undefined_flag_CXX=' -expect_unresolved \*'
11995 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'
11996 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11997 echo "-hidden">> $lib.exp~
11998 $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~
12001 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12002 hardcode_libdir_separator_CXX=:
12004 # Commands to make compiler produce verbose output that lists
12005 # what "hidden" libraries, object files and flags are used when
12006 # linking a shared library.
12008 # There doesn't appear to be a way to prevent this compiler from
12009 # explicitly linking system object files so we need to strip them
12010 # from the output so that they don't get included in the library
12012 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'
12015 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12017 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'
12019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12020 hardcode_libdir_separator_CXX=:
12022 # Commands to make compiler produce verbose output that lists
12023 # what "hidden" libraries, object files and flags are used when
12024 # linking a shared library.
12025 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12028 # FIXME: insert proper C++ library support
12035 # FIXME: insert proper C++ library support
12039 case $cc_basename in
12042 # FIXME: insert proper C++ library support
12047 # FIXME: insert proper C++ library support
12051 # FIXME: insert proper C++ library support
12057 case $cc_basename in
12059 # Sun C++ 4.2, 5.x and Centerline C++
12060 archive_cmds_need_lc_CXX=yes
12061 no_undefined_flag_CXX=' -zdefs'
12062 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12063 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12064 $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'
12066 hardcode_libdir_flag_spec_CXX='-R$libdir'
12067 hardcode_shlibpath_var_CXX=no
12069 solaris2.[0-5] | solaris2.[0-5].*) ;;
12071 # The compiler driver will combine and reorder linker options,
12072 # but understands `-z linker_flag'.
12073 # Supported since Solaris 2.6 (maybe 2.5.1?)
12074 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12077 link_all_deplibs_CXX=yes
12079 output_verbose_link_cmd='echo'
12081 # Archives containing C++ object files must be created using
12082 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12083 # necessary to make sure instantiated templates are included
12085 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12088 # Green Hills C++ Compiler
12089 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12091 # The C++ compiler must be used to create the archive.
12092 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12095 # GNU C++ compiler with Solaris linker
12096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12097 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12098 if $CC --version | grep -v '^2\.7' > /dev/null; then
12099 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12100 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12101 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12103 # Commands to make compiler produce verbose output that lists
12104 # what "hidden" libraries, object files and flags are used when
12105 # linking a shared library.
12106 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12108 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12110 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12112 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12114 # Commands to make compiler produce verbose output that lists
12115 # what "hidden" libraries, object files and flags are used when
12116 # linking a shared library.
12117 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12120 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12122 solaris2.[0-5] | solaris2.[0-5].*) ;;
12124 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12132 no_undefined_flag_CXX='${wl}-z,text'
12133 archive_cmds_need_lc_CXX=no
12134 hardcode_shlibpath_var_CXX=no
12135 runpath_var='LD_RUN_PATH'
12137 case $cc_basename in
12139 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12148 sysv5* | sco3.2v5* | sco5v6*)
12149 # Note: We can NOT use -z defs as we might desire, because we do not
12150 # link with -lc, and that would cause any symbols used from libc to
12151 # always be unresolved, which means just about no library would
12152 # ever link correctly. If we're not using GNU ld we use -z text
12153 # though, which does catch some bad symbols but isn't as heavy-handed
12155 # For security reasons, it is highly recommended that you always
12156 # use absolute paths for naming shared libraries, and exclude the
12157 # DT_RUNPATH tag from executables and libraries. But doing so
12158 # requires that you compile everything twice, which is a pain.
12159 # So that behaviour is only enabled if SCOABSPATH is set to a
12160 # non-empty value in the environment. Most likely only useful for
12161 # creating official distributions of packages.
12162 # This is a hack until libtool officially supports absolute path
12163 # names for shared libraries.
12164 no_undefined_flag_CXX='${wl}-z,text'
12165 allow_undefined_flag_CXX='${wl}-z,nodefs'
12166 archive_cmds_need_lc_CXX=no
12167 hardcode_shlibpath_var_CXX=no
12168 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12169 hardcode_libdir_separator_CXX=':'
12170 link_all_deplibs_CXX=yes
12171 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12172 runpath_var='LD_RUN_PATH'
12174 case $cc_basename in
12176 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12180 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12181 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12186 case $cc_basename in
12188 # NonStop-UX NCC 3.20
12189 # FIXME: insert proper C++ library support
12193 # FIXME: insert proper C++ library support
12199 # FIXME: insert proper C++ library support
12203 # FIXME: insert proper C++ library support
12207 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12208 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12209 test "$ld_shlibs_CXX" = no && can_build_shared=no
12214 cat > conftest.$ac_ext <<EOF
12218 Foo (void) { a = 0; }
12224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; then
12229 # Parse the compiler output and extract the necessary
12230 # objects, libraries and library flags.
12232 # Sentinel used to keep track of whether or not we are before
12233 # the conftest object file.
12234 pre_test_object_deps_done=no
12236 # The `*' in the case matches for architectures that use `case' in
12237 # $output_verbose_cmd can trigger glob expansion during the loop
12238 # eval without this substitution.
12239 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12241 for p in `eval $output_verbose_link_cmd`; do
12245 # Some compilers place space between "-{L,R}" and the path.
12246 # Remove the space.
12247 if test $p = "-L" \
12248 || test $p = "-R"; then
12255 if test "$pre_test_object_deps_done" = no; then
12258 # Internal compiler library paths should come after those
12259 # provided the user. The postdeps already come after the
12260 # user supplied libs so there is no need to process them.
12261 if test -z "$compiler_lib_search_path_CXX"; then
12262 compiler_lib_search_path_CXX="${prev}${p}"
12264 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12267 # The "-l" case would never come before the object being
12268 # linked, so don't bother handling this case.
12271 if test -z "$postdeps_CXX"; then
12272 postdeps_CXX="${prev}${p}"
12274 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12280 # This assumes that the test object file only shows up
12281 # once in the compiler output.
12282 if test "$p" = "conftest.$objext"; then
12283 pre_test_object_deps_done=yes
12287 if test "$pre_test_object_deps_done" = no; then
12288 if test -z "$predep_objects_CXX"; then
12289 predep_objects_CXX="$p"
12291 predep_objects_CXX="$predep_objects_CXX $p"
12294 if test -z "$postdep_objects_CXX"; then
12295 postdep_objects_CXX="$p"
12297 postdep_objects_CXX="$postdep_objects_CXX $p"
12302 *) ;; # Ignore the rest.
12310 echo "libtool.m4: error: problem compiling CXX test program"
12313 $rm -f confest.$objext
12315 compiler_lib_search_dirs_CXX=
12316 if test -n "$compiler_lib_search_path_CXX"; then
12317 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12320 # PORTME: override above test on systems where it is broken
12323 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12324 # hack all around it, let's just trust "g++" to DTRT.
12325 predep_objects_CXX=
12326 postdep_objects_CXX=
12331 case `$CC -V 2>&1 | sed 5q` in
12335 # The more standards-conforming stlport4 library is
12336 # incompatible with the Cstd library. Avoid specifying
12337 # it if it's in CXXFLAGS. Ignore libCrun as
12338 # -library=stlport4 depends on it.
12339 case " $CXX $CXXFLAGS " in
12340 *" -library=stlport4 "*)
12341 solaris_use_stlport4=yes
12344 if test "$solaris_use_stlport4" != yes; then
12345 postdeps_CXX='-library=Cstd -library=Crun'
12352 case $cc_basename in
12354 # The more standards-conforming stlport4 library is
12355 # incompatible with the Cstd library. Avoid specifying
12356 # it if it's in CXXFLAGS. Ignore libCrun as
12357 # -library=stlport4 depends on it.
12358 case " $CXX $CXXFLAGS " in
12359 *" -library=stlport4 "*)
12360 solaris_use_stlport4=yes
12364 # Adding this requires a known-good setup of shared libraries for
12365 # Sun compiler versions before 5.6, else PIC objects from an old
12366 # archive will be linked into the output, leading to subtle bugs.
12367 if test "$solaris_use_stlport4" != yes; then
12368 postdeps_CXX='-library=Cstd -library=Crun'
12375 case " $postdeps_CXX " in
12376 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12379 lt_prog_compiler_wl_CXX=
12380 lt_prog_compiler_pic_CXX=
12381 lt_prog_compiler_static_CXX=
12383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12386 # C++ specific cases for pic, static, wl, etc.
12387 if test "$GXX" = yes; then
12388 lt_prog_compiler_wl_CXX='-Wl,'
12389 lt_prog_compiler_static_CXX='-static'
12393 # All AIX code is PIC.
12394 if test "$host_cpu" = ia64; then
12395 # AIX 5 now supports IA64 processor
12396 lt_prog_compiler_static_CXX='-Bstatic'
12400 # FIXME: we need at least 68020 code to build shared libraries, but
12401 # adding the `-m68020' flag to GCC prevents building anything better,
12403 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12405 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12406 # PIC is the default for these OSes.
12408 mingw* | cygwin* | os2* | pw32*)
12409 # This hack is so that the source file can tell whether it is being
12410 # built for inclusion in a dll (and should export symbols for example).
12411 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12412 # (--disable-auto-import) libraries
12413 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12415 darwin* | rhapsody*)
12416 # PIC is the default on this platform
12417 # Common symbols not allowed in MH_DYLIB files
12418 lt_prog_compiler_pic_CXX='-fno-common'
12421 # DJGPP does not support shared libraries at all
12422 lt_prog_compiler_pic_CXX=
12425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12426 # Instead, we relocate shared libraries at runtime.
12429 if test -d /usr/nec; then
12430 lt_prog_compiler_pic_CXX=-Kconform_pic
12434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12435 # not for PA HP-UX.
12440 lt_prog_compiler_pic_CXX='-fPIC'
12445 lt_prog_compiler_pic_CXX='-fPIC'
12451 # All AIX code is PIC.
12452 if test "$host_cpu" = ia64; then
12453 # AIX 5 now supports IA64 processor
12454 lt_prog_compiler_static_CXX='-Bstatic'
12456 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12460 case $cc_basename in
12462 # Green Hills C++ Compiler
12463 # _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"
12468 # PIC is the default on this platform
12469 # Common symbols not allowed in MH_DYLIB files
12470 case $cc_basename in
12472 lt_prog_compiler_pic_CXX='-qnocommon'
12473 lt_prog_compiler_wl_CXX='-Wl,'
12478 case $cc_basename in
12480 lt_prog_compiler_pic_CXX='-KPIC'
12483 # Green Hills C++ Compiler
12484 lt_prog_compiler_pic_CXX='-pic'
12490 freebsd* | dragonfly*)
12491 # FreeBSD uses GNU C++
12493 hpux9* | hpux10* | hpux11*)
12494 case $cc_basename in
12496 lt_prog_compiler_wl_CXX='-Wl,'
12497 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12498 if test "$host_cpu" != ia64; then
12499 lt_prog_compiler_pic_CXX='+Z'
12503 lt_prog_compiler_wl_CXX='-Wl,'
12504 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12510 lt_prog_compiler_pic_CXX='+Z'
12519 # This is c89, which is MS Visual C++ (no shared libs)
12520 # Anyone wants to do a port?
12522 irix5* | irix6* | nonstopux*)
12523 case $cc_basename in
12525 lt_prog_compiler_wl_CXX='-Wl,'
12526 lt_prog_compiler_static_CXX='-non_shared'
12527 # CC pic flag -KPIC is the default.
12533 linux* | k*bsd*-gnu)
12534 case $cc_basename in
12537 lt_prog_compiler_wl_CXX='--backend -Wl,'
12538 lt_prog_compiler_pic_CXX='-fPIC'
12542 lt_prog_compiler_wl_CXX='-Wl,'
12543 lt_prog_compiler_pic_CXX='-KPIC'
12544 lt_prog_compiler_static_CXX='-static'
12547 # Portland Group C++ compiler.
12548 lt_prog_compiler_wl_CXX='-Wl,'
12549 lt_prog_compiler_pic_CXX='-fpic'
12550 lt_prog_compiler_static_CXX='-Bstatic'
12554 # Make sure the PIC flag is empty. It appears that all Alpha
12555 # Linux and Compaq Tru64 Unix objects are PIC.
12556 lt_prog_compiler_pic_CXX=
12557 lt_prog_compiler_static_CXX='-non_shared'
12560 case `$CC -V 2>&1 | sed 5q` in
12563 lt_prog_compiler_pic_CXX='-KPIC'
12564 lt_prog_compiler_static_CXX='-Bstatic'
12565 lt_prog_compiler_wl_CXX='-Qoption ld '
12576 case $cc_basename in
12578 lt_prog_compiler_pic_CXX='-W c,exportall'
12584 netbsd* | netbsdelf*-gnu)
12586 osf3* | osf4* | osf5*)
12587 case $cc_basename in
12589 lt_prog_compiler_wl_CXX='--backend -Wl,'
12592 # Rational C++ 2.4.1
12593 lt_prog_compiler_pic_CXX='-pic'
12596 # Digital/Compaq C++
12597 lt_prog_compiler_wl_CXX='-Wl,'
12598 # Make sure the PIC flag is empty. It appears that all Alpha
12599 # Linux and Compaq Tru64 Unix objects are PIC.
12600 lt_prog_compiler_pic_CXX=
12601 lt_prog_compiler_static_CXX='-non_shared'
12610 case $cc_basename in
12612 # Sun C++ 4.2, 5.x and Centerline C++
12613 lt_prog_compiler_pic_CXX='-KPIC'
12614 lt_prog_compiler_static_CXX='-Bstatic'
12615 lt_prog_compiler_wl_CXX='-Qoption ld '
12618 # Green Hills C++ Compiler
12619 lt_prog_compiler_pic_CXX='-PIC'
12626 case $cc_basename in
12629 lt_prog_compiler_pic_CXX='-pic'
12630 lt_prog_compiler_static_CXX='-Bstatic'
12634 lt_prog_compiler_pic_CXX='-pic'
12641 case $cc_basename in
12643 # NonStop-UX NCC 3.20
12644 lt_prog_compiler_pic_CXX='-KPIC'
12650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12651 case $cc_basename in
12653 lt_prog_compiler_wl_CXX='-Wl,'
12654 lt_prog_compiler_pic_CXX='-KPIC'
12655 lt_prog_compiler_static_CXX='-Bstatic'
12662 lt_prog_compiler_can_build_shared_CXX=no
12667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12668 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12671 # Check to make sure the PIC flag actually works.
12673 if test -n "$lt_prog_compiler_pic_CXX"; then
12675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12677 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 lt_cv_prog_compiler_pic_works_CXX=no
12681 ac_outfile=conftest.$ac_objext
12682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12683 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12684 # Insert the option either (1) after the last *FLAGS variable, or
12685 # (2) before a word containing "conftest.", or (3) at the end.
12686 # Note that $ac_compile itself does not contain backslashes and begins
12687 # with a dollar sign (not a hyphen), so the echo should work correctly.
12688 # The option is referenced via a variable to avoid confusing sed.
12689 lt_compile=`echo "$ac_compile" | $SED \
12690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12692 -e 's:$: $lt_compiler_flag:'`
12693 (eval echo "\"\$as_me:12693: $lt_compile\"" >&5)
12694 (eval "$lt_compile" 2>conftest.err)
12696 cat conftest.err >&5
12697 echo "$as_me:12697: \$? = $ac_status" >&5
12698 if (exit $ac_status) && test -s "$ac_outfile"; then
12699 # The compiler can only warn and ignore the option if not recognized
12700 # So say no if there are warnings other than the usual output.
12701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12704 lt_cv_prog_compiler_pic_works_CXX=yes
12710 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12711 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12713 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12714 case $lt_prog_compiler_pic_CXX in
12716 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12719 lt_prog_compiler_pic_CXX=
12720 lt_prog_compiler_can_build_shared_CXX=no
12725 # For platforms which do not support PIC, -DPIC is meaningless:
12727 lt_prog_compiler_pic_CXX=
12730 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12735 # Check to make sure the static flag actually works.
12737 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12740 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 lt_cv_prog_compiler_static_works_CXX=no
12744 save_LDFLAGS="$LDFLAGS"
12745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12746 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12748 # The linker can only warn and ignore the option if not recognized
12749 # So say no if there are warnings
12750 if test -s conftest.err; then
12751 # Append any errors to the config.log.
12752 cat conftest.err 1>&5
12753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12755 if diff conftest.exp conftest.er2 >/dev/null; then
12756 lt_cv_prog_compiler_static_works_CXX=yes
12759 lt_cv_prog_compiler_static_works_CXX=yes
12763 LDFLAGS="$save_LDFLAGS"
12766 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12767 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12769 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12772 lt_prog_compiler_static_CXX=
12776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12778 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 lt_cv_prog_compiler_c_o_CXX=no
12782 $rm -r conftest 2>/dev/null
12786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12788 lt_compiler_flag="-o out/conftest2.$ac_objext"
12789 # Insert the option either (1) after the last *FLAGS variable, or
12790 # (2) before a word containing "conftest.", or (3) at the end.
12791 # Note that $ac_compile itself does not contain backslashes and begins
12792 # with a dollar sign (not a hyphen), so the echo should work correctly.
12793 lt_compile=`echo "$ac_compile" | $SED \
12794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12796 -e 's:$: $lt_compiler_flag:'`
12797 (eval echo "\"\$as_me:12797: $lt_compile\"" >&5)
12798 (eval "$lt_compile" 2>out/conftest.err)
12800 cat out/conftest.err >&5
12801 echo "$as_me:12801: \$? = $ac_status" >&5
12802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12804 # The compiler can only warn and ignore the option if not recognized
12805 # So say no if there are warnings
12806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12809 lt_cv_prog_compiler_c_o_CXX=yes
12814 # SGI C++ compiler will create directory out/ii_files/ for
12815 # template instantiation
12816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12817 $rm out/* && rmdir out
12823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12827 hard_links="nottested"
12828 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12829 # do not overwrite the value of need_locks provided by the user
12830 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12836 ln conftest.a conftest.b 2>&5 || hard_links=no
12837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12838 { echo "$as_me:$LINENO: result: $hard_links" >&5
12839 echo "${ECHO_T}$hard_links" >&6; }
12840 if test "$hard_links" = no; then
12841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12852 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12855 # If we're using GNU nm, then we don't want the "-C" option.
12856 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12857 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12858 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'
12860 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'
12864 export_symbols_cmds_CXX="$ltdll_cmds"
12867 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'
12869 linux* | k*bsd*-gnu)
12870 link_all_deplibs_CXX=no
12873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12876 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12878 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12879 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12880 test "$ld_shlibs_CXX" = no && can_build_shared=no
12883 # Do we need to explicitly link libc?
12885 case "x$archive_cmds_need_lc_CXX" in
12887 # Assume -lc should be added
12888 archive_cmds_need_lc_CXX=yes
12890 if test "$enable_shared" = yes && test "$GCC" = yes; then
12891 case $archive_cmds_CXX in
12893 # FIXME: we may have to deal with multi-command sequences.
12896 # Test whether the compiler implicitly links with -lc since on some
12897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12898 # to ld, don't add -lc before -lgcc.
12899 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12900 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } 2>conftest.err; then
12911 libobjs=conftest.$ac_objext
12913 wl=$lt_prog_compiler_wl_CXX
12914 pic_flag=$lt_prog_compiler_pic_CXX
12920 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12921 allow_undefined_flag_CXX=
12922 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12923 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }
12928 archive_cmds_need_lc_CXX=no
12930 archive_cmds_need_lc_CXX=yes
12932 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12934 cat conftest.err 1>&5
12937 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12938 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12945 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12946 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12947 library_names_spec=
12948 libname_spec='lib$name'
12952 postuninstall_cmds=
12956 shlibpath_overrides_runpath=unknown
12958 dynamic_linker="$host_os ld.so"
12959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12961 need_lib_prefix=unknown
12962 hardcode_into_libs=no
12964 # when you set need_version to no, make sure it does not cause -set_version
12965 # flags to be left without arguments
12966 need_version=unknown
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12972 shlibpath_var=LIBPATH
12974 # AIX 3 has no versioning support, so we append a major version to the name.
12975 soname_spec='${libname}${release}${shared_ext}$major'
12982 hardcode_into_libs=yes
12983 if test "$host_cpu" = ia64; then
12984 # AIX 5 supports IA64
12985 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12986 shlibpath_var=LD_LIBRARY_PATH
12988 # With GCC up to 2.95.x, collect2 would create an import file
12989 # for dependence libraries. The import file would start with
12990 # the line `#! .'. This would cause the generated library to
12991 # depend on `.', always an invalid library. This was fixed in
12992 # development snapshots of GCC prior to 3.0.
12994 aix4 | aix4.[01] | aix4.[01].*)
12995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12997 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13000 can_build_shared=no
13004 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13005 # soname into executable. Probably we can add versioning support to
13006 # collect2, so additional links can be useful in future.
13007 if test "$aix_use_runtimelinking" = yes; then
13008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13009 # instead of lib<name>.a to let people know that these are not
13010 # typical AIX shared libraries.
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013 # We preserve .a as extension for shared libraries through AIX4.2
13014 # and later when we are not doing run time linking.
13015 library_names_spec='${libname}${release}.a $libname.a'
13016 soname_spec='${libname}${release}${shared_ext}$major'
13018 shlibpath_var=LIBPATH
13023 library_names_spec='$libname.ixlibrary $libname.a'
13024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13025 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'
13029 library_names_spec='${libname}${shared_ext}'
13030 dynamic_linker="$host_os ld.so"
13031 shlibpath_var=LIBRARY_PATH
13037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038 soname_spec='${libname}${release}${shared_ext}$major'
13039 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13042 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13043 # the default ld.so.conf also contains /usr/contrib/lib and
13044 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13045 # libtool to hard-code these into programs
13048 cygwin* | mingw* | pw32*)
13049 version_type=windows
13054 case $GCC,$host_os in
13055 yes,cygwin* | yes,mingw* | yes,pw32*)
13056 library_names_spec='$libname.dll.a'
13057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13058 postinstall_cmds='base_file=`basename \${file}`~
13059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13060 dldir=$destdir/`dirname \$dlpath`~
13061 test -d \$dldir || mkdir -p \$dldir~
13062 $install_prog $dir/$dlname \$dldir/$dlname~
13063 chmod a+x \$dldir/$dlname'
13064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13065 dlpath=$dir/\$dldll~
13067 shlibpath_overrides_runpath=yes
13071 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13072 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13073 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13076 # MinGW DLLs use traditional 'lib' prefix
13077 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13078 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13079 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13080 # It is most probably a Windows format PATH printed by
13081 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13082 # path with ; separators, and with drive letters. We can handle the
13083 # drive letters (cygwin fileutils understands them), so leave them,
13084 # especially as we might pass files found there to a mingw objdump,
13085 # which wouldn't understand a cygwinified path. Ahh.
13086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13092 # pw32 DLLs use 'pw' prefix rather than 'lib'
13093 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13099 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13102 dynamic_linker='Win32 ld.exe'
13103 # FIXME: first we should search . and the directory the executable is in
13107 darwin* | rhapsody*)
13108 dynamic_linker="$host_os dyld"
13109 version_type=darwin
13112 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13113 soname_spec='${libname}${release}${major}$shared_ext'
13114 shlibpath_overrides_runpath=yes
13115 shlibpath_var=DYLD_LIBRARY_PATH
13116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13118 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13126 soname_spec='${libname}${release}${shared_ext}$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13134 freebsd* | dragonfly*)
13135 # DragonFly does not have aout. When/if they implement a new
13136 # versioning mechanism, adjust this.
13137 if test -x /usr/bin/objformat; then
13138 objformat=`/usr/bin/objformat`
13141 freebsd[123]*) objformat=aout ;;
13142 *) objformat=elf ;;
13145 version_type=freebsd-$objformat
13146 case $version_type in
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13157 shlibpath_var=LD_LIBRARY_PATH
13160 shlibpath_overrides_runpath=yes
13162 freebsd3.[01]* | freebsdelf3.[01]*)
13163 shlibpath_overrides_runpath=yes
13164 hardcode_into_libs=yes
13166 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13167 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13168 shlibpath_overrides_runpath=no
13169 hardcode_into_libs=yes
13171 *) # from 4.6 on, and DragonFly
13172 shlibpath_overrides_runpath=yes
13173 hardcode_into_libs=yes
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 shlibpath_var=LD_LIBRARY_PATH
13185 hardcode_into_libs=yes
13188 hpux9* | hpux10* | hpux11*)
13189 # Give a soname corresponding to the major version so that dld.sl refuses to
13190 # link against other versions.
13197 hardcode_into_libs=yes
13198 dynamic_linker="$host_os dld.so"
13199 shlibpath_var=LD_LIBRARY_PATH
13200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202 soname_spec='${libname}${release}${shared_ext}$major'
13203 if test "X$HPUX_IA64_MODE" = X32; then
13204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13206 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13212 hardcode_into_libs=yes
13213 dynamic_linker="$host_os dld.sl"
13214 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13217 soname_spec='${libname}${release}${shared_ext}$major'
13218 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13223 dynamic_linker="$host_os dld.sl"
13224 shlibpath_var=SHLIB_PATH
13225 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13230 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13231 postinstall_cmds='chmod 555 $lib'
13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13239 soname_spec='${libname}${release}${shared_ext}$major'
13240 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13241 shlibpath_var=LD_LIBRARY_PATH
13242 shlibpath_overrides_runpath=no
13243 hardcode_into_libs=yes
13246 irix5* | irix6* | nonstopux*)
13248 nonstopux*) version_type=nonstopux ;;
13250 if test "$lt_cv_prog_gnu_ld" = yes; then
13258 soname_spec='${libname}${release}${shared_ext}$major'
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13261 irix5* | nonstopux*)
13262 libsuff= shlibsuff=
13265 case $LD in # libtool.m4 will add one of these switches to LD
13266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13267 libsuff= shlibsuff= libmagic=32-bit;;
13268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13269 libsuff=32 shlibsuff=N32 libmagic=N32;;
13270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13271 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13272 *) libsuff= shlibsuff= libmagic=never-match;;
13276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13277 shlibpath_overrides_runpath=no
13278 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13279 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13280 hardcode_into_libs=yes
13283 # No shared lib support for Linux oldld, aout, or coff.
13284 linux*oldld* | linux*aout* | linux*coff*)
13288 # This must be Linux ELF.
13289 linux* | k*bsd*-gnu)
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
13295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13296 shlibpath_var=LD_LIBRARY_PATH
13297 shlibpath_overrides_runpath=no
13298 # This implies no fast_install, which is unacceptable.
13299 # Some rework will be needed to allow for fast_install
13300 # before this can be enabled.
13301 hardcode_into_libs=yes
13303 # Append ld.so.conf contents to the search path
13304 if test -f /etc/ld.so.conf; then
13305 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' ' '`
13306 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13309 # We used to test for /lib/ld.so.1 and disable shared libraries on
13310 # powerpc, because MkLinux only supported shared libraries with the
13311 # GNU dynamic linker. Since this was broken with cross compilers,
13312 # most powerpc-linux boxes support dynamic linking these days and
13313 # people can always --disable-shared, the test was removed, and we
13314 # assume the GNU/Linux dynamic linker is in use.
13315 dynamic_linker='GNU/Linux ld.so'
13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13323 soname_spec='${libname}${release}${shared_ext}$major'
13324 shlibpath_var=LD_LIBRARY_PATH
13325 shlibpath_overrides_runpath=no
13326 hardcode_into_libs=yes
13327 dynamic_linker='NetBSD ld.elf_so'
13334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13337 dynamic_linker='NetBSD (a.out) ld.so'
13339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13340 soname_spec='${libname}${release}${shared_ext}$major'
13341 dynamic_linker='NetBSD ld.elf_so'
13343 shlibpath_var=LD_LIBRARY_PATH
13344 shlibpath_overrides_runpath=yes
13345 hardcode_into_libs=yes
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 shlibpath_var=LD_LIBRARY_PATH
13352 shlibpath_overrides_runpath=yes
13359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13360 soname_spec='${libname}${release}${shared_ext}$major'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=yes
13367 sys_lib_dlsearch_path_spec="/usr/lib"
13369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13371 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13372 *) need_version=no ;;
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13376 shlibpath_var=LD_LIBRARY_PATH
13377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13379 openbsd2.[89] | openbsd2.[89].*)
13380 shlibpath_overrides_runpath=no
13383 shlibpath_overrides_runpath=yes
13387 shlibpath_overrides_runpath=yes
13392 libname_spec='$name'
13395 library_names_spec='$libname${shared_ext} $libname.a'
13396 dynamic_linker='OS/2 ld.exe'
13397 shlibpath_var=LIBPATH
13400 osf3* | osf4* | osf5*)
13404 soname_spec='${libname}${release}${shared_ext}$major'
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406 shlibpath_var=LD_LIBRARY_PATH
13407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420 soname_spec='${libname}${release}${shared_ext}$major'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 shlibpath_overrides_runpath=yes
13423 hardcode_into_libs=yes
13424 # ldd complains unless libraries are executable
13425 postinstall_cmds='chmod +x $lib'
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 shlibpath_overrides_runpath=yes
13434 if test "$with_gnu_ld" = yes; then
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 case $host_vendor in
13447 shlibpath_overrides_runpath=no
13449 export_dynamic_flag_spec='${wl}-Blargedynsym'
13450 runpath_var=LD_RUN_PATH
13458 shlibpath_overrides_runpath=no
13459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13465 if test -d /usr/nec ;then
13467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13468 soname_spec='$libname${shared_ext}.$major'
13469 shlibpath_var=LD_LIBRARY_PATH
13473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13474 version_type=freebsd-elf
13477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13478 soname_spec='${libname}${release}${shared_ext}$major'
13479 shlibpath_var=LD_LIBRARY_PATH
13480 hardcode_into_libs=yes
13481 if test "$with_gnu_ld" = yes; then
13482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13483 shlibpath_overrides_runpath=no
13485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13486 shlibpath_overrides_runpath=yes
13489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13493 sys_lib_dlsearch_path_spec='/usr/lib'
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 shlibpath_var=LD_LIBRARY_PATH
13507 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13508 echo "${ECHO_T}$dynamic_linker" >&6; }
13509 test "$dynamic_linker" = no && can_build_shared=no
13511 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13517 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13518 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13524 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13527 if test "$GCC" = yes; then
13528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13531 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13532 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13533 hardcode_action_CXX=
13534 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13535 test -n "$runpath_var_CXX" || \
13536 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13538 # We can hardcode non-existant directories.
13539 if test "$hardcode_direct_CXX" != no &&
13540 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13541 # have to relink, otherwise we might link with an installed library
13542 # when we should be linking with a yet-to-be-installed one
13543 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13544 test "$hardcode_minus_L_CXX" != no; then
13545 # Linking always hardcodes the temporary library directory.
13546 hardcode_action_CXX=relink
13548 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13549 hardcode_action_CXX=immediate
13552 # We cannot hardcode anything, or else we can only hardcode existing
13554 hardcode_action_CXX=unsupported
13556 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13557 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13559 if test "$hardcode_action_CXX" = relink; then
13560 # Fast installation is not supported
13561 enable_fast_install=no
13562 elif test "$shlibpath_overrides_runpath" = yes ||
13563 test "$enable_shared" = no; then
13564 # Fast installation is not necessary
13565 enable_fast_install=needless
13569 # The else clause should only fire when bootstrapping the
13570 # libtool distribution, otherwise you forgot to ship ltmain.sh
13571 # with your package, and you will get complaints that there are
13572 # no rules to generate ltmain.sh.
13573 if test -f "$ltmain"; then
13574 # See if we are running on zsh, and set the options which allow our commands through
13575 # without removal of \ escapes.
13576 if test -n "${ZSH_VERSION+set}" ; then
13577 setopt NO_GLOB_SUBST
13579 # Now quote all the things that may contain metacharacters while being
13580 # careful not to overquote the AC_SUBSTed values. We take copies of the
13581 # variables and quote the copies for generation of the libtool script.
13582 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13584 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13585 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13586 deplibs_check_method reload_flag reload_cmds need_locks \
13587 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13588 lt_cv_sys_global_symbol_to_c_name_address \
13589 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13590 old_postinstall_cmds old_postuninstall_cmds \
13594 lt_prog_compiler_wl_CXX \
13595 lt_prog_compiler_pic_CXX \
13596 lt_prog_compiler_static_CXX \
13597 lt_prog_compiler_no_builtin_flag_CXX \
13598 export_dynamic_flag_spec_CXX \
13599 thread_safe_flag_spec_CXX \
13600 whole_archive_flag_spec_CXX \
13601 enable_shared_with_static_runtimes_CXX \
13602 old_archive_cmds_CXX \
13603 old_archive_from_new_cmds_CXX \
13604 predep_objects_CXX \
13605 postdep_objects_CXX \
13608 compiler_lib_search_path_CXX \
13609 compiler_lib_search_dirs_CXX \
13611 archive_expsym_cmds_CXX \
13612 postinstall_cmds_CXX \
13613 postuninstall_cmds_CXX \
13614 old_archive_from_expsyms_cmds_CXX \
13615 allow_undefined_flag_CXX \
13616 no_undefined_flag_CXX \
13617 export_symbols_cmds_CXX \
13618 hardcode_libdir_flag_spec_CXX \
13619 hardcode_libdir_flag_spec_ld_CXX \
13620 hardcode_libdir_separator_CXX \
13621 hardcode_automatic_CXX \
13623 module_expsym_cmds_CXX \
13624 lt_cv_prog_compiler_c_o_CXX \
13625 fix_srcfile_path_CXX \
13626 exclude_expsyms_CXX \
13627 include_expsyms_CXX; do
13630 old_archive_cmds_CXX | \
13631 old_archive_from_new_cmds_CXX | \
13632 archive_cmds_CXX | \
13633 archive_expsym_cmds_CXX | \
13634 module_cmds_CXX | \
13635 module_expsym_cmds_CXX | \
13636 old_archive_from_expsyms_cmds_CXX | \
13637 export_symbols_cmds_CXX | \
13638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13639 postinstall_cmds | postuninstall_cmds | \
13640 old_postinstall_cmds | old_postuninstall_cmds | \
13641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13642 # Double-quote double-evaled strings.
13643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13652 *'\$0 --fallback-echo"')
13653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13659 cat <<__EOF__ >> "$cfgfile"
13660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13664 # Shell to use when invoking shell scripts.
13667 # Whether or not to build shared libraries.
13668 build_libtool_libs=$enable_shared
13670 # Whether or not to build static libraries.
13671 build_old_libs=$enable_static
13673 # Whether or not to add -lc for building shared libraries.
13674 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13676 # Whether or not to disallow shared libs when runtime libs are static
13677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13679 # Whether or not to optimize for fast installation.
13680 fast_install=$enable_fast_install
13683 host_alias=$host_alias
13687 # The build system.
13688 build_alias=$build_alias
13692 # An echo program that does not interpret backslashes.
13697 AR_FLAGS=$lt_AR_FLAGS
13702 # LTCC compiler flags.
13703 LTCFLAGS=$lt_LTCFLAGS
13705 # A language-specific compiler.
13706 CC=$lt_compiler_CXX
13708 # Is the compiler the GNU C compiler?
13714 # The linker used to build libraries.
13717 # Whether we need hard or soft links.
13720 # A BSD-compatible nm program.
13723 # A symbol stripping program
13726 # Used to examine libraries when file_magic_cmd begins "file"
13727 MAGIC_CMD=$MAGIC_CMD
13729 # Used on cygwin: DLL creation program.
13732 # Used on cygwin: object dumper.
13735 # Used on cygwin: assembler.
13738 # The name of the directory that contains temporary libtool files.
13741 # How to create reloadable object files.
13742 reload_flag=$lt_reload_flag
13743 reload_cmds=$lt_reload_cmds
13745 # How to pass a linker flag through the compiler.
13746 wl=$lt_lt_prog_compiler_wl_CXX
13748 # Object file suffix (normally "o").
13749 objext="$ac_objext"
13751 # Old archive suffix (normally "a").
13754 # Shared library suffix (normally ".so").
13755 shrext_cmds='$shrext_cmds'
13757 # Executable file suffix (normally "").
13760 # Additional compiler flags for building library objects.
13761 pic_flag=$lt_lt_prog_compiler_pic_CXX
13764 # What is the maximum length of a command?
13765 max_cmd_len=$lt_cv_sys_max_cmd_len
13767 # Does compiler simultaneously support -c and -o options?
13768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13770 # Must we lock files when doing compilation?
13771 need_locks=$lt_need_locks
13773 # Do we need the lib prefix for modules?
13774 need_lib_prefix=$need_lib_prefix
13776 # Do we need a version for libraries?
13777 need_version=$need_version
13779 # Whether dlopen is supported.
13780 dlopen_support=$enable_dlopen
13782 # Whether dlopen of programs is supported.
13783 dlopen_self=$enable_dlopen_self
13785 # Whether dlopen of statically linked programs is supported.
13786 dlopen_self_static=$enable_dlopen_self_static
13788 # Compiler flag to prevent dynamic linking.
13789 link_static_flag=$lt_lt_prog_compiler_static_CXX
13791 # Compiler flag to turn off builtin functions.
13792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13794 # Compiler flag to allow reflexive dlopens.
13795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13797 # Compiler flag to generate shared objects directly from archives.
13798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13800 # Compiler flag to generate thread-safe objects.
13801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13803 # Library versioning type.
13804 version_type=$version_type
13806 # Format of library name prefix.
13807 libname_spec=$lt_libname_spec
13809 # List of archive names. First name is the real one, the rest are links.
13810 # The last name is the one that the linker finds with -lNAME.
13811 library_names_spec=$lt_library_names_spec
13813 # The coded name of the library, if different from the real name.
13814 soname_spec=$lt_soname_spec
13816 # Commands used to build and install an old-style archive.
13818 old_archive_cmds=$lt_old_archive_cmds_CXX
13819 old_postinstall_cmds=$lt_old_postinstall_cmds
13820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13822 # Create an old-style archive from a shared archive.
13823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13825 # Create a temporary old-style archive to link instead of a shared archive.
13826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13828 # Commands used to build and install a shared archive.
13829 archive_cmds=$lt_archive_cmds_CXX
13830 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13831 postinstall_cmds=$lt_postinstall_cmds
13832 postuninstall_cmds=$lt_postuninstall_cmds
13834 # Commands used to build a loadable module (assumed same as above if empty)
13835 module_cmds=$lt_module_cmds_CXX
13836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13838 # Commands to strip libraries.
13839 old_striplib=$lt_old_striplib
13840 striplib=$lt_striplib
13842 # Dependencies to place before the objects being linked to create a
13844 predep_objects=$lt_predep_objects_CXX
13846 # Dependencies to place after the objects being linked to create a
13848 postdep_objects=$lt_postdep_objects_CXX
13850 # Dependencies to place before the objects being linked to create a
13852 predeps=$lt_predeps_CXX
13854 # Dependencies to place after the objects being linked to create a
13856 postdeps=$lt_postdeps_CXX
13858 # The directories searched by this compiler when creating a shared
13860 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13862 # The library search path used internally by the compiler when linking
13863 # a shared library.
13864 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13866 # Method to check whether dependent libraries are shared objects.
13867 deplibs_check_method=$lt_deplibs_check_method
13869 # Command to use when deplibs_check_method == file_magic.
13870 file_magic_cmd=$lt_file_magic_cmd
13872 # Flag that allows shared libraries with undefined symbols to be built.
13873 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13875 # Flag that forces no undefined symbols.
13876 no_undefined_flag=$lt_no_undefined_flag_CXX
13878 # Commands used to finish a libtool library installation in a directory.
13879 finish_cmds=$lt_finish_cmds
13881 # Same as above, but a single script fragment to be evaled but not shown.
13882 finish_eval=$lt_finish_eval
13884 # Take the output of nm and produce a listing of raw symbols and C names.
13885 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13887 # Transform the output of nm in a proper C declaration
13888 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13890 # Transform the output of nm in a C name address pair
13891 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13893 # This is the shared library runtime path variable.
13894 runpath_var=$runpath_var
13896 # This is the shared library path variable.
13897 shlibpath_var=$shlibpath_var
13899 # Is shlibpath searched before the hard-coded library search path?
13900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13902 # How to hardcode a shared library path into an executable.
13903 hardcode_action=$hardcode_action_CXX
13905 # Whether we should hardcode library paths into libraries.
13906 hardcode_into_libs=$hardcode_into_libs
13908 # Flag to hardcode \$libdir into a binary during linking.
13909 # This must work even if \$libdir does not exist.
13910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13912 # If ld is used when linking, flag to hardcode \$libdir into
13913 # a binary during linking. This must work even if \$libdir does
13915 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13917 # Whether we need a single -rpath flag with a separated argument.
13918 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13920 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13921 # resulting binary.
13922 hardcode_direct=$hardcode_direct_CXX
13924 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13925 # resulting binary.
13926 hardcode_minus_L=$hardcode_minus_L_CXX
13928 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13929 # the resulting binary.
13930 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13932 # Set to yes if building a shared library automatically hardcodes DIR into the library
13933 # and all subsequent libraries and executables linked against it.
13934 hardcode_automatic=$hardcode_automatic_CXX
13936 # Variables whose values should be saved in libtool wrapper scripts and
13937 # restored at relink time.
13938 variables_saved_for_relink="$variables_saved_for_relink"
13940 # Whether libtool must link a program against all its dependency libraries.
13941 link_all_deplibs=$link_all_deplibs_CXX
13943 # Compile-time system search path for libraries
13944 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13946 # Run-time system search path for libraries
13947 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13949 # Fix the shell variable \$srcfile for the compiler.
13950 fix_srcfile_path=$lt_fix_srcfile_path
13952 # Set to yes if exported symbols are required.
13953 always_export_symbols=$always_export_symbols_CXX
13955 # The commands to list exported symbols.
13956 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13958 # The commands to extract the exported symbol list from a shared archive.
13959 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13961 # Symbols that should not be listed in the preloaded symbols.
13962 exclude_expsyms=$lt_exclude_expsyms_CXX
13964 # Symbols that must always be exported.
13965 include_expsyms=$lt_include_expsyms_CXX
13967 # ### END LIBTOOL TAG CONFIG: $tagname
13973 # If there is no Makefile yet, we rely on a make rule to execute
13974 # `config.status --recheck' to rerun these tests and create the
13975 # libtool script then.
13976 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13977 if test -f "$ltmain_in"; then
13978 test -f Makefile && make "$ltmain"
13984 ac_cpp='$CPP $CPPFLAGS'
13985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13993 with_gnu_ldcxx=$with_gnu_ld
13994 with_gnu_ld=$lt_save_with_gnu_ld
13995 lt_cv_path_LDCXX=$lt_cv_path_LD
13996 lt_cv_path_LD=$lt_save_path_LD
13997 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13998 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14006 if test -n "$F77" && test "X$F77" != "Xno"; then
14009 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14010 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14014 archive_cmds_need_lc_F77=no
14015 allow_undefined_flag_F77=
14016 always_export_symbols_F77=no
14017 archive_expsym_cmds_F77=
14018 export_dynamic_flag_spec_F77=
14019 hardcode_direct_F77=no
14020 hardcode_libdir_flag_spec_F77=
14021 hardcode_libdir_flag_spec_ld_F77=
14022 hardcode_libdir_separator_F77=
14023 hardcode_minus_L_F77=no
14024 hardcode_automatic_F77=no
14026 module_expsym_cmds_F77=
14027 link_all_deplibs_F77=unknown
14028 old_archive_cmds_F77=$old_archive_cmds
14029 no_undefined_flag_F77=
14030 whole_archive_flag_spec_F77=
14031 enable_shared_with_static_runtimes_F77=no
14033 # Source file extension for f77 test sources.
14036 # Object file extension for compiled f77 test sources.
14040 # Code to be used in simple compile tests
14041 lt_simple_compile_test_code="\
14047 # Code to be used in simple link tests
14048 lt_simple_link_test_code="\
14053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14055 # If no C compiler was specified, use CC.
14058 # If no C compiler flags were specified, use CFLAGS.
14059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14061 # Allow CC to be a program name with arguments.
14065 # save warnings/boilerplate of simple test code
14066 ac_outfile=conftest.$ac_objext
14067 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14069 _lt_compiler_boilerplate=`cat conftest.err`
14072 ac_outfile=conftest.$ac_objext
14073 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14075 _lt_linker_boilerplate=`cat conftest.err`
14079 # Allow CC to be a program name with arguments.
14084 for cc_temp in $compiler""; do
14086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14095 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14096 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14097 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14098 echo "${ECHO_T}$can_build_shared" >&6; }
14100 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14101 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14102 test "$can_build_shared" = "no" && enable_shared=no
14104 # On AIX, shared libraries and static libraries use the same namespace, and
14105 # are all built from PIC.
14108 test "$enable_shared" = yes && enable_static=no
14109 if test -n "$RANLIB"; then
14110 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14111 postinstall_cmds='$RANLIB $lib'
14115 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14116 test "$enable_shared" = yes && enable_static=no
14120 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14121 echo "${ECHO_T}$enable_shared" >&6; }
14123 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14124 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14125 # Make sure either enable_shared or enable_static is yes.
14126 test "$enable_shared" = yes || enable_static=yes
14127 { echo "$as_me:$LINENO: result: $enable_static" >&5
14128 echo "${ECHO_T}$enable_static" >&6; }
14133 lt_prog_compiler_wl_F77=
14134 lt_prog_compiler_pic_F77=
14135 lt_prog_compiler_static_F77=
14137 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14138 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14140 if test "$GCC" = yes; then
14141 lt_prog_compiler_wl_F77='-Wl,'
14142 lt_prog_compiler_static_F77='-static'
14146 # All AIX code is PIC.
14147 if test "$host_cpu" = ia64; then
14148 # AIX 5 now supports IA64 processor
14149 lt_prog_compiler_static_F77='-Bstatic'
14154 # FIXME: we need at least 68020 code to build shared libraries, but
14155 # adding the `-m68020' flag to GCC prevents building anything better,
14157 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14161 # PIC is the default for these OSes.
14164 mingw* | cygwin* | pw32* | os2*)
14165 # This hack is so that the source file can tell whether it is being
14166 # built for inclusion in a dll (and should export symbols for example).
14167 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14168 # (--disable-auto-import) libraries
14169 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14172 darwin* | rhapsody*)
14173 # PIC is the default on this platform
14174 # Common symbols not allowed in MH_DYLIB files
14175 lt_prog_compiler_pic_F77='-fno-common'
14179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14180 # Instead, we relocate shared libraries at runtime.
14184 # Just because we use GCC doesn't mean we suddenly get shared libraries
14185 # on systems that don't support them.
14186 lt_prog_compiler_can_build_shared_F77=no
14191 if test -d /usr/nec; then
14192 lt_prog_compiler_pic_F77=-Kconform_pic
14197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14198 # not for PA HP-UX.
14204 lt_prog_compiler_pic_F77='-fPIC'
14210 lt_prog_compiler_pic_F77='-fPIC'
14214 # PORTME Check for flag to pass linker flags through the system compiler.
14217 lt_prog_compiler_wl_F77='-Wl,'
14218 if test "$host_cpu" = ia64; then
14219 # AIX 5 now supports IA64 processor
14220 lt_prog_compiler_static_F77='-Bstatic'
14222 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14226 # PIC is the default on this platform
14227 # Common symbols not allowed in MH_DYLIB files
14228 case $cc_basename in
14230 lt_prog_compiler_pic_F77='-qnocommon'
14231 lt_prog_compiler_wl_F77='-Wl,'
14236 mingw* | cygwin* | pw32* | os2*)
14237 # This hack is so that the source file can tell whether it is being
14238 # built for inclusion in a dll (and should export symbols for example).
14239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14242 hpux9* | hpux10* | hpux11*)
14243 lt_prog_compiler_wl_F77='-Wl,'
14244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14245 # not for PA HP-UX.
14251 lt_prog_compiler_pic_F77='+Z'
14254 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14255 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14258 irix5* | irix6* | nonstopux*)
14259 lt_prog_compiler_wl_F77='-Wl,'
14260 # PIC (with -KPIC) is the default.
14261 lt_prog_compiler_static_F77='-non_shared'
14265 lt_prog_compiler_pic_F77='-KPIC'
14266 lt_prog_compiler_static_F77='-Bstatic'
14269 linux* | k*bsd*-gnu)
14270 case $cc_basename in
14272 lt_prog_compiler_wl_F77='-Wl,'
14273 lt_prog_compiler_pic_F77='-KPIC'
14274 lt_prog_compiler_static_F77='-static'
14276 pgcc* | pgf77* | pgf90* | pgf95*)
14277 # Portland Group compilers (*not* the Pentium gcc compiler,
14278 # which looks to be a dead project)
14279 lt_prog_compiler_wl_F77='-Wl,'
14280 lt_prog_compiler_pic_F77='-fpic'
14281 lt_prog_compiler_static_F77='-Bstatic'
14284 lt_prog_compiler_wl_F77='-Wl,'
14285 # All Alpha code is PIC.
14286 lt_prog_compiler_static_F77='-non_shared'
14289 case `$CC -V 2>&1 | sed 5q` in
14292 lt_prog_compiler_pic_F77='-KPIC'
14293 lt_prog_compiler_static_F77='-Bstatic'
14294 lt_prog_compiler_wl_F77='-Wl,'
14297 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14298 lt_prog_compiler_pic_F77='-KPIC'
14299 lt_prog_compiler_static_F77='-Bstatic'
14300 lt_prog_compiler_wl_F77=''
14307 osf3* | osf4* | osf5*)
14308 lt_prog_compiler_wl_F77='-Wl,'
14309 # All OSF/1 code is PIC.
14310 lt_prog_compiler_static_F77='-non_shared'
14314 lt_prog_compiler_static_F77='-non_shared'
14318 lt_prog_compiler_pic_F77='-KPIC'
14319 lt_prog_compiler_static_F77='-Bstatic'
14320 case $cc_basename in
14321 f77* | f90* | f95*)
14322 lt_prog_compiler_wl_F77='-Qoption ld ';;
14324 lt_prog_compiler_wl_F77='-Wl,';;
14329 lt_prog_compiler_wl_F77='-Qoption ld '
14330 lt_prog_compiler_pic_F77='-PIC'
14331 lt_prog_compiler_static_F77='-Bstatic'
14334 sysv4 | sysv4.2uw2* | sysv4.3*)
14335 lt_prog_compiler_wl_F77='-Wl,'
14336 lt_prog_compiler_pic_F77='-KPIC'
14337 lt_prog_compiler_static_F77='-Bstatic'
14341 if test -d /usr/nec ;then
14342 lt_prog_compiler_pic_F77='-Kconform_pic'
14343 lt_prog_compiler_static_F77='-Bstatic'
14347 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14348 lt_prog_compiler_wl_F77='-Wl,'
14349 lt_prog_compiler_pic_F77='-KPIC'
14350 lt_prog_compiler_static_F77='-Bstatic'
14354 lt_prog_compiler_wl_F77='-Wl,'
14355 lt_prog_compiler_can_build_shared_F77=no
14359 lt_prog_compiler_pic_F77='-pic'
14360 lt_prog_compiler_static_F77='-Bstatic'
14364 lt_prog_compiler_can_build_shared_F77=no
14369 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14370 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14373 # Check to make sure the PIC flag actually works.
14375 if test -n "$lt_prog_compiler_pic_F77"; then
14377 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14379 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 lt_cv_prog_compiler_pic_works_F77=no
14383 ac_outfile=conftest.$ac_objext
14384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14385 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14386 # Insert the option either (1) after the last *FLAGS variable, or
14387 # (2) before a word containing "conftest.", or (3) at the end.
14388 # Note that $ac_compile itself does not contain backslashes and begins
14389 # with a dollar sign (not a hyphen), so the echo should work correctly.
14390 # The option is referenced via a variable to avoid confusing sed.
14391 lt_compile=`echo "$ac_compile" | $SED \
14392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14394 -e 's:$: $lt_compiler_flag:'`
14395 (eval echo "\"\$as_me:14395: $lt_compile\"" >&5)
14396 (eval "$lt_compile" 2>conftest.err)
14398 cat conftest.err >&5
14399 echo "$as_me:14399: \$? = $ac_status" >&5
14400 if (exit $ac_status) && test -s "$ac_outfile"; then
14401 # The compiler can only warn and ignore the option if not recognized
14402 # So say no if there are warnings other than the usual output.
14403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14406 lt_cv_prog_compiler_pic_works_F77=yes
14412 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14413 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14415 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14416 case $lt_prog_compiler_pic_F77 in
14418 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14421 lt_prog_compiler_pic_F77=
14422 lt_prog_compiler_can_build_shared_F77=no
14427 # For platforms which do not support PIC, -DPIC is meaningless:
14429 lt_prog_compiler_pic_F77=
14432 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14437 # Check to make sure the static flag actually works.
14439 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14440 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14441 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14442 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 lt_cv_prog_compiler_static_works_F77=no
14446 save_LDFLAGS="$LDFLAGS"
14447 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14450 # The linker can only warn and ignore the option if not recognized
14451 # So say no if there are warnings
14452 if test -s conftest.err; then
14453 # Append any errors to the config.log.
14454 cat conftest.err 1>&5
14455 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14457 if diff conftest.exp conftest.er2 >/dev/null; then
14458 lt_cv_prog_compiler_static_works_F77=yes
14461 lt_cv_prog_compiler_static_works_F77=yes
14465 LDFLAGS="$save_LDFLAGS"
14468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14469 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14471 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14474 lt_prog_compiler_static_F77=
14478 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14479 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14480 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 lt_cv_prog_compiler_c_o_F77=no
14484 $rm -r conftest 2>/dev/null
14488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14490 lt_compiler_flag="-o out/conftest2.$ac_objext"
14491 # Insert the option either (1) after the last *FLAGS variable, or
14492 # (2) before a word containing "conftest.", or (3) at the end.
14493 # Note that $ac_compile itself does not contain backslashes and begins
14494 # with a dollar sign (not a hyphen), so the echo should work correctly.
14495 lt_compile=`echo "$ac_compile" | $SED \
14496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498 -e 's:$: $lt_compiler_flag:'`
14499 (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
14500 (eval "$lt_compile" 2>out/conftest.err)
14502 cat out/conftest.err >&5
14503 echo "$as_me:14503: \$? = $ac_status" >&5
14504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14506 # The compiler can only warn and ignore the option if not recognized
14507 # So say no if there are warnings
14508 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14511 lt_cv_prog_compiler_c_o_F77=yes
14516 # SGI C++ compiler will create directory out/ii_files/ for
14517 # template instantiation
14518 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14519 $rm out/* && rmdir out
14525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14526 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14529 hard_links="nottested"
14530 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14531 # do not overwrite the value of need_locks provided by the user
14532 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14533 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14538 ln conftest.a conftest.b 2>&5 || hard_links=no
14539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14540 { echo "$as_me:$LINENO: result: $hard_links" >&5
14541 echo "${ECHO_T}$hard_links" >&6; }
14542 if test "$hard_links" = no; then
14543 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14544 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14551 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14552 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14555 allow_undefined_flag_F77=
14556 enable_shared_with_static_runtimes_F77=no
14558 archive_expsym_cmds_F77=
14559 old_archive_From_new_cmds_F77=
14560 old_archive_from_expsyms_cmds_F77=
14561 export_dynamic_flag_spec_F77=
14562 whole_archive_flag_spec_F77=
14563 thread_safe_flag_spec_F77=
14564 hardcode_libdir_flag_spec_F77=
14565 hardcode_libdir_flag_spec_ld_F77=
14566 hardcode_libdir_separator_F77=
14567 hardcode_direct_F77=no
14568 hardcode_minus_L_F77=no
14569 hardcode_shlibpath_var_F77=unsupported
14570 link_all_deplibs_F77=unknown
14571 hardcode_automatic_F77=no
14573 module_expsym_cmds_F77=
14574 always_export_symbols_F77=no
14575 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14576 # include_expsyms should be a list of space-separated symbols to be *always*
14577 # included in the symbol list
14578 include_expsyms_F77=
14579 # exclude_expsyms can be an extended regexp of symbols to exclude
14580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14582 # as well as any symbol that contains `d'.
14583 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14585 # platforms (ab)use it in PIC code, but their linkers get confused if
14586 # the symbol is explicitly referenced. Since portable code cannot
14587 # rely on this symbol name, it's probably fine to never include it in
14588 # preloaded symbol tables.
14589 # Exclude shared library initialization/finalization symbols.
14590 extract_expsyms_cmds=
14591 # Just being paranoid about ensuring that cc_basename is set.
14592 for cc_temp in $compiler""; do
14594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14603 cygwin* | mingw* | pw32*)
14604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14605 # When not using gcc, we currently assume that we are using
14606 # Microsoft Visual C++.
14607 if test "$GCC" != yes; then
14612 # we just hope/assume this is gcc and not c89 (= MSVC++)
14621 if test "$with_gnu_ld" = yes; then
14622 # If archive_cmds runs LD, not CC, wlarc should be empty
14625 # Set some defaults for GNU ld with shared library support. These
14626 # are reset later if shared libraries are not supported. Putting them
14627 # here allows them to be overridden if necessary.
14628 runpath_var=LD_RUN_PATH
14629 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14630 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14631 # ancient GNU ld didn't support --whole-archive et. al.
14632 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14633 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14635 whole_archive_flag_spec_F77=
14637 supports_anon_versioning=no
14638 case `$LD -v 2>/dev/null` in
14639 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14640 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14641 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14642 *\ 2.11.*) ;; # other 2.11 versions
14643 *) supports_anon_versioning=yes ;;
14646 # See if GNU ld supports shared libraries.
14649 # On AIX/PPC, the GNU linker is very broken
14650 if test "$host_cpu" != ia64; then
14654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14655 *** to be unable to reliably create shared libraries on AIX.
14656 *** Therefore, libtool is disabling shared libraries support. If you
14657 *** really care for shared libraries, you may want to modify your PATH
14658 *** so that a non-GNU linker is found, and then restart.
14665 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)'
14666 hardcode_libdir_flag_spec_F77='-L$libdir'
14667 hardcode_minus_L_F77=yes
14669 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14670 # that the semantics of dynamic libraries on AmigaOS, at least up
14671 # to version 4, is to share data among multiple programs linked
14672 # with the same dynamic library. Since this doesn't match the
14673 # behavior of shared libraries on other platforms, we can't use
14679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14680 allow_undefined_flag_F77=unsupported
14681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14682 # support --undefined. This deserves some investigation. FIXME
14683 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14689 cygwin* | mingw* | pw32*)
14690 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14691 # as there is no search path for DLLs.
14692 hardcode_libdir_flag_spec_F77='-L$libdir'
14693 allow_undefined_flag_F77=unsupported
14694 always_export_symbols_F77=no
14695 enable_shared_with_static_runtimes_F77=yes
14696 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14698 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14699 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14700 # If the export-symbols file already is a .def file (1st line
14701 # is EXPORTS), use it as is; otherwise, prepend...
14702 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14703 cp $export_symbols $output_objdir/$soname.def;
14705 echo EXPORTS > $output_objdir/$soname.def;
14706 cat $export_symbols >> $output_objdir/$soname.def;
14708 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14715 hardcode_direct_F77=no
14716 hardcode_shlibpath_var_F77=no
14717 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14718 export_dynamic_flag_spec_F77='${wl}-E'
14719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14720 # Instead, shared libraries are loaded at an image base (0x10000000 by
14721 # default) and relocated if they conflict, which is a slow very memory
14722 # consuming and fragmenting process. To avoid this, we pick a random,
14723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14725 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'
14726 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'
14729 gnu* | linux* | k*bsd*-gnu)
14730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14732 case $cc_basename,$host_cpu in
14733 pgcc*) # Portland Group C compiler
14734 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'
14735 tmp_addflag=' $pic_flag'
14737 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14738 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'
14739 tmp_addflag=' $pic_flag -Mnomain' ;;
14740 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14741 tmp_addflag=' -i_dynamic' ;;
14742 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14743 tmp_addflag=' -i_dynamic -nofor_main' ;;
14744 ifc* | ifort*) # Intel Fortran compiler
14745 tmp_addflag=' -nofor_main' ;;
14747 case `$CC -V 2>&1 | sed 5q` in
14748 *Sun\ C*) # Sun C 5.9
14749 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'
14750 tmp_sharedflag='-G' ;;
14751 *Sun\ F*) # Sun Fortran 8.3
14752 tmp_sharedflag='-G' ;;
14754 tmp_sharedflag='-shared' ;;
14756 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 if test $supports_anon_versioning = yes; then
14759 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14761 $echo "local: *; };" >> $output_objdir/$libname.ver~
14762 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14764 link_all_deplibs_F77=no
14770 netbsd* | netbsdelf*-gnu)
14771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14772 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14775 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14776 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14781 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14785 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14786 *** create shared libraries on Solaris systems. Therefore, libtool
14787 *** is disabling shared libraries support. We urge you to upgrade GNU
14788 *** binutils to release 2.9.1 or newer. Another option is to modify
14789 *** your PATH or compiler configuration so that the native linker is
14790 *** used, and then restart.
14793 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14802 case `$LD -v 2>&1` in
14803 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14807 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14808 *** reliably create shared libraries on SCO systems. Therefore, libtool
14809 *** is disabling shared libraries support. We urge you to upgrade GNU
14810 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14811 *** your PATH or compiler configuration so that the native linker is
14812 *** used, and then restart.
14817 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14818 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14819 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14820 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14829 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14831 hardcode_direct_F77=yes
14832 hardcode_shlibpath_var_F77=no
14836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14838 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14845 if test "$ld_shlibs_F77" = no; then
14847 hardcode_libdir_flag_spec_F77=
14848 export_dynamic_flag_spec_F77=
14849 whole_archive_flag_spec_F77=
14852 # PORTME fill in a description of your system's linker (not GNU ld)
14855 allow_undefined_flag_F77=unsupported
14856 always_export_symbols_F77=yes
14857 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'
14858 # Note: this linker hardcodes the directories in LIBPATH if there
14859 # are no directories specified by -L.
14860 hardcode_minus_L_F77=yes
14861 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14862 # Neither direct hardcoding nor static linking is supported with a
14864 hardcode_direct_F77=unsupported
14869 if test "$host_cpu" = ia64; then
14870 # On IA64, the linker does run time linking by default, so we don't
14871 # have to do anything special.
14872 aix_use_runtimelinking=no
14873 exp_sym_flag='-Bexport'
14876 # If we're using GNU nm, then we don't want the "-C" option.
14877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14878 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14879 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'
14881 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'
14883 aix_use_runtimelinking=no
14885 # Test if we are trying to use run time linking or normal
14886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14887 # need to do runtime linking.
14888 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14889 for ld_flag in $LDFLAGS; do
14890 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14891 aix_use_runtimelinking=yes
14898 exp_sym_flag='-bexport'
14899 no_entry_flag='-bnoentry'
14902 # When large executables or shared objects are built, AIX ld can
14903 # have problems creating the table of contents. If linking a library
14904 # or program results in "error TOC overflow" add -mminimal-toc to
14905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14908 archive_cmds_F77=''
14909 hardcode_direct_F77=yes
14910 hardcode_libdir_separator_F77=':'
14911 link_all_deplibs_F77=yes
14913 if test "$GCC" = yes; then
14914 case $host_os in aix4.[012]|aix4.[012].*)
14915 # We only want to do this on AIX 4.2 and lower, the check
14916 # below for broken collect2 doesn't work under 4.3+
14917 collect2name=`${CC} -print-prog-name=collect2`
14918 if test -f "$collect2name" && \
14919 strings "$collect2name" | grep resolve_lib_name >/dev/null
14921 # We have reworked collect2
14924 # We have old collect2
14925 hardcode_direct_F77=unsupported
14926 # It fails to find uninstalled libraries when the uninstalled
14927 # path is not listed in the libpath. Setting hardcode_minus_L
14928 # to unsupported forces relinking
14929 hardcode_minus_L_F77=yes
14930 hardcode_libdir_flag_spec_F77='-L$libdir'
14931 hardcode_libdir_separator_F77=
14935 shared_flag='-shared'
14936 if test "$aix_use_runtimelinking" = yes; then
14937 shared_flag="$shared_flag "'${wl}-G'
14941 if test "$host_cpu" = ia64; then
14942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14943 # chokes on -Wl,-G. The following line is correct:
14946 if test "$aix_use_runtimelinking" = yes; then
14947 shared_flag='${wl}-G'
14949 shared_flag='${wl}-bM:SRE'
14954 # It seems that -bexpall does not export symbols beginning with
14955 # underscore (_), so it is better to generate a list of symbols to export.
14956 always_export_symbols_F77=yes
14957 if test "$aix_use_runtimelinking" = yes; then
14958 # Warning - without using the other runtime loading flags (-brtl),
14959 # -berok will link without error, but may produce a broken library.
14960 allow_undefined_flag_F77='-berok'
14961 # Determine the default libpath from the value encoded in an empty executable.
14962 cat >conftest.$ac_ext <<_ACEOF
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (ac_try="$ac_link"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_link") 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_f77_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext &&
14984 $as_test_x conftest$ac_exeext; then
14986 lt_aix_libpath_sed='
14987 /Import File Strings/,/^$/ {
14993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14994 # Check for a 64-bit object if we didn't find anything.
14995 if test -z "$aix_libpath"; then
14996 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15006 conftest$ac_exeext conftest.$ac_ext
15007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15009 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15010 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"
15012 if test "$host_cpu" = ia64; then
15013 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15014 allow_undefined_flag_F77="-z nodefs"
15015 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"
15017 # Determine the default libpath from the value encoded in an empty executable.
15018 cat >conftest.$ac_ext <<_ACEOF
15023 rm -f conftest.$ac_objext conftest$ac_exeext
15024 if { (ac_try="$ac_link"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_link") 2>conftest.er1
15032 grep -v '^ *+' conftest.er1 >conftest.err
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } && {
15037 test -z "$ac_f77_werror_flag" ||
15038 test ! -s conftest.err
15039 } && test -s conftest$ac_exeext &&
15040 $as_test_x conftest$ac_exeext; then
15042 lt_aix_libpath_sed='
15043 /Import File Strings/,/^$/ {
15049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15050 # Check for a 64-bit object if we didn't find anything.
15051 if test -z "$aix_libpath"; then
15052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15062 conftest$ac_exeext conftest.$ac_ext
15063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15065 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15066 # Warning - without using the other run time loading flags,
15067 # -berok will link without error, but may produce a broken library.
15068 no_undefined_flag_F77=' ${wl}-bernotok'
15069 allow_undefined_flag_F77=' ${wl}-berok'
15070 # Exported symbols can be pulled into shared objects from archives
15071 whole_archive_flag_spec_F77='$convenience'
15072 archive_cmds_need_lc_F77=yes
15073 # This is similar to how AIX traditionally builds its shared libraries.
15074 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'
15080 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)'
15081 hardcode_libdir_flag_spec_F77='-L$libdir'
15082 hardcode_minus_L_F77=yes
15083 # see comment about different semantics on the GNU ld section
15088 export_dynamic_flag_spec_F77=-rdynamic
15091 cygwin* | mingw* | pw32*)
15092 # When not using gcc, we currently assume that we are using
15093 # Microsoft Visual C++.
15094 # hardcode_libdir_flag_spec is actually meaningless, as there is
15095 # no search path for DLLs.
15096 hardcode_libdir_flag_spec_F77=' '
15097 allow_undefined_flag_F77=unsupported
15098 # Tell ltmain to make .lib files, not .a files.
15100 # Tell ltmain to make .dll files, not .so files.
15102 # FIXME: Setting linknames here is a bad hack.
15103 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15104 # The linker will automatically build a .lib file if we build a DLL.
15105 old_archive_From_new_cmds_F77='true'
15106 # FIXME: Should let the user specify the lib program.
15107 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15108 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15109 enable_shared_with_static_runtimes_F77=yes
15112 darwin* | rhapsody*)
15114 rhapsody* | darwin1.[012])
15115 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15118 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15119 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15121 case ${MACOSX_DEPLOYMENT_TARGET} in
15123 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15126 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15132 archive_cmds_need_lc_F77=no
15133 hardcode_direct_F77=no
15134 hardcode_automatic_F77=yes
15135 hardcode_shlibpath_var_F77=unsupported
15136 whole_archive_flag_spec_F77=''
15137 link_all_deplibs_F77=yes
15138 if test "$GCC" = yes ; then
15139 output_verbose_link_cmd='echo'
15140 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}"
15141 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15142 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}"
15143 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}"
15145 case $cc_basename in
15147 output_verbose_link_cmd='echo'
15148 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15149 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15150 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15151 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}'
15152 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}'
15162 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163 hardcode_libdir_flag_spec_F77='-L$libdir'
15164 hardcode_shlibpath_var_F77=no
15171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15172 # support. Future versions do this automatically, but an explicit c++rt0.o
15173 # does not break anything, and helps significantly (at the cost of a little
15176 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15177 hardcode_libdir_flag_spec_F77='-R$libdir'
15178 hardcode_direct_F77=yes
15179 hardcode_shlibpath_var_F77=no
15182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15184 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185 hardcode_direct_F77=yes
15186 hardcode_minus_L_F77=yes
15187 hardcode_shlibpath_var_F77=no
15190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15191 freebsd* | dragonfly*)
15192 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15193 hardcode_libdir_flag_spec_F77='-R$libdir'
15194 hardcode_direct_F77=yes
15195 hardcode_shlibpath_var_F77=no
15199 if test "$GCC" = yes; then
15200 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'
15202 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'
15204 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15205 hardcode_libdir_separator_F77=:
15206 hardcode_direct_F77=yes
15208 # hardcode_minus_L: Not really in the search PATH,
15209 # but as the default location of the library.
15210 hardcode_minus_L_F77=yes
15211 export_dynamic_flag_spec_F77='${wl}-E'
15215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15216 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15218 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15220 if test "$with_gnu_ld" = no; then
15221 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15222 hardcode_libdir_separator_F77=:
15224 hardcode_direct_F77=yes
15225 export_dynamic_flag_spec_F77='${wl}-E'
15227 # hardcode_minus_L: Not really in the search PATH,
15228 # but as the default location of the library.
15229 hardcode_minus_L_F77=yes
15234 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15237 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15243 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15249 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15252 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15255 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15259 if test "$with_gnu_ld" = no; then
15260 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15261 hardcode_libdir_separator_F77=:
15265 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15266 hardcode_direct_F77=no
15267 hardcode_shlibpath_var_F77=no
15270 hardcode_direct_F77=yes
15271 export_dynamic_flag_spec_F77='${wl}-E'
15273 # hardcode_minus_L: Not really in the search PATH,
15274 # but as the default location of the library.
15275 hardcode_minus_L_F77=yes
15281 irix5* | irix6* | nonstopux*)
15282 if test "$GCC" = yes; then
15283 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'
15285 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'
15286 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15288 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15289 hardcode_libdir_separator_F77=:
15290 link_all_deplibs_F77=yes
15293 netbsd* | netbsdelf*-gnu)
15294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15295 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15297 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15299 hardcode_libdir_flag_spec_F77='-R$libdir'
15300 hardcode_direct_F77=yes
15301 hardcode_shlibpath_var_F77=no
15305 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_direct_F77=yes
15307 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15308 hardcode_libdir_separator_F77=:
15309 hardcode_shlibpath_var_F77=no
15313 if test -f /usr/libexec/ld.so; then
15314 hardcode_direct_F77=yes
15315 hardcode_shlibpath_var_F77=no
15316 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15317 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15318 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15319 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15320 export_dynamic_flag_spec_F77='${wl}-E'
15323 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15324 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15325 hardcode_libdir_flag_spec_F77='-R$libdir'
15328 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15339 hardcode_libdir_flag_spec_F77='-L$libdir'
15340 hardcode_minus_L_F77=yes
15341 allow_undefined_flag_F77=unsupported
15342 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'
15343 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15347 if test "$GCC" = yes; then
15348 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15349 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'
15351 allow_undefined_flag_F77=' -expect_unresolved \*'
15352 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'
15354 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15355 hardcode_libdir_separator_F77=:
15358 osf4* | osf5*) # as osf3* with the addition of -msym flag
15359 if test "$GCC" = yes; then
15360 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15361 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'
15362 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15364 allow_undefined_flag_F77=' -expect_unresolved \*'
15365 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'
15366 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~
15367 $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'
15369 # Both c and cxx compiler support -rpath directly
15370 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15372 hardcode_libdir_separator_F77=:
15376 no_undefined_flag_F77=' -z text'
15377 if test "$GCC" = yes; then
15379 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15381 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15384 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15385 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15386 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15388 hardcode_libdir_flag_spec_F77='-R$libdir'
15389 hardcode_shlibpath_var_F77=no
15391 solaris2.[0-5] | solaris2.[0-5].*) ;;
15393 # The compiler driver will combine and reorder linker options,
15394 # but understands `-z linker_flag'. GCC discards it without `$wl',
15395 # but is careful enough not to reorder.
15396 # Supported since Solaris 2.6 (maybe 2.5.1?)
15397 if test "$GCC" = yes; then
15398 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15400 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15404 link_all_deplibs_F77=yes
15408 if test "x$host_vendor" = xsequent; then
15409 # Use $CC to link under sequent, because it throws in some extra .o
15410 # files that make .init and .fini sections work.
15411 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15413 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15415 hardcode_libdir_flag_spec_F77='-L$libdir'
15416 hardcode_direct_F77=yes
15417 hardcode_minus_L_F77=yes
15418 hardcode_shlibpath_var_F77=no
15422 case $host_vendor in
15424 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425 hardcode_direct_F77=yes # is this really true???
15428 ## LD is ld it makes a PLAMLIB
15429 ## CC just makes a GrossModule.
15430 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15431 reload_cmds_F77='$CC -r -o $output$reload_objs'
15432 hardcode_direct_F77=no
15435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15439 runpath_var='LD_RUN_PATH'
15440 hardcode_shlibpath_var_F77=no
15444 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445 hardcode_shlibpath_var_F77=no
15446 export_dynamic_flag_spec_F77='-Bexport'
15450 if test -d /usr/nec; then
15451 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15452 hardcode_shlibpath_var_F77=no
15453 runpath_var=LD_RUN_PATH
15454 hardcode_runpath_var=yes
15459 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15460 no_undefined_flag_F77='${wl}-z,text'
15461 archive_cmds_need_lc_F77=no
15462 hardcode_shlibpath_var_F77=no
15463 runpath_var='LD_RUN_PATH'
15465 if test "$GCC" = yes; then
15466 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15467 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15474 sysv5* | sco3.2v5* | sco5v6*)
15475 # Note: We can NOT use -z defs as we might desire, because we do not
15476 # link with -lc, and that would cause any symbols used from libc to
15477 # always be unresolved, which means just about no library would
15478 # ever link correctly. If we're not using GNU ld we use -z text
15479 # though, which does catch some bad symbols but isn't as heavy-handed
15481 no_undefined_flag_F77='${wl}-z,text'
15482 allow_undefined_flag_F77='${wl}-z,nodefs'
15483 archive_cmds_need_lc_F77=no
15484 hardcode_shlibpath_var_F77=no
15485 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15486 hardcode_libdir_separator_F77=':'
15487 link_all_deplibs_F77=yes
15488 export_dynamic_flag_spec_F77='${wl}-Bexport'
15489 runpath_var='LD_RUN_PATH'
15491 if test "$GCC" = yes; then
15492 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15493 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15495 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502 hardcode_libdir_flag_spec_F77='-L$libdir'
15503 hardcode_shlibpath_var_F77=no
15512 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15513 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15514 test "$ld_shlibs_F77" = no && can_build_shared=no
15517 # Do we need to explicitly link libc?
15519 case "x$archive_cmds_need_lc_F77" in
15521 # Assume -lc should be added
15522 archive_cmds_need_lc_F77=yes
15524 if test "$enable_shared" = yes && test "$GCC" = yes; then
15525 case $archive_cmds_F77 in
15527 # FIXME: we may have to deal with multi-command sequences.
15530 # Test whether the compiler implicitly links with -lc since on some
15531 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15532 # to ld, don't add -lc before -lgcc.
15533 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15534 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539 (eval $ac_compile) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } 2>conftest.err; then
15545 libobjs=conftest.$ac_objext
15547 wl=$lt_prog_compiler_wl_F77
15548 pic_flag=$lt_prog_compiler_pic_F77
15554 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15555 allow_undefined_flag_F77=
15556 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15557 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }
15562 archive_cmds_need_lc_F77=no
15564 archive_cmds_need_lc_F77=yes
15566 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15568 cat conftest.err 1>&5
15571 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15572 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15579 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15580 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15581 library_names_spec=
15582 libname_spec='lib$name'
15586 postuninstall_cmds=
15590 shlibpath_overrides_runpath=unknown
15592 dynamic_linker="$host_os ld.so"
15593 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15595 need_lib_prefix=unknown
15596 hardcode_into_libs=no
15598 # when you set need_version to no, make sure it does not cause -set_version
15599 # flags to be left without arguments
15600 need_version=unknown
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15606 shlibpath_var=LIBPATH
15608 # AIX 3 has no versioning support, so we append a major version to the name.
15609 soname_spec='${libname}${release}${shared_ext}$major'
15616 hardcode_into_libs=yes
15617 if test "$host_cpu" = ia64; then
15618 # AIX 5 supports IA64
15619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15620 shlibpath_var=LD_LIBRARY_PATH
15622 # With GCC up to 2.95.x, collect2 would create an import file
15623 # for dependence libraries. The import file would start with
15624 # the line `#! .'. This would cause the generated library to
15625 # depend on `.', always an invalid library. This was fixed in
15626 # development snapshots of GCC prior to 3.0.
15628 aix4 | aix4.[01] | aix4.[01].*)
15629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15631 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15634 can_build_shared=no
15638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15639 # soname into executable. Probably we can add versioning support to
15640 # collect2, so additional links can be useful in future.
15641 if test "$aix_use_runtimelinking" = yes; then
15642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15643 # instead of lib<name>.a to let people know that these are not
15644 # typical AIX shared libraries.
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 # We preserve .a as extension for shared libraries through AIX4.2
15648 # and later when we are not doing run time linking.
15649 library_names_spec='${libname}${release}.a $libname.a'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LIBPATH
15657 library_names_spec='$libname.ixlibrary $libname.a'
15658 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15659 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'
15663 library_names_spec='${libname}${shared_ext}'
15664 dynamic_linker="$host_os ld.so"
15665 shlibpath_var=LIBRARY_PATH
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672 soname_spec='${libname}${release}${shared_ext}$major'
15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15677 # the default ld.so.conf also contains /usr/contrib/lib and
15678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15679 # libtool to hard-code these into programs
15682 cygwin* | mingw* | pw32*)
15683 version_type=windows
15688 case $GCC,$host_os in
15689 yes,cygwin* | yes,mingw* | yes,pw32*)
15690 library_names_spec='$libname.dll.a'
15691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15692 postinstall_cmds='base_file=`basename \${file}`~
15693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15694 dldir=$destdir/`dirname \$dlpath`~
15695 test -d \$dldir || mkdir -p \$dldir~
15696 $install_prog $dir/$dlname \$dldir/$dlname~
15697 chmod a+x \$dldir/$dlname'
15698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699 dlpath=$dir/\$dldll~
15701 shlibpath_overrides_runpath=yes
15705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15710 # MinGW DLLs use traditional 'lib' prefix
15711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15714 # It is most probably a Windows format PATH printed by
15715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15716 # path with ; separators, and with drive letters. We can handle the
15717 # drive letters (cygwin fileutils understands them), so leave them,
15718 # especially as we might pass files found there to a mingw objdump,
15719 # which wouldn't understand a cygwinified path. Ahh.
15720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15726 # pw32 DLLs use 'pw' prefix rather than 'lib'
15727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15736 dynamic_linker='Win32 ld.exe'
15737 # FIXME: first we should search . and the directory the executable is in
15741 darwin* | rhapsody*)
15742 dynamic_linker="$host_os dyld"
15743 version_type=darwin
15746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15747 soname_spec='${libname}${release}${major}$shared_ext'
15748 shlibpath_overrides_runpath=yes
15749 shlibpath_var=DYLD_LIBRARY_PATH
15750 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15768 freebsd* | dragonfly*)
15769 # DragonFly does not have aout. When/if they implement a new
15770 # versioning mechanism, adjust this.
15771 if test -x /usr/bin/objformat; then
15772 objformat=`/usr/bin/objformat`
15775 freebsd[123]*) objformat=aout ;;
15776 *) objformat=elf ;;
15779 version_type=freebsd-$objformat
15780 case $version_type in
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15791 shlibpath_var=LD_LIBRARY_PATH
15794 shlibpath_overrides_runpath=yes
15796 freebsd3.[01]* | freebsdelf3.[01]*)
15797 shlibpath_overrides_runpath=yes
15798 hardcode_into_libs=yes
15800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15802 shlibpath_overrides_runpath=no
15803 hardcode_into_libs=yes
15805 *) # from 4.6 on, and DragonFly
15806 shlibpath_overrides_runpath=yes
15807 hardcode_into_libs=yes
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 shlibpath_var=LD_LIBRARY_PATH
15819 hardcode_into_libs=yes
15822 hpux9* | hpux10* | hpux11*)
15823 # Give a soname corresponding to the major version so that dld.sl refuses to
15824 # link against other versions.
15831 hardcode_into_libs=yes
15832 dynamic_linker="$host_os dld.so"
15833 shlibpath_var=LD_LIBRARY_PATH
15834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 if test "X$HPUX_IA64_MODE" = X32; then
15838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15846 hardcode_into_libs=yes
15847 dynamic_linker="$host_os dld.sl"
15848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857 dynamic_linker="$host_os dld.sl"
15858 shlibpath_var=SHLIB_PATH
15859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861 soname_spec='${libname}${release}${shared_ext}$major'
15864 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15865 postinstall_cmds='chmod 555 $lib'
15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15875 shlibpath_var=LD_LIBRARY_PATH
15876 shlibpath_overrides_runpath=no
15877 hardcode_into_libs=yes
15880 irix5* | irix6* | nonstopux*)
15882 nonstopux*) version_type=nonstopux ;;
15884 if test "$lt_cv_prog_gnu_ld" = yes; then
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15895 irix5* | nonstopux*)
15896 libsuff= shlibsuff=
15899 case $LD in # libtool.m4 will add one of these switches to LD
15900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15901 libsuff= shlibsuff= libmagic=32-bit;;
15902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15903 libsuff=32 shlibsuff=N32 libmagic=N32;;
15904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15905 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15906 *) libsuff= shlibsuff= libmagic=never-match;;
15910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15911 shlibpath_overrides_runpath=no
15912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15914 hardcode_into_libs=yes
15917 # No shared lib support for Linux oldld, aout, or coff.
15918 linux*oldld* | linux*aout* | linux*coff*)
15922 # This must be Linux ELF.
15923 linux* | k*bsd*-gnu)
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 shlibpath_overrides_runpath=no
15932 # This implies no fast_install, which is unacceptable.
15933 # Some rework will be needed to allow for fast_install
15934 # before this can be enabled.
15935 hardcode_into_libs=yes
15937 # Append ld.so.conf contents to the search path
15938 if test -f /etc/ld.so.conf; then
15939 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' ' '`
15940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15943 # We used to test for /lib/ld.so.1 and disable shared libraries on
15944 # powerpc, because MkLinux only supported shared libraries with the
15945 # GNU dynamic linker. Since this was broken with cross compilers,
15946 # most powerpc-linux boxes support dynamic linking these days and
15947 # people can always --disable-shared, the test was removed, and we
15948 # assume the GNU/Linux dynamic linker is in use.
15949 dynamic_linker='GNU/Linux ld.so'
15956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15957 soname_spec='${libname}${release}${shared_ext}$major'
15958 shlibpath_var=LD_LIBRARY_PATH
15959 shlibpath_overrides_runpath=no
15960 hardcode_into_libs=yes
15961 dynamic_linker='NetBSD ld.elf_so'
15968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15971 dynamic_linker='NetBSD (a.out) ld.so'
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15974 soname_spec='${libname}${release}${shared_ext}$major'
15975 dynamic_linker='NetBSD ld.elf_so'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 shlibpath_overrides_runpath=yes
15979 hardcode_into_libs=yes
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985 shlibpath_var=LD_LIBRARY_PATH
15986 shlibpath_overrides_runpath=yes
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=yes
16001 sys_lib_dlsearch_path_spec="/usr/lib"
16003 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16005 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16006 *) need_version=no ;;
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16013 openbsd2.[89] | openbsd2.[89].*)
16014 shlibpath_overrides_runpath=no
16017 shlibpath_overrides_runpath=yes
16021 shlibpath_overrides_runpath=yes
16026 libname_spec='$name'
16029 library_names_spec='$libname${shared_ext} $libname.a'
16030 dynamic_linker='OS/2 ld.exe'
16031 shlibpath_var=LIBPATH
16034 osf3* | osf4* | osf5*)
16038 soname_spec='${libname}${release}${shared_ext}$major'
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 shlibpath_var=LD_LIBRARY_PATH
16041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16042 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 shlibpath_var=LD_LIBRARY_PATH
16056 shlibpath_overrides_runpath=yes
16057 hardcode_into_libs=yes
16058 # ldd complains unless libraries are executable
16059 postinstall_cmds='chmod +x $lib'
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16065 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=yes
16068 if test "$with_gnu_ld" = yes; then
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 case $host_vendor in
16081 shlibpath_overrides_runpath=no
16083 export_dynamic_flag_spec='${wl}-Blargedynsym'
16084 runpath_var=LD_RUN_PATH
16092 shlibpath_overrides_runpath=no
16093 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16099 if test -d /usr/nec ;then
16101 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16102 soname_spec='$libname${shared_ext}.$major'
16103 shlibpath_var=LD_LIBRARY_PATH
16107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16108 version_type=freebsd-elf
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 hardcode_into_libs=yes
16115 if test "$with_gnu_ld" = yes; then
16116 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16117 shlibpath_overrides_runpath=no
16119 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16120 shlibpath_overrides_runpath=yes
16123 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16127 sys_lib_dlsearch_path_spec='/usr/lib'
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 soname_spec='${libname}${release}${shared_ext}$major'
16134 shlibpath_var=LD_LIBRARY_PATH
16141 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16142 echo "${ECHO_T}$dynamic_linker" >&6; }
16143 test "$dynamic_linker" = no && can_build_shared=no
16145 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16151 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16152 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16158 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16161 if test "$GCC" = yes; then
16162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16165 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16167 hardcode_action_F77=
16168 if test -n "$hardcode_libdir_flag_spec_F77" || \
16169 test -n "$runpath_var_F77" || \
16170 test "X$hardcode_automatic_F77" = "Xyes" ; then
16172 # We can hardcode non-existant directories.
16173 if test "$hardcode_direct_F77" != no &&
16174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16175 # have to relink, otherwise we might link with an installed library
16176 # when we should be linking with a yet-to-be-installed one
16177 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16178 test "$hardcode_minus_L_F77" != no; then
16179 # Linking always hardcodes the temporary library directory.
16180 hardcode_action_F77=relink
16182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16183 hardcode_action_F77=immediate
16186 # We cannot hardcode anything, or else we can only hardcode existing
16188 hardcode_action_F77=unsupported
16190 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16191 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16193 if test "$hardcode_action_F77" = relink; then
16194 # Fast installation is not supported
16195 enable_fast_install=no
16196 elif test "$shlibpath_overrides_runpath" = yes ||
16197 test "$enable_shared" = no; then
16198 # Fast installation is not necessary
16199 enable_fast_install=needless
16203 # The else clause should only fire when bootstrapping the
16204 # libtool distribution, otherwise you forgot to ship ltmain.sh
16205 # with your package, and you will get complaints that there are
16206 # no rules to generate ltmain.sh.
16207 if test -f "$ltmain"; then
16208 # See if we are running on zsh, and set the options which allow our commands through
16209 # without removal of \ escapes.
16210 if test -n "${ZSH_VERSION+set}" ; then
16211 setopt NO_GLOB_SUBST
16213 # Now quote all the things that may contain metacharacters while being
16214 # careful not to overquote the AC_SUBSTed values. We take copies of the
16215 # variables and quote the copies for generation of the libtool script.
16216 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16218 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16219 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16220 deplibs_check_method reload_flag reload_cmds need_locks \
16221 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16222 lt_cv_sys_global_symbol_to_c_name_address \
16223 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16224 old_postinstall_cmds old_postuninstall_cmds \
16228 lt_prog_compiler_wl_F77 \
16229 lt_prog_compiler_pic_F77 \
16230 lt_prog_compiler_static_F77 \
16231 lt_prog_compiler_no_builtin_flag_F77 \
16232 export_dynamic_flag_spec_F77 \
16233 thread_safe_flag_spec_F77 \
16234 whole_archive_flag_spec_F77 \
16235 enable_shared_with_static_runtimes_F77 \
16236 old_archive_cmds_F77 \
16237 old_archive_from_new_cmds_F77 \
16238 predep_objects_F77 \
16239 postdep_objects_F77 \
16242 compiler_lib_search_path_F77 \
16243 compiler_lib_search_dirs_F77 \
16245 archive_expsym_cmds_F77 \
16246 postinstall_cmds_F77 \
16247 postuninstall_cmds_F77 \
16248 old_archive_from_expsyms_cmds_F77 \
16249 allow_undefined_flag_F77 \
16250 no_undefined_flag_F77 \
16251 export_symbols_cmds_F77 \
16252 hardcode_libdir_flag_spec_F77 \
16253 hardcode_libdir_flag_spec_ld_F77 \
16254 hardcode_libdir_separator_F77 \
16255 hardcode_automatic_F77 \
16257 module_expsym_cmds_F77 \
16258 lt_cv_prog_compiler_c_o_F77 \
16259 fix_srcfile_path_F77 \
16260 exclude_expsyms_F77 \
16261 include_expsyms_F77; do
16264 old_archive_cmds_F77 | \
16265 old_archive_from_new_cmds_F77 | \
16266 archive_cmds_F77 | \
16267 archive_expsym_cmds_F77 | \
16268 module_cmds_F77 | \
16269 module_expsym_cmds_F77 | \
16270 old_archive_from_expsyms_cmds_F77 | \
16271 export_symbols_cmds_F77 | \
16272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16273 postinstall_cmds | postuninstall_cmds | \
16274 old_postinstall_cmds | old_postuninstall_cmds | \
16275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16276 # Double-quote double-evaled strings.
16277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16286 *'\$0 --fallback-echo"')
16287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16293 cat <<__EOF__ >> "$cfgfile"
16294 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16298 # Shell to use when invoking shell scripts.
16301 # Whether or not to build shared libraries.
16302 build_libtool_libs=$enable_shared
16304 # Whether or not to build static libraries.
16305 build_old_libs=$enable_static
16307 # Whether or not to add -lc for building shared libraries.
16308 build_libtool_need_lc=$archive_cmds_need_lc_F77
16310 # Whether or not to disallow shared libs when runtime libs are static
16311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16313 # Whether or not to optimize for fast installation.
16314 fast_install=$enable_fast_install
16317 host_alias=$host_alias
16321 # The build system.
16322 build_alias=$build_alias
16326 # An echo program that does not interpret backslashes.
16331 AR_FLAGS=$lt_AR_FLAGS
16336 # LTCC compiler flags.
16337 LTCFLAGS=$lt_LTCFLAGS
16339 # A language-specific compiler.
16340 CC=$lt_compiler_F77
16342 # Is the compiler the GNU C compiler?
16348 # The linker used to build libraries.
16351 # Whether we need hard or soft links.
16354 # A BSD-compatible nm program.
16357 # A symbol stripping program
16360 # Used to examine libraries when file_magic_cmd begins "file"
16361 MAGIC_CMD=$MAGIC_CMD
16363 # Used on cygwin: DLL creation program.
16366 # Used on cygwin: object dumper.
16369 # Used on cygwin: assembler.
16372 # The name of the directory that contains temporary libtool files.
16375 # How to create reloadable object files.
16376 reload_flag=$lt_reload_flag
16377 reload_cmds=$lt_reload_cmds
16379 # How to pass a linker flag through the compiler.
16380 wl=$lt_lt_prog_compiler_wl_F77
16382 # Object file suffix (normally "o").
16383 objext="$ac_objext"
16385 # Old archive suffix (normally "a").
16388 # Shared library suffix (normally ".so").
16389 shrext_cmds='$shrext_cmds'
16391 # Executable file suffix (normally "").
16394 # Additional compiler flags for building library objects.
16395 pic_flag=$lt_lt_prog_compiler_pic_F77
16398 # What is the maximum length of a command?
16399 max_cmd_len=$lt_cv_sys_max_cmd_len
16401 # Does compiler simultaneously support -c and -o options?
16402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16404 # Must we lock files when doing compilation?
16405 need_locks=$lt_need_locks
16407 # Do we need the lib prefix for modules?
16408 need_lib_prefix=$need_lib_prefix
16410 # Do we need a version for libraries?
16411 need_version=$need_version
16413 # Whether dlopen is supported.
16414 dlopen_support=$enable_dlopen
16416 # Whether dlopen of programs is supported.
16417 dlopen_self=$enable_dlopen_self
16419 # Whether dlopen of statically linked programs is supported.
16420 dlopen_self_static=$enable_dlopen_self_static
16422 # Compiler flag to prevent dynamic linking.
16423 link_static_flag=$lt_lt_prog_compiler_static_F77
16425 # Compiler flag to turn off builtin functions.
16426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16428 # Compiler flag to allow reflexive dlopens.
16429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16431 # Compiler flag to generate shared objects directly from archives.
16432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16434 # Compiler flag to generate thread-safe objects.
16435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16437 # Library versioning type.
16438 version_type=$version_type
16440 # Format of library name prefix.
16441 libname_spec=$lt_libname_spec
16443 # List of archive names. First name is the real one, the rest are links.
16444 # The last name is the one that the linker finds with -lNAME.
16445 library_names_spec=$lt_library_names_spec
16447 # The coded name of the library, if different from the real name.
16448 soname_spec=$lt_soname_spec
16450 # Commands used to build and install an old-style archive.
16452 old_archive_cmds=$lt_old_archive_cmds_F77
16453 old_postinstall_cmds=$lt_old_postinstall_cmds
16454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16456 # Create an old-style archive from a shared archive.
16457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16459 # Create a temporary old-style archive to link instead of a shared archive.
16460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16462 # Commands used to build and install a shared archive.
16463 archive_cmds=$lt_archive_cmds_F77
16464 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16465 postinstall_cmds=$lt_postinstall_cmds
16466 postuninstall_cmds=$lt_postuninstall_cmds
16468 # Commands used to build a loadable module (assumed same as above if empty)
16469 module_cmds=$lt_module_cmds_F77
16470 module_expsym_cmds=$lt_module_expsym_cmds_F77
16472 # Commands to strip libraries.
16473 old_striplib=$lt_old_striplib
16474 striplib=$lt_striplib
16476 # Dependencies to place before the objects being linked to create a
16478 predep_objects=$lt_predep_objects_F77
16480 # Dependencies to place after the objects being linked to create a
16482 postdep_objects=$lt_postdep_objects_F77
16484 # Dependencies to place before the objects being linked to create a
16486 predeps=$lt_predeps_F77
16488 # Dependencies to place after the objects being linked to create a
16490 postdeps=$lt_postdeps_F77
16492 # The directories searched by this compiler when creating a shared
16494 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16496 # The library search path used internally by the compiler when linking
16497 # a shared library.
16498 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16500 # Method to check whether dependent libraries are shared objects.
16501 deplibs_check_method=$lt_deplibs_check_method
16503 # Command to use when deplibs_check_method == file_magic.
16504 file_magic_cmd=$lt_file_magic_cmd
16506 # Flag that allows shared libraries with undefined symbols to be built.
16507 allow_undefined_flag=$lt_allow_undefined_flag_F77
16509 # Flag that forces no undefined symbols.
16510 no_undefined_flag=$lt_no_undefined_flag_F77
16512 # Commands used to finish a libtool library installation in a directory.
16513 finish_cmds=$lt_finish_cmds
16515 # Same as above, but a single script fragment to be evaled but not shown.
16516 finish_eval=$lt_finish_eval
16518 # Take the output of nm and produce a listing of raw symbols and C names.
16519 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16521 # Transform the output of nm in a proper C declaration
16522 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16524 # Transform the output of nm in a C name address pair
16525 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16527 # This is the shared library runtime path variable.
16528 runpath_var=$runpath_var
16530 # This is the shared library path variable.
16531 shlibpath_var=$shlibpath_var
16533 # Is shlibpath searched before the hard-coded library search path?
16534 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16536 # How to hardcode a shared library path into an executable.
16537 hardcode_action=$hardcode_action_F77
16539 # Whether we should hardcode library paths into libraries.
16540 hardcode_into_libs=$hardcode_into_libs
16542 # Flag to hardcode \$libdir into a binary during linking.
16543 # This must work even if \$libdir does not exist.
16544 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16546 # If ld is used when linking, flag to hardcode \$libdir into
16547 # a binary during linking. This must work even if \$libdir does
16549 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16551 # Whether we need a single -rpath flag with a separated argument.
16552 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16554 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16555 # resulting binary.
16556 hardcode_direct=$hardcode_direct_F77
16558 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16559 # resulting binary.
16560 hardcode_minus_L=$hardcode_minus_L_F77
16562 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16563 # the resulting binary.
16564 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16566 # Set to yes if building a shared library automatically hardcodes DIR into the library
16567 # and all subsequent libraries and executables linked against it.
16568 hardcode_automatic=$hardcode_automatic_F77
16570 # Variables whose values should be saved in libtool wrapper scripts and
16571 # restored at relink time.
16572 variables_saved_for_relink="$variables_saved_for_relink"
16574 # Whether libtool must link a program against all its dependency libraries.
16575 link_all_deplibs=$link_all_deplibs_F77
16577 # Compile-time system search path for libraries
16578 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16580 # Run-time system search path for libraries
16581 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16583 # Fix the shell variable \$srcfile for the compiler.
16584 fix_srcfile_path=$lt_fix_srcfile_path
16586 # Set to yes if exported symbols are required.
16587 always_export_symbols=$always_export_symbols_F77
16589 # The commands to list exported symbols.
16590 export_symbols_cmds=$lt_export_symbols_cmds_F77
16592 # The commands to extract the exported symbol list from a shared archive.
16593 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16595 # Symbols that should not be listed in the preloaded symbols.
16596 exclude_expsyms=$lt_exclude_expsyms_F77
16598 # Symbols that must always be exported.
16599 include_expsyms=$lt_include_expsyms_F77
16601 # ### END LIBTOOL TAG CONFIG: $tagname
16607 # If there is no Makefile yet, we rely on a make rule to execute
16608 # `config.status --recheck' to rerun these tests and create the
16609 # libtool script then.
16610 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16611 if test -f "$ltmain_in"; then
16612 test -f Makefile && make "$ltmain"
16618 ac_cpp='$CPP $CPPFLAGS'
16619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16631 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16634 # Source file extension for Java test sources.
16637 # Object file extension for compiled Java test sources.
16641 # Code to be used in simple compile tests
16642 lt_simple_compile_test_code="class foo {}"
16644 # Code to be used in simple link tests
16645 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16649 # If no C compiler was specified, use CC.
16652 # If no C compiler flags were specified, use CFLAGS.
16653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16655 # Allow CC to be a program name with arguments.
16659 # save warnings/boilerplate of simple test code
16660 ac_outfile=conftest.$ac_objext
16661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16663 _lt_compiler_boilerplate=`cat conftest.err`
16666 ac_outfile=conftest.$ac_objext
16667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16669 _lt_linker_boilerplate=`cat conftest.err`
16673 # Allow CC to be a program name with arguments.
16678 for cc_temp in $compiler""; do
16680 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16681 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16686 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16689 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16690 archive_cmds_need_lc_GCJ=no
16692 old_archive_cmds_GCJ=$old_archive_cmds
16695 lt_prog_compiler_no_builtin_flag_GCJ=
16697 if test "$GCC" = yes; then
16698 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16701 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16702 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16703 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16706 lt_cv_prog_compiler_rtti_exceptions=no
16707 ac_outfile=conftest.$ac_objext
16708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16709 lt_compiler_flag="-fno-rtti -fno-exceptions"
16710 # Insert the option either (1) after the last *FLAGS variable, or
16711 # (2) before a word containing "conftest.", or (3) at the end.
16712 # Note that $ac_compile itself does not contain backslashes and begins
16713 # with a dollar sign (not a hyphen), so the echo should work correctly.
16714 # The option is referenced via a variable to avoid confusing sed.
16715 lt_compile=`echo "$ac_compile" | $SED \
16716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16718 -e 's:$: $lt_compiler_flag:'`
16719 (eval echo "\"\$as_me:16719: $lt_compile\"" >&5)
16720 (eval "$lt_compile" 2>conftest.err)
16722 cat conftest.err >&5
16723 echo "$as_me:16723: \$? = $ac_status" >&5
16724 if (exit $ac_status) && test -s "$ac_outfile"; then
16725 # The compiler can only warn and ignore the option if not recognized
16726 # So say no if there are warnings other than the usual output.
16727 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16730 lt_cv_prog_compiler_rtti_exceptions=yes
16736 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16737 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16739 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16740 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16747 lt_prog_compiler_wl_GCJ=
16748 lt_prog_compiler_pic_GCJ=
16749 lt_prog_compiler_static_GCJ=
16751 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16752 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16754 if test "$GCC" = yes; then
16755 lt_prog_compiler_wl_GCJ='-Wl,'
16756 lt_prog_compiler_static_GCJ='-static'
16760 # All AIX code is PIC.
16761 if test "$host_cpu" = ia64; then
16762 # AIX 5 now supports IA64 processor
16763 lt_prog_compiler_static_GCJ='-Bstatic'
16768 # FIXME: we need at least 68020 code to build shared libraries, but
16769 # adding the `-m68020' flag to GCC prevents building anything better,
16771 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16774 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16775 # PIC is the default for these OSes.
16778 mingw* | cygwin* | pw32* | os2*)
16779 # This hack is so that the source file can tell whether it is being
16780 # built for inclusion in a dll (and should export symbols for example).
16781 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16782 # (--disable-auto-import) libraries
16786 darwin* | rhapsody*)
16787 # PIC is the default on this platform
16788 # Common symbols not allowed in MH_DYLIB files
16789 lt_prog_compiler_pic_GCJ='-fno-common'
16793 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16794 # Instead, we relocate shared libraries at runtime.
16798 # Just because we use GCC doesn't mean we suddenly get shared libraries
16799 # on systems that don't support them.
16800 lt_prog_compiler_can_build_shared_GCJ=no
16805 if test -d /usr/nec; then
16806 lt_prog_compiler_pic_GCJ=-Kconform_pic
16811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16812 # not for PA HP-UX.
16818 lt_prog_compiler_pic_GCJ='-fPIC'
16824 lt_prog_compiler_pic_GCJ='-fPIC'
16828 # PORTME Check for flag to pass linker flags through the system compiler.
16831 lt_prog_compiler_wl_GCJ='-Wl,'
16832 if test "$host_cpu" = ia64; then
16833 # AIX 5 now supports IA64 processor
16834 lt_prog_compiler_static_GCJ='-Bstatic'
16836 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16840 # PIC is the default on this platform
16841 # Common symbols not allowed in MH_DYLIB files
16842 case $cc_basename in
16844 lt_prog_compiler_pic_GCJ='-qnocommon'
16845 lt_prog_compiler_wl_GCJ='-Wl,'
16850 mingw* | cygwin* | pw32* | os2*)
16851 # This hack is so that the source file can tell whether it is being
16852 # built for inclusion in a dll (and should export symbols for example).
16856 hpux9* | hpux10* | hpux11*)
16857 lt_prog_compiler_wl_GCJ='-Wl,'
16858 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16859 # not for PA HP-UX.
16865 lt_prog_compiler_pic_GCJ='+Z'
16868 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16869 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16872 irix5* | irix6* | nonstopux*)
16873 lt_prog_compiler_wl_GCJ='-Wl,'
16874 # PIC (with -KPIC) is the default.
16875 lt_prog_compiler_static_GCJ='-non_shared'
16879 lt_prog_compiler_pic_GCJ='-KPIC'
16880 lt_prog_compiler_static_GCJ='-Bstatic'
16883 linux* | k*bsd*-gnu)
16884 case $cc_basename in
16886 lt_prog_compiler_wl_GCJ='-Wl,'
16887 lt_prog_compiler_pic_GCJ='-KPIC'
16888 lt_prog_compiler_static_GCJ='-static'
16890 pgcc* | pgf77* | pgf90* | pgf95*)
16891 # Portland Group compilers (*not* the Pentium gcc compiler,
16892 # which looks to be a dead project)
16893 lt_prog_compiler_wl_GCJ='-Wl,'
16894 lt_prog_compiler_pic_GCJ='-fpic'
16895 lt_prog_compiler_static_GCJ='-Bstatic'
16898 lt_prog_compiler_wl_GCJ='-Wl,'
16899 # All Alpha code is PIC.
16900 lt_prog_compiler_static_GCJ='-non_shared'
16903 case `$CC -V 2>&1 | sed 5q` in
16906 lt_prog_compiler_pic_GCJ='-KPIC'
16907 lt_prog_compiler_static_GCJ='-Bstatic'
16908 lt_prog_compiler_wl_GCJ='-Wl,'
16911 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16912 lt_prog_compiler_pic_GCJ='-KPIC'
16913 lt_prog_compiler_static_GCJ='-Bstatic'
16914 lt_prog_compiler_wl_GCJ=''
16921 osf3* | osf4* | osf5*)
16922 lt_prog_compiler_wl_GCJ='-Wl,'
16923 # All OSF/1 code is PIC.
16924 lt_prog_compiler_static_GCJ='-non_shared'
16928 lt_prog_compiler_static_GCJ='-non_shared'
16932 lt_prog_compiler_pic_GCJ='-KPIC'
16933 lt_prog_compiler_static_GCJ='-Bstatic'
16934 case $cc_basename in
16935 f77* | f90* | f95*)
16936 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16938 lt_prog_compiler_wl_GCJ='-Wl,';;
16943 lt_prog_compiler_wl_GCJ='-Qoption ld '
16944 lt_prog_compiler_pic_GCJ='-PIC'
16945 lt_prog_compiler_static_GCJ='-Bstatic'
16948 sysv4 | sysv4.2uw2* | sysv4.3*)
16949 lt_prog_compiler_wl_GCJ='-Wl,'
16950 lt_prog_compiler_pic_GCJ='-KPIC'
16951 lt_prog_compiler_static_GCJ='-Bstatic'
16955 if test -d /usr/nec ;then
16956 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16957 lt_prog_compiler_static_GCJ='-Bstatic'
16961 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16962 lt_prog_compiler_wl_GCJ='-Wl,'
16963 lt_prog_compiler_pic_GCJ='-KPIC'
16964 lt_prog_compiler_static_GCJ='-Bstatic'
16968 lt_prog_compiler_wl_GCJ='-Wl,'
16969 lt_prog_compiler_can_build_shared_GCJ=no
16973 lt_prog_compiler_pic_GCJ='-pic'
16974 lt_prog_compiler_static_GCJ='-Bstatic'
16978 lt_prog_compiler_can_build_shared_GCJ=no
16983 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16984 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16987 # Check to make sure the PIC flag actually works.
16989 if test -n "$lt_prog_compiler_pic_GCJ"; then
16991 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16992 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16993 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 lt_cv_prog_compiler_pic_works_GCJ=no
16997 ac_outfile=conftest.$ac_objext
16998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16999 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17000 # Insert the option either (1) after the last *FLAGS variable, or
17001 # (2) before a word containing "conftest.", or (3) at the end.
17002 # Note that $ac_compile itself does not contain backslashes and begins
17003 # with a dollar sign (not a hyphen), so the echo should work correctly.
17004 # The option is referenced via a variable to avoid confusing sed.
17005 lt_compile=`echo "$ac_compile" | $SED \
17006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17008 -e 's:$: $lt_compiler_flag:'`
17009 (eval echo "\"\$as_me:17009: $lt_compile\"" >&5)
17010 (eval "$lt_compile" 2>conftest.err)
17012 cat conftest.err >&5
17013 echo "$as_me:17013: \$? = $ac_status" >&5
17014 if (exit $ac_status) && test -s "$ac_outfile"; then
17015 # The compiler can only warn and ignore the option if not recognized
17016 # So say no if there are warnings other than the usual output.
17017 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17020 lt_cv_prog_compiler_pic_works_GCJ=yes
17026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17027 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17029 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17030 case $lt_prog_compiler_pic_GCJ in
17032 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17035 lt_prog_compiler_pic_GCJ=
17036 lt_prog_compiler_can_build_shared_GCJ=no
17041 # For platforms which do not support PIC, -DPIC is meaningless:
17043 lt_prog_compiler_pic_GCJ=
17046 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17051 # Check to make sure the static flag actually works.
17053 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17054 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17055 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17056 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 lt_cv_prog_compiler_static_works_GCJ=no
17060 save_LDFLAGS="$LDFLAGS"
17061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17064 # The linker can only warn and ignore the option if not recognized
17065 # So say no if there are warnings
17066 if test -s conftest.err; then
17067 # Append any errors to the config.log.
17068 cat conftest.err 1>&5
17069 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17071 if diff conftest.exp conftest.er2 >/dev/null; then
17072 lt_cv_prog_compiler_static_works_GCJ=yes
17075 lt_cv_prog_compiler_static_works_GCJ=yes
17079 LDFLAGS="$save_LDFLAGS"
17082 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17083 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17085 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17088 lt_prog_compiler_static_GCJ=
17092 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17093 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17094 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 lt_cv_prog_compiler_c_o_GCJ=no
17098 $rm -r conftest 2>/dev/null
17102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17104 lt_compiler_flag="-o out/conftest2.$ac_objext"
17105 # Insert the option either (1) after the last *FLAGS variable, or
17106 # (2) before a word containing "conftest.", or (3) at the end.
17107 # Note that $ac_compile itself does not contain backslashes and begins
17108 # with a dollar sign (not a hyphen), so the echo should work correctly.
17109 lt_compile=`echo "$ac_compile" | $SED \
17110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17112 -e 's:$: $lt_compiler_flag:'`
17113 (eval echo "\"\$as_me:17113: $lt_compile\"" >&5)
17114 (eval "$lt_compile" 2>out/conftest.err)
17116 cat out/conftest.err >&5
17117 echo "$as_me:17117: \$? = $ac_status" >&5
17118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17120 # The compiler can only warn and ignore the option if not recognized
17121 # So say no if there are warnings
17122 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17125 lt_cv_prog_compiler_c_o_GCJ=yes
17130 # SGI C++ compiler will create directory out/ii_files/ for
17131 # template instantiation
17132 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17133 $rm out/* && rmdir out
17139 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17143 hard_links="nottested"
17144 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17145 # do not overwrite the value of need_locks provided by the user
17146 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17152 ln conftest.a conftest.b 2>&5 || hard_links=no
17153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17154 { echo "$as_me:$LINENO: result: $hard_links" >&5
17155 echo "${ECHO_T}$hard_links" >&6; }
17156 if test "$hard_links" = no; then
17157 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17165 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17169 allow_undefined_flag_GCJ=
17170 enable_shared_with_static_runtimes_GCJ=no
17172 archive_expsym_cmds_GCJ=
17173 old_archive_From_new_cmds_GCJ=
17174 old_archive_from_expsyms_cmds_GCJ=
17175 export_dynamic_flag_spec_GCJ=
17176 whole_archive_flag_spec_GCJ=
17177 thread_safe_flag_spec_GCJ=
17178 hardcode_libdir_flag_spec_GCJ=
17179 hardcode_libdir_flag_spec_ld_GCJ=
17180 hardcode_libdir_separator_GCJ=
17181 hardcode_direct_GCJ=no
17182 hardcode_minus_L_GCJ=no
17183 hardcode_shlibpath_var_GCJ=unsupported
17184 link_all_deplibs_GCJ=unknown
17185 hardcode_automatic_GCJ=no
17187 module_expsym_cmds_GCJ=
17188 always_export_symbols_GCJ=no
17189 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17190 # include_expsyms should be a list of space-separated symbols to be *always*
17191 # included in the symbol list
17192 include_expsyms_GCJ=
17193 # exclude_expsyms can be an extended regexp of symbols to exclude
17194 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17195 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17196 # as well as any symbol that contains `d'.
17197 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17198 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17199 # platforms (ab)use it in PIC code, but their linkers get confused if
17200 # the symbol is explicitly referenced. Since portable code cannot
17201 # rely on this symbol name, it's probably fine to never include it in
17202 # preloaded symbol tables.
17203 # Exclude shared library initialization/finalization symbols.
17204 extract_expsyms_cmds=
17205 # Just being paranoid about ensuring that cc_basename is set.
17206 for cc_temp in $compiler""; do
17208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17217 cygwin* | mingw* | pw32*)
17218 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17219 # When not using gcc, we currently assume that we are using
17220 # Microsoft Visual C++.
17221 if test "$GCC" != yes; then
17226 # we just hope/assume this is gcc and not c89 (= MSVC++)
17235 if test "$with_gnu_ld" = yes; then
17236 # If archive_cmds runs LD, not CC, wlarc should be empty
17239 # Set some defaults for GNU ld with shared library support. These
17240 # are reset later if shared libraries are not supported. Putting them
17241 # here allows them to be overridden if necessary.
17242 runpath_var=LD_RUN_PATH
17243 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17244 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17245 # ancient GNU ld didn't support --whole-archive et. al.
17246 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17247 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17249 whole_archive_flag_spec_GCJ=
17251 supports_anon_versioning=no
17252 case `$LD -v 2>/dev/null` in
17253 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17254 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17255 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17256 *\ 2.11.*) ;; # other 2.11 versions
17257 *) supports_anon_versioning=yes ;;
17260 # See if GNU ld supports shared libraries.
17263 # On AIX/PPC, the GNU linker is very broken
17264 if test "$host_cpu" != ia64; then
17268 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17269 *** to be unable to reliably create shared libraries on AIX.
17270 *** Therefore, libtool is disabling shared libraries support. If you
17271 *** really care for shared libraries, you may want to modify your PATH
17272 *** so that a non-GNU linker is found, and then restart.
17279 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)'
17280 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17281 hardcode_minus_L_GCJ=yes
17283 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17284 # that the semantics of dynamic libraries on AmigaOS, at least up
17285 # to version 4, is to share data among multiple programs linked
17286 # with the same dynamic library. Since this doesn't match the
17287 # behavior of shared libraries on other platforms, we can't use
17293 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17294 allow_undefined_flag_GCJ=unsupported
17295 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17296 # support --undefined. This deserves some investigation. FIXME
17297 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17303 cygwin* | mingw* | pw32*)
17304 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17305 # as there is no search path for DLLs.
17306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17307 allow_undefined_flag_GCJ=unsupported
17308 always_export_symbols_GCJ=no
17309 enable_shared_with_static_runtimes_GCJ=yes
17310 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17312 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17313 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17314 # If the export-symbols file already is a .def file (1st line
17315 # is EXPORTS), use it as is; otherwise, prepend...
17316 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17317 cp $export_symbols $output_objdir/$soname.def;
17319 echo EXPORTS > $output_objdir/$soname.def;
17320 cat $export_symbols >> $output_objdir/$soname.def;
17322 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17329 hardcode_direct_GCJ=no
17330 hardcode_shlibpath_var_GCJ=no
17331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17332 export_dynamic_flag_spec_GCJ='${wl}-E'
17333 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17334 # Instead, shared libraries are loaded at an image base (0x10000000 by
17335 # default) and relocated if they conflict, which is a slow very memory
17336 # consuming and fragmenting process. To avoid this, we pick a random,
17337 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17338 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17339 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'
17340 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'
17343 gnu* | linux* | k*bsd*-gnu)
17344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17346 case $cc_basename,$host_cpu in
17347 pgcc*) # Portland Group C compiler
17348 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'
17349 tmp_addflag=' $pic_flag'
17351 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17352 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'
17353 tmp_addflag=' $pic_flag -Mnomain' ;;
17354 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17355 tmp_addflag=' -i_dynamic' ;;
17356 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17357 tmp_addflag=' -i_dynamic -nofor_main' ;;
17358 ifc* | ifort*) # Intel Fortran compiler
17359 tmp_addflag=' -nofor_main' ;;
17361 case `$CC -V 2>&1 | sed 5q` in
17362 *Sun\ C*) # Sun C 5.9
17363 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'
17364 tmp_sharedflag='-G' ;;
17365 *Sun\ F*) # Sun Fortran 8.3
17366 tmp_sharedflag='-G' ;;
17368 tmp_sharedflag='-shared' ;;
17370 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17372 if test $supports_anon_versioning = yes; then
17373 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17375 $echo "local: *; };" >> $output_objdir/$libname.ver~
17376 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17378 link_all_deplibs_GCJ=no
17384 netbsd* | netbsdelf*-gnu)
17385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17386 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17389 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17390 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17395 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17400 *** create shared libraries on Solaris systems. Therefore, libtool
17401 *** is disabling shared libraries support. We urge you to upgrade GNU
17402 *** binutils to release 2.9.1 or newer. Another option is to modify
17403 *** your PATH or compiler configuration so that the native linker is
17404 *** used, and then restart.
17407 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17408 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17409 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17416 case `$LD -v 2>&1` in
17417 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17421 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17422 *** reliably create shared libraries on SCO systems. Therefore, libtool
17423 *** is disabling shared libraries support. We urge you to upgrade GNU
17424 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17425 *** your PATH or compiler configuration so that the native linker is
17426 *** used, and then restart.
17431 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17432 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17433 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17434 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17443 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_direct_GCJ=yes
17446 hardcode_shlibpath_var_GCJ=no
17450 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17451 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17452 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17459 if test "$ld_shlibs_GCJ" = no; then
17461 hardcode_libdir_flag_spec_GCJ=
17462 export_dynamic_flag_spec_GCJ=
17463 whole_archive_flag_spec_GCJ=
17466 # PORTME fill in a description of your system's linker (not GNU ld)
17469 allow_undefined_flag_GCJ=unsupported
17470 always_export_symbols_GCJ=yes
17471 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'
17472 # Note: this linker hardcodes the directories in LIBPATH if there
17473 # are no directories specified by -L.
17474 hardcode_minus_L_GCJ=yes
17475 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17476 # Neither direct hardcoding nor static linking is supported with a
17478 hardcode_direct_GCJ=unsupported
17483 if test "$host_cpu" = ia64; then
17484 # On IA64, the linker does run time linking by default, so we don't
17485 # have to do anything special.
17486 aix_use_runtimelinking=no
17487 exp_sym_flag='-Bexport'
17490 # If we're using GNU nm, then we don't want the "-C" option.
17491 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17492 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17493 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'
17495 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'
17497 aix_use_runtimelinking=no
17499 # Test if we are trying to use run time linking or normal
17500 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17501 # need to do runtime linking.
17502 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17503 for ld_flag in $LDFLAGS; do
17504 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17505 aix_use_runtimelinking=yes
17512 exp_sym_flag='-bexport'
17513 no_entry_flag='-bnoentry'
17516 # When large executables or shared objects are built, AIX ld can
17517 # have problems creating the table of contents. If linking a library
17518 # or program results in "error TOC overflow" add -mminimal-toc to
17519 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17520 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17522 archive_cmds_GCJ=''
17523 hardcode_direct_GCJ=yes
17524 hardcode_libdir_separator_GCJ=':'
17525 link_all_deplibs_GCJ=yes
17527 if test "$GCC" = yes; then
17528 case $host_os in aix4.[012]|aix4.[012].*)
17529 # We only want to do this on AIX 4.2 and lower, the check
17530 # below for broken collect2 doesn't work under 4.3+
17531 collect2name=`${CC} -print-prog-name=collect2`
17532 if test -f "$collect2name" && \
17533 strings "$collect2name" | grep resolve_lib_name >/dev/null
17535 # We have reworked collect2
17538 # We have old collect2
17539 hardcode_direct_GCJ=unsupported
17540 # It fails to find uninstalled libraries when the uninstalled
17541 # path is not listed in the libpath. Setting hardcode_minus_L
17542 # to unsupported forces relinking
17543 hardcode_minus_L_GCJ=yes
17544 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17545 hardcode_libdir_separator_GCJ=
17549 shared_flag='-shared'
17550 if test "$aix_use_runtimelinking" = yes; then
17551 shared_flag="$shared_flag "'${wl}-G'
17555 if test "$host_cpu" = ia64; then
17556 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17557 # chokes on -Wl,-G. The following line is correct:
17560 if test "$aix_use_runtimelinking" = yes; then
17561 shared_flag='${wl}-G'
17563 shared_flag='${wl}-bM:SRE'
17568 # It seems that -bexpall does not export symbols beginning with
17569 # underscore (_), so it is better to generate a list of symbols to export.
17570 always_export_symbols_GCJ=yes
17571 if test "$aix_use_runtimelinking" = yes; then
17572 # Warning - without using the other runtime loading flags (-brtl),
17573 # -berok will link without error, but may produce a broken library.
17574 allow_undefined_flag_GCJ='-berok'
17575 # Determine the default libpath from the value encoded in an empty executable.
17576 cat >conftest.$ac_ext <<_ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_link") 2>conftest.er1
17600 grep -v '^ *+' conftest.er1 >conftest.err
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } && {
17605 test -z "$ac_c_werror_flag" ||
17606 test ! -s conftest.err
17607 } && test -s conftest$ac_exeext &&
17608 $as_test_x conftest$ac_exeext; then
17610 lt_aix_libpath_sed='
17611 /Import File Strings/,/^$/ {
17617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17618 # Check for a 64-bit object if we didn't find anything.
17619 if test -z "$aix_libpath"; then
17620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17630 conftest$ac_exeext conftest.$ac_ext
17631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17633 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17634 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"
17636 if test "$host_cpu" = ia64; then
17637 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17638 allow_undefined_flag_GCJ="-z nodefs"
17639 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"
17641 # Determine the default libpath from the value encoded in an empty executable.
17642 cat >conftest.$ac_ext <<_ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17657 rm -f conftest.$ac_objext conftest$ac_exeext
17658 if { (ac_try="$ac_link"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_link") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } && {
17671 test -z "$ac_c_werror_flag" ||
17672 test ! -s conftest.err
17673 } && test -s conftest$ac_exeext &&
17674 $as_test_x conftest$ac_exeext; then
17676 lt_aix_libpath_sed='
17677 /Import File Strings/,/^$/ {
17683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17684 # Check for a 64-bit object if we didn't find anything.
17685 if test -z "$aix_libpath"; then
17686 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17696 conftest$ac_exeext conftest.$ac_ext
17697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17699 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17700 # Warning - without using the other run time loading flags,
17701 # -berok will link without error, but may produce a broken library.
17702 no_undefined_flag_GCJ=' ${wl}-bernotok'
17703 allow_undefined_flag_GCJ=' ${wl}-berok'
17704 # Exported symbols can be pulled into shared objects from archives
17705 whole_archive_flag_spec_GCJ='$convenience'
17706 archive_cmds_need_lc_GCJ=yes
17707 # This is similar to how AIX traditionally builds its shared libraries.
17708 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'
17714 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)'
17715 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17716 hardcode_minus_L_GCJ=yes
17717 # see comment about different semantics on the GNU ld section
17722 export_dynamic_flag_spec_GCJ=-rdynamic
17725 cygwin* | mingw* | pw32*)
17726 # When not using gcc, we currently assume that we are using
17727 # Microsoft Visual C++.
17728 # hardcode_libdir_flag_spec is actually meaningless, as there is
17729 # no search path for DLLs.
17730 hardcode_libdir_flag_spec_GCJ=' '
17731 allow_undefined_flag_GCJ=unsupported
17732 # Tell ltmain to make .lib files, not .a files.
17734 # Tell ltmain to make .dll files, not .so files.
17736 # FIXME: Setting linknames here is a bad hack.
17737 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17738 # The linker will automatically build a .lib file if we build a DLL.
17739 old_archive_From_new_cmds_GCJ='true'
17740 # FIXME: Should let the user specify the lib program.
17741 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17742 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17743 enable_shared_with_static_runtimes_GCJ=yes
17746 darwin* | rhapsody*)
17748 rhapsody* | darwin1.[012])
17749 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17752 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17753 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17755 case ${MACOSX_DEPLOYMENT_TARGET} in
17757 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17760 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17766 archive_cmds_need_lc_GCJ=no
17767 hardcode_direct_GCJ=no
17768 hardcode_automatic_GCJ=yes
17769 hardcode_shlibpath_var_GCJ=unsupported
17770 whole_archive_flag_spec_GCJ=''
17771 link_all_deplibs_GCJ=yes
17772 if test "$GCC" = yes ; then
17773 output_verbose_link_cmd='echo'
17774 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}"
17775 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17776 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}"
17777 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}"
17779 case $cc_basename in
17781 output_verbose_link_cmd='echo'
17782 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17783 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17784 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17785 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}'
17786 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}'
17796 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17798 hardcode_shlibpath_var_GCJ=no
17805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17806 # support. Future versions do this automatically, but an explicit c++rt0.o
17807 # does not break anything, and helps significantly (at the cost of a little
17810 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17811 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17812 hardcode_direct_GCJ=yes
17813 hardcode_shlibpath_var_GCJ=no
17816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17818 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17819 hardcode_direct_GCJ=yes
17820 hardcode_minus_L_GCJ=yes
17821 hardcode_shlibpath_var_GCJ=no
17824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17825 freebsd* | dragonfly*)
17826 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17827 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17828 hardcode_direct_GCJ=yes
17829 hardcode_shlibpath_var_GCJ=no
17833 if test "$GCC" = yes; then
17834 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'
17836 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'
17838 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17839 hardcode_libdir_separator_GCJ=:
17840 hardcode_direct_GCJ=yes
17842 # hardcode_minus_L: Not really in the search PATH,
17843 # but as the default location of the library.
17844 hardcode_minus_L_GCJ=yes
17845 export_dynamic_flag_spec_GCJ='${wl}-E'
17849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17850 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17852 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17854 if test "$with_gnu_ld" = no; then
17855 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17856 hardcode_libdir_separator_GCJ=:
17858 hardcode_direct_GCJ=yes
17859 export_dynamic_flag_spec_GCJ='${wl}-E'
17861 # hardcode_minus_L: Not really in the search PATH,
17862 # but as the default location of the library.
17863 hardcode_minus_L_GCJ=yes
17868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17871 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17874 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17877 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17883 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17889 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17893 if test "$with_gnu_ld" = no; then
17894 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17895 hardcode_libdir_separator_GCJ=:
17899 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17900 hardcode_direct_GCJ=no
17901 hardcode_shlibpath_var_GCJ=no
17904 hardcode_direct_GCJ=yes
17905 export_dynamic_flag_spec_GCJ='${wl}-E'
17907 # hardcode_minus_L: Not really in the search PATH,
17908 # but as the default location of the library.
17909 hardcode_minus_L_GCJ=yes
17915 irix5* | irix6* | nonstopux*)
17916 if test "$GCC" = yes; then
17917 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'
17919 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'
17920 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17922 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17923 hardcode_libdir_separator_GCJ=:
17924 link_all_deplibs_GCJ=yes
17927 netbsd* | netbsdelf*-gnu)
17928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17929 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17931 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17933 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17934 hardcode_direct_GCJ=yes
17935 hardcode_shlibpath_var_GCJ=no
17939 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17940 hardcode_direct_GCJ=yes
17941 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17942 hardcode_libdir_separator_GCJ=:
17943 hardcode_shlibpath_var_GCJ=no
17947 if test -f /usr/libexec/ld.so; then
17948 hardcode_direct_GCJ=yes
17949 hardcode_shlibpath_var_GCJ=no
17950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17951 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17952 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17954 export_dynamic_flag_spec_GCJ='${wl}-E'
17957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17958 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17959 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17962 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17973 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17974 hardcode_minus_L_GCJ=yes
17975 allow_undefined_flag_GCJ=unsupported
17976 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'
17977 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17981 if test "$GCC" = yes; then
17982 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17983 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'
17985 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17986 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'
17988 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17989 hardcode_libdir_separator_GCJ=:
17992 osf4* | osf5*) # as osf3* with the addition of -msym flag
17993 if test "$GCC" = yes; then
17994 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17995 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'
17996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17998 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17999 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'
18000 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~
18001 $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'
18003 # Both c and cxx compiler support -rpath directly
18004 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18006 hardcode_libdir_separator_GCJ=:
18010 no_undefined_flag_GCJ=' -z text'
18011 if test "$GCC" = yes; then
18013 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18014 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18015 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18018 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18019 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18022 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18023 hardcode_shlibpath_var_GCJ=no
18025 solaris2.[0-5] | solaris2.[0-5].*) ;;
18027 # The compiler driver will combine and reorder linker options,
18028 # but understands `-z linker_flag'. GCC discards it without `$wl',
18029 # but is careful enough not to reorder.
18030 # Supported since Solaris 2.6 (maybe 2.5.1?)
18031 if test "$GCC" = yes; then
18032 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18034 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18038 link_all_deplibs_GCJ=yes
18042 if test "x$host_vendor" = xsequent; then
18043 # Use $CC to link under sequent, because it throws in some extra .o
18044 # files that make .init and .fini sections work.
18045 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18047 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18049 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18050 hardcode_direct_GCJ=yes
18051 hardcode_minus_L_GCJ=yes
18052 hardcode_shlibpath_var_GCJ=no
18056 case $host_vendor in
18058 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059 hardcode_direct_GCJ=yes # is this really true???
18062 ## LD is ld it makes a PLAMLIB
18063 ## CC just makes a GrossModule.
18064 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18065 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18066 hardcode_direct_GCJ=no
18069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18073 runpath_var='LD_RUN_PATH'
18074 hardcode_shlibpath_var_GCJ=no
18078 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18079 hardcode_shlibpath_var_GCJ=no
18080 export_dynamic_flag_spec_GCJ='-Bexport'
18084 if test -d /usr/nec; then
18085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18086 hardcode_shlibpath_var_GCJ=no
18087 runpath_var=LD_RUN_PATH
18088 hardcode_runpath_var=yes
18093 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18094 no_undefined_flag_GCJ='${wl}-z,text'
18095 archive_cmds_need_lc_GCJ=no
18096 hardcode_shlibpath_var_GCJ=no
18097 runpath_var='LD_RUN_PATH'
18099 if test "$GCC" = yes; then
18100 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18101 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18103 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18108 sysv5* | sco3.2v5* | sco5v6*)
18109 # Note: We can NOT use -z defs as we might desire, because we do not
18110 # link with -lc, and that would cause any symbols used from libc to
18111 # always be unresolved, which means just about no library would
18112 # ever link correctly. If we're not using GNU ld we use -z text
18113 # though, which does catch some bad symbols but isn't as heavy-handed
18115 no_undefined_flag_GCJ='${wl}-z,text'
18116 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18117 archive_cmds_need_lc_GCJ=no
18118 hardcode_shlibpath_var_GCJ=no
18119 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18120 hardcode_libdir_separator_GCJ=':'
18121 link_all_deplibs_GCJ=yes
18122 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18123 runpath_var='LD_RUN_PATH'
18125 if test "$GCC" = yes; then
18126 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18127 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18136 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18137 hardcode_shlibpath_var_GCJ=no
18146 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18147 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18148 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18151 # Do we need to explicitly link libc?
18153 case "x$archive_cmds_need_lc_GCJ" in
18155 # Assume -lc should be added
18156 archive_cmds_need_lc_GCJ=yes
18158 if test "$enable_shared" = yes && test "$GCC" = yes; then
18159 case $archive_cmds_GCJ in
18161 # FIXME: we may have to deal with multi-command sequences.
18164 # Test whether the compiler implicitly links with -lc since on some
18165 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18166 # to ld, don't add -lc before -lgcc.
18167 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18168 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18173 (eval $ac_compile) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } 2>conftest.err; then
18179 libobjs=conftest.$ac_objext
18181 wl=$lt_prog_compiler_wl_GCJ
18182 pic_flag=$lt_prog_compiler_pic_GCJ
18188 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18189 allow_undefined_flag_GCJ=
18190 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18191 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }
18196 archive_cmds_need_lc_GCJ=no
18198 archive_cmds_need_lc_GCJ=yes
18200 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18202 cat conftest.err 1>&5
18205 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18206 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18213 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18214 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18215 library_names_spec=
18216 libname_spec='lib$name'
18220 postuninstall_cmds=
18224 shlibpath_overrides_runpath=unknown
18226 dynamic_linker="$host_os ld.so"
18227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18229 need_lib_prefix=unknown
18230 hardcode_into_libs=no
18232 # when you set need_version to no, make sure it does not cause -set_version
18233 # flags to be left without arguments
18234 need_version=unknown
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18240 shlibpath_var=LIBPATH
18242 # AIX 3 has no versioning support, so we append a major version to the name.
18243 soname_spec='${libname}${release}${shared_ext}$major'
18250 hardcode_into_libs=yes
18251 if test "$host_cpu" = ia64; then
18252 # AIX 5 supports IA64
18253 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18254 shlibpath_var=LD_LIBRARY_PATH
18256 # With GCC up to 2.95.x, collect2 would create an import file
18257 # for dependence libraries. The import file would start with
18258 # the line `#! .'. This would cause the generated library to
18259 # depend on `.', always an invalid library. This was fixed in
18260 # development snapshots of GCC prior to 3.0.
18262 aix4 | aix4.[01] | aix4.[01].*)
18263 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18265 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18268 can_build_shared=no
18272 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18273 # soname into executable. Probably we can add versioning support to
18274 # collect2, so additional links can be useful in future.
18275 if test "$aix_use_runtimelinking" = yes; then
18276 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18277 # instead of lib<name>.a to let people know that these are not
18278 # typical AIX shared libraries.
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18281 # We preserve .a as extension for shared libraries through AIX4.2
18282 # and later when we are not doing run time linking.
18283 library_names_spec='${libname}${release}.a $libname.a'
18284 soname_spec='${libname}${release}${shared_ext}$major'
18286 shlibpath_var=LIBPATH
18291 library_names_spec='$libname.ixlibrary $libname.a'
18292 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18293 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'
18297 library_names_spec='${libname}${shared_ext}'
18298 dynamic_linker="$host_os ld.so"
18299 shlibpath_var=LIBRARY_PATH
18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306 soname_spec='${libname}${release}${shared_ext}$major'
18307 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18310 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18311 # the default ld.so.conf also contains /usr/contrib/lib and
18312 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18313 # libtool to hard-code these into programs
18316 cygwin* | mingw* | pw32*)
18317 version_type=windows
18322 case $GCC,$host_os in
18323 yes,cygwin* | yes,mingw* | yes,pw32*)
18324 library_names_spec='$libname.dll.a'
18325 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18326 postinstall_cmds='base_file=`basename \${file}`~
18327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18328 dldir=$destdir/`dirname \$dlpath`~
18329 test -d \$dldir || mkdir -p \$dldir~
18330 $install_prog $dir/$dlname \$dldir/$dlname~
18331 chmod a+x \$dldir/$dlname'
18332 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18333 dlpath=$dir/\$dldll~
18335 shlibpath_overrides_runpath=yes
18339 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18340 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18341 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18344 # MinGW DLLs use traditional 'lib' prefix
18345 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18347 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18348 # It is most probably a Windows format PATH printed by
18349 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18350 # path with ; separators, and with drive letters. We can handle the
18351 # drive letters (cygwin fileutils understands them), so leave them,
18352 # especially as we might pass files found there to a mingw objdump,
18353 # which wouldn't understand a cygwinified path. Ahh.
18354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18360 # pw32 DLLs use 'pw' prefix rather than 'lib'
18361 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18367 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18370 dynamic_linker='Win32 ld.exe'
18371 # FIXME: first we should search . and the directory the executable is in
18375 darwin* | rhapsody*)
18376 dynamic_linker="$host_os dyld"
18377 version_type=darwin
18380 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18381 soname_spec='${libname}${release}${major}$shared_ext'
18382 shlibpath_overrides_runpath=yes
18383 shlibpath_var=DYLD_LIBRARY_PATH
18384 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 shlibpath_var=LD_LIBRARY_PATH
18402 freebsd* | dragonfly*)
18403 # DragonFly does not have aout. When/if they implement a new
18404 # versioning mechanism, adjust this.
18405 if test -x /usr/bin/objformat; then
18406 objformat=`/usr/bin/objformat`
18409 freebsd[123]*) objformat=aout ;;
18410 *) objformat=elf ;;
18413 version_type=freebsd-$objformat
18414 case $version_type in
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18425 shlibpath_var=LD_LIBRARY_PATH
18428 shlibpath_overrides_runpath=yes
18430 freebsd3.[01]* | freebsdelf3.[01]*)
18431 shlibpath_overrides_runpath=yes
18432 hardcode_into_libs=yes
18434 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18435 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18436 shlibpath_overrides_runpath=no
18437 hardcode_into_libs=yes
18439 *) # from 4.6 on, and DragonFly
18440 shlibpath_overrides_runpath=yes
18441 hardcode_into_libs=yes
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18451 soname_spec='${libname}${release}${shared_ext}$major'
18452 shlibpath_var=LD_LIBRARY_PATH
18453 hardcode_into_libs=yes
18456 hpux9* | hpux10* | hpux11*)
18457 # Give a soname corresponding to the major version so that dld.sl refuses to
18458 # link against other versions.
18465 hardcode_into_libs=yes
18466 dynamic_linker="$host_os dld.so"
18467 shlibpath_var=LD_LIBRARY_PATH
18468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470 soname_spec='${libname}${release}${shared_ext}$major'
18471 if test "X$HPUX_IA64_MODE" = X32; then
18472 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18474 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18480 hardcode_into_libs=yes
18481 dynamic_linker="$host_os dld.sl"
18482 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485 soname_spec='${libname}${release}${shared_ext}$major'
18486 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18491 dynamic_linker="$host_os dld.sl"
18492 shlibpath_var=SHLIB_PATH
18493 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495 soname_spec='${libname}${release}${shared_ext}$major'
18498 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18499 postinstall_cmds='chmod 555 $lib'
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18507 soname_spec='${libname}${release}${shared_ext}$major'
18508 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18509 shlibpath_var=LD_LIBRARY_PATH
18510 shlibpath_overrides_runpath=no
18511 hardcode_into_libs=yes
18514 irix5* | irix6* | nonstopux*)
18516 nonstopux*) version_type=nonstopux ;;
18518 if test "$lt_cv_prog_gnu_ld" = yes; then
18526 soname_spec='${libname}${release}${shared_ext}$major'
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18529 irix5* | nonstopux*)
18530 libsuff= shlibsuff=
18533 case $LD in # libtool.m4 will add one of these switches to LD
18534 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18535 libsuff= shlibsuff= libmagic=32-bit;;
18536 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18537 libsuff=32 shlibsuff=N32 libmagic=N32;;
18538 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18539 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18540 *) libsuff= shlibsuff= libmagic=never-match;;
18544 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18545 shlibpath_overrides_runpath=no
18546 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18547 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18548 hardcode_into_libs=yes
18551 # No shared lib support for Linux oldld, aout, or coff.
18552 linux*oldld* | linux*aout* | linux*coff*)
18556 # This must be Linux ELF.
18557 linux* | k*bsd*-gnu)
18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18562 soname_spec='${libname}${release}${shared_ext}$major'
18563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18564 shlibpath_var=LD_LIBRARY_PATH
18565 shlibpath_overrides_runpath=no
18566 # This implies no fast_install, which is unacceptable.
18567 # Some rework will be needed to allow for fast_install
18568 # before this can be enabled.
18569 hardcode_into_libs=yes
18571 # Append ld.so.conf contents to the search path
18572 if test -f /etc/ld.so.conf; then
18573 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' ' '`
18574 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18577 # We used to test for /lib/ld.so.1 and disable shared libraries on
18578 # powerpc, because MkLinux only supported shared libraries with the
18579 # GNU dynamic linker. Since this was broken with cross compilers,
18580 # most powerpc-linux boxes support dynamic linking these days and
18581 # people can always --disable-shared, the test was removed, and we
18582 # assume the GNU/Linux dynamic linker is in use.
18583 dynamic_linker='GNU/Linux ld.so'
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 shlibpath_overrides_runpath=no
18594 hardcode_into_libs=yes
18595 dynamic_linker='NetBSD ld.elf_so'
18602 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18605 dynamic_linker='NetBSD (a.out) ld.so'
18607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18608 soname_spec='${libname}${release}${shared_ext}$major'
18609 dynamic_linker='NetBSD ld.elf_so'
18611 shlibpath_var=LD_LIBRARY_PATH
18612 shlibpath_overrides_runpath=yes
18613 hardcode_into_libs=yes
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619 shlibpath_var=LD_LIBRARY_PATH
18620 shlibpath_overrides_runpath=yes
18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628 soname_spec='${libname}${release}${shared_ext}$major'
18629 shlibpath_var=LD_LIBRARY_PATH
18630 shlibpath_overrides_runpath=yes
18635 sys_lib_dlsearch_path_spec="/usr/lib"
18637 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18639 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18640 *) need_version=no ;;
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18644 shlibpath_var=LD_LIBRARY_PATH
18645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18647 openbsd2.[89] | openbsd2.[89].*)
18648 shlibpath_overrides_runpath=no
18651 shlibpath_overrides_runpath=yes
18655 shlibpath_overrides_runpath=yes
18660 libname_spec='$name'
18663 library_names_spec='$libname${shared_ext} $libname.a'
18664 dynamic_linker='OS/2 ld.exe'
18665 shlibpath_var=LIBPATH
18668 osf3* | osf4* | osf5*)
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674 shlibpath_var=LD_LIBRARY_PATH
18675 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18676 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688 soname_spec='${libname}${release}${shared_ext}$major'
18689 shlibpath_var=LD_LIBRARY_PATH
18690 shlibpath_overrides_runpath=yes
18691 hardcode_into_libs=yes
18692 # ldd complains unless libraries are executable
18693 postinstall_cmds='chmod +x $lib'
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18699 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18700 shlibpath_var=LD_LIBRARY_PATH
18701 shlibpath_overrides_runpath=yes
18702 if test "$with_gnu_ld" = yes; then
18710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18711 soname_spec='${libname}${release}${shared_ext}$major'
18712 shlibpath_var=LD_LIBRARY_PATH
18713 case $host_vendor in
18715 shlibpath_overrides_runpath=no
18717 export_dynamic_flag_spec='${wl}-Blargedynsym'
18718 runpath_var=LD_RUN_PATH
18726 shlibpath_overrides_runpath=no
18727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18733 if test -d /usr/nec ;then
18735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18736 soname_spec='$libname${shared_ext}.$major'
18737 shlibpath_var=LD_LIBRARY_PATH
18741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18742 version_type=freebsd-elf
18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18746 soname_spec='${libname}${release}${shared_ext}$major'
18747 shlibpath_var=LD_LIBRARY_PATH
18748 hardcode_into_libs=yes
18749 if test "$with_gnu_ld" = yes; then
18750 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18751 shlibpath_overrides_runpath=no
18753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18754 shlibpath_overrides_runpath=yes
18757 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18761 sys_lib_dlsearch_path_spec='/usr/lib'
18766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18767 soname_spec='${libname}${release}${shared_ext}$major'
18768 shlibpath_var=LD_LIBRARY_PATH
18775 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18776 echo "${ECHO_T}$dynamic_linker" >&6; }
18777 test "$dynamic_linker" = no && can_build_shared=no
18779 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18785 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18786 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18792 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18794 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18795 if test "$GCC" = yes; then
18796 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18799 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18800 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18801 hardcode_action_GCJ=
18802 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18803 test -n "$runpath_var_GCJ" || \
18804 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18806 # We can hardcode non-existant directories.
18807 if test "$hardcode_direct_GCJ" != no &&
18808 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18809 # have to relink, otherwise we might link with an installed library
18810 # when we should be linking with a yet-to-be-installed one
18811 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18812 test "$hardcode_minus_L_GCJ" != no; then
18813 # Linking always hardcodes the temporary library directory.
18814 hardcode_action_GCJ=relink
18816 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18817 hardcode_action_GCJ=immediate
18820 # We cannot hardcode anything, or else we can only hardcode existing
18822 hardcode_action_GCJ=unsupported
18824 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18825 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18827 if test "$hardcode_action_GCJ" = relink; then
18828 # Fast installation is not supported
18829 enable_fast_install=no
18830 elif test "$shlibpath_overrides_runpath" = yes ||
18831 test "$enable_shared" = no; then
18832 # Fast installation is not necessary
18833 enable_fast_install=needless
18837 # The else clause should only fire when bootstrapping the
18838 # libtool distribution, otherwise you forgot to ship ltmain.sh
18839 # with your package, and you will get complaints that there are
18840 # no rules to generate ltmain.sh.
18841 if test -f "$ltmain"; then
18842 # See if we are running on zsh, and set the options which allow our commands through
18843 # without removal of \ escapes.
18844 if test -n "${ZSH_VERSION+set}" ; then
18845 setopt NO_GLOB_SUBST
18847 # Now quote all the things that may contain metacharacters while being
18848 # careful not to overquote the AC_SUBSTed values. We take copies of the
18849 # variables and quote the copies for generation of the libtool script.
18850 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18852 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18853 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18854 deplibs_check_method reload_flag reload_cmds need_locks \
18855 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18856 lt_cv_sys_global_symbol_to_c_name_address \
18857 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18858 old_postinstall_cmds old_postuninstall_cmds \
18862 lt_prog_compiler_wl_GCJ \
18863 lt_prog_compiler_pic_GCJ \
18864 lt_prog_compiler_static_GCJ \
18865 lt_prog_compiler_no_builtin_flag_GCJ \
18866 export_dynamic_flag_spec_GCJ \
18867 thread_safe_flag_spec_GCJ \
18868 whole_archive_flag_spec_GCJ \
18869 enable_shared_with_static_runtimes_GCJ \
18870 old_archive_cmds_GCJ \
18871 old_archive_from_new_cmds_GCJ \
18872 predep_objects_GCJ \
18873 postdep_objects_GCJ \
18876 compiler_lib_search_path_GCJ \
18877 compiler_lib_search_dirs_GCJ \
18879 archive_expsym_cmds_GCJ \
18880 postinstall_cmds_GCJ \
18881 postuninstall_cmds_GCJ \
18882 old_archive_from_expsyms_cmds_GCJ \
18883 allow_undefined_flag_GCJ \
18884 no_undefined_flag_GCJ \
18885 export_symbols_cmds_GCJ \
18886 hardcode_libdir_flag_spec_GCJ \
18887 hardcode_libdir_flag_spec_ld_GCJ \
18888 hardcode_libdir_separator_GCJ \
18889 hardcode_automatic_GCJ \
18891 module_expsym_cmds_GCJ \
18892 lt_cv_prog_compiler_c_o_GCJ \
18893 fix_srcfile_path_GCJ \
18894 exclude_expsyms_GCJ \
18895 include_expsyms_GCJ; do
18898 old_archive_cmds_GCJ | \
18899 old_archive_from_new_cmds_GCJ | \
18900 archive_cmds_GCJ | \
18901 archive_expsym_cmds_GCJ | \
18902 module_cmds_GCJ | \
18903 module_expsym_cmds_GCJ | \
18904 old_archive_from_expsyms_cmds_GCJ | \
18905 export_symbols_cmds_GCJ | \
18906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18907 postinstall_cmds | postuninstall_cmds | \
18908 old_postinstall_cmds | old_postuninstall_cmds | \
18909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18910 # Double-quote double-evaled strings.
18911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18920 *'\$0 --fallback-echo"')
18921 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18927 cat <<__EOF__ >> "$cfgfile"
18928 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18932 # Shell to use when invoking shell scripts.
18935 # Whether or not to build shared libraries.
18936 build_libtool_libs=$enable_shared
18938 # Whether or not to build static libraries.
18939 build_old_libs=$enable_static
18941 # Whether or not to add -lc for building shared libraries.
18942 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18944 # Whether or not to disallow shared libs when runtime libs are static
18945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18947 # Whether or not to optimize for fast installation.
18948 fast_install=$enable_fast_install
18951 host_alias=$host_alias
18955 # The build system.
18956 build_alias=$build_alias
18960 # An echo program that does not interpret backslashes.
18965 AR_FLAGS=$lt_AR_FLAGS
18970 # LTCC compiler flags.
18971 LTCFLAGS=$lt_LTCFLAGS
18973 # A language-specific compiler.
18974 CC=$lt_compiler_GCJ
18976 # Is the compiler the GNU C compiler?
18982 # The linker used to build libraries.
18985 # Whether we need hard or soft links.
18988 # A BSD-compatible nm program.
18991 # A symbol stripping program
18994 # Used to examine libraries when file_magic_cmd begins "file"
18995 MAGIC_CMD=$MAGIC_CMD
18997 # Used on cygwin: DLL creation program.
19000 # Used on cygwin: object dumper.
19003 # Used on cygwin: assembler.
19006 # The name of the directory that contains temporary libtool files.
19009 # How to create reloadable object files.
19010 reload_flag=$lt_reload_flag
19011 reload_cmds=$lt_reload_cmds
19013 # How to pass a linker flag through the compiler.
19014 wl=$lt_lt_prog_compiler_wl_GCJ
19016 # Object file suffix (normally "o").
19017 objext="$ac_objext"
19019 # Old archive suffix (normally "a").
19022 # Shared library suffix (normally ".so").
19023 shrext_cmds='$shrext_cmds'
19025 # Executable file suffix (normally "").
19028 # Additional compiler flags for building library objects.
19029 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19032 # What is the maximum length of a command?
19033 max_cmd_len=$lt_cv_sys_max_cmd_len
19035 # Does compiler simultaneously support -c and -o options?
19036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19038 # Must we lock files when doing compilation?
19039 need_locks=$lt_need_locks
19041 # Do we need the lib prefix for modules?
19042 need_lib_prefix=$need_lib_prefix
19044 # Do we need a version for libraries?
19045 need_version=$need_version
19047 # Whether dlopen is supported.
19048 dlopen_support=$enable_dlopen
19050 # Whether dlopen of programs is supported.
19051 dlopen_self=$enable_dlopen_self
19053 # Whether dlopen of statically linked programs is supported.
19054 dlopen_self_static=$enable_dlopen_self_static
19056 # Compiler flag to prevent dynamic linking.
19057 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19059 # Compiler flag to turn off builtin functions.
19060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19062 # Compiler flag to allow reflexive dlopens.
19063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19065 # Compiler flag to generate shared objects directly from archives.
19066 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19068 # Compiler flag to generate thread-safe objects.
19069 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19071 # Library versioning type.
19072 version_type=$version_type
19074 # Format of library name prefix.
19075 libname_spec=$lt_libname_spec
19077 # List of archive names. First name is the real one, the rest are links.
19078 # The last name is the one that the linker finds with -lNAME.
19079 library_names_spec=$lt_library_names_spec
19081 # The coded name of the library, if different from the real name.
19082 soname_spec=$lt_soname_spec
19084 # Commands used to build and install an old-style archive.
19086 old_archive_cmds=$lt_old_archive_cmds_GCJ
19087 old_postinstall_cmds=$lt_old_postinstall_cmds
19088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19090 # Create an old-style archive from a shared archive.
19091 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19093 # Create a temporary old-style archive to link instead of a shared archive.
19094 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19096 # Commands used to build and install a shared archive.
19097 archive_cmds=$lt_archive_cmds_GCJ
19098 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19099 postinstall_cmds=$lt_postinstall_cmds
19100 postuninstall_cmds=$lt_postuninstall_cmds
19102 # Commands used to build a loadable module (assumed same as above if empty)
19103 module_cmds=$lt_module_cmds_GCJ
19104 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19106 # Commands to strip libraries.
19107 old_striplib=$lt_old_striplib
19108 striplib=$lt_striplib
19110 # Dependencies to place before the objects being linked to create a
19112 predep_objects=$lt_predep_objects_GCJ
19114 # Dependencies to place after the objects being linked to create a
19116 postdep_objects=$lt_postdep_objects_GCJ
19118 # Dependencies to place before the objects being linked to create a
19120 predeps=$lt_predeps_GCJ
19122 # Dependencies to place after the objects being linked to create a
19124 postdeps=$lt_postdeps_GCJ
19126 # The directories searched by this compiler when creating a shared
19128 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19130 # The library search path used internally by the compiler when linking
19131 # a shared library.
19132 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19134 # Method to check whether dependent libraries are shared objects.
19135 deplibs_check_method=$lt_deplibs_check_method
19137 # Command to use when deplibs_check_method == file_magic.
19138 file_magic_cmd=$lt_file_magic_cmd
19140 # Flag that allows shared libraries with undefined symbols to be built.
19141 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19143 # Flag that forces no undefined symbols.
19144 no_undefined_flag=$lt_no_undefined_flag_GCJ
19146 # Commands used to finish a libtool library installation in a directory.
19147 finish_cmds=$lt_finish_cmds
19149 # Same as above, but a single script fragment to be evaled but not shown.
19150 finish_eval=$lt_finish_eval
19152 # Take the output of nm and produce a listing of raw symbols and C names.
19153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19155 # Transform the output of nm in a proper C declaration
19156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19158 # Transform the output of nm in a C name address pair
19159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19161 # This is the shared library runtime path variable.
19162 runpath_var=$runpath_var
19164 # This is the shared library path variable.
19165 shlibpath_var=$shlibpath_var
19167 # Is shlibpath searched before the hard-coded library search path?
19168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19170 # How to hardcode a shared library path into an executable.
19171 hardcode_action=$hardcode_action_GCJ
19173 # Whether we should hardcode library paths into libraries.
19174 hardcode_into_libs=$hardcode_into_libs
19176 # Flag to hardcode \$libdir into a binary during linking.
19177 # This must work even if \$libdir does not exist.
19178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19180 # If ld is used when linking, flag to hardcode \$libdir into
19181 # a binary during linking. This must work even if \$libdir does
19183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19185 # Whether we need a single -rpath flag with a separated argument.
19186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19189 # resulting binary.
19190 hardcode_direct=$hardcode_direct_GCJ
19192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19193 # resulting binary.
19194 hardcode_minus_L=$hardcode_minus_L_GCJ
19196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19197 # the resulting binary.
19198 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19200 # Set to yes if building a shared library automatically hardcodes DIR into the library
19201 # and all subsequent libraries and executables linked against it.
19202 hardcode_automatic=$hardcode_automatic_GCJ
19204 # Variables whose values should be saved in libtool wrapper scripts and
19205 # restored at relink time.
19206 variables_saved_for_relink="$variables_saved_for_relink"
19208 # Whether libtool must link a program against all its dependency libraries.
19209 link_all_deplibs=$link_all_deplibs_GCJ
19211 # Compile-time system search path for libraries
19212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19214 # Run-time system search path for libraries
19215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19217 # Fix the shell variable \$srcfile for the compiler.
19218 fix_srcfile_path=$lt_fix_srcfile_path
19220 # Set to yes if exported symbols are required.
19221 always_export_symbols=$always_export_symbols_GCJ
19223 # The commands to list exported symbols.
19224 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19226 # The commands to extract the exported symbol list from a shared archive.
19227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19229 # Symbols that should not be listed in the preloaded symbols.
19230 exclude_expsyms=$lt_exclude_expsyms_GCJ
19232 # Symbols that must always be exported.
19233 include_expsyms=$lt_include_expsyms_GCJ
19235 # ### END LIBTOOL TAG CONFIG: $tagname
19241 # If there is no Makefile yet, we rely on a make rule to execute
19242 # `config.status --recheck' to rerun these tests and create the
19243 # libtool script then.
19244 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19245 if test -f "$ltmain_in"; then
19246 test -f Makefile && make "$ltmain"
19252 ac_cpp='$CPP $CPPFLAGS'
19253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267 # Source file extension for RC test sources.
19270 # Object file extension for compiled RC test sources.
19274 # Code to be used in simple compile tests
19275 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19277 # Code to be used in simple link tests
19278 lt_simple_link_test_code="$lt_simple_compile_test_code"
19280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19282 # If no C compiler was specified, use CC.
19285 # If no C compiler flags were specified, use CFLAGS.
19286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19288 # Allow CC to be a program name with arguments.
19292 # save warnings/boilerplate of simple test code
19293 ac_outfile=conftest.$ac_objext
19294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19296 _lt_compiler_boilerplate=`cat conftest.err`
19299 ac_outfile=conftest.$ac_objext
19300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19302 _lt_linker_boilerplate=`cat conftest.err`
19306 # Allow CC to be a program name with arguments.
19311 for cc_temp in $compiler""; do
19313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19319 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19321 lt_cv_prog_compiler_c_o_RC=yes
19323 # The else clause should only fire when bootstrapping the
19324 # libtool distribution, otherwise you forgot to ship ltmain.sh
19325 # with your package, and you will get complaints that there are
19326 # no rules to generate ltmain.sh.
19327 if test -f "$ltmain"; then
19328 # See if we are running on zsh, and set the options which allow our commands through
19329 # without removal of \ escapes.
19330 if test -n "${ZSH_VERSION+set}" ; then
19331 setopt NO_GLOB_SUBST
19333 # Now quote all the things that may contain metacharacters while being
19334 # careful not to overquote the AC_SUBSTed values. We take copies of the
19335 # variables and quote the copies for generation of the libtool script.
19336 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19338 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19339 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19340 deplibs_check_method reload_flag reload_cmds need_locks \
19341 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19342 lt_cv_sys_global_symbol_to_c_name_address \
19343 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19344 old_postinstall_cmds old_postuninstall_cmds \
19348 lt_prog_compiler_wl_RC \
19349 lt_prog_compiler_pic_RC \
19350 lt_prog_compiler_static_RC \
19351 lt_prog_compiler_no_builtin_flag_RC \
19352 export_dynamic_flag_spec_RC \
19353 thread_safe_flag_spec_RC \
19354 whole_archive_flag_spec_RC \
19355 enable_shared_with_static_runtimes_RC \
19356 old_archive_cmds_RC \
19357 old_archive_from_new_cmds_RC \
19358 predep_objects_RC \
19359 postdep_objects_RC \
19362 compiler_lib_search_path_RC \
19363 compiler_lib_search_dirs_RC \
19365 archive_expsym_cmds_RC \
19366 postinstall_cmds_RC \
19367 postuninstall_cmds_RC \
19368 old_archive_from_expsyms_cmds_RC \
19369 allow_undefined_flag_RC \
19370 no_undefined_flag_RC \
19371 export_symbols_cmds_RC \
19372 hardcode_libdir_flag_spec_RC \
19373 hardcode_libdir_flag_spec_ld_RC \
19374 hardcode_libdir_separator_RC \
19375 hardcode_automatic_RC \
19377 module_expsym_cmds_RC \
19378 lt_cv_prog_compiler_c_o_RC \
19379 fix_srcfile_path_RC \
19380 exclude_expsyms_RC \
19381 include_expsyms_RC; do
19384 old_archive_cmds_RC | \
19385 old_archive_from_new_cmds_RC | \
19386 archive_cmds_RC | \
19387 archive_expsym_cmds_RC | \
19389 module_expsym_cmds_RC | \
19390 old_archive_from_expsyms_cmds_RC | \
19391 export_symbols_cmds_RC | \
19392 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19393 postinstall_cmds | postuninstall_cmds | \
19394 old_postinstall_cmds | old_postuninstall_cmds | \
19395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19396 # Double-quote double-evaled strings.
19397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19406 *'\$0 --fallback-echo"')
19407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19413 cat <<__EOF__ >> "$cfgfile"
19414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19418 # Shell to use when invoking shell scripts.
19421 # Whether or not to build shared libraries.
19422 build_libtool_libs=$enable_shared
19424 # Whether or not to build static libraries.
19425 build_old_libs=$enable_static
19427 # Whether or not to add -lc for building shared libraries.
19428 build_libtool_need_lc=$archive_cmds_need_lc_RC
19430 # Whether or not to disallow shared libs when runtime libs are static
19431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19433 # Whether or not to optimize for fast installation.
19434 fast_install=$enable_fast_install
19437 host_alias=$host_alias
19441 # The build system.
19442 build_alias=$build_alias
19446 # An echo program that does not interpret backslashes.
19451 AR_FLAGS=$lt_AR_FLAGS
19456 # LTCC compiler flags.
19457 LTCFLAGS=$lt_LTCFLAGS
19459 # A language-specific compiler.
19462 # Is the compiler the GNU C compiler?
19468 # The linker used to build libraries.
19471 # Whether we need hard or soft links.
19474 # A BSD-compatible nm program.
19477 # A symbol stripping program
19480 # Used to examine libraries when file_magic_cmd begins "file"
19481 MAGIC_CMD=$MAGIC_CMD
19483 # Used on cygwin: DLL creation program.
19486 # Used on cygwin: object dumper.
19489 # Used on cygwin: assembler.
19492 # The name of the directory that contains temporary libtool files.
19495 # How to create reloadable object files.
19496 reload_flag=$lt_reload_flag
19497 reload_cmds=$lt_reload_cmds
19499 # How to pass a linker flag through the compiler.
19500 wl=$lt_lt_prog_compiler_wl_RC
19502 # Object file suffix (normally "o").
19503 objext="$ac_objext"
19505 # Old archive suffix (normally "a").
19508 # Shared library suffix (normally ".so").
19509 shrext_cmds='$shrext_cmds'
19511 # Executable file suffix (normally "").
19514 # Additional compiler flags for building library objects.
19515 pic_flag=$lt_lt_prog_compiler_pic_RC
19518 # What is the maximum length of a command?
19519 max_cmd_len=$lt_cv_sys_max_cmd_len
19521 # Does compiler simultaneously support -c and -o options?
19522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19524 # Must we lock files when doing compilation?
19525 need_locks=$lt_need_locks
19527 # Do we need the lib prefix for modules?
19528 need_lib_prefix=$need_lib_prefix
19530 # Do we need a version for libraries?
19531 need_version=$need_version
19533 # Whether dlopen is supported.
19534 dlopen_support=$enable_dlopen
19536 # Whether dlopen of programs is supported.
19537 dlopen_self=$enable_dlopen_self
19539 # Whether dlopen of statically linked programs is supported.
19540 dlopen_self_static=$enable_dlopen_self_static
19542 # Compiler flag to prevent dynamic linking.
19543 link_static_flag=$lt_lt_prog_compiler_static_RC
19545 # Compiler flag to turn off builtin functions.
19546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19548 # Compiler flag to allow reflexive dlopens.
19549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19551 # Compiler flag to generate shared objects directly from archives.
19552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19554 # Compiler flag to generate thread-safe objects.
19555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19557 # Library versioning type.
19558 version_type=$version_type
19560 # Format of library name prefix.
19561 libname_spec=$lt_libname_spec
19563 # List of archive names. First name is the real one, the rest are links.
19564 # The last name is the one that the linker finds with -lNAME.
19565 library_names_spec=$lt_library_names_spec
19567 # The coded name of the library, if different from the real name.
19568 soname_spec=$lt_soname_spec
19570 # Commands used to build and install an old-style archive.
19572 old_archive_cmds=$lt_old_archive_cmds_RC
19573 old_postinstall_cmds=$lt_old_postinstall_cmds
19574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19576 # Create an old-style archive from a shared archive.
19577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19579 # Create a temporary old-style archive to link instead of a shared archive.
19580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19582 # Commands used to build and install a shared archive.
19583 archive_cmds=$lt_archive_cmds_RC
19584 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19585 postinstall_cmds=$lt_postinstall_cmds
19586 postuninstall_cmds=$lt_postuninstall_cmds
19588 # Commands used to build a loadable module (assumed same as above if empty)
19589 module_cmds=$lt_module_cmds_RC
19590 module_expsym_cmds=$lt_module_expsym_cmds_RC
19592 # Commands to strip libraries.
19593 old_striplib=$lt_old_striplib
19594 striplib=$lt_striplib
19596 # Dependencies to place before the objects being linked to create a
19598 predep_objects=$lt_predep_objects_RC
19600 # Dependencies to place after the objects being linked to create a
19602 postdep_objects=$lt_postdep_objects_RC
19604 # Dependencies to place before the objects being linked to create a
19606 predeps=$lt_predeps_RC
19608 # Dependencies to place after the objects being linked to create a
19610 postdeps=$lt_postdeps_RC
19612 # The directories searched by this compiler when creating a shared
19614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19616 # The library search path used internally by the compiler when linking
19617 # a shared library.
19618 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19620 # Method to check whether dependent libraries are shared objects.
19621 deplibs_check_method=$lt_deplibs_check_method
19623 # Command to use when deplibs_check_method == file_magic.
19624 file_magic_cmd=$lt_file_magic_cmd
19626 # Flag that allows shared libraries with undefined symbols to be built.
19627 allow_undefined_flag=$lt_allow_undefined_flag_RC
19629 # Flag that forces no undefined symbols.
19630 no_undefined_flag=$lt_no_undefined_flag_RC
19632 # Commands used to finish a libtool library installation in a directory.
19633 finish_cmds=$lt_finish_cmds
19635 # Same as above, but a single script fragment to be evaled but not shown.
19636 finish_eval=$lt_finish_eval
19638 # Take the output of nm and produce a listing of raw symbols and C names.
19639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19641 # Transform the output of nm in a proper C declaration
19642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19644 # Transform the output of nm in a C name address pair
19645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19647 # This is the shared library runtime path variable.
19648 runpath_var=$runpath_var
19650 # This is the shared library path variable.
19651 shlibpath_var=$shlibpath_var
19653 # Is shlibpath searched before the hard-coded library search path?
19654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19656 # How to hardcode a shared library path into an executable.
19657 hardcode_action=$hardcode_action_RC
19659 # Whether we should hardcode library paths into libraries.
19660 hardcode_into_libs=$hardcode_into_libs
19662 # Flag to hardcode \$libdir into a binary during linking.
19663 # This must work even if \$libdir does not exist.
19664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19666 # If ld is used when linking, flag to hardcode \$libdir into
19667 # a binary during linking. This must work even if \$libdir does
19669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19671 # Whether we need a single -rpath flag with a separated argument.
19672 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19674 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19675 # resulting binary.
19676 hardcode_direct=$hardcode_direct_RC
19678 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19679 # resulting binary.
19680 hardcode_minus_L=$hardcode_minus_L_RC
19682 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19683 # the resulting binary.
19684 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19686 # Set to yes if building a shared library automatically hardcodes DIR into the library
19687 # and all subsequent libraries and executables linked against it.
19688 hardcode_automatic=$hardcode_automatic_RC
19690 # Variables whose values should be saved in libtool wrapper scripts and
19691 # restored at relink time.
19692 variables_saved_for_relink="$variables_saved_for_relink"
19694 # Whether libtool must link a program against all its dependency libraries.
19695 link_all_deplibs=$link_all_deplibs_RC
19697 # Compile-time system search path for libraries
19698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19700 # Run-time system search path for libraries
19701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19703 # Fix the shell variable \$srcfile for the compiler.
19704 fix_srcfile_path=$lt_fix_srcfile_path
19706 # Set to yes if exported symbols are required.
19707 always_export_symbols=$always_export_symbols_RC
19709 # The commands to list exported symbols.
19710 export_symbols_cmds=$lt_export_symbols_cmds_RC
19712 # The commands to extract the exported symbol list from a shared archive.
19713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19715 # Symbols that should not be listed in the preloaded symbols.
19716 exclude_expsyms=$lt_exclude_expsyms_RC
19718 # Symbols that must always be exported.
19719 include_expsyms=$lt_include_expsyms_RC
19721 # ### END LIBTOOL TAG CONFIG: $tagname
19727 # If there is no Makefile yet, we rely on a make rule to execute
19728 # `config.status --recheck' to rerun these tests and create the
19729 # libtool script then.
19730 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19731 if test -f "$ltmain_in"; then
19732 test -f Makefile && make "$ltmain"
19738 ac_cpp='$CPP $CPPFLAGS'
19739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19748 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19749 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19750 { (exit 1); exit 1; }; }
19754 # Append the new tag name to the list of available tags.
19755 if test -n "$tagname" ; then
19756 available_tags="$available_tags $tagname"
19762 # Now substitute the updated list of available tags.
19763 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19764 mv "${ofile}T" "$ofile"
19768 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19769 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19770 { (exit 1); exit 1; }; }
19776 # This can be used to rebuild libtool when needed
19777 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19779 # Always use our own libtool.
19780 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19782 # Prevent multiple expansion
19805 # Check whether some low-level functions/files are available
19806 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19808 if test "${ac_cv_header_stdc+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 #include <stdlib.h>
19818 #include <stdarg.h>
19819 #include <string.h>
19830 rm -f conftest.$ac_objext
19831 if { (ac_try="$ac_compile"
19832 case "(($ac_try" in
19833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834 *) ac_try_echo=$ac_try;;
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19839 grep -v '^ *+' conftest.er1 >conftest.err
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest.$ac_objext; then
19847 ac_cv_header_stdc=yes
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 ac_cv_header_stdc=no
19855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 if test $ac_cv_header_stdc = yes; then
19858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 #include <string.h>
19868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19869 $EGREP "memchr" >/dev/null 2>&1; then
19872 ac_cv_header_stdc=no
19878 if test $ac_cv_header_stdc = yes; then
19879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <stdlib.h>
19889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19890 $EGREP "free" >/dev/null 2>&1; then
19893 ac_cv_header_stdc=no
19899 if test $ac_cv_header_stdc = yes; then
19900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19901 if test "$cross_compiling" = yes; then
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 #include <stdlib.h>
19912 #if ((' ' & 0x0FF) == 0x020)
19913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19916 # define ISLOWER(c) \
19917 (('a' <= (c) && (c) <= 'i') \
19918 || ('j' <= (c) && (c) <= 'r') \
19919 || ('s' <= (c) && (c) <= 'z'))
19920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19928 for (i = 0; i < 256; i++)
19929 if (XOR (islower (i), ISLOWER (i))
19930 || toupper (i) != TOUPPER (i))
19935 rm -f conftest$ac_exeext
19936 if { (ac_try="$ac_link"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_link") 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; }; then
19957 echo "$as_me: program exited with status $ac_status" >&5
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ( exit $ac_status )
19962 ac_cv_header_stdc=no
19964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19970 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19971 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19972 if test $ac_cv_header_stdc = yes; then
19974 cat >>confdefs.h <<\_ACEOF
19975 #define STDC_HEADERS 1
19981 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19982 if test "${ac_cv_header_stdint_h+set}" = set; then
19983 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19984 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19985 if test "${ac_cv_header_stdint_h+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19989 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19991 # Is the header compilable?
19992 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
19993 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
19994 cat >conftest.$ac_ext <<_ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 $ac_includes_default
20001 #include <stdint.h>
20003 rm -f conftest.$ac_objext
20004 if { (ac_try="$ac_compile"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_compile") 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } && {
20017 test -z "$ac_c_werror_flag" ||
20018 test ! -s conftest.err
20019 } && test -s conftest.$ac_objext; then
20020 ac_header_compiler=yes
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_header_compiler=no
20028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20030 echo "${ECHO_T}$ac_header_compiler" >&6; }
20032 # Is the header present?
20033 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20034 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 #include <stdint.h>
20043 if { (ac_try="$ac_cpp conftest.$ac_ext"
20044 case "(($ac_try" in
20045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046 *) ac_try_echo=$ac_try;;
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20051 grep -v '^ *+' conftest.er1 >conftest.err
20053 cat conftest.err >&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } >/dev/null && {
20056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20057 test ! -s conftest.err
20059 ac_header_preproc=yes
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_header_preproc=no
20067 rm -f conftest.err conftest.$ac_ext
20068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20069 echo "${ECHO_T}$ac_header_preproc" >&6; }
20071 # So? What about this header?
20072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20074 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20075 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20077 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20078 ac_header_preproc=yes
20081 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20082 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20084 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20086 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20088 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20090 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20092 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20094 ## ------------------------------------ ##
20095 ## Report this to opensource@google.com ##
20096 ## ------------------------------------ ##
20098 ) | sed "s/^/$as_me: WARNING: /" >&2
20101 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20102 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20103 if test "${ac_cv_header_stdint_h+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 ac_cv_header_stdint_h=$ac_header_preproc
20108 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20109 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20112 if test $ac_cv_header_stdint_h = yes; then
20113 ac_cv_have_stdint_h=1
20115 ac_cv_have_stdint_h=0
20119 if test "${ac_cv_header_sys_types_h+set}" = set; then
20120 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20121 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20122 if test "${ac_cv_header_sys_types_h+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20126 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20128 # Is the header compilable?
20129 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20130 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20131 cat >conftest.$ac_ext <<_ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20137 $ac_includes_default
20138 #include <sys/types.h>
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_compile") 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && {
20154 test -z "$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20156 } && test -s conftest.$ac_objext; then
20157 ac_header_compiler=yes
20159 echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20162 ac_header_compiler=no
20165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20167 echo "${ECHO_T}$ac_header_compiler" >&6; }
20169 # Is the header present?
20170 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20171 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 #include <sys/types.h>
20180 if { (ac_try="$ac_cpp conftest.$ac_ext"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } >/dev/null && {
20193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20196 ac_header_preproc=yes
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_header_preproc=no
20204 rm -f conftest.err conftest.$ac_ext
20205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20206 echo "${ECHO_T}$ac_header_preproc" >&6; }
20208 # So? What about this header?
20209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20211 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20212 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20214 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20215 ac_header_preproc=yes
20218 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20219 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20221 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20223 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20224 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20225 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20226 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20227 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20228 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20229 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20231 ## ------------------------------------ ##
20232 ## Report this to opensource@google.com ##
20233 ## ------------------------------------ ##
20235 ) | sed "s/^/$as_me: WARNING: /" >&2
20238 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20239 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20240 if test "${ac_cv_header_sys_types_h+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 ac_cv_header_sys_types_h=$ac_header_preproc
20245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20246 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20249 if test $ac_cv_header_sys_types_h = yes; then
20250 ac_cv_have_systypes_h=1
20252 ac_cv_have_systypes_h=0
20256 if test "${ac_cv_header_inttypes_h+set}" = set; then
20257 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20258 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20259 if test "${ac_cv_header_inttypes_h+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20263 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20265 # Is the header compilable?
20266 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20267 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 $ac_includes_default
20275 #include <inttypes.h>
20277 rm -f conftest.$ac_objext
20278 if { (ac_try="$ac_compile"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_compile") 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest.$ac_objext; then
20294 ac_header_compiler=yes
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_header_compiler=no
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20304 echo "${ECHO_T}$ac_header_compiler" >&6; }
20306 # Is the header present?
20307 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20308 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 #include <inttypes.h>
20317 if { (ac_try="$ac_cpp conftest.$ac_ext"
20318 case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20325 grep -v '^ *+' conftest.er1 >conftest.err
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } >/dev/null && {
20330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20331 test ! -s conftest.err
20333 ac_header_preproc=yes
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ac_header_preproc=no
20341 rm -f conftest.err conftest.$ac_ext
20342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20343 echo "${ECHO_T}$ac_header_preproc" >&6; }
20345 # So? What about this header?
20346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20348 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20349 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20350 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20351 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20352 ac_header_preproc=yes
20355 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20356 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20358 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20359 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20360 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20361 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20362 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20364 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20366 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20368 ## ------------------------------------ ##
20369 ## Report this to opensource@google.com ##
20370 ## ------------------------------------ ##
20372 ) | sed "s/^/$as_me: WARNING: /" >&2
20375 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20376 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20377 if test "${ac_cv_header_inttypes_h+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 ac_cv_header_inttypes_h=$ac_header_preproc
20382 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20383 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20386 if test $ac_cv_header_inttypes_h = yes; then
20387 ac_cv_have_inttypes_h=1
20389 ac_cv_have_inttypes_h=0
20394 for ac_header in syscall.h
20396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 ac_res=`eval echo '${'$as_ac_Header'}'`
20404 { echo "$as_me:$LINENO: result: $ac_res" >&5
20405 echo "${ECHO_T}$ac_res" >&6; }
20407 # Is the header compilable?
20408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20417 #include <$ac_header>
20419 rm -f conftest.$ac_objext
20420 if { (ac_try="$ac_compile"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_compile") 2>conftest.er1
20428 grep -v '^ *+' conftest.er1 >conftest.err
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } && {
20433 test -z "$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 } && test -s conftest.$ac_objext; then
20436 ac_header_compiler=yes
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 ac_header_compiler=no
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20446 echo "${ECHO_T}$ac_header_compiler" >&6; }
20448 # Is the header present?
20449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 #include <$ac_header>
20459 if { (ac_try="$ac_cpp conftest.$ac_ext"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } >/dev/null && {
20472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20475 ac_header_preproc=yes
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_header_preproc=no
20483 rm -f conftest.err conftest.$ac_ext
20484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20485 echo "${ECHO_T}$ac_header_preproc" >&6; }
20487 # So? What about this header?
20488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20494 ac_header_preproc=yes
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20510 ## ------------------------------------ ##
20511 ## Report this to opensource@google.com ##
20512 ## ------------------------------------ ##
20514 ) | sed "s/^/$as_me: WARNING: /" >&2
20517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 eval "$as_ac_Header=\$ac_header_preproc"
20524 ac_res=`eval echo '${'$as_ac_Header'}'`
20525 { echo "$as_me:$LINENO: result: $ac_res" >&5
20526 echo "${ECHO_T}$ac_res" >&6; }
20529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20539 for ac_header in sys/syscall.h
20541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 ac_res=`eval echo '${'$as_ac_Header'}'`
20549 { echo "$as_me:$LINENO: result: $ac_res" >&5
20550 echo "${ECHO_T}$ac_res" >&6; }
20552 # Is the header compilable?
20553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20555 cat >conftest.$ac_ext <<_ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 $ac_includes_default
20562 #include <$ac_header>
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_compile") 2>conftest.er1
20573 grep -v '^ *+' conftest.er1 >conftest.err
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } && {
20578 test -z "$ac_c_werror_flag" ||
20579 test ! -s conftest.err
20580 } && test -s conftest.$ac_objext; then
20581 ac_header_compiler=yes
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 ac_header_compiler=no
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20591 echo "${ECHO_T}$ac_header_compiler" >&6; }
20593 # Is the header present?
20594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20596 cat >conftest.$ac_ext <<_ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 #include <$ac_header>
20604 if { (ac_try="$ac_cpp conftest.$ac_ext"
20605 case "(($ac_try" in
20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20612 grep -v '^ *+' conftest.er1 >conftest.err
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } >/dev/null && {
20617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20620 ac_header_preproc=yes
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_header_preproc=no
20628 rm -f conftest.err conftest.$ac_ext
20629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20630 echo "${ECHO_T}$ac_header_preproc" >&6; }
20632 # So? What about this header?
20633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20639 ac_header_preproc=yes
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20655 ## ------------------------------------ ##
20656 ## Report this to opensource@google.com ##
20657 ## ------------------------------------ ##
20659 ) | sed "s/^/$as_me: WARNING: /" >&2
20662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 eval "$as_ac_Header=\$ac_header_preproc"
20669 ac_res=`eval echo '${'$as_ac_Header'}'`
20670 { echo "$as_me:$LINENO: result: $ac_res" >&5
20671 echo "${ECHO_T}$ac_res" >&6; }
20674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20675 cat >>confdefs.h <<_ACEOF
20676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20683 # For backtrace with glibc.
20685 for ac_header in execinfo.h
20687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 ac_res=`eval echo '${'$as_ac_Header'}'`
20695 { echo "$as_me:$LINENO: result: $ac_res" >&5
20696 echo "${ECHO_T}$ac_res" >&6; }
20698 # Is the header compilable?
20699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 $ac_includes_default
20708 #include <$ac_header>
20710 rm -f conftest.$ac_objext
20711 if { (ac_try="$ac_compile"
20712 case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_compile") 2>conftest.er1
20719 grep -v '^ *+' conftest.er1 >conftest.err
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } && {
20724 test -z "$ac_c_werror_flag" ||
20725 test ! -s conftest.err
20726 } && test -s conftest.$ac_objext; then
20727 ac_header_compiler=yes
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 ac_header_compiler=no
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20737 echo "${ECHO_T}$ac_header_compiler" >&6; }
20739 # Is the header present?
20740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <$ac_header>
20750 if { (ac_try="$ac_cpp conftest.$ac_ext"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20758 grep -v '^ *+' conftest.er1 >conftest.err
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } >/dev/null && {
20763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20764 test ! -s conftest.err
20766 ac_header_preproc=yes
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 ac_header_preproc=no
20774 rm -f conftest.err conftest.$ac_ext
20775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20776 echo "${ECHO_T}$ac_header_preproc" >&6; }
20778 # So? What about this header?
20779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20785 ac_header_preproc=yes
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20801 ## ------------------------------------ ##
20802 ## Report this to opensource@google.com ##
20803 ## ------------------------------------ ##
20805 ) | sed "s/^/$as_me: WARNING: /" >&2
20808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 eval "$as_ac_Header=\$ac_header_preproc"
20815 ac_res=`eval echo '${'$as_ac_Header'}'`
20816 { echo "$as_me:$LINENO: result: $ac_res" >&5
20817 echo "${ECHO_T}$ac_res" >&6; }
20820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20829 # For backtrace with libunwind.
20831 for ac_header in libunwind.h
20833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 ac_res=`eval echo '${'$as_ac_Header'}'`
20841 { echo "$as_me:$LINENO: result: $ac_res" >&5
20842 echo "${ECHO_T}$ac_res" >&6; }
20844 # Is the header compilable?
20845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 $ac_includes_default
20854 #include <$ac_header>
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_compile") 2>conftest.er1
20865 grep -v '^ *+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && {
20870 test -z "$ac_c_werror_flag" ||
20871 test ! -s conftest.err
20872 } && test -s conftest.$ac_objext; then
20873 ac_header_compiler=yes
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 ac_header_compiler=no
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20883 echo "${ECHO_T}$ac_header_compiler" >&6; }
20885 # Is the header present?
20886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 #include <$ac_header>
20896 if { (ac_try="$ac_cpp conftest.$ac_ext"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20904 grep -v '^ *+' conftest.er1 >conftest.err
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } >/dev/null && {
20909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20910 test ! -s conftest.err
20912 ac_header_preproc=yes
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20917 ac_header_preproc=no
20920 rm -f conftest.err conftest.$ac_ext
20921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20922 echo "${ECHO_T}$ac_header_preproc" >&6; }
20924 # So? What about this header?
20925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20931 ac_header_preproc=yes
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20947 ## ------------------------------------ ##
20948 ## Report this to opensource@google.com ##
20949 ## ------------------------------------ ##
20951 ) | sed "s/^/$as_me: WARNING: /" >&2
20954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 eval "$as_ac_Header=\$ac_header_preproc"
20961 ac_res=`eval echo '${'$as_ac_Header'}'`
20962 { echo "$as_me:$LINENO: result: $ac_res" >&5
20963 echo "${ECHO_T}$ac_res" >&6; }
20966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20967 cat >>confdefs.h <<_ACEOF
20968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20970 ac_cv_have_libunwind_h=1
20972 ac_cv_have_libunwind_h=0
20978 for ac_header in ucontext.h
20980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20987 ac_res=`eval echo '${'$as_ac_Header'}'`
20988 { echo "$as_me:$LINENO: result: $ac_res" >&5
20989 echo "${ECHO_T}$ac_res" >&6; }
20991 # Is the header compilable?
20992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20994 cat >conftest.$ac_ext <<_ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 $ac_includes_default
21001 #include <$ac_header>
21003 rm -f conftest.$ac_objext
21004 if { (ac_try="$ac_compile"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_compile") 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest.$ac_objext; then
21020 ac_header_compiler=yes
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_header_compiler=no
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21030 echo "${ECHO_T}$ac_header_compiler" >&6; }
21032 # Is the header present?
21033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <$ac_header>
21043 if { (ac_try="$ac_cpp conftest.$ac_ext"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21051 grep -v '^ *+' conftest.er1 >conftest.err
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } >/dev/null && {
21056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21059 ac_header_preproc=yes
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ac_header_preproc=no
21067 rm -f conftest.err conftest.$ac_ext
21068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21069 echo "${ECHO_T}$ac_header_preproc" >&6; }
21071 # So? What about this header?
21072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21078 ac_header_preproc=yes
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21094 ## ------------------------------------ ##
21095 ## Report this to opensource@google.com ##
21096 ## ------------------------------------ ##
21098 ) | sed "s/^/$as_me: WARNING: /" >&2
21101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 eval "$as_ac_Header=\$ac_header_preproc"
21108 ac_res=`eval echo '${'$as_ac_Header'}'`
21109 { echo "$as_me:$LINENO: result: $ac_res" >&5
21110 echo "${ECHO_T}$ac_res" >&6; }
21113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21114 cat >>confdefs.h <<_ACEOF
21115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21123 { echo "$as_me:$LINENO: checking for void *" >&5
21124 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21125 if test "${ac_cv_type_void_p+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21128 cat >conftest.$ac_ext <<_ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 $ac_includes_default
21135 typedef void * ac__type_new_;
21139 if ((ac__type_new_ *) 0)
21141 if (sizeof (ac__type_new_))
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_compile") 2>conftest.er1
21156 grep -v '^ *+' conftest.er1 >conftest.err
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest.$ac_objext; then
21164 ac_cv_type_void_p=yes
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ac_cv_type_void_p=no
21172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21175 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21177 # The cast to long int works around a bug in the HP C Compiler
21178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21180 # This bug is HP SR number 8606223364.
21181 { echo "$as_me:$LINENO: checking size of void *" >&5
21182 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21183 if test "${ac_cv_sizeof_void_p+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 if test "$cross_compiling" = yes; then
21187 # Depending upon the size, compute the lo and hi bounds.
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 $ac_includes_default
21195 typedef void * ac__type_sizeof_;
21199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_compile") 2>conftest.er1
21215 grep -v '^ *+' conftest.er1 >conftest.err
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && {
21220 test -z "$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21222 } && test -s conftest.$ac_objext; then
21225 cat >conftest.$ac_ext <<_ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 $ac_includes_default
21232 typedef void * ac__type_sizeof_;
21236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250 (eval "$ac_compile") 2>conftest.er1
21252 grep -v '^ *+' conftest.er1 >conftest.err
21254 cat conftest.err >&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); } && {
21257 test -z "$ac_c_werror_flag" ||
21258 test ! -s conftest.err
21259 } && test -s conftest.$ac_objext; then
21260 ac_hi=$ac_mid; break
21262 echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265 ac_lo=`expr $ac_mid + 1`
21266 if test $ac_lo -le $ac_mid; then
21270 ac_mid=`expr 2 '*' $ac_mid + 1`
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276 echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 typedef void * ac__type_sizeof_;
21290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21297 rm -f conftest.$ac_objext
21298 if { (ac_try="$ac_compile"
21299 case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_compile") 2>conftest.er1
21306 grep -v '^ *+' conftest.er1 >conftest.err
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } && {
21311 test -z "$ac_c_werror_flag" ||
21312 test ! -s conftest.err
21313 } && test -s conftest.$ac_objext; then
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 $ac_includes_default
21323 typedef void * ac__type_sizeof_;
21327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_compile") 2>conftest.er1
21343 grep -v '^ *+' conftest.er1 >conftest.err
21345 cat conftest.err >&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } && {
21348 test -z "$ac_c_werror_flag" ||
21349 test ! -s conftest.err
21350 } && test -s conftest.$ac_objext; then
21351 ac_lo=$ac_mid; break
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 ac_hi=`expr '(' $ac_mid ')' - 1`
21357 if test $ac_mid -le $ac_hi; then
21361 ac_mid=`expr 2 '*' $ac_mid`
21364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21377 # Binary search between lo and hi bounds.
21378 while test "x$ac_lo" != "x$ac_hi"; do
21379 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 $ac_includes_default
21387 typedef void * ac__type_sizeof_;
21391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21398 rm -f conftest.$ac_objext
21399 if { (ac_try="$ac_compile"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_compile") 2>conftest.er1
21407 grep -v '^ *+' conftest.er1 >conftest.err
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && {
21412 test -z "$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 } && test -s conftest.$ac_objext; then
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ac_lo=`expr '(' $ac_mid ')' + 1`
21423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21427 '') if test "$ac_cv_type_void_p" = yes; then
21428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21429 See \`config.log' for more details." >&5
21430 echo "$as_me: error: cannot compute sizeof (void *)
21431 See \`config.log' for more details." >&2;}
21432 { (exit 77); exit 77; }; }
21434 ac_cv_sizeof_void_p=0
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 typedef void * ac__type_sizeof_;
21446 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21447 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21449 #include <stdlib.h>
21454 FILE *f = fopen ("conftest.val", "w");
21457 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21459 long int i = longval ();
21460 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21462 fprintf (f, "%ld\n", i);
21466 unsigned long int i = ulongval ();
21467 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21469 fprintf (f, "%lu\n", i);
21471 return ferror (f) || fclose (f) != 0;
21477 rm -f conftest$ac_exeext
21478 if { (ac_try="$ac_link"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_link") 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
21497 ac_cv_sizeof_void_p=`cat conftest.val`
21499 echo "$as_me: program exited with status $ac_status" >&5
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 ( exit $ac_status )
21504 if test "$ac_cv_type_void_p" = yes; then
21505 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21506 See \`config.log' for more details." >&5
21507 echo "$as_me: error: cannot compute sizeof (void *)
21508 See \`config.log' for more details." >&2;}
21509 { (exit 77); exit 77; }; }
21511 ac_cv_sizeof_void_p=0
21514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21518 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21519 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21523 cat >>confdefs.h <<_ACEOF
21524 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21529 # These are the types I need. We look for them in either stdint.h,
21530 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
21531 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21532 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21533 if test "${ac_cv_type_uint16_t+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 typedef uint16_t ac__type_new_;
21547 if ((ac__type_new_ *) 0)
21549 if (sizeof (ac__type_new_))
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21564 grep -v '^ *+' conftest.er1 >conftest.err
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest.$ac_objext; then
21572 ac_cv_type_uint16_t=yes
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ac_cv_type_uint16_t=no
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21583 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
21584 if test $ac_cv_type_uint16_t = yes; then
21585 ac_cv_have_uint16_t=1
21587 ac_cv_have_uint16_t=0
21590 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
21591 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
21592 if test "${ac_cv_type_u_int16_t+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 cat >conftest.$ac_ext <<_ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601 $ac_includes_default
21602 typedef u_int16_t ac__type_new_;
21606 if ((ac__type_new_ *) 0)
21608 if (sizeof (ac__type_new_))
21614 rm -f conftest.$ac_objext
21615 if { (ac_try="$ac_compile"
21616 case "(($ac_try" in
21617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618 *) ac_try_echo=$ac_try;;
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621 (eval "$ac_compile") 2>conftest.er1
21623 grep -v '^ *+' conftest.er1 >conftest.err
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && {
21628 test -z "$ac_c_werror_flag" ||
21629 test ! -s conftest.err
21630 } && test -s conftest.$ac_objext; then
21631 ac_cv_type_u_int16_t=yes
21633 echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21636 ac_cv_type_u_int16_t=no
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
21642 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
21643 if test $ac_cv_type_u_int16_t = yes; then
21644 ac_cv_have_u_int16_t=1
21646 ac_cv_have_u_int16_t=0
21649 { echo "$as_me:$LINENO: checking for __uint16" >&5
21650 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
21651 if test "${ac_cv_type___uint16+set}" = set; then
21652 echo $ECHO_N "(cached) $ECHO_C" >&6
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 $ac_includes_default
21661 typedef __uint16 ac__type_new_;
21665 if ((ac__type_new_ *) 0)
21667 if (sizeof (ac__type_new_))
21673 rm -f conftest.$ac_objext
21674 if { (ac_try="$ac_compile"
21675 case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_compile") 2>conftest.er1
21682 grep -v '^ *+' conftest.er1 >conftest.err
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } && {
21687 test -z "$ac_c_werror_flag" ||
21688 test ! -s conftest.err
21689 } && test -s conftest.$ac_objext; then
21690 ac_cv_type___uint16=yes
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 ac_cv_type___uint16=no
21698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
21701 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
21702 if test $ac_cv_type___uint16 = yes; then
21703 ac_cv_have___uint16=1
21705 ac_cv_have___uint16=0
21709 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
21710 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
21711 if test "${ac_cv_func_sigaltstack+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 cat >conftest.$ac_ext <<_ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h. */
21720 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
21721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21722 #define sigaltstack innocuous_sigaltstack
21724 /* System header to define __stub macros and hopefully few prototypes,
21725 which can conflict with char sigaltstack (); below.
21726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21727 <limits.h> exists even on freestanding compilers. */
21730 # include <limits.h>
21732 # include <assert.h>
21737 /* Override any GCC internal prototype to avoid an error.
21738 Use char because int might match the return type of a GCC
21739 builtin and then its argument prototype would still apply. */
21743 char sigaltstack ();
21744 /* The GNU C library defines this for functions which it implements
21745 to always fail with ENOSYS. Some functions are actually named
21746 something starting with __ and the normal name is an alias. */
21747 #if defined __stub_sigaltstack || defined __stub___sigaltstack
21754 return sigaltstack ();
21759 rm -f conftest.$ac_objext conftest$ac_exeext
21760 if { (ac_try="$ac_link"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_link") 2>conftest.er1
21768 grep -v '^ *+' conftest.er1 >conftest.err
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest$ac_exeext &&
21776 $as_test_x conftest$ac_exeext; then
21777 ac_cv_func_sigaltstack=yes
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 ac_cv_func_sigaltstack=no
21785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21786 conftest$ac_exeext conftest.$ac_ext
21788 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
21789 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
21790 if test $ac_cv_func_sigaltstack = yes; then
21792 cat >>confdefs.h <<\_ACEOF
21793 #define HAVE_SIGALTSTACK 1
21798 { echo "$as_me:$LINENO: checking for dladdr" >&5
21799 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
21800 if test "${ac_cv_func_dladdr+set}" = set; then
21801 echo $ECHO_N "(cached) $ECHO_C" >&6
21803 cat >conftest.$ac_ext <<_ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h. */
21809 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
21810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21811 #define dladdr innocuous_dladdr
21813 /* System header to define __stub macros and hopefully few prototypes,
21814 which can conflict with char dladdr (); below.
21815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21816 <limits.h> exists even on freestanding compilers. */
21819 # include <limits.h>
21821 # include <assert.h>
21826 /* Override any GCC internal prototype to avoid an error.
21827 Use char because int might match the return type of a GCC
21828 builtin and then its argument prototype would still apply. */
21833 /* The GNU C library defines this for functions which it implements
21834 to always fail with ENOSYS. Some functions are actually named
21835 something starting with __ and the normal name is an alias. */
21836 #if defined __stub_dladdr || defined __stub___dladdr
21848 rm -f conftest.$ac_objext conftest$ac_exeext
21849 if { (ac_try="$ac_link"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_link") 2>conftest.er1
21857 grep -v '^ *+' conftest.er1 >conftest.err
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } && {
21862 test -z "$ac_c_werror_flag" ||
21863 test ! -s conftest.err
21864 } && test -s conftest$ac_exeext &&
21865 $as_test_x conftest$ac_exeext; then
21866 ac_cv_func_dladdr=yes
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21871 ac_cv_func_dladdr=no
21874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21875 conftest$ac_exeext conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
21878 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
21879 if test $ac_cv_func_dladdr = yes; then
21881 cat >>confdefs.h <<\_ACEOF
21882 #define HAVE_DLADDR 1
21889 { echo "$as_me:$LINENO: checking for __attribute__" >&5
21890 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
21891 if test "${ac_cv___attribute__+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21895 cat >conftest.$ac_ext <<_ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21901 #include <stdlib.h>
21902 static void foo(void) __attribute__ ((unused));
21903 void foo(void) { exit(1); }
21912 rm -f conftest.$ac_objext
21913 if { (ac_try="$ac_compile"
21914 case "(($ac_try" in
21915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916 *) ac_try_echo=$ac_try;;
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919 (eval "$ac_compile") 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } && {
21926 test -z "$ac_c_werror_flag" ||
21927 test ! -s conftest.err
21928 } && test -s conftest.$ac_objext; then
21929 ac_cv___attribute__=yes
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_cv___attribute__=no
21938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21941 if test "$ac_cv___attribute__" = "yes"; then
21943 cat >>confdefs.h <<\_ACEOF
21944 #define HAVE___ATTRIBUTE__ 1
21948 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
21949 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
21951 # We only care about these two attributes.
21952 if test x"$ac_cv___attribute__" = x"yes"; then
21953 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
21954 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
21956 ac_cv___attribute___noreturn=
21957 ac_cv___attribute___printf_4_5=
21961 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
21962 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
21963 if test "${ac_cv___builtin_expect+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
21982 rm -f conftest.$ac_objext
21983 if { (ac_try="$ac_compile"
21984 case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_compile") 2>conftest.er1
21991 grep -v '^ *+' conftest.er1 >conftest.err
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } && {
21996 test -z "$ac_c_werror_flag" ||
21997 test ! -s conftest.err
21998 } && test -s conftest.$ac_objext; then
21999 ac_cv___builtin_expect=yes
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_cv___builtin_expect=no
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22011 if test "$ac_cv___builtin_expect" = "yes"; then
22013 cat >>confdefs.h <<\_ACEOF
22014 #define HAVE___BUILTIN_EXPECT 1
22018 { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22019 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22021 if test x"$ac_cv___builtin_expect" = x"yes"; then
22022 ac_cv_have___builtin_expect=1
22024 ac_cv_have___builtin_expect=0
22028 { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22029 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
22030 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
22049 rm -f conftest.$ac_objext conftest$ac_exeext
22050 if { (ac_try="$ac_link"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_link") 2>conftest.er1
22058 grep -v '^ *+' conftest.er1 >conftest.err
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest$ac_exeext &&
22066 $as_test_x conftest$ac_exeext; then
22067 ac_cv___sync_val_compare_and_swap=yes
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22072 ac_cv___sync_val_compare_and_swap=no
22076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22077 conftest$ac_exeext conftest.$ac_ext
22080 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
22082 cat >>confdefs.h <<\_ACEOF
22083 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
22087 { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
22088 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
22091 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
22092 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
22093 # Check whether --enable-frame_pointers was given.
22094 if test "${enable_frame_pointers+set}" = set; then
22095 enableval=$enable_frame_pointers; enable_frame_pointers=no
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22108 return __x86_64__ == 1 ? 0 : 1
22113 rm -f conftest.$ac_objext
22114 if { (ac_try="$ac_compile"
22115 case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_compile") 2>conftest.er1
22122 grep -v '^ *+' conftest.er1 >conftest.err
22124 cat conftest.err >&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && {
22127 test -z "$ac_c_werror_flag" ||
22128 test ! -s conftest.err
22129 } && test -s conftest.$ac_objext; then
22132 echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139 if test "$enable_frame_pointers" = yes; then
22140 ENABLE_FRAME_POINTERS_TRUE=
22141 ENABLE_FRAME_POINTERS_FALSE='#'
22143 ENABLE_FRAME_POINTERS_TRUE='#'
22144 ENABLE_FRAME_POINTERS_FALSE=
22147 if test "$is_x86_64" = yes; then
22156 # Some of the code in this directory depends on pthreads
22161 ac_cpp='$CPP $CPPFLAGS'
22162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22168 # We used to check for pthread.h first, but this fails if pthread.h
22169 # requires special compiler flags (e.g. on True64 or Sequent).
22170 # It gets checked for in the link test anyway.
22172 # First of all, check if the user has set any of the PTHREAD_LIBS,
22173 # etcetera environment variables, and if threads linking works using
22175 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22176 save_CFLAGS="$CFLAGS"
22177 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22179 LIBS="$PTHREAD_LIBS $LIBS"
22180 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22181 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22182 cat >conftest.$ac_ext <<_ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22189 /* Override any GCC internal prototype to avoid an error.
22190 Use char because int might match the return type of a GCC
22191 builtin and then its argument prototype would still apply. */
22195 char pthread_join ();
22199 return pthread_join ();
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (ac_try="$ac_link"
22206 case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_link") 2>conftest.er1
22213 grep -v '^ *+' conftest.er1 >conftest.err
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && {
22218 test -z "$ac_c_werror_flag" ||
22219 test ! -s conftest.err
22220 } && test -s conftest$ac_exeext &&
22221 $as_test_x conftest$ac_exeext; then
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22231 conftest$ac_exeext conftest.$ac_ext
22232 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22233 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22234 if test x"$acx_pthread_ok" = xno; then
22239 CFLAGS="$save_CFLAGS"
22242 # We must check for the threads library under a number of different
22243 # names; the ordering is very important because some systems
22244 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22245 # libraries is broken (non-POSIX).
22247 # Create a list of thread flags to try. Items starting with a "-" are
22248 # C compiler flags, and other items are library names, except for "none"
22249 # which indicates that we try without any flags at all, and "pthread-config"
22250 # which is a program returning the flags for the Pth emulation library.
22252 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22254 # The ordering *is* (sometimes) important. Some notes on the
22255 # individual items follow:
22257 # pthreads: AIX (must check this before -lpthread)
22258 # none: in case threads are in libc; should be tried before -Kthread and
22259 # other compiler flags to prevent continual compiler warnings
22260 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22261 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22262 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22263 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22264 # -pthreads: Solaris/gcc
22265 # -mthreads: Mingw32/gcc, Lynx/gcc
22266 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22267 # doesn't hurt to check since this sometimes defines pthreads too;
22268 # also defines -D_REENTRANT)
22269 # ... -mt is also the pthreads flag for HP/aCC
22270 # pthread: Linux, etcetera
22271 # --thread-safe: KAI C++
22272 # pthread-config: use pthread-config program (for GNU Pth library)
22274 case "${host_cpu}-${host_os}" in
22277 # On Solaris (at least, for some versions), libc contains stubbed
22278 # (non-functional) versions of the pthreads routines, so link-based
22279 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
22280 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22281 # a function called by this macro, so we could check for that, but
22282 # who knows whether they'll stub that too in a future libc.) So,
22283 # we'll just look for -pthreads and -lpthread first:
22285 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22289 if test x"$acx_pthread_ok" = xno; then
22290 for flag in $acx_pthread_flags; do
22294 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22295 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22299 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22300 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22301 PTHREAD_CFLAGS="$flag"
22305 # Extract the first word of "pthread-config", so it can be a program name with args.
22306 set dummy pthread-config; ac_word=$2
22307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22309 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 if test -n "$acx_pthread_config"; then
22313 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22316 for as_dir in $PATH
22319 test -z "$as_dir" && as_dir=.
22320 for ac_exec_ext in '' $ac_executable_extensions; do
22321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22322 ac_cv_prog_acx_pthread_config="yes"
22323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22330 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22333 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22334 if test -n "$acx_pthread_config"; then
22335 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22336 echo "${ECHO_T}$acx_pthread_config" >&6; }
22338 { echo "$as_me:$LINENO: result: no" >&5
22339 echo "${ECHO_T}no" >&6; }
22343 if test x"$acx_pthread_config" = xno; then continue; fi
22344 PTHREAD_CFLAGS="`pthread-config --cflags`"
22345 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22349 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22350 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22351 PTHREAD_LIBS="-l$flag"
22356 save_CFLAGS="$CFLAGS"
22357 LIBS="$PTHREAD_LIBS $LIBS"
22358 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22360 # Check for various functions. We must include pthread.h,
22361 # since some functions may be macros. (On the Sequent, we
22362 # need a special flag -Kthread to make this header compile.)
22363 # We check for pthread_join because it is in -lpthread on IRIX
22364 # while pthread_create is in libc. We check for pthread_attr_init
22365 # due to DEC craziness with -lpthreads. We check for
22366 # pthread_cleanup_push because it is one of the few pthread
22367 # functions on Solaris that doesn't have a non-functional libc stub.
22368 # We try pthread_create on general principles.
22369 cat >conftest.$ac_ext <<_ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22375 #include <pthread.h>
22379 pthread_t th; pthread_join(th, 0);
22380 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22381 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (ac_try="$ac_link"
22388 case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_link") 2>conftest.er1
22395 grep -v '^ *+' conftest.er1 >conftest.err
22397 cat conftest.err >&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } && {
22400 test -z "$ac_c_werror_flag" ||
22401 test ! -s conftest.err
22402 } && test -s conftest$ac_exeext &&
22403 $as_test_x conftest$ac_exeext; then
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22413 conftest$ac_exeext conftest.$ac_ext
22416 CFLAGS="$save_CFLAGS"
22418 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22419 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22420 if test "x$acx_pthread_ok" = xyes; then
22429 # Various other checks:
22430 if test "x$acx_pthread_ok" = xyes; then
22432 LIBS="$PTHREAD_LIBS $LIBS"
22433 save_CFLAGS="$CFLAGS"
22434 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22436 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22437 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22438 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22440 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <pthread.h>
22451 int attr=$attr; return attr;
22456 rm -f conftest.$ac_objext conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_link") 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } && {
22470 test -z "$ac_c_werror_flag" ||
22471 test ! -s conftest.err
22472 } && test -s conftest$ac_exeext &&
22473 $as_test_x conftest$ac_exeext; then
22474 attr_name=$attr; break
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22483 conftest$ac_exeext conftest.$ac_ext
22485 { echo "$as_me:$LINENO: result: $attr_name" >&5
22486 echo "${ECHO_T}$attr_name" >&6; }
22487 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22489 cat >>confdefs.h <<_ACEOF
22490 #define PTHREAD_CREATE_JOINABLE $attr_name
22495 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22496 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22498 case "${host_cpu}-${host_os}" in
22499 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22500 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22502 { echo "$as_me:$LINENO: result: ${flag}" >&5
22503 echo "${ECHO_T}${flag}" >&6; }
22504 if test "x$flag" != xno; then
22505 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22509 CFLAGS="$save_CFLAGS"
22510 # More AIX lossage: must compile with xlc_r or cc_r
22511 if test x"$GCC" != xyes; then
22512 for ac_prog in xlc_r cc_r
22514 # Extract the first word of "$ac_prog", so it can be a program name with args.
22515 set dummy $ac_prog; ac_word=$2
22516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22518 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22519 echo $ECHO_N "(cached) $ECHO_C" >&6
22521 if test -n "$PTHREAD_CC"; then
22522 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22525 for as_dir in $PATH
22528 test -z "$as_dir" && as_dir=.
22529 for ac_exec_ext in '' $ac_executable_extensions; do
22530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22531 ac_cv_prog_PTHREAD_CC="$ac_prog"
22532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22541 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22542 if test -n "$PTHREAD_CC"; then
22543 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22544 echo "${ECHO_T}$PTHREAD_CC" >&6; }
22546 { echo "$as_me:$LINENO: result: no" >&5
22547 echo "${ECHO_T}no" >&6; }
22551 test -n "$PTHREAD_CC" && break
22553 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22559 # The next part tries to detect GCC inconsistency with -shared on some
22560 # architectures and systems. The problem is that in certain
22561 # configurations, when -shared is specified, GCC "forgets" to
22562 # internally use various flags which are still necessary.
22564 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
22565 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
22566 check_inconsistencies=yes
22567 case "${host_cpu}-${host_os}" in
22568 *-darwin*) check_inconsistencies=no ;;
22570 if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
22571 { echo "$as_me:$LINENO: result: no" >&5
22572 echo "${ECHO_T}no" >&6; }
22574 { echo "$as_me:$LINENO: result: yes" >&5
22575 echo "${ECHO_T}yes" >&6; }
22577 # In order not to create several levels of indentation, we test
22578 # the value of "$ok" until we find out the cure or run out of
22583 # Prepare the flags
22585 save_CFLAGS="$CFLAGS"
22588 # Try with the flags determined by the earlier checks.
22590 # -Wl,-z,defs forces link-time symbol resolution, so that the
22591 # linking checks with -shared actually have any value
22593 # FIXME: -fPIC is required for -shared on many architectures,
22594 # so we specify it here, but the right way would probably be to
22595 # properly detect whether it is actually required.
22596 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
22597 LIBS="$PTHREAD_LIBS $LIBS"
22600 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
22601 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
22602 cat >conftest.$ac_ext <<_ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 #include <pthread.h>
22612 pthread_t th; pthread_join(th, 0);
22613 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22614 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (ac_try="$ac_link"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_link") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest$ac_exeext &&
22636 $as_test_x conftest$ac_exeext; then
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22646 conftest$ac_exeext conftest.$ac_ext
22648 if test "x$ok" = xyes; then
22649 { echo "$as_me:$LINENO: result: yes" >&5
22650 echo "${ECHO_T}yes" >&6; }
22652 { echo "$as_me:$LINENO: result: no" >&5
22653 echo "${ECHO_T}no" >&6; }
22657 # Linux gcc on some architectures such as mips/mipsel forgets
22660 if test x"$ok" = xno; then
22661 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
22662 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
22663 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 #include <pthread.h>
22674 pthread_t th; pthread_join(th, 0);
22675 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22676 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22681 rm -f conftest.$ac_objext conftest$ac_exeext
22682 if { (ac_try="$ac_link"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_link") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest$ac_exeext &&
22698 $as_test_x conftest$ac_exeext; then
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22708 conftest$ac_exeext conftest.$ac_ext
22710 if test "x$ok" = xyes; then
22711 { echo "$as_me:$LINENO: result: yes" >&5
22712 echo "${ECHO_T}yes" >&6; }
22713 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
22715 { echo "$as_me:$LINENO: result: no" >&5
22716 echo "${ECHO_T}no" >&6; }
22720 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
22722 if test x"$ok" = xno; then
22723 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
22724 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
22725 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
22726 cat >conftest.$ac_ext <<_ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 #include <pthread.h>
22736 pthread_t th; pthread_join(th, 0);
22737 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22738 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22743 rm -f conftest.$ac_objext conftest$ac_exeext
22744 if { (ac_try="$ac_link"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750 (eval "$ac_link") 2>conftest.er1
22752 grep -v '^ *+' conftest.er1 >conftest.err
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } && {
22757 test -z "$ac_c_werror_flag" ||
22758 test ! -s conftest.err
22759 } && test -s conftest$ac_exeext &&
22760 $as_test_x conftest$ac_exeext; then
22763 echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22770 conftest$ac_exeext conftest.$ac_ext
22772 if test "x$ok" = xyes; then
22773 { echo "$as_me:$LINENO: result: yes" >&5
22774 echo "${ECHO_T}yes" >&6; }
22775 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
22777 { echo "$as_me:$LINENO: result: no" >&5
22778 echo "${ECHO_T}no" >&6; }
22781 if test x"$ok" = xno; then
22782 # OK, we have run out of ideas
22783 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
22784 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
22786 # so it's not safe to assume that we may use pthreads
22790 CFLAGS="$save_CFLAGS"
22802 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22803 if test x"$acx_pthread_ok" = xyes; then
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_PTHREAD 1
22815 ac_cpp='$CPP $CPPFLAGS'
22816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22822 # Check if there is google-gflags library installed.
22823 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
22824 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
22825 if test "${ac_cv_lib_gflags_main+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 ac_check_lib_save_LIBS=$LIBS
22829 LIBS="-lgflags $LIBS"
22830 cat >conftest.$ac_ext <<_ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_link") 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest$ac_exeext &&
22863 $as_test_x conftest$ac_exeext; then
22864 ac_cv_lib_gflags_main=yes
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 ac_cv_lib_gflags_main=no
22872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22873 conftest$ac_exeext conftest.$ac_ext
22874 LIBS=$ac_check_lib_save_LIBS
22876 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
22877 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
22878 if test $ac_cv_lib_gflags_main = yes; then
22879 ac_cv_have_libgflags=1
22881 ac_cv_have_libgflags=0
22884 if test x"$ac_cv_have_libgflags" = x"1"; then
22885 GFLAGS_LIBS=-lgflags
22887 cat >>confdefs.h <<\_ACEOF
22888 #define HAVE_LIB_GFLAGS 1
22895 # We want to link in libunwind if it exists
22897 # Unfortunately, we need to check the header file in addition to the
22898 # lib file to check if libunwind is available since libunwind-0.98
22899 # doesn't install all necessary header files.
22900 if test x"$ac_cv_have_libunwind_h" = x"1"; then
22901 { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
22902 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
22903 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
22904 echo $ECHO_N "(cached) $ECHO_C" >&6
22906 ac_check_lib_save_LIBS=$LIBS
22907 LIBS="-lunwind $LIBS"
22908 cat >conftest.$ac_ext <<_ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22915 /* Override any GCC internal prototype to avoid an error.
22916 Use char because int might match the return type of a GCC
22917 builtin and then its argument prototype would still apply. */
22925 return backtrace ();
22930 rm -f conftest.$ac_objext conftest$ac_exeext
22931 if { (ac_try="$ac_link"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_link") 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest$ac_exeext &&
22947 $as_test_x conftest$ac_exeext; then
22948 ac_cv_lib_unwind_backtrace=yes
22950 echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22953 ac_cv_lib_unwind_backtrace=no
22956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22957 conftest$ac_exeext conftest.$ac_ext
22958 LIBS=$ac_check_lib_save_LIBS
22960 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
22961 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
22962 if test $ac_cv_lib_unwind_backtrace = yes; then
22963 UNWIND_LIBS=-lunwind
22968 if test x"$UNWIND_LIBS" != x""; then
22970 cat >>confdefs.h <<\_ACEOF
22971 #define HAVE_LIB_UNWIND 1
22976 # We'd like to use read/write locks in several places in the code.
22977 # See if our pthreads support extends to that. Note: for linux, it
22978 # does as long as you define _XOPEN_SOURCE appropriately.
22979 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
22980 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
22981 if test "${ac_rwlock+set}" = set; then
22982 echo $ECHO_N "(cached) $ECHO_C" >&6
22986 ac_cpp='$CPP $CPPFLAGS'
22987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22991 cat >conftest.$ac_ext <<_ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 #define _XOPEN_SOURCE 500
22998 #include <pthread.h>
23002 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
23003 pthread_rwlock_rdlock(&l);
23009 rm -f conftest.$ac_objext
23010 if { (ac_try="$ac_compile"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016 (eval "$ac_compile") 2>conftest.er1
23018 grep -v '^ *+' conftest.er1 >conftest.err
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && {
23023 test -z "$ac_c_werror_flag" ||
23024 test ! -s conftest.err
23025 } && test -s conftest.$ac_objext; then
23028 echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036 ac_cpp='$CPP $CPPFLAGS'
23037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23043 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
23044 echo "${ECHO_T}$ac_rwlock" >&6; }
23045 if test "$ac_rwlock" = yes; then
23047 cat >>confdefs.h <<\_ACEOF
23048 #define HAVE_RWLOCK 1
23054 # Find out what namespace 'normal' STL code lives in, and also what namespace
23055 # the user wants our classes to be defined in
23056 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
23057 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
23058 if test "${ac_cv_cxx_namespaces+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23063 ac_cpp='$CXXCPP $CPPFLAGS'
23064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23068 cat >conftest.$ac_ext <<_ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23075 namespace Inner { int i = 0; }}
23079 using namespace Outer::Inner; return i;
23084 rm -f conftest.$ac_objext
23085 if { (ac_try="$ac_compile"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_compile") 2>conftest.er1
23093 grep -v '^ *+' conftest.er1 >conftest.err
23095 cat conftest.err >&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } && {
23098 test -z "$ac_cxx_werror_flag" ||
23099 test ! -s conftest.err
23100 } && test -s conftest.$ac_objext; then
23101 ac_cv_cxx_namespaces=yes
23103 echo "$as_me: failed program was:" >&5
23104 sed 's/^/| /' conftest.$ac_ext >&5
23106 ac_cv_cxx_namespaces=no
23109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23111 ac_cpp='$CPP $CPPFLAGS'
23112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23117 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
23118 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
23119 if test "$ac_cv_cxx_namespaces" = yes; then
23121 cat >>confdefs.h <<\_ACEOF
23122 #define HAVE_NAMESPACES 1
23126 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
23127 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
23128 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23134 ac_cpp='$CXXCPP $CPPFLAGS'
23135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23149 vector<int> t; return 0;
23154 rm -f conftest.$ac_objext
23155 if { (ac_try="$ac_compile"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_compile") 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } && {
23168 test -z "$ac_cxx_werror_flag" ||
23169 test ! -s conftest.err
23170 } && test -s conftest.$ac_objext; then
23171 ac_cv_cxx_stl_namespace=none
23173 echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23190 std::vector<int> t; return 0;
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_compile") 2>conftest.er1
23204 grep -v '^ *+' conftest.er1 >conftest.err
23206 cat conftest.err >&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } && {
23209 test -z "$ac_cxx_werror_flag" ||
23210 test ! -s conftest.err
23211 } && test -s conftest.$ac_objext; then
23212 ac_cv_cxx_stl_namespace=std
23214 echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222 ac_cpp='$CPP $CPPFLAGS'
23223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23228 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
23229 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
23230 if test "$ac_cv_cxx_stl_namespace" = none; then
23232 cat >>confdefs.h <<\_ACEOF
23233 #define STL_NAMESPACE
23237 if test "$ac_cv_cxx_stl_namespace" = std; then
23239 cat >>confdefs.h <<\_ACEOF
23240 #define STL_NAMESPACE std
23245 google_namespace_default=google
23246 # Check whether --enable-namespace was given.
23247 if test "${enable_namespace+set}" = set; then
23248 enableval=$enable_namespace; case "$enableval" in
23249 yes) google_namespace="$google_namespace_default" ;;
23250 no) google_namespace="" ;;
23251 *) google_namespace="$enableval" ;;
23254 google_namespace="$google_namespace_default"
23257 if test -n "$google_namespace"; then
23258 ac_google_namespace="$google_namespace"
23259 ac_google_start_namespace="namespace $google_namespace {"
23260 ac_google_end_namespace="}"
23262 ac_google_namespace=""
23263 ac_google_start_namespace=""
23264 ac_google_end_namespace=""
23267 cat >>confdefs.h <<_ACEOF
23268 #define GOOGLE_NAMESPACE $ac_google_namespace
23272 cat >>confdefs.h <<_ACEOF
23273 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
23277 cat >>confdefs.h <<_ACEOF
23278 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
23283 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
23284 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
23285 if test "${ac_cv_cxx_using_operator+set}" = set; then
23286 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 ac_cpp='$CXXCPP $CPPFLAGS'
23291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23295 cat >conftest.$ac_ext <<_ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h. */
23301 #include <iostream>
23302 std::ostream& operator<<(std::ostream&, struct s);
23306 using ::operator<<; return 0;
23311 rm -f conftest.$ac_objext
23312 if { (ac_try="$ac_compile"
23313 case "(($ac_try" in
23314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315 *) ac_try_echo=$ac_try;;
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318 (eval "$ac_compile") 2>conftest.er1
23320 grep -v '^ *+' conftest.er1 >conftest.err
23322 cat conftest.err >&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } && {
23325 test -z "$ac_cxx_werror_flag" ||
23326 test ! -s conftest.err
23327 } && test -s conftest.$ac_objext; then
23328 ac_cv_cxx_using_operator=1
23330 echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ac_cv_cxx_using_operator=0
23336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 ac_cpp='$CPP $CPPFLAGS'
23339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23344 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
23345 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
23346 if test "$ac_cv_cxx_using_operator" = 1; then
23348 cat >>confdefs.h <<\_ACEOF
23349 #define HAVE_USING_OPERATOR 1
23354 # We want to access the "PC" (Program Counter) register from a struct
23355 # ucontext. Every system has its own way of doing that. We try all the
23356 # possibilities we know about. Note REG_PC should come first (REG_RIP
23357 # is also defined on solaris, but does the wrong thing).
23358 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
23359 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
23360 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
23361 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
23362 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
23363 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
23364 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
23365 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
23366 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
23367 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
23368 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
23369 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
23370 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
23371 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
23372 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
23373 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
23374 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
23375 pc_field_found=false
23376 for pc_field in $pc_fields; do
23377 if ! $pc_field_found; then
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 #define _GNU_SOURCE 1
23385 #include <ucontext.h>
23389 ucontext_t u; return u.$pc_field == 0;
23394 rm -f conftest.$ac_objext
23395 if { (ac_try="$ac_compile"
23396 case "(($ac_try" in
23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398 *) ac_try_echo=$ac_try;;
23400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23401 (eval "$ac_compile") 2>conftest.er1
23403 grep -v '^ *+' conftest.er1 >conftest.err
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } && {
23408 test -z "$ac_c_werror_flag" ||
23409 test ! -s conftest.err
23410 } && test -s conftest.$ac_objext; then
23412 cat >>confdefs.h <<_ACEOF
23413 #define PC_FROM_UCONTEXT $pc_field
23416 { echo "$as_me:$LINENO: result: $pc_field" >&5
23417 echo "${ECHO_T}$pc_field" >&6; }
23418 pc_field_found=true
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429 if ! $pc_field_found; then
23430 { echo "$as_me:$LINENO: WARNING: Could not find the PC. Will not output failed addresses..." >&5
23431 echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
23434 # These are what's needed by logging.h.in and raw_logging.h.in
23451 # Write generated configuration file
23452 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"
23454 cat >confcache <<\_ACEOF
23455 # This file is a shell script that caches the results of configure
23456 # tests run on this system so they can be shared between configure
23457 # scripts and configure runs, see configure's option --config-cache.
23458 # It is not useful on other systems. If it contains results you don't
23459 # want to keep, you may remove or edit it.
23461 # config.status only pays attention to the cache file if you give it
23462 # the --recheck option to rerun configure.
23464 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23466 # following values.
23470 # The following way of writing the cache mishandles newlines in values,
23471 # but we know of no workaround that is simple, portable, and efficient.
23472 # So, we kill variables containing newlines.
23473 # Ultrix sh set writes to stderr and can't be redirected directly,
23474 # and sets the high bit in the cache file unless we assign to the vars.
23476 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23477 eval ac_val=\$$ac_var
23481 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23482 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23485 _ | IFS | as_nl) ;; #(
23486 *) $as_unset $ac_var ;;
23492 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23493 *${as_nl}ac_space=\ *)
23494 # `set' does not quote correctly, so add quotes (double-quote
23495 # substitution turns \\\\ into \\, and sed turns \\ into \).
23498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23501 # `set' quotes correctly as required by POSIX, so do not add quotes.
23502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23516 if test -w "$cache_file"; then
23517 test "x$cache_file" != "x/dev/null" &&
23518 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23519 echo "$as_me: updating cache $cache_file" >&6;}
23520 cat confcache >$cache_file
23522 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23523 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23529 # Let make expand exec_prefix.
23530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23532 DEFS=-DHAVE_CONFIG_H
23536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23537 # 1. Remove the extension, and $U if already installed.
23538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23539 ac_i=`echo "$ac_i" | sed "$ac_script"`
23540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23541 # will be set to the directory where LIBOBJS objects are built.
23542 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23543 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23545 LIBOBJS=$ac_libobjs
23547 LTLIBOBJS=$ac_ltlibobjs
23550 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23551 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23552 Usually this means the macro was only invoked conditionally." >&5
23553 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23554 Usually this means the macro was only invoked conditionally." >&2;}
23555 { (exit 1); exit 1; }; }
23557 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23558 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23559 Usually this means the macro was only invoked conditionally." >&5
23560 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23561 Usually this means the macro was only invoked conditionally." >&2;}
23562 { (exit 1); exit 1; }; }
23564 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23565 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23566 Usually this means the macro was only invoked conditionally." >&5
23567 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23568 Usually this means the macro was only invoked conditionally." >&2;}
23569 { (exit 1); exit 1; }; }
23571 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
23572 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
23573 Usually this means the macro was only invoked conditionally." >&5
23574 echo "$as_me: error: conditional \"GCC\" was never defined.
23575 Usually this means the macro was only invoked conditionally." >&2;}
23576 { (exit 1); exit 1; }; }
23578 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
23579 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
23580 Usually this means the macro was only invoked conditionally." >&5
23581 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
23582 Usually this means the macro was only invoked conditionally." >&2;}
23583 { (exit 1); exit 1; }; }
23585 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
23586 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
23587 Usually this means the macro was only invoked conditionally." >&5
23588 echo "$as_me: error: conditional \"X86_64\" was never defined.
23589 Usually this means the macro was only invoked conditionally." >&2;}
23590 { (exit 1); exit 1; }; }
23593 : ${CONFIG_STATUS=./config.status}
23594 ac_clean_files_save=$ac_clean_files
23595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23596 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23597 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23598 cat >$CONFIG_STATUS <<_ACEOF
23600 # Generated by $as_me.
23601 # Run this file to recreate the current configuration.
23602 # Compiler output produced by configure, useful for debugging
23603 # configure, is in config.log if it exists.
23606 ac_cs_recheck=false
23608 SHELL=\${CONFIG_SHELL-$SHELL}
23611 cat >>$CONFIG_STATUS <<\_ACEOF
23612 ## --------------------- ##
23613 ## M4sh Initialization. ##
23614 ## --------------------- ##
23616 # Be more Bourne compatible
23617 DUALCASE=1; export DUALCASE # for MKS sh
23618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23622 # is contrary to our usage. Disable this feature.
23623 alias -g '${1+"$@"}'='"$@"'
23624 setopt NO_GLOB_SUBST
23626 case `(set -o) 2>/dev/null` in
23627 *posix*) set -o posix ;;
23636 # Avoid depending upon Character Ranges.
23637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23640 as_cr_digits='0123456789'
23641 as_cr_alnum=$as_cr_Letters$as_cr_digits
23643 # The user is always right.
23644 if test "${PATH_SEPARATOR+set}" != set; then
23645 echo "#! /bin/sh" >conf$$.sh
23646 echo "exit 0" >>conf$$.sh
23648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23656 # Support unset when possible.
23657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23665 # We need space, tab and new line, in precisely that order. Quoting is
23666 # there to prevent editors from complaining about space-tab.
23667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23668 # splitting by setting IFS to empty value.)
23673 # Find who we are. Look in the path if we contain no directory separator.
23675 *[\\/]* ) as_myself=$0 ;;
23676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23677 for as_dir in $PATH
23680 test -z "$as_dir" && as_dir=.
23681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23687 # We did not find ourselves, most probably we were run as `sh COMMAND'
23688 # in which case we are not to be found in the path.
23689 if test "x$as_myself" = x; then
23692 if test ! -f "$as_myself"; then
23693 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23694 { (exit 1); exit 1; }
23697 # Work around bugs in pre-3.0 UWIN ksh.
23698 for as_var in ENV MAIL MAILPATH
23699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23709 LC_TELEPHONE LC_TIME
23711 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23712 eval $as_var=C; export $as_var
23714 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23718 # Required to use basename.
23719 if expr a : '\(a\)' >/dev/null 2>&1 &&
23720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23727 as_basename=basename
23733 # Name of the executable.
23734 as_me=`$as_basename -- "$0" ||
23735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23736 X"$0" : 'X\(//\)$' \| \
23737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23739 sed '/^.*\/\([^/][^/]*\)\/*$/{
23758 as_lineno_1=$LINENO
23759 as_lineno_2=$LINENO
23760 test "x$as_lineno_1" != "x$as_lineno_2" &&
23761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23764 # uniformly replaced by the line number. The first 'sed' inserts a
23765 # line-number line after each line using $LINENO; the second 'sed'
23766 # does the real work. The second script uses 'N' to pair each
23767 # line-number line with the line containing $LINENO, and appends
23768 # trailing '-' during substitution so that $LINENO is not a special
23769 # case at line end.
23770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23771 # scripts with optimization help from Paolo Bonzini. Blame Lee
23772 # E. McMahon (1931-1989) for sed's syntax. :-)
23784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23787 ' >$as_me.lineno &&
23788 chmod +x "$as_me.lineno" ||
23789 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23790 { (exit 1); exit 1; }; }
23792 # Don't try to exec as it changes $[0], causing all sort of problems
23793 # (the dirname of $[0] is not the place where we might find the
23794 # original and so on. Autoconf is especially sensitive to this).
23795 . "./$as_me.lineno"
23796 # Exit status is that of the last command.
23801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23807 ECHO_C= ECHO_N= ECHO_T=
23808 case `echo -n x` in
23810 case `echo 'x\c'` in
23811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23818 if expr a : '\(a\)' >/dev/null 2>&1 &&
23819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23825 rm -f conf$$ conf$$.exe conf$$.file
23826 if test -d conf$$.dir; then
23827 rm -f conf$$.dir/conf$$.file
23833 if ln -s conf$$.file conf$$ 2>/dev/null; then
23835 # ... but there are two gotchas:
23836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23838 # In both cases, we have to default to `cp -p'.
23839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23841 elif ln conf$$.file conf$$ 2>/dev/null; then
23846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23847 rmdir conf$$.dir 2>/dev/null
23849 if mkdir -p . 2>/dev/null; then
23852 test -d ./-p && rmdir ./-p
23856 if test -x / >/dev/null 2>&1; then
23857 as_test_x='test -x'
23859 if ls -dL / >/dev/null 2>&1; then
23866 if test -d "$1"; then
23872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23873 ???[sx]*):;;*)false;;esac;fi
23877 as_executable_p=$as_test_x
23879 # Sed expression to map a string onto a valid CPP name.
23880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23882 # Sed expression to map a string onto a valid variable name.
23883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23888 # Save the log message, to keep $[0] and so on meaningful, and to
23889 # report actual input values of CONFIG_FILES etc. instead of their
23890 # values after options handling.
23892 This file was extended by glog $as_me 0.1.1, which was
23893 generated by GNU Autoconf 2.61. Invocation command line was
23895 CONFIG_FILES = $CONFIG_FILES
23896 CONFIG_HEADERS = $CONFIG_HEADERS
23897 CONFIG_LINKS = $CONFIG_LINKS
23898 CONFIG_COMMANDS = $CONFIG_COMMANDS
23901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23906 cat >>$CONFIG_STATUS <<_ACEOF
23907 # Files that config.status was made for.
23908 config_files="$ac_config_files"
23909 config_headers="$ac_config_headers"
23910 config_commands="$ac_config_commands"
23914 cat >>$CONFIG_STATUS <<\_ACEOF
23916 \`$as_me' instantiates files from templates according to the
23917 current configuration.
23919 Usage: $0 [OPTIONS] [FILE]...
23921 -h, --help print this help, then exit
23922 -V, --version print version number and configuration settings, then exit
23923 -q, --quiet do not print progress messages
23924 -d, --debug don't remove temporary files
23925 --recheck update $as_me by reconfiguring in the same conditions
23926 --file=FILE[:TEMPLATE]
23927 instantiate the configuration file FILE
23928 --header=FILE[:TEMPLATE]
23929 instantiate the configuration header FILE
23931 Configuration files:
23934 Configuration headers:
23937 Configuration commands:
23940 Report bugs to <bug-autoconf@gnu.org>."
23943 cat >>$CONFIG_STATUS <<_ACEOF
23945 glog config.status 0.1.1
23946 configured by $0, generated by GNU Autoconf 2.61,
23947 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23949 Copyright (C) 2006 Free Software Foundation, Inc.
23950 This config.status script is free software; the Free Software Foundation
23951 gives unlimited permission to copy, distribute and modify it."
23959 cat >>$CONFIG_STATUS <<\_ACEOF
23960 # If no file are specified by the user, then we need to provide default
23961 # value. By we need to know if files were specified by the user.
23967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23979 # Handling of the options.
23980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23983 echo "$ac_cs_version"; exit ;;
23984 --debug | --debu | --deb | --de | --d | -d )
23986 --file | --fil | --fi | --f )
23988 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23989 ac_need_defaults=false;;
23990 --header | --heade | --head | --hea )
23992 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23993 ac_need_defaults=false;;
23995 # Conflict between --help and --header
23996 { echo "$as_me: error: ambiguous option: $1
23997 Try \`$0 --help' for more information." >&2
23998 { (exit 1); exit 1; }; };;
23999 --help | --hel | -h )
24000 echo "$ac_cs_usage"; exit ;;
24001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24005 # This is an error.
24006 -*) { echo "$as_me: error: unrecognized option: $1
24007 Try \`$0 --help' for more information." >&2
24008 { (exit 1); exit 1; }; } ;;
24010 *) ac_config_targets="$ac_config_targets $1"
24011 ac_need_defaults=false ;;
24017 ac_configure_extra_args=
24019 if $ac_cs_silent; then
24021 ac_configure_extra_args="$ac_configure_extra_args --silent"
24025 cat >>$CONFIG_STATUS <<_ACEOF
24026 if \$ac_cs_recheck; then
24027 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24028 CONFIG_SHELL=$SHELL
24029 export CONFIG_SHELL
24030 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24034 cat >>$CONFIG_STATUS <<\_ACEOF
24038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24039 ## Running $as_me. ##
24045 cat >>$CONFIG_STATUS <<_ACEOF
24049 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24053 cat >>$CONFIG_STATUS <<\_ACEOF
24055 # Handling of arguments.
24056 for ac_config_target in $ac_config_targets
24058 case $ac_config_target in
24059 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
24060 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24061 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24062 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
24063 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
24064 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
24065 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
24067 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24068 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24069 { (exit 1); exit 1; }; };;
24074 # If the user did not use the arguments to specify the items to instantiate,
24075 # then the envvar interface is used. Set only those that are not.
24076 # We use the long form for the default assignment because of an extremely
24077 # bizarre bug on SunOS 4.1.3.
24078 if $ac_need_defaults; then
24079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24084 # Have a temporary directory for convenience. Make it in the build tree
24085 # simply because there is no reason against having it here, and in addition,
24086 # creating and moving files from /tmp can sometimes cause problems.
24087 # Hook for its removal unless debugging.
24088 # Note that there is a small window in which the directory will not be cleaned:
24089 # after its creation but before its name has been assigned to `$tmp'.
24093 trap 'exit_status=$?
24094 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24096 trap '{ (exit 1); exit 1; }' 1 2 13 15
24098 # Create a (secure) tmp directory for tmp files.
24101 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24102 test -n "$tmp" && test -d "$tmp"
24105 tmp=./conf$$-$RANDOM
24106 (umask 077 && mkdir "$tmp")
24109 echo "$me: cannot create a temporary directory in ." >&2
24110 { (exit 1); exit 1; }
24114 # Set up the sed scripts for CONFIG_FILES section.
24117 # No need to generate the scripts if there are no CONFIG_FILES.
24118 # This happens for instance when ./config.status config.h
24119 if test -n "$CONFIG_FILES"; then
24126 for ac_last_try in false false false false false :; do
24127 cat >conf$$subs.sed <<_ACEOF
24128 SHELL!$SHELL$ac_delim
24129 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24130 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24131 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24132 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24133 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24134 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24135 exec_prefix!$exec_prefix$ac_delim
24136 prefix!$prefix$ac_delim
24137 program_transform_name!$program_transform_name$ac_delim
24138 bindir!$bindir$ac_delim
24139 sbindir!$sbindir$ac_delim
24140 libexecdir!$libexecdir$ac_delim
24141 datarootdir!$datarootdir$ac_delim
24142 datadir!$datadir$ac_delim
24143 sysconfdir!$sysconfdir$ac_delim
24144 sharedstatedir!$sharedstatedir$ac_delim
24145 localstatedir!$localstatedir$ac_delim
24146 includedir!$includedir$ac_delim
24147 oldincludedir!$oldincludedir$ac_delim
24148 docdir!$docdir$ac_delim
24149 infodir!$infodir$ac_delim
24150 htmldir!$htmldir$ac_delim
24151 dvidir!$dvidir$ac_delim
24152 pdfdir!$pdfdir$ac_delim
24153 psdir!$psdir$ac_delim
24154 libdir!$libdir$ac_delim
24155 localedir!$localedir$ac_delim
24156 mandir!$mandir$ac_delim
24157 DEFS!$DEFS$ac_delim
24158 ECHO_C!$ECHO_C$ac_delim
24159 ECHO_N!$ECHO_N$ac_delim
24160 ECHO_T!$ECHO_T$ac_delim
24161 LIBS!$LIBS$ac_delim
24162 build_alias!$build_alias$ac_delim
24163 host_alias!$host_alias$ac_delim
24164 target_alias!$target_alias$ac_delim
24165 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24166 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24167 INSTALL_DATA!$INSTALL_DATA$ac_delim
24168 am__isrc!$am__isrc$ac_delim
24169 CYGPATH_W!$CYGPATH_W$ac_delim
24170 PACKAGE!$PACKAGE$ac_delim
24171 VERSION!$VERSION$ac_delim
24172 ACLOCAL!$ACLOCAL$ac_delim
24173 AUTOCONF!$AUTOCONF$ac_delim
24174 AUTOMAKE!$AUTOMAKE$ac_delim
24175 AUTOHEADER!$AUTOHEADER$ac_delim
24176 MAKEINFO!$MAKEINFO$ac_delim
24177 install_sh!$install_sh$ac_delim
24178 STRIP!$STRIP$ac_delim
24179 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24180 mkdir_p!$mkdir_p$ac_delim
24182 SET_MAKE!$SET_MAKE$ac_delim
24183 am__leading_dot!$am__leading_dot$ac_delim
24184 AMTAR!$AMTAR$ac_delim
24185 am__tar!$am__tar$ac_delim
24186 am__untar!$am__untar$ac_delim
24188 CFLAGS!$CFLAGS$ac_delim
24189 LDFLAGS!$LDFLAGS$ac_delim
24190 CPPFLAGS!$CPPFLAGS$ac_delim
24191 ac_ct_CC!$ac_ct_CC$ac_delim
24192 EXEEXT!$EXEEXT$ac_delim
24193 OBJEXT!$OBJEXT$ac_delim
24194 DEPDIR!$DEPDIR$ac_delim
24195 am__include!$am__include$ac_delim
24196 am__quote!$am__quote$ac_delim
24197 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24198 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24199 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24200 CCDEPMODE!$CCDEPMODE$ac_delim
24201 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24202 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24205 CXXFLAGS!$CXXFLAGS$ac_delim
24206 ac_ct_CXX!$ac_ct_CXX$ac_delim
24207 CXXDEPMODE!$CXXDEPMODE$ac_delim
24208 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24209 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24210 GCC_TRUE!$GCC_TRUE$ac_delim
24211 GCC_FALSE!$GCC_FALSE$ac_delim
24212 build!$build$ac_delim
24213 build_cpu!$build_cpu$ac_delim
24214 build_vendor!$build_vendor$ac_delim
24215 build_os!$build_os$ac_delim
24216 host!$host$ac_delim
24217 host_cpu!$host_cpu$ac_delim
24218 host_vendor!$host_vendor$ac_delim
24219 host_os!$host_os$ac_delim
24221 GREP!$GREP$ac_delim
24222 EGREP!$EGREP$ac_delim
24223 LN_S!$LN_S$ac_delim
24224 ECHO!$ECHO$ac_delim
24227 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24229 elif $ac_last_try; then
24230 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24231 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24232 { (exit 1); exit 1; }; }
24234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24238 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24239 if test -n "$ac_eof"; then
24240 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24241 ac_eof=`expr $ac_eof + 1`
24244 cat >>$CONFIG_STATUS <<_ACEOF
24245 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24249 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24250 s/^/s,@/; s/!/@,|#_!!_#|/
24253 s/'"$ac_delim"'$/,g/; t
24255 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24256 ' >>$CONFIG_STATUS <conf$$subs.sed
24257 rm -f conf$$subs.sed
24258 cat >>$CONFIG_STATUS <<_ACEOF
24264 for ac_last_try in false false false false false :; do
24265 cat >conf$$subs.sed <<_ACEOF
24267 RANLIB!$RANLIB$ac_delim
24268 DSYMUTIL!$DSYMUTIL$ac_delim
24269 NMEDIT!$NMEDIT$ac_delim
24270 CXXCPP!$CXXCPP$ac_delim
24272 FFLAGS!$FFLAGS$ac_delim
24273 ac_ct_F77!$ac_ct_F77$ac_delim
24274 LIBTOOL!$LIBTOOL$ac_delim
24275 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
24276 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
24277 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
24278 X86_64_TRUE!$X86_64_TRUE$ac_delim
24279 X86_64_FALSE!$X86_64_FALSE$ac_delim
24280 acx_pthread_config!$acx_pthread_config$ac_delim
24281 PTHREAD_CC!$PTHREAD_CC$ac_delim
24282 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
24283 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
24284 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
24285 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
24286 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
24287 ac_google_namespace!$ac_google_namespace$ac_delim
24288 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
24289 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
24290 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
24291 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
24292 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
24293 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
24294 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
24295 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
24296 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
24297 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
24298 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
24299 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
24300 LIBOBJS!$LIBOBJS$ac_delim
24301 LTLIBOBJS!$LTLIBOBJS$ac_delim
24304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
24306 elif $ac_last_try; then
24307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24309 { (exit 1); exit 1; }; }
24311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24316 if test -n "$ac_eof"; then
24317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24318 ac_eof=`expr $ac_eof + 1`
24321 cat >>$CONFIG_STATUS <<_ACEOF
24322 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24327 s/^/s,@/; s/!/@,|#_!!_#|/
24330 s/'"$ac_delim"'$/,g/; t
24332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24333 ' >>$CONFIG_STATUS <conf$$subs.sed
24334 rm -f conf$$subs.sed
24335 cat >>$CONFIG_STATUS <<_ACEOF
24342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24344 # trailing colons and then remove the whole line if VPATH becomes empty
24345 # (actually we leave an empty line to preserve line numbers).
24346 if test "x$srcdir" = x.; then
24347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24348 s/:*\$(srcdir):*/:/
24349 s/:*\${srcdir}:*/:/
24351 s/^\([^=]*=[ ]*\):*/\1/
24357 cat >>$CONFIG_STATUS <<\_ACEOF
24358 fi # test -n "$CONFIG_FILES"
24361 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24364 :[FHLC]) ac_mode=$ac_tag; continue;;
24366 case $ac_mode$ac_tag in
24368 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24370 { (exit 1); exit 1; }; };;
24371 :[FH]-) ac_tag=-:-;;
24372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24389 -) ac_f="$tmp/stdin";;
24390 *) # Look for the file first in the build tree, then in the source tree
24391 # (if the path is not absolute). The absolute path cannot be DOS-style,
24392 # because $ac_f cannot contain `:'.
24396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24400 { (exit 1); exit 1; }; };;
24402 ac_file_inputs="$ac_file_inputs $ac_f"
24405 # Let's still pretend it is `configure' which instantiates (i.e., don't
24406 # use $as_me), people would be surprised to read:
24407 # /* config.h. Generated by config.status. */
24408 configure_input="Generated from "`IFS=:
24409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24410 if test x"$ac_file" != x-; then
24411 configure_input="$ac_file. $configure_input"
24412 { echo "$as_me:$LINENO: creating $ac_file" >&5
24413 echo "$as_me: creating $ac_file" >&6;}
24417 *:-:* | *:-) cat >"$tmp/stdin";;
24422 ac_dir=`$as_dirname -- "$ac_file" ||
24423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424 X"$ac_file" : 'X\(//\)[^/]' \| \
24425 X"$ac_file" : 'X\(//\)$' \| \
24426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24432 /^X\(\/\/\)[^/].*/{
24447 -*) as_dir=./$as_dir;;
24449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24454 *) as_qdir=$as_dir;;
24456 as_dirs="'$as_qdir' $as_dirs"
24457 as_dir=`$as_dirname -- "$as_dir" ||
24458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24459 X"$as_dir" : 'X\(//\)[^/]' \| \
24460 X"$as_dir" : 'X\(//\)$' \| \
24461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24467 /^X\(\/\/\)[^/].*/{
24480 test -d "$as_dir" && break
24482 test -z "$as_dirs" || eval "mkdir $as_dirs"
24483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24485 { (exit 1); exit 1; }; }; }
24489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24492 # A ".." for each directory in $ac_dir_suffix.
24493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24494 case $ac_top_builddir_sub in
24495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24499 ac_abs_top_builddir=$ac_pwd
24500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24501 # for backward compatibility:
24502 ac_top_builddir=$ac_top_build_prefix
24505 .) # We are building in place.
24507 ac_top_srcdir=$ac_top_builddir_sub
24508 ac_abs_top_srcdir=$ac_pwd ;;
24509 [\\/]* | ?:[\\/]* ) # Absolute name.
24510 ac_srcdir=$srcdir$ac_dir_suffix;
24511 ac_top_srcdir=$srcdir
24512 ac_abs_top_srcdir=$srcdir ;;
24513 *) # Relative name.
24514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24515 ac_top_srcdir=$ac_top_build_prefix$srcdir
24516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24531 ac_MKDIR_P=$MKDIR_P
24533 [\\/$]* | ?:[\\/]* ) ;;
24534 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24538 cat >>$CONFIG_STATUS <<\_ACEOF
24539 # If the template does not know about datarootdir, expand it.
24540 # FIXME: This hack should be removed a few years after 2.60.
24541 ac_datarootdir_hack=; ac_datarootdir_seen=
24543 case `sed -n '/datarootdir/ {
24552 ' $ac_file_inputs` in
24553 *datarootdir*) ac_datarootdir_seen=yes;;
24554 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24555 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24556 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24558 cat >>$CONFIG_STATUS <<_ACEOF
24559 ac_datarootdir_hack='
24560 s&@datadir@&$datadir&g
24561 s&@docdir@&$docdir&g
24562 s&@infodir@&$infodir&g
24563 s&@localedir@&$localedir&g
24564 s&@mandir@&$mandir&g
24565 s&\\\${datarootdir}&$datarootdir&g' ;;
24569 # Neutralize VPATH when `$srcdir' = `.'.
24570 # Shell code in configure.ac might set extrasub.
24571 # FIXME: do we really want to maintain this feature?
24572 cat >>$CONFIG_STATUS <<_ACEOF
24576 cat >>$CONFIG_STATUS <<\_ACEOF
24578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24579 s&@configure_input@&$configure_input&;t t
24580 s&@top_builddir@&$ac_top_builddir_sub&;t t
24581 s&@srcdir@&$ac_srcdir&;t t
24582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24583 s&@top_srcdir@&$ac_top_srcdir&;t t
24584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24585 s&@builddir@&$ac_builddir&;t t
24586 s&@abs_builddir@&$ac_abs_builddir&;t t
24587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24588 s&@INSTALL@&$ac_INSTALL&;t t
24589 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24590 $ac_datarootdir_hack
24591 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24593 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24594 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24596 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24597 which seems to be undefined. Please make sure it is defined." >&5
24598 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24599 which seems to be undefined. Please make sure it is defined." >&2;}
24603 -) cat "$tmp/out"; rm -f "$tmp/out";;
24604 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24613 # Transform confdefs.h into a sed script `conftest.defines', that
24614 # substitutes the proper values into config.h.in to produce config.h.
24615 rm -f conftest.defines conftest.tail
24616 # First, append a space to every undef/define line, to ease matching.
24617 echo 's/$/ /' >conftest.defines
24618 # Then, protect against being on the right side of a sed subst, or in
24619 # an unquoted here document, in config.status. If some macros were
24620 # called several times there might be several #defines for the same
24621 # symbol, which is useless. But do not sort them, since the last
24622 # AC_DEFINE must be honored.
24623 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24624 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24625 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24626 # PARAMS is the parameter list in the macro definition--in most cases, it's
24627 # just an empty string.
24628 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24629 ac_dB='\\)[ (].*,\\1define\\2'
24637 s/^[ ]*#[ ]*define[ ][ ]*//
24642 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24643 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24644 ' >>conftest.defines
24646 # Remove the space that was appended to ease matching.
24647 # Then replace #undef with comments. This is necessary, for
24648 # example, in the case of _POSIX_SOURCE, which is predefined and required
24649 # on some systems where configure will not decide to define it.
24650 # (The regexp can be short, since the line contains either #define or #undef.)
24652 s,^[ #]*u.*,/* & */,' >>conftest.defines
24654 # Break up conftest.defines:
24655 ac_max_sed_lines=50
24657 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24658 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24659 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24661 ac_in='$ac_file_inputs'
24662 ac_out='"$tmp/out1"'
24663 ac_nxt='"$tmp/out2"'
24667 # Write a here document:
24668 cat >>$CONFIG_STATUS <<_ACEOF
24669 # First, check the format of the line:
24670 cat >"\$tmp/defines.sed" <<\\CEOF
24671 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24672 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24676 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24678 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24679 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24680 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24681 grep . conftest.tail >/dev/null || break
24682 rm -f conftest.defines
24683 mv conftest.tail conftest.defines
24685 rm -f conftest.defines conftest.tail
24687 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24688 cat >>$CONFIG_STATUS <<\_ACEOF
24689 if test x"$ac_file" != x-; then
24690 echo "/* $configure_input */" >"$tmp/config.h"
24691 cat "$ac_result" >>"$tmp/config.h"
24692 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24693 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24694 echo "$as_me: $ac_file is unchanged" >&6;}
24697 mv "$tmp/config.h" $ac_file
24700 echo "/* $configure_input */"
24704 # Compute $ac_file's index in $config_headers.
24707 for _am_header in $config_headers :; do
24708 case $_am_header in
24709 $_am_arg | $_am_arg:* )
24712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24715 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24716 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24717 X"$_am_arg" : 'X\(//\)[^/]' \| \
24718 X"$_am_arg" : 'X\(//\)$' \| \
24719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24725 /^X\(\/\/\)[^/].*/{
24737 s/.*/./; q'`/stamp-h$_am_stamp_count
24740 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24741 echo "$as_me: executing $ac_file commands" >&6;}
24746 case $ac_file$ac_mode in
24747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24748 # Strip MF so we end up with the name of the file.
24749 mf=`echo "$mf" | sed -e 's/:.*$//'`
24750 # Check whether this is an Automake generated Makefile or not.
24751 # We used to match only the files named `Makefile.in', but
24752 # some people rename them; so instead we look at the file content.
24753 # Grep'ing the first line is not enough: some people post-process
24754 # each Makefile.in and add a new line on top of each file to say so.
24755 # Grep'ing the whole file is not good either: AIX grep has a line
24756 # limit of 2048, but all sed's we know have understand at least 4000.
24757 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24758 dirpart=`$as_dirname -- "$mf" ||
24759 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24760 X"$mf" : 'X\(//\)[^/]' \| \
24761 X"$mf" : 'X\(//\)$' \| \
24762 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24768 /^X\(\/\/\)[^/].*/{
24784 # Extract the definition of DEPDIR, am__include, and am__quote
24785 # from the Makefile without running `make'.
24786 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24787 test -z "$DEPDIR" && continue
24788 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24789 test -z "am__include" && continue
24790 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24791 # When using ansi2knr, U may be empty or an underscore; expand it
24792 U=`sed -n 's/^U = //p' < "$mf"`
24793 # Find all dependency output files, they are included files with
24794 # $(DEPDIR) in their names. We invoke sed twice because it is the
24795 # simplest approach to changing $(DEPDIR) to its actual value in the
24797 for file in `sed -n "
24798 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24799 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24800 # Make sure the directory exists.
24801 test -f "$dirpart/$file" && continue
24802 fdir=`$as_dirname -- "$file" ||
24803 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24804 X"$file" : 'X\(//\)[^/]' \| \
24805 X"$file" : 'X\(//\)$' \| \
24806 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24812 /^X\(\/\/\)[^/].*/{
24825 { as_dir=$dirpart/$fdir
24827 -*) as_dir=./$as_dir;;
24829 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24833 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24834 *) as_qdir=$as_dir;;
24836 as_dirs="'$as_qdir' $as_dirs"
24837 as_dir=`$as_dirname -- "$as_dir" ||
24838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24839 X"$as_dir" : 'X\(//\)[^/]' \| \
24840 X"$as_dir" : 'X\(//\)$' \| \
24841 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24847 /^X\(\/\/\)[^/].*/{
24860 test -d "$as_dir" && break
24862 test -z "$as_dirs" || eval "mkdir $as_dirs"
24863 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24864 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24865 { (exit 1); exit 1; }; }; }
24866 # echo "creating $dirpart/$file"
24867 echo '# dummy' > "$dirpart/$file"
24876 { (exit 0); exit 0; }
24878 chmod +x $CONFIG_STATUS
24879 ac_clean_files=$ac_clean_files_save
24882 # configure is writing to config.log, and then calls config.status.
24883 # config.status does its own redirection, appending to config.log.
24884 # Unfortunately, on DOS this fails, as config.log is still kept open
24885 # by configure, so config.status won't be able to write to it; its
24886 # output is simply discarded. So we exec the FD to /dev/null,
24887 # effectively closing config.log, so it can be properly (re)opened and
24888 # appended to by config.status. When coming back to configure, we
24889 # need to make the FD available again.
24890 if test "$no_create" != yes; then
24892 ac_config_status_args=
24893 test "$silent" = yes &&
24894 ac_config_status_args="$ac_config_status_args --quiet"
24896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24899 # would make configure fail if this is the last instruction.
24900 $ac_cs_success || { (exit 1); exit 1; }