2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Google C++ Testing Framework 1.6.0.
5 # Report bugs to <googletestframework@googlegroups.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: googletestframework@googlegroups.com about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
702 PACKAGE_NAME='Google C++ Testing Framework'
703 PACKAGE_TARNAME='gtest'
704 PACKAGE_VERSION='1.6.0'
705 PACKAGE_STRING='Google C++ Testing Framework 1.6.0'
706 PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
709 ac_unique_file="./COPYING"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
723 # ifdef HAVE_STDLIB_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
746 ac_subst_vars='am__EXEEXT_FALSE
818 INSTALL_STRIP_PROGRAM
860 program_transform_name
873 enable_option_checking
874 enable_dependency_tracking
883 ac_precious_vars='build_alias
898 # Initialize some variables set by options.
900 ac_init_version=false
901 ac_unrecognized_opts=
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
912 program_transform_name=s,x,x,
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
950 # If the previous option needs an argument, assign it.
951 if test -n "$ac_prev"; then
952 eval $ac_prev=\$ac_option
958 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 # Accept the important Cygnus configure options, so we can diagnose typos.
964 case $ac_dashdash$ac_option in
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
986 cache_file=config.cache ;;
988 -datadir | --datadir | --datadi | --datad)
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1009 "enable_$ac_useropt"
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1014 eval enable_$ac_useropt=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 htmldir=$ac_optarg ;;
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1085 -libdir | --libdir | --libdi | --libd)
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1176 -psdir | --psdir | --psdi | --psd | --ps)
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 sbindir=$ac_optarg ;;
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 sharedstatedir=$ac_optarg ;;
1202 -site | --site | --sit)
1204 -site=* | --site=* | --sit=*)
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1244 eval with_$ac_useropt=\$ac_optarg ;;
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error "invalid package name: $ac_useropt"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1260 eval with_$ac_useropt=no ;;
1263 # Obsolete; use --with-x.
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1280 -*) as_fn_error "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information."
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
1289 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error "missing argument to $ac_option"
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1313 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 # Check all directory arguments for consistency.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1331 # Be sure to have absolute directory names.
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1344 target=$target_alias
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1351 If a cross compiler is detected then cross compile mode will be used." >&2
1352 elif test "x$build_alias" != "x$host_alias"; then
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360 test "$silent" = yes && exec 6>/dev/null
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error "pwd does not report name of working directory"
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 # Report the --help message.
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1437 \`configure' configures Google C++ Testing Framework 1.6.0 to adapt to many kinds of systems.
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1444 Defaults for the options are specified in brackets.
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1468 For better control, use the options below.
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/gtest]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of Google C++ Testing Framework 1.6.0:";;
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --disable-dependency-tracking speeds up one-time build
1516 --enable-dependency-tracking do not reject slow dependency extractors
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-static[=PKGS] build static libraries [default=yes]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --disable-libtool-lock avoid locking (might break parallel builds)
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-pic try to use only PIC/non-PIC objects [default=use
1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1529 --with-pthreads use pthreads (default is yes)
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
1542 CXXCPP C++ preprocessor
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 Report bugs to <googletestframework@googlegroups.com>.
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1577 .) # We are building in place.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1610 Google C++ Testing Framework configure 1.6.0
1611 generated by GNU Autoconf 2.65
1613 Copyright (C) 2009 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658 as_fn_set_status $ac_retval
1660 } # ac_fn_c_try_compile
1662 # ac_fn_cxx_try_compile LINENO
1663 # ----------------------------
1664 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_cxx_try_compile ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext
1669 if { { ac_try="$ac_compile"
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_compile") 2>conftest.err
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_cxx_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest.$ac_objext; then :
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_cxx_try_compile
1700 # ac_fn_c_try_link LINENO
1701 # -----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded.
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext conftest$ac_exeext
1707 if { { ac_try="$ac_link"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>conftest.err
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest$ac_exeext && {
1726 test "$cross_compiling" = yes ||
1727 $as_test_x conftest$ac_exeext
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738 # interfere with the next link command; also delete a directory that is
1739 # left behind by Apple's compiler. We do this before executing the actions.
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_link
1746 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists and can be compiled using the include files in
1749 # INCLUDES, setting the cache variable VAR accordingly.
1750 ac_fn_c_check_header_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1763 if ac_fn_c_try_compile "$LINENO"; then :
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 } # ac_fn_c_check_header_compile
1777 # ac_fn_c_try_cpp LINENO
1778 # ----------------------
1779 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_cpp conftest.$ac_ext"
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } >/dev/null && {
1799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 as_fn_set_status $ac_retval
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=$ac_status
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 as_fn_set_status $ac_retval
1856 # ac_fn_c_check_func LINENO FUNC VAR
1857 # ----------------------------------
1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859 ac_fn_c_check_func ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 $as_echo_n "(cached) " >&6
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871 #define $2 innocuous_$2
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $2 (); below.
1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876 <limits.h> exists even on freestanding compilers. */
1879 # include <limits.h>
1881 # include <assert.h>
1886 /* Override any GCC internal prototype to avoid an error.
1887 Use char because int might match the return type of a GCC
1888 builtin and then its argument prototype would still apply. */
1893 /* The GNU C library defines this for functions which it implements
1894 to always fail with ENOSYS. Some functions are actually named
1895 something starting with __ and the normal name is an alias. */
1896 #if defined __stub_$2 || defined __stub___$2
1908 if ac_fn_c_try_link "$LINENO"; then :
1913 rm -f core conftest.err conftest.$ac_objext \
1914 conftest$ac_exeext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 } # ac_fn_c_check_func
1923 # ac_fn_cxx_try_cpp LINENO
1924 # ------------------------
1925 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_cxx_try_cpp ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if { { ac_try="$ac_cpp conftest.$ac_ext"
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } >/dev/null && {
1945 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1946 test ! -s conftest.err
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_cxx_try_cpp
1960 # ac_fn_cxx_try_link LINENO
1961 # -------------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_cxx_try_link ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext conftest$ac_exeext
1967 if { { ac_try="$ac_link"
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>conftest.err
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_cxx_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest$ac_exeext && {
1986 test "$cross_compiling" = yes ||
1987 $as_test_x conftest$ac_exeext
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1996 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998 # interfere with the next link command; also delete a directory that is
1999 # left behind by Apple's compiler. We do this before executing the actions.
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 as_fn_set_status $ac_retval
2004 } # ac_fn_cxx_try_link
2005 cat >config.log <<_ACEOF
2006 This file contains any messages produced by compilers while
2007 running configure, to aid debugging if configure makes a mistake.
2009 It was created by Google C++ Testing Framework $as_me 1.6.0, which was
2010 generated by GNU Autoconf 2.65. Invocation command line was
2022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2034 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 $as_echo "PATH: $as_dir"
2062 # Keep a trace of the command line.
2063 # Strip out --no-create and --no-recursion so they do not pile up.
2064 # Strip out --silent because we don't want to record it for future runs.
2065 # Also quote any args containing shell meta-characters.
2066 # Make two passes to allow for proper duplicate-argument suppression.
2070 ac_must_keep_next=false
2076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078 | -silent | --silent | --silen | --sile | --sil)
2081 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2084 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086 as_fn_append ac_configure_args1 " '$ac_arg'"
2087 if test $ac_must_keep_next = true; then
2088 ac_must_keep_next=false # Got value, back to normal.
2091 *=* | --config-cache | -C | -disable-* | --disable-* \
2092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094 | -with-* | --with-* | -without-* | --without-* | --x)
2095 case "$ac_configure_args0 " in
2096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2099 -* ) ac_must_keep_next=true ;;
2102 as_fn_append ac_configure_args " '$ac_arg'"
2107 { ac_configure_args0=; unset ac_configure_args0;}
2108 { ac_configure_args1=; unset ac_configure_args1;}
2110 # When interrupted or exit'd, cleanup temporary files, and complete
2111 # config.log. We remove comments because anyway the quotes in there
2112 # would cause problems or look ugly.
2113 # WARNING: Use '\'' to represent an apostrophe within the trap.
2114 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2115 trap 'exit_status=$?
2116 # Save into config.log some information that might help in debugging.
2121 ## ---------------- ##
2122 ## Cache variables. ##
2123 ## ---------------- ##
2126 # The following way of writing the cache mishandles newlines in values,
2128 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2129 eval ac_val=\$$ac_var
2133 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2134 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2137 _ | IFS | as_nl) ;; #(
2138 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2139 *) { eval $ac_var=; unset $ac_var;} ;;
2144 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2145 *${as_nl}ac_space=\ *)
2147 "s/'\''/'\''\\\\'\'''\''/g;
2148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2151 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159 ## ----------------- ##
2160 ## Output variables. ##
2161 ## ----------------- ##
2164 for ac_var in $ac_subst_vars
2166 eval ac_val=\$$ac_var
2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 $as_echo "$ac_var='\''$ac_val'\''"
2174 if test -n "$ac_subst_files"; then
2176 ## ------------------- ##
2177 ## File substitutions. ##
2178 ## ------------------- ##
2181 for ac_var in $ac_subst_files
2183 eval ac_val=\$$ac_var
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 $as_echo "$ac_var='\''$ac_val'\''"
2192 if test -s confdefs.h; then
2202 test "$ac_signal" != 0 &&
2203 $as_echo "$as_me: caught signal $ac_signal"
2204 $as_echo "$as_me: exit $exit_status"
2206 rm -f core *.core core.conftest.* &&
2207 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210 for ac_signal in 1 2 13 15; do
2211 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2216 rm -f -r conftest* confdefs.h
2218 $as_echo "/* confdefs.h */" > confdefs.h
2220 # Predefined preprocessor variables.
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_NAME "$PACKAGE_NAME"
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_STRING "$PACKAGE_STRING"
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_URL "$PACKAGE_URL"
2247 # Let the site file select an alternate cache file if it wants to.
2248 # Prefer an explicitly selected file to automatically selected ones.
2251 if test -n "$CONFIG_SITE"; then
2252 ac_site_file1=$CONFIG_SITE
2253 elif test "x$prefix" != xNONE; then
2254 ac_site_file1=$prefix/share/config.site
2255 ac_site_file2=$prefix/etc/config.site
2257 ac_site_file1=$ac_default_prefix/share/config.site
2258 ac_site_file2=$ac_default_prefix/etc/config.site
2260 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2262 test "x$ac_site_file" = xNONE && continue
2263 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2265 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2266 sed 's/^/| /' "$ac_site_file" >&5
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2288 # Check that the precious variables saved in the cache have kept the same
2290 ac_cache_corrupted=false
2291 for ac_var in $ac_precious_vars; do
2292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293 eval ac_new_set=\$ac_env_${ac_var}_set
2294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295 eval ac_new_val=\$ac_env_${ac_var}_value
2296 case $ac_old_set,$ac_new_set in
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300 ac_cache_corrupted=: ;;
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304 ac_cache_corrupted=: ;;
2307 if test "x$ac_old_val" != "x$ac_new_val"; then
2308 # differences in whitespace do not lead to failure.
2309 ac_old_val_w=`echo x $ac_old_val`
2310 ac_new_val_w=`echo x $ac_new_val`
2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314 ac_cache_corrupted=:
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318 eval $ac_var=\$ac_old_val
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2321 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2323 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2326 # Pass precious variables to config.status.
2327 if test "$ac_new_set" = set; then
2329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 *) ac_arg=$ac_var=$ac_new_val ;;
2332 case " $ac_configure_args " in
2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2334 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2338 if $ac_cache_corrupted; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345 ## -------------------- ##
2346 ## Main body of script. ##
2347 ## -------------------- ##
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 # Provide various options to initialize the Autoconf and configure processes.
2362 for ac_dir in build-aux "$srcdir"/build-aux; do
2363 for ac_t in install-sh install.sh shtool; do
2364 if test -f "$ac_dir/$ac_t"; then
2366 ac_install_sh="$ac_aux_dir/$ac_t -c"
2371 if test -z "$ac_aux_dir"; then
2372 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2375 # These three variables are undocumented and unsupported,
2376 # and are intended to be withdrawn in a future Autoconf release.
2377 # They can cause serious problems if a builder's source tree is in a directory
2378 # whose full name contains unusual characters.
2379 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2380 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2381 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2384 ac_config_headers="$ac_config_headers build-aux/config.h"
2386 ac_config_files="$ac_config_files Makefile"
2388 ac_config_files="$ac_config_files scripts/gtest-config"
2391 # Initialize Automake with various options. We require at least v1.9, prevent
2392 # pedantic complaints about package files, and enable various distribution
2394 am__api_version='1.11'
2396 # Find a good install program. We prefer a C program (faster),
2397 # so one script is as good as another. But avoid the broken or
2398 # incompatible versions:
2399 # SysV /etc/install, /usr/sbin/install
2400 # SunOS /usr/etc/install
2401 # IRIX /sbin/install
2403 # AmigaOS /C/install, which installs bootblocks on floppy discs
2404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407 # OS/2's system install, which has a completely different semantic
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 # Reject install programs that cannot install multiple files.
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2411 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2412 if test -z "$INSTALL"; then
2413 if test "${ac_cv_path_install+set}" = set; then :
2414 $as_echo_n "(cached) " >&6
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 # Account for people who put trailing slashes in PATH elements.
2422 case $as_dir/ in #((
2423 ./ | .// | /[cC]/* | \
2424 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2425 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2428 # OSF1 and SCO ODT 3.0 have their own names for install.
2429 # Don't use installbsd from OSF since it installs stuff as root
2431 for ac_prog in ginstall scoinst install; do
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2434 if test $ac_prog = install &&
2435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436 # AIX install. It has an incompatible calling convention.
2438 elif test $ac_prog = install &&
2439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440 # program-specific install script used by HP pwplus--don't use.
2443 rm -rf conftest.one conftest.two conftest.dir
2444 echo one > conftest.one
2445 echo two > conftest.two
2447 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2448 test -s conftest.one && test -s conftest.two &&
2449 test -s conftest.dir/conftest.one &&
2450 test -s conftest.dir/conftest.two
2452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2465 rm -rf conftest.one conftest.two conftest.dir
2468 if test "${ac_cv_path_install+set}" = set; then
2469 INSTALL=$ac_cv_path_install
2471 # As a last resort, use the slow shell script. Don't cache a
2472 # value for INSTALL within a source directory, because that will
2473 # break other packages using the cache if that directory is
2474 # removed, or if the value is a relative name.
2475 INSTALL=$ac_install_sh
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2479 $as_echo "$INSTALL" >&6; }
2481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2482 # It thinks the first close brace ends the variable substitution.
2483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2490 $as_echo_n "checking whether build environment is sane... " >&6; }
2493 echo timestamp > conftest.file
2494 # Reject unsafe characters in $srcdir or the absolute working directory
2495 # name. Accept space and tab only in the latter.
2499 *[\\\"\#\$\&\'\`$am_lf]*)
2500 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2503 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2504 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2507 # Do `set' in a subshell so we don't clobber the current shell's
2508 # arguments. Must try -L first in case configure is actually a
2509 # symlink; some systems play weird games with the mod time of symlinks
2510 # (eg FreeBSD returns the mod time of the symlink's containing
2513 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2514 if test "$*" = "X"; then
2516 set X `ls -t "$srcdir/configure" conftest.file`
2519 if test "$*" != "X $srcdir/configure conftest.file" \
2520 && test "$*" != "X conftest.file $srcdir/configure"; then
2522 # If neither matched, then we have a broken ls. This can happen
2523 # if, for instance, CONFIG_SHELL is bash and it inherits a
2524 # broken ls alias from the environment. This has actually
2525 # happened. Such a system could not be considered "sane".
2526 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2527 alias in your environment" "$LINENO" 5
2530 test "$2" = conftest.file
2536 as_fn_error "newly created file is older than distributed files!
2537 Check your system clock" "$LINENO" 5
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540 $as_echo "yes" >&6; }
2541 test "$program_prefix" != NONE &&
2542 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2543 # Use a double $ so make ignores it.
2544 test "$program_suffix" != NONE &&
2545 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2546 # Double any \ or $.
2547 # By default was `s,x,x', remove it if useless.
2548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2549 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551 # expand $ac_aux_dir to an absolute path
2552 am_aux_dir=`cd $ac_aux_dir && pwd`
2554 if test x"${MISSING+set}" != xset; then
2557 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2559 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2562 # Use eval to expand $SHELL
2563 if eval "$MISSING --run true"; then
2564 am_missing_run="$MISSING --run "
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2568 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2571 if test x"${install_sh}" != xset; then
2574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2576 install_sh="\${SHELL} $am_aux_dir/install-sh"
2580 # Installed binaries are usually stripped using `strip' when the user
2581 # run `make install-strip'. However `strip' might not be the right
2582 # tool to use in cross-compilation environments, therefore Automake
2583 # will honor the `STRIP' environment variable to overrule this program.
2584 if test "$cross_compiling" != no; then
2585 if test -n "$ac_tool_prefix"; then
2586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}strip; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_STRIP+set}" = set; then :
2591 $as_echo_n "(cached) " >&6
2593 if test -n "$STRIP"; then
2594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 STRIP=$ac_cv_prog_STRIP
2614 if test -n "$STRIP"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2616 $as_echo "$STRIP" >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2624 if test -z "$ac_cv_prog_STRIP"; then
2626 # Extract the first word of "strip", so it can be a program name with args.
2627 set dummy strip; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2633 if test -n "$ac_ct_STRIP"; then
2634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_ac_ct_STRIP="strip"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2654 if test -n "$ac_ct_STRIP"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2656 $as_echo "$ac_ct_STRIP" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2662 if test "x$ac_ct_STRIP" = x; then
2665 case $cross_compiling:$ac_tool_warned in
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669 ac_tool_warned=yes ;;
2674 STRIP="$ac_cv_prog_STRIP"
2678 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2682 if test -z "$MKDIR_P"; then
2683 if test "${ac_cv_path_mkdir+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2690 test -z "$as_dir" && as_dir=.
2691 for ac_prog in mkdir gmkdir; do
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2694 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2695 'mkdir (GNU coreutils) '* | \
2696 'mkdir (coreutils) '* | \
2697 'mkdir (fileutils) '4.1*)
2698 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2708 test -d ./--version && rmdir ./--version
2709 if test "${ac_cv_path_mkdir+set}" = set; then
2710 MKDIR_P="$ac_cv_path_mkdir -p"
2712 # As a last resort, use the slow shell script. Don't cache a
2713 # value for MKDIR_P within a source directory, because that will
2714 # break other packages using the cache if that directory is
2715 # removed, or if the value is a relative name.
2716 MKDIR_P="$ac_install_sh -d"
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2720 $as_echo "$MKDIR_P" >&6; }
2724 [\\/$]* | ?:[\\/]*) ;;
2725 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2728 for ac_prog in gawk mawk nawk awk
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_AWK+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$AWK"; then
2738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_AWK="$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 if test -n "$AWK"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760 $as_echo "$AWK" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2767 test -n "$AWK" && break
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2771 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2773 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2775 $as_echo_n "(cached) " >&6
2777 cat >conftest.make <<\_ACEOF
2780 @echo '@@@%%%=$(MAKE)=@@@%%%'
2782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2785 eval ac_cv_prog_make_${ac_make}_set=yes;;
2787 eval ac_cv_prog_make_${ac_make}_set=no;;
2791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 SET_MAKE="MAKE=${MAKE-make}"
2801 rm -rf .tst 2>/dev/null
2802 mkdir .tst 2>/dev/null
2803 if test -d .tst; then
2808 rmdir .tst 2>/dev/null
2810 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812 # is not polluted with repeated "-I."
2813 am__isrc=' -I$(srcdir)'
2814 # test to see if srcdir already configured
2815 if test -f $srcdir/config.status; then
2816 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2820 # test whether we have cygpath
2821 if test -z "$CYGPATH_W"; then
2822 if (cygpath --version) >/dev/null 2>/dev/null; then
2823 CYGPATH_W='cygpath -w'
2830 # Define the identity of the package.
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE "$PACKAGE"
2840 cat >>confdefs.h <<_ACEOF
2841 #define VERSION "$VERSION"
2844 # Some tools Automake needs.
2846 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2849 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2852 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2855 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2858 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2860 # We need awk for the "check" target. The system "awk" is bad on
2862 # Always define AMTAR for backward compatibility.
2864 AMTAR=${AMTAR-"${am_missing_run}tar"}
2866 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2873 # Check for programs used in building Google Test.
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2918 if test -z "$ac_cv_prog_CC"; then
2920 # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CC="gcc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 $as_echo "$ac_ct_CC" >&6; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2956 if test "x$ac_ct_CC" = x; then
2959 case $cross_compiling:$ac_tool_warned in
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_CC="${ac_tool_prefix}cc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3012 if test -z "$CC"; then
3013 # Extract the first word of "cc", so it can be a program name with args.
3014 set dummy cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_CC+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3032 ac_prog_rejected=yes
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 if test $ac_prog_rejected = yes; then
3044 # We found a bogon in the path, so make sure we never use it.
3045 set dummy $ac_cv_prog_CC
3047 if test $# != 0; then
3048 # We chose a different compiler from the bogus one.
3049 # However, it has the same basename, so the bogon will be chosen
3050 # first if we set CC to just the basename; use the full file name.
3052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$CC"; then
3069 if test -n "$ac_tool_prefix"; then
3070 for ac_prog in cl.exe
3072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3109 test -n "$CC" && break
3112 if test -z "$CC"; then
3114 for ac_prog in cl.exe
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3123 if test -n "$ac_ct_CC"; then
3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_ac_ct_CC="$ac_prog"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144 if test -n "$ac_ct_CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3146 $as_echo "$ac_ct_CC" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3153 test -n "$ac_ct_CC" && break
3156 if test "x$ac_ct_CC" = x; then
3159 case $cross_compiling:$ac_tool_warned in
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned=yes ;;
3172 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error "no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details." "$LINENO" 5; }
3177 # Provide some information about the compiler.
3178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3181 for ac_option in --version -v -V -qversion; do
3182 { { ac_try="$ac_compiler $ac_option >&5"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3191 if test -s conftest.err; then
3193 ... rest of stderr output deleted ...
3194 10q' conftest.err >conftest.er1
3195 cat conftest.er1 >&5
3197 rm -f conftest.er1 conftest.err
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3213 ac_clean_files_save=$ac_clean_files
3214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3215 # Try to create an executable without -o first, disregard a.out.
3216 # It will help us diagnose broken compilers, and finding out an intuition
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3219 $as_echo_n "checking whether the C compiler works... " >&6; }
3220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3222 # The possible output files:
3223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3226 for ac_file in $ac_files
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3235 if { { ac_try="$ac_link_default"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link_default") 2>&5
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3249 # so that the user can short-circuit this test for compilers unknown to
3251 for ac_file in $ac_files ''
3253 test -f "$ac_file" || continue
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3258 # We found the default executable, but exeext='' is most
3262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266 # We set ac_cv_exeext here because the later test for it is not
3267 # safe: cross compilers may not add the suffix if given an `-o'
3268 # argument, so we may need to know it at that point already.
3269 # Even if this section looks crufty: it has the advantage of
3276 test "$ac_cv_exeext" = no && ac_cv_exeext=
3281 if test -z "$ac_file"; then :
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 { as_fn_set_status 77
3290 as_fn_error "C compiler cannot create executables
3291 See \`config.log' for more details." "$LINENO" 5; }; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 $as_echo "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3321 for ac_file in conftest.exe conftest conftest.*; do
3322 test -f "$ac_file" || continue
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error "cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details." "$LINENO" 5; }
3336 rm -f conftest conftest$ac_cv_exeext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3349 FILE *f = fopen ("conftest.out", "w");
3350 return ferror (f) || fclose (f) != 0;
3356 ac_clean_files="$ac_clean_files conftest.out"
3357 # Check that the compiler produces executables we can run. If not, either
3358 # the compiler is broken, or we cross compile.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360 $as_echo_n "checking whether we are cross compiling... " >&6; }
3361 if test "$cross_compiling" != yes; then
3362 { { ac_try="$ac_link"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373 if { ac_try='./conftest$ac_cv_exeext'
3374 { { case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_try") 2>&5
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; }; then
3386 if test "$cross_compiling" = maybe; then
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error "cannot run C compiled programs.
3392 If you meant to cross compile, use \`--host'.
3393 See \`config.log' for more details." "$LINENO" 5; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3400 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403 $as_echo_n "checking for suffix of object files... " >&6; }
3404 if test "${ac_cv_objext+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3418 rm -f conftest.o conftest.obj
3419 if { { ac_try="$ac_compile"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_compile") 2>&5
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 for ac_file in conftest.o conftest.obj conftest.*; do
3431 test -f "$ac_file" || continue;
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details." "$LINENO" 5; }
3447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 $as_echo "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3472 if ac_fn_c_try_compile "$LINENO"; then :
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3488 ac_test_CFLAGS=${CFLAGS+set}
3489 ac_save_CFLAGS=$CFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3492 if test "${ac_cv_prog_cc_g+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3495 ac_save_c_werror_flag=$ac_c_werror_flag
3496 ac_c_werror_flag=yes
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3510 if ac_fn_c_try_compile "$LINENO"; then :
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 if ac_fn_c_try_compile "$LINENO"; then :
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552 $as_echo "$ac_cv_prog_cc_g" >&6; }
3553 if test "$ac_test_CFLAGS" = set; then
3554 CFLAGS=$ac_save_CFLAGS
3555 elif test $ac_cv_prog_cc_g = yes; then
3556 if test "$GCC" = yes; then
3562 if test "$GCC" = yes; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3573 ac_cv_prog_cc_c89=no
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3579 #include <sys/types.h>
3580 #include <sys/stat.h>
3581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3582 struct buf { int x; };
3583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3584 static char *e (p, i)
3590 static char *f (char * (*g) (char **, int), char **p, ...)
3595 s = g (p, va_arg (v,int));
3600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3601 function prototypes and stuff, but not '\xHH' hex character constants.
3602 These don't provoke an error unfortunately, instead are silently treated
3603 as 'x'. The following induces an error, until -std is added to get
3604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3605 array size at least. It's necessary to write '\x00'==0 to get something
3606 that's true only with -std. */
3607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3610 inside strings and character constants. */
3612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614 int test (int i, double x);
3615 struct s1 {int (*f) (int a);};
3616 struct s2 {int (*f) (double a);};
3617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 CC="$ac_save_CC $ac_arg"
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_cv_prog_cc_c89=$ac_arg
3635 rm -f core conftest.err conftest.$ac_objext
3636 test "x$ac_cv_prog_cc_c89" != "xno" && break
3638 rm -f conftest.$ac_ext
3643 case "x$ac_cv_prog_cc_c89" in
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3646 $as_echo "none needed" >&6; } ;;
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3649 $as_echo "unsupported" >&6; } ;;
3651 CC="$CC $ac_cv_prog_cc_c89"
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655 if test "x$ac_cv_prog_cc_c89" != xno; then :
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664 DEPDIR="${am__leading_dot}deps"
3666 ac_config_commands="$ac_config_commands depfiles"
3669 am_make=${MAKE-make}
3670 cat > confinc << 'END'
3672 @echo this is the am__doit target
3675 # If we don't find an include directive, just comment out the code.
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3677 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3681 # First try GNU make style include.
3682 echo "include confinc" > confmf
3683 # Ignore all kinds of additional output from `make'.
3684 case `$am_make -s -f confmf 2> /dev/null` in #(
3685 *the\ am__doit\ target*)
3691 # Now try BSD make style include.
3692 if test "$am__include" = "#"; then
3693 echo '.include "confinc"' > confmf
3694 case `$am_make -s -f confmf 2> /dev/null` in #(
3695 *the\ am__doit\ target*)
3696 am__include=.include
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3705 $as_echo "$_am_result" >&6; }
3706 rm -f confinc confmf
3708 # Check whether --enable-dependency-tracking was given.
3709 if test "${enable_dependency_tracking+set}" = set; then :
3710 enableval=$enable_dependency_tracking;
3713 if test "x$enable_dependency_tracking" != xno; then
3714 am_depcomp="$ac_aux_dir/depcomp"
3717 if test "x$enable_dependency_tracking" != xno; then
3727 depcc="$CC" am_compiler_list=
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3730 $as_echo_n "checking dependency style of $depcc... " >&6; }
3731 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3735 # We make a subdir and do the tests there. Otherwise we can end up
3736 # making bogus files that we don't know about and never remove. For
3737 # instance it was reported that on HP-UX the gcc test will end up
3738 # making a dummy file named `D' -- because `-MD' means `put the output
3741 # Copy depcomp to subdir because otherwise we won't find it if we're
3742 # using a relative directory.
3743 cp "$am_depcomp" conftest.dir
3745 # We will build objects and dependencies in a subdirectory because
3746 # it helps to detect inapplicable dependency modes. For instance
3747 # both Tru64's cc and ICC support -MD to output dependencies as a
3748 # side effect of compilation, but ICC will put the dependencies in
3749 # the current directory while Tru64 will put them in the object
3753 am_cv_CC_dependencies_compiler_type=none
3754 if test "$am_compiler_list" = ""; then
3755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3758 case " $depcc " in #(
3759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3762 for depmode in $am_compiler_list; do
3763 # Setup a source with many dependencies, because some compilers
3764 # like to wrap large dependency lists on column 80 (with \), and
3765 # we should not choose a depcomp mode which is confused by this.
3767 # We need to recreate these files for each test, as the compiler may
3768 # overwrite some of them when testing with obscure command lines.
3769 # This happens at least with the AIX C compiler.
3771 for i in 1 2 3 4 5 6; do
3772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3774 # Solaris 8's {/usr,}/bin/sh.
3775 touch sub/conftst$i.h
3777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3780 # mode. It turns out that the SunPro C++ compiler does not properly
3781 # handle `-M -o', and we need to detect this. Also, some Intel
3782 # versions had trouble with output in subdirs
3783 am__obj=sub/conftest.${OBJEXT-o}
3784 am__minus_obj="-o $am__obj"
3787 # This depmode causes a compiler race in universal mode.
3788 test "$am__universal" = false || continue
3791 # after this tag, mechanisms are not by side-effect, so they'll
3792 # only be used when explicitly requested
3793 if test "x$enable_dependency_tracking" = xyes; then
3799 msvisualcpp | msvcmsys)
3800 # This compiler won't grok `-c -o', but also, the minuso test has
3801 # not run yet. These depmodes are late enough in the game, and
3802 # so weak that their functioning should not be impacted.
3803 am__obj=conftest.${OBJEXT-o}
3808 if depmode=$depmode \
3809 source=sub/conftest.c object=$am__obj \
3810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3812 >/dev/null 2>conftest.err &&
3813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817 # icc doesn't choke on unknown options, it will just issue warnings
3818 # or remarks (even with -Werror). So we grep stderr for any message
3819 # that says an option was ignored or not supported.
3820 # When given -MP, icc 7.0 and 7.1 complain thusly:
3821 # icc: Command line warning: ignoring option '-M'; no argument required
3822 # The diagnosis changed in icc 8.0:
3823 # icc: Command line remark: option '-MP' not supported
3824 if (grep 'ignoring option' conftest.err ||
3825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826 am_cv_CC_dependencies_compiler_type=$depmode
3835 am_cv_CC_dependencies_compiler_type=none
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3840 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3844 test "x$enable_dependency_tracking" != xno \
3845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3847 am__fastdepCC_FALSE='#'
3849 am__fastdepCC_TRUE='#'
3850 am__fastdepCC_FALSE=
3855 ac_cpp='$CXXCPP $CPPFLAGS'
3856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3859 if test -z "$CXX"; then
3860 if test -n "$CCC"; then
3863 if test -n "$ac_tool_prefix"; then
3864 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if test "${ac_cv_prog_CXX+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3873 if test -n "$CXX"; then
3874 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3883 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 if test -n "$CXX"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3896 $as_echo "$CXX" >&6; }
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3903 test -n "$CXX" && break
3906 if test -z "$CXX"; then
3908 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3910 # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3917 if test -n "$ac_ct_CXX"; then
3918 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927 ac_cv_prog_ac_ct_CXX="$ac_prog"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3938 if test -n "$ac_ct_CXX"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3940 $as_echo "$ac_ct_CXX" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3947 test -n "$ac_ct_CXX" && break
3950 if test "x$ac_ct_CXX" = x; then
3953 case $cross_compiling:$ac_tool_warned in
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned=yes ;;
3965 # Provide some information about the compiler.
3966 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3969 for ac_option in --version -v -V -qversion; do
3970 { { ac_try="$ac_compiler $ac_option >&5"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3979 if test -s conftest.err; then
3981 ... rest of stderr output deleted ...
3982 10q' conftest.err >conftest.er1
3983 cat conftest.er1 >&5
3985 rm -f conftest.er1 conftest.err
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3991 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3992 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4009 if ac_fn_cxx_try_compile "$LINENO"; then :
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4019 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4020 if test $ac_compiler_gnu = yes; then
4025 ac_test_CXXFLAGS=${CXXFLAGS+set}
4026 ac_save_CXXFLAGS=$CXXFLAGS
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4028 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4029 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4032 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4033 ac_cxx_werror_flag=yes
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4047 if ac_fn_cxx_try_compile "$LINENO"; then :
4048 ac_cv_prog_cxx_g=yes
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4062 if ac_fn_cxx_try_compile "$LINENO"; then :
4065 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 if ac_fn_cxx_try_compile "$LINENO"; then :
4079 ac_cv_prog_cxx_g=yes
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4089 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4090 if test "$ac_test_CXXFLAGS" = set; then
4091 CXXFLAGS=$ac_save_CXXFLAGS
4092 elif test $ac_cv_prog_cxx_g = yes; then
4093 if test "$GXX" = yes; then
4099 if test "$GXX" = yes; then
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 depcc="$CXX" am_compiler_list=
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4114 $as_echo_n "checking dependency style of $depcc... " >&6; }
4115 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119 # We make a subdir and do the tests there. Otherwise we can end up
4120 # making bogus files that we don't know about and never remove. For
4121 # instance it was reported that on HP-UX the gcc test will end up
4122 # making a dummy file named `D' -- because `-MD' means `put the output
4125 # Copy depcomp to subdir because otherwise we won't find it if we're
4126 # using a relative directory.
4127 cp "$am_depcomp" conftest.dir
4129 # We will build objects and dependencies in a subdirectory because
4130 # it helps to detect inapplicable dependency modes. For instance
4131 # both Tru64's cc and ICC support -MD to output dependencies as a
4132 # side effect of compilation, but ICC will put the dependencies in
4133 # the current directory while Tru64 will put them in the object
4137 am_cv_CXX_dependencies_compiler_type=none
4138 if test "$am_compiler_list" = ""; then
4139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4142 case " $depcc " in #(
4143 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4146 for depmode in $am_compiler_list; do
4147 # Setup a source with many dependencies, because some compilers
4148 # like to wrap large dependency lists on column 80 (with \), and
4149 # we should not choose a depcomp mode which is confused by this.
4151 # We need to recreate these files for each test, as the compiler may
4152 # overwrite some of them when testing with obscure command lines.
4153 # This happens at least with the AIX C compiler.
4155 for i in 1 2 3 4 5 6; do
4156 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4157 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4158 # Solaris 8's {/usr,}/bin/sh.
4159 touch sub/conftst$i.h
4161 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4163 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4164 # mode. It turns out that the SunPro C++ compiler does not properly
4165 # handle `-M -o', and we need to detect this. Also, some Intel
4166 # versions had trouble with output in subdirs
4167 am__obj=sub/conftest.${OBJEXT-o}
4168 am__minus_obj="-o $am__obj"
4171 # This depmode causes a compiler race in universal mode.
4172 test "$am__universal" = false || continue
4175 # after this tag, mechanisms are not by side-effect, so they'll
4176 # only be used when explicitly requested
4177 if test "x$enable_dependency_tracking" = xyes; then
4183 msvisualcpp | msvcmsys)
4184 # This compiler won't grok `-c -o', but also, the minuso test has
4185 # not run yet. These depmodes are late enough in the game, and
4186 # so weak that their functioning should not be impacted.
4187 am__obj=conftest.${OBJEXT-o}
4192 if depmode=$depmode \
4193 source=sub/conftest.c object=$am__obj \
4194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4195 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4196 >/dev/null 2>conftest.err &&
4197 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4198 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4199 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4200 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4201 # icc doesn't choke on unknown options, it will just issue warnings
4202 # or remarks (even with -Werror). So we grep stderr for any message
4203 # that says an option was ignored or not supported.
4204 # When given -MP, icc 7.0 and 7.1 complain thusly:
4205 # icc: Command line warning: ignoring option '-M'; no argument required
4206 # The diagnosis changed in icc 8.0:
4207 # icc: Command line remark: option '-MP' not supported
4208 if (grep 'ignoring option' conftest.err ||
4209 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4210 am_cv_CXX_dependencies_compiler_type=$depmode
4219 am_cv_CXX_dependencies_compiler_type=none
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4224 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4225 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4228 test "x$enable_dependency_tracking" != xno \
4229 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4230 am__fastdepCXX_TRUE=
4231 am__fastdepCXX_FALSE='#'
4233 am__fastdepCXX_TRUE='#'
4234 am__fastdepCXX_FALSE=
4239 ac_cpp='$CXXCPP $CPPFLAGS'
4240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4247 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4252 macro_version='2.2.6b'
4253 macro_revision='1.3017'
4267 ltmain="$ac_aux_dir/ltmain.sh"
4269 # Make sure we can run config.sub.
4270 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4271 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4274 $as_echo_n "checking build system type... " >&6; }
4275 if test "${ac_cv_build+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4278 ac_build_alias=$build_alias
4279 test "x$ac_build_alias" = x &&
4280 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4281 test "x$ac_build_alias" = x &&
4282 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4283 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4284 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4288 $as_echo "$ac_cv_build" >&6; }
4289 case $ac_cv_build in
4291 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4294 ac_save_IFS=$IFS; IFS='-'
4300 # Remember, the first character of IFS is used to create $*,
4301 # except with old shells:
4304 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4308 $as_echo_n "checking host system type... " >&6; }
4309 if test "${ac_cv_host+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 if test "x$host_alias" = x; then
4313 ac_cv_host=$ac_cv_build
4315 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4316 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4321 $as_echo "$ac_cv_host" >&6; }
4324 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4327 ac_save_IFS=$IFS; IFS='-'
4333 # Remember, the first character of IFS is used to create $*,
4334 # except with old shells:
4337 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4341 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4342 if test "${ac_cv_path_SED+set}" = set; then :
4343 $as_echo_n "(cached) " >&6
4345 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4346 for ac_i in 1 2 3 4 5 6 7; do
4347 ac_script="$ac_script$as_nl$ac_script"
4349 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4350 { ac_script=; unset ac_script;}
4351 if test -z "$SED"; then
4352 ac_path_SED_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in sed gsed; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4363 # Check for GNU ac_path_SED and select it if it is found.
4364 # Check for GNU $ac_path_SED
4365 case `"$ac_path_SED" --version 2>&1` in
4367 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4370 $as_echo_n 0123456789 >"conftest.in"
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo '' >> "conftest.nl"
4377 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 as_fn_arith $ac_count + 1 && ac_count=$as_val
4380 if test $ac_count -gt ${ac_path_SED_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_SED="$ac_path_SED"
4383 ac_path_SED_max=$ac_count
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 $ac_path_SED_found && break 3
4396 if test -z "$ac_cv_path_SED"; then
4397 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4405 $as_echo "$ac_cv_path_SED" >&6; }
4406 SED="$ac_cv_path_SED"
4409 test -z "$SED" && SED=sed
4410 Xsed="$SED -e 1s/^X//"
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4423 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4424 if test "${ac_cv_path_GREP+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4427 if test -z "$GREP"; then
4428 ac_path_GREP_found=false
4429 # Loop through the user's path and test for each of PROGNAME-LIST
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4434 test -z "$as_dir" && as_dir=.
4435 for ac_prog in grep ggrep; do
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4438 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4439 # Check for GNU ac_path_GREP and select it if it is found.
4440 # Check for GNU $ac_path_GREP
4441 case `"$ac_path_GREP" --version 2>&1` in
4443 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4446 $as_echo_n 0123456789 >"conftest.in"
4449 cat "conftest.in" "conftest.in" >"conftest.tmp"
4450 mv "conftest.tmp" "conftest.in"
4451 cp "conftest.in" "conftest.nl"
4452 $as_echo 'GREP' >> "conftest.nl"
4453 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455 as_fn_arith $ac_count + 1 && ac_count=$as_val
4456 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4457 # Best one so far, save it but keep looking for a better one
4458 ac_cv_path_GREP="$ac_path_GREP"
4459 ac_path_GREP_max=$ac_count
4461 # 10*(2^10) chars as input seems more than enough
4462 test $ac_count -gt 10 && break
4464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467 $ac_path_GREP_found && break 3
4472 if test -z "$ac_cv_path_GREP"; then
4473 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4476 ac_cv_path_GREP=$GREP
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4481 $as_echo "$ac_cv_path_GREP" >&6; }
4482 GREP="$ac_cv_path_GREP"
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4486 $as_echo_n "checking for egrep... " >&6; }
4487 if test "${ac_cv_path_EGREP+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4490 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4491 then ac_cv_path_EGREP="$GREP -E"
4493 if test -z "$EGREP"; then
4494 ac_path_EGREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in egrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4504 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4505 # Check for GNU ac_path_EGREP and select it if it is found.
4506 # Check for GNU $ac_path_EGREP
4507 case `"$ac_path_EGREP" --version 2>&1` in
4509 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4512 $as_echo_n 0123456789 >"conftest.in"
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'EGREP' >> "conftest.nl"
4519 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 as_fn_arith $ac_count + 1 && ac_count=$as_val
4522 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_EGREP="$ac_path_EGREP"
4525 ac_path_EGREP_max=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4533 $ac_path_EGREP_found && break 3
4538 if test -z "$ac_cv_path_EGREP"; then
4539 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542 ac_cv_path_EGREP=$EGREP
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4548 $as_echo "$ac_cv_path_EGREP" >&6; }
4549 EGREP="$ac_cv_path_EGREP"
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4553 $as_echo_n "checking for fgrep... " >&6; }
4554 if test "${ac_cv_path_FGREP+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4557 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4558 then ac_cv_path_FGREP="$GREP -F"
4560 if test -z "$FGREP"; then
4561 ac_path_FGREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in fgrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4571 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4572 # Check for GNU ac_path_FGREP and select it if it is found.
4573 # Check for GNU $ac_path_FGREP
4574 case `"$ac_path_FGREP" --version 2>&1` in
4576 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4579 $as_echo_n 0123456789 >"conftest.in"
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'FGREP' >> "conftest.nl"
4586 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_FGREP="$ac_path_FGREP"
4592 ac_path_FGREP_max=$ac_count
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4600 $ac_path_FGREP_found && break 3
4605 if test -z "$ac_cv_path_FGREP"; then
4606 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4609 ac_cv_path_FGREP=$FGREP
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4615 $as_echo "$ac_cv_path_FGREP" >&6; }
4616 FGREP="$ac_cv_path_FGREP"
4619 test -z "$GREP" && GREP=grep
4639 # Check whether --with-gnu-ld was given.
4640 if test "${with_gnu_ld+set}" = set; then :
4641 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4647 if test "$GCC" = yes; then
4648 # Check if gcc -print-prog-name=ld gives a path.
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4650 $as_echo_n "checking for ld used by $CC... " >&6; }
4653 # gcc leaves a trailing carriage return which upsets mingw
4654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4659 # Accept absolute paths.
4661 re_direlt='/[^/][^/]*/\.\./'
4662 # Canonicalize the pathname of ld
4663 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4664 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4665 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4667 test -z "$LD" && LD="$ac_prog"
4670 # If it fails, then pretend we aren't using GCC.
4674 # If it is relative, then search for the first ld in PATH.
4678 elif test "$with_gnu_ld" = yes; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4680 $as_echo_n "checking for GNU ld... " >&6; }
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4683 $as_echo_n "checking for non-GNU ld... " >&6; }
4685 if test "${lt_cv_path_LD+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -z "$LD"; then
4689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4690 for ac_dir in $PATH; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4694 lt_cv_path_LD="$ac_dir/$ac_prog"
4695 # Check to see if the program is GNU ld. I'd rather use --version,
4696 # but apparently some variants of GNU ld only accept -v.
4697 # Break only if it was the GNU/non-GNU ld that we prefer.
4698 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4699 *GNU* | *'with BFD'*)
4700 test "$with_gnu_ld" != no && break
4703 test "$with_gnu_ld" != yes && break
4710 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4715 if test -n "$LD"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4717 $as_echo "$LD" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4722 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4724 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4725 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4728 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4729 case `$LD -v 2>&1 </dev/null` in
4730 *GNU* | *'with BFD'*)
4731 lt_cv_prog_gnu_ld=yes
4734 lt_cv_prog_gnu_ld=no
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4739 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4740 with_gnu_ld=$lt_cv_prog_gnu_ld
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4751 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4752 if test "${lt_cv_path_NM+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4755 if test -n "$NM"; then
4756 # Let the user override the test.
4759 lt_nm_to_check="${ac_tool_prefix}nm"
4760 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4761 lt_nm_to_check="$lt_nm_to_check nm"
4763 for lt_tmp_nm in $lt_nm_to_check; do
4764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4765 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4767 test -z "$ac_dir" && ac_dir=.
4768 tmp_nm="$ac_dir/$lt_tmp_nm"
4769 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4770 # Check to see if the nm accepts a BSD-compat flag.
4771 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4772 # nm: unknown option "B" ignored
4773 # Tru64's nm complains that /dev/null is an invalid object file
4774 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4775 */dev/null* | *'Invalid file or object type'*)
4776 lt_cv_path_NM="$tmp_nm -B"
4780 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4782 lt_cv_path_NM="$tmp_nm -p"
4786 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4787 continue # so that we can try to find one that supports BSD flags
4796 : ${lt_cv_path_NM=no}
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4800 $as_echo "$lt_cv_path_NM" >&6; }
4801 if test "$lt_cv_path_NM" != "no"; then
4804 # Didn't find any BSD compatible name lister, look for dumpbin.
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4815 if test -n "$DUMPBIN"; then
4816 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 DUMPBIN=$ac_cv_prog_DUMPBIN
4836 if test -n "$DUMPBIN"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4838 $as_echo "$DUMPBIN" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4845 test -n "$DUMPBIN" && break
4848 if test -z "$DUMPBIN"; then
4849 ac_ct_DUMPBIN=$DUMPBIN
4850 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -n "$ac_ct_DUMPBIN"; then
4860 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4880 if test -n "$ac_ct_DUMPBIN"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4882 $as_echo "$ac_ct_DUMPBIN" >&6; }
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4889 test -n "$ac_ct_DUMPBIN" && break
4892 if test "x$ac_ct_DUMPBIN" = x; then
4895 case $cross_compiling:$ac_tool_warned in
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4901 DUMPBIN=$ac_ct_DUMPBIN
4906 if test "$DUMPBIN" != ":"; then
4910 test -z "$NM" && NM=nm
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4918 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4919 if test "${lt_cv_nm_interface+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 lt_cv_nm_interface="BSD nm"
4923 echo "int some_variable = 0;" > conftest.$ac_ext
4924 (eval echo "\"\$as_me:4924: $ac_compile\"" >&5)
4925 (eval "$ac_compile" 2>conftest.err)
4926 cat conftest.err >&5
4927 (eval echo "\"\$as_me:4927: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4928 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4929 cat conftest.err >&5
4930 (eval echo "\"\$as_me:4930: output\"" >&5)
4931 cat conftest.out >&5
4932 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4933 lt_cv_nm_interface="MS dumpbin"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4938 $as_echo "$lt_cv_nm_interface" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4941 $as_echo_n "checking whether ln -s works... " >&6; }
4943 if test "$LN_S" = "ln -s"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4945 $as_echo "yes" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4948 $as_echo "no, using $LN_S" >&6; }
4951 # find the maximum length of command line arguments
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4953 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4954 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4962 # On DJGPP, this test can blow up pretty badly due to problems in libc
4963 # (any single argument exceeding 2000 bytes causes a buffer overrun
4964 # during glob expansion). Even if it were fixed, the result of this
4965 # check would be larger than it should be.
4966 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4970 # Under GNU Hurd, this test is not required because there is
4971 # no limit to the length of command line arguments.
4972 # Libtool will interpret -1 as no limit whatsoever
4973 lt_cv_sys_max_cmd_len=-1;
4976 cygwin* | mingw* | cegcc*)
4977 # On Win9x/ME, this test blows up -- it succeeds, but takes
4978 # about 5 minutes as the teststring grows exponentially.
4979 # Worse, since 9x/ME are not pre-emptively multitasking,
4980 # you end up with a "frozen" computer, even though with patience
4981 # the test eventually succeeds (with a max line length of 256k).
4982 # Instead, let's just punt: use the minimum linelength reported by
4983 # all of the supported platforms: 8192 (on NT/2K/XP).
4984 lt_cv_sys_max_cmd_len=8192;
4988 # On AmigaOS with pdksh, this test takes hours, literally.
4989 # So we just punt and use a minimum line length of 8192.
4990 lt_cv_sys_max_cmd_len=8192;
4993 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4994 # This has been around since 386BSD, at least. Likely further.
4995 if test -x /sbin/sysctl; then
4996 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4997 elif test -x /usr/sbin/sysctl; then
4998 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5000 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5002 # And add a safety zone
5003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5008 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5009 lt_cv_sys_max_cmd_len=196608
5013 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5014 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5015 # nice to cause kernel panics so lets avoid the loop below.
5016 # First set a reasonable default.
5017 lt_cv_sys_max_cmd_len=16384
5019 if test -x /sbin/sysconfig; then
5020 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5021 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5026 lt_cv_sys_max_cmd_len=102400
5028 sysv5* | sco5v6* | sysv4.2uw2*)
5029 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5030 if test -n "$kargmax"; then
5031 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5033 lt_cv_sys_max_cmd_len=32768
5037 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5038 if test -n "$lt_cv_sys_max_cmd_len"; then
5039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5042 # Make teststring a little bigger before we do anything with it.
5043 # a 1K string should be a reasonable start.
5044 for i in 1 2 3 4 5 6 7 8 ; do
5045 teststring=$teststring$teststring
5047 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5048 # If test is not a shell built-in, we'll probably end up computing a
5049 # maximum length that is only half of the actual maximum length, but
5051 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5052 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5053 test $i != 17 # 1/2 MB should be enough
5056 teststring=$teststring$teststring
5058 # Only check the string length outside the loop.
5059 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5061 # Add a significant safety factor because C++ compilers can tack on
5062 # massive amounts of additional arguments before passing them to the
5063 # linker. It appears as though 1/2 is a usable value.
5064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5071 if test -n $lt_cv_sys_max_cmd_len ; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5073 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5076 $as_echo "none" >&6; }
5078 max_cmd_len=$lt_cv_sys_max_cmd_len
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5090 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5091 # Try some XSI features
5094 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5096 && eval 'test $(( 1 + 1 )) -eq 2 \
5097 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5100 $as_echo "$xsi_shell" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5104 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5106 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5108 && lt_shell_append=yes
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5110 $as_echo "$lt_shell_append" >&6; }
5113 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5123 # test EBCDIC or ASCII
5124 case `echo X|tr X '\101'` in
5125 A) # ASCII based system
5126 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5127 lt_SP2NL='tr \040 \012'
5128 lt_NL2SP='tr \015\012 \040\040'
5130 *) # EBCDIC based system
5131 lt_SP2NL='tr \100 \n'
5132 lt_NL2SP='tr \r\n \100\100'
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5145 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5146 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5149 lt_cv_ld_reload_flag='-r'
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5152 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5153 reload_flag=$lt_cv_ld_reload_flag
5154 case $reload_flag in
5156 *) reload_flag=" $reload_flag" ;;
5158 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5161 if test "$GCC" = yes; then
5162 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5177 if test -n "$ac_tool_prefix"; then
5178 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$OBJDUMP"; then
5186 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 OBJDUMP=$ac_cv_prog_OBJDUMP
5206 if test -n "$OBJDUMP"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5208 $as_echo "$OBJDUMP" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5216 if test -z "$ac_cv_prog_OBJDUMP"; then
5217 ac_ct_OBJDUMP=$OBJDUMP
5218 # Extract the first word of "objdump", so it can be a program name with args.
5219 set dummy objdump; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -n "$ac_ct_OBJDUMP"; then
5226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5246 if test -n "$ac_ct_OBJDUMP"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5248 $as_echo "$ac_ct_OBJDUMP" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5254 if test "x$ac_ct_OBJDUMP" = x; then
5257 case $cross_compiling:$ac_tool_warned in
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261 ac_tool_warned=yes ;;
5263 OBJDUMP=$ac_ct_OBJDUMP
5266 OBJDUMP="$ac_cv_prog_OBJDUMP"
5269 test -z "$OBJDUMP" && OBJDUMP=objdump
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5280 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5281 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5284 lt_cv_file_magic_cmd='$MAGIC_CMD'
5285 lt_cv_file_magic_test_file=
5286 lt_cv_deplibs_check_method='unknown'
5287 # Need to set the preceding variable on all platforms that support
5288 # interlibrary dependencies.
5289 # 'none' -- dependencies not supported.
5290 # `unknown' -- same as none, but documents that we really don't know.
5291 # 'pass_all' -- all dependencies passed with no checks.
5292 # 'test_compile' -- check by making test program.
5293 # 'file_magic [[regex]]' -- check by looking for files in library path
5294 # which responds to the $file_magic_cmd with a given extended regex.
5295 # If you have `file' or equivalent on your system and you're not sure
5296 # whether `pass_all' will *always* work, you probably want this one.
5300 lt_cv_deplibs_check_method=pass_all
5304 lt_cv_deplibs_check_method=pass_all
5308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5309 lt_cv_file_magic_cmd='/usr/bin/file -L'
5310 lt_cv_file_magic_test_file=/shlib/libc.so
5314 # func_win32_libid is a shell function defined in ltmain.sh
5315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5316 lt_cv_file_magic_cmd='func_win32_libid'
5320 # Base MSYS/MinGW do not provide the 'file' command needed by
5321 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5322 # unless we find 'file', for example because we are cross-compiling.
5323 if ( file / ) >/dev/null 2>&1; then
5324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5325 lt_cv_file_magic_cmd='func_win32_libid'
5327 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5328 lt_cv_file_magic_cmd='$OBJDUMP -f'
5333 # use the weaker test based on 'objdump'. See mingw*.
5334 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5335 lt_cv_file_magic_cmd='$OBJDUMP -f'
5338 darwin* | rhapsody*)
5339 lt_cv_deplibs_check_method=pass_all
5342 freebsd* | dragonfly*)
5343 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5346 # Not sure whether the presence of OpenBSD here was a mistake.
5347 # Let's accept both of them until this is cleared up.
5348 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5349 lt_cv_file_magic_cmd=/usr/bin/file
5350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5354 lt_cv_deplibs_check_method=pass_all
5359 lt_cv_deplibs_check_method=pass_all
5362 hpux10.20* | hpux11*)
5363 lt_cv_file_magic_cmd=/usr/bin/file
5366 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5367 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5370 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]'
5371 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5375 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5381 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5385 irix5* | irix6* | nonstopux*)
5387 *-32|*"-32 ") libmagic=32-bit;;
5388 *-n32|*"-n32 ") libmagic=N32;;
5389 *-64|*"-64 ") libmagic=64-bit;;
5390 *) libmagic=never-match;;
5392 lt_cv_deplibs_check_method=pass_all
5395 # This must be Linux ELF.
5396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5397 lt_cv_deplibs_check_method=pass_all
5400 netbsd* | netbsdelf*-gnu)
5401 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5410 lt_cv_file_magic_cmd=/usr/bin/file
5411 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5415 lt_cv_deplibs_check_method=pass_all
5419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5426 osf3* | osf4* | osf5*)
5427 lt_cv_deplibs_check_method=pass_all
5431 lt_cv_deplibs_check_method=pass_all
5435 lt_cv_deplibs_check_method=pass_all
5438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5439 lt_cv_deplibs_check_method=pass_all
5443 case $host_vendor in
5445 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]'
5446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5449 lt_cv_deplibs_check_method=pass_all
5452 lt_cv_file_magic_cmd='/bin/file'
5453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5456 lt_cv_file_magic_cmd='/bin/file'
5457 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5458 lt_cv_file_magic_test_file=/lib/libc.so
5461 lt_cv_deplibs_check_method=pass_all
5464 lt_cv_deplibs_check_method=pass_all
5470 lt_cv_deplibs_check_method=pass_all
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5476 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5477 file_magic_cmd=$lt_cv_file_magic_cmd
5478 deplibs_check_method=$lt_cv_deplibs_check_method
5479 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5492 if test -n "$ac_tool_prefix"; then
5493 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5494 set dummy ${ac_tool_prefix}ar; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_prog_AR+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5500 if test -n "$AR"; then
5501 ac_cv_prog_AR="$AR" # Let the user override the test.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_AR="${ac_tool_prefix}ar"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 if test -n "$AR"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5523 $as_echo "$AR" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5531 if test -z "$ac_cv_prog_AR"; then
5533 # Extract the first word of "ar", so it can be a program name with args.
5534 set dummy ar; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5540 if test -n "$ac_ct_AR"; then
5541 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_ac_ct_AR="ar"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5561 if test -n "$ac_ct_AR"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5563 $as_echo "$ac_ct_AR" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5569 if test "x$ac_ct_AR" = x; then
5572 case $cross_compiling:$ac_tool_warned in
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576 ac_tool_warned=yes ;;
5584 test -z "$AR" && AR=ar
5585 test -z "$AR_FLAGS" && AR_FLAGS=cru
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}strip; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_prog_STRIP+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$STRIP"; then
5606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 STRIP=$ac_cv_prog_STRIP
5626 if test -n "$STRIP"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5628 $as_echo "$STRIP" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5636 if test -z "$ac_cv_prog_STRIP"; then
5638 # Extract the first word of "strip", so it can be a program name with args.
5639 set dummy strip; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5645 if test -n "$ac_ct_STRIP"; then
5646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_ac_ct_STRIP="strip"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5666 if test -n "$ac_ct_STRIP"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5668 $as_echo "$ac_ct_STRIP" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5674 if test "x$ac_ct_STRIP" = x; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5686 STRIP="$ac_cv_prog_STRIP"
5689 test -z "$STRIP" && STRIP=:
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5704 if test -n "$RANLIB"; then
5705 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 RANLIB=$ac_cv_prog_RANLIB
5725 if test -n "$RANLIB"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5727 $as_echo "$RANLIB" >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5735 if test -z "$ac_cv_prog_RANLIB"; then
5736 ac_ct_RANLIB=$RANLIB
5737 # Extract the first word of "ranlib", so it can be a program name with args.
5738 set dummy ranlib; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 if test -n "$ac_ct_RANLIB"; then
5745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754 ac_cv_prog_ac_ct_RANLIB="ranlib"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5765 if test -n "$ac_ct_RANLIB"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5767 $as_echo "$ac_ct_RANLIB" >&6; }
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5773 if test "x$ac_ct_RANLIB" = x; then
5776 case $cross_compiling:$ac_tool_warned in
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5782 RANLIB=$ac_ct_RANLIB
5785 RANLIB="$ac_cv_prog_RANLIB"
5788 test -z "$RANLIB" && RANLIB=:
5795 # Determine commands to create old-style static archives.
5796 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5797 old_postinstall_cmds='chmod 644 $oldlib'
5798 old_postuninstall_cmds=
5800 if test -n "$RANLIB"; then
5803 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5806 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5809 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5845 # If no C compiler was specified, use CC.
5848 # If no C compiler flags were specified, use CFLAGS.
5849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5851 # Allow CC to be a program name with arguments.
5855 # Check for command to grab the raw symbol name followed by C symbol from nm.
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5857 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5858 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5862 # These are sane defaults that work on at least a few old systems.
5863 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5865 # Character class describing NM global symbol codes.
5866 symcode='[BCDEGRST]'
5868 # Regexp to match symbols that can be accessed directly from C.
5869 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5871 # Define system-specific variables.
5876 cygwin* | mingw* | pw32* | cegcc*)
5877 symcode='[ABCDGISTW]'
5880 if test "$host_cpu" = ia64; then
5881 symcode='[ABCDEGRST]'
5885 symcode='[BCDEGRST]'
5888 symcode='[BCDEGQRST]'
5899 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5907 # If we're using GNU nm, then use its standard symbol codes.
5908 case `$NM -V 2>&1` in
5909 *GNU* | *'with BFD'*)
5910 symcode='[ABCDGIRSTW]' ;;
5913 # Transform an extracted symbol line into a proper C declaration.
5914 # Some systems (esp. on ia64) link data and code symbols differently,
5915 # so use this general approach.
5916 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5918 # Transform an extracted symbol line into symbol name and symbol address
5919 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5922 # Handle CRLF in mingw tool chain
5926 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5930 # Try without a prefix underscore, then with it.
5931 for ac_symprfx in "" "_"; do
5933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5934 symxfrm="\\1 $ac_symprfx\\2 \\2"
5936 # Write the raw and C identifiers.
5937 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5938 # Fake it for dumpbin and say T for any non-static function
5939 # and D for any global variable.
5940 # Also find C++ and __fastcall symbols from MSVC++,
5941 # which start with @ or ?.
5942 lt_cv_sys_global_symbol_pipe="$AWK '"\
5943 " {last_section=section; section=\$ 3};"\
5944 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5945 " \$ 0!~/External *\|/{next};"\
5946 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5947 " {if(hide[section]) next};"\
5948 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5949 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5950 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5951 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5952 " ' prfx=^$ac_symprfx"
5954 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5957 # Check to see that the pipe works correctly.
5961 cat > conftest.$ac_ext <<_LT_EOF
5966 void nm_test_func(void);
5967 void nm_test_func(void){}
5971 int main(){nm_test_var='a';nm_test_func();return(0);}
5974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5975 (eval $ac_compile) 2>&5
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; }; then
5979 # Now try to grab the symbols.
5981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5982 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985 test $ac_status = 0; } && test -s "$nlist"; then
5986 # Try sorting and uniquifying the output.
5987 if sort "$nlist" | uniq > "$nlist"T; then
5988 mv -f "$nlist"T "$nlist"
5993 # Make sure that we snagged all the symbols we need.
5994 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5995 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5996 cat <<_LT_EOF > conftest.$ac_ext
6002 # Now generate the symbol file.
6003 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6005 cat <<_LT_EOF >> conftest.$ac_ext
6007 /* The mapping between symbol names and symbols. */
6012 lt__PROGRAM__LTX_preloaded_symbols[] =
6014 { "@PROGRAM@", (void *) 0 },
6016 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6017 cat <<\_LT_EOF >> conftest.$ac_ext
6021 /* This works around a problem in FreeBSD linker */
6022 #ifdef FREEBSD_WORKAROUND
6023 static const void *lt_preloaded_setup() {
6024 return lt__PROGRAM__LTX_preloaded_symbols;
6032 # Now try linking the two files.
6033 mv conftest.$ac_objext conftstm.$ac_objext
6034 lt_save_LIBS="$LIBS"
6035 lt_save_CFLAGS="$CFLAGS"
6036 LIBS="conftstm.$ac_objext"
6037 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6039 (eval $ac_link) 2>&5
6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6045 LIBS="$lt_save_LIBS"
6046 CFLAGS="$lt_save_CFLAGS"
6048 echo "cannot find nm_test_func in $nlist" >&5
6051 echo "cannot find nm_test_var in $nlist" >&5
6054 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6057 echo "$progname: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6060 rm -rf conftest* conftst*
6062 # Do not use the global_symbol_pipe unless it works.
6063 if test "$pipe_works" = yes; then
6066 lt_cv_sys_global_symbol_pipe=
6072 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6073 lt_cv_sys_global_symbol_to_cdecl=
6075 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6077 $as_echo "failed" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6080 $as_echo "ok" >&6; }
6105 # Check whether --enable-libtool-lock was given.
6106 if test "${enable_libtool_lock+set}" = set; then :
6107 enableval=$enable_libtool_lock;
6110 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6112 # Some flags need to be propagated to the compiler or linker for good
6116 # Find out which ABI we are using.
6117 echo 'int i;' > conftest.$ac_ext
6118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6119 (eval $ac_compile) 2>&5
6121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122 test $ac_status = 0; }; then
6123 case `/usr/bin/file conftest.$ac_objext` in
6135 # Find out which ABI we are using.
6136 echo '#line 6136 "configure"' > conftest.$ac_ext
6137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6138 (eval $ac_compile) 2>&5
6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141 test $ac_status = 0; }; then
6142 if test "$lt_cv_prog_gnu_ld" = yes; then
6143 case `/usr/bin/file conftest.$ac_objext` in
6145 LD="${LD-ld} -melf32bsmip"
6148 LD="${LD-ld} -melf32bmipn32"
6151 LD="${LD-ld} -melf64bmip"
6155 case `/usr/bin/file conftest.$ac_objext` in
6171 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6172 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6173 # Find out which ABI we are using.
6174 echo 'int i;' > conftest.$ac_ext
6175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176 (eval $ac_compile) 2>&5
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }; then
6180 case `/usr/bin/file conftest.o` in
6183 x86_64-*kfreebsd*-gnu)
6184 LD="${LD-ld} -m elf_i386_fbsd"
6187 LD="${LD-ld} -m elf_i386"
6189 ppc64-*linux*|powerpc64-*linux*)
6190 LD="${LD-ld} -m elf32ppclinux"
6193 LD="${LD-ld} -m elf_s390"
6196 LD="${LD-ld} -m elf32_sparc"
6202 x86_64-*kfreebsd*-gnu)
6203 LD="${LD-ld} -m elf_x86_64_fbsd"
6206 LD="${LD-ld} -m elf_x86_64"
6208 ppc*-*linux*|powerpc*-*linux*)
6209 LD="${LD-ld} -m elf64ppc"
6211 s390*-*linux*|s390*-*tpf*)
6212 LD="${LD-ld} -m elf64_s390"
6215 LD="${LD-ld} -m elf64_sparc"
6225 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6226 SAVE_CFLAGS="$CFLAGS"
6227 CFLAGS="$CFLAGS -belf"
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6229 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6230 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
6234 ac_cpp='$CPP $CPPFLAGS'
6235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6250 if ac_fn_c_try_link "$LINENO"; then :
6251 lt_cv_cc_needs_belf=yes
6253 lt_cv_cc_needs_belf=no
6255 rm -f core conftest.err conftest.$ac_objext \
6256 conftest$ac_exeext conftest.$ac_ext
6258 ac_cpp='$CPP $CPPFLAGS'
6259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6265 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6266 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6267 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6268 CFLAGS="$SAVE_CFLAGS"
6272 # Find out which ABI we are using.
6273 echo 'int i;' > conftest.$ac_ext
6274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6275 (eval $ac_compile) 2>&5
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }; then
6279 case `/usr/bin/file conftest.o` in
6281 case $lt_cv_prog_gnu_ld in
6282 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6284 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6296 need_locks="$enable_libtool_lock"
6300 rhapsody* | darwin*)
6301 if test -n "$ac_tool_prefix"; then
6302 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6309 if test -n "$DSYMUTIL"; then
6310 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6330 if test -n "$DSYMUTIL"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6332 $as_echo "$DSYMUTIL" >&6; }
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6340 if test -z "$ac_cv_prog_DSYMUTIL"; then
6341 ac_ct_DSYMUTIL=$DSYMUTIL
6342 # Extract the first word of "dsymutil", so it can be a program name with args.
6343 set dummy dsymutil; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6349 if test -n "$ac_ct_DSYMUTIL"; then
6350 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6370 if test -n "$ac_ct_DSYMUTIL"; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6372 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6378 if test "x$ac_ct_DSYMUTIL" = x; then
6381 case $cross_compiling:$ac_tool_warned in
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6387 DSYMUTIL=$ac_ct_DSYMUTIL
6390 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6393 if test -n "$ac_tool_prefix"; then
6394 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6401 if test -n "$NMEDIT"; then
6402 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 NMEDIT=$ac_cv_prog_NMEDIT
6422 if test -n "$NMEDIT"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6424 $as_echo "$NMEDIT" >&6; }
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6432 if test -z "$ac_cv_prog_NMEDIT"; then
6433 ac_ct_NMEDIT=$NMEDIT
6434 # Extract the first word of "nmedit", so it can be a program name with args.
6435 set dummy nmedit; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6441 if test -n "$ac_ct_NMEDIT"; then
6442 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6462 if test -n "$ac_ct_NMEDIT"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6464 $as_echo "$ac_ct_NMEDIT" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6470 if test "x$ac_ct_NMEDIT" = x; then
6473 case $cross_compiling:$ac_tool_warned in
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6479 NMEDIT=$ac_ct_NMEDIT
6482 NMEDIT="$ac_cv_prog_NMEDIT"
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if test "${ac_cv_prog_LIPO+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6493 if test -n "$LIPO"; then
6494 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 LIPO=$ac_cv_prog_LIPO
6514 if test -n "$LIPO"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6516 $as_echo "$LIPO" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6524 if test -z "$ac_cv_prog_LIPO"; then
6526 # Extract the first word of "lipo", so it can be a program name with args.
6527 set dummy lipo; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6533 if test -n "$ac_ct_LIPO"; then
6534 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_ac_ct_LIPO="lipo"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6554 if test -n "$ac_ct_LIPO"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6556 $as_echo "$ac_ct_LIPO" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6562 if test "x$ac_ct_LIPO" = x; then
6565 case $cross_compiling:$ac_tool_warned in
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6574 LIPO="$ac_cv_prog_LIPO"
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}otool; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6585 if test -n "$OTOOL"; then
6586 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 OTOOL=$ac_cv_prog_OTOOL
6606 if test -n "$OTOOL"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6608 $as_echo "$OTOOL" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6616 if test -z "$ac_cv_prog_OTOOL"; then
6618 # Extract the first word of "otool", so it can be a program name with args.
6619 set dummy otool; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
6625 if test -n "$ac_ct_OTOOL"; then
6626 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_prog_ac_ct_OTOOL="otool"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6646 if test -n "$ac_ct_OTOOL"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6648 $as_echo "$ac_ct_OTOOL" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6654 if test "x$ac_ct_OTOOL" = x; then
6657 case $cross_compiling:$ac_tool_warned in
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6666 OTOOL="$ac_cv_prog_OTOOL"
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
6677 if test -n "$OTOOL64"; then
6678 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 OTOOL64=$ac_cv_prog_OTOOL64
6698 if test -n "$OTOOL64"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6700 $as_echo "$OTOOL64" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6708 if test -z "$ac_cv_prog_OTOOL64"; then
6709 ac_ct_OTOOL64=$OTOOL64
6710 # Extract the first word of "otool64", so it can be a program name with args.
6711 set dummy otool64; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6715 $as_echo_n "(cached) " >&6
6717 if test -n "$ac_ct_OTOOL64"; then
6718 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_prog_ac_ct_OTOOL64="otool64"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6738 if test -n "$ac_ct_OTOOL64"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6740 $as_echo "$ac_ct_OTOOL64" >&6; }
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6746 if test "x$ac_ct_OTOOL64" = x; then
6749 case $cross_compiling:$ac_tool_warned in
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6755 OTOOL64=$ac_ct_OTOOL64
6758 OTOOL64="$ac_cv_prog_OTOOL64"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6788 $as_echo_n "checking for -single_module linker flag... " >&6; }
6789 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6792 lt_cv_apple_cc_single_mod=no
6793 if test -z "${LT_MULTI_MODULE}"; then
6794 # By default we will add the -single_module flag. You can override
6795 # by either setting the environment variable LT_MULTI_MODULE
6796 # non-empty at configure time, or by adding -multi_module to the
6798 rm -rf libconftest.dylib*
6799 echo "int foo(void){return 1;}" > conftest.c
6800 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6801 -dynamiclib -Wl,-single_module conftest.c" >&5
6802 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6803 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6805 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6806 lt_cv_apple_cc_single_mod=yes
6808 cat conftest.err >&5
6810 rm -rf libconftest.dylib*
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6815 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6817 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6818 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6821 lt_cv_ld_exported_symbols_list=no
6822 save_LDFLAGS=$LDFLAGS
6823 echo "_main" > conftest.sym
6824 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6836 if ac_fn_c_try_link "$LINENO"; then :
6837 lt_cv_ld_exported_symbols_list=yes
6839 lt_cv_ld_exported_symbols_list=no
6841 rm -f core conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
6843 LDFLAGS="$save_LDFLAGS"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6847 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6849 rhapsody* | darwin1.[012])
6850 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6852 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6853 darwin*) # darwin 5.x on
6854 # if running on 10.5 or later, the deployment target defaults
6855 # to the OS version, if on x86, and 10.4, the deployment
6856 # target defaults to 10.4. Don't you love it?
6857 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6858 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6859 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6861 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6863 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6867 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6868 _lt_dar_single_mod='$single_module'
6870 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6871 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6873 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6875 if test "$DSYMUTIL" != ":"; then
6876 _lt_dsymutil='~$DSYMUTIL $lib || :'
6884 ac_cpp='$CPP $CPPFLAGS'
6885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6889 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6890 # On Suns, sometimes $CPP names a directory.
6891 if test -n "$CPP" && test -d "$CPP"; then
6894 if test -z "$CPP"; then
6895 if test "${ac_cv_prog_CPP+set}" = set; then :
6896 $as_echo_n "(cached) " >&6
6898 # Double quotes because CPP needs to be expanded
6899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6902 for ac_c_preproc_warn_flag in '' yes
6904 # Use a header file that comes with gcc, so configuring glibc
6905 # with a fresh cross-compiler works.
6906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6907 # <limits.h> exists even on freestanding compilers.
6908 # On the NeXT, cc -E runs the code through the compiler's parser,
6909 # not just through cpp. "Syntax error" is here to catch this case.
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6913 # include <limits.h>
6915 # include <assert.h>
6919 if ac_fn_c_try_cpp "$LINENO"; then :
6922 # Broken: fails on valid input.
6925 rm -f conftest.err conftest.$ac_ext
6927 # OK, works on sane cases. Now check whether nonexistent headers
6928 # can be detected and how.
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 #include <ac_nonexistent.h>
6933 if ac_fn_c_try_cpp "$LINENO"; then :
6934 # Broken: success on invalid input.
6937 # Passes both tests.
6941 rm -f conftest.err conftest.$ac_ext
6944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6945 rm -f conftest.err conftest.$ac_ext
6946 if $ac_preproc_ok; then :
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6959 $as_echo "$CPP" >&6; }
6961 for ac_c_preproc_warn_flag in '' yes
6963 # Use a header file that comes with gcc, so configuring glibc
6964 # with a fresh cross-compiler works.
6965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6966 # <limits.h> exists even on freestanding compilers.
6967 # On the NeXT, cc -E runs the code through the compiler's parser,
6968 # not just through cpp. "Syntax error" is here to catch this case.
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6972 # include <limits.h>
6974 # include <assert.h>
6978 if ac_fn_c_try_cpp "$LINENO"; then :
6981 # Broken: fails on valid input.
6984 rm -f conftest.err conftest.$ac_ext
6986 # OK, works on sane cases. Now check whether nonexistent headers
6987 # can be detected and how.
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6990 #include <ac_nonexistent.h>
6992 if ac_fn_c_try_cpp "$LINENO"; then :
6993 # Broken: success on invalid input.
6996 # Passes both tests.
7000 rm -f conftest.err conftest.$ac_ext
7003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7004 rm -f conftest.err conftest.$ac_ext
7005 if $ac_preproc_ok; then :
7008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7010 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7011 See \`config.log' for more details." "$LINENO" 5; }
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7022 $as_echo_n "checking for ANSI C header files... " >&6; }
7023 if test "${ac_cv_header_stdc+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 ac_cv_header_stdc=yes
7044 ac_cv_header_stdc=no
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 if test $ac_cv_header_stdc = yes; then
7049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7056 $EGREP "memchr" >/dev/null 2>&1; then :
7059 ac_cv_header_stdc=no
7065 if test $ac_cv_header_stdc = yes; then
7066 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "free" >/dev/null 2>&1; then :
7076 ac_cv_header_stdc=no
7082 if test $ac_cv_header_stdc = yes; then
7083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084 if test "$cross_compiling" = yes; then :
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7091 #if ((' ' & 0x0FF) == 0x020)
7092 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7093 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7095 # define ISLOWER(c) \
7096 (('a' <= (c) && (c) <= 'i') \
7097 || ('j' <= (c) && (c) <= 'r') \
7098 || ('s' <= (c) && (c) <= 'z'))
7099 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7102 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7107 for (i = 0; i < 256; i++)
7108 if (XOR (islower (i), ISLOWER (i))
7109 || toupper (i) != TOUPPER (i))
7114 if ac_fn_c_try_run "$LINENO"; then :
7117 ac_cv_header_stdc=no
7119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7120 conftest.$ac_objext conftest.beam conftest.$ac_ext
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7126 $as_echo "$ac_cv_header_stdc" >&6; }
7127 if test $ac_cv_header_stdc = yes; then
7129 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7133 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7134 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7135 inttypes.h stdint.h unistd.h
7137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7138 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7140 eval as_val=\$$as_ac_Header
7141 if test "x$as_val" = x""yes; then :
7142 cat >>confdefs.h <<_ACEOF
7143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7151 for ac_header in dlfcn.h
7153 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7155 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7156 cat >>confdefs.h <<_ACEOF
7157 #define HAVE_DLFCN_H 1
7167 ac_cpp='$CXXCPP $CPPFLAGS'
7168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7171 if test -z "$CXX"; then
7172 if test -n "$CCC"; then
7175 if test -n "$ac_tool_prefix"; then
7176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_CXX+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7185 if test -n "$CXX"; then
7186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 if test -n "$CXX"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7208 $as_echo "$CXX" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7215 test -n "$CXX" && break
7218 if test -z "$CXX"; then
7220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7222 # Extract the first word of "$ac_prog", so it can be a program name with args.
7223 set dummy $ac_prog; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$ac_ct_CXX"; then
7230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_prog_ac_ct_CXX="$ac_prog"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7250 if test -n "$ac_ct_CXX"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7252 $as_echo "$ac_ct_CXX" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7259 test -n "$ac_ct_CXX" && break
7262 if test "x$ac_ct_CXX" = x; then
7265 case $cross_compiling:$ac_tool_warned in
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7277 # Provide some information about the compiler.
7278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7281 for ac_option in --version -v -V -qversion; do
7282 { { ac_try="$ac_compiler $ac_option >&5"
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7288 $as_echo "$ac_try_echo"; } >&5
7289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7291 if test -s conftest.err; then
7293 ... rest of stderr output deleted ...
7294 10q' conftest.err >conftest.er1
7295 cat conftest.er1 >&5
7297 rm -f conftest.er1 conftest.err
7298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299 test $ac_status = 0; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7303 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7304 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7321 if ac_fn_cxx_try_compile "$LINENO"; then :
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7331 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7332 if test $ac_compiler_gnu = yes; then
7337 ac_test_CXXFLAGS=${CXXFLAGS+set}
7338 ac_save_CXXFLAGS=$CXXFLAGS
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7340 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7341 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7344 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7345 ac_cxx_werror_flag=yes
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7359 if ac_fn_cxx_try_compile "$LINENO"; then :
7360 ac_cv_prog_cxx_g=yes
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7374 if ac_fn_cxx_try_compile "$LINENO"; then :
7377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7390 if ac_fn_cxx_try_compile "$LINENO"; then :
7391 ac_cv_prog_cxx_g=yes
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7401 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7402 if test "$ac_test_CXXFLAGS" = set; then
7403 CXXFLAGS=$ac_save_CXXFLAGS
7404 elif test $ac_cv_prog_cxx_g = yes; then
7405 if test "$GXX" = yes; then
7411 if test "$GXX" = yes; then
7418 ac_cpp='$CXXCPP $CPPFLAGS'
7419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7423 depcc="$CXX" am_compiler_list=
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7426 $as_echo_n "checking dependency style of $depcc... " >&6; }
7427 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7431 # We make a subdir and do the tests there. Otherwise we can end up
7432 # making bogus files that we don't know about and never remove. For
7433 # instance it was reported that on HP-UX the gcc test will end up
7434 # making a dummy file named `D' -- because `-MD' means `put the output
7437 # Copy depcomp to subdir because otherwise we won't find it if we're
7438 # using a relative directory.
7439 cp "$am_depcomp" conftest.dir
7441 # We will build objects and dependencies in a subdirectory because
7442 # it helps to detect inapplicable dependency modes. For instance
7443 # both Tru64's cc and ICC support -MD to output dependencies as a
7444 # side effect of compilation, but ICC will put the dependencies in
7445 # the current directory while Tru64 will put them in the object
7449 am_cv_CXX_dependencies_compiler_type=none
7450 if test "$am_compiler_list" = ""; then
7451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7454 case " $depcc " in #(
7455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7458 for depmode in $am_compiler_list; do
7459 # Setup a source with many dependencies, because some compilers
7460 # like to wrap large dependency lists on column 80 (with \), and
7461 # we should not choose a depcomp mode which is confused by this.
7463 # We need to recreate these files for each test, as the compiler may
7464 # overwrite some of them when testing with obscure command lines.
7465 # This happens at least with the AIX C compiler.
7467 for i in 1 2 3 4 5 6; do
7468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7470 # Solaris 8's {/usr,}/bin/sh.
7471 touch sub/conftst$i.h
7473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7476 # mode. It turns out that the SunPro C++ compiler does not properly
7477 # handle `-M -o', and we need to detect this. Also, some Intel
7478 # versions had trouble with output in subdirs
7479 am__obj=sub/conftest.${OBJEXT-o}
7480 am__minus_obj="-o $am__obj"
7483 # This depmode causes a compiler race in universal mode.
7484 test "$am__universal" = false || continue
7487 # after this tag, mechanisms are not by side-effect, so they'll
7488 # only be used when explicitly requested
7489 if test "x$enable_dependency_tracking" = xyes; then
7495 msvisualcpp | msvcmsys)
7496 # This compiler won't grok `-c -o', but also, the minuso test has
7497 # not run yet. These depmodes are late enough in the game, and
7498 # so weak that their functioning should not be impacted.
7499 am__obj=conftest.${OBJEXT-o}
7504 if depmode=$depmode \
7505 source=sub/conftest.c object=$am__obj \
7506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7508 >/dev/null 2>conftest.err &&
7509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7513 # icc doesn't choke on unknown options, it will just issue warnings
7514 # or remarks (even with -Werror). So we grep stderr for any message
7515 # that says an option was ignored or not supported.
7516 # When given -MP, icc 7.0 and 7.1 complain thusly:
7517 # icc: Command line warning: ignoring option '-M'; no argument required
7518 # The diagnosis changed in icc 8.0:
7519 # icc: Command line remark: option '-MP' not supported
7520 if (grep 'ignoring option' conftest.err ||
7521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7522 am_cv_CXX_dependencies_compiler_type=$depmode
7531 am_cv_CXX_dependencies_compiler_type=none
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7536 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7537 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7540 test "x$enable_dependency_tracking" != xno \
7541 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7542 am__fastdepCXX_TRUE=
7543 am__fastdepCXX_FALSE='#'
7545 am__fastdepCXX_TRUE='#'
7546 am__fastdepCXX_FALSE=
7550 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7551 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7552 (test "X$CXX" != "Xg++"))) ; then
7554 ac_cpp='$CXXCPP $CPPFLAGS'
7555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7559 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7560 if test -z "$CXXCPP"; then
7561 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7564 # Double quotes because CXXCPP needs to be expanded
7565 for CXXCPP in "$CXX -E" "/lib/cpp"
7568 for ac_cxx_preproc_warn_flag in '' yes
7570 # Use a header file that comes with gcc, so configuring glibc
7571 # with a fresh cross-compiler works.
7572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7573 # <limits.h> exists even on freestanding compilers.
7574 # On the NeXT, cc -E runs the code through the compiler's parser,
7575 # not just through cpp. "Syntax error" is here to catch this case.
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7579 # include <limits.h>
7581 # include <assert.h>
7585 if ac_fn_cxx_try_cpp "$LINENO"; then :
7588 # Broken: fails on valid input.
7591 rm -f conftest.err conftest.$ac_ext
7593 # OK, works on sane cases. Now check whether nonexistent headers
7594 # can be detected and how.
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 #include <ac_nonexistent.h>
7599 if ac_fn_cxx_try_cpp "$LINENO"; then :
7600 # Broken: success on invalid input.
7603 # Passes both tests.
7607 rm -f conftest.err conftest.$ac_ext
7610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7611 rm -f conftest.err conftest.$ac_ext
7612 if $ac_preproc_ok; then :
7617 ac_cv_prog_CXXCPP=$CXXCPP
7620 CXXCPP=$ac_cv_prog_CXXCPP
7622 ac_cv_prog_CXXCPP=$CXXCPP
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7625 $as_echo "$CXXCPP" >&6; }
7627 for ac_cxx_preproc_warn_flag in '' yes
7629 # Use a header file that comes with gcc, so configuring glibc
7630 # with a fresh cross-compiler works.
7631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7632 # <limits.h> exists even on freestanding compilers.
7633 # On the NeXT, cc -E runs the code through the compiler's parser,
7634 # not just through cpp. "Syntax error" is here to catch this case.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7638 # include <limits.h>
7640 # include <assert.h>
7644 if ac_fn_cxx_try_cpp "$LINENO"; then :
7647 # Broken: fails on valid input.
7650 rm -f conftest.err conftest.$ac_ext
7652 # OK, works on sane cases. Now check whether nonexistent headers
7653 # can be detected and how.
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 #include <ac_nonexistent.h>
7658 if ac_fn_cxx_try_cpp "$LINENO"; then :
7659 # Broken: success on invalid input.
7662 # Passes both tests.
7666 rm -f conftest.err conftest.$ac_ext
7669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7670 rm -f conftest.err conftest.$ac_ext
7671 if $ac_preproc_ok; then :
7674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7676 _lt_caught_CXX_error=yes; }
7680 ac_cpp='$CXXCPP $CPPFLAGS'
7681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7686 _lt_caught_CXX_error=yes
7703 # Check whether --enable-shared was given.
7704 if test "${enable_shared+set}" = set; then :
7705 enableval=$enable_shared; p=${PACKAGE-default}
7707 yes) enable_shared=yes ;;
7708 no) enable_shared=no ;;
7711 # Look at the argument we got. We use all the common list separators.
7712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7713 for pkg in $enableval; do
7715 if test "X$pkg" = "X$p"; then
7734 # Check whether --enable-static was given.
7735 if test "${enable_static+set}" = set; then :
7736 enableval=$enable_static; p=${PACKAGE-default}
7738 yes) enable_static=yes ;;
7739 no) enable_static=no ;;
7742 # Look at the argument we got. We use all the common list separators.
7743 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7744 for pkg in $enableval; do
7746 if test "X$pkg" = "X$p"; then
7766 # Check whether --with-pic was given.
7767 if test "${with_pic+set}" = set; then :
7768 withval=$with_pic; pic_mode="$withval"
7774 test -z "$pic_mode" && pic_mode=default
7782 # Check whether --enable-fast-install was given.
7783 if test "${enable_fast_install+set}" = set; then :
7784 enableval=$enable_fast_install; p=${PACKAGE-default}
7786 yes) enable_fast_install=yes ;;
7787 no) enable_fast_install=no ;;
7789 enable_fast_install=no
7790 # Look at the argument we got. We use all the common list separators.
7791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7792 for pkg in $enableval; do
7794 if test "X$pkg" = "X$p"; then
7795 enable_fast_install=yes
7802 enable_fast_install=yes
7815 # This can be used to rebuild libtool when needed
7816 LIBTOOL_DEPS="$ltmain"
7818 # Always use our own libtool.
7819 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7845 test -z "$LN_S" && LN_S="ln -s"
7860 if test -n "${ZSH_VERSION+set}" ; then
7861 setopt NO_GLOB_SUBST
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7865 $as_echo_n "checking for objdir... " >&6; }
7866 if test "${lt_cv_objdir+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7869 rm -f .libs 2>/dev/null
7870 mkdir .libs 2>/dev/null
7871 if test -d .libs; then
7874 # MS-DOS does not allow filenames that begin with a dot.
7877 rmdir .libs 2>/dev/null
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7880 $as_echo "$lt_cv_objdir" >&6; }
7881 objdir=$lt_cv_objdir
7887 cat >>confdefs.h <<_ACEOF
7888 #define LT_OBJDIR "$lt_cv_objdir/"
7909 # AIX sometimes has problems with the GCC collect2 program. For some
7910 # reason, if we set the COLLECT_NAMES environment variable, the problems
7911 # vanish in a puff of smoke.
7912 if test "X${COLLECT_NAMES+set}" != Xset; then
7914 export COLLECT_NAMES
7919 # Sed substitution that helps us do robust quoting. It backslashifies
7920 # metacharacters that are still active within double-quoted strings.
7921 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7923 # Same as above, but do not quote variable references.
7924 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7926 # Sed substitution to delay expansion of an escaped shell variable in a
7927 # double_quote_subst'ed string.
7928 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7930 # Sed substitution to delay expansion of an escaped single quote.
7931 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7933 # Sed substitution to avoid accidental globbing in evaled expressions
7934 no_glob_subst='s/\*/\\\*/g'
7938 can_build_shared=yes
7940 # All known linkers require a `.a' archive for static linking (except MSVC,
7941 # which needs '.lib').
7944 with_gnu_ld="$lt_cv_prog_gnu_ld"
7947 old_CFLAGS="$CFLAGS"
7949 # Set sane defaults for various variables
7950 test -z "$CC" && CC=cc
7951 test -z "$LTCC" && LTCC=$CC
7952 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7953 test -z "$LD" && LD=ld
7954 test -z "$ac_objext" && ac_objext=o
7956 for cc_temp in $compiler""; do
7958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7964 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7967 # Only perform the check for file, if the check method requires it
7968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7969 case $deplibs_check_method in
7971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7973 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7982 lt_save_MAGIC_CMD="$MAGIC_CMD"
7983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985 for ac_dir in $ac_dummy; do
7987 test -z "$ac_dir" && ac_dir=.
7988 if test -f $ac_dir/${ac_tool_prefix}file; then
7989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7990 if test -n "$file_magic_test_file"; then
7991 case $deplibs_check_method in
7993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996 $EGREP "$file_magic_regex" > /dev/null; then
8001 *** Warning: the command libtool uses to detect shared libraries,
8002 *** $file_magic_cmd, produces output that libtool cannot recognize.
8003 *** The result is that libtool may fail to recognize shared libraries
8004 *** as such. This will affect the creation of libtool libraries that
8005 *** depend on shared libraries, but programs linked with such libtool
8006 *** libraries will work regardless of this problem. Nevertheless, you
8007 *** may want to report the problem to your system manager and/or to
8008 *** bug-libtool@gnu.org
8018 MAGIC_CMD="$lt_save_MAGIC_CMD"
8023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024 if test -n "$MAGIC_CMD"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8026 $as_echo "$MAGIC_CMD" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8036 if test -z "$lt_cv_path_MAGIC_CMD"; then
8037 if test -n "$ac_tool_prefix"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8039 $as_echo_n "checking for file... " >&6; }
8040 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8048 lt_save_MAGIC_CMD="$MAGIC_CMD"
8049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8051 for ac_dir in $ac_dummy; do
8053 test -z "$ac_dir" && ac_dir=.
8054 if test -f $ac_dir/file; then
8055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8056 if test -n "$file_magic_test_file"; then
8057 case $deplibs_check_method in
8059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8062 $EGREP "$file_magic_regex" > /dev/null; then
8067 *** Warning: the command libtool uses to detect shared libraries,
8068 *** $file_magic_cmd, produces output that libtool cannot recognize.
8069 *** The result is that libtool may fail to recognize shared libraries
8070 *** as such. This will affect the creation of libtool libraries that
8071 *** depend on shared libraries, but programs linked with such libtool
8072 *** libraries will work regardless of this problem. Nevertheless, you
8073 *** may want to report the problem to your system manager and/or to
8074 *** bug-libtool@gnu.org
8084 MAGIC_CMD="$lt_save_MAGIC_CMD"
8089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090 if test -n "$MAGIC_CMD"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8092 $as_echo "$MAGIC_CMD" >&6; }
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8108 # Use C for the default configuration in the libtool script
8112 ac_cpp='$CPP $CPPFLAGS'
8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8118 # Source file extension for C test sources.
8121 # Object file extension for compiled C test sources.
8125 # Code to be used in simple compile tests
8126 lt_simple_compile_test_code="int some_variable = 0;"
8128 # Code to be used in simple link tests
8129 lt_simple_link_test_code='int main(){return(0);}'
8137 # If no C compiler was specified, use CC.
8140 # If no C compiler flags were specified, use CFLAGS.
8141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8143 # Allow CC to be a program name with arguments.
8146 # Save the default compiler, since it gets overwritten when the other
8147 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8148 compiler_DEFAULT=$CC
8150 # save warnings/boilerplate of simple test code
8151 ac_outfile=conftest.$ac_objext
8152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8154 _lt_compiler_boilerplate=`cat conftest.err`
8157 ac_outfile=conftest.$ac_objext
8158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8160 _lt_linker_boilerplate=`cat conftest.err`
8165 ## There is no encapsulation within the following macros, do not change
8166 ## the running order or otherwise move them around unless you know exactly
8167 ## what you are doing...
8168 if test -n "$compiler"; then
8170 lt_prog_compiler_no_builtin_flag=
8172 if test "$GCC" = yes; then
8173 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8176 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8177 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8180 lt_cv_prog_compiler_rtti_exceptions=no
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183 lt_compiler_flag="-fno-rtti -fno-exceptions"
8184 # Insert the option either (1) after the last *FLAGS variable, or
8185 # (2) before a word containing "conftest.", or (3) at the end.
8186 # Note that $ac_compile itself does not contain backslashes and begins
8187 # with a dollar sign (not a hyphen), so the echo should work correctly.
8188 # The option is referenced via a variable to avoid confusing sed.
8189 lt_compile=`echo "$ac_compile" | $SED \
8190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192 -e 's:$: $lt_compiler_flag:'`
8193 (eval echo "\"\$as_me:8193: $lt_compile\"" >&5)
8194 (eval "$lt_compile" 2>conftest.err)
8196 cat conftest.err >&5
8197 echo "$as_me:8197: \$? = $ac_status" >&5
8198 if (exit $ac_status) && test -s "$ac_outfile"; then
8199 # The compiler can only warn and ignore the option if not recognized
8200 # So say no if there are warnings other than the usual output.
8201 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204 lt_cv_prog_compiler_rtti_exceptions=yes
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8211 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8213 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8214 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8226 lt_prog_compiler_wl=
8227 lt_prog_compiler_pic=
8228 lt_prog_compiler_static=
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8231 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8233 if test "$GCC" = yes; then
8234 lt_prog_compiler_wl='-Wl,'
8235 lt_prog_compiler_static='-static'
8239 # All AIX code is PIC.
8240 if test "$host_cpu" = ia64; then
8241 # AIX 5 now supports IA64 processor
8242 lt_prog_compiler_static='-Bstatic'
8249 # see comment about AmigaOS4 .so support
8250 lt_prog_compiler_pic='-fPIC'
8253 # FIXME: we need at least 68020 code to build shared libraries, but
8254 # adding the `-m68020' flag to GCC prevents building anything better,
8256 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8261 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8262 # PIC is the default for these OSes.
8265 mingw* | cygwin* | pw32* | os2* | cegcc*)
8266 # This hack is so that the source file can tell whether it is being
8267 # built for inclusion in a dll (and should export symbols for example).
8268 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8269 # (--disable-auto-import) libraries
8270 lt_prog_compiler_pic='-DDLL_EXPORT'
8273 darwin* | rhapsody*)
8274 # PIC is the default on this platform
8275 # Common symbols not allowed in MH_DYLIB files
8276 lt_prog_compiler_pic='-fno-common'
8280 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8281 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8282 # sets the default TLS model and affects inlining.
8288 lt_prog_compiler_pic='-fPIC'
8294 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8295 # Instead, we relocate shared libraries at runtime.
8299 # Just because we use GCC doesn't mean we suddenly get shared libraries
8300 # on systems that don't support them.
8301 lt_prog_compiler_can_build_shared=no
8306 # QNX uses GNU C++, but need to define -shared option too, otherwise
8308 lt_prog_compiler_pic='-fPIC -shared'
8312 if test -d /usr/nec; then
8313 lt_prog_compiler_pic=-Kconform_pic
8318 lt_prog_compiler_pic='-fPIC'
8322 # PORTME Check for flag to pass linker flags through the system compiler.
8325 lt_prog_compiler_wl='-Wl,'
8326 if test "$host_cpu" = ia64; then
8327 # AIX 5 now supports IA64 processor
8328 lt_prog_compiler_static='-Bstatic'
8330 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8334 mingw* | cygwin* | pw32* | os2* | cegcc*)
8335 # This hack is so that the source file can tell whether it is being
8336 # built for inclusion in a dll (and should export symbols for example).
8337 lt_prog_compiler_pic='-DDLL_EXPORT'
8340 hpux9* | hpux10* | hpux11*)
8341 lt_prog_compiler_wl='-Wl,'
8342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8349 lt_prog_compiler_pic='+Z'
8352 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8353 lt_prog_compiler_static='${wl}-a ${wl}archive'
8356 irix5* | irix6* | nonstopux*)
8357 lt_prog_compiler_wl='-Wl,'
8358 # PIC (with -KPIC) is the default.
8359 lt_prog_compiler_static='-non_shared'
8362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8363 case $cc_basename in
8364 # old Intel for x86_64 which still supported -KPIC.
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-static'
8370 # icc used to be incompatible with GCC.
8371 # ICC 10 doesn't accept -KPIC any more.
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_pic='-fPIC'
8375 lt_prog_compiler_static='-static'
8377 # Lahey Fortran 8.1.
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_pic='--shared'
8381 lt_prog_compiler_static='--static'
8383 pgcc* | pgf77* | pgf90* | pgf95*)
8384 # Portland Group compilers (*not* the Pentium gcc compiler,
8385 # which looks to be a dead project)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-fpic'
8388 lt_prog_compiler_static='-Bstatic'
8391 lt_prog_compiler_wl='-Wl,'
8392 # All Alpha code is PIC.
8393 lt_prog_compiler_static='-non_shared'
8396 # IBM XL C 8.0/Fortran 10.1 on PPC
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='-qpic'
8399 lt_prog_compiler_static='-qstaticlink'
8402 case `$CC -V 2>&1 | sed 5q` in
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-Bstatic'
8407 lt_prog_compiler_wl='-Wl,'
8410 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8411 lt_prog_compiler_pic='-KPIC'
8412 lt_prog_compiler_static='-Bstatic'
8413 lt_prog_compiler_wl=''
8421 lt_prog_compiler_pic='-KPIC'
8422 lt_prog_compiler_static='-Bstatic'
8426 # QNX uses GNU C++, but need to define -shared option too, otherwise
8428 lt_prog_compiler_pic='-fPIC -shared'
8431 osf3* | osf4* | osf5*)
8432 lt_prog_compiler_wl='-Wl,'
8433 # All OSF/1 code is PIC.
8434 lt_prog_compiler_static='-non_shared'
8438 lt_prog_compiler_static='-non_shared'
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 case $cc_basename in
8446 lt_prog_compiler_wl='-Qoption ld ';;
8448 lt_prog_compiler_wl='-Wl,';;
8453 lt_prog_compiler_wl='-Qoption ld '
8454 lt_prog_compiler_pic='-PIC'
8455 lt_prog_compiler_static='-Bstatic'
8458 sysv4 | sysv4.2uw2* | sysv4.3*)
8459 lt_prog_compiler_wl='-Wl,'
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8465 if test -d /usr/nec ;then
8466 lt_prog_compiler_pic='-Kconform_pic'
8467 lt_prog_compiler_static='-Bstatic'
8471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8472 lt_prog_compiler_wl='-Wl,'
8473 lt_prog_compiler_pic='-KPIC'
8474 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_wl='-Wl,'
8479 lt_prog_compiler_can_build_shared=no
8483 lt_prog_compiler_pic='-pic'
8484 lt_prog_compiler_static='-Bstatic'
8488 lt_prog_compiler_can_build_shared=no
8494 # For platforms which do not support PIC, -DPIC is meaningless:
8496 lt_prog_compiler_pic=
8499 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8503 $as_echo "$lt_prog_compiler_pic" >&6; }
8511 # Check to make sure the PIC flag actually works.
8513 if test -n "$lt_prog_compiler_pic"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8516 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8519 lt_cv_prog_compiler_pic_works=no
8520 ac_outfile=conftest.$ac_objext
8521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8522 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8523 # Insert the option either (1) after the last *FLAGS variable, or
8524 # (2) before a word containing "conftest.", or (3) at the end.
8525 # Note that $ac_compile itself does not contain backslashes and begins
8526 # with a dollar sign (not a hyphen), so the echo should work correctly.
8527 # The option is referenced via a variable to avoid confusing sed.
8528 lt_compile=`echo "$ac_compile" | $SED \
8529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8531 -e 's:$: $lt_compiler_flag:'`
8532 (eval echo "\"\$as_me:8532: $lt_compile\"" >&5)
8533 (eval "$lt_compile" 2>conftest.err)
8535 cat conftest.err >&5
8536 echo "$as_me:8536: \$? = $ac_status" >&5
8537 if (exit $ac_status) && test -s "$ac_outfile"; then
8538 # The compiler can only warn and ignore the option if not recognized
8539 # So say no if there are warnings other than the usual output.
8540 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8543 lt_cv_prog_compiler_pic_works=yes
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8550 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8552 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8553 case $lt_prog_compiler_pic in
8555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8558 lt_prog_compiler_pic=
8559 lt_prog_compiler_can_build_shared=no
8570 # Check to make sure the static flag actually works.
8572 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8574 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8575 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8578 lt_cv_prog_compiler_static_works=no
8579 save_LDFLAGS="$LDFLAGS"
8580 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8581 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8582 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8583 # The linker can only warn and ignore the option if not recognized
8584 # So say no if there are warnings
8585 if test -s conftest.err; then
8586 # Append any errors to the config.log.
8587 cat conftest.err 1>&5
8588 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8590 if diff conftest.exp conftest.er2 >/dev/null; then
8591 lt_cv_prog_compiler_static_works=yes
8594 lt_cv_prog_compiler_static_works=yes
8598 LDFLAGS="$save_LDFLAGS"
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8602 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8604 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8607 lt_prog_compiler_static=
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8617 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8618 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8621 lt_cv_prog_compiler_c_o=no
8622 $RM -r conftest 2>/dev/null
8626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628 lt_compiler_flag="-o out/conftest2.$ac_objext"
8629 # Insert the option either (1) after the last *FLAGS variable, or
8630 # (2) before a word containing "conftest.", or (3) at the end.
8631 # Note that $ac_compile itself does not contain backslashes and begins
8632 # with a dollar sign (not a hyphen), so the echo should work correctly.
8633 lt_compile=`echo "$ac_compile" | $SED \
8634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8636 -e 's:$: $lt_compiler_flag:'`
8637 (eval echo "\"\$as_me:8637: $lt_compile\"" >&5)
8638 (eval "$lt_compile" 2>out/conftest.err)
8640 cat out/conftest.err >&5
8641 echo "$as_me:8641: \$? = $ac_status" >&5
8642 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8644 # The compiler can only warn and ignore the option if not recognized
8645 # So say no if there are warnings
8646 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8647 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8648 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8649 lt_cv_prog_compiler_c_o=yes
8654 # SGI C++ compiler will create directory out/ii_files/ for
8655 # template instantiation
8656 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8657 $RM out/* && rmdir out
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8664 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8672 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8673 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8674 $as_echo_n "(cached) " >&6
8676 lt_cv_prog_compiler_c_o=no
8677 $RM -r conftest 2>/dev/null
8681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8683 lt_compiler_flag="-o out/conftest2.$ac_objext"
8684 # Insert the option either (1) after the last *FLAGS variable, or
8685 # (2) before a word containing "conftest.", or (3) at the end.
8686 # Note that $ac_compile itself does not contain backslashes and begins
8687 # with a dollar sign (not a hyphen), so the echo should work correctly.
8688 lt_compile=`echo "$ac_compile" | $SED \
8689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691 -e 's:$: $lt_compiler_flag:'`
8692 (eval echo "\"\$as_me:8692: $lt_compile\"" >&5)
8693 (eval "$lt_compile" 2>out/conftest.err)
8695 cat out/conftest.err >&5
8696 echo "$as_me:8696: \$? = $ac_status" >&5
8697 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8699 # The compiler can only warn and ignore the option if not recognized
8700 # So say no if there are warnings
8701 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8704 lt_cv_prog_compiler_c_o=yes
8709 # SGI C++ compiler will create directory out/ii_files/ for
8710 # template instantiation
8711 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8712 $RM out/* && rmdir out
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8719 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8724 hard_links="nottested"
8725 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8726 # do not overwrite the value of need_locks provided by the user
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8728 $as_echo_n "checking if we can lock with hard links... " >&6; }
8731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8733 ln conftest.a conftest.b 2>&5 || hard_links=no
8734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8736 $as_echo "$hard_links" >&6; }
8737 if test "$hard_links" = no; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8739 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8752 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8755 allow_undefined_flag=
8756 always_export_symbols=no
8758 archive_expsym_cmds=
8759 compiler_needs_object=no
8760 enable_shared_with_static_runtimes=no
8761 export_dynamic_flag_spec=
8762 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8763 hardcode_automatic=no
8765 hardcode_direct_absolute=no
8766 hardcode_libdir_flag_spec=
8767 hardcode_libdir_flag_spec_ld=
8768 hardcode_libdir_separator=
8770 hardcode_shlibpath_var=unsupported
8772 link_all_deplibs=unknown
8775 old_archive_from_new_cmds=
8776 old_archive_from_expsyms_cmds=
8777 thread_safe_flag_spec=
8778 whole_archive_flag_spec=
8779 # include_expsyms should be a list of space-separated symbols to be *always*
8780 # included in the symbol list
8782 # exclude_expsyms can be an extended regexp of symbols to exclude
8783 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8784 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8785 # as well as any symbol that contains `d'.
8786 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8787 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8788 # platforms (ab)use it in PIC code, but their linkers get confused if
8789 # the symbol is explicitly referenced. Since portable code cannot
8790 # rely on this symbol name, it's probably fine to never include it in
8791 # preloaded symbol tables.
8792 # Exclude shared library initialization/finalization symbols.
8793 extract_expsyms_cmds=
8796 cygwin* | mingw* | pw32* | cegcc*)
8797 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8798 # When not using gcc, we currently assume that we are using
8799 # Microsoft Visual C++.
8800 if test "$GCC" != yes; then
8805 # we just hope/assume this is gcc and not c89 (= MSVC++)
8811 linux* | k*bsd*-gnu)
8817 if test "$with_gnu_ld" = yes; then
8818 # If archive_cmds runs LD, not CC, wlarc should be empty
8821 # Set some defaults for GNU ld with shared library support. These
8822 # are reset later if shared libraries are not supported. Putting them
8823 # here allows them to be overridden if necessary.
8824 runpath_var=LD_RUN_PATH
8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8826 export_dynamic_flag_spec='${wl}--export-dynamic'
8827 # ancient GNU ld didn't support --whole-archive et. al.
8828 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8829 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8831 whole_archive_flag_spec=
8833 supports_anon_versioning=no
8834 case `$LD -v 2>&1` in
8835 *GNU\ gold*) supports_anon_versioning=yes ;;
8836 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8837 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8838 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8839 *\ 2.11.*) ;; # other 2.11 versions
8840 *) supports_anon_versioning=yes ;;
8843 # See if GNU ld supports shared libraries.
8846 # On AIX/PPC, the GNU linker is very broken
8847 if test "$host_cpu" != ia64; then
8851 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8852 *** to be unable to reliably create shared libraries on AIX.
8853 *** Therefore, libtool is disabling shared libraries support. If you
8854 *** really care for shared libraries, you may want to modify your PATH
8855 *** so that a non-GNU linker is found, and then restart.
8864 # see comment about AmigaOS4 .so support
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 archive_expsym_cmds=''
8869 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)'
8870 hardcode_libdir_flag_spec='-L$libdir'
8871 hardcode_minus_L=yes
8877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8878 allow_undefined_flag=unsupported
8879 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8880 # support --undefined. This deserves some investigation. FIXME
8881 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 cygwin* | mingw* | pw32* | cegcc*)
8888 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8889 # as there is no search path for DLLs.
8890 hardcode_libdir_flag_spec='-L$libdir'
8891 allow_undefined_flag=unsupported
8892 always_export_symbols=no
8893 enable_shared_with_static_runtimes=yes
8894 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8896 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8898 # If the export-symbols file already is a .def file (1st line
8899 # is EXPORTS), use it as is; otherwise, prepend...
8900 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8901 cp $export_symbols $output_objdir/$soname.def;
8903 echo EXPORTS > $output_objdir/$soname.def;
8904 cat $export_symbols >> $output_objdir/$soname.def;
8906 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8914 hardcode_shlibpath_var=no
8915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916 export_dynamic_flag_spec='${wl}-E'
8917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8918 # Instead, shared libraries are loaded at an image base (0x10000000 by
8919 # default) and relocated if they conflict, which is a slow very memory
8920 # consuming and fragmenting process. To avoid this, we pick a random,
8921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924 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'
8927 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8929 if test "$host_os" = linux-dietlibc; then
8930 case $cc_basename in
8931 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8934 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8935 && test "$tmp_diet" = no
8938 tmp_sharedflag='-shared'
8939 case $cc_basename,$host_cpu in
8940 pgcc*) # Portland Group C compiler
8941 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'
8942 tmp_addflag=' $pic_flag'
8944 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8945 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'
8946 tmp_addflag=' $pic_flag -Mnomain' ;;
8947 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8948 tmp_addflag=' -i_dynamic' ;;
8949 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8950 tmp_addflag=' -i_dynamic -nofor_main' ;;
8951 ifc* | ifort*) # Intel Fortran compiler
8952 tmp_addflag=' -nofor_main' ;;
8953 lf95*) # Lahey Fortran 8.1
8954 whole_archive_flag_spec=
8955 tmp_sharedflag='--shared' ;;
8956 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8957 tmp_sharedflag='-qmkshrobj'
8960 case `$CC -V 2>&1 | sed 5q` in
8961 *Sun\ C*) # Sun C 5.9
8962 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'
8963 compiler_needs_object=yes
8964 tmp_sharedflag='-G' ;;
8965 *Sun\ F*) # Sun Fortran 8.3
8966 tmp_sharedflag='-G' ;;
8968 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 if test "x$supports_anon_versioning" = xyes; then
8971 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8972 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8973 echo "local: *; };" >> $output_objdir/$libname.ver~
8974 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8977 case $cc_basename in
8979 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8980 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8981 hardcode_libdir_flag_spec=
8982 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8983 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8984 if test "x$supports_anon_versioning" = xyes; then
8985 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8987 echo "local: *; };" >> $output_objdir/$libname.ver~
8988 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8997 netbsd* | netbsdelf*-gnu)
8998 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8999 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9008 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9013 *** create shared libraries on Solaris systems. Therefore, libtool
9014 *** is disabling shared libraries support. We urge you to upgrade GNU
9015 *** binutils to release 2.9.1 or newer. Another option is to modify
9016 *** your PATH or compiler configuration so that the native linker is
9017 *** used, and then restart.
9020 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9029 case `$LD -v 2>&1` in
9030 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9035 *** reliably create shared libraries on SCO systems. Therefore, libtool
9036 *** is disabling shared libraries support. We urge you to upgrade GNU
9037 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9038 *** your PATH or compiler configuration so that the native linker is
9039 *** used, and then restart.
9044 # For security reasons, it is highly recommended that you always
9045 # use absolute paths for naming shared libraries, and exclude the
9046 # DT_RUNPATH tag from executables and libraries. But doing so
9047 # requires that you compile everything twice, which is a pain.
9048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_shlibpath_var=no
9067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 if test "$ld_shlibs" = no; then
9078 hardcode_libdir_flag_spec=
9079 export_dynamic_flag_spec=
9080 whole_archive_flag_spec=
9083 # PORTME fill in a description of your system's linker (not GNU ld)
9086 allow_undefined_flag=unsupported
9087 always_export_symbols=yes
9088 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'
9089 # Note: this linker hardcodes the directories in LIBPATH if there
9090 # are no directories specified by -L.
9091 hardcode_minus_L=yes
9092 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9093 # Neither direct hardcoding nor static linking is supported with a
9095 hardcode_direct=unsupported
9100 if test "$host_cpu" = ia64; then
9101 # On IA64, the linker does run time linking by default, so we don't
9102 # have to do anything special.
9103 aix_use_runtimelinking=no
9104 exp_sym_flag='-Bexport'
9107 # If we're using GNU nm, then we don't want the "-C" option.
9108 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9109 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9110 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'
9112 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'
9114 aix_use_runtimelinking=no
9116 # Test if we are trying to use run time linking or normal
9117 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9118 # need to do runtime linking.
9119 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9120 for ld_flag in $LDFLAGS; do
9121 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9122 aix_use_runtimelinking=yes
9129 exp_sym_flag='-bexport'
9130 no_entry_flag='-bnoentry'
9133 # When large executables or shared objects are built, AIX ld can
9134 # have problems creating the table of contents. If linking a library
9135 # or program results in "error TOC overflow" add -mminimal-toc to
9136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9141 hardcode_direct_absolute=yes
9142 hardcode_libdir_separator=':'
9143 link_all_deplibs=yes
9144 file_list_spec='${wl}-f,'
9146 if test "$GCC" = yes; then
9147 case $host_os in aix4.[012]|aix4.[012].*)
9148 # We only want to do this on AIX 4.2 and lower, the check
9149 # below for broken collect2 doesn't work under 4.3+
9150 collect2name=`${CC} -print-prog-name=collect2`
9151 if test -f "$collect2name" &&
9152 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9154 # We have reworked collect2
9157 # We have old collect2
9158 hardcode_direct=unsupported
9159 # It fails to find uninstalled libraries when the uninstalled
9160 # path is not listed in the libpath. Setting hardcode_minus_L
9161 # to unsupported forces relinking
9162 hardcode_minus_L=yes
9163 hardcode_libdir_flag_spec='-L$libdir'
9164 hardcode_libdir_separator=
9168 shared_flag='-shared'
9169 if test "$aix_use_runtimelinking" = yes; then
9170 shared_flag="$shared_flag "'${wl}-G'
9175 if test "$host_cpu" = ia64; then
9176 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9177 # chokes on -Wl,-G. The following line is correct:
9180 if test "$aix_use_runtimelinking" = yes; then
9181 shared_flag='${wl}-G'
9183 shared_flag='${wl}-bM:SRE'
9188 export_dynamic_flag_spec='${wl}-bexpall'
9189 # It seems that -bexpall does not export symbols beginning with
9190 # underscore (_), so it is better to generate a list of symbols to export.
9191 always_export_symbols=yes
9192 if test "$aix_use_runtimelinking" = yes; then
9193 # Warning - without using the other runtime loading flags (-brtl),
9194 # -berok will link without error, but may produce a broken library.
9195 allow_undefined_flag='-berok'
9196 # Determine the default libpath from the value encoded in an
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9209 if ac_fn_c_try_link "$LINENO"; then :
9211 lt_aix_libpath_sed='
9212 /Import File Strings/,/^$/ {
9218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9219 # Check for a 64-bit object if we didn't find anything.
9220 if test -z "$aix_libpath"; then
9221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224 rm -f core conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
9226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9228 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9229 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9231 if test "$host_cpu" = ia64; then
9232 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9233 allow_undefined_flag="-z nodefs"
9234 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"
9236 # Determine the default libpath from the value encoded in an
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9249 if ac_fn_c_try_link "$LINENO"; then :
9251 lt_aix_libpath_sed='
9252 /Import File Strings/,/^$/ {
9258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9259 # Check for a 64-bit object if we didn't find anything.
9260 if test -z "$aix_libpath"; then
9261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9264 rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9269 # Warning - without using the other run time loading flags,
9270 # -berok will link without error, but may produce a broken library.
9271 no_undefined_flag=' ${wl}-bernotok'
9272 allow_undefined_flag=' ${wl}-berok'
9273 # Exported symbols can be pulled into shared objects from archives
9274 whole_archive_flag_spec='$convenience'
9275 archive_cmds_need_lc=yes
9276 # This is similar to how AIX traditionally builds its shared libraries.
9277 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'
9285 # see comment about AmigaOS4 .so support
9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 archive_expsym_cmds=''
9290 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)'
9291 hardcode_libdir_flag_spec='-L$libdir'
9292 hardcode_minus_L=yes
9298 export_dynamic_flag_spec=-rdynamic
9301 cygwin* | mingw* | pw32* | cegcc*)
9302 # When not using gcc, we currently assume that we are using
9303 # Microsoft Visual C++.
9304 # hardcode_libdir_flag_spec is actually meaningless, as there is
9305 # no search path for DLLs.
9306 hardcode_libdir_flag_spec=' '
9307 allow_undefined_flag=unsupported
9308 # Tell ltmain to make .lib files, not .a files.
9310 # Tell ltmain to make .dll files, not .so files.
9312 # FIXME: Setting linknames here is a bad hack.
9313 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9314 # The linker will automatically build a .lib file if we build a DLL.
9315 old_archive_from_new_cmds='true'
9316 # FIXME: Should let the user specify the lib program.
9317 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9318 fix_srcfile_path='`cygpath -w "$srcfile"`'
9319 enable_shared_with_static_runtimes=yes
9322 darwin* | rhapsody*)
9325 archive_cmds_need_lc=no
9327 hardcode_automatic=yes
9328 hardcode_shlibpath_var=unsupported
9329 whole_archive_flag_spec=''
9330 link_all_deplibs=yes
9331 allow_undefined_flag="$_lt_dar_allow_undefined"
9332 case $cc_basename in
9333 ifort*) _lt_dar_can_shared=yes ;;
9334 *) _lt_dar_can_shared=$GCC ;;
9336 if test "$_lt_dar_can_shared" = "yes"; then
9337 output_verbose_link_cmd=echo
9338 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9339 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9340 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}"
9341 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}"
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_libdir_flag_spec='-L$libdir'
9352 hardcode_shlibpath_var=no
9359 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9360 # support. Future versions do this automatically, but an explicit c++rt0.o
9361 # does not break anything, and helps significantly (at the cost of a little
9364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9365 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_shlibpath_var=no
9370 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_minus_L=yes
9375 hardcode_shlibpath_var=no
9378 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9379 freebsd* | dragonfly*)
9380 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9381 hardcode_libdir_flag_spec='-R$libdir'
9383 hardcode_shlibpath_var=no
9387 if test "$GCC" = yes; then
9388 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'
9390 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'
9392 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9393 hardcode_libdir_separator=:
9396 # hardcode_minus_L: Not really in the search PATH,
9397 # but as the default location of the library.
9398 hardcode_minus_L=yes
9399 export_dynamic_flag_spec='${wl}-E'
9403 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9404 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9408 if test "$with_gnu_ld" = no; then
9409 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9410 hardcode_libdir_flag_spec_ld='+b $libdir'
9411 hardcode_libdir_separator=:
9413 hardcode_direct_absolute=yes
9414 export_dynamic_flag_spec='${wl}-E'
9415 # hardcode_minus_L: Not really in the search PATH,
9416 # but as the default location of the library.
9417 hardcode_minus_L=yes
9422 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9425 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447 if test "$with_gnu_ld" = no; then
9448 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9449 hardcode_libdir_separator=:
9454 hardcode_shlibpath_var=no
9458 hardcode_direct_absolute=yes
9459 export_dynamic_flag_spec='${wl}-E'
9461 # hardcode_minus_L: Not really in the search PATH,
9462 # but as the default location of the library.
9463 hardcode_minus_L=yes
9469 irix5* | irix6* | nonstopux*)
9470 if test "$GCC" = yes; then
9471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9472 # Try to use the -exported_symbol ld option, if it does not
9473 # work, assume that -exports_file does not work either and
9474 # implicitly export all symbols.
9475 save_LDFLAGS="$LDFLAGS"
9476 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9481 if ac_fn_c_try_link "$LINENO"; then :
9482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9485 rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LDFLAGS="$save_LDFLAGS"
9489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9492 archive_cmds_need_lc='no'
9493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9494 hardcode_libdir_separator=:
9496 link_all_deplibs=yes
9499 netbsd* | netbsdelf*-gnu)
9500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9503 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9505 hardcode_libdir_flag_spec='-R$libdir'
9507 hardcode_shlibpath_var=no
9511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514 hardcode_libdir_separator=:
9515 hardcode_shlibpath_var=no
9522 if test -f /usr/libexec/ld.so; then
9524 hardcode_shlibpath_var=no
9525 hardcode_direct_absolute=yes
9526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9529 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9530 export_dynamic_flag_spec='${wl}-E'
9533 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_libdir_flag_spec='-R$libdir'
9538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549 hardcode_libdir_flag_spec='-L$libdir'
9550 hardcode_minus_L=yes
9551 allow_undefined_flag=unsupported
9552 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'
9553 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9557 if test "$GCC" = yes; then
9558 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9559 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9561 allow_undefined_flag=' -expect_unresolved \*'
9562 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9564 archive_cmds_need_lc='no'
9565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566 hardcode_libdir_separator=:
9569 osf4* | osf5*) # as osf3* with the addition of -msym flag
9570 if test "$GCC" = yes; then
9571 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9572 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575 allow_undefined_flag=' -expect_unresolved \*'
9576 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9577 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9578 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9580 # Both c and cxx compiler support -rpath directly
9581 hardcode_libdir_flag_spec='-rpath $libdir'
9583 archive_cmds_need_lc='no'
9584 hardcode_libdir_separator=:
9588 no_undefined_flag=' -z defs'
9589 if test "$GCC" = yes; then
9591 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9593 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9595 case `$CC -V 2>&1` in
9598 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9604 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9606 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9610 hardcode_libdir_flag_spec='-R$libdir'
9611 hardcode_shlibpath_var=no
9613 solaris2.[0-5] | solaris2.[0-5].*) ;;
9615 # The compiler driver will combine and reorder linker options,
9616 # but understands `-z linker_flag'. GCC discards it without `$wl',
9617 # but is careful enough not to reorder.
9618 # Supported since Solaris 2.6 (maybe 2.5.1?)
9619 if test "$GCC" = yes; then
9620 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9622 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9626 link_all_deplibs=yes
9630 if test "x$host_vendor" = xsequent; then
9631 # Use $CC to link under sequent, because it throws in some extra .o
9632 # files that make .init and .fini sections work.
9633 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_libdir_flag_spec='-L$libdir'
9639 hardcode_minus_L=yes
9640 hardcode_shlibpath_var=no
9644 case $host_vendor in
9646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_direct=yes # is this really true???
9650 ## LD is ld it makes a PLAMLIB
9651 ## CC just makes a GrossModule.
9652 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9653 reload_cmds='$CC -r -o $output$reload_objs'
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9661 runpath_var='LD_RUN_PATH'
9662 hardcode_shlibpath_var=no
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_shlibpath_var=no
9668 export_dynamic_flag_spec='-Bexport'
9672 if test -d /usr/nec; then
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_shlibpath_var=no
9675 runpath_var=LD_RUN_PATH
9676 hardcode_runpath_var=yes
9681 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9682 no_undefined_flag='${wl}-z,text'
9683 archive_cmds_need_lc=no
9684 hardcode_shlibpath_var=no
9685 runpath_var='LD_RUN_PATH'
9687 if test "$GCC" = yes; then
9688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 sysv5* | sco3.2v5* | sco5v6*)
9697 # Note: We can NOT use -z defs as we might desire, because we do not
9698 # link with -lc, and that would cause any symbols used from libc to
9699 # always be unresolved, which means just about no library would
9700 # ever link correctly. If we're not using GNU ld we use -z text
9701 # though, which does catch some bad symbols but isn't as heavy-handed
9703 no_undefined_flag='${wl}-z,text'
9704 allow_undefined_flag='${wl}-z,nodefs'
9705 archive_cmds_need_lc=no
9706 hardcode_shlibpath_var=no
9707 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9708 hardcode_libdir_separator=':'
9709 link_all_deplibs=yes
9710 export_dynamic_flag_spec='${wl}-Bexport'
9711 runpath_var='LD_RUN_PATH'
9713 if test "$GCC" = yes; then
9714 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_libdir_flag_spec='-L$libdir'
9725 hardcode_shlibpath_var=no
9733 if test x$host_vendor = xsni; then
9735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9736 export_dynamic_flag_spec='${wl}-Blargedynsym'
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9743 $as_echo "$ld_shlibs" >&6; }
9744 test "$ld_shlibs" = no && can_build_shared=no
9746 with_gnu_ld=$with_gnu_ld
9763 # Do we need to explicitly link libc?
9765 case "x$archive_cmds_need_lc" in
9767 # Assume -lc should be added
9768 archive_cmds_need_lc=yes
9770 if test "$enable_shared" = yes && test "$GCC" = yes; then
9771 case $archive_cmds in
9773 # FIXME: we may have to deal with multi-command sequences.
9776 # Test whether the compiler implicitly links with -lc since on some
9777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9778 # to ld, don't add -lc before -lgcc.
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9780 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9785 (eval $ac_compile) 2>&5
9787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9788 test $ac_status = 0; } 2>conftest.err; then
9791 libobjs=conftest.$ac_objext
9793 wl=$lt_prog_compiler_wl
9794 pic_flag=$lt_prog_compiler_pic
9800 lt_save_allow_undefined_flag=$allow_undefined_flag
9801 allow_undefined_flag=
9802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9803 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9806 test $ac_status = 0; }
9808 archive_cmds_need_lc=no
9810 archive_cmds_need_lc=yes
9812 allow_undefined_flag=$lt_save_allow_undefined_flag
9814 cat conftest.err 1>&5
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9818 $as_echo "$archive_cmds_need_lc" >&6; }
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9982 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9984 if test "$GCC" = yes; then
9986 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9987 *) lt_awk_arg="/^libraries:/" ;;
9989 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9990 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9991 # if the path contains ";" then we assume it to be the separator
9992 # otherwise default to the standard path separator (i.e. ":") - it is
9993 # assumed that no part of a normal pathname contains ";" but that should
9994 # okay in the real world where ";" in dirpaths is itself problematic.
9995 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9999 # Ok, now we have the path, separated by spaces, we can step through it
10000 # and add multilib dir if necessary.
10001 lt_tmp_lt_search_path_spec=
10002 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10003 for lt_sys_path in $lt_search_path_spec; do
10004 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10007 test -d "$lt_sys_path" && \
10008 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10011 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10012 BEGIN {RS=" "; FS="/|\n";} {
10015 for (lt_i = NF; lt_i > 0; lt_i--) {
10016 if ($lt_i != "" && $lt_i != ".") {
10017 if ($lt_i == "..") {
10020 if (lt_count == 0) {
10021 lt_foo="/" $lt_i lt_foo;
10028 if (lt_foo != "") { lt_freq[lt_foo]++; }
10029 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10031 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10035 library_names_spec=
10036 libname_spec='lib$name'
10040 postuninstall_cmds=
10044 shlibpath_overrides_runpath=unknown
10046 dynamic_linker="$host_os ld.so"
10047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10048 need_lib_prefix=unknown
10049 hardcode_into_libs=no
10051 # when you set need_version to no, make sure it does not cause -set_version
10052 # flags to be left without arguments
10053 need_version=unknown
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10059 shlibpath_var=LIBPATH
10061 # AIX 3 has no versioning support, so we append a major version to the name.
10062 soname_spec='${libname}${release}${shared_ext}$major'
10069 hardcode_into_libs=yes
10070 if test "$host_cpu" = ia64; then
10071 # AIX 5 supports IA64
10072 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10073 shlibpath_var=LD_LIBRARY_PATH
10075 # With GCC up to 2.95.x, collect2 would create an import file
10076 # for dependence libraries. The import file would start with
10077 # the line `#! .'. This would cause the generated library to
10078 # depend on `.', always an invalid library. This was fixed in
10079 # development snapshots of GCC prior to 3.0.
10081 aix4 | aix4.[01] | aix4.[01].*)
10082 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10084 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10087 can_build_shared=no
10091 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10092 # soname into executable. Probably we can add versioning support to
10093 # collect2, so additional links can be useful in future.
10094 if test "$aix_use_runtimelinking" = yes; then
10095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10096 # instead of lib<name>.a to let people know that these are not
10097 # typical AIX shared libraries.
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100 # We preserve .a as extension for shared libraries through AIX4.2
10101 # and later when we are not doing run time linking.
10102 library_names_spec='${libname}${release}.a $libname.a'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LIBPATH
10112 # Since July 2007 AmigaOS4 officially supports .so libraries.
10113 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 library_names_spec='$libname.ixlibrary $libname.a'
10118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10119 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'
10125 library_names_spec='${libname}${shared_ext}'
10126 dynamic_linker="$host_os ld.so"
10127 shlibpath_var=LIBRARY_PATH
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10138 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10139 # the default ld.so.conf also contains /usr/contrib/lib and
10140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10141 # libtool to hard-code these into programs
10144 cygwin* | mingw* | pw32* | cegcc*)
10145 version_type=windows
10150 case $GCC,$host_os in
10151 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10152 library_names_spec='$libname.dll.a'
10153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10154 postinstall_cmds='base_file=`basename \${file}`~
10155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10156 dldir=$destdir/`dirname \$dlpath`~
10157 test -d \$dldir || mkdir -p \$dldir~
10158 $install_prog $dir/$dlname \$dldir/$dlname~
10159 chmod a+x \$dldir/$dlname~
10160 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10161 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10164 dlpath=$dir/\$dldll~
10166 shlibpath_overrides_runpath=yes
10170 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10171 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10175 # MinGW DLLs use traditional 'lib' prefix
10176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10178 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10179 # It is most probably a Windows format PATH printed by
10180 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10181 # path with ; separators, and with drive letters. We can handle the
10182 # drive letters (cygwin fileutils understands them), so leave them,
10183 # especially as we might pass files found there to a mingw objdump,
10184 # which wouldn't understand a cygwinified path. Ahh.
10185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10191 # pw32 DLLs use 'pw' prefix rather than 'lib'
10192 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10198 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10201 dynamic_linker='Win32 ld.exe'
10202 # FIXME: first we should search . and the directory the executable is in
10206 darwin* | rhapsody*)
10207 dynamic_linker="$host_os dyld"
10208 version_type=darwin
10211 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10212 soname_spec='${libname}${release}${major}$shared_ext'
10213 shlibpath_overrides_runpath=yes
10214 shlibpath_var=DYLD_LIBRARY_PATH
10215 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10217 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10218 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 shlibpath_var=LD_LIBRARY_PATH
10234 freebsd* | dragonfly*)
10235 # DragonFly does not have aout. When/if they implement a new
10236 # versioning mechanism, adjust this.
10237 if test -x /usr/bin/objformat; then
10238 objformat=`/usr/bin/objformat`
10241 freebsd[123]*) objformat=aout ;;
10242 *) objformat=elf ;;
10245 version_type=freebsd-$objformat
10246 case $version_type in
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10257 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10262 freebsd3.[01]* | freebsdelf3.[01]*)
10263 shlibpath_overrides_runpath=yes
10264 hardcode_into_libs=yes
10266 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10267 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10268 shlibpath_overrides_runpath=no
10269 hardcode_into_libs=yes
10271 *) # from 4.6 on, and DragonFly
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 hardcode_into_libs=yes
10288 hpux9* | hpux10* | hpux11*)
10289 # Give a soname corresponding to the major version so that dld.sl refuses to
10290 # link against other versions.
10297 hardcode_into_libs=yes
10298 dynamic_linker="$host_os dld.so"
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 if test "X$HPUX_IA64_MODE" = X32; then
10304 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10306 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10312 hardcode_into_libs=yes
10313 dynamic_linker="$host_os dld.sl"
10314 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10323 dynamic_linker="$host_os dld.sl"
10324 shlibpath_var=SHLIB_PATH
10325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10330 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10331 postinstall_cmds='chmod 555 $lib'
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=no
10343 hardcode_into_libs=yes
10346 irix5* | irix6* | nonstopux*)
10348 nonstopux*) version_type=nonstopux ;;
10350 if test "$lt_cv_prog_gnu_ld" = yes; then
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10361 irix5* | nonstopux*)
10362 libsuff= shlibsuff=
10365 case $LD in # libtool.m4 will add one of these switches to LD
10366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10367 libsuff= shlibsuff= libmagic=32-bit;;
10368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10369 libsuff=32 shlibsuff=N32 libmagic=N32;;
10370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10371 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10372 *) libsuff= shlibsuff= libmagic=never-match;;
10376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10377 shlibpath_overrides_runpath=no
10378 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10379 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10380 hardcode_into_libs=yes
10383 # No shared lib support for Linux oldld, aout, or coff.
10384 linux*oldld* | linux*aout* | linux*coff*)
10388 # This must be Linux ELF.
10389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 shlibpath_overrides_runpath=no
10398 # Some binutils ld are patched to set DT_RUNPATH
10399 save_LDFLAGS=$LDFLAGS
10400 save_libdir=$libdir
10401 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10402 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10414 if ac_fn_c_try_link "$LINENO"; then :
10415 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10416 shlibpath_overrides_runpath=yes
10419 rm -f core conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 LDFLAGS=$save_LDFLAGS
10422 libdir=$save_libdir
10424 # This implies no fast_install, which is unacceptable.
10425 # Some rework will be needed to allow for fast_install
10426 # before this can be enabled.
10427 hardcode_into_libs=yes
10429 # Append ld.so.conf contents to the search path
10430 if test -f /etc/ld.so.conf; then
10431 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' ' '`
10432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10435 # We used to test for /lib/ld.so.1 and disable shared libraries on
10436 # powerpc, because MkLinux only supported shared libraries with the
10437 # GNU dynamic linker. Since this was broken with cross compilers,
10438 # most powerpc-linux boxes support dynamic linking these days and
10439 # people can always --disable-shared, the test was removed, and we
10440 # assume the GNU/Linux dynamic linker is in use.
10441 dynamic_linker='GNU/Linux ld.so'
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=no
10452 hardcode_into_libs=yes
10453 dynamic_linker='NetBSD ld.elf_so'
10460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10463 dynamic_linker='NetBSD (a.out) ld.so'
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 dynamic_linker='NetBSD ld.elf_so'
10469 shlibpath_var=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath=yes
10471 hardcode_into_libs=yes
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 shlibpath_overrides_runpath=yes
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath=no
10489 hardcode_into_libs=yes
10490 dynamic_linker='ldqnx.so'
10495 sys_lib_dlsearch_path_spec="/usr/lib"
10497 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10499 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10500 *) need_version=no ;;
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10507 openbsd2.[89] | openbsd2.[89].*)
10508 shlibpath_overrides_runpath=no
10511 shlibpath_overrides_runpath=yes
10515 shlibpath_overrides_runpath=yes
10520 libname_spec='$name'
10523 library_names_spec='$libname${shared_ext} $libname.a'
10524 dynamic_linker='OS/2 ld.exe'
10525 shlibpath_var=LIBPATH
10528 osf3* | osf4* | osf5*)
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 shlibpath_overrides_runpath=yes
10551 hardcode_into_libs=yes
10552 # ldd complains unless libraries are executable
10553 postinstall_cmds='chmod +x $lib'
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=yes
10562 if test "$with_gnu_ld" = yes; then
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 case $host_vendor in
10575 shlibpath_overrides_runpath=no
10577 runpath_var=LD_RUN_PATH
10585 shlibpath_overrides_runpath=no
10586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10592 if test -d /usr/nec ;then
10594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10595 soname_spec='$libname${shared_ext}.$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10601 version_type=freebsd-elf
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 shlibpath_overrides_runpath=yes
10608 hardcode_into_libs=yes
10609 if test "$with_gnu_ld" = yes; then
10610 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10612 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10615 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10619 sys_lib_dlsearch_path_spec='/usr/lib'
10623 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=no
10630 hardcode_into_libs=yes
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LD_LIBRARY_PATH
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10645 $as_echo "$dynamic_linker" >&6; }
10646 test "$dynamic_linker" = no && can_build_shared=no
10648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10649 if test "$GCC" = yes; then
10650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10653 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10654 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10656 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10657 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10747 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10749 if test -n "$hardcode_libdir_flag_spec" ||
10750 test -n "$runpath_var" ||
10751 test "X$hardcode_automatic" = "Xyes" ; then
10753 # We can hardcode non-existent directories.
10754 if test "$hardcode_direct" != no &&
10755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10756 # have to relink, otherwise we might link with an installed library
10757 # when we should be linking with a yet-to-be-installed one
10758 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10759 test "$hardcode_minus_L" != no; then
10760 # Linking always hardcodes the temporary library directory.
10761 hardcode_action=relink
10763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10764 hardcode_action=immediate
10767 # We cannot hardcode anything, or else we can only hardcode existing
10769 hardcode_action=unsupported
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10772 $as_echo "$hardcode_action" >&6; }
10774 if test "$hardcode_action" = relink ||
10775 test "$inherit_rpath" = yes; then
10776 # Fast installation is not supported
10777 enable_fast_install=no
10778 elif test "$shlibpath_overrides_runpath" = yes ||
10779 test "$enable_shared" = no; then
10780 # Fast installation is not necessary
10781 enable_fast_install=needless
10789 if test "x$enable_dlopen" != xyes; then
10790 enable_dlopen=unknown
10791 enable_dlopen_self=unknown
10792 enable_dlopen_self_static=unknown
10799 lt_cv_dlopen="load_add_on"
10801 lt_cv_dlopen_self=yes
10804 mingw* | pw32* | cegcc*)
10805 lt_cv_dlopen="LoadLibrary"
10810 lt_cv_dlopen="dlopen"
10815 # if libdl is installed we need to link against it
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10817 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10818 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10821 ac_check_lib_save_LIBS=$LIBS
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10826 /* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10841 if ac_fn_c_try_link "$LINENO"; then :
10842 ac_cv_lib_dl_dlopen=yes
10844 ac_cv_lib_dl_dlopen=no
10846 rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10851 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10852 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10856 lt_cv_dlopen="dyld"
10858 lt_cv_dlopen_self=yes
10865 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10866 if test "x$ac_cv_func_shl_load" = x""yes; then :
10867 lt_cv_dlopen="shl_load"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10870 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10871 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
10874 ac_check_lib_save_LIBS=$LIBS
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 /* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10889 return shl_load ();
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 ac_cv_lib_dld_shl_load=yes
10897 ac_cv_lib_dld_shl_load=no
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10904 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10905 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10908 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10909 if test "x$ac_cv_func_dlopen" = x""yes; then :
10910 lt_cv_dlopen="dlopen"
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10913 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10917 ac_check_lib_save_LIBS=$LIBS
10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920 /* end confdefs.h. */
10922 /* Override any GCC internal prototype to avoid an error.
10923 Use char because int might match the return type of a GCC
10924 builtin and then its argument prototype would still apply. */
10937 if ac_fn_c_try_link "$LINENO"; then :
10938 ac_cv_lib_dl_dlopen=yes
10940 ac_cv_lib_dl_dlopen=no
10942 rm -f core conftest.err conftest.$ac_objext \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LIBS=$ac_check_lib_save_LIBS
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10947 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10948 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10952 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10953 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
10956 ac_check_lib_save_LIBS=$LIBS
10957 LIBS="-lsvld $LIBS"
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10961 /* Override any GCC internal prototype to avoid an error.
10962 Use char because int might match the return type of a GCC
10963 builtin and then its argument prototype would still apply. */
10976 if ac_fn_c_try_link "$LINENO"; then :
10977 ac_cv_lib_svld_dlopen=yes
10979 ac_cv_lib_svld_dlopen=no
10981 rm -f core conftest.err conftest.$ac_objext \
10982 conftest$ac_exeext conftest.$ac_ext
10983 LIBS=$ac_check_lib_save_LIBS
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10986 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10987 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10991 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10992 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10995 ac_check_lib_save_LIBS=$LIBS
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11010 return dld_link ();
11015 if ac_fn_c_try_link "$LINENO"; then :
11016 ac_cv_lib_dld_dld_link=yes
11018 ac_cv_lib_dld_dld_link=no
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11025 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11026 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11027 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11048 if test "x$lt_cv_dlopen" != xno; then
11054 case $lt_cv_dlopen in
11056 save_CPPFLAGS="$CPPFLAGS"
11057 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11059 save_LDFLAGS="$LDFLAGS"
11060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11063 LIBS="$lt_cv_dlopen_libs $LIBS"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11066 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11067 if test "${lt_cv_dlopen_self+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11070 if test "$cross_compiling" = yes; then :
11071 lt_cv_dlopen_self=cross
11073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11074 lt_status=$lt_dlunknown
11075 cat > conftest.$ac_ext <<_LT_EOF
11076 #line 11076 "configure"
11077 #include "confdefs.h"
11086 # define LT_DLGLOBAL RTLD_GLOBAL
11089 # define LT_DLGLOBAL DL_GLOBAL
11091 # define LT_DLGLOBAL 0
11095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11096 find out it does not work in some platform. */
11097 #ifndef LT_DLLAZY_OR_NOW
11099 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11102 # define LT_DLLAZY_OR_NOW DL_LAZY
11105 # define LT_DLLAZY_OR_NOW RTLD_NOW
11108 # define LT_DLLAZY_OR_NOW DL_NOW
11110 # define LT_DLLAZY_OR_NOW 0
11117 void fnord() { int i=42;}
11120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11121 int status = $lt_dlunknown;
11125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11127 /* dlclose (self); */
11135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11136 (eval $ac_link) 2>&5
11138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11139 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11140 (./conftest; exit; ) >&5 2>/dev/null
11142 case x$lt_status in
11143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11148 # compilation failed
11149 lt_cv_dlopen_self=no
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11157 $as_echo "$lt_cv_dlopen_self" >&6; }
11159 if test "x$lt_cv_dlopen_self" = xyes; then
11160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11162 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11163 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11164 $as_echo_n "(cached) " >&6
11166 if test "$cross_compiling" = yes; then :
11167 lt_cv_dlopen_self_static=cross
11169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11170 lt_status=$lt_dlunknown
11171 cat > conftest.$ac_ext <<_LT_EOF
11172 #line 11172 "configure"
11173 #include "confdefs.h"
11182 # define LT_DLGLOBAL RTLD_GLOBAL
11185 # define LT_DLGLOBAL DL_GLOBAL
11187 # define LT_DLGLOBAL 0
11191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11192 find out it does not work in some platform. */
11193 #ifndef LT_DLLAZY_OR_NOW
11195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11198 # define LT_DLLAZY_OR_NOW DL_LAZY
11201 # define LT_DLLAZY_OR_NOW RTLD_NOW
11204 # define LT_DLLAZY_OR_NOW DL_NOW
11206 # define LT_DLLAZY_OR_NOW 0
11213 void fnord() { int i=42;}
11216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11217 int status = $lt_dlunknown;
11221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11222 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11223 /* dlclose (self); */
11231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11232 (eval $ac_link) 2>&5
11234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11236 (./conftest; exit; ) >&5 2>/dev/null
11238 case x$lt_status in
11239 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11240 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11241 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11244 # compilation failed
11245 lt_cv_dlopen_self_static=no
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11253 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11256 CPPFLAGS="$save_CPPFLAGS"
11257 LDFLAGS="$save_LDFLAGS"
11262 case $lt_cv_dlopen_self in
11263 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11264 *) enable_dlopen_self=unknown ;;
11267 case $lt_cv_dlopen_self_static in
11268 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11269 *) enable_dlopen_self_static=unknown ;;
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11292 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11293 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11294 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11295 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11297 $as_echo "yes" >&6; }
11299 # FIXME - insert some real tests, host_os isn't really good enough
11302 if test -n "$STRIP" ; then
11303 striplib="$STRIP -x"
11304 old_striplib="$STRIP -S"
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306 $as_echo "yes" >&6; }
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11330 # Report which library types will actually be built
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11332 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11334 $as_echo "$can_build_shared" >&6; }
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11337 $as_echo_n "checking whether to build shared libraries... " >&6; }
11338 test "$can_build_shared" = "no" && enable_shared=no
11340 # On AIX, shared libraries and static libraries use the same namespace, and
11341 # are all built from PIC.
11344 test "$enable_shared" = yes && enable_static=no
11345 if test -n "$RANLIB"; then
11346 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11347 postinstall_cmds='$RANLIB $lib'
11352 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11353 test "$enable_shared" = yes && enable_static=no
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11358 $as_echo "$enable_shared" >&6; }
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11361 $as_echo_n "checking whether to build static libraries... " >&6; }
11362 # Make sure either enable_shared or enable_static is yes.
11363 test "$enable_shared" = yes || enable_static=yes
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11365 $as_echo "$enable_static" >&6; }
11372 ac_cpp='$CXXCPP $CPPFLAGS'
11373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11381 ac_cpp='$CXXCPP $CPPFLAGS'
11382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11386 archive_cmds_need_lc_CXX=no
11387 allow_undefined_flag_CXX=
11388 always_export_symbols_CXX=no
11389 archive_expsym_cmds_CXX=
11390 compiler_needs_object_CXX=no
11391 export_dynamic_flag_spec_CXX=
11392 hardcode_direct_CXX=no
11393 hardcode_direct_absolute_CXX=no
11394 hardcode_libdir_flag_spec_CXX=
11395 hardcode_libdir_flag_spec_ld_CXX=
11396 hardcode_libdir_separator_CXX=
11397 hardcode_minus_L_CXX=no
11398 hardcode_shlibpath_var_CXX=unsupported
11399 hardcode_automatic_CXX=no
11400 inherit_rpath_CXX=no
11402 module_expsym_cmds_CXX=
11403 link_all_deplibs_CXX=unknown
11404 old_archive_cmds_CXX=$old_archive_cmds
11405 no_undefined_flag_CXX=
11406 whole_archive_flag_spec_CXX=
11407 enable_shared_with_static_runtimes_CXX=no
11409 # Source file extension for C++ test sources.
11412 # Object file extension for compiled C++ test sources.
11416 # No sense in running all these tests if we already determined that
11417 # the CXX compiler isn't working. Some variables (like enable_shared)
11418 # are currently assumed to apply to all compilers on this platform,
11419 # and will be corrupted by setting them based on a non-working compiler.
11420 if test "$_lt_caught_CXX_error" != yes; then
11421 # Code to be used in simple compile tests
11422 lt_simple_compile_test_code="int some_variable = 0;"
11424 # Code to be used in simple link tests
11425 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11427 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11434 # If no C compiler was specified, use CC.
11437 # If no C compiler flags were specified, use CFLAGS.
11438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11440 # Allow CC to be a program name with arguments.
11444 # save warnings/boilerplate of simple test code
11445 ac_outfile=conftest.$ac_objext
11446 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11447 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11448 _lt_compiler_boilerplate=`cat conftest.err`
11451 ac_outfile=conftest.$ac_objext
11452 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11453 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11454 _lt_linker_boilerplate=`cat conftest.err`
11458 # Allow CC to be a program name with arguments.
11463 lt_save_with_gnu_ld=$with_gnu_ld
11464 lt_save_path_LD=$lt_cv_path_LD
11465 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11466 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11468 $as_unset lt_cv_prog_gnu_ld
11470 if test -n "${lt_cv_path_LDCXX+set}"; then
11471 lt_cv_path_LD=$lt_cv_path_LDCXX
11473 $as_unset lt_cv_path_LD
11475 test -z "${LDCXX+set}" || LD=$LDCXX
11479 for cc_temp in $compiler""; do
11481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11487 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11490 if test -n "$compiler"; then
11491 # We don't want -fno-exception when compiling C++ code, so set the
11492 # no_builtin_flag separately
11493 if test "$GXX" = yes; then
11494 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11496 lt_prog_compiler_no_builtin_flag_CXX=
11499 if test "$GXX" = yes; then
11500 # Set up default GNU C++ configuration
11504 # Check whether --with-gnu-ld was given.
11505 if test "${with_gnu_ld+set}" = set; then :
11506 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11512 if test "$GCC" = yes; then
11513 # Check if gcc -print-prog-name=ld gives a path.
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11515 $as_echo_n "checking for ld used by $CC... " >&6; }
11518 # gcc leaves a trailing carriage return which upsets mingw
11519 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11521 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11524 # Accept absolute paths.
11526 re_direlt='/[^/][^/]*/\.\./'
11527 # Canonicalize the pathname of ld
11528 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11529 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11530 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11532 test -z "$LD" && LD="$ac_prog"
11535 # If it fails, then pretend we aren't using GCC.
11539 # If it is relative, then search for the first ld in PATH.
11540 with_gnu_ld=unknown
11543 elif test "$with_gnu_ld" = yes; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11545 $as_echo_n "checking for GNU ld... " >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11548 $as_echo_n "checking for non-GNU ld... " >&6; }
11550 if test "${lt_cv_path_LD+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11553 if test -z "$LD"; then
11554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11555 for ac_dir in $PATH; do
11557 test -z "$ac_dir" && ac_dir=.
11558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11559 lt_cv_path_LD="$ac_dir/$ac_prog"
11560 # Check to see if the program is GNU ld. I'd rather use --version,
11561 # but apparently some variants of GNU ld only accept -v.
11562 # Break only if it was the GNU/non-GNU ld that we prefer.
11563 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11564 *GNU* | *'with BFD'*)
11565 test "$with_gnu_ld" != no && break
11568 test "$with_gnu_ld" != yes && break
11575 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11579 LD="$lt_cv_path_LD"
11580 if test -n "$LD"; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11582 $as_echo "$LD" >&6; }
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11587 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11589 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11590 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11593 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11594 case `$LD -v 2>&1 </dev/null` in
11595 *GNU* | *'with BFD'*)
11596 lt_cv_prog_gnu_ld=yes
11599 lt_cv_prog_gnu_ld=no
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11604 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11605 with_gnu_ld=$lt_cv_prog_gnu_ld
11613 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11614 # archiving commands below assume that GNU ld is being used.
11615 if test "$with_gnu_ld" = yes; then
11616 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11617 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'
11619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11622 # If archive_cmds runs LD, not CC, wlarc should be empty
11623 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11624 # investigate it a little bit more. (MM)
11627 # ancient GNU ld didn't support --whole-archive et. al.
11628 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11629 $GREP 'no-whole-archive' > /dev/null; then
11630 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11632 whole_archive_flag_spec_CXX=
11638 # A generic and very simple default shared library creation
11639 # command for GNU C++ for the case where it uses the native
11640 # linker, instead of GNU ld. If possible, this setting should
11641 # overridden to take advantage of the native linker features on
11642 # the platform it is being used on.
11643 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11649 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11657 # PORTME: fill in a description of your system's C++ link characteristics
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11659 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11663 # FIXME: insert proper C++ library support
11667 if test "$host_cpu" = ia64; then
11668 # On IA64, the linker does run time linking by default, so we don't
11669 # have to do anything special.
11670 aix_use_runtimelinking=no
11671 exp_sym_flag='-Bexport'
11674 aix_use_runtimelinking=no
11676 # Test if we are trying to use run time linking or normal
11677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11678 # need to do runtime linking.
11679 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11680 for ld_flag in $LDFLAGS; do
11683 aix_use_runtimelinking=yes
11691 exp_sym_flag='-bexport'
11692 no_entry_flag='-bnoentry'
11695 # When large executables or shared objects are built, AIX ld can
11696 # have problems creating the table of contents. If linking a library
11697 # or program results in "error TOC overflow" add -mminimal-toc to
11698 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11699 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11701 archive_cmds_CXX=''
11702 hardcode_direct_CXX=yes
11703 hardcode_direct_absolute_CXX=yes
11704 hardcode_libdir_separator_CXX=':'
11705 link_all_deplibs_CXX=yes
11706 file_list_spec_CXX='${wl}-f,'
11708 if test "$GXX" = yes; then
11709 case $host_os in aix4.[012]|aix4.[012].*)
11710 # We only want to do this on AIX 4.2 and lower, the check
11711 # below for broken collect2 doesn't work under 4.3+
11712 collect2name=`${CC} -print-prog-name=collect2`
11713 if test -f "$collect2name" &&
11714 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11716 # We have reworked collect2
11719 # We have old collect2
11720 hardcode_direct_CXX=unsupported
11721 # It fails to find uninstalled libraries when the uninstalled
11722 # path is not listed in the libpath. Setting hardcode_minus_L
11723 # to unsupported forces relinking
11724 hardcode_minus_L_CXX=yes
11725 hardcode_libdir_flag_spec_CXX='-L$libdir'
11726 hardcode_libdir_separator_CXX=
11729 shared_flag='-shared'
11730 if test "$aix_use_runtimelinking" = yes; then
11731 shared_flag="$shared_flag "'${wl}-G'
11735 if test "$host_cpu" = ia64; then
11736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11737 # chokes on -Wl,-G. The following line is correct:
11740 if test "$aix_use_runtimelinking" = yes; then
11741 shared_flag='${wl}-G'
11743 shared_flag='${wl}-bM:SRE'
11748 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11749 # It seems that -bexpall does not export symbols beginning with
11750 # underscore (_), so it is better to generate a list of symbols to
11752 always_export_symbols_CXX=yes
11753 if test "$aix_use_runtimelinking" = yes; then
11754 # Warning - without using the other runtime loading flags (-brtl),
11755 # -berok will link without error, but may produce a broken library.
11756 allow_undefined_flag_CXX='-berok'
11757 # Determine the default libpath from the value encoded in an empty
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11770 if ac_fn_cxx_try_link "$LINENO"; then :
11772 lt_aix_libpath_sed='
11773 /Import File Strings/,/^$/ {
11779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11780 # Check for a 64-bit object if we didn't find anything.
11781 if test -z "$aix_libpath"; then
11782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11785 rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11789 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11791 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11793 if test "$host_cpu" = ia64; then
11794 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11795 allow_undefined_flag_CXX="-z nodefs"
11796 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"
11798 # Determine the default libpath from the value encoded in an
11799 # empty executable.
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11811 if ac_fn_cxx_try_link "$LINENO"; then :
11813 lt_aix_libpath_sed='
11814 /Import File Strings/,/^$/ {
11820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11821 # Check for a 64-bit object if we didn't find anything.
11822 if test -z "$aix_libpath"; then
11823 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11830 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11831 # Warning - without using the other run time loading flags,
11832 # -berok will link without error, but may produce a broken library.
11833 no_undefined_flag_CXX=' ${wl}-bernotok'
11834 allow_undefined_flag_CXX=' ${wl}-berok'
11835 # Exported symbols can be pulled into shared objects from archives
11836 whole_archive_flag_spec_CXX='$convenience'
11837 archive_cmds_need_lc_CXX=yes
11838 # This is similar to how AIX traditionally builds its shared
11840 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'
11846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11847 allow_undefined_flag_CXX=unsupported
11848 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11849 # support --undefined. This deserves some investigation. FIXME
11850 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11857 case $cc_basename in
11859 # FIXME: insert proper C++ library support
11865 cygwin* | mingw* | pw32* | cegcc*)
11866 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11867 # as there is no search path for DLLs.
11868 hardcode_libdir_flag_spec_CXX='-L$libdir'
11869 allow_undefined_flag_CXX=unsupported
11870 always_export_symbols_CXX=no
11871 enable_shared_with_static_runtimes_CXX=yes
11873 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11874 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'
11875 # If the export-symbols file already is a .def file (1st line
11876 # is EXPORTS), use it as is; otherwise, prepend...
11877 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11878 cp $export_symbols $output_objdir/$soname.def;
11880 echo EXPORTS > $output_objdir/$soname.def;
11881 cat $export_symbols >> $output_objdir/$soname.def;
11883 $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'
11888 darwin* | rhapsody*)
11891 archive_cmds_need_lc_CXX=no
11892 hardcode_direct_CXX=no
11893 hardcode_automatic_CXX=yes
11894 hardcode_shlibpath_var_CXX=unsupported
11895 whole_archive_flag_spec_CXX=''
11896 link_all_deplibs_CXX=yes
11897 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11898 case $cc_basename in
11899 ifort*) _lt_dar_can_shared=yes ;;
11900 *) _lt_dar_can_shared=$GCC ;;
11902 if test "$_lt_dar_can_shared" = "yes"; then
11903 output_verbose_link_cmd=echo
11904 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}"
11905 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11906 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}"
11907 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}"
11908 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11909 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}"
11910 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}"
11920 case $cc_basename in
11922 # FIXME: insert proper C++ library support
11926 # Green Hills C++ Compiler
11927 # FIXME: insert proper C++ library support
11931 # FIXME: insert proper C++ library support
11938 # C++ shared libraries reported to be fairly broken before
11944 archive_cmds_need_lc_CXX=no
11947 freebsd* | dragonfly*)
11948 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11957 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11958 hardcode_libdir_separator_CXX=:
11959 export_dynamic_flag_spec_CXX='${wl}-E'
11960 hardcode_direct_CXX=yes
11961 hardcode_minus_L_CXX=yes # Not in the search PATH,
11962 # but as the default
11963 # location of the library.
11965 case $cc_basename in
11967 # FIXME: insert proper C++ library support
11971 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'
11972 # Commands to make compiler produce verbose output that lists
11973 # what "hidden" libraries, object files and flags are used when
11974 # linking a shared library.
11976 # There doesn't appear to be a way to prevent this compiler from
11977 # explicitly linking system object files so we need to strip them
11978 # from the output so that they don't get included in the library
11980 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11983 if test "$GXX" = yes; then
11984 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'
11986 # FIXME: insert proper C++ library support
11994 if test $with_gnu_ld = no; then
11995 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11996 hardcode_libdir_separator_CXX=:
12002 export_dynamic_flag_spec_CXX='${wl}-E'
12008 hardcode_direct_CXX=no
12009 hardcode_shlibpath_var_CXX=no
12012 hardcode_direct_CXX=yes
12013 hardcode_direct_absolute_CXX=yes
12014 hardcode_minus_L_CXX=yes # Not in the search PATH,
12015 # but as the default
12016 # location of the library.
12020 case $cc_basename in
12022 # FIXME: insert proper C++ library support
12028 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12034 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12037 # Commands to make compiler produce verbose output that lists
12038 # what "hidden" libraries, object files and flags are used when
12039 # linking a shared library.
12041 # There doesn't appear to be a way to prevent this compiler from
12042 # explicitly linking system object files so we need to strip them
12043 # from the output so that they don't get included in the library
12045 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 "X$list" | $Xsed'
12048 if test "$GXX" = yes; then
12049 if test $with_gnu_ld = no; then
12052 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12055 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12058 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'
12063 # FIXME: insert proper C++ library support
12071 hardcode_direct_CXX=no
12072 hardcode_shlibpath_var_CXX=no
12073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12074 export_dynamic_flag_spec_CXX='${wl}-E'
12075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12076 # Instead, shared libraries are loaded at an image base (0x10000000 by
12077 # default) and relocated if they conflict, which is a slow very memory
12078 # consuming and fragmenting process. To avoid this, we pick a random,
12079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12080 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12081 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'
12082 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'
12085 case $cc_basename in
12088 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12090 # Archives containing C++ object files must be created using
12091 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12092 # necessary to make sure instantiated templates are included
12094 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12097 if test "$GXX" = yes; then
12098 if test "$with_gnu_ld" = no; then
12099 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12104 link_all_deplibs_CXX=yes
12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12108 hardcode_libdir_separator_CXX=:
12109 inherit_rpath_CXX=yes
12112 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12113 case $cc_basename in
12115 # Kuck and Associates, Inc. (KAI) C++ Compiler
12117 # KCC will only create a shared library if the output file
12118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12119 # to its proper name (with version) after linking.
12120 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'
12121 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'
12122 # Commands to make compiler produce verbose output that lists
12123 # what "hidden" libraries, object files and flags are used when
12124 # linking a shared library.
12126 # There doesn't appear to be a way to prevent this compiler from
12127 # explicitly linking system object files so we need to strip them
12128 # from the output so that they don't get included in the library
12130 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 "X$list" | $Xsed'
12132 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12135 # Archives containing C++ object files must be created using
12136 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12137 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12142 # version 8.0 and above of icpc choke on multiply defined symbols
12143 # if we add $predep_objects and $postdep_objects, however 7.1 and
12144 # earlier do not add the objects themselves.
12145 case `$CC -V 2>&1` in
12147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12148 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'
12150 *) # Version 8.0 or newer
12153 ia64*) tmp_idyn=' -i_dynamic';;
12155 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156 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'
12159 archive_cmds_need_lc_CXX=no
12160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12161 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12162 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12165 # Portland Group C++ compiler
12167 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12168 prelink_cmds_CXX='tpldir=Template.dir~
12170 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12171 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12172 old_archive_cmds_CXX='tpldir=Template.dir~
12174 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12175 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12177 archive_cmds_CXX='tpldir=Template.dir~
12179 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12180 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12181 archive_expsym_cmds_CXX='tpldir=Template.dir~
12183 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12184 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12186 *) # Version 6 will use weak symbols
12187 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12188 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'
12192 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12193 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12194 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'
12198 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12199 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'
12201 runpath_var=LD_RUN_PATH
12202 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12203 hardcode_libdir_separator_CXX=:
12205 # Commands to make compiler produce verbose output that lists
12206 # what "hidden" libraries, object files and flags are used when
12207 # linking a shared library.
12209 # There doesn't appear to be a way to prevent this compiler from
12210 # explicitly linking system object files so we need to strip them
12211 # from the output so that they don't get included in the library
12213 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12216 # IBM XL 8.0 on PPC, with GNU ld
12217 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12219 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220 if test "x$supports_anon_versioning" = xyes; then
12221 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12223 echo "local: *; };" >> $output_objdir/$libname.ver~
12224 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12228 case `$CC -V 2>&1 | sed 5q` in
12231 no_undefined_flag_CXX=' -zdefs'
12232 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233 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'
12234 hardcode_libdir_flag_spec_CXX='-R$libdir'
12235 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'
12236 compiler_needs_object_CXX=yes
12238 # Not sure whether something based on
12239 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12241 output_verbose_link_cmd='echo'
12243 # Archives containing C++ object files must be created using
12244 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12245 # necessary to make sure instantiated templates are included
12247 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12255 # FIXME: insert proper C++ library support
12260 # FIXME: insert proper C++ library support
12265 case $cc_basename in
12267 # FIXME: insert proper C++ library support
12271 # FIXME: insert proper C++ library support
12278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12279 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12281 hardcode_libdir_flag_spec_CXX='-R$libdir'
12282 hardcode_direct_CXX=yes
12283 hardcode_shlibpath_var_CXX=no
12285 # Workaround some broken pre-1.5 toolchains
12286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12294 # C++ shared libraries are fairly broken
12299 if test -f /usr/libexec/ld.so; then
12300 hardcode_direct_CXX=yes
12301 hardcode_shlibpath_var_CXX=no
12302 hardcode_direct_absolute_CXX=yes
12303 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12306 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12307 export_dynamic_flag_spec_CXX='${wl}-E'
12308 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12310 output_verbose_link_cmd=echo
12316 osf3* | osf4* | osf5*)
12317 case $cc_basename in
12319 # Kuck and Associates, Inc. (KAI) C++ Compiler
12321 # KCC will only create a shared library if the output file
12322 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12323 # to its proper name (with version) after linking.
12324 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'
12326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12327 hardcode_libdir_separator_CXX=:
12329 # Archives containing C++ object files must be created using
12330 # the KAI C++ compiler.
12332 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12333 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12337 # Rational C++ 2.4.1
12338 # FIXME: insert proper C++ library support
12344 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12345 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12346 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12349 allow_undefined_flag_CXX=' -expect_unresolved \*'
12350 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12351 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12352 echo "-hidden">> $lib.exp~
12353 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12355 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12359 hardcode_libdir_separator_CXX=:
12361 # Commands to make compiler produce verbose output that lists
12362 # what "hidden" libraries, object files and flags are used when
12363 # linking a shared library.
12365 # There doesn't appear to be a way to prevent this compiler from
12366 # explicitly linking system object files so we need to strip them
12367 # from the output so that they don't get included in the library
12369 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12372 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12373 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12376 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12379 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12383 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12384 hardcode_libdir_separator_CXX=:
12386 # Commands to make compiler produce verbose output that lists
12387 # what "hidden" libraries, object files and flags are used when
12388 # linking a shared library.
12389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12392 # FIXME: insert proper C++ library support
12400 # FIXME: insert proper C++ library support
12405 case $cc_basename in
12408 # FIXME: insert proper C++ library support
12413 # FIXME: insert proper C++ library support
12417 # FIXME: insert proper C++ library support
12424 case $cc_basename in
12426 # Sun C++ 4.2, 5.x and Centerline C++
12427 archive_cmds_need_lc_CXX=yes
12428 no_undefined_flag_CXX=' -zdefs'
12429 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12430 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12431 $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'
12433 hardcode_libdir_flag_spec_CXX='-R$libdir'
12434 hardcode_shlibpath_var_CXX=no
12436 solaris2.[0-5] | solaris2.[0-5].*) ;;
12438 # The compiler driver will combine and reorder linker options,
12439 # but understands `-z linker_flag'.
12440 # Supported since Solaris 2.6 (maybe 2.5.1?)
12441 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12444 link_all_deplibs_CXX=yes
12446 output_verbose_link_cmd='echo'
12448 # Archives containing C++ object files must be created using
12449 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12450 # necessary to make sure instantiated templates are included
12452 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12455 # Green Hills C++ Compiler
12456 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12458 # The C++ compiler must be used to create the archive.
12459 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12462 # GNU C++ compiler with Solaris linker
12463 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12464 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12465 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12466 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12467 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12468 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12470 # Commands to make compiler produce verbose output that lists
12471 # what "hidden" libraries, object files and flags are used when
12472 # linking a shared library.
12473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12475 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12477 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12478 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12479 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12481 # Commands to make compiler produce verbose output that lists
12482 # what "hidden" libraries, object files and flags are used when
12483 # linking a shared library.
12484 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12487 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12489 solaris2.[0-5] | solaris2.[0-5].*) ;;
12491 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12500 no_undefined_flag_CXX='${wl}-z,text'
12501 archive_cmds_need_lc_CXX=no
12502 hardcode_shlibpath_var_CXX=no
12503 runpath_var='LD_RUN_PATH'
12505 case $cc_basename in
12507 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12508 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12511 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12512 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12517 sysv5* | sco3.2v5* | sco5v6*)
12518 # Note: We can NOT use -z defs as we might desire, because we do not
12519 # link with -lc, and that would cause any symbols used from libc to
12520 # always be unresolved, which means just about no library would
12521 # ever link correctly. If we're not using GNU ld we use -z text
12522 # though, which does catch some bad symbols but isn't as heavy-handed
12524 no_undefined_flag_CXX='${wl}-z,text'
12525 allow_undefined_flag_CXX='${wl}-z,nodefs'
12526 archive_cmds_need_lc_CXX=no
12527 hardcode_shlibpath_var_CXX=no
12528 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12529 hardcode_libdir_separator_CXX=':'
12530 link_all_deplibs_CXX=yes
12531 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12532 runpath_var='LD_RUN_PATH'
12534 case $cc_basename in
12536 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12537 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12540 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12541 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547 case $cc_basename in
12549 # NonStop-UX NCC 3.20
12550 # FIXME: insert proper C++ library support
12554 # FIXME: insert proper C++ library support
12561 # FIXME: insert proper C++ library support
12566 # FIXME: insert proper C++ library support
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12572 $as_echo "$ld_shlibs_CXX" >&6; }
12573 test "$ld_shlibs_CXX" = no && can_build_shared=no
12579 ## There is no encapsulation within the following macros, do not change
12580 ## the running order or otherwise move them around unless you know exactly
12581 ## what you are doing...
12582 # Dependencies to place before and after the object being linked:
12583 predep_objects_CXX=
12584 postdep_objects_CXX=
12587 compiler_lib_search_path_CXX=
12589 cat > conftest.$ac_ext <<_LT_EOF
12593 Foo (void) { a = 0; }
12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12600 (eval $ac_compile) 2>&5
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }; then
12604 # Parse the compiler output and extract the necessary
12605 # objects, libraries and library flags.
12607 # Sentinel used to keep track of whether or not we are before
12608 # the conftest object file.
12609 pre_test_object_deps_done=no
12611 for p in `eval "$output_verbose_link_cmd"`; do
12615 # Some compilers place space between "-{L,R}" and the path.
12616 # Remove the space.
12617 if test $p = "-L" ||
12618 test $p = "-R"; then
12625 if test "$pre_test_object_deps_done" = no; then
12628 # Internal compiler library paths should come after those
12629 # provided the user. The postdeps already come after the
12630 # user supplied libs so there is no need to process them.
12631 if test -z "$compiler_lib_search_path_CXX"; then
12632 compiler_lib_search_path_CXX="${prev}${p}"
12634 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12637 # The "-l" case would never come before the object being
12638 # linked, so don't bother handling this case.
12641 if test -z "$postdeps_CXX"; then
12642 postdeps_CXX="${prev}${p}"
12644 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12650 # This assumes that the test object file only shows up
12651 # once in the compiler output.
12652 if test "$p" = "conftest.$objext"; then
12653 pre_test_object_deps_done=yes
12657 if test "$pre_test_object_deps_done" = no; then
12658 if test -z "$predep_objects_CXX"; then
12659 predep_objects_CXX="$p"
12661 predep_objects_CXX="$predep_objects_CXX $p"
12664 if test -z "$postdep_objects_CXX"; then
12665 postdep_objects_CXX="$p"
12667 postdep_objects_CXX="$postdep_objects_CXX $p"
12672 *) ;; # Ignore the rest.
12680 echo "libtool.m4: error: problem compiling CXX test program"
12683 $RM -f confest.$objext
12685 # PORTME: override above test on systems where it is broken
12688 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12689 # hack all around it, let's just trust "g++" to DTRT.
12690 predep_objects_CXX=
12691 postdep_objects_CXX=
12696 case `$CC -V 2>&1 | sed 5q` in
12700 # The more standards-conforming stlport4 library is
12701 # incompatible with the Cstd library. Avoid specifying
12702 # it if it's in CXXFLAGS. Ignore libCrun as
12703 # -library=stlport4 depends on it.
12704 case " $CXX $CXXFLAGS " in
12705 *" -library=stlport4 "*)
12706 solaris_use_stlport4=yes
12710 if test "$solaris_use_stlport4" != yes; then
12711 postdeps_CXX='-library=Cstd -library=Crun'
12718 case $cc_basename in
12720 # The more standards-conforming stlport4 library is
12721 # incompatible with the Cstd library. Avoid specifying
12722 # it if it's in CXXFLAGS. Ignore libCrun as
12723 # -library=stlport4 depends on it.
12724 case " $CXX $CXXFLAGS " in
12725 *" -library=stlport4 "*)
12726 solaris_use_stlport4=yes
12730 # Adding this requires a known-good setup of shared libraries for
12731 # Sun compiler versions before 5.6, else PIC objects from an old
12732 # archive will be linked into the output, leading to subtle bugs.
12733 if test "$solaris_use_stlport4" != yes; then
12734 postdeps_CXX='-library=Cstd -library=Crun'
12742 case " $postdeps_CXX " in
12743 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12745 compiler_lib_search_dirs_CXX=
12746 if test -n "${compiler_lib_search_path_CXX}"; then
12747 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12780 lt_prog_compiler_wl_CXX=
12781 lt_prog_compiler_pic_CXX=
12782 lt_prog_compiler_static_CXX=
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12785 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12787 # C++ specific cases for pic, static, wl, etc.
12788 if test "$GXX" = yes; then
12789 lt_prog_compiler_wl_CXX='-Wl,'
12790 lt_prog_compiler_static_CXX='-static'
12794 # All AIX code is PIC.
12795 if test "$host_cpu" = ia64; then
12796 # AIX 5 now supports IA64 processor
12797 lt_prog_compiler_static_CXX='-Bstatic'
12804 # see comment about AmigaOS4 .so support
12805 lt_prog_compiler_pic_CXX='-fPIC'
12808 # FIXME: we need at least 68020 code to build shared libraries, but
12809 # adding the `-m68020' flag to GCC prevents building anything better,
12811 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12816 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12817 # PIC is the default for these OSes.
12819 mingw* | cygwin* | os2* | pw32* | cegcc*)
12820 # This hack is so that the source file can tell whether it is being
12821 # built for inclusion in a dll (and should export symbols for example).
12822 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12823 # (--disable-auto-import) libraries
12824 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12826 darwin* | rhapsody*)
12827 # PIC is the default on this platform
12828 # Common symbols not allowed in MH_DYLIB files
12829 lt_prog_compiler_pic_CXX='-fno-common'
12832 # DJGPP does not support shared libraries at all
12833 lt_prog_compiler_pic_CXX=
12836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12837 # Instead, we relocate shared libraries at runtime.
12840 if test -d /usr/nec; then
12841 lt_prog_compiler_pic_CXX=-Kconform_pic
12845 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12846 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12847 # sets the default TLS model and affects inlining.
12852 lt_prog_compiler_pic_CXX='-fPIC'
12857 # QNX uses GNU C++, but need to define -shared option too, otherwise
12858 # it will coredump.
12859 lt_prog_compiler_pic_CXX='-fPIC -shared'
12862 lt_prog_compiler_pic_CXX='-fPIC'
12868 # All AIX code is PIC.
12869 if test "$host_cpu" = ia64; then
12870 # AIX 5 now supports IA64 processor
12871 lt_prog_compiler_static_CXX='-Bstatic'
12873 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12877 case $cc_basename in
12879 # Green Hills C++ Compiler
12880 # _LT_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"
12885 case $cc_basename in
12887 lt_prog_compiler_pic_CXX='-KPIC'
12890 # Green Hills C++ Compiler
12891 lt_prog_compiler_pic_CXX='-pic'
12897 freebsd* | dragonfly*)
12898 # FreeBSD uses GNU C++
12900 hpux9* | hpux10* | hpux11*)
12901 case $cc_basename in
12903 lt_prog_compiler_wl_CXX='-Wl,'
12904 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12905 if test "$host_cpu" != ia64; then
12906 lt_prog_compiler_pic_CXX='+Z'
12910 lt_prog_compiler_wl_CXX='-Wl,'
12911 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12917 lt_prog_compiler_pic_CXX='+Z'
12926 # This is c89, which is MS Visual C++ (no shared libs)
12927 # Anyone wants to do a port?
12929 irix5* | irix6* | nonstopux*)
12930 case $cc_basename in
12932 lt_prog_compiler_wl_CXX='-Wl,'
12933 lt_prog_compiler_static_CXX='-non_shared'
12934 # CC pic flag -KPIC is the default.
12940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12941 case $cc_basename in
12944 lt_prog_compiler_wl_CXX='--backend -Wl,'
12945 lt_prog_compiler_pic_CXX='-fPIC'
12948 # old Intel C++ for x86_64 which still supported -KPIC.
12949 lt_prog_compiler_wl_CXX='-Wl,'
12950 lt_prog_compiler_pic_CXX='-KPIC'
12951 lt_prog_compiler_static_CXX='-static'
12954 # Intel C++, used to be incompatible with GCC.
12955 # ICC 10 doesn't accept -KPIC any more.
12956 lt_prog_compiler_wl_CXX='-Wl,'
12957 lt_prog_compiler_pic_CXX='-fPIC'
12958 lt_prog_compiler_static_CXX='-static'
12961 # Portland Group C++ compiler
12962 lt_prog_compiler_wl_CXX='-Wl,'
12963 lt_prog_compiler_pic_CXX='-fpic'
12964 lt_prog_compiler_static_CXX='-Bstatic'
12968 # Make sure the PIC flag is empty. It appears that all Alpha
12969 # Linux and Compaq Tru64 Unix objects are PIC.
12970 lt_prog_compiler_pic_CXX=
12971 lt_prog_compiler_static_CXX='-non_shared'
12974 # IBM XL 8.0 on PPC
12975 lt_prog_compiler_wl_CXX='-Wl,'
12976 lt_prog_compiler_pic_CXX='-qpic'
12977 lt_prog_compiler_static_CXX='-qstaticlink'
12980 case `$CC -V 2>&1 | sed 5q` in
12983 lt_prog_compiler_pic_CXX='-KPIC'
12984 lt_prog_compiler_static_CXX='-Bstatic'
12985 lt_prog_compiler_wl_CXX='-Qoption ld '
12996 case $cc_basename in
12998 lt_prog_compiler_pic_CXX='-W c,exportall'
13004 netbsd* | netbsdelf*-gnu)
13007 # QNX uses GNU C++, but need to define -shared option too, otherwise
13008 # it will coredump.
13009 lt_prog_compiler_pic_CXX='-fPIC -shared'
13011 osf3* | osf4* | osf5*)
13012 case $cc_basename in
13014 lt_prog_compiler_wl_CXX='--backend -Wl,'
13017 # Rational C++ 2.4.1
13018 lt_prog_compiler_pic_CXX='-pic'
13021 # Digital/Compaq C++
13022 lt_prog_compiler_wl_CXX='-Wl,'
13023 # Make sure the PIC flag is empty. It appears that all Alpha
13024 # Linux and Compaq Tru64 Unix objects are PIC.
13025 lt_prog_compiler_pic_CXX=
13026 lt_prog_compiler_static_CXX='-non_shared'
13035 case $cc_basename in
13037 # Sun C++ 4.2, 5.x and Centerline C++
13038 lt_prog_compiler_pic_CXX='-KPIC'
13039 lt_prog_compiler_static_CXX='-Bstatic'
13040 lt_prog_compiler_wl_CXX='-Qoption ld '
13043 # Green Hills C++ Compiler
13044 lt_prog_compiler_pic_CXX='-PIC'
13051 case $cc_basename in
13054 lt_prog_compiler_pic_CXX='-pic'
13055 lt_prog_compiler_static_CXX='-Bstatic'
13059 lt_prog_compiler_pic_CXX='-pic'
13065 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13066 case $cc_basename in
13068 lt_prog_compiler_wl_CXX='-Wl,'
13069 lt_prog_compiler_pic_CXX='-KPIC'
13070 lt_prog_compiler_static_CXX='-Bstatic'
13075 case $cc_basename in
13077 # NonStop-UX NCC 3.20
13078 lt_prog_compiler_pic_CXX='-KPIC'
13087 lt_prog_compiler_can_build_shared_CXX=no
13093 # For platforms which do not support PIC, -DPIC is meaningless:
13095 lt_prog_compiler_pic_CXX=
13098 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13102 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13107 # Check to make sure the PIC flag actually works.
13109 if test -n "$lt_prog_compiler_pic_CXX"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13111 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13112 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
13115 lt_cv_prog_compiler_pic_works_CXX=no
13116 ac_outfile=conftest.$ac_objext
13117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13118 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13119 # Insert the option either (1) after the last *FLAGS variable, or
13120 # (2) before a word containing "conftest.", or (3) at the end.
13121 # Note that $ac_compile itself does not contain backslashes and begins
13122 # with a dollar sign (not a hyphen), so the echo should work correctly.
13123 # The option is referenced via a variable to avoid confusing sed.
13124 lt_compile=`echo "$ac_compile" | $SED \
13125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13127 -e 's:$: $lt_compiler_flag:'`
13128 (eval echo "\"\$as_me:13128: $lt_compile\"" >&5)
13129 (eval "$lt_compile" 2>conftest.err)
13131 cat conftest.err >&5
13132 echo "$as_me:13132: \$? = $ac_status" >&5
13133 if (exit $ac_status) && test -s "$ac_outfile"; then
13134 # The compiler can only warn and ignore the option if not recognized
13135 # So say no if there are warnings other than the usual output.
13136 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13139 lt_cv_prog_compiler_pic_works_CXX=yes
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13146 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13148 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13149 case $lt_prog_compiler_pic_CXX in
13151 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13154 lt_prog_compiler_pic_CXX=
13155 lt_prog_compiler_can_build_shared_CXX=no
13163 # Check to make sure the static flag actually works.
13165 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13167 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13168 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13169 $as_echo_n "(cached) " >&6
13171 lt_cv_prog_compiler_static_works_CXX=no
13172 save_LDFLAGS="$LDFLAGS"
13173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13176 # The linker can only warn and ignore the option if not recognized
13177 # So say no if there are warnings
13178 if test -s conftest.err; then
13179 # Append any errors to the config.log.
13180 cat conftest.err 1>&5
13181 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13183 if diff conftest.exp conftest.er2 >/dev/null; then
13184 lt_cv_prog_compiler_static_works_CXX=yes
13187 lt_cv_prog_compiler_static_works_CXX=yes
13191 LDFLAGS="$save_LDFLAGS"
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13195 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13197 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13200 lt_prog_compiler_static_CXX=
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13208 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13209 $as_echo_n "(cached) " >&6
13211 lt_cv_prog_compiler_c_o_CXX=no
13212 $RM -r conftest 2>/dev/null
13216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13218 lt_compiler_flag="-o out/conftest2.$ac_objext"
13219 # Insert the option either (1) after the last *FLAGS variable, or
13220 # (2) before a word containing "conftest.", or (3) at the end.
13221 # Note that $ac_compile itself does not contain backslashes and begins
13222 # with a dollar sign (not a hyphen), so the echo should work correctly.
13223 lt_compile=`echo "$ac_compile" | $SED \
13224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13226 -e 's:$: $lt_compiler_flag:'`
13227 (eval echo "\"\$as_me:13227: $lt_compile\"" >&5)
13228 (eval "$lt_compile" 2>out/conftest.err)
13230 cat out/conftest.err >&5
13231 echo "$as_me:13231: \$? = $ac_status" >&5
13232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13234 # The compiler can only warn and ignore the option if not recognized
13235 # So say no if there are warnings
13236 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13239 lt_cv_prog_compiler_c_o_CXX=yes
13244 # SGI C++ compiler will create directory out/ii_files/ for
13245 # template instantiation
13246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13247 $RM out/* && rmdir out
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13254 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13260 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13261 $as_echo_n "(cached) " >&6
13263 lt_cv_prog_compiler_c_o_CXX=no
13264 $RM -r conftest 2>/dev/null
13268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13270 lt_compiler_flag="-o out/conftest2.$ac_objext"
13271 # Insert the option either (1) after the last *FLAGS variable, or
13272 # (2) before a word containing "conftest.", or (3) at the end.
13273 # Note that $ac_compile itself does not contain backslashes and begins
13274 # with a dollar sign (not a hyphen), so the echo should work correctly.
13275 lt_compile=`echo "$ac_compile" | $SED \
13276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13278 -e 's:$: $lt_compiler_flag:'`
13279 (eval echo "\"\$as_me:13279: $lt_compile\"" >&5)
13280 (eval "$lt_compile" 2>out/conftest.err)
13282 cat out/conftest.err >&5
13283 echo "$as_me:13283: \$? = $ac_status" >&5
13284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13286 # The compiler can only warn and ignore the option if not recognized
13287 # So say no if there are warnings
13288 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13291 lt_cv_prog_compiler_c_o_CXX=yes
13296 # SGI C++ compiler will create directory out/ii_files/ for
13297 # template instantiation
13298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13299 $RM out/* && rmdir out
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13306 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13311 hard_links="nottested"
13312 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13313 # do not overwrite the value of need_locks provided by the user
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13315 $as_echo_n "checking if we can lock with hard links... " >&6; }
13318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13320 ln conftest.a conftest.b 2>&5 || hard_links=no
13321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13323 $as_echo "$hard_links" >&6; }
13324 if test "$hard_links" = no; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13326 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13338 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13341 # If we're using GNU nm, then we don't want the "-C" option.
13342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13343 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13344 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'
13346 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'
13350 export_symbols_cmds_CXX="$ltdll_cmds"
13352 cygwin* | mingw* | cegcc*)
13353 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'
13355 linux* | k*bsd*-gnu)
13356 link_all_deplibs_CXX=no
13359 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13362 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13365 $as_echo "$ld_shlibs_CXX" >&6; }
13366 test "$ld_shlibs_CXX" = no && can_build_shared=no
13368 with_gnu_ld_CXX=$with_gnu_ld
13376 # Do we need to explicitly link libc?
13378 case "x$archive_cmds_need_lc_CXX" in
13380 # Assume -lc should be added
13381 archive_cmds_need_lc_CXX=yes
13383 if test "$enable_shared" = yes && test "$GCC" = yes; then
13384 case $archive_cmds_CXX in
13386 # FIXME: we may have to deal with multi-command sequences.
13389 # Test whether the compiler implicitly links with -lc since on some
13390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13391 # to ld, don't add -lc before -lgcc.
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13393 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13398 (eval $ac_compile) 2>&5
13400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401 test $ac_status = 0; } 2>conftest.err; then
13404 libobjs=conftest.$ac_objext
13406 wl=$lt_prog_compiler_wl_CXX
13407 pic_flag=$lt_prog_compiler_pic_CXX
13413 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13414 allow_undefined_flag_CXX=
13415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13416 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13419 test $ac_status = 0; }
13421 archive_cmds_need_lc_CXX=no
13423 archive_cmds_need_lc_CXX=yes
13425 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13427 cat conftest.err 1>&5
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13431 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13502 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13504 library_names_spec=
13505 libname_spec='lib$name'
13509 postuninstall_cmds=
13513 shlibpath_overrides_runpath=unknown
13515 dynamic_linker="$host_os ld.so"
13516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13517 need_lib_prefix=unknown
13518 hardcode_into_libs=no
13520 # when you set need_version to no, make sure it does not cause -set_version
13521 # flags to be left without arguments
13522 need_version=unknown
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13528 shlibpath_var=LIBPATH
13530 # AIX 3 has no versioning support, so we append a major version to the name.
13531 soname_spec='${libname}${release}${shared_ext}$major'
13538 hardcode_into_libs=yes
13539 if test "$host_cpu" = ia64; then
13540 # AIX 5 supports IA64
13541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13542 shlibpath_var=LD_LIBRARY_PATH
13544 # With GCC up to 2.95.x, collect2 would create an import file
13545 # for dependence libraries. The import file would start with
13546 # the line `#! .'. This would cause the generated library to
13547 # depend on `.', always an invalid library. This was fixed in
13548 # development snapshots of GCC prior to 3.0.
13550 aix4 | aix4.[01] | aix4.[01].*)
13551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13553 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13556 can_build_shared=no
13560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13561 # soname into executable. Probably we can add versioning support to
13562 # collect2, so additional links can be useful in future.
13563 if test "$aix_use_runtimelinking" = yes; then
13564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13565 # instead of lib<name>.a to let people know that these are not
13566 # typical AIX shared libraries.
13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13569 # We preserve .a as extension for shared libraries through AIX4.2
13570 # and later when we are not doing run time linking.
13571 library_names_spec='${libname}${release}.a $libname.a'
13572 soname_spec='${libname}${release}${shared_ext}$major'
13574 shlibpath_var=LIBPATH
13581 # Since July 2007 AmigaOS4 officially supports .so libraries.
13582 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13586 library_names_spec='$libname.ixlibrary $libname.a'
13587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13588 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'
13594 library_names_spec='${libname}${shared_ext}'
13595 dynamic_linker="$host_os ld.so"
13596 shlibpath_var=LIBRARY_PATH
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13605 shlibpath_var=LD_LIBRARY_PATH
13606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13608 # the default ld.so.conf also contains /usr/contrib/lib and
13609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13610 # libtool to hard-code these into programs
13613 cygwin* | mingw* | pw32* | cegcc*)
13614 version_type=windows
13619 case $GCC,$host_os in
13620 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13621 library_names_spec='$libname.dll.a'
13622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13623 postinstall_cmds='base_file=`basename \${file}`~
13624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13625 dldir=$destdir/`dirname \$dlpath`~
13626 test -d \$dldir || mkdir -p \$dldir~
13627 $install_prog $dir/$dlname \$dldir/$dlname~
13628 chmod a+x \$dldir/$dlname~
13629 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13630 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13633 dlpath=$dir/\$dldll~
13635 shlibpath_overrides_runpath=yes
13639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13644 # MinGW DLLs use traditional 'lib' prefix
13645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13646 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13647 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13648 # It is most probably a Windows format PATH printed by
13649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13650 # path with ; separators, and with drive letters. We can handle the
13651 # drive letters (cygwin fileutils understands them), so leave them,
13652 # especially as we might pass files found there to a mingw objdump,
13653 # which wouldn't understand a cygwinified path. Ahh.
13654 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13660 # pw32 DLLs use 'pw' prefix rather than 'lib'
13661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13670 dynamic_linker='Win32 ld.exe'
13671 # FIXME: first we should search . and the directory the executable is in
13675 darwin* | rhapsody*)
13676 dynamic_linker="$host_os dyld"
13677 version_type=darwin
13680 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13681 soname_spec='${libname}${release}${major}$shared_ext'
13682 shlibpath_overrides_runpath=yes
13683 shlibpath_var=DYLD_LIBRARY_PATH
13684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13694 soname_spec='${libname}${release}${shared_ext}$major'
13695 shlibpath_var=LD_LIBRARY_PATH
13702 freebsd* | dragonfly*)
13703 # DragonFly does not have aout. When/if they implement a new
13704 # versioning mechanism, adjust this.
13705 if test -x /usr/bin/objformat; then
13706 objformat=`/usr/bin/objformat`
13709 freebsd[123]*) objformat=aout ;;
13710 *) objformat=elf ;;
13713 version_type=freebsd-$objformat
13714 case $version_type in
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13725 shlibpath_var=LD_LIBRARY_PATH
13728 shlibpath_overrides_runpath=yes
13730 freebsd3.[01]* | freebsdelf3.[01]*)
13731 shlibpath_overrides_runpath=yes
13732 hardcode_into_libs=yes
13734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13736 shlibpath_overrides_runpath=no
13737 hardcode_into_libs=yes
13739 *) # from 4.6 on, and DragonFly
13740 shlibpath_overrides_runpath=yes
13741 hardcode_into_libs=yes
13750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13751 soname_spec='${libname}${release}${shared_ext}$major'
13752 shlibpath_var=LD_LIBRARY_PATH
13753 hardcode_into_libs=yes
13756 hpux9* | hpux10* | hpux11*)
13757 # Give a soname corresponding to the major version so that dld.sl refuses to
13758 # link against other versions.
13765 hardcode_into_libs=yes
13766 dynamic_linker="$host_os dld.so"
13767 shlibpath_var=LD_LIBRARY_PATH
13768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770 soname_spec='${libname}${release}${shared_ext}$major'
13771 if test "X$HPUX_IA64_MODE" = X32; then
13772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13774 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13780 hardcode_into_libs=yes
13781 dynamic_linker="$host_os dld.sl"
13782 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13791 dynamic_linker="$host_os dld.sl"
13792 shlibpath_var=SHLIB_PATH
13793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795 soname_spec='${libname}${release}${shared_ext}$major'
13798 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13799 postinstall_cmds='chmod 555 $lib'
13806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13807 soname_spec='${libname}${release}${shared_ext}$major'
13808 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13809 shlibpath_var=LD_LIBRARY_PATH
13810 shlibpath_overrides_runpath=no
13811 hardcode_into_libs=yes
13814 irix5* | irix6* | nonstopux*)
13816 nonstopux*) version_type=nonstopux ;;
13818 if test "$lt_cv_prog_gnu_ld" = yes; then
13826 soname_spec='${libname}${release}${shared_ext}$major'
13827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13829 irix5* | nonstopux*)
13830 libsuff= shlibsuff=
13833 case $LD in # libtool.m4 will add one of these switches to LD
13834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13835 libsuff= shlibsuff= libmagic=32-bit;;
13836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13837 libsuff=32 shlibsuff=N32 libmagic=N32;;
13838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13840 *) libsuff= shlibsuff= libmagic=never-match;;
13844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13845 shlibpath_overrides_runpath=no
13846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13848 hardcode_into_libs=yes
13851 # No shared lib support for Linux oldld, aout, or coff.
13852 linux*oldld* | linux*aout* | linux*coff*)
13856 # This must be Linux ELF.
13857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862 soname_spec='${libname}${release}${shared_ext}$major'
13863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13864 shlibpath_var=LD_LIBRARY_PATH
13865 shlibpath_overrides_runpath=no
13866 # Some binutils ld are patched to set DT_RUNPATH
13867 save_LDFLAGS=$LDFLAGS
13868 save_libdir=$libdir
13869 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13870 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13882 if ac_fn_cxx_try_link "$LINENO"; then :
13883 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13884 shlibpath_overrides_runpath=yes
13887 rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13889 LDFLAGS=$save_LDFLAGS
13890 libdir=$save_libdir
13892 # This implies no fast_install, which is unacceptable.
13893 # Some rework will be needed to allow for fast_install
13894 # before this can be enabled.
13895 hardcode_into_libs=yes
13897 # Append ld.so.conf contents to the search path
13898 if test -f /etc/ld.so.conf; then
13899 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' ' '`
13900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13903 # We used to test for /lib/ld.so.1 and disable shared libraries on
13904 # powerpc, because MkLinux only supported shared libraries with the
13905 # GNU dynamic linker. Since this was broken with cross compilers,
13906 # most powerpc-linux boxes support dynamic linking these days and
13907 # people can always --disable-shared, the test was removed, and we
13908 # assume the GNU/Linux dynamic linker is in use.
13909 dynamic_linker='GNU/Linux ld.so'
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13917 soname_spec='${libname}${release}${shared_ext}$major'
13918 shlibpath_var=LD_LIBRARY_PATH
13919 shlibpath_overrides_runpath=no
13920 hardcode_into_libs=yes
13921 dynamic_linker='NetBSD ld.elf_so'
13928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13931 dynamic_linker='NetBSD (a.out) ld.so'
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13934 soname_spec='${libname}${release}${shared_ext}$major'
13935 dynamic_linker='NetBSD ld.elf_so'
13937 shlibpath_var=LD_LIBRARY_PATH
13938 shlibpath_overrides_runpath=yes
13939 hardcode_into_libs=yes
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=yes
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 shlibpath_var=LD_LIBRARY_PATH
13956 shlibpath_overrides_runpath=no
13957 hardcode_into_libs=yes
13958 dynamic_linker='ldqnx.so'
13963 sys_lib_dlsearch_path_spec="/usr/lib"
13965 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13967 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13968 *) need_version=no ;;
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13972 shlibpath_var=LD_LIBRARY_PATH
13973 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13975 openbsd2.[89] | openbsd2.[89].*)
13976 shlibpath_overrides_runpath=no
13979 shlibpath_overrides_runpath=yes
13983 shlibpath_overrides_runpath=yes
13988 libname_spec='$name'
13991 library_names_spec='$libname${shared_ext} $libname.a'
13992 dynamic_linker='OS/2 ld.exe'
13993 shlibpath_var=LIBPATH
13996 osf3* | osf4* | osf5*)
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002 shlibpath_var=LD_LIBRARY_PATH
14003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14004 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016 soname_spec='${libname}${release}${shared_ext}$major'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 shlibpath_overrides_runpath=yes
14019 hardcode_into_libs=yes
14020 # ldd complains unless libraries are executable
14021 postinstall_cmds='chmod +x $lib'
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14027 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14028 shlibpath_var=LD_LIBRARY_PATH
14029 shlibpath_overrides_runpath=yes
14030 if test "$with_gnu_ld" = yes; then
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039 soname_spec='${libname}${release}${shared_ext}$major'
14040 shlibpath_var=LD_LIBRARY_PATH
14041 case $host_vendor in
14043 shlibpath_overrides_runpath=no
14045 runpath_var=LD_RUN_PATH
14053 shlibpath_overrides_runpath=no
14054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14060 if test -d /usr/nec ;then
14062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14063 soname_spec='$libname${shared_ext}.$major'
14064 shlibpath_var=LD_LIBRARY_PATH
14068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14069 version_type=freebsd-elf
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=yes
14076 hardcode_into_libs=yes
14077 if test "$with_gnu_ld" = yes; then
14078 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14087 sys_lib_dlsearch_path_spec='/usr/lib'
14091 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 shlibpath_var=LD_LIBRARY_PATH
14097 shlibpath_overrides_runpath=no
14098 hardcode_into_libs=yes
14103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14104 soname_spec='${libname}${release}${shared_ext}$major'
14105 shlibpath_var=LD_LIBRARY_PATH
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14113 $as_echo "$dynamic_linker" >&6; }
14114 test "$dynamic_linker" = no && can_build_shared=no
14116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14117 if test "$GCC" = yes; then
14118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14121 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14122 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14124 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14125 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14165 hardcode_action_CXX=
14166 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14167 test -n "$runpath_var_CXX" ||
14168 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14170 # We can hardcode non-existent directories.
14171 if test "$hardcode_direct_CXX" != no &&
14172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14173 # have to relink, otherwise we might link with an installed library
14174 # when we should be linking with a yet-to-be-installed one
14175 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14176 test "$hardcode_minus_L_CXX" != no; then
14177 # Linking always hardcodes the temporary library directory.
14178 hardcode_action_CXX=relink
14180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14181 hardcode_action_CXX=immediate
14184 # We cannot hardcode anything, or else we can only hardcode existing
14186 hardcode_action_CXX=unsupported
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14189 $as_echo "$hardcode_action_CXX" >&6; }
14191 if test "$hardcode_action_CXX" = relink ||
14192 test "$inherit_rpath_CXX" = yes; then
14193 # Fast installation is not supported
14194 enable_fast_install=no
14195 elif test "$shlibpath_overrides_runpath" = yes ||
14196 test "$enable_shared" = no; then
14197 # Fast installation is not necessary
14198 enable_fast_install=needless
14207 fi # test -n "$compiler"
14213 with_gnu_ld=$lt_save_with_gnu_ld
14214 lt_cv_path_LDCXX=$lt_cv_path_LD
14215 lt_cv_path_LD=$lt_save_path_LD
14216 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14217 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14218 fi # test "$_lt_caught_CXX_error" != yes
14221 ac_cpp='$CXXCPP $CPPFLAGS'
14222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14238 ac_config_commands="$ac_config_commands libtool"
14243 # Only expand once:
14247 # TODO(chandlerc@google.com): Currently we aren't running the Python tests
14248 # against the interpreter detected by AM_PATH_PYTHON, and so we condition
14249 # HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
14250 # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
14252 PYTHON= # We *do not* allow the user to specify a python interpreter
14253 # Extract the first word of "python", so it can be a program name with args.
14254 set dummy python; ac_word=$2
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256 $as_echo_n "checking for $ac_word... " >&6; }
14257 if test "${ac_cv_path_PYTHON+set}" = set; then :
14258 $as_echo_n "(cached) " >&6
14262 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14266 for as_dir in $PATH
14269 test -z "$as_dir" && as_dir=.
14270 for ac_exec_ext in '' $ac_executable_extensions; do
14271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14272 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14280 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
14284 PYTHON=$ac_cv_path_PYTHON
14285 if test -n "$PYTHON"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14287 $as_echo "$PYTHON" >&6; }
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14294 if test "$PYTHON" != ":"; then :
14296 # split strings by '.' and convert to numeric. Append some zeros
14297 # because we need at least 4 digits for the hex conversion.
14298 # map returns an iterator in Python 3.0 and a list in 2.x
14299 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
14301 # xrange is not present in Python 3.0 and range returns an iterator
14302 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14303 sys.exit(sys.hexversion < minverhex)"
14304 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14305 ($PYTHON -c "$prog") >&5 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; then :
14314 if test "$PYTHON" != ":"; then
14316 HAVE_PYTHON_FALSE='#'
14318 HAVE_PYTHON_TRUE='#'
14323 # Configure pthreads.
14325 # Check whether --with-pthreads was given.
14326 if test "${with_pthreads+set}" = set; then :
14327 withval=$with_pthreads; with_pthreads=$withval
14329 with_pthreads=check
14334 if test "x$with_pthreads" != "xno"; then :
14339 ac_cpp='$CPP $CPPFLAGS'
14340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14346 # We used to check for pthread.h first, but this fails if pthread.h
14347 # requires special compiler flags (e.g. on True64 or Sequent).
14348 # It gets checked for in the link test anyway.
14350 # First of all, check if the user has set any of the PTHREAD_LIBS,
14351 # etcetera environment variables, and if threads linking works using
14353 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14354 save_CFLAGS="$CFLAGS"
14355 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14357 LIBS="$PTHREAD_LIBS $LIBS"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14359 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14363 /* Override any GCC internal prototype to avoid an error.
14364 Use char because int might match the return type of a GCC
14365 builtin and then its argument prototype would still apply. */
14369 char pthread_join ();
14373 return pthread_join ();
14378 if ac_fn_c_try_link "$LINENO"; then :
14381 rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext conftest.$ac_ext
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14384 $as_echo "$acx_pthread_ok" >&6; }
14385 if test x"$acx_pthread_ok" = xno; then
14390 CFLAGS="$save_CFLAGS"
14393 # We must check for the threads library under a number of different
14394 # names; the ordering is very important because some systems
14395 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14396 # libraries is broken (non-POSIX).
14398 # Create a list of thread flags to try. Items starting with a "-" are
14399 # C compiler flags, and other items are library names, except for "none"
14400 # which indicates that we try without any flags at all, and "pthread-config"
14401 # which is a program returning the flags for the Pth emulation library.
14403 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14405 # The ordering *is* (sometimes) important. Some notes on the
14406 # individual items follow:
14408 # pthreads: AIX (must check this before -lpthread)
14409 # none: in case threads are in libc; should be tried before -Kthread and
14410 # other compiler flags to prevent continual compiler warnings
14411 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14412 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14413 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14414 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14415 # -pthreads: Solaris/gcc
14416 # -mthreads: Mingw32/gcc, Lynx/gcc
14417 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14418 # doesn't hurt to check since this sometimes defines pthreads too;
14419 # also defines -D_REENTRANT)
14420 # ... -mt is also the pthreads flag for HP/aCC
14421 # pthread: Linux, etcetera
14422 # --thread-safe: KAI C++
14423 # pthread-config: use pthread-config program (for GNU Pth library)
14425 case "${host_cpu}-${host_os}" in
14428 # On Solaris (at least, for some versions), libc contains stubbed
14429 # (non-functional) versions of the pthreads routines, so link-based
14430 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14431 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14432 # a function called by this macro, so we could check for that, but
14433 # who knows whether they'll stub that too in a future libc.) So,
14434 # we'll just look for -pthreads and -lpthread first:
14436 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14440 if test x"$acx_pthread_ok" = xno; then
14441 for flag in $acx_pthread_flags; do
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14446 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14451 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14452 PTHREAD_CFLAGS="$flag"
14456 # Extract the first word of "pthread-config", so it can be a program name with args.
14457 set dummy pthread-config; ac_word=$2
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14459 $as_echo_n "checking for $ac_word... " >&6; }
14460 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
14461 $as_echo_n "(cached) " >&6
14463 if test -n "$acx_pthread_config"; then
14464 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $PATH
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14473 ac_cv_prog_acx_pthread_config="yes"
14474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14481 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14484 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14485 if test -n "$acx_pthread_config"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14487 $as_echo "$acx_pthread_config" >&6; }
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14494 if test x"$acx_pthread_config" = xno; then continue; fi
14495 PTHREAD_CFLAGS="`pthread-config --cflags`"
14496 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14501 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14502 PTHREAD_LIBS="-l$flag"
14507 save_CFLAGS="$CFLAGS"
14508 LIBS="$PTHREAD_LIBS $LIBS"
14509 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14511 # Check for various functions. We must include pthread.h,
14512 # since some functions may be macros. (On the Sequent, we
14513 # need a special flag -Kthread to make this header compile.)
14514 # We check for pthread_join because it is in -lpthread on IRIX
14515 # while pthread_create is in libc. We check for pthread_attr_init
14516 # due to DEC craziness with -lpthreads. We check for
14517 # pthread_cleanup_push because it is one of the few pthread
14518 # functions on Solaris that doesn't have a non-functional libc stub.
14519 # We try pthread_create on general principles.
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522 #include <pthread.h>
14526 pthread_t th; pthread_join(th, 0);
14527 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14528 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14533 if ac_fn_c_try_link "$LINENO"; then :
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14540 CFLAGS="$save_CFLAGS"
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14543 $as_echo "$acx_pthread_ok" >&6; }
14544 if test "x$acx_pthread_ok" = xyes; then
14553 # Various other checks:
14554 if test "x$acx_pthread_ok" = xyes; then
14556 LIBS="$PTHREAD_LIBS $LIBS"
14557 save_CFLAGS="$CFLAGS"
14558 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14560 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14562 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14564 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #include <pthread.h>
14571 int attr=$attr; return attr;
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 attr_name=$attr; break
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext conftest.$ac_ext
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14583 $as_echo "$attr_name" >&6; }
14584 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14586 cat >>confdefs.h <<_ACEOF
14587 #define PTHREAD_CREATE_JOINABLE $attr_name
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14593 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14595 case "${host_cpu}-${host_os}" in
14596 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14597 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14600 $as_echo "${flag}" >&6; }
14601 if test "x$flag" != xno; then
14602 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14606 CFLAGS="$save_CFLAGS"
14607 # More AIX lossage: must compile with xlc_r or cc_r
14608 if test x"$GCC" != xyes; then
14609 for ac_prog in xlc_r cc_r
14611 # Extract the first word of "$ac_prog", so it can be a program name with args.
14612 set dummy $ac_prog; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
14616 $as_echo_n "(cached) " >&6
14618 if test -n "$PTHREAD_CC"; then
14619 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14628 ac_cv_prog_PTHREAD_CC="$ac_prog"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14638 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14639 if test -n "$PTHREAD_CC"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14641 $as_echo "$PTHREAD_CC" >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14648 test -n "$PTHREAD_CC" && break
14650 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14656 # The next part tries to detect GCC inconsistency with -shared on some
14657 # architectures and systems. The problem is that in certain
14658 # configurations, when -shared is specified, GCC "forgets" to
14659 # internally use various flags which are still necessary.
14662 # Prepare the flags
14664 save_CFLAGS="$CFLAGS"
14668 # Try with the flags determined by the earlier checks.
14670 # -Wl,-z,defs forces link-time symbol resolution, so that the
14671 # linking checks with -shared actually have any value
14673 # FIXME: -fPIC is required for -shared on many architectures,
14674 # so we specify it here, but the right way would probably be to
14675 # properly detect whether it is actually required.
14676 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
14677 LIBS="$PTHREAD_LIBS $LIBS"
14680 # In order not to create several levels of indentation, we test
14681 # the value of "$done" until we find the cure or run out of ideas.
14684 # First, make sure the CFLAGS we added are actually accepted by our
14685 # compiler. If not (and OS X's ld, for instance, does not accept -z),
14686 # then we can't do this test.
14687 if test x"$done" = xno; then
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
14689 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14701 if ac_fn_c_try_link "$LINENO"; then :
14706 rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14709 if test "x$done" = xyes ; then
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711 $as_echo "no" >&6; }
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14714 $as_echo "yes" >&6; }
14718 if test x"$done" = xno; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
14720 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 #include <pthread.h>
14727 pthread_t th; pthread_join(th, 0);
14728 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14729 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14734 if ac_fn_c_try_link "$LINENO"; then :
14737 rm -f core conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
14740 if test "x$done" = xyes; then
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14742 $as_echo "yes" >&6; }
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14750 # Linux gcc on some architectures such as mips/mipsel forgets
14753 if test x"$done" = xno; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
14755 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
14756 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 #include <pthread.h>
14763 pthread_t th; pthread_join(th, 0);
14764 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14765 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14770 if ac_fn_c_try_link "$LINENO"; then :
14773 rm -f core conftest.err conftest.$ac_objext \
14774 conftest$ac_exeext conftest.$ac_ext
14776 if test "x$done" = xyes; then
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14778 $as_echo "yes" >&6; }
14779 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782 $as_echo "no" >&6; }
14786 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
14788 if test x"$done" = xno; then
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
14790 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
14791 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 #include <pthread.h>
14798 pthread_t th; pthread_join(th, 0);
14799 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14800 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14805 if ac_fn_c_try_link "$LINENO"; then :
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14811 if test "x$done" = xyes; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14813 $as_echo "yes" >&6; }
14814 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14817 $as_echo "no" >&6; }
14820 if test x"$done" = xno; then
14821 # OK, we have run out of ideas
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
14823 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
14825 # so it's not safe to assume that we may use pthreads
14829 CFLAGS="$save_CFLAGS"
14840 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14841 if test x"$acx_pthread_ok" = xyes; then
14843 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14848 if test "x$with_pthreads" != "xcheck"; then :
14849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14851 as_fn_error "--with-pthreads was specified, but unable to be used
14852 See \`config.log' for more details." "$LINENO" 5; }
14856 ac_cpp='$CXXCPP $CPPFLAGS'
14857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14862 have_pthreads="$acx_pthread_ok"
14864 if test "x$have_pthreads" == "xyes"; then
14865 HAVE_PTHREADS_TRUE=
14866 HAVE_PTHREADS_FALSE='#'
14868 HAVE_PTHREADS_TRUE='#'
14869 HAVE_PTHREADS_FALSE=
14875 # TODO(chandlerc@google.com) Check for the necessary system headers.
14877 # TODO(chandlerc@google.com) Check the types, structures, and other compiler
14878 # and architecture characteristics.
14880 # Output the generated files. No further autoconf macros may be used.
14881 cat >confcache <<\_ACEOF
14882 # This file is a shell script that caches the results of configure
14883 # tests run on this system so they can be shared between configure
14884 # scripts and configure runs, see configure's option --config-cache.
14885 # It is not useful on other systems. If it contains results you don't
14886 # want to keep, you may remove or edit it.
14888 # config.status only pays attention to the cache file if you give it
14889 # the --recheck option to rerun configure.
14891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14893 # following values.
14897 # The following way of writing the cache mishandles newlines in values,
14898 # but we know of no workaround that is simple, portable, and efficient.
14899 # So, we kill variables containing newlines.
14900 # Ultrix sh set writes to stderr and can't be redirected directly,
14901 # and sets the high bit in the cache file unless we assign to the vars.
14903 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14904 eval ac_val=\$$ac_var
14908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14912 _ | IFS | as_nl) ;; #(
14913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14914 *) { eval $ac_var=; unset $ac_var;} ;;
14920 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14921 *${as_nl}ac_space=\ *)
14922 # `set' does not quote correctly, so add quotes: double-quote
14923 # substitution turns \\\\ into \\, and sed turns \\ into \.
14926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14929 # `set' quotes correctly as required by POSIX, so do not add quotes.
14930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14943 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14944 if test -w "$cache_file"; then
14945 test "x$cache_file" != "x/dev/null" &&
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14947 $as_echo "$as_me: updating cache $cache_file" >&6;}
14948 cat confcache >$cache_file
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14951 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14957 # Let make expand exec_prefix.
14958 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14960 DEFS=-DHAVE_CONFIG_H
14964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14965 # 1. Remove the extension, and $U if already installed.
14966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14967 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14969 # will be set to the directory where LIBOBJS objects are built.
14970 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14971 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14973 LIBOBJS=$ac_libobjs
14975 LTLIBOBJS=$ac_ltlibobjs
14978 if test -n "$EXEEXT"; then
14980 am__EXEEXT_FALSE='#'
14982 am__EXEEXT_TRUE='#'
14986 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14987 as_fn_error "conditional \"AMDEP\" was never defined.
14988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14991 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14994 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14995 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14999 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15002 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15003 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
15004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15006 if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
15007 as_fn_error "conditional \"HAVE_PTHREADS\" was never defined.
15008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15011 : ${CONFIG_STATUS=./config.status}
15013 ac_clean_files_save=$ac_clean_files
15014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15016 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15018 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15020 # Generated by $as_me.
15021 # Run this file to recreate the current configuration.
15022 # Compiler output produced by configure, useful for debugging
15023 # configure, is in config.log if it exists.
15026 ac_cs_recheck=false
15029 SHELL=\${CONFIG_SHELL-$SHELL}
15032 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15033 ## -------------------- ##
15034 ## M4sh Initialization. ##
15035 ## -------------------- ##
15037 # Be more Bourne compatible
15038 DUALCASE=1; export DUALCASE # for MKS sh
15039 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15042 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15043 # is contrary to our usage. Disable this feature.
15044 alias -g '${1+"$@"}'='"$@"'
15045 setopt NO_GLOB_SUBST
15047 case `(set -o) 2>/dev/null` in #(
15059 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15060 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15063 # Prefer a ksh shell builtin over an external printf program on Solaris,
15064 # but without wasting forks for bash or zsh.
15065 if test -z "$BASH_VERSION$ZSH_VERSION" \
15066 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15067 as_echo='print -r --'
15068 as_echo_n='print -rn --'
15069 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15070 as_echo='printf %s\n'
15071 as_echo_n='printf %s'
15073 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15074 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15075 as_echo_n='/usr/ucb/echo -n'
15077 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15078 as_echo_n_body='eval
15082 expr "X$arg" : "X\\(.*\\)$as_nl";
15083 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15085 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15087 export as_echo_n_body
15088 as_echo_n='sh -c $as_echo_n_body as_echo'
15090 export as_echo_body
15091 as_echo='sh -c $as_echo_body as_echo'
15094 # The user is always right.
15095 if test "${PATH_SEPARATOR+set}" != set; then
15097 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15098 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15105 # We need space, tab and new line, in precisely that order. Quoting is
15106 # there to prevent editors from complaining about space-tab.
15107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15108 # splitting by setting IFS to empty value.)
15111 # Find who we are. Look in the path if we contain no directory separator.
15113 *[\\/]* ) as_myself=$0 ;;
15114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15115 for as_dir in $PATH
15118 test -z "$as_dir" && as_dir=.
15119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15125 # We did not find ourselves, most probably we were run as `sh COMMAND'
15126 # in which case we are not to be found in the path.
15127 if test "x$as_myself" = x; then
15130 if test ! -f "$as_myself"; then
15131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15135 # Unset variables that we do not need and which cause bugs (e.g. in
15136 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15137 # suppresses any "Segmentation fault" message there. '((' could
15138 # trigger a bug in pdksh 5.2.14.
15139 for as_var in BASH_ENV ENV MAIL MAILPATH
15140 do eval test x\${$as_var+set} = xset \
15141 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15157 # as_fn_error ERROR [LINENO LOG_FD]
15158 # ---------------------------------
15159 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15160 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15161 # script with status $?, using 1 if that was 0.
15164 as_status=$?; test $as_status -eq 0 && as_status=1
15166 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15167 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15169 $as_echo "$as_me: error: $1" >&2
15170 as_fn_exit $as_status
15174 # as_fn_set_status STATUS
15175 # -----------------------
15176 # Set $? to STATUS, without forking.
15177 as_fn_set_status ()
15180 } # as_fn_set_status
15182 # as_fn_exit STATUS
15183 # -----------------
15184 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15188 as_fn_set_status $1
15194 # Portably unset VAR.
15197 { eval $1=; unset $1;}
15199 as_unset=as_fn_unset
15200 # as_fn_append VAR VALUE
15201 # ----------------------
15202 # Append the text in VALUE to the end of the definition contained in VAR. Take
15203 # advantage of any shell optimizations that allow amortized linear growth over
15204 # repeated appends, instead of the typical quadratic growth present in naive
15206 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15207 eval 'as_fn_append ()
15218 # as_fn_arith ARG...
15219 # ------------------
15220 # Perform arithmetic evaluation on the ARGs, and store the result in the
15221 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15222 # must be portable across $(()) and expr.
15223 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15224 eval 'as_fn_arith ()
15231 as_val=`expr "$@" || test $? -eq 1`
15236 if expr a : '\(a\)' >/dev/null 2>&1 &&
15237 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15243 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15244 as_basename=basename
15249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15255 as_me=`$as_basename -- "$0" ||
15256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15257 X"$0" : 'X\(//\)$' \| \
15258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15260 sed '/^.*\/\([^/][^/]*\)\/*$/{
15274 # Avoid depending upon Character Ranges.
15275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15278 as_cr_digits='0123456789'
15279 as_cr_alnum=$as_cr_Letters$as_cr_digits
15281 ECHO_C= ECHO_N= ECHO_T=
15282 case `echo -n x` in #(((((
15284 case `echo 'xy\c'` in
15285 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15287 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15294 rm -f conf$$ conf$$.exe conf$$.file
15295 if test -d conf$$.dir; then
15296 rm -f conf$$.dir/conf$$.file
15299 mkdir conf$$.dir 2>/dev/null
15301 if (echo >conf$$.file) 2>/dev/null; then
15302 if ln -s conf$$.file conf$$ 2>/dev/null; then
15304 # ... but there are two gotchas:
15305 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15306 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15307 # In both cases, we have to default to `cp -p'.
15308 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15310 elif ln conf$$.file conf$$ 2>/dev/null; then
15318 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15319 rmdir conf$$.dir 2>/dev/null
15324 # Create "$as_dir" as a directory, including parents if necessary.
15329 -*) as_dir=./$as_dir;;
15331 test -d "$as_dir" || eval $as_mkdir_p || {
15335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15336 *) as_qdir=$as_dir;;
15338 as_dirs="'$as_qdir' $as_dirs"
15339 as_dir=`$as_dirname -- "$as_dir" ||
15340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15341 X"$as_dir" : 'X\(//\)[^/]' \| \
15342 X"$as_dir" : 'X\(//\)$' \| \
15343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15344 $as_echo X"$as_dir" |
15345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15349 /^X\(\/\/\)[^/].*/{
15362 test -d "$as_dir" && break
15364 test -z "$as_dirs" || eval "mkdir $as_dirs"
15365 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15369 if mkdir -p . 2>/dev/null; then
15370 as_mkdir_p='mkdir -p "$as_dir"'
15372 test -d ./-p && rmdir ./-p
15376 if test -x / >/dev/null 2>&1; then
15377 as_test_x='test -x'
15379 if ls -dL / >/dev/null 2>&1; then
15386 if test -d "$1"; then
15392 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15393 ???[sx]*):;;*)false;;esac;fi
15397 as_executable_p=$as_test_x
15399 # Sed expression to map a string onto a valid CPP name.
15400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15402 # Sed expression to map a string onto a valid variable name.
15403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15407 ## ----------------------------------- ##
15408 ## Main body of $CONFIG_STATUS script. ##
15409 ## ----------------------------------- ##
15411 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15414 # Save the log message, to keep $0 and so on meaningful, and to
15415 # report actual input values of CONFIG_FILES etc. instead of their
15416 # values after options handling.
15418 This file was extended by Google C++ Testing Framework $as_me 1.6.0, which was
15419 generated by GNU Autoconf 2.65. Invocation command line was
15421 CONFIG_FILES = $CONFIG_FILES
15422 CONFIG_HEADERS = $CONFIG_HEADERS
15423 CONFIG_LINKS = $CONFIG_LINKS
15424 CONFIG_COMMANDS = $CONFIG_COMMANDS
15427 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15432 case $ac_config_files in *"
15433 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15436 case $ac_config_headers in *"
15437 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15442 # Files that config.status was made for.
15443 config_files="$ac_config_files"
15444 config_headers="$ac_config_headers"
15445 config_commands="$ac_config_commands"
15449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15451 \`$as_me' instantiates files and other configuration actions
15452 from templates according to the current configuration. Unless the files
15453 and actions are specified as TAGs, all are instantiated by default.
15455 Usage: $0 [OPTION]... [TAG]...
15457 -h, --help print this help, then exit
15458 -V, --version print version number and configuration settings, then exit
15459 --config print configuration, then exit
15460 -q, --quiet, --silent
15461 do not print progress messages
15462 -d, --debug don't remove temporary files
15463 --recheck update $as_me by reconfiguring in the same conditions
15464 --file=FILE[:TEMPLATE]
15465 instantiate the configuration file FILE
15466 --header=FILE[:TEMPLATE]
15467 instantiate the configuration header FILE
15469 Configuration files:
15472 Configuration headers:
15475 Configuration commands:
15478 Report bugs to <googletestframework@googlegroups.com>."
15481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15482 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15484 Google C++ Testing Framework config.status 1.6.0
15485 configured by $0, generated by GNU Autoconf 2.65,
15486 with options \\"\$ac_cs_config\\"
15488 Copyright (C) 2009 Free Software Foundation, Inc.
15489 This config.status script is free software; the Free Software Foundation
15490 gives unlimited permission to copy, distribute and modify it."
15497 test -n "\$AWK" || AWK=awk
15500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15501 # The default lists apply if the user does not specify any file.
15507 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15508 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15519 # Handling of the options.
15520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15523 $as_echo "$ac_cs_version"; exit ;;
15524 --config | --confi | --conf | --con | --co | --c )
15525 $as_echo "$ac_cs_config"; exit ;;
15526 --debug | --debu | --deb | --de | --d | -d )
15528 --file | --fil | --fi | --f )
15531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15533 as_fn_append CONFIG_FILES " '$ac_optarg'"
15534 ac_need_defaults=false;;
15535 --header | --heade | --head | --hea )
15538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15540 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15541 ac_need_defaults=false;;
15543 # Conflict between --help and --header
15544 as_fn_error "ambiguous option: \`$1'
15545 Try \`$0 --help' for more information.";;
15546 --help | --hel | -h )
15547 $as_echo "$ac_cs_usage"; exit ;;
15548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15549 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15552 # This is an error.
15553 -*) as_fn_error "unrecognized option: \`$1'
15554 Try \`$0 --help' for more information." ;;
15556 *) as_fn_append ac_config_targets " $1"
15557 ac_need_defaults=false ;;
15563 ac_configure_extra_args=
15565 if $ac_cs_silent; then
15567 ac_configure_extra_args="$ac_configure_extra_args --silent"
15571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572 if \$ac_cs_recheck; then
15573 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15575 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15576 CONFIG_SHELL='$SHELL'
15577 export CONFIG_SHELL
15582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15587 ## Running $as_me. ##
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15600 # The HP-UX ksh and POSIX shell print the target directory to stdout
15601 # if CDPATH is set.
15602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15604 sed_quote_subst='$sed_quote_subst'
15605 double_quote_subst='$double_quote_subst'
15606 delay_variable_subst='$delay_variable_subst'
15607 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15608 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15609 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15610 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15611 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15612 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15613 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15614 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15615 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15616 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15617 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15618 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15619 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15620 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15621 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15622 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15623 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15624 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15625 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15626 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15627 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15628 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15629 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15630 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15631 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15632 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15633 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15634 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15635 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15636 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15637 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15638 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15639 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15640 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15641 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15642 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15643 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15644 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15645 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15646 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15647 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15648 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15649 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15650 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15651 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15653 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15654 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15655 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15656 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15657 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15658 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15659 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15660 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15661 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15662 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15663 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15664 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15665 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15666 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15667 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15668 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15669 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15670 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15671 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15672 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15673 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15674 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15675 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15676 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15677 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15678 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15679 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15680 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15681 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15682 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15683 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15684 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15685 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15686 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15687 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15688 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15689 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15690 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15691 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15692 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15693 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15694 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15695 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15696 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15697 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15698 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15699 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15700 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15701 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15702 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15703 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15704 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15705 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15706 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15707 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15708 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15709 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15710 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15711 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15712 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15713 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15714 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15715 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15716 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15717 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15718 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15719 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15720 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15721 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15722 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15723 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15724 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15725 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15726 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15727 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15728 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15729 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15730 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15731 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15732 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15733 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15734 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15735 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15736 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15737 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15738 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15739 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15740 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15741 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15742 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15743 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15744 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15745 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15746 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15747 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15748 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15749 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15750 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15751 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15752 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15753 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15754 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15755 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15756 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15757 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15758 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15759 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15760 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15761 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15762 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15763 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15764 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15765 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15766 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15767 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15768 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15769 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15770 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15771 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15772 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15773 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15774 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15775 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15776 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15777 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15780 LTCFLAGS='$LTCFLAGS'
15781 compiler='$compiler_DEFAULT'
15783 # Quote evaled strings.
15795 deplibs_check_method \
15804 lt_cv_sys_global_symbol_pipe \
15805 lt_cv_sys_global_symbol_to_cdecl \
15806 lt_cv_sys_global_symbol_to_c_name_address \
15807 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15810 lt_prog_compiler_no_builtin_flag \
15811 lt_prog_compiler_wl \
15812 lt_prog_compiler_pic \
15813 lt_prog_compiler_static \
15814 lt_cv_prog_compiler_c_o \
15822 export_dynamic_flag_spec \
15823 whole_archive_flag_spec \
15824 compiler_needs_object \
15826 allow_undefined_flag \
15827 no_undefined_flag \
15828 hardcode_libdir_flag_spec \
15829 hardcode_libdir_flag_spec_ld \
15830 hardcode_libdir_separator \
15835 variables_saved_for_relink \
15837 library_names_spec \
15842 compiler_lib_search_dirs \
15847 compiler_lib_search_path \
15850 lt_prog_compiler_no_builtin_flag_CXX \
15851 lt_prog_compiler_wl_CXX \
15852 lt_prog_compiler_pic_CXX \
15853 lt_prog_compiler_static_CXX \
15854 lt_cv_prog_compiler_c_o_CXX \
15855 export_dynamic_flag_spec_CXX \
15856 whole_archive_flag_spec_CXX \
15857 compiler_needs_object_CXX \
15859 allow_undefined_flag_CXX \
15860 no_undefined_flag_CXX \
15861 hardcode_libdir_flag_spec_CXX \
15862 hardcode_libdir_flag_spec_ld_CXX \
15863 hardcode_libdir_separator_CXX \
15864 fix_srcfile_path_CXX \
15865 exclude_expsyms_CXX \
15866 include_expsyms_CXX \
15867 file_list_spec_CXX \
15868 compiler_lib_search_dirs_CXX \
15869 predep_objects_CXX \
15870 postdep_objects_CXX \
15873 compiler_lib_search_path_CXX; do
15874 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15875 *[\\\\\\\`\\"\\\$]*)
15876 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15879 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15884 # Double-quote double-evaled strings.
15885 for var in reload_cmds \
15886 old_postinstall_cmds \
15887 old_postuninstall_cmds \
15889 extract_expsyms_cmds \
15890 old_archive_from_new_cmds \
15891 old_archive_from_expsyms_cmds \
15893 archive_expsym_cmds \
15895 module_expsym_cmds \
15896 export_symbols_cmds \
15899 postuninstall_cmds \
15901 sys_lib_search_path_spec \
15902 sys_lib_dlsearch_path_spec \
15903 old_archive_cmds_CXX \
15904 old_archive_from_new_cmds_CXX \
15905 old_archive_from_expsyms_cmds_CXX \
15907 archive_expsym_cmds_CXX \
15909 module_expsym_cmds_CXX \
15910 export_symbols_cmds_CXX \
15911 prelink_cmds_CXX; do
15912 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15913 *[\\\\\\\`\\"\\\$]*)
15914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15922 # Fix-up fallback echo if it was mangled by the above quoting rules.
15924 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15928 ac_aux_dir='$ac_aux_dir'
15929 xsi_shell='$xsi_shell'
15930 lt_shell_append='$lt_shell_append'
15932 # See if we are running on zsh, and set the options which allow our
15933 # commands through without removal of \ escapes INIT.
15934 if test -n "\${ZSH_VERSION+set}" ; then
15935 setopt NO_GLOB_SUBST
15941 TIMESTAMP='$TIMESTAMP'
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954 # Handling of arguments.
15955 for ac_config_target in $ac_config_targets
15957 case $ac_config_target in
15958 "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
15959 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15960 "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
15961 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15962 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15964 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15969 # If the user did not use the arguments to specify the items to instantiate,
15970 # then the envvar interface is used. Set only those that are not.
15971 # We use the long form for the default assignment because of an extremely
15972 # bizarre bug on SunOS 4.1.3.
15973 if $ac_need_defaults; then
15974 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15975 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15976 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15979 # Have a temporary directory for convenience. Make it in the build tree
15980 # simply because there is no reason against having it here, and in addition,
15981 # creating and moving files from /tmp can sometimes cause problems.
15982 # Hook for its removal unless debugging.
15983 # Note that there is a small window in which the directory will not be cleaned:
15984 # after its creation but before its name has been assigned to `$tmp'.
15988 trap 'exit_status=$?
15989 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15991 trap 'as_fn_exit 1' 1 2 13 15
15993 # Create a (secure) tmp directory for tmp files.
15996 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15997 test -n "$tmp" && test -d "$tmp"
16000 tmp=./conf$$-$RANDOM
16001 (umask 077 && mkdir "$tmp")
16002 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16004 # Set up the scripts for CONFIG_FILES section.
16005 # No need to generate them if there are no CONFIG_FILES.
16006 # This happens for instance with `./config.status config.h'.
16007 if test -n "$CONFIG_FILES"; then
16010 ac_cr=`echo X | tr X '\015'`
16011 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16012 # But we know of no other shell where ac_cr would be empty at this
16013 # point, so we can use a bashism as a fallback.
16014 if test "x$ac_cr" = x; then
16015 eval ac_cr=\$\'\\r\'
16017 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16018 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16021 ac_cs_awk_cr=$ac_cr
16024 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16029 echo "cat >conf$$subs.awk <<_ACEOF" &&
16030 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16032 } >conf$$subs.sh ||
16033 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16034 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16036 for ac_last_try in false false false false false :; do
16037 . ./conf$$subs.sh ||
16038 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16040 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16041 if test $ac_delim_n = $ac_delim_num; then
16043 elif $ac_last_try; then
16044 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16049 rm -f conf$$subs.sh
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16052 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16056 s/^/S["/; s/!.*/"]=/
16066 s/\(.\{148\}\)..*/\1/
16068 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16073 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16080 s/\(.\{148\}\)..*/\1/
16082 s/["\\]/\\&/g; s/^/"/; s/$/"/
16086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16091 ' <conf$$subs.awk | sed '
16096 ' >>$CONFIG_STATUS || ac_write_fail=1
16097 rm -f conf$$subs.awk
16098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16100 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16101 for (key in S) S_is_set[key] = 1
16107 nfields = split(line, field, "@")
16109 len = length(field[1])
16110 for (i = 2; i < nfields; i++) {
16112 keylen = length(key)
16113 if (S_is_set[key]) {
16115 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16116 len += length(value) + length(field[++i])
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16129 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16132 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16133 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16138 # trailing colons and then remove the whole line if VPATH becomes empty
16139 # (actually we leave an empty line to preserve line numbers).
16140 if test "x$srcdir" = x.; then
16141 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16142 s/:*\$(srcdir):*/:/
16143 s/:*\${srcdir}:*/:/
16145 s/^\([^=]*=[ ]*\):*/\1/
16151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16152 fi # test -n "$CONFIG_FILES"
16154 # Set up the scripts for CONFIG_HEADERS section.
16155 # No need to generate them if there are no CONFIG_HEADERS.
16156 # This happens for instance with `./config.status Makefile'.
16157 if test -n "$CONFIG_HEADERS"; then
16158 cat >"$tmp/defines.awk" <<\_ACAWK ||
16162 # Transform confdefs.h into an awk script `defines.awk', embedded as
16163 # here-document in config.status, that substitutes the proper values into
16164 # config.h.in to produce config.h.
16166 # Create a delimiter string that does not exist in confdefs.h, to ease
16167 # handling of long lines.
16169 for ac_last_try in false false :; do
16170 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16171 if test -z "$ac_t"; then
16173 elif $ac_last_try; then
16174 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16180 # For the awk script, D is an array of macro values keyed by name,
16181 # likewise P contains macro parameters if any. Preserve backslash
16182 # newline sequences.
16184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16186 s/.\{148\}/&'"$ac_delim"'/g
16189 s/^[ ]*#[ ]*define[ ][ ]*/ /
16196 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16198 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16203 D["\1"]=" \3\\\\\\n"\\/p
16205 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16210 s/.\{148\}/&'"$ac_delim"'/g
16215 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16218 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16220 ' <confdefs.h | sed '
16221 s/'"$ac_delim"'/"\\\
16222 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16225 for (key in D) D_is_set[key] = 1
16228 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16230 split(line, arg, " ")
16231 if (arg[1] == "#") {
16235 defundef = substr(arg[1], 2)
16238 split(mac1, mac2, "(") #)
16240 prefix = substr(line, 1, index(line, defundef) - 1)
16241 if (D_is_set[macro]) {
16242 # Preserve the white space surrounding the "#".
16243 print prefix "define", macro P[macro] D[macro]
16246 # Replace #undef with comments. This is necessary, for example,
16247 # in the case of _POSIX_SOURCE, which is predefined and required
16248 # on some systems where configure will not decide to define it.
16249 if (defundef == "undef") {
16250 print "/*", prefix defundef, macro, "*/"
16258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16259 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16260 fi # test -n "$CONFIG_HEADERS"
16263 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16268 :[FHLC]) ac_mode=$ac_tag; continue;;
16270 case $ac_mode$ac_tag in
16272 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16273 :[FH]-) ac_tag=-:-;;
16274 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16291 -) ac_f="$tmp/stdin";;
16292 *) # Look for the file first in the build tree, then in the source tree
16293 # (if the path is not absolute). The absolute path cannot be DOS-style,
16294 # because $ac_f cannot contain `:'.
16298 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16300 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16302 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16303 as_fn_append ac_file_inputs " '$ac_f'"
16306 # Let's still pretend it is `configure' which instantiates (i.e., don't
16307 # use $as_me), people would be surprised to read:
16308 # /* config.h. Generated by config.status. */
16309 configure_input='Generated from '`
16310 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16312 if test x"$ac_file" != x-; then
16313 configure_input="$ac_file. $configure_input"
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16315 $as_echo "$as_me: creating $ac_file" >&6;}
16317 # Neutralize special characters interpreted by sed in replacement strings.
16318 case $configure_input in #(
16319 *\&* | *\|* | *\\* )
16320 ac_sed_conf_input=`$as_echo "$configure_input" |
16321 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16322 *) ac_sed_conf_input=$configure_input;;
16326 *:-:* | *:-) cat >"$tmp/stdin" \
16327 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16332 ac_dir=`$as_dirname -- "$ac_file" ||
16333 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16334 X"$ac_file" : 'X\(//\)[^/]' \| \
16335 X"$ac_file" : 'X\(//\)$' \| \
16336 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16337 $as_echo X"$ac_file" |
16338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16342 /^X\(\/\/\)[^/].*/{
16355 as_dir="$ac_dir"; as_fn_mkdir_p
16359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16361 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16362 # A ".." for each directory in $ac_dir_suffix.
16363 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16364 case $ac_top_builddir_sub in
16365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16369 ac_abs_top_builddir=$ac_pwd
16370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16371 # for backward compatibility:
16372 ac_top_builddir=$ac_top_build_prefix
16375 .) # We are building in place.
16377 ac_top_srcdir=$ac_top_builddir_sub
16378 ac_abs_top_srcdir=$ac_pwd ;;
16379 [\\/]* | ?:[\\/]* ) # Absolute name.
16380 ac_srcdir=$srcdir$ac_dir_suffix;
16381 ac_top_srcdir=$srcdir
16382 ac_abs_top_srcdir=$srcdir ;;
16383 *) # Relative name.
16384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16385 ac_top_srcdir=$ac_top_build_prefix$srcdir
16386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16399 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16401 ac_MKDIR_P=$MKDIR_P
16403 [\\/$]* | ?:[\\/]* ) ;;
16404 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16409 # If the template does not know about datarootdir, expand it.
16410 # FIXME: This hack should be removed a few years after 2.60.
16411 ac_datarootdir_hack=; ac_datarootdir_seen=
16422 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16423 *datarootdir*) ac_datarootdir_seen=yes;;
16424 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16426 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16429 ac_datarootdir_hack='
16430 s&@datadir@&$datadir&g
16431 s&@docdir@&$docdir&g
16432 s&@infodir@&$infodir&g
16433 s&@localedir@&$localedir&g
16434 s&@mandir@&$mandir&g
16435 s&\\\${datarootdir}&$datarootdir&g' ;;
16439 # Neutralize VPATH when `$srcdir' = `.'.
16440 # Shell code in configure.ac might set extrasub.
16441 # FIXME: do we really want to maintain this feature?
16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 ac_sed_extra="$ac_vpsub
16446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16449 s|@configure_input@|$ac_sed_conf_input|;t t
16450 s&@top_builddir@&$ac_top_builddir_sub&;t t
16451 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16452 s&@srcdir@&$ac_srcdir&;t t
16453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16454 s&@top_srcdir@&$ac_top_srcdir&;t t
16455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16456 s&@builddir@&$ac_builddir&;t t
16457 s&@abs_builddir@&$ac_abs_builddir&;t t
16458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16459 s&@INSTALL@&$ac_INSTALL&;t t
16460 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16461 $ac_datarootdir_hack
16463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16464 || as_fn_error "could not create $ac_file" "$LINENO" 5
16466 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16467 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16468 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16470 which seems to be undefined. Please make sure it is defined." >&5
16471 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16472 which seems to be undefined. Please make sure it is defined." >&2;}
16476 -) cat "$tmp/out" && rm -f "$tmp/out";;
16477 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16479 || as_fn_error "could not create $ac_file" "$LINENO" 5
16485 if test x"$ac_file" != x-; then
16487 $as_echo "/* $configure_input */" \
16488 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16489 } >"$tmp/config.h" \
16490 || as_fn_error "could not create $ac_file" "$LINENO" 5
16491 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16493 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16496 mv "$tmp/config.h" "$ac_file" \
16497 || as_fn_error "could not create $ac_file" "$LINENO" 5
16500 $as_echo "/* $configure_input */" \
16501 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16502 || as_fn_error "could not create -" "$LINENO" 5
16504 # Compute "$ac_file"'s index in $config_headers.
16507 for _am_header in $config_headers :; do
16508 case $_am_header in
16509 $_am_arg | $_am_arg:* )
16512 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16515 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16516 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16517 X"$_am_arg" : 'X\(//\)[^/]' \| \
16518 X"$_am_arg" : 'X\(//\)$' \| \
16519 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16520 $as_echo X"$_am_arg" |
16521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16525 /^X\(\/\/\)[^/].*/{
16537 s/.*/./; q'`/stamp-h$_am_stamp_count
16540 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16541 $as_echo "$as_me: executing $ac_file commands" >&6;}
16546 case $ac_file$ac_mode in
16547 "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
16548 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16549 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16550 # are listed without --file. Let's play safe and only enable the eval
16551 # if we detect the quoting.
16552 case $CONFIG_FILES in
16553 *\'*) eval set x "$CONFIG_FILES" ;;
16554 *) set x $CONFIG_FILES ;;
16559 # Strip MF so we end up with the name of the file.
16560 mf=`echo "$mf" | sed -e 's/:.*$//'`
16561 # Check whether this is an Automake generated Makefile or not.
16562 # We used to match only the files named `Makefile.in', but
16563 # some people rename them; so instead we look at the file content.
16564 # Grep'ing the first line is not enough: some people post-process
16565 # each Makefile.in and add a new line on top of each file to say so.
16566 # Grep'ing the whole file is not good either: AIX grep has a line
16567 # limit of 2048, but all sed's we know have understand at least 4000.
16568 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16569 dirpart=`$as_dirname -- "$mf" ||
16570 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16571 X"$mf" : 'X\(//\)[^/]' \| \
16572 X"$mf" : 'X\(//\)$' \| \
16573 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16579 /^X\(\/\/\)[^/].*/{
16595 # Extract the definition of DEPDIR, am__include, and am__quote
16596 # from the Makefile without running `make'.
16597 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16598 test -z "$DEPDIR" && continue
16599 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16600 test -z "am__include" && continue
16601 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16602 # When using ansi2knr, U may be empty or an underscore; expand it
16603 U=`sed -n 's/^U = //p' < "$mf"`
16604 # Find all dependency output files, they are included files with
16605 # $(DEPDIR) in their names. We invoke sed twice because it is the
16606 # simplest approach to changing $(DEPDIR) to its actual value in the
16608 for file in `sed -n "
16609 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16610 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16611 # Make sure the directory exists.
16612 test -f "$dirpart/$file" && continue
16613 fdir=`$as_dirname -- "$file" ||
16614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16615 X"$file" : 'X\(//\)[^/]' \| \
16616 X"$file" : 'X\(//\)$' \| \
16617 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16618 $as_echo X"$file" |
16619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16623 /^X\(\/\/\)[^/].*/{
16636 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16637 # echo "creating $dirpart/$file"
16638 echo '# dummy' > "$dirpart/$file"
16645 # See if we are running on zsh, and set the options which allow our
16646 # commands through without removal of \ escapes.
16647 if test -n "${ZSH_VERSION+set}" ; then
16648 setopt NO_GLOB_SUBST
16651 cfgfile="${ofile}T"
16652 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16655 cat <<_LT_EOF >> "$cfgfile"
16658 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16659 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16661 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16663 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16664 # 2006, 2007, 2008 Free Software Foundation, Inc.
16665 # Written by Gordon Matzigkeit, 1996
16667 # This file is part of GNU Libtool.
16669 # GNU Libtool is free software; you can redistribute it and/or
16670 # modify it under the terms of the GNU General Public License as
16671 # published by the Free Software Foundation; either version 2 of
16672 # the License, or (at your option) any later version.
16674 # As a special exception to the GNU General Public License,
16675 # if you distribute this file as part of a program or library that
16676 # is built using GNU Libtool, you may include this file under the
16677 # same distribution terms that you use for the rest of that program.
16679 # GNU Libtool is distributed in the hope that it will be useful,
16680 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16681 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16682 # GNU General Public License for more details.
16684 # You should have received a copy of the GNU General Public License
16685 # along with GNU Libtool; see the file COPYING. If not, a copy
16686 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16687 # obtained by writing to the Free Software Foundation, Inc.,
16688 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16691 # The names of the tagged configurations supported by this script.
16692 available_tags="CXX "
16694 # ### BEGIN LIBTOOL CONFIG
16696 # Which release of libtool.m4 was used?
16697 macro_version=$macro_version
16698 macro_revision=$macro_revision
16700 # Whether or not to build shared libraries.
16701 build_libtool_libs=$enable_shared
16703 # Whether or not to build static libraries.
16704 build_old_libs=$enable_static
16706 # What type of objects to build.
16709 # Whether or not to optimize for fast installation.
16710 fast_install=$enable_fast_install
16713 host_alias=$host_alias
16717 # The build system.
16718 build_alias=$build_alias
16722 # A sed program that does not truncate output.
16725 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16726 Xsed="\$SED -e 1s/^X//"
16728 # A grep program that handles long lines.
16734 # A literal string matcher.
16737 # A BSD- or MS-compatible name lister.
16740 # Whether we need soft or hard links.
16743 # What is the maximum length of a command?
16744 max_cmd_len=$max_cmd_len
16746 # Object file suffix (normally "o").
16749 # Executable file suffix (normally "").
16752 # whether the shell understands "unset".
16755 # turn spaces into newlines.
16758 # turn newlines into spaces.
16761 # How to create reloadable object files.
16762 reload_flag=$lt_reload_flag
16763 reload_cmds=$lt_reload_cmds
16765 # An object symbol dumper.
16766 OBJDUMP=$lt_OBJDUMP
16768 # Method to check whether dependent libraries are shared objects.
16769 deplibs_check_method=$lt_deplibs_check_method
16771 # Command to use when deplibs_check_method == "file_magic".
16772 file_magic_cmd=$lt_file_magic_cmd
16776 AR_FLAGS=$lt_AR_FLAGS
16778 # A symbol stripping program.
16781 # Commands used to install an old-style archive.
16783 old_postinstall_cmds=$lt_old_postinstall_cmds
16784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16789 # LTCC compiler flags.
16790 LTCFLAGS=$lt_CFLAGS
16792 # Take the output of nm and produce a listing of raw symbols and C names.
16793 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16795 # Transform the output of nm in a proper C declaration.
16796 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16798 # Transform the output of nm in a C name address pair.
16799 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16801 # Transform the output of nm in a C name address pair when lib prefix is needed.
16802 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16804 # The name of the directory that contains temporary libtool files.
16807 # Shell to use when invoking shell scripts.
16810 # An echo program that does not interpret backslashes.
16813 # Used to examine libraries when file_magic_cmd begins with "file".
16814 MAGIC_CMD=$MAGIC_CMD
16816 # Must we lock files when doing compilation?
16817 need_locks=$lt_need_locks
16819 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16820 DSYMUTIL=$lt_DSYMUTIL
16822 # Tool to change global to local symbols on Mac OS X.
16825 # Tool to manipulate fat objects and archives on Mac OS X.
16828 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16831 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16832 OTOOL64=$lt_OTOOL64
16834 # Old archive suffix (normally "a").
16837 # Shared library suffix (normally ".so").
16838 shrext_cmds=$lt_shrext_cmds
16840 # The commands to extract the exported symbol list from a shared archive.
16841 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16843 # Variables whose values should be saved in libtool wrapper scripts and
16844 # restored at link time.
16845 variables_saved_for_relink=$lt_variables_saved_for_relink
16847 # Do we need the "lib" prefix for modules?
16848 need_lib_prefix=$need_lib_prefix
16850 # Do we need a version for libraries?
16851 need_version=$need_version
16853 # Library versioning type.
16854 version_type=$version_type
16856 # Shared library runtime path variable.
16857 runpath_var=$runpath_var
16859 # Shared library path variable.
16860 shlibpath_var=$shlibpath_var
16862 # Is shlibpath searched before the hard-coded library search path?
16863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16865 # Format of library name prefix.
16866 libname_spec=$lt_libname_spec
16868 # List of archive names. First name is the real one, the rest are links.
16869 # The last name is the one that the linker finds with -lNAME
16870 library_names_spec=$lt_library_names_spec
16872 # The coded name of the library, if different from the real name.
16873 soname_spec=$lt_soname_spec
16875 # Command to use after installation of a shared archive.
16876 postinstall_cmds=$lt_postinstall_cmds
16878 # Command to use after uninstallation of a shared archive.
16879 postuninstall_cmds=$lt_postuninstall_cmds
16881 # Commands used to finish a libtool library installation in a directory.
16882 finish_cmds=$lt_finish_cmds
16884 # As "finish_cmds", except a single script fragment to be evaled but
16886 finish_eval=$lt_finish_eval
16888 # Whether we should hardcode library paths into libraries.
16889 hardcode_into_libs=$hardcode_into_libs
16891 # Compile-time system search path for libraries.
16892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16894 # Run-time system search path for libraries.
16895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16897 # Whether dlopen is supported.
16898 dlopen_support=$enable_dlopen
16900 # Whether dlopen of programs is supported.
16901 dlopen_self=$enable_dlopen_self
16903 # Whether dlopen of statically linked programs is supported.
16904 dlopen_self_static=$enable_dlopen_self_static
16906 # Commands to strip libraries.
16907 old_striplib=$lt_old_striplib
16908 striplib=$lt_striplib
16911 # The linker used to build libraries.
16914 # Commands used to build an old-style archive.
16915 old_archive_cmds=$lt_old_archive_cmds
16917 # A language specific compiler.
16920 # Is the compiler the GNU compiler?
16923 # Compiler flag to turn off builtin functions.
16924 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16926 # How to pass a linker flag through the compiler.
16927 wl=$lt_lt_prog_compiler_wl
16929 # Additional compiler flags for building library objects.
16930 pic_flag=$lt_lt_prog_compiler_pic
16932 # Compiler flag to prevent dynamic linking.
16933 link_static_flag=$lt_lt_prog_compiler_static
16935 # Does compiler simultaneously support -c and -o options?
16936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16938 # Whether or not to add -lc for building shared libraries.
16939 build_libtool_need_lc=$archive_cmds_need_lc
16941 # Whether or not to disallow shared libs when runtime libs are static.
16942 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16944 # Compiler flag to allow reflexive dlopens.
16945 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16947 # Compiler flag to generate shared objects directly from archives.
16948 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16950 # Whether the compiler copes with passing no objects directly.
16951 compiler_needs_object=$lt_compiler_needs_object
16953 # Create an old-style archive from a shared archive.
16954 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16956 # Create a temporary old-style archive to link instead of a shared archive.
16957 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16959 # Commands used to build a shared archive.
16960 archive_cmds=$lt_archive_cmds
16961 archive_expsym_cmds=$lt_archive_expsym_cmds
16963 # Commands used to build a loadable module if different from building
16964 # a shared archive.
16965 module_cmds=$lt_module_cmds
16966 module_expsym_cmds=$lt_module_expsym_cmds
16968 # Whether we are building with GNU ld or not.
16969 with_gnu_ld=$lt_with_gnu_ld
16971 # Flag that allows shared libraries with undefined symbols to be built.
16972 allow_undefined_flag=$lt_allow_undefined_flag
16974 # Flag that enforces no undefined symbols.
16975 no_undefined_flag=$lt_no_undefined_flag
16977 # Flag to hardcode \$libdir into a binary during linking.
16978 # This must work even if \$libdir does not exist
16979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16981 # If ld is used when linking, flag to hardcode \$libdir into a binary
16982 # during linking. This must work even if \$libdir does not exist.
16983 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16985 # Whether we need a single "-rpath" flag with a separated argument.
16986 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16988 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16989 # DIR into the resulting binary.
16990 hardcode_direct=$hardcode_direct
16992 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16993 # DIR into the resulting binary and the resulting library dependency is
16994 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16995 # library is relocated.
16996 hardcode_direct_absolute=$hardcode_direct_absolute
16998 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16999 # into the resulting binary.
17000 hardcode_minus_L=$hardcode_minus_L
17002 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17003 # into the resulting binary.
17004 hardcode_shlibpath_var=$hardcode_shlibpath_var
17006 # Set to "yes" if building a shared library automatically hardcodes DIR
17007 # into the library and all subsequent libraries and executables linked
17009 hardcode_automatic=$hardcode_automatic
17011 # Set to yes if linker adds runtime paths of dependent libraries
17012 # to runtime path list.
17013 inherit_rpath=$inherit_rpath
17015 # Whether libtool must link a program against all its dependency libraries.
17016 link_all_deplibs=$link_all_deplibs
17018 # Fix the shell variable \$srcfile for the compiler.
17019 fix_srcfile_path=$lt_fix_srcfile_path
17021 # Set to "yes" if exported symbols are required.
17022 always_export_symbols=$always_export_symbols
17024 # The commands to list exported symbols.
17025 export_symbols_cmds=$lt_export_symbols_cmds
17027 # Symbols that should not be listed in the preloaded symbols.
17028 exclude_expsyms=$lt_exclude_expsyms
17030 # Symbols that must always be exported.
17031 include_expsyms=$lt_include_expsyms
17033 # Commands necessary for linking programs (against libraries) with templates.
17034 prelink_cmds=$lt_prelink_cmds
17036 # Specify filename containing input files.
17037 file_list_spec=$lt_file_list_spec
17039 # How to hardcode a shared library path into an executable.
17040 hardcode_action=$hardcode_action
17042 # The directories searched by this compiler when creating a shared library.
17043 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17045 # Dependencies to place before and after the objects being linked to
17046 # create a shared library.
17047 predep_objects=$lt_predep_objects
17048 postdep_objects=$lt_postdep_objects
17049 predeps=$lt_predeps
17050 postdeps=$lt_postdeps
17052 # The library search path used internally by the compiler when linking
17053 # a shared library.
17054 compiler_lib_search_path=$lt_compiler_lib_search_path
17056 # ### END LIBTOOL CONFIG
17062 cat <<\_LT_EOF >> "$cfgfile"
17063 # AIX sometimes has problems with the GCC collect2 program. For some
17064 # reason, if we set the COLLECT_NAMES environment variable, the problems
17065 # vanish in a puff of smoke.
17066 if test "X${COLLECT_NAMES+set}" != Xset; then
17068 export COLLECT_NAMES
17075 ltmain="$ac_aux_dir/ltmain.sh"
17078 # We use sed instead of cat because bash on DJGPP gets confused if
17079 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17080 # text mode, it properly converts lines to CR/LF. This bash problem
17081 # is reportedly fixed, but why not run on old versions too?
17082 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17083 || (rm -f "$cfgfile"; exit 1)
17087 cat << \_LT_EOF >> "$cfgfile"
17089 # func_dirname file append nondir_replacement
17090 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17091 # otherwise set result to NONDIR_REPLACEMENT.
17095 */*) func_dirname_result="${1%/*}${2}" ;;
17096 * ) func_dirname_result="${3}" ;;
17100 # func_basename file
17103 func_basename_result="${1##*/}"
17106 # func_dirname_and_basename file append nondir_replacement
17107 # perform func_basename and func_dirname in a single function
17109 # dirname: Compute the dirname of FILE. If nonempty,
17110 # add APPEND to the result, otherwise set result
17111 # to NONDIR_REPLACEMENT.
17112 # value returned in "$func_dirname_result"
17113 # basename: Compute filename of FILE.
17114 # value retuned in "$func_basename_result"
17115 # Implementation must be kept synchronized with func_dirname
17116 # and func_basename. For efficiency, we do not delegate to
17117 # those functions but instead duplicate the functionality here.
17118 func_dirname_and_basename ()
17121 */*) func_dirname_result="${1%/*}${2}" ;;
17122 * ) func_dirname_result="${3}" ;;
17124 func_basename_result="${1##*/}"
17127 # func_stripname prefix suffix name
17128 # strip PREFIX and SUFFIX off of NAME.
17129 # PREFIX and SUFFIX must not contain globbing or regex special
17130 # characters, hashes, percent signs, but SUFFIX may contain a leading
17131 # dot (in which case that matches only a dot).
17134 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17135 # positional parameters, so assign one to ordinary parameter first.
17136 func_stripname_result=${3}
17137 func_stripname_result=${func_stripname_result#"${1}"}
17138 func_stripname_result=${func_stripname_result%"${2}"}
17144 func_opt_split_opt=${1%%=*}
17145 func_opt_split_arg=${1#*=}
17152 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17153 *) func_lo2o_result=${1} ;;
17157 # func_xform libobj-or-source
17160 func_xform_result=${1%.*}.lo
17163 # func_arith arithmetic-term...
17166 func_arith_result=$(( $* ))
17170 # STRING may not start with a hyphen.
17173 func_len_result=${#1}
17178 *) # Bourne compatible functions.
17179 cat << \_LT_EOF >> "$cfgfile"
17181 # func_dirname file append nondir_replacement
17182 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17183 # otherwise set result to NONDIR_REPLACEMENT.
17186 # Extract subdirectory from the argument.
17187 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17188 if test "X$func_dirname_result" = "X${1}"; then
17189 func_dirname_result="${3}"
17191 func_dirname_result="$func_dirname_result${2}"
17195 # func_basename file
17198 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17202 # func_stripname prefix suffix name
17203 # strip PREFIX and SUFFIX off of NAME.
17204 # PREFIX and SUFFIX must not contain globbing or regex special
17205 # characters, hashes, percent signs, but SUFFIX may contain a leading
17206 # dot (in which case that matches only a dot).
17207 # func_strip_suffix prefix name
17211 .*) func_stripname_result=`$ECHO "X${3}" \
17212 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17213 *) func_stripname_result=`$ECHO "X${3}" \
17214 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17219 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17220 my_sed_long_arg='1s/^-[^=]*=//'
17225 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17226 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17232 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17235 # func_xform libobj-or-source
17238 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17241 # func_arith arithmetic-term...
17244 func_arith_result=`expr "$@"`
17248 # STRING may not start with a hyphen.
17251 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17257 case $lt_shell_append in
17259 cat << \_LT_EOF >> "$cfgfile"
17261 # func_append var value
17262 # Append VALUE to the end of shell variable VAR.
17270 cat << \_LT_EOF >> "$cfgfile"
17272 # func_append var value
17273 # Append VALUE to the end of shell variable VAR.
17284 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17285 || (rm -f "$cfgfile"; exit 1)
17287 mv -f "$cfgfile" "$ofile" ||
17288 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17292 cat <<_LT_EOF >> "$ofile"
17294 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17296 # The linker used to build libraries.
17299 # Commands used to build an old-style archive.
17300 old_archive_cmds=$lt_old_archive_cmds_CXX
17302 # A language specific compiler.
17303 CC=$lt_compiler_CXX
17305 # Is the compiler the GNU compiler?
17308 # Compiler flag to turn off builtin functions.
17309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17311 # How to pass a linker flag through the compiler.
17312 wl=$lt_lt_prog_compiler_wl_CXX
17314 # Additional compiler flags for building library objects.
17315 pic_flag=$lt_lt_prog_compiler_pic_CXX
17317 # Compiler flag to prevent dynamic linking.
17318 link_static_flag=$lt_lt_prog_compiler_static_CXX
17320 # Does compiler simultaneously support -c and -o options?
17321 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17323 # Whether or not to add -lc for building shared libraries.
17324 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17326 # Whether or not to disallow shared libs when runtime libs are static.
17327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17329 # Compiler flag to allow reflexive dlopens.
17330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17332 # Compiler flag to generate shared objects directly from archives.
17333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17335 # Whether the compiler copes with passing no objects directly.
17336 compiler_needs_object=$lt_compiler_needs_object_CXX
17338 # Create an old-style archive from a shared archive.
17339 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17341 # Create a temporary old-style archive to link instead of a shared archive.
17342 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17344 # Commands used to build a shared archive.
17345 archive_cmds=$lt_archive_cmds_CXX
17346 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17348 # Commands used to build a loadable module if different from building
17349 # a shared archive.
17350 module_cmds=$lt_module_cmds_CXX
17351 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17353 # Whether we are building with GNU ld or not.
17354 with_gnu_ld=$lt_with_gnu_ld_CXX
17356 # Flag that allows shared libraries with undefined symbols to be built.
17357 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17359 # Flag that enforces no undefined symbols.
17360 no_undefined_flag=$lt_no_undefined_flag_CXX
17362 # Flag to hardcode \$libdir into a binary during linking.
17363 # This must work even if \$libdir does not exist
17364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17366 # If ld is used when linking, flag to hardcode \$libdir into a binary
17367 # during linking. This must work even if \$libdir does not exist.
17368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17370 # Whether we need a single "-rpath" flag with a separated argument.
17371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17373 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17374 # DIR into the resulting binary.
17375 hardcode_direct=$hardcode_direct_CXX
17377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17378 # DIR into the resulting binary and the resulting library dependency is
17379 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17380 # library is relocated.
17381 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17384 # into the resulting binary.
17385 hardcode_minus_L=$hardcode_minus_L_CXX
17387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17388 # into the resulting binary.
17389 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17391 # Set to "yes" if building a shared library automatically hardcodes DIR
17392 # into the library and all subsequent libraries and executables linked
17394 hardcode_automatic=$hardcode_automatic_CXX
17396 # Set to yes if linker adds runtime paths of dependent libraries
17397 # to runtime path list.
17398 inherit_rpath=$inherit_rpath_CXX
17400 # Whether libtool must link a program against all its dependency libraries.
17401 link_all_deplibs=$link_all_deplibs_CXX
17403 # Fix the shell variable \$srcfile for the compiler.
17404 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17406 # Set to "yes" if exported symbols are required.
17407 always_export_symbols=$always_export_symbols_CXX
17409 # The commands to list exported symbols.
17410 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17412 # Symbols that should not be listed in the preloaded symbols.
17413 exclude_expsyms=$lt_exclude_expsyms_CXX
17415 # Symbols that must always be exported.
17416 include_expsyms=$lt_include_expsyms_CXX
17418 # Commands necessary for linking programs (against libraries) with templates.
17419 prelink_cmds=$lt_prelink_cmds_CXX
17421 # Specify filename containing input files.
17422 file_list_spec=$lt_file_list_spec_CXX
17424 # How to hardcode a shared library path into an executable.
17425 hardcode_action=$hardcode_action_CXX
17427 # The directories searched by this compiler when creating a shared library.
17428 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17430 # Dependencies to place before and after the objects being linked to
17431 # create a shared library.
17432 predep_objects=$lt_predep_objects_CXX
17433 postdep_objects=$lt_postdep_objects_CXX
17434 predeps=$lt_predeps_CXX
17435 postdeps=$lt_postdeps_CXX
17437 # The library search path used internally by the compiler when linking
17438 # a shared library.
17439 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17441 # ### END LIBTOOL TAG CONFIG: CXX
17452 ac_clean_files=$ac_clean_files_save
17454 test $ac_write_fail = 0 ||
17455 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17458 # configure is writing to config.log, and then calls config.status.
17459 # config.status does its own redirection, appending to config.log.
17460 # Unfortunately, on DOS this fails, as config.log is still kept open
17461 # by configure, so config.status won't be able to write to it; its
17462 # output is simply discarded. So we exec the FD to /dev/null,
17463 # effectively closing config.log, so it can be properly (re)opened and
17464 # appended to by config.status. When coming back to configure, we
17465 # need to make the FD available again.
17466 if test "$no_create" != yes; then
17468 ac_config_status_args=
17469 test "$silent" = yes &&
17470 ac_config_status_args="$ac_config_status_args --quiet"
17472 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17474 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17475 # would make configure fail if this is the last instruction.
17476 $ac_cs_success || as_fn_exit $?
17478 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17480 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}