2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for glog 0.3.2.
5 # Report bugs to <opensource@google.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: opensource@google.com about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: 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.
703 PACKAGE_TARNAME='glog'
704 PACKAGE_VERSION='0.3.2'
705 PACKAGE_STRING='glog 0.3.2'
706 PACKAGE_BUGREPORT='opensource@google.com'
709 ac_unique_file="README"
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
761 ac_cv_have_inttypes_h
762 ac_cv_have_systypes_h
764 ac_cv_have___builtin_expect
765 ac_cv___attribute___printf_4_5
766 ac_cv___attribute___noreturn
767 ac_cv_cxx_using_operator
769 ac_google_end_namespace
770 ac_google_start_namespace
784 ENABLE_FRAME_POINTERS_FALSE
785 ENABLE_FRAME_POINTERS_TRUE
848 INSTALL_STRIP_PROGRAM
890 program_transform_name
903 enable_option_checking
904 enable_dependency_tracking
911 enable_frame_pointers
916 ac_precious_vars='build_alias
931 # Initialize some variables set by options.
933 ac_init_version=false
934 ac_unrecognized_opts=
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
945 program_transform_name=s,x,x,
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_$ac_useropt"
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1047 eval enable_$ac_useropt=no ;;
1049 -docdir | --docdir | --docdi | --doc | --do)
1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052 docdir=$ac_optarg ;;
1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057 dvidir=$ac_optarg ;;
1059 -enable-* | --enable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1073 eval enable_$ac_useropt=\$ac_optarg ;;
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 htmldir=$ac_optarg ;;
1106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1118 -libdir | --libdir | --libdi | --libd)
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \
1136 | --localstate | --localstat | --localsta | --localst | --locals)
1137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140 localstatedir=$ac_optarg ;;
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1209 -psdir | --psdir | --psdi | --psd | --ps)
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 sbindir=$ac_optarg ;;
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 sharedstatedir=$ac_optarg ;;
1235 -site | --site | --sit)
1237 -site=* | --site=* | --sit=*)
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1277 eval with_$ac_useropt=\$ac_optarg ;;
1279 -without-* | --without-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1293 eval with_$ac_useropt=no ;;
1296 # Obsolete; use --with-x.
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) as_fn_error "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information."
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 case $ac_envvar in #(
1321 '' | [0-9]* | *[!_$as_cr_alnum]* )
1322 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 as_fn_error "missing argument to $ac_option"
1343 if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1346 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351 # Check all directory arguments for consistency.
1352 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
1357 eval ac_val=\$$ac_var
1358 # Remove trailing slashes.
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
1364 # Be sure to have absolute directory names.
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1377 target=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used." >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393 test "$silent" = yes && exec 6>/dev/null
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error "working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error "pwd does not report name of working directory"
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 $as_echo X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1454 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 # Report the --help message.
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1470 \`configure' configures glog 0.3.2 to adapt to many kinds of systems.
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1477 Defaults for the options are specified in brackets.
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1501 For better control, use the options below.
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
1528 --program-prefix=PREFIX prepend PREFIX to installed program names
1529 --program-suffix=SUFFIX append SUFFIX to installed program names
1530 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive ) echo "Configuration of glog 0.3.2:";;
1545 --disable-option-checking ignore unrecognized --enable/--with options
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --disable-dependency-tracking speeds up one-time build
1549 --enable-dependency-tracking do not reject slow dependency extractors
1550 --enable-shared[=PKGS] build shared libraries [default=yes]
1551 --enable-static[=PKGS] build static libraries [default=yes]
1552 --enable-fast-install[=PKGS]
1553 optimize for fast installation [default=yes]
1554 --disable-libtool-lock avoid locking (might break parallel builds)
1555 --enable-frame-pointers On x86_64 systems, compile with
1556 -fno-omit-frame-pointer (see INSTALL)
1557 --disable-rtti Disable RTTI in glog
1558 --enable-namespace=FOO to define these Google
1559 classes in the FOO namespace. --disable-namespace
1560 to define them in the global namespace. Default
1561 is to define them in namespace google.
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-pic try to use only PIC/non-PIC objects [default=use
1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1569 --with-gflags=GFLAGS_DIR
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1580 CXX C++ compiler command
1581 CXXFLAGS C++ compiler flags
1582 CXXCPP C++ preprocessor
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1587 Report bugs to <opensource@google.com>.
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1617 .) # We are building in place.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1650 glog configure 0.3.2
1651 generated by GNU Autoconf 2.65
1653 Copyright (C) 2009 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_compile
1702 # ac_fn_c_try_cpp LINENO
1703 # ----------------------
1704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } >/dev/null && {
1724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 as_fn_set_status $ac_retval
1739 # ac_fn_cxx_try_compile LINENO
1740 # ----------------------------
1741 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_cxx_try_compile ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext
1746 if { { ac_try="$ac_compile"
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_compile") 2>conftest.err
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_cxx_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest.$ac_objext; then :
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 as_fn_set_status $ac_retval
1775 } # ac_fn_cxx_try_compile
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext conftest$ac_exeext
1784 if { { ac_try="$ac_link"
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>conftest.err
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest$ac_exeext && {
1803 test "$cross_compiling" = yes ||
1804 $as_test_x conftest$ac_exeext
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815 # interfere with the next link command; also delete a directory that is
1816 # left behind by Apple's compiler. We do this before executing the actions.
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_link
1823 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists and can be compiled using the include files in
1826 # INCLUDES, setting the cache variable VAR accordingly.
1827 ac_fn_c_check_header_compile ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 } # ac_fn_c_check_header_compile
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=$ac_status
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 as_fn_set_status $ac_retval
1896 # ac_fn_c_check_func LINENO FUNC VAR
1897 # ----------------------------------
1898 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1899 ac_fn_c_check_func ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911 #define $2 innocuous_$2
1913 /* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $2 (); below.
1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916 <limits.h> exists even on freestanding compilers. */
1919 # include <limits.h>
1921 # include <assert.h>
1926 /* Override any GCC internal prototype to avoid an error.
1927 Use char because int might match the return type of a GCC
1928 builtin and then its argument prototype would still apply. */
1933 /* The GNU C library defines this for functions which it implements
1934 to always fail with ENOSYS. Some functions are actually named
1935 something starting with __ and the normal name is an alias. */
1936 #if defined __stub_$2 || defined __stub___$2
1948 if ac_fn_c_try_link "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext \
1954 conftest$ac_exeext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961 } # ac_fn_c_check_func
1963 # ac_fn_cxx_try_cpp LINENO
1964 # ------------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_cxx_try_cpp ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } >/dev/null && {
1985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1986 test ! -s conftest.err
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 as_fn_set_status $ac_retval
1998 } # ac_fn_cxx_try_cpp
2000 # ac_fn_cxx_try_link LINENO
2001 # -------------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_link ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 rm -f conftest.$ac_objext conftest$ac_exeext
2007 if { { ac_try="$ac_link"
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>conftest.err
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && {
2023 test -z "$ac_cxx_werror_flag" ||
2024 test ! -s conftest.err
2025 } && test -s conftest$ac_exeext && {
2026 test "$cross_compiling" = yes ||
2027 $as_test_x conftest$ac_exeext
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2036 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2037 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2038 # interfere with the next link command; also delete a directory that is
2039 # left behind by Apple's compiler. We do this before executing the actions.
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042 as_fn_set_status $ac_retval
2044 } # ac_fn_cxx_try_link
2046 # ac_fn_cxx_try_run LINENO
2047 # ------------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2049 # that executables *can* be run.
2050 ac_fn_cxx_try_run ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if { { ac_try="$ac_link"
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_link") 2>&5
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2064 { { case "(($ac_try" in
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_try") 2>&5
2072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073 test $ac_status = 0; }; }; then :
2076 $as_echo "$as_me: program exited with status $ac_status" >&5
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_retval=$ac_status
2082 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084 as_fn_set_status $ac_retval
2086 } # ac_fn_cxx_try_run
2088 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2089 # ---------------------------------------------------------
2090 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2091 # the include files in INCLUDES and setting the cache variable VAR
2093 ac_fn_cxx_check_header_mongrel ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100 $as_echo_n "(cached) " >&6
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2106 # Is the header compilable?
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2108 $as_echo_n "checking $2 usability... " >&6; }
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2114 if ac_fn_cxx_try_compile "$LINENO"; then :
2115 ac_header_compiler=yes
2117 ac_header_compiler=no
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2121 $as_echo "$ac_header_compiler" >&6; }
2123 # Is the header present?
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2125 $as_echo_n "checking $2 presence... " >&6; }
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2130 if ac_fn_cxx_try_cpp "$LINENO"; then :
2131 ac_header_preproc=yes
2133 ac_header_preproc=no
2135 rm -f conftest.err conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2137 $as_echo "$ac_header_preproc" >&6; }
2139 # So? What about this header?
2140 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2143 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2149 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2151 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2153 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2155 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2157 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159 ## ------------------------------------ ##
2160 ## Report this to opensource@google.com ##
2161 ## ------------------------------------ ##
2163 ) | sed "s/^/$as_me: WARNING: /" >&2
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167 $as_echo_n "checking for $2... " >&6; }
2168 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2169 $as_echo_n "(cached) " >&6
2171 eval "$3=\$ac_header_compiler"
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2179 } # ac_fn_cxx_check_header_mongrel
2181 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2182 # ----------------------------------------------
2183 # Tries to find the compile-time value of EXPR in a program that includes
2184 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2186 ac_fn_cxx_compute_int ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if test "$cross_compiling" = yes; then
2190 # Depending upon the size, compute the lo and hi bounds.
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) >= 0)];
2204 if ac_fn_cxx_try_compile "$LINENO"; then :
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221 ac_hi=$ac_mid; break
2223 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2224 if test $ac_lo -le $ac_mid; then
2228 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2239 static int test_array [1 - 2 * !(($2) < 0)];
2246 if ac_fn_cxx_try_compile "$LINENO"; then :
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2255 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2263 ac_lo=$ac_mid; break
2265 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2266 if test $ac_mid -le $ac_hi; then
2270 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 # Binary search between lo and hi bounds.
2281 while test "x$ac_lo" != "x$ac_hi"; do
2282 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2289 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2296 if ac_fn_cxx_try_compile "$LINENO"; then :
2299 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2311 static long int longval () { return $2; }
2312 static unsigned long int ulongval () { return $2; }
2319 FILE *f = fopen ("conftest.val", "w");
2324 long int i = longval ();
2327 fprintf (f, "%ld", i);
2331 unsigned long int i = ulongval ();
2334 fprintf (f, "%lu", i);
2336 /* Do not output a trailing newline, as this causes \r\n confusion
2337 on some platforms. */
2338 return ferror (f) || fclose (f) != 0;
2344 if ac_fn_cxx_try_run "$LINENO"; then :
2345 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2350 conftest.$ac_objext conftest.beam conftest.$ac_ext
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 as_fn_set_status $ac_retval
2357 } # ac_fn_cxx_compute_int
2359 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2360 # ---------------------------------------------
2361 # Tests whether TYPE exists after having included INCLUDES, setting cache
2362 # variable VAR accordingly.
2363 ac_fn_cxx_check_type ()
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2369 $as_echo_n "(cached) " >&6
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2384 if ac_fn_cxx_try_compile "$LINENO"; then :
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2397 if ac_fn_cxx_try_compile "$LINENO"; then :
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 } # ac_fn_cxx_check_type
2413 # ac_fn_cxx_check_func LINENO FUNC VAR
2414 # ------------------------------------
2415 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2416 ac_fn_cxx_check_func ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 $as_echo_n "checking for $2... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2428 #define $2 innocuous_$2
2430 /* System header to define __stub macros and hopefully few prototypes,
2431 which can conflict with char $2 (); below.
2432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2433 <limits.h> exists even on freestanding compilers. */
2436 # include <limits.h>
2438 # include <assert.h>
2443 /* Override any GCC internal prototype to avoid an error.
2444 Use char because int might match the return type of a GCC
2445 builtin and then its argument prototype would still apply. */
2450 /* The GNU C library defines this for functions which it implements
2451 to always fail with ENOSYS. Some functions are actually named
2452 something starting with __ and the normal name is an alias. */
2453 #if defined __stub_$2 || defined __stub___$2
2465 if ac_fn_cxx_try_link "$LINENO"; then :
2470 rm -f core conftest.err conftest.$ac_objext \
2471 conftest$ac_exeext conftest.$ac_ext
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 } # ac_fn_cxx_check_func
2479 cat >config.log <<_ACEOF
2480 This file contains any messages produced by compilers while
2481 running configure, to aid debugging if configure makes a mistake.
2483 It was created by glog $as_me 0.3.2, which was
2484 generated by GNU Autoconf 2.65. Invocation command line was
2496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2505 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2506 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2508 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2509 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2510 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2511 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 $as_echo "PATH: $as_dir"
2536 # Keep a trace of the command line.
2537 # Strip out --no-create and --no-recursion so they do not pile up.
2538 # Strip out --silent because we don't want to record it for future runs.
2539 # Also quote any args containing shell meta-characters.
2540 # Make two passes to allow for proper duplicate-argument suppression.
2544 ac_must_keep_next=false
2550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2552 | -silent | --silent | --silen | --sile | --sil)
2555 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2560 as_fn_append ac_configure_args1 " '$ac_arg'"
2561 if test $ac_must_keep_next = true; then
2562 ac_must_keep_next=false # Got value, back to normal.
2565 *=* | --config-cache | -C | -disable-* | --disable-* \
2566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2568 | -with-* | --with-* | -without-* | --without-* | --x)
2569 case "$ac_configure_args0 " in
2570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2573 -* ) ac_must_keep_next=true ;;
2576 as_fn_append ac_configure_args " '$ac_arg'"
2581 { ac_configure_args0=; unset ac_configure_args0;}
2582 { ac_configure_args1=; unset ac_configure_args1;}
2584 # When interrupted or exit'd, cleanup temporary files, and complete
2585 # config.log. We remove comments because anyway the quotes in there
2586 # would cause problems or look ugly.
2587 # WARNING: Use '\'' to represent an apostrophe within the trap.
2588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2589 trap 'exit_status=$?
2590 # Save into config.log some information that might help in debugging.
2595 ## ---------------- ##
2596 ## Cache variables. ##
2597 ## ---------------- ##
2600 # The following way of writing the cache mishandles newlines in values,
2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2603 eval ac_val=\$$ac_var
2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2611 _ | IFS | as_nl) ;; #(
2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2613 *) { eval $ac_var=; unset $ac_var;} ;;
2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2619 *${as_nl}ac_space=\ *)
2621 "s/'\''/'\''\\\\'\'''\''/g;
2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2633 ## ----------------- ##
2634 ## Output variables. ##
2635 ## ----------------- ##
2638 for ac_var in $ac_subst_vars
2640 eval ac_val=\$$ac_var
2642 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2644 $as_echo "$ac_var='\''$ac_val'\''"
2648 if test -n "$ac_subst_files"; then
2650 ## ------------------- ##
2651 ## File substitutions. ##
2652 ## ------------------- ##
2655 for ac_var in $ac_subst_files
2657 eval ac_val=\$$ac_var
2659 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2661 $as_echo "$ac_var='\''$ac_val'\''"
2666 if test -s confdefs.h; then
2676 test "$ac_signal" != 0 &&
2677 $as_echo "$as_me: caught signal $ac_signal"
2678 $as_echo "$as_me: exit $exit_status"
2680 rm -f core *.core core.conftest.* &&
2681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2684 for ac_signal in 1 2 13 15; do
2685 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2690 rm -f -r conftest* confdefs.h
2692 $as_echo "/* confdefs.h */" > confdefs.h
2694 # Predefined preprocessor variables.
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_NAME "$PACKAGE_NAME"
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_STRING "$PACKAGE_STRING"
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_URL "$PACKAGE_URL"
2721 # Let the site file select an alternate cache file if it wants to.
2722 # Prefer an explicitly selected file to automatically selected ones.
2725 if test -n "$CONFIG_SITE"; then
2726 ac_site_file1=$CONFIG_SITE
2727 elif test "x$prefix" != xNONE; then
2728 ac_site_file1=$prefix/share/config.site
2729 ac_site_file2=$prefix/etc/config.site
2731 ac_site_file1=$ac_default_prefix/share/config.site
2732 ac_site_file2=$ac_default_prefix/etc/config.site
2734 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2736 test "x$ac_site_file" = xNONE && continue
2737 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2739 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2740 sed 's/^/| /' "$ac_site_file" >&5
2745 if test -r "$cache_file"; then
2746 # Some versions of bash will fail to source /dev/null (special files
2747 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2748 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2750 $as_echo "$as_me: loading cache $cache_file" >&6;}
2752 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2753 *) . "./$cache_file";;
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2758 $as_echo "$as_me: creating cache $cache_file" >&6;}
2762 # Check that the precious variables saved in the cache have kept the same
2764 ac_cache_corrupted=false
2765 for ac_var in $ac_precious_vars; do
2766 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2767 eval ac_new_set=\$ac_env_${ac_var}_set
2768 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2769 eval ac_new_val=\$ac_env_${ac_var}_value
2770 case $ac_old_set,$ac_new_set in
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2777 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2778 ac_cache_corrupted=: ;;
2781 if test "x$ac_old_val" != "x$ac_new_val"; then
2782 # differences in whitespace do not lead to failure.
2783 ac_old_val_w=`echo x $ac_old_val`
2784 ac_new_val_w=`echo x $ac_new_val`
2785 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2787 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2788 ac_cache_corrupted=:
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2791 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2792 eval $ac_var=\$ac_old_val
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2795 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2797 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2800 # Pass precious variables to config.status.
2801 if test "$ac_new_set" = set; then
2803 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2804 *) ac_arg=$ac_var=$ac_new_val ;;
2806 case " $ac_configure_args " in
2807 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2808 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2812 if $ac_cache_corrupted; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2816 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2817 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2819 ## -------------------- ##
2820 ## Main body of script. ##
2821 ## -------------------- ##
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 # The argument here is just something that should be in the current directory
2831 # (for sanity checking)
2834 am__api_version='1.11'
2837 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2838 for ac_t in install-sh install.sh shtool; do
2839 if test -f "$ac_dir/$ac_t"; then
2841 ac_install_sh="$ac_aux_dir/$ac_t -c"
2846 if test -z "$ac_aux_dir"; then
2847 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2850 # These three variables are undocumented and unsupported,
2851 # and are intended to be withdrawn in a future Autoconf release.
2852 # They can cause serious problems if a builder's source tree is in a directory
2853 # whose full name contains unusual characters.
2854 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2855 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2856 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2859 # Find a good install program. We prefer a C program (faster),
2860 # so one script is as good as another. But avoid the broken or
2861 # incompatible versions:
2862 # SysV /etc/install, /usr/sbin/install
2863 # SunOS /usr/etc/install
2864 # IRIX /sbin/install
2866 # AmigaOS /C/install, which installs bootblocks on floppy discs
2867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2870 # OS/2's system install, which has a completely different semantic
2871 # ./install, which can be erroneously created by make from ./install.sh.
2872 # Reject install programs that cannot install multiple files.
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2874 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2875 if test -z "$INSTALL"; then
2876 if test "${ac_cv_path_install+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 # Account for people who put trailing slashes in PATH elements.
2885 case $as_dir/ in #((
2886 ./ | .// | /[cC]/* | \
2887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2888 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2891 # OSF1 and SCO ODT 3.0 have their own names for install.
2892 # Don't use installbsd from OSF since it installs stuff as root
2894 for ac_prog in ginstall scoinst install; do
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2897 if test $ac_prog = install &&
2898 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # AIX install. It has an incompatible calling convention.
2901 elif test $ac_prog = install &&
2902 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903 # program-specific install script used by HP pwplus--don't use.
2906 rm -rf conftest.one conftest.two conftest.dir
2907 echo one > conftest.one
2908 echo two > conftest.two
2910 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2911 test -s conftest.one && test -s conftest.two &&
2912 test -s conftest.dir/conftest.one &&
2913 test -s conftest.dir/conftest.two
2915 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2928 rm -rf conftest.one conftest.two conftest.dir
2931 if test "${ac_cv_path_install+set}" = set; then
2932 INSTALL=$ac_cv_path_install
2934 # As a last resort, use the slow shell script. Don't cache a
2935 # value for INSTALL within a source directory, because that will
2936 # break other packages using the cache if that directory is
2937 # removed, or if the value is a relative name.
2938 INSTALL=$ac_install_sh
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2942 $as_echo "$INSTALL" >&6; }
2944 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2945 # It thinks the first close brace ends the variable substitution.
2946 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2948 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2950 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2953 $as_echo_n "checking whether build environment is sane... " >&6; }
2956 echo timestamp > conftest.file
2957 # Reject unsafe characters in $srcdir or the absolute working directory
2958 # name. Accept space and tab only in the latter.
2962 *[\\\"\#\$\&\'\`$am_lf]*)
2963 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2966 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2967 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2970 # Do `set' in a subshell so we don't clobber the current shell's
2971 # arguments. Must try -L first in case configure is actually a
2972 # symlink; some systems play weird games with the mod time of symlinks
2973 # (eg FreeBSD returns the mod time of the symlink's containing
2976 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2977 if test "$*" = "X"; then
2979 set X `ls -t "$srcdir/configure" conftest.file`
2982 if test "$*" != "X $srcdir/configure conftest.file" \
2983 && test "$*" != "X conftest.file $srcdir/configure"; then
2985 # If neither matched, then we have a broken ls. This can happen
2986 # if, for instance, CONFIG_SHELL is bash and it inherits a
2987 # broken ls alias from the environment. This has actually
2988 # happened. Such a system could not be considered "sane".
2989 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2990 alias in your environment" "$LINENO" 5
2993 test "$2" = conftest.file
2999 as_fn_error "newly created file is older than distributed files!
3000 Check your system clock" "$LINENO" 5
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003 $as_echo "yes" >&6; }
3004 test "$program_prefix" != NONE &&
3005 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3006 # Use a double $ so make ignores it.
3007 test "$program_suffix" != NONE &&
3008 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3009 # Double any \ or $.
3010 # By default was `s,x,x', remove it if useless.
3011 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3012 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3014 # expand $ac_aux_dir to an absolute path
3015 am_aux_dir=`cd $ac_aux_dir && pwd`
3017 if test x"${MISSING+set}" != xset; then
3020 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3022 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3025 # Use eval to expand $SHELL
3026 if eval "$MISSING --run true"; then
3027 am_missing_run="$MISSING --run "
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3031 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3034 if test x"${install_sh}" != xset; then
3037 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3039 install_sh="\${SHELL} $am_aux_dir/install-sh"
3043 # Installed binaries are usually stripped using `strip' when the user
3044 # run `make install-strip'. However `strip' might not be the right
3045 # tool to use in cross-compilation environments, therefore Automake
3046 # will honor the `STRIP' environment variable to overrule this program.
3047 if test "$cross_compiling" != no; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}strip; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_STRIP+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$STRIP"; then
3057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 STRIP=$ac_cv_prog_STRIP
3077 if test -n "$STRIP"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3079 $as_echo "$STRIP" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3087 if test -z "$ac_cv_prog_STRIP"; then
3089 # Extract the first word of "strip", so it can be a program name with args.
3090 set dummy strip; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$ac_ct_STRIP"; then
3097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_ac_ct_STRIP="strip"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3117 if test -n "$ac_ct_STRIP"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3119 $as_echo "$ac_ct_STRIP" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3125 if test "x$ac_ct_STRIP" = x; then
3128 case $cross_compiling:$ac_tool_warned in
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3137 STRIP="$ac_cv_prog_STRIP"
3141 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3144 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3145 if test -z "$MKDIR_P"; then
3146 if test "${ac_cv_path_mkdir+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3153 test -z "$as_dir" && as_dir=.
3154 for ac_prog in mkdir gmkdir; do
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3157 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3158 'mkdir (GNU coreutils) '* | \
3159 'mkdir (coreutils) '* | \
3160 'mkdir (fileutils) '4.1*)
3161 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3171 test -d ./--version && rmdir ./--version
3172 if test "${ac_cv_path_mkdir+set}" = set; then
3173 MKDIR_P="$ac_cv_path_mkdir -p"
3175 # As a last resort, use the slow shell script. Don't cache a
3176 # value for MKDIR_P within a source directory, because that will
3177 # break other packages using the cache if that directory is
3178 # removed, or if the value is a relative name.
3179 MKDIR_P="$ac_install_sh -d"
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3183 $as_echo "$MKDIR_P" >&6; }
3187 [\\/$]* | ?:[\\/]*) ;;
3188 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3191 for ac_prog in gawk mawk nawk awk
3193 # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_AWK+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$AWK"; then
3201 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_AWK="$ac_prog"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$AWK"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3223 $as_echo "$AWK" >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3230 test -n "$AWK" && break
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3234 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3236 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3237 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3238 $as_echo_n "(cached) " >&6
3240 cat >conftest.make <<\_ACEOF
3243 @echo '@@@%%%=$(MAKE)=@@@%%%'
3245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3246 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3248 eval ac_cv_prog_make_${ac_make}_set=yes;;
3250 eval ac_cv_prog_make_${ac_make}_set=no;;
3254 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 SET_MAKE="MAKE=${MAKE-make}"
3264 rm -rf .tst 2>/dev/null
3265 mkdir .tst 2>/dev/null
3266 if test -d .tst; then
3271 rmdir .tst 2>/dev/null
3273 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3274 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3275 # is not polluted with repeated "-I."
3276 am__isrc=' -I$(srcdir)'
3277 # test to see if srcdir already configured
3278 if test -f $srcdir/config.status; then
3279 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3283 # test whether we have cygpath
3284 if test -z "$CYGPATH_W"; then
3285 if (cygpath --version) >/dev/null 2>/dev/null; then
3286 CYGPATH_W='cygpath -w'
3293 # Define the identity of the package.
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE "$PACKAGE"
3303 cat >>confdefs.h <<_ACEOF
3304 #define VERSION "$VERSION"
3307 # Some tools Automake needs.
3309 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3312 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3315 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3318 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3321 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3323 # We need awk for the "check" target. The system "awk" is bad on
3325 # Always define AMTAR for backward compatibility.
3327 AMTAR=${AMTAR-"${am_missing_run}tar"}
3329 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3335 ac_config_headers="$ac_config_headers src/config.h"
3339 ac_cpp='$CXXCPP $CPPFLAGS'
3340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3345 # Checks for programs.
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if test "${ac_cv_prog_CC+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 if test -n "$CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3390 if test -z "$ac_cv_prog_CC"; then
3392 # Extract the first word of "gcc", so it can be a program name with args.
3393 set dummy gcc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_ac_ct_CC="gcc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3428 if test "x$ac_ct_CC" = x; then
3431 case $cross_compiling:$ac_tool_warned in
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3443 if test -z "$CC"; then
3444 if test -n "$ac_tool_prefix"; then
3445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}cc; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if test "${ac_cv_prog_CC+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
3452 if test -n "$CC"; then
3453 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_CC="${ac_tool_prefix}cc"
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 if test -n "$CC"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3484 if test -z "$CC"; then
3485 # Extract the first word of "cc", so it can be a program name with args.
3486 set dummy cc; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if test "${ac_cv_prog_CC+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
3492 if test -n "$CC"; then
3493 ac_cv_prog_CC="$CC" # Let the user override the test.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3504 ac_prog_rejected=yes
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 if test $ac_prog_rejected = yes; then
3516 # We found a bogon in the path, so make sure we never use it.
3517 set dummy $ac_cv_prog_CC
3519 if test $# != 0; then
3520 # We chose a different compiler from the bogus one.
3521 # However, it has the same basename, so the bogon will be chosen
3522 # first if we set CC to just the basename; use the full file name.
3524 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3530 if test -n "$CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 $as_echo "$CC" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3540 if test -z "$CC"; then
3541 if test -n "$ac_tool_prefix"; then
3542 for ac_prog in cl.exe
3544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_CC+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3551 if test -n "$CC"; then
3552 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 if test -n "$CC"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 $as_echo "$CC" >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3581 test -n "$CC" && break
3584 if test -z "$CC"; then
3586 for ac_prog in cl.exe
3588 # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_ac_ct_CC="$ac_prog"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3625 test -n "$ac_ct_CC" && break
3628 if test "x$ac_ct_CC" = x; then
3631 case $cross_compiling:$ac_tool_warned in
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3644 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error "no acceptable C compiler found in \$PATH
3647 See \`config.log' for more details." "$LINENO" 5; }
3649 # Provide some information about the compiler.
3650 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3653 for ac_option in --version -v -V -qversion; do
3654 { { ac_try="$ac_compiler $ac_option >&5"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3663 if test -s conftest.err; then
3665 ... rest of stderr output deleted ...
3666 10q' conftest.err >conftest.er1
3667 cat conftest.er1 >&5
3669 rm -f conftest.er1 conftest.err
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3685 ac_clean_files_save=$ac_clean_files
3686 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3687 # Try to create an executable without -o first, disregard a.out.
3688 # It will help us diagnose broken compilers, and finding out an intuition
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3691 $as_echo_n "checking whether the C compiler works... " >&6; }
3692 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3694 # The possible output files:
3695 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3698 for ac_file in $ac_files
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3702 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3707 if { { ac_try="$ac_link_default"
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_link_default") 2>&5
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3719 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3720 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3721 # so that the user can short-circuit this test for compilers unknown to
3723 for ac_file in $ac_files ''
3725 test -f "$ac_file" || continue
3727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3730 # We found the default executable, but exeext='' is most
3734 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3736 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3738 # We set ac_cv_exeext here because the later test for it is not
3739 # safe: cross compilers may not add the suffix if given an `-o'
3740 # argument, so we may need to know it at that point already.
3741 # Even if this section looks crufty: it has the advantage of
3748 test "$ac_cv_exeext" = no && ac_cv_exeext=
3753 if test -z "$ac_file"; then :
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 $as_echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 { as_fn_set_status 77
3762 as_fn_error "C compiler cannot create executables
3763 See \`config.log' for more details." "$LINENO" 5; }; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766 $as_echo "yes" >&6; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3769 $as_echo_n "checking for C compiler default output file name... " >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3771 $as_echo "$ac_file" >&6; }
3772 ac_exeext=$ac_cv_exeext
3774 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3775 ac_clean_files=$ac_clean_files_save
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3777 $as_echo_n "checking for suffix of executables... " >&6; }
3778 if { { ac_try="$ac_link"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_link") 2>&5
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }; then :
3789 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3790 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3791 # work properly (i.e., refer to `conftest.exe'), while it won't with
3793 for ac_file in conftest.exe conftest conftest.*; do
3794 test -f "$ac_file" || continue
3796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3797 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error "cannot compute suffix of executables: cannot compile and link
3806 See \`config.log' for more details." "$LINENO" 5; }
3808 rm -f conftest conftest$ac_cv_exeext
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3810 $as_echo "$ac_cv_exeext" >&6; }
3812 rm -f conftest.$ac_ext
3813 EXEEXT=$ac_cv_exeext
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3821 FILE *f = fopen ("conftest.out", "w");
3822 return ferror (f) || fclose (f) != 0;
3828 ac_clean_files="$ac_clean_files conftest.out"
3829 # Check that the compiler produces executables we can run. If not, either
3830 # the compiler is broken, or we cross compile.
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3832 $as_echo_n "checking whether we are cross compiling... " >&6; }
3833 if test "$cross_compiling" != yes; then
3834 { { ac_try="$ac_link"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_link") 2>&5
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }
3845 if { ac_try='./conftest$ac_cv_exeext'
3846 { { case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_try") 2>&5
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; }; then
3858 if test "$cross_compiling" = maybe; then
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 as_fn_error "cannot run C compiled programs.
3864 If you meant to cross compile, use \`--host'.
3865 See \`config.log' for more details." "$LINENO" 5; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3870 $as_echo "$cross_compiling" >&6; }
3872 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3873 ac_clean_files=$ac_clean_files_save
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3875 $as_echo_n "checking for suffix of object files... " >&6; }
3876 if test "${ac_cv_objext+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3890 rm -f conftest.o conftest.obj
3891 if { { ac_try="$ac_compile"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_compile") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 for ac_file in conftest.o conftest.obj conftest.*; do
3903 test -f "$ac_file" || continue;
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3911 $as_echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error "cannot compute suffix of object files: cannot compile
3917 See \`config.log' for more details." "$LINENO" 5; }
3919 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3922 $as_echo "$ac_cv_objext" >&6; }
3923 OBJEXT=$ac_cv_objext
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3927 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3944 if ac_fn_c_try_compile "$LINENO"; then :
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3955 if test $ac_compiler_gnu = yes; then
3960 ac_test_CFLAGS=${CFLAGS+set}
3961 ac_save_CFLAGS=$CFLAGS
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3964 if test "${ac_cv_prog_cc_g+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3967 ac_save_c_werror_flag=$ac_c_werror_flag
3968 ac_c_werror_flag=yes
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3982 if ac_fn_c_try_compile "$LINENO"; then :
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_c_werror_flag=$ac_save_c_werror_flag
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4013 if ac_fn_c_try_compile "$LINENO"; then :
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 ac_c_werror_flag=$ac_save_c_werror_flag
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4024 $as_echo "$ac_cv_prog_cc_g" >&6; }
4025 if test "$ac_test_CFLAGS" = set; then
4026 CFLAGS=$ac_save_CFLAGS
4027 elif test $ac_cv_prog_cc_g = yes; then
4028 if test "$GCC" = yes; then
4034 if test "$GCC" = yes; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4042 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 ac_cv_prog_cc_c89=no
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4067 s = g (p, va_arg (v,int));
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 CC="$ac_save_CC $ac_arg"
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_prog_cc_c89=$ac_arg
4107 rm -f core conftest.err conftest.$ac_objext
4108 test "x$ac_cv_prog_cc_c89" != "xno" && break
4110 rm -f conftest.$ac_ext
4115 case "x$ac_cv_prog_cc_c89" in
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4118 $as_echo "none needed" >&6; } ;;
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4121 $as_echo "unsupported" >&6; } ;;
4123 CC="$CC $ac_cv_prog_cc_c89"
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4127 if test "x$ac_cv_prog_cc_c89" != xno; then :
4132 ac_cpp='$CXXCPP $CPPFLAGS'
4133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4136 DEPDIR="${am__leading_dot}deps"
4138 ac_config_commands="$ac_config_commands depfiles"
4141 am_make=${MAKE-make}
4142 cat > confinc << 'END'
4144 @echo this is the am__doit target
4147 # If we don't find an include directive, just comment out the code.
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4149 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4153 # First try GNU make style include.
4154 echo "include confinc" > confmf
4155 # Ignore all kinds of additional output from `make'.
4156 case `$am_make -s -f confmf 2> /dev/null` in #(
4157 *the\ am__doit\ target*)
4163 # Now try BSD make style include.
4164 if test "$am__include" = "#"; then
4165 echo '.include "confinc"' > confmf
4166 case `$am_make -s -f confmf 2> /dev/null` in #(
4167 *the\ am__doit\ target*)
4168 am__include=.include
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4177 $as_echo "$_am_result" >&6; }
4178 rm -f confinc confmf
4180 # Check whether --enable-dependency-tracking was given.
4181 if test "${enable_dependency_tracking+set}" = set; then :
4182 enableval=$enable_dependency_tracking;
4185 if test "x$enable_dependency_tracking" != xno; then
4186 am_depcomp="$ac_aux_dir/depcomp"
4189 if test "x$enable_dependency_tracking" != xno; then
4199 depcc="$CC" am_compiler_list=
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4202 $as_echo_n "checking dependency style of $depcc... " >&6; }
4203 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4206 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4207 # We make a subdir and do the tests there. Otherwise we can end up
4208 # making bogus files that we don't know about and never remove. For
4209 # instance it was reported that on HP-UX the gcc test will end up
4210 # making a dummy file named `D' -- because `-MD' means `put the output
4213 # Copy depcomp to subdir because otherwise we won't find it if we're
4214 # using a relative directory.
4215 cp "$am_depcomp" conftest.dir
4217 # We will build objects and dependencies in a subdirectory because
4218 # it helps to detect inapplicable dependency modes. For instance
4219 # both Tru64's cc and ICC support -MD to output dependencies as a
4220 # side effect of compilation, but ICC will put the dependencies in
4221 # the current directory while Tru64 will put them in the object
4225 am_cv_CC_dependencies_compiler_type=none
4226 if test "$am_compiler_list" = ""; then
4227 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4230 case " $depcc " in #(
4231 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4234 for depmode in $am_compiler_list; do
4235 # Setup a source with many dependencies, because some compilers
4236 # like to wrap large dependency lists on column 80 (with \), and
4237 # we should not choose a depcomp mode which is confused by this.
4239 # We need to recreate these files for each test, as the compiler may
4240 # overwrite some of them when testing with obscure command lines.
4241 # This happens at least with the AIX C compiler.
4243 for i in 1 2 3 4 5 6; do
4244 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4245 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4246 # Solaris 8's {/usr,}/bin/sh.
4247 touch sub/conftst$i.h
4249 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4251 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4252 # mode. It turns out that the SunPro C++ compiler does not properly
4253 # handle `-M -o', and we need to detect this. Also, some Intel
4254 # versions had trouble with output in subdirs
4255 am__obj=sub/conftest.${OBJEXT-o}
4256 am__minus_obj="-o $am__obj"
4259 # This depmode causes a compiler race in universal mode.
4260 test "$am__universal" = false || continue
4263 # after this tag, mechanisms are not by side-effect, so they'll
4264 # only be used when explicitly requested
4265 if test "x$enable_dependency_tracking" = xyes; then
4271 msvisualcpp | msvcmsys)
4272 # This compiler won't grok `-c -o', but also, the minuso test has
4273 # not run yet. These depmodes are late enough in the game, and
4274 # so weak that their functioning should not be impacted.
4275 am__obj=conftest.${OBJEXT-o}
4280 if depmode=$depmode \
4281 source=sub/conftest.c object=$am__obj \
4282 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4283 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4284 >/dev/null 2>conftest.err &&
4285 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4286 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4287 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4288 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4289 # icc doesn't choke on unknown options, it will just issue warnings
4290 # or remarks (even with -Werror). So we grep stderr for any message
4291 # that says an option was ignored or not supported.
4292 # When given -MP, icc 7.0 and 7.1 complain thusly:
4293 # icc: Command line warning: ignoring option '-M'; no argument required
4294 # The diagnosis changed in icc 8.0:
4295 # icc: Command line remark: option '-MP' not supported
4296 if (grep 'ignoring option' conftest.err ||
4297 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4298 am_cv_CC_dependencies_compiler_type=$depmode
4307 am_cv_CC_dependencies_compiler_type=none
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4312 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4313 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4316 test "x$enable_dependency_tracking" != xno \
4317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4319 am__fastdepCC_FALSE='#'
4321 am__fastdepCC_TRUE='#'
4322 am__fastdepCC_FALSE=
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4333 # On Suns, sometimes $CPP names a directory.
4334 if test -n "$CPP" && test -d "$CPP"; then
4337 if test -z "$CPP"; then
4338 if test "${ac_cv_prog_CPP+set}" = set; then :
4339 $as_echo_n "(cached) " >&6
4341 # Double quotes because CPP needs to be expanded
4342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4345 for ac_c_preproc_warn_flag in '' yes
4347 # Use a header file that comes with gcc, so configuring glibc
4348 # with a fresh cross-compiler works.
4349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350 # <limits.h> exists even on freestanding compilers.
4351 # On the NeXT, cc -E runs the code through the compiler's parser,
4352 # not just through cpp. "Syntax error" is here to catch this case.
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4356 # include <limits.h>
4358 # include <assert.h>
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4365 # Broken: fails on valid input.
4368 rm -f conftest.err conftest.$ac_ext
4370 # OK, works on sane cases. Now check whether nonexistent headers
4371 # can be detected and how.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <ac_nonexistent.h>
4376 if ac_fn_c_try_cpp "$LINENO"; then :
4377 # Broken: success on invalid input.
4380 # Passes both tests.
4384 rm -f conftest.err conftest.$ac_ext
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then :
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4402 $as_echo "$CPP" >&6; }
4404 for ac_c_preproc_warn_flag in '' yes
4406 # Use a header file that comes with gcc, so configuring glibc
4407 # with a fresh cross-compiler works.
4408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4409 # <limits.h> exists even on freestanding compilers.
4410 # On the NeXT, cc -E runs the code through the compiler's parser,
4411 # not just through cpp. "Syntax error" is here to catch this case.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4415 # include <limits.h>
4417 # include <assert.h>
4421 if ac_fn_c_try_cpp "$LINENO"; then :
4424 # Broken: fails on valid input.
4427 rm -f conftest.err conftest.$ac_ext
4429 # OK, works on sane cases. Now check whether nonexistent headers
4430 # can be detected and how.
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #include <ac_nonexistent.h>
4435 if ac_fn_c_try_cpp "$LINENO"; then :
4436 # Broken: success on invalid input.
4439 # Passes both tests.
4443 rm -f conftest.err conftest.$ac_ext
4446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4447 rm -f conftest.err conftest.$ac_ext
4448 if $ac_preproc_ok; then :
4451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4454 See \`config.log' for more details." "$LINENO" 5; }
4458 ac_cpp='$CXXCPP $CPPFLAGS'
4459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4464 ac_cpp='$CXXCPP $CPPFLAGS'
4465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4468 if test -z "$CXX"; then
4469 if test -n "$CCC"; then
4472 if test -n "$ac_tool_prefix"; then
4473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_CXX+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4482 if test -n "$CXX"; then
4483 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 if test -n "$CXX"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4505 $as_echo "$CXX" >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4512 test -n "$CXX" && break
4515 if test -z "$CXX"; then
4517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4519 # Extract the first word of "$ac_prog", so it can be a program name with args.
4520 set dummy $ac_prog; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4526 if test -n "$ac_ct_CXX"; then
4527 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_ac_ct_CXX="$ac_prog"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4547 if test -n "$ac_ct_CXX"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4549 $as_echo "$ac_ct_CXX" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4556 test -n "$ac_ct_CXX" && break
4559 if test "x$ac_ct_CXX" = x; then
4562 case $cross_compiling:$ac_tool_warned in
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4574 # Provide some information about the compiler.
4575 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4578 for ac_option in --version -v -V -qversion; do
4579 { { ac_try="$ac_compiler $ac_option >&5"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4588 if test -s conftest.err; then
4590 ... rest of stderr output deleted ...
4591 10q' conftest.err >conftest.er1
4592 cat conftest.er1 >&5
4594 rm -f conftest.er1 conftest.err
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4600 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4601 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4628 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4629 if test $ac_compiler_gnu = yes; then
4634 ac_test_CXXFLAGS=${CXXFLAGS+set}
4635 ac_save_CXXFLAGS=$CXXFLAGS
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4637 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4638 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4642 ac_cxx_werror_flag=yes
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4656 if ac_fn_cxx_try_compile "$LINENO"; then :
4657 ac_cv_prog_cxx_g=yes
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4671 if ac_fn_cxx_try_compile "$LINENO"; then :
4674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4687 if ac_fn_cxx_try_compile "$LINENO"; then :
4688 ac_cv_prog_cxx_g=yes
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4698 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4699 if test "$ac_test_CXXFLAGS" = set; then
4700 CXXFLAGS=$ac_save_CXXFLAGS
4701 elif test $ac_cv_prog_cxx_g = yes; then
4702 if test "$GXX" = yes; then
4708 if test "$GXX" = yes; then
4715 ac_cpp='$CXXCPP $CPPFLAGS'
4716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4720 depcc="$CXX" am_compiler_list=
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4723 $as_echo_n "checking dependency style of $depcc... " >&6; }
4724 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4727 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4728 # We make a subdir and do the tests there. Otherwise we can end up
4729 # making bogus files that we don't know about and never remove. For
4730 # instance it was reported that on HP-UX the gcc test will end up
4731 # making a dummy file named `D' -- because `-MD' means `put the output
4734 # Copy depcomp to subdir because otherwise we won't find it if we're
4735 # using a relative directory.
4736 cp "$am_depcomp" conftest.dir
4738 # We will build objects and dependencies in a subdirectory because
4739 # it helps to detect inapplicable dependency modes. For instance
4740 # both Tru64's cc and ICC support -MD to output dependencies as a
4741 # side effect of compilation, but ICC will put the dependencies in
4742 # the current directory while Tru64 will put them in the object
4746 am_cv_CXX_dependencies_compiler_type=none
4747 if test "$am_compiler_list" = ""; then
4748 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4751 case " $depcc " in #(
4752 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4755 for depmode in $am_compiler_list; do
4756 # Setup a source with many dependencies, because some compilers
4757 # like to wrap large dependency lists on column 80 (with \), and
4758 # we should not choose a depcomp mode which is confused by this.
4760 # We need to recreate these files for each test, as the compiler may
4761 # overwrite some of them when testing with obscure command lines.
4762 # This happens at least with the AIX C compiler.
4764 for i in 1 2 3 4 5 6; do
4765 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4766 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4767 # Solaris 8's {/usr,}/bin/sh.
4768 touch sub/conftst$i.h
4770 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4772 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4773 # mode. It turns out that the SunPro C++ compiler does not properly
4774 # handle `-M -o', and we need to detect this. Also, some Intel
4775 # versions had trouble with output in subdirs
4776 am__obj=sub/conftest.${OBJEXT-o}
4777 am__minus_obj="-o $am__obj"
4780 # This depmode causes a compiler race in universal mode.
4781 test "$am__universal" = false || continue
4784 # after this tag, mechanisms are not by side-effect, so they'll
4785 # only be used when explicitly requested
4786 if test "x$enable_dependency_tracking" = xyes; then
4792 msvisualcpp | msvcmsys)
4793 # This compiler won't grok `-c -o', but also, the minuso test has
4794 # not run yet. These depmodes are late enough in the game, and
4795 # so weak that their functioning should not be impacted.
4796 am__obj=conftest.${OBJEXT-o}
4801 if depmode=$depmode \
4802 source=sub/conftest.c object=$am__obj \
4803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4805 >/dev/null 2>conftest.err &&
4806 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4808 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4810 # icc doesn't choke on unknown options, it will just issue warnings
4811 # or remarks (even with -Werror). So we grep stderr for any message
4812 # that says an option was ignored or not supported.
4813 # When given -MP, icc 7.0 and 7.1 complain thusly:
4814 # icc: Command line warning: ignoring option '-M'; no argument required
4815 # The diagnosis changed in icc 8.0:
4816 # icc: Command line remark: option '-MP' not supported
4817 if (grep 'ignoring option' conftest.err ||
4818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4819 am_cv_CXX_dependencies_compiler_type=$depmode
4828 am_cv_CXX_dependencies_compiler_type=none
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4833 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4837 test "x$enable_dependency_tracking" != xno \
4838 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4839 am__fastdepCXX_TRUE=
4840 am__fastdepCXX_FALSE='#'
4842 am__fastdepCXX_TRUE='#'
4843 am__fastdepCXX_FALSE=
4847 if test "$GCC" = yes; then
4854 # let the Makefile know if we're gcc
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4859 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4864 macro_version='2.2.6b'
4865 macro_revision='1.3017'
4879 ltmain="$ac_aux_dir/ltmain.sh"
4881 # Make sure we can run config.sub.
4882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4883 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4886 $as_echo_n "checking build system type... " >&6; }
4887 if test "${ac_cv_build+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4890 ac_build_alias=$build_alias
4891 test "x$ac_build_alias" = x &&
4892 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4893 test "x$ac_build_alias" = x &&
4894 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4896 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4900 $as_echo "$ac_cv_build" >&6; }
4901 case $ac_cv_build in
4903 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4906 ac_save_IFS=$IFS; IFS='-'
4912 # Remember, the first character of IFS is used to create $*,
4913 # except with old shells:
4916 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4920 $as_echo_n "checking host system type... " >&6; }
4921 if test "${ac_cv_host+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4924 if test "x$host_alias" = x; then
4925 ac_cv_host=$ac_cv_build
4927 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4928 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4933 $as_echo "$ac_cv_host" >&6; }
4936 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4939 ac_save_IFS=$IFS; IFS='-'
4945 # Remember, the first character of IFS is used to create $*,
4946 # except with old shells:
4949 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4953 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4954 if test "${ac_cv_path_SED+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4957 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4958 for ac_i in 1 2 3 4 5 6 7; do
4959 ac_script="$ac_script$as_nl$ac_script"
4961 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4962 { ac_script=; unset ac_script;}
4963 if test -z "$SED"; then
4964 ac_path_SED_found=false
4965 # Loop through the user's path and test for each of PROGNAME-LIST
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_prog in sed gsed; do
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4974 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4975 # Check for GNU ac_path_SED and select it if it is found.
4976 # Check for GNU $ac_path_SED
4977 case `"$ac_path_SED" --version 2>&1` in
4979 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4982 $as_echo_n 0123456789 >"conftest.in"
4985 cat "conftest.in" "conftest.in" >"conftest.tmp"
4986 mv "conftest.tmp" "conftest.in"
4987 cp "conftest.in" "conftest.nl"
4988 $as_echo '' >> "conftest.nl"
4989 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4991 as_fn_arith $ac_count + 1 && ac_count=$as_val
4992 if test $ac_count -gt ${ac_path_SED_max-0}; then
4993 # Best one so far, save it but keep looking for a better one
4994 ac_cv_path_SED="$ac_path_SED"
4995 ac_path_SED_max=$ac_count
4997 # 10*(2^10) chars as input seems more than enough
4998 test $ac_count -gt 10 && break
5000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5003 $ac_path_SED_found && break 3
5008 if test -z "$ac_cv_path_SED"; then
5009 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5017 $as_echo "$ac_cv_path_SED" >&6; }
5018 SED="$ac_cv_path_SED"
5021 test -z "$SED" && SED=sed
5022 Xsed="$SED -e 1s/^X//"
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5035 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5036 if test "${ac_cv_path_GREP+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5039 if test -z "$GREP"; then
5040 ac_path_GREP_found=false
5041 # Loop through the user's path and test for each of PROGNAME-LIST
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5046 test -z "$as_dir" && as_dir=.
5047 for ac_prog in grep ggrep; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5050 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5051 # Check for GNU ac_path_GREP and select it if it is found.
5052 # Check for GNU $ac_path_GREP
5053 case `"$ac_path_GREP" --version 2>&1` in
5055 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5058 $as_echo_n 0123456789 >"conftest.in"
5061 cat "conftest.in" "conftest.in" >"conftest.tmp"
5062 mv "conftest.tmp" "conftest.in"
5063 cp "conftest.in" "conftest.nl"
5064 $as_echo 'GREP' >> "conftest.nl"
5065 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067 as_fn_arith $ac_count + 1 && ac_count=$as_val
5068 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5069 # Best one so far, save it but keep looking for a better one
5070 ac_cv_path_GREP="$ac_path_GREP"
5071 ac_path_GREP_max=$ac_count
5073 # 10*(2^10) chars as input seems more than enough
5074 test $ac_count -gt 10 && break
5076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 $ac_path_GREP_found && break 3
5084 if test -z "$ac_cv_path_GREP"; then
5085 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088 ac_cv_path_GREP=$GREP
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5093 $as_echo "$ac_cv_path_GREP" >&6; }
5094 GREP="$ac_cv_path_GREP"
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5098 $as_echo_n "checking for egrep... " >&6; }
5099 if test "${ac_cv_path_EGREP+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5102 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5103 then ac_cv_path_EGREP="$GREP -E"
5105 if test -z "$EGREP"; then
5106 ac_path_EGREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in egrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5116 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5117 # Check for GNU ac_path_EGREP and select it if it is found.
5118 # Check for GNU $ac_path_EGREP
5119 case `"$ac_path_EGREP" --version 2>&1` in
5121 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5124 $as_echo_n 0123456789 >"conftest.in"
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'EGREP' >> "conftest.nl"
5131 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_EGREP="$ac_path_EGREP"
5137 ac_path_EGREP_max=$ac_count
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 $ac_path_EGREP_found && break 3
5150 if test -z "$ac_cv_path_EGREP"; then
5151 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 ac_cv_path_EGREP=$EGREP
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5160 $as_echo "$ac_cv_path_EGREP" >&6; }
5161 EGREP="$ac_cv_path_EGREP"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5165 $as_echo_n "checking for fgrep... " >&6; }
5166 if test "${ac_cv_path_FGREP+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5169 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5170 then ac_cv_path_FGREP="$GREP -F"
5172 if test -z "$FGREP"; then
5173 ac_path_FGREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in fgrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5184 # Check for GNU ac_path_FGREP and select it if it is found.
5185 # Check for GNU $ac_path_FGREP
5186 case `"$ac_path_FGREP" --version 2>&1` in
5188 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5191 $as_echo_n 0123456789 >"conftest.in"
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'FGREP' >> "conftest.nl"
5198 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_FGREP="$ac_path_FGREP"
5204 ac_path_FGREP_max=$ac_count
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5212 $ac_path_FGREP_found && break 3
5217 if test -z "$ac_cv_path_FGREP"; then
5218 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5221 ac_cv_path_FGREP=$FGREP
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5227 $as_echo "$ac_cv_path_FGREP" >&6; }
5228 FGREP="$ac_cv_path_FGREP"
5231 test -z "$GREP" && GREP=grep
5251 # Check whether --with-gnu-ld was given.
5252 if test "${with_gnu_ld+set}" = set; then :
5253 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5259 if test "$GCC" = yes; then
5260 # Check if gcc -print-prog-name=ld gives a path.
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5262 $as_echo_n "checking for ld used by $CC... " >&6; }
5265 # gcc leaves a trailing carriage return which upsets mingw
5266 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5268 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5271 # Accept absolute paths.
5273 re_direlt='/[^/][^/]*/\.\./'
5274 # Canonicalize the pathname of ld
5275 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5276 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5277 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5279 test -z "$LD" && LD="$ac_prog"
5282 # If it fails, then pretend we aren't using GCC.
5286 # If it is relative, then search for the first ld in PATH.
5290 elif test "$with_gnu_ld" = yes; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5292 $as_echo_n "checking for GNU ld... " >&6; }
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5295 $as_echo_n "checking for non-GNU ld... " >&6; }
5297 if test "${lt_cv_path_LD+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5300 if test -z "$LD"; then
5301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5302 for ac_dir in $PATH; do
5304 test -z "$ac_dir" && ac_dir=.
5305 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5306 lt_cv_path_LD="$ac_dir/$ac_prog"
5307 # Check to see if the program is GNU ld. I'd rather use --version,
5308 # but apparently some variants of GNU ld only accept -v.
5309 # Break only if it was the GNU/non-GNU ld that we prefer.
5310 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5311 *GNU* | *'with BFD'*)
5312 test "$with_gnu_ld" != no && break
5315 test "$with_gnu_ld" != yes && break
5322 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5327 if test -n "$LD"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5329 $as_echo "$LD" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5334 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5336 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5337 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5340 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5341 case `$LD -v 2>&1 </dev/null` in
5342 *GNU* | *'with BFD'*)
5343 lt_cv_prog_gnu_ld=yes
5346 lt_cv_prog_gnu_ld=no
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5351 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5352 with_gnu_ld=$lt_cv_prog_gnu_ld
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5363 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5364 if test "${lt_cv_path_NM+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5367 if test -n "$NM"; then
5368 # Let the user override the test.
5371 lt_nm_to_check="${ac_tool_prefix}nm"
5372 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5373 lt_nm_to_check="$lt_nm_to_check nm"
5375 for lt_tmp_nm in $lt_nm_to_check; do
5376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5377 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5379 test -z "$ac_dir" && ac_dir=.
5380 tmp_nm="$ac_dir/$lt_tmp_nm"
5381 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5382 # Check to see if the nm accepts a BSD-compat flag.
5383 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5384 # nm: unknown option "B" ignored
5385 # Tru64's nm complains that /dev/null is an invalid object file
5386 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5387 */dev/null* | *'Invalid file or object type'*)
5388 lt_cv_path_NM="$tmp_nm -B"
5392 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5394 lt_cv_path_NM="$tmp_nm -p"
5398 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5399 continue # so that we can try to find one that supports BSD flags
5408 : ${lt_cv_path_NM=no}
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5412 $as_echo "$lt_cv_path_NM" >&6; }
5413 if test "$lt_cv_path_NM" != "no"; then
5416 # Didn't find any BSD compatible name lister, look for dumpbin.
5417 if test -n "$ac_tool_prefix"; then
5418 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5427 if test -n "$DUMPBIN"; then
5428 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 DUMPBIN=$ac_cv_prog_DUMPBIN
5448 if test -n "$DUMPBIN"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5450 $as_echo "$DUMPBIN" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5457 test -n "$DUMPBIN" && break
5460 if test -z "$DUMPBIN"; then
5461 ac_ct_DUMPBIN=$DUMPBIN
5462 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5464 # Extract the first word of "$ac_prog", so it can be a program name with args.
5465 set dummy $ac_prog; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5471 if test -n "$ac_ct_DUMPBIN"; then
5472 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5492 if test -n "$ac_ct_DUMPBIN"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5494 $as_echo "$ac_ct_DUMPBIN" >&6; }
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5501 test -n "$ac_ct_DUMPBIN" && break
5504 if test "x$ac_ct_DUMPBIN" = x; then
5507 case $cross_compiling:$ac_tool_warned in
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511 ac_tool_warned=yes ;;
5513 DUMPBIN=$ac_ct_DUMPBIN
5518 if test "$DUMPBIN" != ":"; then
5522 test -z "$NM" && NM=nm
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5530 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5531 if test "${lt_cv_nm_interface+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 lt_cv_nm_interface="BSD nm"
5535 echo "int some_variable = 0;" > conftest.$ac_ext
5536 (eval echo "\"\$as_me:5536: $ac_compile\"" >&5)
5537 (eval "$ac_compile" 2>conftest.err)
5538 cat conftest.err >&5
5539 (eval echo "\"\$as_me:5539: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5541 cat conftest.err >&5
5542 (eval echo "\"\$as_me:5542: output\"" >&5)
5543 cat conftest.out >&5
5544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5545 lt_cv_nm_interface="MS dumpbin"
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5550 $as_echo "$lt_cv_nm_interface" >&6; }
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5553 $as_echo_n "checking whether ln -s works... " >&6; }
5555 if test "$LN_S" = "ln -s"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5560 $as_echo "no, using $LN_S" >&6; }
5563 # find the maximum length of command line arguments
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5565 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5574 # On DJGPP, this test can blow up pretty badly due to problems in libc
5575 # (any single argument exceeding 2000 bytes causes a buffer overrun
5576 # during glob expansion). Even if it were fixed, the result of this
5577 # check would be larger than it should be.
5578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5582 # Under GNU Hurd, this test is not required because there is
5583 # no limit to the length of command line arguments.
5584 # Libtool will interpret -1 as no limit whatsoever
5585 lt_cv_sys_max_cmd_len=-1;
5588 cygwin* | mingw* | cegcc*)
5589 # On Win9x/ME, this test blows up -- it succeeds, but takes
5590 # about 5 minutes as the teststring grows exponentially.
5591 # Worse, since 9x/ME are not pre-emptively multitasking,
5592 # you end up with a "frozen" computer, even though with patience
5593 # the test eventually succeeds (with a max line length of 256k).
5594 # Instead, let's just punt: use the minimum linelength reported by
5595 # all of the supported platforms: 8192 (on NT/2K/XP).
5596 lt_cv_sys_max_cmd_len=8192;
5600 # On AmigaOS with pdksh, this test takes hours, literally.
5601 # So we just punt and use a minimum line length of 8192.
5602 lt_cv_sys_max_cmd_len=8192;
5605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5606 # This has been around since 386BSD, at least. Likely further.
5607 if test -x /sbin/sysctl; then
5608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5609 elif test -x /usr/sbin/sysctl; then
5610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5614 # And add a safety zone
5615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5621 lt_cv_sys_max_cmd_len=196608
5625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5627 # nice to cause kernel panics so lets avoid the loop below.
5628 # First set a reasonable default.
5629 lt_cv_sys_max_cmd_len=16384
5631 if test -x /sbin/sysconfig; then
5632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5638 lt_cv_sys_max_cmd_len=102400
5640 sysv5* | sco5v6* | sysv4.2uw2*)
5641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5642 if test -n "$kargmax"; then
5643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5645 lt_cv_sys_max_cmd_len=32768
5649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5650 if test -n "$lt_cv_sys_max_cmd_len"; then
5651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5654 # Make teststring a little bigger before we do anything with it.
5655 # a 1K string should be a reasonable start.
5656 for i in 1 2 3 4 5 6 7 8 ; do
5657 teststring=$teststring$teststring
5659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5660 # If test is not a shell built-in, we'll probably end up computing a
5661 # maximum length that is only half of the actual maximum length, but
5663 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5664 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5665 test $i != 17 # 1/2 MB should be enough
5668 teststring=$teststring$teststring
5670 # Only check the string length outside the loop.
5671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5673 # Add a significant safety factor because C++ compilers can tack on
5674 # massive amounts of additional arguments before passing them to the
5675 # linker. It appears as though 1/2 is a usable value.
5676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5683 if test -n $lt_cv_sys_max_cmd_len ; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5685 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5688 $as_echo "none" >&6; }
5690 max_cmd_len=$lt_cv_sys_max_cmd_len
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5702 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5703 # Try some XSI features
5706 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5708 && eval 'test $(( 1 + 1 )) -eq 2 \
5709 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5712 $as_echo "$xsi_shell" >&6; }
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5716 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5718 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5720 && lt_shell_append=yes
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5722 $as_echo "$lt_shell_append" >&6; }
5725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5735 # test EBCDIC or ASCII
5736 case `echo X|tr X '\101'` in
5737 A) # ASCII based system
5738 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5739 lt_SP2NL='tr \040 \012'
5740 lt_NL2SP='tr \015\012 \040\040'
5742 *) # EBCDIC based system
5743 lt_SP2NL='tr \100 \n'
5744 lt_NL2SP='tr \r\n \100\100'
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5757 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5758 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5761 lt_cv_ld_reload_flag='-r'
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5764 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5765 reload_flag=$lt_cv_ld_reload_flag
5766 case $reload_flag in
5768 *) reload_flag=" $reload_flag" ;;
5770 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5773 if test "$GCC" = yes; then
5774 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5789 if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5797 if test -n "$OBJDUMP"; then
5798 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 OBJDUMP=$ac_cv_prog_OBJDUMP
5818 if test -n "$OBJDUMP"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5820 $as_echo "$OBJDUMP" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5828 if test -z "$ac_cv_prog_OBJDUMP"; then
5829 ac_ct_OBJDUMP=$OBJDUMP
5830 # Extract the first word of "objdump", so it can be a program name with args.
5831 set dummy objdump; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5837 if test -n "$ac_ct_OBJDUMP"; then
5838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5858 if test -n "$ac_ct_OBJDUMP"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5860 $as_echo "$ac_ct_OBJDUMP" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5866 if test "x$ac_ct_OBJDUMP" = x; then
5869 case $cross_compiling:$ac_tool_warned in
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873 ac_tool_warned=yes ;;
5875 OBJDUMP=$ac_ct_OBJDUMP
5878 OBJDUMP="$ac_cv_prog_OBJDUMP"
5881 test -z "$OBJDUMP" && OBJDUMP=objdump
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5892 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5893 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5896 lt_cv_file_magic_cmd='$MAGIC_CMD'
5897 lt_cv_file_magic_test_file=
5898 lt_cv_deplibs_check_method='unknown'
5899 # Need to set the preceding variable on all platforms that support
5900 # interlibrary dependencies.
5901 # 'none' -- dependencies not supported.
5902 # `unknown' -- same as none, but documents that we really don't know.
5903 # 'pass_all' -- all dependencies passed with no checks.
5904 # 'test_compile' -- check by making test program.
5905 # 'file_magic [[regex]]' -- check by looking for files in library path
5906 # which responds to the $file_magic_cmd with a given extended regex.
5907 # If you have `file' or equivalent on your system and you're not sure
5908 # whether `pass_all' will *always* work, you probably want this one.
5912 lt_cv_deplibs_check_method=pass_all
5916 lt_cv_deplibs_check_method=pass_all
5920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5921 lt_cv_file_magic_cmd='/usr/bin/file -L'
5922 lt_cv_file_magic_test_file=/shlib/libc.so
5926 # func_win32_libid is a shell function defined in ltmain.sh
5927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5928 lt_cv_file_magic_cmd='func_win32_libid'
5932 # Base MSYS/MinGW do not provide the 'file' command needed by
5933 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5934 # unless we find 'file', for example because we are cross-compiling.
5935 if ( file / ) >/dev/null 2>&1; then
5936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5937 lt_cv_file_magic_cmd='func_win32_libid'
5939 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5940 lt_cv_file_magic_cmd='$OBJDUMP -f'
5945 # use the weaker test based on 'objdump'. See mingw*.
5946 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5947 lt_cv_file_magic_cmd='$OBJDUMP -f'
5950 darwin* | rhapsody*)
5951 lt_cv_deplibs_check_method=pass_all
5954 freebsd* | dragonfly*)
5955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5958 # Not sure whether the presence of OpenBSD here was a mistake.
5959 # Let's accept both of them until this is cleared up.
5960 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5961 lt_cv_file_magic_cmd=/usr/bin/file
5962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5966 lt_cv_deplibs_check_method=pass_all
5971 lt_cv_deplibs_check_method=pass_all
5974 hpux10.20* | hpux11*)
5975 lt_cv_file_magic_cmd=/usr/bin/file
5978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5979 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5982 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]'
5983 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5987 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5993 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5997 irix5* | irix6* | nonstopux*)
5999 *-32|*"-32 ") libmagic=32-bit;;
6000 *-n32|*"-n32 ") libmagic=N32;;
6001 *-64|*"-64 ") libmagic=64-bit;;
6002 *) libmagic=never-match;;
6004 lt_cv_deplibs_check_method=pass_all
6007 # This must be Linux ELF.
6008 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6009 lt_cv_deplibs_check_method=pass_all
6012 netbsd* | netbsdelf*-gnu)
6013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6022 lt_cv_file_magic_cmd=/usr/bin/file
6023 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6027 lt_cv_deplibs_check_method=pass_all
6031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6038 osf3* | osf4* | osf5*)
6039 lt_cv_deplibs_check_method=pass_all
6043 lt_cv_deplibs_check_method=pass_all
6047 lt_cv_deplibs_check_method=pass_all
6050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6051 lt_cv_deplibs_check_method=pass_all
6055 case $host_vendor in
6057 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]'
6058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6061 lt_cv_deplibs_check_method=pass_all
6064 lt_cv_file_magic_cmd='/bin/file'
6065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6068 lt_cv_file_magic_cmd='/bin/file'
6069 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6070 lt_cv_file_magic_test_file=/lib/libc.so
6073 lt_cv_deplibs_check_method=pass_all
6076 lt_cv_deplibs_check_method=pass_all
6082 lt_cv_deplibs_check_method=pass_all
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6088 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6089 file_magic_cmd=$lt_cv_file_magic_cmd
6090 deplibs_check_method=$lt_cv_deplibs_check_method
6091 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6104 if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6106 set dummy ${ac_tool_prefix}ar; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if test "${ac_cv_prog_AR+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6112 if test -n "$AR"; then
6113 ac_cv_prog_AR="$AR" # Let the user override the test.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_AR="${ac_tool_prefix}ar"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 if test -n "$AR"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6135 $as_echo "$AR" >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6143 if test -z "$ac_cv_prog_AR"; then
6145 # Extract the first word of "ar", so it can be a program name with args.
6146 set dummy ar; ac_word=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6152 if test -n "$ac_ct_AR"; then
6153 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_ac_ct_AR="ar"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6173 if test -n "$ac_ct_AR"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6175 $as_echo "$ac_ct_AR" >&6; }
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6181 if test "x$ac_ct_AR" = x; then
6184 case $cross_compiling:$ac_tool_warned in
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6196 test -z "$AR" && AR=ar
6197 test -z "$AR_FLAGS" && AR_FLAGS=cru
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}strip; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_STRIP+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$STRIP"; then
6218 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 STRIP=$ac_cv_prog_STRIP
6238 if test -n "$STRIP"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6240 $as_echo "$STRIP" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6248 if test -z "$ac_cv_prog_STRIP"; then
6250 # Extract the first word of "strip", so it can be a program name with args.
6251 set dummy strip; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 if test -n "$ac_ct_STRIP"; then
6258 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_STRIP="strip"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6278 if test -n "$ac_ct_STRIP"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6280 $as_echo "$ac_ct_STRIP" >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6286 if test "x$ac_ct_STRIP" = x; then
6289 case $cross_compiling:$ac_tool_warned in
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6298 STRIP="$ac_cv_prog_STRIP"
6301 test -z "$STRIP" && STRIP=:
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6316 if test -n "$RANLIB"; then
6317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 RANLIB=$ac_cv_prog_RANLIB
6337 if test -n "$RANLIB"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6339 $as_echo "$RANLIB" >&6; }
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6347 if test -z "$ac_cv_prog_RANLIB"; then
6348 ac_ct_RANLIB=$RANLIB
6349 # Extract the first word of "ranlib", so it can be a program name with args.
6350 set dummy ranlib; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6356 if test -n "$ac_ct_RANLIB"; then
6357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_RANLIB="ranlib"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6377 if test -n "$ac_ct_RANLIB"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6379 $as_echo "$ac_ct_RANLIB" >&6; }
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6385 if test "x$ac_ct_RANLIB" = x; then
6388 case $cross_compiling:$ac_tool_warned in
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6394 RANLIB=$ac_ct_RANLIB
6397 RANLIB="$ac_cv_prog_RANLIB"
6400 test -z "$RANLIB" && RANLIB=:
6407 # Determine commands to create old-style static archives.
6408 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6409 old_postinstall_cmds='chmod 644 $oldlib'
6410 old_postuninstall_cmds=
6412 if test -n "$RANLIB"; then
6415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6421 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6457 # If no C compiler was specified, use CC.
6460 # If no C compiler flags were specified, use CFLAGS.
6461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6463 # Allow CC to be a program name with arguments.
6467 # Check for command to grab the raw symbol name followed by C symbol from nm.
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6469 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6470 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6474 # These are sane defaults that work on at least a few old systems.
6475 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6477 # Character class describing NM global symbol codes.
6478 symcode='[BCDEGRST]'
6480 # Regexp to match symbols that can be accessed directly from C.
6481 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6483 # Define system-specific variables.
6488 cygwin* | mingw* | pw32* | cegcc*)
6489 symcode='[ABCDGISTW]'
6492 if test "$host_cpu" = ia64; then
6493 symcode='[ABCDEGRST]'
6497 symcode='[BCDEGRST]'
6500 symcode='[BCDEGQRST]'
6511 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6519 # If we're using GNU nm, then use its standard symbol codes.
6520 case `$NM -V 2>&1` in
6521 *GNU* | *'with BFD'*)
6522 symcode='[ABCDGIRSTW]' ;;
6525 # Transform an extracted symbol line into a proper C declaration.
6526 # Some systems (esp. on ia64) link data and code symbols differently,
6527 # so use this general approach.
6528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6530 # Transform an extracted symbol line into symbol name and symbol address
6531 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6532 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'"
6534 # Handle CRLF in mingw tool chain
6538 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6542 # Try without a prefix underscore, then with it.
6543 for ac_symprfx in "" "_"; do
6545 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6546 symxfrm="\\1 $ac_symprfx\\2 \\2"
6548 # Write the raw and C identifiers.
6549 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6550 # Fake it for dumpbin and say T for any non-static function
6551 # and D for any global variable.
6552 # Also find C++ and __fastcall symbols from MSVC++,
6553 # which start with @ or ?.
6554 lt_cv_sys_global_symbol_pipe="$AWK '"\
6555 " {last_section=section; section=\$ 3};"\
6556 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6557 " \$ 0!~/External *\|/{next};"\
6558 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6559 " {if(hide[section]) next};"\
6560 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6561 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6562 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6563 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6564 " ' prfx=^$ac_symprfx"
6566 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6569 # Check to see that the pipe works correctly.
6573 cat > conftest.$ac_ext <<_LT_EOF
6578 void nm_test_func(void);
6579 void nm_test_func(void){}
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587 (eval $ac_compile) 2>&5
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }; then
6591 # Now try to grab the symbols.
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; } && test -s "$nlist"; then
6598 # Try sorting and uniquifying the output.
6599 if sort "$nlist" | uniq > "$nlist"T; then
6600 mv -f "$nlist"T "$nlist"
6605 # Make sure that we snagged all the symbols we need.
6606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6608 cat <<_LT_EOF > conftest.$ac_ext
6614 # Now generate the symbol file.
6615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6617 cat <<_LT_EOF >> conftest.$ac_ext
6619 /* The mapping between symbol names and symbols. */
6624 lt__PROGRAM__LTX_preloaded_symbols[] =
6626 { "@PROGRAM@", (void *) 0 },
6628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6629 cat <<\_LT_EOF >> conftest.$ac_ext
6633 /* This works around a problem in FreeBSD linker */
6634 #ifdef FREEBSD_WORKAROUND
6635 static const void *lt_preloaded_setup() {
6636 return lt__PROGRAM__LTX_preloaded_symbols;
6644 # Now try linking the two files.
6645 mv conftest.$ac_objext conftstm.$ac_objext
6646 lt_save_LIBS="$LIBS"
6647 lt_save_CFLAGS="$CFLAGS"
6648 LIBS="conftstm.$ac_objext"
6649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6651 (eval $ac_link) 2>&5
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6657 LIBS="$lt_save_LIBS"
6658 CFLAGS="$lt_save_CFLAGS"
6660 echo "cannot find nm_test_func in $nlist" >&5
6663 echo "cannot find nm_test_var in $nlist" >&5
6666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6669 echo "$progname: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6672 rm -rf conftest* conftst*
6674 # Do not use the global_symbol_pipe unless it works.
6675 if test "$pipe_works" = yes; then
6678 lt_cv_sys_global_symbol_pipe=
6684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6685 lt_cv_sys_global_symbol_to_cdecl=
6687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6689 $as_echo "failed" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6692 $as_echo "ok" >&6; }
6717 # Check whether --enable-libtool-lock was given.
6718 if test "${enable_libtool_lock+set}" = set; then :
6719 enableval=$enable_libtool_lock;
6722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6724 # Some flags need to be propagated to the compiler or linker for good
6728 # Find out which ABI we are using.
6729 echo 'int i;' > conftest.$ac_ext
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731 (eval $ac_compile) 2>&5
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }; then
6735 case `/usr/bin/file conftest.$ac_objext` in
6747 # Find out which ABI we are using.
6748 echo '#line 6748 "configure"' > conftest.$ac_ext
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 if test "$lt_cv_prog_gnu_ld" = yes; then
6755 case `/usr/bin/file conftest.$ac_objext` in
6757 LD="${LD-ld} -melf32bsmip"
6760 LD="${LD-ld} -melf32bmipn32"
6763 LD="${LD-ld} -melf64bmip"
6767 case `/usr/bin/file conftest.$ac_objext` in
6783 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6784 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6785 # Find out which ABI we are using.
6786 echo 'int i;' > conftest.$ac_ext
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 case `/usr/bin/file conftest.o` in
6795 x86_64-*kfreebsd*-gnu)
6796 LD="${LD-ld} -m elf_i386_fbsd"
6799 LD="${LD-ld} -m elf_i386"
6801 ppc64-*linux*|powerpc64-*linux*)
6802 LD="${LD-ld} -m elf32ppclinux"
6805 LD="${LD-ld} -m elf_s390"
6808 LD="${LD-ld} -m elf32_sparc"
6814 x86_64-*kfreebsd*-gnu)
6815 LD="${LD-ld} -m elf_x86_64_fbsd"
6818 LD="${LD-ld} -m elf_x86_64"
6820 ppc*-*linux*|powerpc*-*linux*)
6821 LD="${LD-ld} -m elf64ppc"
6823 s390*-*linux*|s390*-*tpf*)
6824 LD="${LD-ld} -m elf64_s390"
6827 LD="${LD-ld} -m elf64_sparc"
6837 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6838 SAVE_CFLAGS="$CFLAGS"
6839 CFLAGS="$CFLAGS -belf"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6841 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6842 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6846 ac_cpp='$CPP $CPPFLAGS'
6847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6862 if ac_fn_c_try_link "$LINENO"; then :
6863 lt_cv_cc_needs_belf=yes
6865 lt_cv_cc_needs_belf=no
6867 rm -f core conftest.err conftest.$ac_objext \
6868 conftest$ac_exeext conftest.$ac_ext
6870 ac_cpp='$CPP $CPPFLAGS'
6871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6877 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6878 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6879 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6880 CFLAGS="$SAVE_CFLAGS"
6884 # Find out which ABI we are using.
6885 echo 'int i;' > conftest.$ac_ext
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887 (eval $ac_compile) 2>&5
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
6891 case `/usr/bin/file conftest.o` in
6893 case $lt_cv_prog_gnu_ld in
6894 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6896 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6908 need_locks="$enable_libtool_lock"
6912 rhapsody* | darwin*)
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6915 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6921 if test -n "$DSYMUTIL"; then
6922 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6942 if test -n "$DSYMUTIL"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6944 $as_echo "$DSYMUTIL" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6952 if test -z "$ac_cv_prog_DSYMUTIL"; then
6953 ac_ct_DSYMUTIL=$DSYMUTIL
6954 # Extract the first word of "dsymutil", so it can be a program name with args.
6955 set dummy dsymutil; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6961 if test -n "$ac_ct_DSYMUTIL"; then
6962 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6982 if test -n "$ac_ct_DSYMUTIL"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6984 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6990 if test "x$ac_ct_DSYMUTIL" = x; then
6993 case $cross_compiling:$ac_tool_warned in
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6999 DSYMUTIL=$ac_ct_DSYMUTIL
7002 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7013 if test -n "$NMEDIT"; then
7014 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 NMEDIT=$ac_cv_prog_NMEDIT
7034 if test -n "$NMEDIT"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7036 $as_echo "$NMEDIT" >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7044 if test -z "$ac_cv_prog_NMEDIT"; then
7045 ac_ct_NMEDIT=$NMEDIT
7046 # Extract the first word of "nmedit", so it can be a program name with args.
7047 set dummy nmedit; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7053 if test -n "$ac_ct_NMEDIT"; then
7054 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7074 if test -n "$ac_ct_NMEDIT"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7076 $as_echo "$ac_ct_NMEDIT" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7082 if test "x$ac_ct_NMEDIT" = x; then
7085 case $cross_compiling:$ac_tool_warned in
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7091 NMEDIT=$ac_ct_NMEDIT
7094 NMEDIT="$ac_cv_prog_NMEDIT"
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_LIPO+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7105 if test -n "$LIPO"; then
7106 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 LIPO=$ac_cv_prog_LIPO
7126 if test -n "$LIPO"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7128 $as_echo "$LIPO" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7136 if test -z "$ac_cv_prog_LIPO"; then
7138 # Extract the first word of "lipo", so it can be a program name with args.
7139 set dummy lipo; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7145 if test -n "$ac_ct_LIPO"; then
7146 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_ac_ct_LIPO="lipo"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7166 if test -n "$ac_ct_LIPO"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7168 $as_echo "$ac_ct_LIPO" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7174 if test "x$ac_ct_LIPO" = x; then
7177 case $cross_compiling:$ac_tool_warned in
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7186 LIPO="$ac_cv_prog_LIPO"
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}otool; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7195 $as_echo_n "(cached) " >&6
7197 if test -n "$OTOOL"; then
7198 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 OTOOL=$ac_cv_prog_OTOOL
7218 if test -n "$OTOOL"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7220 $as_echo "$OTOOL" >&6; }
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7228 if test -z "$ac_cv_prog_OTOOL"; then
7230 # Extract the first word of "otool", so it can be a program name with args.
7231 set dummy otool; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7237 if test -n "$ac_ct_OTOOL"; then
7238 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_OTOOL="otool"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7258 if test -n "$ac_ct_OTOOL"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7260 $as_echo "$ac_ct_OTOOL" >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7266 if test "x$ac_ct_OTOOL" = x; then
7269 case $cross_compiling:$ac_tool_warned in
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7273 ac_tool_warned=yes ;;
7278 OTOOL="$ac_cv_prog_OTOOL"
7281 if test -n "$ac_tool_prefix"; then
7282 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7283 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7289 if test -n "$OTOOL64"; then
7290 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 OTOOL64=$ac_cv_prog_OTOOL64
7310 if test -n "$OTOOL64"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7312 $as_echo "$OTOOL64" >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7320 if test -z "$ac_cv_prog_OTOOL64"; then
7321 ac_ct_OTOOL64=$OTOOL64
7322 # Extract the first word of "otool64", so it can be a program name with args.
7323 set dummy otool64; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7329 if test -n "$ac_ct_OTOOL64"; then
7330 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_prog_ac_ct_OTOOL64="otool64"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7350 if test -n "$ac_ct_OTOOL64"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7352 $as_echo "$ac_ct_OTOOL64" >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7358 if test "x$ac_ct_OTOOL64" = x; then
7361 case $cross_compiling:$ac_tool_warned in
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7365 ac_tool_warned=yes ;;
7367 OTOOL64=$ac_ct_OTOOL64
7370 OTOOL64="$ac_cv_prog_OTOOL64"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7400 $as_echo_n "checking for -single_module linker flag... " >&6; }
7401 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 lt_cv_apple_cc_single_mod=no
7405 if test -z "${LT_MULTI_MODULE}"; then
7406 # By default we will add the -single_module flag. You can override
7407 # by either setting the environment variable LT_MULTI_MODULE
7408 # non-empty at configure time, or by adding -multi_module to the
7410 rm -rf libconftest.dylib*
7411 echo "int foo(void){return 1;}" > conftest.c
7412 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7413 -dynamiclib -Wl,-single_module conftest.c" >&5
7414 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7415 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7417 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7418 lt_cv_apple_cc_single_mod=yes
7420 cat conftest.err >&5
7422 rm -rf libconftest.dylib*
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7427 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7429 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7430 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7433 lt_cv_ld_exported_symbols_list=no
7434 save_LDFLAGS=$LDFLAGS
7435 echo "_main" > conftest.sym
7436 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7448 if ac_fn_c_try_link "$LINENO"; then :
7449 lt_cv_ld_exported_symbols_list=yes
7451 lt_cv_ld_exported_symbols_list=no
7453 rm -f core conftest.err conftest.$ac_objext \
7454 conftest$ac_exeext conftest.$ac_ext
7455 LDFLAGS="$save_LDFLAGS"
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7459 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7461 rhapsody* | darwin1.[012])
7462 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7465 darwin*) # darwin 5.x on
7466 # if running on 10.5 or later, the deployment target defaults
7467 # to the OS version, if on x86, and 10.4, the deployment
7468 # target defaults to 10.4. Don't you love it?
7469 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7470 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7471 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7473 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7475 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7479 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7480 _lt_dar_single_mod='$single_module'
7482 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7483 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7485 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7487 if test "$DSYMUTIL" != ":"; then
7488 _lt_dsymutil='~$DSYMUTIL $lib || :'
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7497 $as_echo_n "checking for ANSI C header files... " >&6; }
7498 if test "${ac_cv_header_stdc+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7516 if ac_fn_c_try_compile "$LINENO"; then :
7517 ac_cv_header_stdc=yes
7519 ac_cv_header_stdc=no
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 if test $ac_cv_header_stdc = yes; then
7524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7531 $EGREP "memchr" >/dev/null 2>&1; then :
7534 ac_cv_header_stdc=no
7540 if test $ac_cv_header_stdc = yes; then
7541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7548 $EGREP "free" >/dev/null 2>&1; then :
7551 ac_cv_header_stdc=no
7557 if test $ac_cv_header_stdc = yes; then
7558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7559 if test "$cross_compiling" = yes; then :
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7566 #if ((' ' & 0x0FF) == 0x020)
7567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7570 # define ISLOWER(c) \
7571 (('a' <= (c) && (c) <= 'i') \
7572 || ('j' <= (c) && (c) <= 'r') \
7573 || ('s' <= (c) && (c) <= 'z'))
7574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7582 for (i = 0; i < 256; i++)
7583 if (XOR (islower (i), ISLOWER (i))
7584 || toupper (i) != TOUPPER (i))
7589 if ac_fn_c_try_run "$LINENO"; then :
7592 ac_cv_header_stdc=no
7594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7595 conftest.$ac_objext conftest.beam conftest.$ac_ext
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7601 $as_echo "$ac_cv_header_stdc" >&6; }
7602 if test $ac_cv_header_stdc = yes; then
7604 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7608 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7610 inttypes.h stdint.h unistd.h
7612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7613 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7615 eval as_val=\$$as_ac_Header
7616 if test "x$as_val" = x""yes; then :
7617 cat >>confdefs.h <<_ACEOF
7618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7626 for ac_header in dlfcn.h
7628 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7630 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7631 cat >>confdefs.h <<_ACEOF
7632 #define HAVE_DLFCN_H 1
7642 ac_cpp='$CXXCPP $CPPFLAGS'
7643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7646 if test -z "$CXX"; then
7647 if test -n "$CCC"; then
7650 if test -n "$ac_tool_prefix"; then
7651 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_CXX+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$CXX"; then
7661 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 if test -n "$CXX"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7683 $as_echo "$CXX" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7690 test -n "$CXX" && break
7693 if test -z "$CXX"; then
7695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7697 # Extract the first word of "$ac_prog", so it can be a program name with args.
7698 set dummy $ac_prog; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7704 if test -n "$ac_ct_CXX"; then
7705 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714 ac_cv_prog_ac_ct_CXX="$ac_prog"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7725 if test -n "$ac_ct_CXX"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7727 $as_echo "$ac_ct_CXX" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7734 test -n "$ac_ct_CXX" && break
7737 if test "x$ac_ct_CXX" = x; then
7740 case $cross_compiling:$ac_tool_warned in
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744 ac_tool_warned=yes ;;
7752 # Provide some information about the compiler.
7753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7756 for ac_option in --version -v -V -qversion; do
7757 { { ac_try="$ac_compiler $ac_option >&5"
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7763 $as_echo "$ac_try_echo"; } >&5
7764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7766 if test -s conftest.err; then
7768 ... rest of stderr output deleted ...
7769 10q' conftest.err >conftest.er1
7770 cat conftest.er1 >&5
7772 rm -f conftest.er1 conftest.err
7773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774 test $ac_status = 0; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7778 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7779 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7796 if ac_fn_cxx_try_compile "$LINENO"; then :
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7806 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7807 if test $ac_compiler_gnu = yes; then
7812 ac_test_CXXFLAGS=${CXXFLAGS+set}
7813 ac_save_CXXFLAGS=$CXXFLAGS
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7815 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7816 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7819 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7820 ac_cxx_werror_flag=yes
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7834 if ac_fn_cxx_try_compile "$LINENO"; then :
7835 ac_cv_prog_cxx_g=yes
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7849 if ac_fn_cxx_try_compile "$LINENO"; then :
7852 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7865 if ac_fn_cxx_try_compile "$LINENO"; then :
7866 ac_cv_prog_cxx_g=yes
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7876 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7877 if test "$ac_test_CXXFLAGS" = set; then
7878 CXXFLAGS=$ac_save_CXXFLAGS
7879 elif test $ac_cv_prog_cxx_g = yes; then
7880 if test "$GXX" = yes; then
7886 if test "$GXX" = yes; then
7893 ac_cpp='$CXXCPP $CPPFLAGS'
7894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7898 depcc="$CXX" am_compiler_list=
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7901 $as_echo_n "checking dependency style of $depcc... " >&6; }
7902 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7906 # We make a subdir and do the tests there. Otherwise we can end up
7907 # making bogus files that we don't know about and never remove. For
7908 # instance it was reported that on HP-UX the gcc test will end up
7909 # making a dummy file named `D' -- because `-MD' means `put the output
7912 # Copy depcomp to subdir because otherwise we won't find it if we're
7913 # using a relative directory.
7914 cp "$am_depcomp" conftest.dir
7916 # We will build objects and dependencies in a subdirectory because
7917 # it helps to detect inapplicable dependency modes. For instance
7918 # both Tru64's cc and ICC support -MD to output dependencies as a
7919 # side effect of compilation, but ICC will put the dependencies in
7920 # the current directory while Tru64 will put them in the object
7924 am_cv_CXX_dependencies_compiler_type=none
7925 if test "$am_compiler_list" = ""; then
7926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7929 case " $depcc " in #(
7930 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7933 for depmode in $am_compiler_list; do
7934 # Setup a source with many dependencies, because some compilers
7935 # like to wrap large dependency lists on column 80 (with \), and
7936 # we should not choose a depcomp mode which is confused by this.
7938 # We need to recreate these files for each test, as the compiler may
7939 # overwrite some of them when testing with obscure command lines.
7940 # This happens at least with the AIX C compiler.
7942 for i in 1 2 3 4 5 6; do
7943 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7944 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7945 # Solaris 8's {/usr,}/bin/sh.
7946 touch sub/conftst$i.h
7948 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7950 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7951 # mode. It turns out that the SunPro C++ compiler does not properly
7952 # handle `-M -o', and we need to detect this. Also, some Intel
7953 # versions had trouble with output in subdirs
7954 am__obj=sub/conftest.${OBJEXT-o}
7955 am__minus_obj="-o $am__obj"
7958 # This depmode causes a compiler race in universal mode.
7959 test "$am__universal" = false || continue
7962 # after this tag, mechanisms are not by side-effect, so they'll
7963 # only be used when explicitly requested
7964 if test "x$enable_dependency_tracking" = xyes; then
7970 msvisualcpp | msvcmsys)
7971 # This compiler won't grok `-c -o', but also, the minuso test has
7972 # not run yet. These depmodes are late enough in the game, and
7973 # so weak that their functioning should not be impacted.
7974 am__obj=conftest.${OBJEXT-o}
7979 if depmode=$depmode \
7980 source=sub/conftest.c object=$am__obj \
7981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7982 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7983 >/dev/null 2>conftest.err &&
7984 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7985 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7986 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7987 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7988 # icc doesn't choke on unknown options, it will just issue warnings
7989 # or remarks (even with -Werror). So we grep stderr for any message
7990 # that says an option was ignored or not supported.
7991 # When given -MP, icc 7.0 and 7.1 complain thusly:
7992 # icc: Command line warning: ignoring option '-M'; no argument required
7993 # The diagnosis changed in icc 8.0:
7994 # icc: Command line remark: option '-MP' not supported
7995 if (grep 'ignoring option' conftest.err ||
7996 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7997 am_cv_CXX_dependencies_compiler_type=$depmode
8006 am_cv_CXX_dependencies_compiler_type=none
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8011 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8012 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8015 test "x$enable_dependency_tracking" != xno \
8016 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8017 am__fastdepCXX_TRUE=
8018 am__fastdepCXX_FALSE='#'
8020 am__fastdepCXX_TRUE='#'
8021 am__fastdepCXX_FALSE=
8025 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8026 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8027 (test "X$CXX" != "Xg++"))) ; then
8029 ac_cpp='$CXXCPP $CPPFLAGS'
8030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8034 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8035 if test -z "$CXXCPP"; then
8036 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8039 # Double quotes because CXXCPP needs to be expanded
8040 for CXXCPP in "$CXX -E" "/lib/cpp"
8043 for ac_cxx_preproc_warn_flag in '' yes
8045 # Use a header file that comes with gcc, so configuring glibc
8046 # with a fresh cross-compiler works.
8047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8048 # <limits.h> exists even on freestanding compilers.
8049 # On the NeXT, cc -E runs the code through the compiler's parser,
8050 # not just through cpp. "Syntax error" is here to catch this case.
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8054 # include <limits.h>
8056 # include <assert.h>
8060 if ac_fn_cxx_try_cpp "$LINENO"; then :
8063 # Broken: fails on valid input.
8066 rm -f conftest.err conftest.$ac_ext
8068 # OK, works on sane cases. Now check whether nonexistent headers
8069 # can be detected and how.
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 #include <ac_nonexistent.h>
8074 if ac_fn_cxx_try_cpp "$LINENO"; then :
8075 # Broken: success on invalid input.
8078 # Passes both tests.
8082 rm -f conftest.err conftest.$ac_ext
8085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8086 rm -f conftest.err conftest.$ac_ext
8087 if $ac_preproc_ok; then :
8092 ac_cv_prog_CXXCPP=$CXXCPP
8095 CXXCPP=$ac_cv_prog_CXXCPP
8097 ac_cv_prog_CXXCPP=$CXXCPP
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8100 $as_echo "$CXXCPP" >&6; }
8102 for ac_cxx_preproc_warn_flag in '' yes
8104 # Use a header file that comes with gcc, so configuring glibc
8105 # with a fresh cross-compiler works.
8106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8107 # <limits.h> exists even on freestanding compilers.
8108 # On the NeXT, cc -E runs the code through the compiler's parser,
8109 # not just through cpp. "Syntax error" is here to catch this case.
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8113 # include <limits.h>
8115 # include <assert.h>
8119 if ac_fn_cxx_try_cpp "$LINENO"; then :
8122 # Broken: fails on valid input.
8125 rm -f conftest.err conftest.$ac_ext
8127 # OK, works on sane cases. Now check whether nonexistent headers
8128 # can be detected and how.
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 #include <ac_nonexistent.h>
8133 if ac_fn_cxx_try_cpp "$LINENO"; then :
8134 # Broken: success on invalid input.
8137 # Passes both tests.
8141 rm -f conftest.err conftest.$ac_ext
8144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8145 rm -f conftest.err conftest.$ac_ext
8146 if $ac_preproc_ok; then :
8149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8151 _lt_caught_CXX_error=yes; }
8155 ac_cpp='$CXXCPP $CPPFLAGS'
8156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8161 _lt_caught_CXX_error=yes
8178 # Check whether --enable-shared was given.
8179 if test "${enable_shared+set}" = set; then :
8180 enableval=$enable_shared; p=${PACKAGE-default}
8182 yes) enable_shared=yes ;;
8183 no) enable_shared=no ;;
8186 # Look at the argument we got. We use all the common list separators.
8187 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8188 for pkg in $enableval; do
8190 if test "X$pkg" = "X$p"; then
8209 # Check whether --enable-static was given.
8210 if test "${enable_static+set}" = set; then :
8211 enableval=$enable_static; p=${PACKAGE-default}
8213 yes) enable_static=yes ;;
8214 no) enable_static=no ;;
8217 # Look at the argument we got. We use all the common list separators.
8218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219 for pkg in $enableval; do
8221 if test "X$pkg" = "X$p"; then
8241 # Check whether --with-pic was given.
8242 if test "${with_pic+set}" = set; then :
8243 withval=$with_pic; pic_mode="$withval"
8249 test -z "$pic_mode" && pic_mode=default
8257 # Check whether --enable-fast-install was given.
8258 if test "${enable_fast_install+set}" = set; then :
8259 enableval=$enable_fast_install; p=${PACKAGE-default}
8261 yes) enable_fast_install=yes ;;
8262 no) enable_fast_install=no ;;
8264 enable_fast_install=no
8265 # Look at the argument we got. We use all the common list separators.
8266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267 for pkg in $enableval; do
8269 if test "X$pkg" = "X$p"; then
8270 enable_fast_install=yes
8277 enable_fast_install=yes
8290 # This can be used to rebuild libtool when needed
8291 LIBTOOL_DEPS="$ltmain"
8293 # Always use our own libtool.
8294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8320 test -z "$LN_S" && LN_S="ln -s"
8335 if test -n "${ZSH_VERSION+set}" ; then
8336 setopt NO_GLOB_SUBST
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8340 $as_echo_n "checking for objdir... " >&6; }
8341 if test "${lt_cv_objdir+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8344 rm -f .libs 2>/dev/null
8345 mkdir .libs 2>/dev/null
8346 if test -d .libs; then
8349 # MS-DOS does not allow filenames that begin with a dot.
8352 rmdir .libs 2>/dev/null
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8355 $as_echo "$lt_cv_objdir" >&6; }
8356 objdir=$lt_cv_objdir
8362 cat >>confdefs.h <<_ACEOF
8363 #define LT_OBJDIR "$lt_cv_objdir/"
8384 # AIX sometimes has problems with the GCC collect2 program. For some
8385 # reason, if we set the COLLECT_NAMES environment variable, the problems
8386 # vanish in a puff of smoke.
8387 if test "X${COLLECT_NAMES+set}" != Xset; then
8389 export COLLECT_NAMES
8394 # Sed substitution that helps us do robust quoting. It backslashifies
8395 # metacharacters that are still active within double-quoted strings.
8396 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8398 # Same as above, but do not quote variable references.
8399 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8401 # Sed substitution to delay expansion of an escaped shell variable in a
8402 # double_quote_subst'ed string.
8403 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8405 # Sed substitution to delay expansion of an escaped single quote.
8406 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8408 # Sed substitution to avoid accidental globbing in evaled expressions
8409 no_glob_subst='s/\*/\\\*/g'
8413 can_build_shared=yes
8415 # All known linkers require a `.a' archive for static linking (except MSVC,
8416 # which needs '.lib').
8419 with_gnu_ld="$lt_cv_prog_gnu_ld"
8422 old_CFLAGS="$CFLAGS"
8424 # Set sane defaults for various variables
8425 test -z "$CC" && CC=cc
8426 test -z "$LTCC" && LTCC=$CC
8427 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8428 test -z "$LD" && LD=ld
8429 test -z "$ac_objext" && ac_objext=o
8431 for cc_temp in $compiler""; do
8433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8439 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8442 # Only perform the check for file, if the check method requires it
8443 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8444 case $deplibs_check_method in
8446 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8448 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8457 lt_save_MAGIC_CMD="$MAGIC_CMD"
8458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8460 for ac_dir in $ac_dummy; do
8462 test -z "$ac_dir" && ac_dir=.
8463 if test -f $ac_dir/${ac_tool_prefix}file; then
8464 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8465 if test -n "$file_magic_test_file"; then
8466 case $deplibs_check_method in
8468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8471 $EGREP "$file_magic_regex" > /dev/null; then
8476 *** Warning: the command libtool uses to detect shared libraries,
8477 *** $file_magic_cmd, produces output that libtool cannot recognize.
8478 *** The result is that libtool may fail to recognize shared libraries
8479 *** as such. This will affect the creation of libtool libraries that
8480 *** depend on shared libraries, but programs linked with such libtool
8481 *** libraries will work regardless of this problem. Nevertheless, you
8482 *** may want to report the problem to your system manager and/or to
8483 *** bug-libtool@gnu.org
8493 MAGIC_CMD="$lt_save_MAGIC_CMD"
8498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8499 if test -n "$MAGIC_CMD"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8501 $as_echo "$MAGIC_CMD" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8511 if test -z "$lt_cv_path_MAGIC_CMD"; then
8512 if test -n "$ac_tool_prefix"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8514 $as_echo_n "checking for file... " >&6; }
8515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8523 lt_save_MAGIC_CMD="$MAGIC_CMD"
8524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8526 for ac_dir in $ac_dummy; do
8528 test -z "$ac_dir" && ac_dir=.
8529 if test -f $ac_dir/file; then
8530 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8531 if test -n "$file_magic_test_file"; then
8532 case $deplibs_check_method in
8534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8537 $EGREP "$file_magic_regex" > /dev/null; then
8542 *** Warning: the command libtool uses to detect shared libraries,
8543 *** $file_magic_cmd, produces output that libtool cannot recognize.
8544 *** The result is that libtool may fail to recognize shared libraries
8545 *** as such. This will affect the creation of libtool libraries that
8546 *** depend on shared libraries, but programs linked with such libtool
8547 *** libraries will work regardless of this problem. Nevertheless, you
8548 *** may want to report the problem to your system manager and/or to
8549 *** bug-libtool@gnu.org
8559 MAGIC_CMD="$lt_save_MAGIC_CMD"
8564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8565 if test -n "$MAGIC_CMD"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8567 $as_echo "$MAGIC_CMD" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8583 # Use C for the default configuration in the libtool script
8587 ac_cpp='$CPP $CPPFLAGS'
8588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8593 # Source file extension for C test sources.
8596 # Object file extension for compiled C test sources.
8600 # Code to be used in simple compile tests
8601 lt_simple_compile_test_code="int some_variable = 0;"
8603 # Code to be used in simple link tests
8604 lt_simple_link_test_code='int main(){return(0);}'
8612 # If no C compiler was specified, use CC.
8615 # If no C compiler flags were specified, use CFLAGS.
8616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8618 # Allow CC to be a program name with arguments.
8621 # Save the default compiler, since it gets overwritten when the other
8622 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8623 compiler_DEFAULT=$CC
8625 # save warnings/boilerplate of simple test code
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8628 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629 _lt_compiler_boilerplate=`cat conftest.err`
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8634 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8635 _lt_linker_boilerplate=`cat conftest.err`
8640 ## There is no encapsulation within the following macros, do not change
8641 ## the running order or otherwise move them around unless you know exactly
8642 ## what you are doing...
8643 if test -n "$compiler"; then
8645 lt_prog_compiler_no_builtin_flag=
8647 if test "$GCC" = yes; then
8648 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8651 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8652 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 lt_cv_prog_compiler_rtti_exceptions=no
8656 ac_outfile=conftest.$ac_objext
8657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8658 lt_compiler_flag="-fno-rtti -fno-exceptions"
8659 # Insert the option either (1) after the last *FLAGS variable, or
8660 # (2) before a word containing "conftest.", or (3) at the end.
8661 # Note that $ac_compile itself does not contain backslashes and begins
8662 # with a dollar sign (not a hyphen), so the echo should work correctly.
8663 # The option is referenced via a variable to avoid confusing sed.
8664 lt_compile=`echo "$ac_compile" | $SED \
8665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667 -e 's:$: $lt_compiler_flag:'`
8668 (eval echo "\"\$as_me:8668: $lt_compile\"" >&5)
8669 (eval "$lt_compile" 2>conftest.err)
8671 cat conftest.err >&5
8672 echo "$as_me:8672: \$? = $ac_status" >&5
8673 if (exit $ac_status) && test -s "$ac_outfile"; then
8674 # The compiler can only warn and ignore the option if not recognized
8675 # So say no if there are warnings other than the usual output.
8676 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8679 lt_cv_prog_compiler_rtti_exceptions=yes
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8686 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8701 lt_prog_compiler_wl=
8702 lt_prog_compiler_pic=
8703 lt_prog_compiler_static=
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8706 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8708 if test "$GCC" = yes; then
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_static='-static'
8714 # All AIX code is PIC.
8715 if test "$host_cpu" = ia64; then
8716 # AIX 5 now supports IA64 processor
8717 lt_prog_compiler_static='-Bstatic'
8724 # see comment about AmigaOS4 .so support
8725 lt_prog_compiler_pic='-fPIC'
8728 # FIXME: we need at least 68020 code to build shared libraries, but
8729 # adding the `-m68020' flag to GCC prevents building anything better,
8731 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8736 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8737 # PIC is the default for these OSes.
8740 mingw* | cygwin* | pw32* | os2* | cegcc*)
8741 # This hack is so that the source file can tell whether it is being
8742 # built for inclusion in a dll (and should export symbols for example).
8743 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8744 # (--disable-auto-import) libraries
8745 lt_prog_compiler_pic='-DDLL_EXPORT'
8748 darwin* | rhapsody*)
8749 # PIC is the default on this platform
8750 # Common symbols not allowed in MH_DYLIB files
8751 lt_prog_compiler_pic='-fno-common'
8755 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8756 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8757 # sets the default TLS model and affects inlining.
8763 lt_prog_compiler_pic='-fPIC'
8769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8770 # Instead, we relocate shared libraries at runtime.
8774 # Just because we use GCC doesn't mean we suddenly get shared libraries
8775 # on systems that don't support them.
8776 lt_prog_compiler_can_build_shared=no
8781 # QNX uses GNU C++, but need to define -shared option too, otherwise
8783 lt_prog_compiler_pic='-fPIC -shared'
8787 if test -d /usr/nec; then
8788 lt_prog_compiler_pic=-Kconform_pic
8793 lt_prog_compiler_pic='-fPIC'
8797 # PORTME Check for flag to pass linker flags through the system compiler.
8800 lt_prog_compiler_wl='-Wl,'
8801 if test "$host_cpu" = ia64; then
8802 # AIX 5 now supports IA64 processor
8803 lt_prog_compiler_static='-Bstatic'
8805 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8809 mingw* | cygwin* | pw32* | os2* | cegcc*)
8810 # This hack is so that the source file can tell whether it is being
8811 # built for inclusion in a dll (and should export symbols for example).
8812 lt_prog_compiler_pic='-DDLL_EXPORT'
8815 hpux9* | hpux10* | hpux11*)
8816 lt_prog_compiler_wl='-Wl,'
8817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8824 lt_prog_compiler_pic='+Z'
8827 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8828 lt_prog_compiler_static='${wl}-a ${wl}archive'
8831 irix5* | irix6* | nonstopux*)
8832 lt_prog_compiler_wl='-Wl,'
8833 # PIC (with -KPIC) is the default.
8834 lt_prog_compiler_static='-non_shared'
8837 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8838 case $cc_basename in
8839 # old Intel for x86_64 which still supported -KPIC.
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-KPIC'
8843 lt_prog_compiler_static='-static'
8845 # icc used to be incompatible with GCC.
8846 # ICC 10 doesn't accept -KPIC any more.
8848 lt_prog_compiler_wl='-Wl,'
8849 lt_prog_compiler_pic='-fPIC'
8850 lt_prog_compiler_static='-static'
8852 # Lahey Fortran 8.1.
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='--shared'
8856 lt_prog_compiler_static='--static'
8858 pgcc* | pgf77* | pgf90* | pgf95*)
8859 # Portland Group compilers (*not* the Pentium gcc compiler,
8860 # which looks to be a dead project)
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_pic='-fpic'
8863 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_wl='-Wl,'
8867 # All Alpha code is PIC.
8868 lt_prog_compiler_static='-non_shared'
8871 # IBM XL C 8.0/Fortran 10.1 on PPC
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='-qpic'
8874 lt_prog_compiler_static='-qstaticlink'
8877 case `$CC -V 2>&1 | sed 5q` in
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-Bstatic'
8882 lt_prog_compiler_wl='-Wl,'
8885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8886 lt_prog_compiler_pic='-KPIC'
8887 lt_prog_compiler_static='-Bstatic'
8888 lt_prog_compiler_wl=''
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8901 # QNX uses GNU C++, but need to define -shared option too, otherwise
8903 lt_prog_compiler_pic='-fPIC -shared'
8906 osf3* | osf4* | osf5*)
8907 lt_prog_compiler_wl='-Wl,'
8908 # All OSF/1 code is PIC.
8909 lt_prog_compiler_static='-non_shared'
8913 lt_prog_compiler_static='-non_shared'
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 case $cc_basename in
8921 lt_prog_compiler_wl='-Qoption ld ';;
8923 lt_prog_compiler_wl='-Wl,';;
8928 lt_prog_compiler_wl='-Qoption ld '
8929 lt_prog_compiler_pic='-PIC'
8930 lt_prog_compiler_static='-Bstatic'
8933 sysv4 | sysv4.2uw2* | sysv4.3*)
8934 lt_prog_compiler_wl='-Wl,'
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8940 if test -d /usr/nec ;then
8941 lt_prog_compiler_pic='-Kconform_pic'
8942 lt_prog_compiler_static='-Bstatic'
8946 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8947 lt_prog_compiler_wl='-Wl,'
8948 lt_prog_compiler_pic='-KPIC'
8949 lt_prog_compiler_static='-Bstatic'
8953 lt_prog_compiler_wl='-Wl,'
8954 lt_prog_compiler_can_build_shared=no
8958 lt_prog_compiler_pic='-pic'
8959 lt_prog_compiler_static='-Bstatic'
8963 lt_prog_compiler_can_build_shared=no
8969 # For platforms which do not support PIC, -DPIC is meaningless:
8971 lt_prog_compiler_pic=
8974 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8978 $as_echo "$lt_prog_compiler_pic" >&6; }
8986 # Check to make sure the PIC flag actually works.
8988 if test -n "$lt_prog_compiler_pic"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8990 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8991 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
8994 lt_cv_prog_compiler_pic_works=no
8995 ac_outfile=conftest.$ac_objext
8996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8997 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8998 # Insert the option either (1) after the last *FLAGS variable, or
8999 # (2) before a word containing "conftest.", or (3) at the end.
9000 # Note that $ac_compile itself does not contain backslashes and begins
9001 # with a dollar sign (not a hyphen), so the echo should work correctly.
9002 # The option is referenced via a variable to avoid confusing sed.
9003 lt_compile=`echo "$ac_compile" | $SED \
9004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9006 -e 's:$: $lt_compiler_flag:'`
9007 (eval echo "\"\$as_me:9007: $lt_compile\"" >&5)
9008 (eval "$lt_compile" 2>conftest.err)
9010 cat conftest.err >&5
9011 echo "$as_me:9011: \$? = $ac_status" >&5
9012 if (exit $ac_status) && test -s "$ac_outfile"; then
9013 # The compiler can only warn and ignore the option if not recognized
9014 # So say no if there are warnings other than the usual output.
9015 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9018 lt_cv_prog_compiler_pic_works=yes
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9025 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9027 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9028 case $lt_prog_compiler_pic in
9030 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9033 lt_prog_compiler_pic=
9034 lt_prog_compiler_can_build_shared=no
9045 # Check to make sure the static flag actually works.
9047 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9049 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9050 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9053 lt_cv_prog_compiler_static_works=no
9054 save_LDFLAGS="$LDFLAGS"
9055 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9056 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9058 # The linker can only warn and ignore the option if not recognized
9059 # So say no if there are warnings
9060 if test -s conftest.err; then
9061 # Append any errors to the config.log.
9062 cat conftest.err 1>&5
9063 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9065 if diff conftest.exp conftest.er2 >/dev/null; then
9066 lt_cv_prog_compiler_static_works=yes
9069 lt_cv_prog_compiler_static_works=yes
9073 LDFLAGS="$save_LDFLAGS"
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9077 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9079 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9082 lt_prog_compiler_static=
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9092 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9093 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9094 $as_echo_n "(cached) " >&6
9096 lt_cv_prog_compiler_c_o=no
9097 $RM -r conftest 2>/dev/null
9101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9103 lt_compiler_flag="-o out/conftest2.$ac_objext"
9104 # Insert the option either (1) after the last *FLAGS variable, or
9105 # (2) before a word containing "conftest.", or (3) at the end.
9106 # Note that $ac_compile itself does not contain backslashes and begins
9107 # with a dollar sign (not a hyphen), so the echo should work correctly.
9108 lt_compile=`echo "$ac_compile" | $SED \
9109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9111 -e 's:$: $lt_compiler_flag:'`
9112 (eval echo "\"\$as_me:9112: $lt_compile\"" >&5)
9113 (eval "$lt_compile" 2>out/conftest.err)
9115 cat out/conftest.err >&5
9116 echo "$as_me:9116: \$? = $ac_status" >&5
9117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9119 # The compiler can only warn and ignore the option if not recognized
9120 # So say no if there are warnings
9121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9124 lt_cv_prog_compiler_c_o=yes
9129 # SGI C++ compiler will create directory out/ii_files/ for
9130 # template instantiation
9131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9132 $RM out/* && rmdir out
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9139 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9147 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9148 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9151 lt_cv_prog_compiler_c_o=no
9152 $RM -r conftest 2>/dev/null
9156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9158 lt_compiler_flag="-o out/conftest2.$ac_objext"
9159 # Insert the option either (1) after the last *FLAGS variable, or
9160 # (2) before a word containing "conftest.", or (3) at the end.
9161 # Note that $ac_compile itself does not contain backslashes and begins
9162 # with a dollar sign (not a hyphen), so the echo should work correctly.
9163 lt_compile=`echo "$ac_compile" | $SED \
9164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9166 -e 's:$: $lt_compiler_flag:'`
9167 (eval echo "\"\$as_me:9167: $lt_compile\"" >&5)
9168 (eval "$lt_compile" 2>out/conftest.err)
9170 cat out/conftest.err >&5
9171 echo "$as_me:9171: \$? = $ac_status" >&5
9172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9174 # The compiler can only warn and ignore the option if not recognized
9175 # So say no if there are warnings
9176 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9179 lt_cv_prog_compiler_c_o=yes
9184 # SGI C++ compiler will create directory out/ii_files/ for
9185 # template instantiation
9186 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9187 $RM out/* && rmdir out
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9194 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9199 hard_links="nottested"
9200 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9201 # do not overwrite the value of need_locks provided by the user
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9203 $as_echo_n "checking if we can lock with hard links... " >&6; }
9206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9208 ln conftest.a conftest.b 2>&5 || hard_links=no
9209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9211 $as_echo "$hard_links" >&6; }
9212 if test "$hard_links" = no; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9214 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9230 allow_undefined_flag=
9231 always_export_symbols=no
9233 archive_expsym_cmds=
9234 compiler_needs_object=no
9235 enable_shared_with_static_runtimes=no
9236 export_dynamic_flag_spec=
9237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9238 hardcode_automatic=no
9240 hardcode_direct_absolute=no
9241 hardcode_libdir_flag_spec=
9242 hardcode_libdir_flag_spec_ld=
9243 hardcode_libdir_separator=
9245 hardcode_shlibpath_var=unsupported
9247 link_all_deplibs=unknown
9250 old_archive_from_new_cmds=
9251 old_archive_from_expsyms_cmds=
9252 thread_safe_flag_spec=
9253 whole_archive_flag_spec=
9254 # include_expsyms should be a list of space-separated symbols to be *always*
9255 # included in the symbol list
9257 # exclude_expsyms can be an extended regexp of symbols to exclude
9258 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9259 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9260 # as well as any symbol that contains `d'.
9261 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9262 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9263 # platforms (ab)use it in PIC code, but their linkers get confused if
9264 # the symbol is explicitly referenced. Since portable code cannot
9265 # rely on this symbol name, it's probably fine to never include it in
9266 # preloaded symbol tables.
9267 # Exclude shared library initialization/finalization symbols.
9268 extract_expsyms_cmds=
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9273 # When not using gcc, we currently assume that we are using
9274 # Microsoft Visual C++.
9275 if test "$GCC" != yes; then
9280 # we just hope/assume this is gcc and not c89 (= MSVC++)
9286 linux* | k*bsd*-gnu)
9292 if test "$with_gnu_ld" = yes; then
9293 # If archive_cmds runs LD, not CC, wlarc should be empty
9296 # Set some defaults for GNU ld with shared library support. These
9297 # are reset later if shared libraries are not supported. Putting them
9298 # here allows them to be overridden if necessary.
9299 runpath_var=LD_RUN_PATH
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 export_dynamic_flag_spec='${wl}--export-dynamic'
9302 # ancient GNU ld didn't support --whole-archive et. al.
9303 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9304 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9306 whole_archive_flag_spec=
9308 supports_anon_versioning=no
9309 case `$LD -v 2>&1` in
9310 *GNU\ gold*) supports_anon_versioning=yes ;;
9311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9314 *\ 2.11.*) ;; # other 2.11 versions
9315 *) supports_anon_versioning=yes ;;
9318 # See if GNU ld supports shared libraries.
9321 # On AIX/PPC, the GNU linker is very broken
9322 if test "$host_cpu" != ia64; then
9326 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9327 *** to be unable to reliably create shared libraries on AIX.
9328 *** Therefore, libtool is disabling shared libraries support. If you
9329 *** really care for shared libraries, you may want to modify your PATH
9330 *** so that a non-GNU linker is found, and then restart.
9339 # see comment about AmigaOS4 .so support
9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341 archive_expsym_cmds=''
9344 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)'
9345 hardcode_libdir_flag_spec='-L$libdir'
9346 hardcode_minus_L=yes
9352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9353 allow_undefined_flag=unsupported
9354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9355 # support --undefined. This deserves some investigation. FIXME
9356 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 cygwin* | mingw* | pw32* | cegcc*)
9363 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9364 # as there is no search path for DLLs.
9365 hardcode_libdir_flag_spec='-L$libdir'
9366 allow_undefined_flag=unsupported
9367 always_export_symbols=no
9368 enable_shared_with_static_runtimes=yes
9369 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9373 # If the export-symbols file already is a .def file (1st line
9374 # is EXPORTS), use it as is; otherwise, prepend...
9375 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9376 cp $export_symbols $output_objdir/$soname.def;
9378 echo EXPORTS > $output_objdir/$soname.def;
9379 cat $export_symbols >> $output_objdir/$soname.def;
9381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389 hardcode_shlibpath_var=no
9390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391 export_dynamic_flag_spec='${wl}-E'
9392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9393 # Instead, shared libraries are loaded at an image base (0x10000000 by
9394 # default) and relocated if they conflict, which is a slow very memory
9395 # consuming and fragmenting process. To avoid this, we pick a random,
9396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9399 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'
9402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9404 if test "$host_os" = linux-dietlibc; then
9405 case $cc_basename in
9406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9410 && test "$tmp_diet" = no
9413 tmp_sharedflag='-shared'
9414 case $cc_basename,$host_cpu in
9415 pgcc*) # Portland Group C compiler
9416 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'
9417 tmp_addflag=' $pic_flag'
9419 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9420 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'
9421 tmp_addflag=' $pic_flag -Mnomain' ;;
9422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9423 tmp_addflag=' -i_dynamic' ;;
9424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9425 tmp_addflag=' -i_dynamic -nofor_main' ;;
9426 ifc* | ifort*) # Intel Fortran compiler
9427 tmp_addflag=' -nofor_main' ;;
9428 lf95*) # Lahey Fortran 8.1
9429 whole_archive_flag_spec=
9430 tmp_sharedflag='--shared' ;;
9431 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9432 tmp_sharedflag='-qmkshrobj'
9435 case `$CC -V 2>&1 | sed 5q` in
9436 *Sun\ C*) # Sun C 5.9
9437 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'
9438 compiler_needs_object=yes
9439 tmp_sharedflag='-G' ;;
9440 *Sun\ F*) # Sun Fortran 8.3
9441 tmp_sharedflag='-G' ;;
9443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9445 if test "x$supports_anon_versioning" = xyes; then
9446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9448 echo "local: *; };" >> $output_objdir/$libname.ver~
9449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9452 case $cc_basename in
9454 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9455 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9456 hardcode_libdir_flag_spec=
9457 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9458 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9459 if test "x$supports_anon_versioning" = xyes; then
9460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9462 echo "local: *; };" >> $output_objdir/$libname.ver~
9463 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9472 netbsd* | netbsdelf*-gnu)
9473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9474 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9487 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9488 *** create shared libraries on Solaris systems. Therefore, libtool
9489 *** is disabling shared libraries support. We urge you to upgrade GNU
9490 *** binutils to release 2.9.1 or newer. Another option is to modify
9491 *** your PATH or compiler configuration so that the native linker is
9492 *** used, and then restart.
9495 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9504 case `$LD -v 2>&1` in
9505 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9509 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9510 *** reliably create shared libraries on SCO systems. Therefore, libtool
9511 *** is disabling shared libraries support. We urge you to upgrade GNU
9512 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9513 *** your PATH or compiler configuration so that the native linker is
9514 *** used, and then restart.
9519 # For security reasons, it is highly recommended that you always
9520 # use absolute paths for naming shared libraries, and exclude the
9521 # DT_RUNPATH tag from executables and libraries. But doing so
9522 # requires that you compile everything twice, which is a pain.
9523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9535 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9538 hardcode_shlibpath_var=no
9542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9551 if test "$ld_shlibs" = no; then
9553 hardcode_libdir_flag_spec=
9554 export_dynamic_flag_spec=
9555 whole_archive_flag_spec=
9558 # PORTME fill in a description of your system's linker (not GNU ld)
9561 allow_undefined_flag=unsupported
9562 always_export_symbols=yes
9563 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'
9564 # Note: this linker hardcodes the directories in LIBPATH if there
9565 # are no directories specified by -L.
9566 hardcode_minus_L=yes
9567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9568 # Neither direct hardcoding nor static linking is supported with a
9570 hardcode_direct=unsupported
9575 if test "$host_cpu" = ia64; then
9576 # On IA64, the linker does run time linking by default, so we don't
9577 # have to do anything special.
9578 aix_use_runtimelinking=no
9579 exp_sym_flag='-Bexport'
9582 # If we're using GNU nm, then we don't want the "-C" option.
9583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9585 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'
9587 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'
9589 aix_use_runtimelinking=no
9591 # Test if we are trying to use run time linking or normal
9592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9593 # need to do runtime linking.
9594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9595 for ld_flag in $LDFLAGS; do
9596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9597 aix_use_runtimelinking=yes
9604 exp_sym_flag='-bexport'
9605 no_entry_flag='-bnoentry'
9608 # When large executables or shared objects are built, AIX ld can
9609 # have problems creating the table of contents. If linking a library
9610 # or program results in "error TOC overflow" add -mminimal-toc to
9611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9616 hardcode_direct_absolute=yes
9617 hardcode_libdir_separator=':'
9618 link_all_deplibs=yes
9619 file_list_spec='${wl}-f,'
9621 if test "$GCC" = yes; then
9622 case $host_os in aix4.[012]|aix4.[012].*)
9623 # We only want to do this on AIX 4.2 and lower, the check
9624 # below for broken collect2 doesn't work under 4.3+
9625 collect2name=`${CC} -print-prog-name=collect2`
9626 if test -f "$collect2name" &&
9627 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9629 # We have reworked collect2
9632 # We have old collect2
9633 hardcode_direct=unsupported
9634 # It fails to find uninstalled libraries when the uninstalled
9635 # path is not listed in the libpath. Setting hardcode_minus_L
9636 # to unsupported forces relinking
9637 hardcode_minus_L=yes
9638 hardcode_libdir_flag_spec='-L$libdir'
9639 hardcode_libdir_separator=
9643 shared_flag='-shared'
9644 if test "$aix_use_runtimelinking" = yes; then
9645 shared_flag="$shared_flag "'${wl}-G'
9650 if test "$host_cpu" = ia64; then
9651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9652 # chokes on -Wl,-G. The following line is correct:
9655 if test "$aix_use_runtimelinking" = yes; then
9656 shared_flag='${wl}-G'
9658 shared_flag='${wl}-bM:SRE'
9663 export_dynamic_flag_spec='${wl}-bexpall'
9664 # It seems that -bexpall does not export symbols beginning with
9665 # underscore (_), so it is better to generate a list of symbols to export.
9666 always_export_symbols=yes
9667 if test "$aix_use_runtimelinking" = yes; then
9668 # Warning - without using the other runtime loading flags (-brtl),
9669 # -berok will link without error, but may produce a broken library.
9670 allow_undefined_flag='-berok'
9671 # Determine the default libpath from the value encoded in an
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9684 if ac_fn_c_try_link "$LINENO"; then :
9686 lt_aix_libpath_sed='
9687 /Import File Strings/,/^$/ {
9693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694 # Check for a 64-bit object if we didn't find anything.
9695 if test -z "$aix_libpath"; then
9696 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9703 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9704 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"
9706 if test "$host_cpu" = ia64; then
9707 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9708 allow_undefined_flag="-z nodefs"
9709 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"
9711 # Determine the default libpath from the value encoded in an
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9724 if ac_fn_c_try_link "$LINENO"; then :
9726 lt_aix_libpath_sed='
9727 /Import File Strings/,/^$/ {
9733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9734 # Check for a 64-bit object if we didn't find anything.
9735 if test -z "$aix_libpath"; then
9736 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9739 rm -f core conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9744 # Warning - without using the other run time loading flags,
9745 # -berok will link without error, but may produce a broken library.
9746 no_undefined_flag=' ${wl}-bernotok'
9747 allow_undefined_flag=' ${wl}-berok'
9748 # Exported symbols can be pulled into shared objects from archives
9749 whole_archive_flag_spec='$convenience'
9750 archive_cmds_need_lc=yes
9751 # This is similar to how AIX traditionally builds its shared libraries.
9752 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'
9760 # see comment about AmigaOS4 .so support
9761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762 archive_expsym_cmds=''
9765 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)'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_minus_L=yes
9773 export_dynamic_flag_spec=-rdynamic
9776 cygwin* | mingw* | pw32* | cegcc*)
9777 # When not using gcc, we currently assume that we are using
9778 # Microsoft Visual C++.
9779 # hardcode_libdir_flag_spec is actually meaningless, as there is
9780 # no search path for DLLs.
9781 hardcode_libdir_flag_spec=' '
9782 allow_undefined_flag=unsupported
9783 # Tell ltmain to make .lib files, not .a files.
9785 # Tell ltmain to make .dll files, not .so files.
9787 # FIXME: Setting linknames here is a bad hack.
9788 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9789 # The linker will automatically build a .lib file if we build a DLL.
9790 old_archive_from_new_cmds='true'
9791 # FIXME: Should let the user specify the lib program.
9792 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9793 fix_srcfile_path='`cygpath -w "$srcfile"`'
9794 enable_shared_with_static_runtimes=yes
9797 darwin* | rhapsody*)
9800 archive_cmds_need_lc=no
9802 hardcode_automatic=yes
9803 hardcode_shlibpath_var=unsupported
9804 whole_archive_flag_spec=''
9805 link_all_deplibs=yes
9806 allow_undefined_flag="$_lt_dar_allow_undefined"
9807 case $cc_basename in
9808 ifort*) _lt_dar_can_shared=yes ;;
9809 *) _lt_dar_can_shared=$GCC ;;
9811 if test "$_lt_dar_can_shared" = "yes"; then
9812 output_verbose_link_cmd=echo
9813 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9814 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9815 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}"
9816 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}"
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 hardcode_shlibpath_var=no
9834 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9835 # support. Future versions do this automatically, but an explicit c++rt0.o
9836 # does not break anything, and helps significantly (at the cost of a little
9839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9840 hardcode_libdir_flag_spec='-R$libdir'
9842 hardcode_shlibpath_var=no
9845 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_minus_L=yes
9850 hardcode_shlibpath_var=no
9853 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9854 freebsd* | dragonfly*)
9855 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9856 hardcode_libdir_flag_spec='-R$libdir'
9858 hardcode_shlibpath_var=no
9862 if test "$GCC" = yes; then
9863 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'
9865 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'
9867 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9868 hardcode_libdir_separator=:
9871 # hardcode_minus_L: Not really in the search PATH,
9872 # but as the default location of the library.
9873 hardcode_minus_L=yes
9874 export_dynamic_flag_spec='${wl}-E'
9878 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9879 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9883 if test "$with_gnu_ld" = no; then
9884 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9885 hardcode_libdir_flag_spec_ld='+b $libdir'
9886 hardcode_libdir_separator=:
9888 hardcode_direct_absolute=yes
9889 export_dynamic_flag_spec='${wl}-E'
9890 # hardcode_minus_L: Not really in the search PATH,
9891 # but as the default location of the library.
9892 hardcode_minus_L=yes
9897 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9900 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922 if test "$with_gnu_ld" = no; then
9923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9924 hardcode_libdir_separator=:
9929 hardcode_shlibpath_var=no
9933 hardcode_direct_absolute=yes
9934 export_dynamic_flag_spec='${wl}-E'
9936 # hardcode_minus_L: Not really in the search PATH,
9937 # but as the default location of the library.
9938 hardcode_minus_L=yes
9944 irix5* | irix6* | nonstopux*)
9945 if test "$GCC" = yes; then
9946 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'
9947 # Try to use the -exported_symbol ld option, if it does not
9948 # work, assume that -exports_file does not work either and
9949 # implicitly export all symbols.
9950 save_LDFLAGS="$LDFLAGS"
9951 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9956 if ac_fn_c_try_link "$LINENO"; then :
9957 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'
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 LDFLAGS="$save_LDFLAGS"
9964 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'
9965 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'
9967 archive_cmds_need_lc='no'
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 hardcode_libdir_separator=:
9971 link_all_deplibs=yes
9974 netbsd* | netbsdelf*-gnu)
9975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9978 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9980 hardcode_libdir_flag_spec='-R$libdir'
9982 hardcode_shlibpath_var=no
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9989 hardcode_libdir_separator=:
9990 hardcode_shlibpath_var=no
9997 if test -f /usr/libexec/ld.so; then
9999 hardcode_shlibpath_var=no
10000 hardcode_direct_absolute=yes
10001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005 export_dynamic_flag_spec='${wl}-E'
10008 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10010 hardcode_libdir_flag_spec='-R$libdir'
10013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_minus_L=yes
10026 allow_undefined_flag=unsupported
10027 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'
10028 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10032 if test "$GCC" = yes; then
10033 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10034 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'
10036 allow_undefined_flag=' -expect_unresolved \*'
10037 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'
10039 archive_cmds_need_lc='no'
10040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10041 hardcode_libdir_separator=:
10044 osf4* | osf5*) # as osf3* with the addition of -msym flag
10045 if test "$GCC" = yes; then
10046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10047 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'
10048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050 allow_undefined_flag=' -expect_unresolved \*'
10051 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'
10052 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~
10053 $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'
10055 # Both c and cxx compiler support -rpath directly
10056 hardcode_libdir_flag_spec='-rpath $libdir'
10058 archive_cmds_need_lc='no'
10059 hardcode_libdir_separator=:
10063 no_undefined_flag=' -z defs'
10064 if test "$GCC" = yes; then
10066 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10070 case `$CC -V 2>&1` in
10073 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10075 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10079 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10081 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 hardcode_shlibpath_var=no
10088 solaris2.[0-5] | solaris2.[0-5].*) ;;
10090 # The compiler driver will combine and reorder linker options,
10091 # but understands `-z linker_flag'. GCC discards it without `$wl',
10092 # but is careful enough not to reorder.
10093 # Supported since Solaris 2.6 (maybe 2.5.1?)
10094 if test "$GCC" = yes; then
10095 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10097 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10101 link_all_deplibs=yes
10105 if test "x$host_vendor" = xsequent; then
10106 # Use $CC to link under sequent, because it throws in some extra .o
10107 # files that make .init and .fini sections work.
10108 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_direct=yes
10114 hardcode_minus_L=yes
10115 hardcode_shlibpath_var=no
10119 case $host_vendor in
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_direct=yes # is this really true???
10125 ## LD is ld it makes a PLAMLIB
10126 ## CC just makes a GrossModule.
10127 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10128 reload_cmds='$CC -r -o $output$reload_objs'
10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10136 runpath_var='LD_RUN_PATH'
10137 hardcode_shlibpath_var=no
10141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142 hardcode_shlibpath_var=no
10143 export_dynamic_flag_spec='-Bexport'
10147 if test -d /usr/nec; then
10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 hardcode_shlibpath_var=no
10150 runpath_var=LD_RUN_PATH
10151 hardcode_runpath_var=yes
10156 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10157 no_undefined_flag='${wl}-z,text'
10158 archive_cmds_need_lc=no
10159 hardcode_shlibpath_var=no
10160 runpath_var='LD_RUN_PATH'
10162 if test "$GCC" = yes; then
10163 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171 sysv5* | sco3.2v5* | sco5v6*)
10172 # Note: We can NOT use -z defs as we might desire, because we do not
10173 # link with -lc, and that would cause any symbols used from libc to
10174 # always be unresolved, which means just about no library would
10175 # ever link correctly. If we're not using GNU ld we use -z text
10176 # though, which does catch some bad symbols but isn't as heavy-handed
10178 no_undefined_flag='${wl}-z,text'
10179 allow_undefined_flag='${wl}-z,nodefs'
10180 archive_cmds_need_lc=no
10181 hardcode_shlibpath_var=no
10182 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10183 hardcode_libdir_separator=':'
10184 link_all_deplibs=yes
10185 export_dynamic_flag_spec='${wl}-Bexport'
10186 runpath_var='LD_RUN_PATH'
10188 if test "$GCC" = yes; then
10189 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_libdir_flag_spec='-L$libdir'
10200 hardcode_shlibpath_var=no
10208 if test x$host_vendor = xsni; then
10210 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10211 export_dynamic_flag_spec='${wl}-Blargedynsym'
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10218 $as_echo "$ld_shlibs" >&6; }
10219 test "$ld_shlibs" = no && can_build_shared=no
10221 with_gnu_ld=$with_gnu_ld
10238 # Do we need to explicitly link libc?
10240 case "x$archive_cmds_need_lc" in
10242 # Assume -lc should be added
10243 archive_cmds_need_lc=yes
10245 if test "$enable_shared" = yes && test "$GCC" = yes; then
10246 case $archive_cmds in
10248 # FIXME: we may have to deal with multi-command sequences.
10251 # Test whether the compiler implicitly links with -lc since on some
10252 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10253 # to ld, don't add -lc before -lgcc.
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10255 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10260 (eval $ac_compile) 2>&5
10262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10263 test $ac_status = 0; } 2>conftest.err; then
10266 libobjs=conftest.$ac_objext
10268 wl=$lt_prog_compiler_wl
10269 pic_flag=$lt_prog_compiler_pic
10275 lt_save_allow_undefined_flag=$allow_undefined_flag
10276 allow_undefined_flag=
10277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10278 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10281 test $ac_status = 0; }
10283 archive_cmds_need_lc=no
10285 archive_cmds_need_lc=yes
10287 allow_undefined_flag=$lt_save_allow_undefined_flag
10289 cat conftest.err 1>&5
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10293 $as_echo "$archive_cmds_need_lc" >&6; }
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10457 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10459 if test "$GCC" = yes; then
10461 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10462 *) lt_awk_arg="/^libraries:/" ;;
10464 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10465 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10466 # if the path contains ";" then we assume it to be the separator
10467 # otherwise default to the standard path separator (i.e. ":") - it is
10468 # assumed that no part of a normal pathname contains ";" but that should
10469 # okay in the real world where ";" in dirpaths is itself problematic.
10470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10474 # Ok, now we have the path, separated by spaces, we can step through it
10475 # and add multilib dir if necessary.
10476 lt_tmp_lt_search_path_spec=
10477 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10478 for lt_sys_path in $lt_search_path_spec; do
10479 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10480 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10482 test -d "$lt_sys_path" && \
10483 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10486 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10487 BEGIN {RS=" "; FS="/|\n";} {
10490 for (lt_i = NF; lt_i > 0; lt_i--) {
10491 if ($lt_i != "" && $lt_i != ".") {
10492 if ($lt_i == "..") {
10495 if (lt_count == 0) {
10496 lt_foo="/" $lt_i lt_foo;
10503 if (lt_foo != "") { lt_freq[lt_foo]++; }
10504 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10506 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10510 library_names_spec=
10511 libname_spec='lib$name'
10515 postuninstall_cmds=
10519 shlibpath_overrides_runpath=unknown
10521 dynamic_linker="$host_os ld.so"
10522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10523 need_lib_prefix=unknown
10524 hardcode_into_libs=no
10526 # when you set need_version to no, make sure it does not cause -set_version
10527 # flags to be left without arguments
10528 need_version=unknown
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10534 shlibpath_var=LIBPATH
10536 # AIX 3 has no versioning support, so we append a major version to the name.
10537 soname_spec='${libname}${release}${shared_ext}$major'
10544 hardcode_into_libs=yes
10545 if test "$host_cpu" = ia64; then
10546 # AIX 5 supports IA64
10547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10548 shlibpath_var=LD_LIBRARY_PATH
10550 # With GCC up to 2.95.x, collect2 would create an import file
10551 # for dependence libraries. The import file would start with
10552 # the line `#! .'. This would cause the generated library to
10553 # depend on `.', always an invalid library. This was fixed in
10554 # development snapshots of GCC prior to 3.0.
10556 aix4 | aix4.[01] | aix4.[01].*)
10557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10559 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10562 can_build_shared=no
10566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10567 # soname into executable. Probably we can add versioning support to
10568 # collect2, so additional links can be useful in future.
10569 if test "$aix_use_runtimelinking" = yes; then
10570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10571 # instead of lib<name>.a to let people know that these are not
10572 # typical AIX shared libraries.
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 # We preserve .a as extension for shared libraries through AIX4.2
10576 # and later when we are not doing run time linking.
10577 library_names_spec='${libname}${release}.a $libname.a'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10580 shlibpath_var=LIBPATH
10587 # Since July 2007 AmigaOS4 officially supports .so libraries.
10588 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 library_names_spec='$libname.ixlibrary $libname.a'
10593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10594 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'
10600 library_names_spec='${libname}${shared_ext}'
10601 dynamic_linker="$host_os ld.so"
10602 shlibpath_var=LIBRARY_PATH
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10614 # the default ld.so.conf also contains /usr/contrib/lib and
10615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10616 # libtool to hard-code these into programs
10619 cygwin* | mingw* | pw32* | cegcc*)
10620 version_type=windows
10625 case $GCC,$host_os in
10626 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10627 library_names_spec='$libname.dll.a'
10628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10629 postinstall_cmds='base_file=`basename \${file}`~
10630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10631 dldir=$destdir/`dirname \$dlpath`~
10632 test -d \$dldir || mkdir -p \$dldir~
10633 $install_prog $dir/$dlname \$dldir/$dlname~
10634 chmod a+x \$dldir/$dlname~
10635 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10636 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10639 dlpath=$dir/\$dldll~
10641 shlibpath_overrides_runpath=yes
10645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10650 # MinGW DLLs use traditional 'lib' prefix
10651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10652 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10653 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10654 # It is most probably a Windows format PATH printed by
10655 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10656 # path with ; separators, and with drive letters. We can handle the
10657 # drive letters (cygwin fileutils understands them), so leave them,
10658 # especially as we might pass files found there to a mingw objdump,
10659 # which wouldn't understand a cygwinified path. Ahh.
10660 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10666 # pw32 DLLs use 'pw' prefix rather than 'lib'
10667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10676 dynamic_linker='Win32 ld.exe'
10677 # FIXME: first we should search . and the directory the executable is in
10681 darwin* | rhapsody*)
10682 dynamic_linker="$host_os dyld"
10683 version_type=darwin
10686 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10687 soname_spec='${libname}${release}${major}$shared_ext'
10688 shlibpath_overrides_runpath=yes
10689 shlibpath_var=DYLD_LIBRARY_PATH
10690 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10692 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10693 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10709 freebsd* | dragonfly*)
10710 # DragonFly does not have aout. When/if they implement a new
10711 # versioning mechanism, adjust this.
10712 if test -x /usr/bin/objformat; then
10713 objformat=`/usr/bin/objformat`
10716 freebsd[123]*) objformat=aout ;;
10717 *) objformat=elf ;;
10720 version_type=freebsd-$objformat
10721 case $version_type in
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10732 shlibpath_var=LD_LIBRARY_PATH
10735 shlibpath_overrides_runpath=yes
10737 freebsd3.[01]* | freebsdelf3.[01]*)
10738 shlibpath_overrides_runpath=yes
10739 hardcode_into_libs=yes
10741 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10742 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10743 shlibpath_overrides_runpath=no
10744 hardcode_into_libs=yes
10746 *) # from 4.6 on, and DragonFly
10747 shlibpath_overrides_runpath=yes
10748 hardcode_into_libs=yes
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 hardcode_into_libs=yes
10763 hpux9* | hpux10* | hpux11*)
10764 # Give a soname corresponding to the major version so that dld.sl refuses to
10765 # link against other versions.
10772 hardcode_into_libs=yes
10773 dynamic_linker="$host_os dld.so"
10774 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 if test "X$HPUX_IA64_MODE" = X32; then
10779 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10781 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10787 hardcode_into_libs=yes
10788 dynamic_linker="$host_os dld.sl"
10789 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10798 dynamic_linker="$host_os dld.sl"
10799 shlibpath_var=SHLIB_PATH
10800 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10805 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10806 postinstall_cmds='chmod 555 $lib'
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 shlibpath_overrides_runpath=no
10818 hardcode_into_libs=yes
10821 irix5* | irix6* | nonstopux*)
10823 nonstopux*) version_type=nonstopux ;;
10825 if test "$lt_cv_prog_gnu_ld" = yes; then
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10836 irix5* | nonstopux*)
10837 libsuff= shlibsuff=
10840 case $LD in # libtool.m4 will add one of these switches to LD
10841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10842 libsuff= shlibsuff= libmagic=32-bit;;
10843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10844 libsuff=32 shlibsuff=N32 libmagic=N32;;
10845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10847 *) libsuff= shlibsuff= libmagic=never-match;;
10851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10852 shlibpath_overrides_runpath=no
10853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10855 hardcode_into_libs=yes
10858 # No shared lib support for Linux oldld, aout, or coff.
10859 linux*oldld* | linux*aout* | linux*coff*)
10863 # This must be Linux ELF.
10864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=no
10873 # Some binutils ld are patched to set DT_RUNPATH
10874 save_LDFLAGS=$LDFLAGS
10875 save_libdir=$libdir
10876 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10877 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10891 shlibpath_overrides_runpath=yes
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LDFLAGS=$save_LDFLAGS
10897 libdir=$save_libdir
10899 # This implies no fast_install, which is unacceptable.
10900 # Some rework will be needed to allow for fast_install
10901 # before this can be enabled.
10902 hardcode_into_libs=yes
10904 # Append ld.so.conf contents to the search path
10905 if test -f /etc/ld.so.conf; then
10906 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' ' '`
10907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10910 # We used to test for /lib/ld.so.1 and disable shared libraries on
10911 # powerpc, because MkLinux only supported shared libraries with the
10912 # GNU dynamic linker. Since this was broken with cross compilers,
10913 # most powerpc-linux boxes support dynamic linking these days and
10914 # people can always --disable-shared, the test was removed, and we
10915 # assume the GNU/Linux dynamic linker is in use.
10916 dynamic_linker='GNU/Linux ld.so'
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927 hardcode_into_libs=yes
10928 dynamic_linker='NetBSD ld.elf_so'
10935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10938 dynamic_linker='NetBSD (a.out) ld.so'
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 dynamic_linker='NetBSD ld.elf_so'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=yes
10946 hardcode_into_libs=yes
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=yes
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=no
10964 hardcode_into_libs=yes
10965 dynamic_linker='ldqnx.so'
10970 sys_lib_dlsearch_path_spec="/usr/lib"
10972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10975 *) need_version=no ;;
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10982 openbsd2.[89] | openbsd2.[89].*)
10983 shlibpath_overrides_runpath=no
10986 shlibpath_overrides_runpath=yes
10990 shlibpath_overrides_runpath=yes
10995 libname_spec='$name'
10998 library_names_spec='$libname${shared_ext} $libname.a'
10999 dynamic_linker='OS/2 ld.exe'
11000 shlibpath_var=LIBPATH
11003 osf3* | osf4* | osf5*)
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11027 # ldd complains unless libraries are executable
11028 postinstall_cmds='chmod +x $lib'
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037 if test "$with_gnu_ld" = yes; then
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 case $host_vendor in
11050 shlibpath_overrides_runpath=no
11052 runpath_var=LD_RUN_PATH
11060 shlibpath_overrides_runpath=no
11061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11067 if test -d /usr/nec ;then
11069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11070 soname_spec='$libname${shared_ext}.$major'
11071 shlibpath_var=LD_LIBRARY_PATH
11075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11076 version_type=freebsd-elf
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath=yes
11083 hardcode_into_libs=yes
11084 if test "$with_gnu_ld" = yes; then
11085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11094 sys_lib_dlsearch_path_spec='/usr/lib'
11098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=no
11105 hardcode_into_libs=yes
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11120 $as_echo "$dynamic_linker" >&6; }
11121 test "$dynamic_linker" = no && can_build_shared=no
11123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11124 if test "$GCC" = yes; then
11125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11224 if test -n "$hardcode_libdir_flag_spec" ||
11225 test -n "$runpath_var" ||
11226 test "X$hardcode_automatic" = "Xyes" ; then
11228 # We can hardcode non-existent directories.
11229 if test "$hardcode_direct" != no &&
11230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11231 # have to relink, otherwise we might link with an installed library
11232 # when we should be linking with a yet-to-be-installed one
11233 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11234 test "$hardcode_minus_L" != no; then
11235 # Linking always hardcodes the temporary library directory.
11236 hardcode_action=relink
11238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11239 hardcode_action=immediate
11242 # We cannot hardcode anything, or else we can only hardcode existing
11244 hardcode_action=unsupported
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11247 $as_echo "$hardcode_action" >&6; }
11249 if test "$hardcode_action" = relink ||
11250 test "$inherit_rpath" = yes; then
11251 # Fast installation is not supported
11252 enable_fast_install=no
11253 elif test "$shlibpath_overrides_runpath" = yes ||
11254 test "$enable_shared" = no; then
11255 # Fast installation is not necessary
11256 enable_fast_install=needless
11264 if test "x$enable_dlopen" != xyes; then
11265 enable_dlopen=unknown
11266 enable_dlopen_self=unknown
11267 enable_dlopen_self_static=unknown
11274 lt_cv_dlopen="load_add_on"
11276 lt_cv_dlopen_self=yes
11279 mingw* | pw32* | cegcc*)
11280 lt_cv_dlopen="LoadLibrary"
11285 lt_cv_dlopen="dlopen"
11290 # if libdl is installed we need to link against it
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11292 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11293 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11296 ac_check_lib_save_LIBS=$LIBS
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 ac_cv_lib_dl_dlopen=yes
11319 ac_cv_lib_dl_dlopen=no
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11323 LIBS=$ac_check_lib_save_LIBS
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11326 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11327 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11331 lt_cv_dlopen="dyld"
11333 lt_cv_dlopen_self=yes
11340 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11341 if test "x$ac_cv_func_shl_load" = x""yes; then :
11342 lt_cv_dlopen="shl_load"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11345 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11346 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11349 ac_check_lib_save_LIBS=$LIBS
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11364 return shl_load ();
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 ac_cv_lib_dld_shl_load=yes
11372 ac_cv_lib_dld_shl_load=no
11374 rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11379 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11380 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11381 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11383 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11384 if test "x$ac_cv_func_dlopen" = x""yes; then :
11385 lt_cv_dlopen="dlopen"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
11392 ac_check_lib_save_LIBS=$LIBS
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_lib_dl_dlopen=yes
11415 ac_cv_lib_dl_dlopen=no
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_lib_save_LIBS
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11423 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11427 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11428 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11431 ac_check_lib_save_LIBS=$LIBS
11432 LIBS="-lsvld $LIBS"
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11451 if ac_fn_c_try_link "$LINENO"; then :
11452 ac_cv_lib_svld_dlopen=yes
11454 ac_cv_lib_svld_dlopen=no
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_lib_save_LIBS
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11461 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11462 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11466 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11467 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11470 ac_check_lib_save_LIBS=$LIBS
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 /* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11485 return dld_link ();
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_dld_dld_link=yes
11493 ac_cv_lib_dld_dld_link=no
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11500 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11501 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11502 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11523 if test "x$lt_cv_dlopen" != xno; then
11529 case $lt_cv_dlopen in
11531 save_CPPFLAGS="$CPPFLAGS"
11532 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11534 save_LDFLAGS="$LDFLAGS"
11535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11538 LIBS="$lt_cv_dlopen_libs $LIBS"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11541 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11542 if test "${lt_cv_dlopen_self+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11545 if test "$cross_compiling" = yes; then :
11546 lt_cv_dlopen_self=cross
11548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11549 lt_status=$lt_dlunknown
11550 cat > conftest.$ac_ext <<_LT_EOF
11551 #line 11551 "configure"
11552 #include "confdefs.h"
11561 # define LT_DLGLOBAL RTLD_GLOBAL
11564 # define LT_DLGLOBAL DL_GLOBAL
11566 # define LT_DLGLOBAL 0
11570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11571 find out it does not work in some platform. */
11572 #ifndef LT_DLLAZY_OR_NOW
11574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11577 # define LT_DLLAZY_OR_NOW DL_LAZY
11580 # define LT_DLLAZY_OR_NOW RTLD_NOW
11583 # define LT_DLLAZY_OR_NOW DL_NOW
11585 # define LT_DLLAZY_OR_NOW 0
11592 void fnord() { int i=42;}
11595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11596 int status = $lt_dlunknown;
11600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11602 /* dlclose (self); */
11610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11611 (eval $ac_link) 2>&5
11613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11615 (./conftest; exit; ) >&5 2>/dev/null
11617 case x$lt_status in
11618 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11619 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11620 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11623 # compilation failed
11624 lt_cv_dlopen_self=no
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11632 $as_echo "$lt_cv_dlopen_self" >&6; }
11634 if test "x$lt_cv_dlopen_self" = xyes; then
11635 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11637 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11638 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11641 if test "$cross_compiling" = yes; then :
11642 lt_cv_dlopen_self_static=cross
11644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11645 lt_status=$lt_dlunknown
11646 cat > conftest.$ac_ext <<_LT_EOF
11647 #line 11647 "configure"
11648 #include "confdefs.h"
11657 # define LT_DLGLOBAL RTLD_GLOBAL
11660 # define LT_DLGLOBAL DL_GLOBAL
11662 # define LT_DLGLOBAL 0
11666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11667 find out it does not work in some platform. */
11668 #ifndef LT_DLLAZY_OR_NOW
11670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11673 # define LT_DLLAZY_OR_NOW DL_LAZY
11676 # define LT_DLLAZY_OR_NOW RTLD_NOW
11679 # define LT_DLLAZY_OR_NOW DL_NOW
11681 # define LT_DLLAZY_OR_NOW 0
11688 void fnord() { int i=42;}
11691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11692 int status = $lt_dlunknown;
11696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11697 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11698 /* dlclose (self); */
11706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11707 (eval $ac_link) 2>&5
11709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11711 (./conftest; exit; ) >&5 2>/dev/null
11713 case x$lt_status in
11714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11716 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11719 # compilation failed
11720 lt_cv_dlopen_self_static=no
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11728 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11731 CPPFLAGS="$save_CPPFLAGS"
11732 LDFLAGS="$save_LDFLAGS"
11737 case $lt_cv_dlopen_self in
11738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11739 *) enable_dlopen_self=unknown ;;
11742 case $lt_cv_dlopen_self_static in
11743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11744 *) enable_dlopen_self_static=unknown ;;
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11767 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11768 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11770 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772 $as_echo "yes" >&6; }
11774 # FIXME - insert some real tests, host_os isn't really good enough
11777 if test -n "$STRIP" ; then
11778 striplib="$STRIP -x"
11779 old_striplib="$STRIP -S"
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781 $as_echo "yes" >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11805 # Report which library types will actually be built
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11807 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11809 $as_echo "$can_build_shared" >&6; }
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11812 $as_echo_n "checking whether to build shared libraries... " >&6; }
11813 test "$can_build_shared" = "no" && enable_shared=no
11815 # On AIX, shared libraries and static libraries use the same namespace, and
11816 # are all built from PIC.
11819 test "$enable_shared" = yes && enable_static=no
11820 if test -n "$RANLIB"; then
11821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11822 postinstall_cmds='$RANLIB $lib'
11827 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11828 test "$enable_shared" = yes && enable_static=no
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11833 $as_echo "$enable_shared" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11836 $as_echo_n "checking whether to build static libraries... " >&6; }
11837 # Make sure either enable_shared or enable_static is yes.
11838 test "$enable_shared" = yes || enable_static=yes
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11840 $as_echo "$enable_static" >&6; }
11847 ac_cpp='$CXXCPP $CPPFLAGS'
11848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11856 ac_cpp='$CXXCPP $CPPFLAGS'
11857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11861 archive_cmds_need_lc_CXX=no
11862 allow_undefined_flag_CXX=
11863 always_export_symbols_CXX=no
11864 archive_expsym_cmds_CXX=
11865 compiler_needs_object_CXX=no
11866 export_dynamic_flag_spec_CXX=
11867 hardcode_direct_CXX=no
11868 hardcode_direct_absolute_CXX=no
11869 hardcode_libdir_flag_spec_CXX=
11870 hardcode_libdir_flag_spec_ld_CXX=
11871 hardcode_libdir_separator_CXX=
11872 hardcode_minus_L_CXX=no
11873 hardcode_shlibpath_var_CXX=unsupported
11874 hardcode_automatic_CXX=no
11875 inherit_rpath_CXX=no
11877 module_expsym_cmds_CXX=
11878 link_all_deplibs_CXX=unknown
11879 old_archive_cmds_CXX=$old_archive_cmds
11880 no_undefined_flag_CXX=
11881 whole_archive_flag_spec_CXX=
11882 enable_shared_with_static_runtimes_CXX=no
11884 # Source file extension for C++ test sources.
11887 # Object file extension for compiled C++ test sources.
11891 # No sense in running all these tests if we already determined that
11892 # the CXX compiler isn't working. Some variables (like enable_shared)
11893 # are currently assumed to apply to all compilers on this platform,
11894 # and will be corrupted by setting them based on a non-working compiler.
11895 if test "$_lt_caught_CXX_error" != yes; then
11896 # Code to be used in simple compile tests
11897 lt_simple_compile_test_code="int some_variable = 0;"
11899 # Code to be used in simple link tests
11900 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11902 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11909 # If no C compiler was specified, use CC.
11912 # If no C compiler flags were specified, use CFLAGS.
11913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11915 # Allow CC to be a program name with arguments.
11919 # save warnings/boilerplate of simple test code
11920 ac_outfile=conftest.$ac_objext
11921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11923 _lt_compiler_boilerplate=`cat conftest.err`
11926 ac_outfile=conftest.$ac_objext
11927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11929 _lt_linker_boilerplate=`cat conftest.err`
11933 # Allow CC to be a program name with arguments.
11938 lt_save_with_gnu_ld=$with_gnu_ld
11939 lt_save_path_LD=$lt_cv_path_LD
11940 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11941 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11943 $as_unset lt_cv_prog_gnu_ld
11945 if test -n "${lt_cv_path_LDCXX+set}"; then
11946 lt_cv_path_LD=$lt_cv_path_LDCXX
11948 $as_unset lt_cv_path_LD
11950 test -z "${LDCXX+set}" || LD=$LDCXX
11954 for cc_temp in $compiler""; do
11956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11962 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11965 if test -n "$compiler"; then
11966 # We don't want -fno-exception when compiling C++ code, so set the
11967 # no_builtin_flag separately
11968 if test "$GXX" = yes; then
11969 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11971 lt_prog_compiler_no_builtin_flag_CXX=
11974 if test "$GXX" = yes; then
11975 # Set up default GNU C++ configuration
11979 # Check whether --with-gnu-ld was given.
11980 if test "${with_gnu_ld+set}" = set; then :
11981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11987 if test "$GCC" = yes; then
11988 # Check if gcc -print-prog-name=ld gives a path.
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11990 $as_echo_n "checking for ld used by $CC... " >&6; }
11993 # gcc leaves a trailing carriage return which upsets mingw
11994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11999 # Accept absolute paths.
12001 re_direlt='/[^/][^/]*/\.\./'
12002 # Canonicalize the pathname of ld
12003 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12004 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12005 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12007 test -z "$LD" && LD="$ac_prog"
12010 # If it fails, then pretend we aren't using GCC.
12014 # If it is relative, then search for the first ld in PATH.
12015 with_gnu_ld=unknown
12018 elif test "$with_gnu_ld" = yes; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12020 $as_echo_n "checking for GNU ld... " >&6; }
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12023 $as_echo_n "checking for non-GNU ld... " >&6; }
12025 if test "${lt_cv_path_LD+set}" = set; then :
12026 $as_echo_n "(cached) " >&6
12028 if test -z "$LD"; then
12029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12030 for ac_dir in $PATH; do
12032 test -z "$ac_dir" && ac_dir=.
12033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12034 lt_cv_path_LD="$ac_dir/$ac_prog"
12035 # Check to see if the program is GNU ld. I'd rather use --version,
12036 # but apparently some variants of GNU ld only accept -v.
12037 # Break only if it was the GNU/non-GNU ld that we prefer.
12038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12039 *GNU* | *'with BFD'*)
12040 test "$with_gnu_ld" != no && break
12043 test "$with_gnu_ld" != yes && break
12050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12054 LD="$lt_cv_path_LD"
12055 if test -n "$LD"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12057 $as_echo "$LD" >&6; }
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12062 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12064 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12065 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12068 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12069 case `$LD -v 2>&1 </dev/null` in
12070 *GNU* | *'with BFD'*)
12071 lt_cv_prog_gnu_ld=yes
12074 lt_cv_prog_gnu_ld=no
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12079 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12080 with_gnu_ld=$lt_cv_prog_gnu_ld
12088 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12089 # archiving commands below assume that GNU ld is being used.
12090 if test "$with_gnu_ld" = yes; then
12091 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12092 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'
12094 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12097 # If archive_cmds runs LD, not CC, wlarc should be empty
12098 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12099 # investigate it a little bit more. (MM)
12102 # ancient GNU ld didn't support --whole-archive et. al.
12103 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12104 $GREP 'no-whole-archive' > /dev/null; then
12105 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12107 whole_archive_flag_spec_CXX=
12113 # A generic and very simple default shared library creation
12114 # command for GNU C++ for the case where it uses the native
12115 # linker, instead of GNU ld. If possible, this setting should
12116 # overridden to take advantage of the native linker features on
12117 # the platform it is being used on.
12118 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12121 # Commands to make compiler produce verbose output that lists
12122 # what "hidden" libraries, object files and flags are used when
12123 # linking a shared library.
12124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12132 # PORTME: fill in a description of your system's C++ link characteristics
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12134 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12138 # FIXME: insert proper C++ library support
12142 if test "$host_cpu" = ia64; then
12143 # On IA64, the linker does run time linking by default, so we don't
12144 # have to do anything special.
12145 aix_use_runtimelinking=no
12146 exp_sym_flag='-Bexport'
12149 aix_use_runtimelinking=no
12151 # Test if we are trying to use run time linking or normal
12152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12153 # need to do runtime linking.
12154 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12155 for ld_flag in $LDFLAGS; do
12158 aix_use_runtimelinking=yes
12166 exp_sym_flag='-bexport'
12167 no_entry_flag='-bnoentry'
12170 # When large executables or shared objects are built, AIX ld can
12171 # have problems creating the table of contents. If linking a library
12172 # or program results in "error TOC overflow" add -mminimal-toc to
12173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12176 archive_cmds_CXX=''
12177 hardcode_direct_CXX=yes
12178 hardcode_direct_absolute_CXX=yes
12179 hardcode_libdir_separator_CXX=':'
12180 link_all_deplibs_CXX=yes
12181 file_list_spec_CXX='${wl}-f,'
12183 if test "$GXX" = yes; then
12184 case $host_os in aix4.[012]|aix4.[012].*)
12185 # We only want to do this on AIX 4.2 and lower, the check
12186 # below for broken collect2 doesn't work under 4.3+
12187 collect2name=`${CC} -print-prog-name=collect2`
12188 if test -f "$collect2name" &&
12189 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12191 # We have reworked collect2
12194 # We have old collect2
12195 hardcode_direct_CXX=unsupported
12196 # It fails to find uninstalled libraries when the uninstalled
12197 # path is not listed in the libpath. Setting hardcode_minus_L
12198 # to unsupported forces relinking
12199 hardcode_minus_L_CXX=yes
12200 hardcode_libdir_flag_spec_CXX='-L$libdir'
12201 hardcode_libdir_separator_CXX=
12204 shared_flag='-shared'
12205 if test "$aix_use_runtimelinking" = yes; then
12206 shared_flag="$shared_flag "'${wl}-G'
12210 if test "$host_cpu" = ia64; then
12211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12212 # chokes on -Wl,-G. The following line is correct:
12215 if test "$aix_use_runtimelinking" = yes; then
12216 shared_flag='${wl}-G'
12218 shared_flag='${wl}-bM:SRE'
12223 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12224 # It seems that -bexpall does not export symbols beginning with
12225 # underscore (_), so it is better to generate a list of symbols to
12227 always_export_symbols_CXX=yes
12228 if test "$aix_use_runtimelinking" = yes; then
12229 # Warning - without using the other runtime loading flags (-brtl),
12230 # -berok will link without error, but may produce a broken library.
12231 allow_undefined_flag_CXX='-berok'
12232 # Determine the default libpath from the value encoded in an empty
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12245 if ac_fn_cxx_try_link "$LINENO"; then :
12247 lt_aix_libpath_sed='
12248 /Import File Strings/,/^$/ {
12254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12255 # Check for a 64-bit object if we didn't find anything.
12256 if test -z "$aix_libpath"; then
12257 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12264 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12266 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"
12268 if test "$host_cpu" = ia64; then
12269 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12270 allow_undefined_flag_CXX="-z nodefs"
12271 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"
12273 # Determine the default libpath from the value encoded in an
12274 # empty executable.
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12286 if ac_fn_cxx_try_link "$LINENO"; then :
12288 lt_aix_libpath_sed='
12289 /Import File Strings/,/^$/ {
12295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12296 # Check for a 64-bit object if we didn't find anything.
12297 if test -z "$aix_libpath"; then
12298 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12305 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12306 # Warning - without using the other run time loading flags,
12307 # -berok will link without error, but may produce a broken library.
12308 no_undefined_flag_CXX=' ${wl}-bernotok'
12309 allow_undefined_flag_CXX=' ${wl}-berok'
12310 # Exported symbols can be pulled into shared objects from archives
12311 whole_archive_flag_spec_CXX='$convenience'
12312 archive_cmds_need_lc_CXX=yes
12313 # This is similar to how AIX traditionally builds its shared
12315 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'
12321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12322 allow_undefined_flag_CXX=unsupported
12323 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12324 # support --undefined. This deserves some investigation. FIXME
12325 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12332 case $cc_basename in
12334 # FIXME: insert proper C++ library support
12340 cygwin* | mingw* | pw32* | cegcc*)
12341 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12342 # as there is no search path for DLLs.
12343 hardcode_libdir_flag_spec_CXX='-L$libdir'
12344 allow_undefined_flag_CXX=unsupported
12345 always_export_symbols_CXX=no
12346 enable_shared_with_static_runtimes_CXX=yes
12348 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12349 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'
12350 # If the export-symbols file already is a .def file (1st line
12351 # is EXPORTS), use it as is; otherwise, prepend...
12352 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12353 cp $export_symbols $output_objdir/$soname.def;
12355 echo EXPORTS > $output_objdir/$soname.def;
12356 cat $export_symbols >> $output_objdir/$soname.def;
12358 $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'
12363 darwin* | rhapsody*)
12366 archive_cmds_need_lc_CXX=no
12367 hardcode_direct_CXX=no
12368 hardcode_automatic_CXX=yes
12369 hardcode_shlibpath_var_CXX=unsupported
12370 whole_archive_flag_spec_CXX=''
12371 link_all_deplibs_CXX=yes
12372 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12373 case $cc_basename in
12374 ifort*) _lt_dar_can_shared=yes ;;
12375 *) _lt_dar_can_shared=$GCC ;;
12377 if test "$_lt_dar_can_shared" = "yes"; then
12378 output_verbose_link_cmd=echo
12379 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}"
12380 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12381 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}"
12382 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}"
12383 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12384 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}"
12385 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}"
12395 case $cc_basename in
12397 # FIXME: insert proper C++ library support
12401 # Green Hills C++ Compiler
12402 # FIXME: insert proper C++ library support
12406 # FIXME: insert proper C++ library support
12413 # C++ shared libraries reported to be fairly broken before
12419 archive_cmds_need_lc_CXX=no
12422 freebsd* | dragonfly*)
12423 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12432 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12433 hardcode_libdir_separator_CXX=:
12434 export_dynamic_flag_spec_CXX='${wl}-E'
12435 hardcode_direct_CXX=yes
12436 hardcode_minus_L_CXX=yes # Not in the search PATH,
12437 # but as the default
12438 # location of the library.
12440 case $cc_basename in
12442 # FIXME: insert proper C++ library support
12446 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'
12447 # Commands to make compiler produce verbose output that lists
12448 # what "hidden" libraries, object files and flags are used when
12449 # linking a shared library.
12451 # There doesn't appear to be a way to prevent this compiler from
12452 # explicitly linking system object files so we need to strip them
12453 # from the output so that they don't get included in the library
12455 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'
12458 if test "$GXX" = yes; then
12459 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'
12461 # FIXME: insert proper C++ library support
12469 if test $with_gnu_ld = no; then
12470 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12471 hardcode_libdir_separator_CXX=:
12477 export_dynamic_flag_spec_CXX='${wl}-E'
12483 hardcode_direct_CXX=no
12484 hardcode_shlibpath_var_CXX=no
12487 hardcode_direct_CXX=yes
12488 hardcode_direct_absolute_CXX=yes
12489 hardcode_minus_L_CXX=yes # Not in the search PATH,
12490 # but as the default
12491 # location of the library.
12495 case $cc_basename in
12497 # FIXME: insert proper C++ library support
12503 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12506 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12509 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12512 # Commands to make compiler produce verbose output that lists
12513 # what "hidden" libraries, object files and flags are used when
12514 # linking a shared library.
12516 # There doesn't appear to be a way to prevent this compiler from
12517 # explicitly linking system object files so we need to strip them
12518 # from the output so that they don't get included in the library
12520 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'
12523 if test "$GXX" = yes; then
12524 if test $with_gnu_ld = no; then
12527 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12530 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12533 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'
12538 # FIXME: insert proper C++ library support
12546 hardcode_direct_CXX=no
12547 hardcode_shlibpath_var_CXX=no
12548 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12549 export_dynamic_flag_spec_CXX='${wl}-E'
12550 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12551 # Instead, shared libraries are loaded at an image base (0x10000000 by
12552 # default) and relocated if they conflict, which is a slow very memory
12553 # consuming and fragmenting process. To avoid this, we pick a random,
12554 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12555 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12556 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'
12557 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'
12560 case $cc_basename in
12563 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'
12565 # Archives containing C++ object files must be created using
12566 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12567 # necessary to make sure instantiated templates are included
12569 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12572 if test "$GXX" = yes; then
12573 if test "$with_gnu_ld" = no; then
12574 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'
12576 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'
12579 link_all_deplibs_CXX=yes
12582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12583 hardcode_libdir_separator_CXX=:
12584 inherit_rpath_CXX=yes
12587 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12588 case $cc_basename in
12590 # Kuck and Associates, Inc. (KAI) C++ Compiler
12592 # KCC will only create a shared library if the output file
12593 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12594 # to its proper name (with version) after linking.
12595 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'
12596 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'
12597 # Commands to make compiler produce verbose output that lists
12598 # what "hidden" libraries, object files and flags are used when
12599 # linking a shared library.
12601 # There doesn't appear to be a way to prevent this compiler from
12602 # explicitly linking system object files so we need to strip them
12603 # from the output so that they don't get included in the library
12605 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'
12607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12610 # Archives containing C++ object files must be created using
12611 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12612 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12617 # version 8.0 and above of icpc choke on multiply defined symbols
12618 # if we add $predep_objects and $postdep_objects, however 7.1 and
12619 # earlier do not add the objects themselves.
12620 case `$CC -V 2>&1` in
12622 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12623 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'
12625 *) # Version 8.0 or newer
12628 ia64*) tmp_idyn=' -i_dynamic';;
12630 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12631 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'
12634 archive_cmds_need_lc_CXX=no
12635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12636 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12637 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12640 # Portland Group C++ compiler
12642 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12643 prelink_cmds_CXX='tpldir=Template.dir~
12645 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12646 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12647 old_archive_cmds_CXX='tpldir=Template.dir~
12649 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12650 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12652 archive_cmds_CXX='tpldir=Template.dir~
12654 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12655 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12656 archive_expsym_cmds_CXX='tpldir=Template.dir~
12658 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12659 $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'
12661 *) # Version 6 will use weak symbols
12662 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12663 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'
12667 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669 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'
12673 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 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'
12676 runpath_var=LD_RUN_PATH
12677 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12678 hardcode_libdir_separator_CXX=:
12680 # Commands to make compiler produce verbose output that lists
12681 # what "hidden" libraries, object files and flags are used when
12682 # linking a shared library.
12684 # There doesn't appear to be a way to prevent this compiler from
12685 # explicitly linking system object files so we need to strip them
12686 # from the output so that they don't get included in the library
12688 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'
12691 # IBM XL 8.0 on PPC, with GNU ld
12692 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12693 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12694 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12695 if test "x$supports_anon_versioning" = xyes; then
12696 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12697 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12698 echo "local: *; };" >> $output_objdir/$libname.ver~
12699 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12703 case `$CC -V 2>&1 | sed 5q` in
12706 no_undefined_flag_CXX=' -zdefs'
12707 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12708 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'
12709 hardcode_libdir_flag_spec_CXX='-R$libdir'
12710 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'
12711 compiler_needs_object_CXX=yes
12713 # Not sure whether something based on
12714 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12716 output_verbose_link_cmd='echo'
12718 # Archives containing C++ object files must be created using
12719 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12720 # necessary to make sure instantiated templates are included
12722 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12730 # FIXME: insert proper C++ library support
12735 # FIXME: insert proper C++ library support
12740 case $cc_basename in
12742 # FIXME: insert proper C++ library support
12746 # FIXME: insert proper C++ library support
12753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12754 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12756 hardcode_libdir_flag_spec_CXX='-R$libdir'
12757 hardcode_direct_CXX=yes
12758 hardcode_shlibpath_var_CXX=no
12760 # Workaround some broken pre-1.5 toolchains
12761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12769 # C++ shared libraries are fairly broken
12774 if test -f /usr/libexec/ld.so; then
12775 hardcode_direct_CXX=yes
12776 hardcode_shlibpath_var_CXX=no
12777 hardcode_direct_absolute_CXX=yes
12778 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12779 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12781 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12782 export_dynamic_flag_spec_CXX='${wl}-E'
12783 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12785 output_verbose_link_cmd=echo
12791 osf3* | osf4* | osf5*)
12792 case $cc_basename in
12794 # Kuck and Associates, Inc. (KAI) C++ Compiler
12796 # KCC will only create a shared library if the output file
12797 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12798 # to its proper name (with version) after linking.
12799 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'
12801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12802 hardcode_libdir_separator_CXX=:
12804 # Archives containing C++ object files must be created using
12805 # the KAI C++ compiler.
12807 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12808 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12812 # Rational C++ 2.4.1
12813 # FIXME: insert proper C++ library support
12819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12820 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'
12821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12824 allow_undefined_flag_CXX=' -expect_unresolved \*'
12825 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'
12826 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12827 echo "-hidden">> $lib.exp~
12828 $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~
12830 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12834 hardcode_libdir_separator_CXX=:
12836 # Commands to make compiler produce verbose output that lists
12837 # what "hidden" libraries, object files and flags are used when
12838 # linking a shared library.
12840 # There doesn't appear to be a way to prevent this compiler from
12841 # explicitly linking system object files so we need to strip them
12842 # from the output so that they don't get included in the library
12844 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'
12847 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12848 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12851 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'
12854 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'
12858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12859 hardcode_libdir_separator_CXX=:
12861 # Commands to make compiler produce verbose output that lists
12862 # what "hidden" libraries, object files and flags are used when
12863 # linking a shared library.
12864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12867 # FIXME: insert proper C++ library support
12875 # FIXME: insert proper C++ library support
12880 case $cc_basename in
12883 # FIXME: insert proper C++ library support
12888 # FIXME: insert proper C++ library support
12892 # FIXME: insert proper C++ library support
12899 case $cc_basename in
12901 # Sun C++ 4.2, 5.x and Centerline C++
12902 archive_cmds_need_lc_CXX=yes
12903 no_undefined_flag_CXX=' -zdefs'
12904 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12905 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12906 $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'
12908 hardcode_libdir_flag_spec_CXX='-R$libdir'
12909 hardcode_shlibpath_var_CXX=no
12911 solaris2.[0-5] | solaris2.[0-5].*) ;;
12913 # The compiler driver will combine and reorder linker options,
12914 # but understands `-z linker_flag'.
12915 # Supported since Solaris 2.6 (maybe 2.5.1?)
12916 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12919 link_all_deplibs_CXX=yes
12921 output_verbose_link_cmd='echo'
12923 # Archives containing C++ object files must be created using
12924 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12925 # necessary to make sure instantiated templates are included
12927 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12930 # Green Hills C++ Compiler
12931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12933 # The C++ compiler must be used to create the archive.
12934 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12937 # GNU C++ compiler with Solaris linker
12938 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12939 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12940 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12941 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12942 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12943 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12945 # Commands to make compiler produce verbose output that lists
12946 # what "hidden" libraries, object files and flags are used when
12947 # linking a shared library.
12948 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12950 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12952 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12953 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12954 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12956 # Commands to make compiler produce verbose output that lists
12957 # what "hidden" libraries, object files and flags are used when
12958 # linking a shared library.
12959 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12962 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12964 solaris2.[0-5] | solaris2.[0-5].*) ;;
12966 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12974 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12975 no_undefined_flag_CXX='${wl}-z,text'
12976 archive_cmds_need_lc_CXX=no
12977 hardcode_shlibpath_var_CXX=no
12978 runpath_var='LD_RUN_PATH'
12980 case $cc_basename in
12982 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12983 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12986 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12987 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12992 sysv5* | sco3.2v5* | sco5v6*)
12993 # Note: We can NOT use -z defs as we might desire, because we do not
12994 # link with -lc, and that would cause any symbols used from libc to
12995 # always be unresolved, which means just about no library would
12996 # ever link correctly. If we're not using GNU ld we use -z text
12997 # though, which does catch some bad symbols but isn't as heavy-handed
12999 no_undefined_flag_CXX='${wl}-z,text'
13000 allow_undefined_flag_CXX='${wl}-z,nodefs'
13001 archive_cmds_need_lc_CXX=no
13002 hardcode_shlibpath_var_CXX=no
13003 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13004 hardcode_libdir_separator_CXX=':'
13005 link_all_deplibs_CXX=yes
13006 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13007 runpath_var='LD_RUN_PATH'
13009 case $cc_basename in
13011 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13012 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13015 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13016 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13022 case $cc_basename in
13024 # NonStop-UX NCC 3.20
13025 # FIXME: insert proper C++ library support
13029 # FIXME: insert proper C++ library support
13036 # FIXME: insert proper C++ library support
13041 # FIXME: insert proper C++ library support
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13047 $as_echo "$ld_shlibs_CXX" >&6; }
13048 test "$ld_shlibs_CXX" = no && can_build_shared=no
13054 ## There is no encapsulation within the following macros, do not change
13055 ## the running order or otherwise move them around unless you know exactly
13056 ## what you are doing...
13057 # Dependencies to place before and after the object being linked:
13058 predep_objects_CXX=
13059 postdep_objects_CXX=
13062 compiler_lib_search_path_CXX=
13064 cat > conftest.$ac_ext <<_LT_EOF
13068 Foo (void) { a = 0; }
13074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13075 (eval $ac_compile) 2>&5
13077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078 test $ac_status = 0; }; then
13079 # Parse the compiler output and extract the necessary
13080 # objects, libraries and library flags.
13082 # Sentinel used to keep track of whether or not we are before
13083 # the conftest object file.
13084 pre_test_object_deps_done=no
13086 for p in `eval "$output_verbose_link_cmd"`; do
13090 # Some compilers place space between "-{L,R}" and the path.
13091 # Remove the space.
13092 if test $p = "-L" ||
13093 test $p = "-R"; then
13100 if test "$pre_test_object_deps_done" = no; then
13103 # Internal compiler library paths should come after those
13104 # provided the user. The postdeps already come after the
13105 # user supplied libs so there is no need to process them.
13106 if test -z "$compiler_lib_search_path_CXX"; then
13107 compiler_lib_search_path_CXX="${prev}${p}"
13109 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13112 # The "-l" case would never come before the object being
13113 # linked, so don't bother handling this case.
13116 if test -z "$postdeps_CXX"; then
13117 postdeps_CXX="${prev}${p}"
13119 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13125 # This assumes that the test object file only shows up
13126 # once in the compiler output.
13127 if test "$p" = "conftest.$objext"; then
13128 pre_test_object_deps_done=yes
13132 if test "$pre_test_object_deps_done" = no; then
13133 if test -z "$predep_objects_CXX"; then
13134 predep_objects_CXX="$p"
13136 predep_objects_CXX="$predep_objects_CXX $p"
13139 if test -z "$postdep_objects_CXX"; then
13140 postdep_objects_CXX="$p"
13142 postdep_objects_CXX="$postdep_objects_CXX $p"
13147 *) ;; # Ignore the rest.
13155 echo "libtool.m4: error: problem compiling CXX test program"
13158 $RM -f confest.$objext
13160 # PORTME: override above test on systems where it is broken
13163 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13164 # hack all around it, let's just trust "g++" to DTRT.
13165 predep_objects_CXX=
13166 postdep_objects_CXX=
13171 case `$CC -V 2>&1 | sed 5q` in
13175 # The more standards-conforming stlport4 library is
13176 # incompatible with the Cstd library. Avoid specifying
13177 # it if it's in CXXFLAGS. Ignore libCrun as
13178 # -library=stlport4 depends on it.
13179 case " $CXX $CXXFLAGS " in
13180 *" -library=stlport4 "*)
13181 solaris_use_stlport4=yes
13185 if test "$solaris_use_stlport4" != yes; then
13186 postdeps_CXX='-library=Cstd -library=Crun'
13193 case $cc_basename in
13195 # The more standards-conforming stlport4 library is
13196 # incompatible with the Cstd library. Avoid specifying
13197 # it if it's in CXXFLAGS. Ignore libCrun as
13198 # -library=stlport4 depends on it.
13199 case " $CXX $CXXFLAGS " in
13200 *" -library=stlport4 "*)
13201 solaris_use_stlport4=yes
13205 # Adding this requires a known-good setup of shared libraries for
13206 # Sun compiler versions before 5.6, else PIC objects from an old
13207 # archive will be linked into the output, leading to subtle bugs.
13208 if test "$solaris_use_stlport4" != yes; then
13209 postdeps_CXX='-library=Cstd -library=Crun'
13217 case " $postdeps_CXX " in
13218 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13220 compiler_lib_search_dirs_CXX=
13221 if test -n "${compiler_lib_search_path_CXX}"; then
13222 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13255 lt_prog_compiler_wl_CXX=
13256 lt_prog_compiler_pic_CXX=
13257 lt_prog_compiler_static_CXX=
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13260 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13262 # C++ specific cases for pic, static, wl, etc.
13263 if test "$GXX" = yes; then
13264 lt_prog_compiler_wl_CXX='-Wl,'
13265 lt_prog_compiler_static_CXX='-static'
13269 # All AIX code is PIC.
13270 if test "$host_cpu" = ia64; then
13271 # AIX 5 now supports IA64 processor
13272 lt_prog_compiler_static_CXX='-Bstatic'
13279 # see comment about AmigaOS4 .so support
13280 lt_prog_compiler_pic_CXX='-fPIC'
13283 # FIXME: we need at least 68020 code to build shared libraries, but
13284 # adding the `-m68020' flag to GCC prevents building anything better,
13286 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13291 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13292 # PIC is the default for these OSes.
13294 mingw* | cygwin* | os2* | pw32* | cegcc*)
13295 # This hack is so that the source file can tell whether it is being
13296 # built for inclusion in a dll (and should export symbols for example).
13297 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13298 # (--disable-auto-import) libraries
13299 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13301 darwin* | rhapsody*)
13302 # PIC is the default on this platform
13303 # Common symbols not allowed in MH_DYLIB files
13304 lt_prog_compiler_pic_CXX='-fno-common'
13307 # DJGPP does not support shared libraries at all
13308 lt_prog_compiler_pic_CXX=
13311 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13312 # Instead, we relocate shared libraries at runtime.
13315 if test -d /usr/nec; then
13316 lt_prog_compiler_pic_CXX=-Kconform_pic
13320 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13321 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13322 # sets the default TLS model and affects inlining.
13327 lt_prog_compiler_pic_CXX='-fPIC'
13332 # QNX uses GNU C++, but need to define -shared option too, otherwise
13333 # it will coredump.
13334 lt_prog_compiler_pic_CXX='-fPIC -shared'
13337 lt_prog_compiler_pic_CXX='-fPIC'
13343 # All AIX code is PIC.
13344 if test "$host_cpu" = ia64; then
13345 # AIX 5 now supports IA64 processor
13346 lt_prog_compiler_static_CXX='-Bstatic'
13348 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13352 case $cc_basename in
13354 # Green Hills C++ Compiler
13355 # _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"
13360 case $cc_basename in
13362 lt_prog_compiler_pic_CXX='-KPIC'
13365 # Green Hills C++ Compiler
13366 lt_prog_compiler_pic_CXX='-pic'
13372 freebsd* | dragonfly*)
13373 # FreeBSD uses GNU C++
13375 hpux9* | hpux10* | hpux11*)
13376 case $cc_basename in
13378 lt_prog_compiler_wl_CXX='-Wl,'
13379 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13380 if test "$host_cpu" != ia64; then
13381 lt_prog_compiler_pic_CXX='+Z'
13385 lt_prog_compiler_wl_CXX='-Wl,'
13386 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13392 lt_prog_compiler_pic_CXX='+Z'
13401 # This is c89, which is MS Visual C++ (no shared libs)
13402 # Anyone wants to do a port?
13404 irix5* | irix6* | nonstopux*)
13405 case $cc_basename in
13407 lt_prog_compiler_wl_CXX='-Wl,'
13408 lt_prog_compiler_static_CXX='-non_shared'
13409 # CC pic flag -KPIC is the default.
13415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13416 case $cc_basename in
13419 lt_prog_compiler_wl_CXX='--backend -Wl,'
13420 lt_prog_compiler_pic_CXX='-fPIC'
13423 # old Intel C++ for x86_64 which still supported -KPIC.
13424 lt_prog_compiler_wl_CXX='-Wl,'
13425 lt_prog_compiler_pic_CXX='-KPIC'
13426 lt_prog_compiler_static_CXX='-static'
13429 # Intel C++, used to be incompatible with GCC.
13430 # ICC 10 doesn't accept -KPIC any more.
13431 lt_prog_compiler_wl_CXX='-Wl,'
13432 lt_prog_compiler_pic_CXX='-fPIC'
13433 lt_prog_compiler_static_CXX='-static'
13436 # Portland Group C++ compiler
13437 lt_prog_compiler_wl_CXX='-Wl,'
13438 lt_prog_compiler_pic_CXX='-fpic'
13439 lt_prog_compiler_static_CXX='-Bstatic'
13443 # Make sure the PIC flag is empty. It appears that all Alpha
13444 # Linux and Compaq Tru64 Unix objects are PIC.
13445 lt_prog_compiler_pic_CXX=
13446 lt_prog_compiler_static_CXX='-non_shared'
13449 # IBM XL 8.0 on PPC
13450 lt_prog_compiler_wl_CXX='-Wl,'
13451 lt_prog_compiler_pic_CXX='-qpic'
13452 lt_prog_compiler_static_CXX='-qstaticlink'
13455 case `$CC -V 2>&1 | sed 5q` in
13458 lt_prog_compiler_pic_CXX='-KPIC'
13459 lt_prog_compiler_static_CXX='-Bstatic'
13460 lt_prog_compiler_wl_CXX='-Qoption ld '
13471 case $cc_basename in
13473 lt_prog_compiler_pic_CXX='-W c,exportall'
13479 netbsd* | netbsdelf*-gnu)
13482 # QNX uses GNU C++, but need to define -shared option too, otherwise
13483 # it will coredump.
13484 lt_prog_compiler_pic_CXX='-fPIC -shared'
13486 osf3* | osf4* | osf5*)
13487 case $cc_basename in
13489 lt_prog_compiler_wl_CXX='--backend -Wl,'
13492 # Rational C++ 2.4.1
13493 lt_prog_compiler_pic_CXX='-pic'
13496 # Digital/Compaq C++
13497 lt_prog_compiler_wl_CXX='-Wl,'
13498 # Make sure the PIC flag is empty. It appears that all Alpha
13499 # Linux and Compaq Tru64 Unix objects are PIC.
13500 lt_prog_compiler_pic_CXX=
13501 lt_prog_compiler_static_CXX='-non_shared'
13510 case $cc_basename in
13512 # Sun C++ 4.2, 5.x and Centerline C++
13513 lt_prog_compiler_pic_CXX='-KPIC'
13514 lt_prog_compiler_static_CXX='-Bstatic'
13515 lt_prog_compiler_wl_CXX='-Qoption ld '
13518 # Green Hills C++ Compiler
13519 lt_prog_compiler_pic_CXX='-PIC'
13526 case $cc_basename in
13529 lt_prog_compiler_pic_CXX='-pic'
13530 lt_prog_compiler_static_CXX='-Bstatic'
13534 lt_prog_compiler_pic_CXX='-pic'
13540 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13541 case $cc_basename in
13543 lt_prog_compiler_wl_CXX='-Wl,'
13544 lt_prog_compiler_pic_CXX='-KPIC'
13545 lt_prog_compiler_static_CXX='-Bstatic'
13550 case $cc_basename in
13552 # NonStop-UX NCC 3.20
13553 lt_prog_compiler_pic_CXX='-KPIC'
13562 lt_prog_compiler_can_build_shared_CXX=no
13568 # For platforms which do not support PIC, -DPIC is meaningless:
13570 lt_prog_compiler_pic_CXX=
13573 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13577 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13582 # Check to make sure the PIC flag actually works.
13584 if test -n "$lt_prog_compiler_pic_CXX"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13586 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13587 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13588 $as_echo_n "(cached) " >&6
13590 lt_cv_prog_compiler_pic_works_CXX=no
13591 ac_outfile=conftest.$ac_objext
13592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13593 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13594 # Insert the option either (1) after the last *FLAGS variable, or
13595 # (2) before a word containing "conftest.", or (3) at the end.
13596 # Note that $ac_compile itself does not contain backslashes and begins
13597 # with a dollar sign (not a hyphen), so the echo should work correctly.
13598 # The option is referenced via a variable to avoid confusing sed.
13599 lt_compile=`echo "$ac_compile" | $SED \
13600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13602 -e 's:$: $lt_compiler_flag:'`
13603 (eval echo "\"\$as_me:13603: $lt_compile\"" >&5)
13604 (eval "$lt_compile" 2>conftest.err)
13606 cat conftest.err >&5
13607 echo "$as_me:13607: \$? = $ac_status" >&5
13608 if (exit $ac_status) && test -s "$ac_outfile"; then
13609 # The compiler can only warn and ignore the option if not recognized
13610 # So say no if there are warnings other than the usual output.
13611 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13613 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13614 lt_cv_prog_compiler_pic_works_CXX=yes
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13621 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13623 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13624 case $lt_prog_compiler_pic_CXX in
13626 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13629 lt_prog_compiler_pic_CXX=
13630 lt_prog_compiler_can_build_shared_CXX=no
13638 # Check to make sure the static flag actually works.
13640 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13642 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13643 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13644 $as_echo_n "(cached) " >&6
13646 lt_cv_prog_compiler_static_works_CXX=no
13647 save_LDFLAGS="$LDFLAGS"
13648 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13649 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13651 # The linker can only warn and ignore the option if not recognized
13652 # So say no if there are warnings
13653 if test -s conftest.err; then
13654 # Append any errors to the config.log.
13655 cat conftest.err 1>&5
13656 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13658 if diff conftest.exp conftest.er2 >/dev/null; then
13659 lt_cv_prog_compiler_static_works_CXX=yes
13662 lt_cv_prog_compiler_static_works_CXX=yes
13666 LDFLAGS="$save_LDFLAGS"
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13670 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13672 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13675 lt_prog_compiler_static_CXX=
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13683 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13686 lt_cv_prog_compiler_c_o_CXX=no
13687 $RM -r conftest 2>/dev/null
13691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13693 lt_compiler_flag="-o out/conftest2.$ac_objext"
13694 # Insert the option either (1) after the last *FLAGS variable, or
13695 # (2) before a word containing "conftest.", or (3) at the end.
13696 # Note that $ac_compile itself does not contain backslashes and begins
13697 # with a dollar sign (not a hyphen), so the echo should work correctly.
13698 lt_compile=`echo "$ac_compile" | $SED \
13699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13701 -e 's:$: $lt_compiler_flag:'`
13702 (eval echo "\"\$as_me:13702: $lt_compile\"" >&5)
13703 (eval "$lt_compile" 2>out/conftest.err)
13705 cat out/conftest.err >&5
13706 echo "$as_me:13706: \$? = $ac_status" >&5
13707 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13709 # The compiler can only warn and ignore the option if not recognized
13710 # So say no if there are warnings
13711 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13714 lt_cv_prog_compiler_c_o_CXX=yes
13719 # SGI C++ compiler will create directory out/ii_files/ for
13720 # template instantiation
13721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13722 $RM out/* && rmdir out
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13729 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13734 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13735 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13736 $as_echo_n "(cached) " >&6
13738 lt_cv_prog_compiler_c_o_CXX=no
13739 $RM -r conftest 2>/dev/null
13743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13745 lt_compiler_flag="-o out/conftest2.$ac_objext"
13746 # Insert the option either (1) after the last *FLAGS variable, or
13747 # (2) before a word containing "conftest.", or (3) at the end.
13748 # Note that $ac_compile itself does not contain backslashes and begins
13749 # with a dollar sign (not a hyphen), so the echo should work correctly.
13750 lt_compile=`echo "$ac_compile" | $SED \
13751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13753 -e 's:$: $lt_compiler_flag:'`
13754 (eval echo "\"\$as_me:13754: $lt_compile\"" >&5)
13755 (eval "$lt_compile" 2>out/conftest.err)
13757 cat out/conftest.err >&5
13758 echo "$as_me:13758: \$? = $ac_status" >&5
13759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13761 # The compiler can only warn and ignore the option if not recognized
13762 # So say no if there are warnings
13763 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13766 lt_cv_prog_compiler_c_o_CXX=yes
13771 # SGI C++ compiler will create directory out/ii_files/ for
13772 # template instantiation
13773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13774 $RM out/* && rmdir out
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13781 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13786 hard_links="nottested"
13787 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13788 # do not overwrite the value of need_locks provided by the user
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13790 $as_echo_n "checking if we can lock with hard links... " >&6; }
13793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13795 ln conftest.a conftest.b 2>&5 || hard_links=no
13796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13798 $as_echo "$hard_links" >&6; }
13799 if test "$hard_links" = no; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13801 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13811 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13813 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13816 # If we're using GNU nm, then we don't want the "-C" option.
13817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13818 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13819 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'
13821 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'
13825 export_symbols_cmds_CXX="$ltdll_cmds"
13827 cygwin* | mingw* | cegcc*)
13828 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'
13830 linux* | k*bsd*-gnu)
13831 link_all_deplibs_CXX=no
13834 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13837 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13840 $as_echo "$ld_shlibs_CXX" >&6; }
13841 test "$ld_shlibs_CXX" = no && can_build_shared=no
13843 with_gnu_ld_CXX=$with_gnu_ld
13851 # Do we need to explicitly link libc?
13853 case "x$archive_cmds_need_lc_CXX" in
13855 # Assume -lc should be added
13856 archive_cmds_need_lc_CXX=yes
13858 if test "$enable_shared" = yes && test "$GCC" = yes; then
13859 case $archive_cmds_CXX in
13861 # FIXME: we may have to deal with multi-command sequences.
13864 # Test whether the compiler implicitly links with -lc since on some
13865 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13866 # to ld, don't add -lc before -lgcc.
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13873 (eval $ac_compile) 2>&5
13875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13876 test $ac_status = 0; } 2>conftest.err; then
13879 libobjs=conftest.$ac_objext
13881 wl=$lt_prog_compiler_wl_CXX
13882 pic_flag=$lt_prog_compiler_pic_CXX
13888 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13889 allow_undefined_flag_CXX=
13890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13891 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894 test $ac_status = 0; }
13896 archive_cmds_need_lc_CXX=no
13898 archive_cmds_need_lc_CXX=yes
13900 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13902 cat conftest.err 1>&5
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13906 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13977 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13979 library_names_spec=
13980 libname_spec='lib$name'
13984 postuninstall_cmds=
13988 shlibpath_overrides_runpath=unknown
13990 dynamic_linker="$host_os ld.so"
13991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13992 need_lib_prefix=unknown
13993 hardcode_into_libs=no
13995 # when you set need_version to no, make sure it does not cause -set_version
13996 # flags to be left without arguments
13997 need_version=unknown
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14003 shlibpath_var=LIBPATH
14005 # AIX 3 has no versioning support, so we append a major version to the name.
14006 soname_spec='${libname}${release}${shared_ext}$major'
14013 hardcode_into_libs=yes
14014 if test "$host_cpu" = ia64; then
14015 # AIX 5 supports IA64
14016 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14017 shlibpath_var=LD_LIBRARY_PATH
14019 # With GCC up to 2.95.x, collect2 would create an import file
14020 # for dependence libraries. The import file would start with
14021 # the line `#! .'. This would cause the generated library to
14022 # depend on `.', always an invalid library. This was fixed in
14023 # development snapshots of GCC prior to 3.0.
14025 aix4 | aix4.[01] | aix4.[01].*)
14026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14028 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14031 can_build_shared=no
14035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14036 # soname into executable. Probably we can add versioning support to
14037 # collect2, so additional links can be useful in future.
14038 if test "$aix_use_runtimelinking" = yes; then
14039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14040 # instead of lib<name>.a to let people know that these are not
14041 # typical AIX shared libraries.
14042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044 # We preserve .a as extension for shared libraries through AIX4.2
14045 # and later when we are not doing run time linking.
14046 library_names_spec='${libname}${release}.a $libname.a'
14047 soname_spec='${libname}${release}${shared_ext}$major'
14049 shlibpath_var=LIBPATH
14056 # Since July 2007 AmigaOS4 officially supports .so libraries.
14057 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061 library_names_spec='$libname.ixlibrary $libname.a'
14062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14063 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'
14069 library_names_spec='${libname}${shared_ext}'
14070 dynamic_linker="$host_os ld.so"
14071 shlibpath_var=LIBRARY_PATH
14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078 soname_spec='${libname}${release}${shared_ext}$major'
14079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14080 shlibpath_var=LD_LIBRARY_PATH
14081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14083 # the default ld.so.conf also contains /usr/contrib/lib and
14084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14085 # libtool to hard-code these into programs
14088 cygwin* | mingw* | pw32* | cegcc*)
14089 version_type=windows
14094 case $GCC,$host_os in
14095 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14096 library_names_spec='$libname.dll.a'
14097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14098 postinstall_cmds='base_file=`basename \${file}`~
14099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14100 dldir=$destdir/`dirname \$dlpath`~
14101 test -d \$dldir || mkdir -p \$dldir~
14102 $install_prog $dir/$dlname \$dldir/$dlname~
14103 chmod a+x \$dldir/$dlname~
14104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14108 dlpath=$dir/\$dldll~
14110 shlibpath_overrides_runpath=yes
14114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14119 # MinGW DLLs use traditional 'lib' prefix
14120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14121 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14122 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14123 # It is most probably a Windows format PATH printed by
14124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14125 # path with ; separators, and with drive letters. We can handle the
14126 # drive letters (cygwin fileutils understands them), so leave them,
14127 # especially as we might pass files found there to a mingw objdump,
14128 # which wouldn't understand a cygwinified path. Ahh.
14129 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14131 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14135 # pw32 DLLs use 'pw' prefix rather than 'lib'
14136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14145 dynamic_linker='Win32 ld.exe'
14146 # FIXME: first we should search . and the directory the executable is in
14150 darwin* | rhapsody*)
14151 dynamic_linker="$host_os dyld"
14152 version_type=darwin
14155 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14156 soname_spec='${libname}${release}${major}$shared_ext'
14157 shlibpath_overrides_runpath=yes
14158 shlibpath_var=DYLD_LIBRARY_PATH
14159 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14161 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 shlibpath_var=LD_LIBRARY_PATH
14177 freebsd* | dragonfly*)
14178 # DragonFly does not have aout. When/if they implement a new
14179 # versioning mechanism, adjust this.
14180 if test -x /usr/bin/objformat; then
14181 objformat=`/usr/bin/objformat`
14184 freebsd[123]*) objformat=aout ;;
14185 *) objformat=elf ;;
14188 version_type=freebsd-$objformat
14189 case $version_type in
14191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14200 shlibpath_var=LD_LIBRARY_PATH
14203 shlibpath_overrides_runpath=yes
14205 freebsd3.[01]* | freebsdelf3.[01]*)
14206 shlibpath_overrides_runpath=yes
14207 hardcode_into_libs=yes
14209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14211 shlibpath_overrides_runpath=no
14212 hardcode_into_libs=yes
14214 *) # from 4.6 on, and DragonFly
14215 shlibpath_overrides_runpath=yes
14216 hardcode_into_libs=yes
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 hardcode_into_libs=yes
14231 hpux9* | hpux10* | hpux11*)
14232 # Give a soname corresponding to the major version so that dld.sl refuses to
14233 # link against other versions.
14240 hardcode_into_libs=yes
14241 dynamic_linker="$host_os dld.so"
14242 shlibpath_var=LD_LIBRARY_PATH
14243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14245 soname_spec='${libname}${release}${shared_ext}$major'
14246 if test "X$HPUX_IA64_MODE" = X32; then
14247 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14249 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14255 hardcode_into_libs=yes
14256 dynamic_linker="$host_os dld.sl"
14257 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14260 soname_spec='${libname}${release}${shared_ext}$major'
14261 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14266 dynamic_linker="$host_os dld.sl"
14267 shlibpath_var=SHLIB_PATH
14268 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14270 soname_spec='${libname}${release}${shared_ext}$major'
14273 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14274 postinstall_cmds='chmod 555 $lib'
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 shlibpath_overrides_runpath=no
14286 hardcode_into_libs=yes
14289 irix5* | irix6* | nonstopux*)
14291 nonstopux*) version_type=nonstopux ;;
14293 if test "$lt_cv_prog_gnu_ld" = yes; then
14301 soname_spec='${libname}${release}${shared_ext}$major'
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14304 irix5* | nonstopux*)
14305 libsuff= shlibsuff=
14308 case $LD in # libtool.m4 will add one of these switches to LD
14309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14310 libsuff= shlibsuff= libmagic=32-bit;;
14311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14312 libsuff=32 shlibsuff=N32 libmagic=N32;;
14313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14314 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14315 *) libsuff= shlibsuff= libmagic=never-match;;
14319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14320 shlibpath_overrides_runpath=no
14321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14323 hardcode_into_libs=yes
14326 # No shared lib support for Linux oldld, aout, or coff.
14327 linux*oldld* | linux*aout* | linux*coff*)
14331 # This must be Linux ELF.
14332 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337 soname_spec='${libname}${release}${shared_ext}$major'
14338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14339 shlibpath_var=LD_LIBRARY_PATH
14340 shlibpath_overrides_runpath=no
14341 # Some binutils ld are patched to set DT_RUNPATH
14342 save_LDFLAGS=$LDFLAGS
14343 save_libdir=$libdir
14344 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14345 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14357 if ac_fn_cxx_try_link "$LINENO"; then :
14358 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14359 shlibpath_overrides_runpath=yes
14362 rm -f core conftest.err conftest.$ac_objext \
14363 conftest$ac_exeext conftest.$ac_ext
14364 LDFLAGS=$save_LDFLAGS
14365 libdir=$save_libdir
14367 # This implies no fast_install, which is unacceptable.
14368 # Some rework will be needed to allow for fast_install
14369 # before this can be enabled.
14370 hardcode_into_libs=yes
14372 # Append ld.so.conf contents to the search path
14373 if test -f /etc/ld.so.conf; then
14374 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' ' '`
14375 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14378 # We used to test for /lib/ld.so.1 and disable shared libraries on
14379 # powerpc, because MkLinux only supported shared libraries with the
14380 # GNU dynamic linker. Since this was broken with cross compilers,
14381 # most powerpc-linux boxes support dynamic linking these days and
14382 # people can always --disable-shared, the test was removed, and we
14383 # assume the GNU/Linux dynamic linker is in use.
14384 dynamic_linker='GNU/Linux ld.so'
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14392 soname_spec='${libname}${release}${shared_ext}$major'
14393 shlibpath_var=LD_LIBRARY_PATH
14394 shlibpath_overrides_runpath=no
14395 hardcode_into_libs=yes
14396 dynamic_linker='NetBSD ld.elf_so'
14403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14406 dynamic_linker='NetBSD (a.out) ld.so'
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14409 soname_spec='${libname}${release}${shared_ext}$major'
14410 dynamic_linker='NetBSD ld.elf_so'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 shlibpath_overrides_runpath=yes
14414 hardcode_into_libs=yes
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420 shlibpath_var=LD_LIBRARY_PATH
14421 shlibpath_overrides_runpath=yes
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429 soname_spec='${libname}${release}${shared_ext}$major'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=no
14432 hardcode_into_libs=yes
14433 dynamic_linker='ldqnx.so'
14438 sys_lib_dlsearch_path_spec="/usr/lib"
14440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14443 *) need_version=no ;;
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14447 shlibpath_var=LD_LIBRARY_PATH
14448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14450 openbsd2.[89] | openbsd2.[89].*)
14451 shlibpath_overrides_runpath=no
14454 shlibpath_overrides_runpath=yes
14458 shlibpath_overrides_runpath=yes
14463 libname_spec='$name'
14466 library_names_spec='$libname${shared_ext} $libname.a'
14467 dynamic_linker='OS/2 ld.exe'
14468 shlibpath_var=LIBPATH
14471 osf3* | osf4* | osf5*)
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath=yes
14494 hardcode_into_libs=yes
14495 # ldd complains unless libraries are executable
14496 postinstall_cmds='chmod +x $lib'
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes
14505 if test "$with_gnu_ld" = yes; then
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 soname_spec='${libname}${release}${shared_ext}$major'
14515 shlibpath_var=LD_LIBRARY_PATH
14516 case $host_vendor in
14518 shlibpath_overrides_runpath=no
14520 runpath_var=LD_RUN_PATH
14528 shlibpath_overrides_runpath=no
14529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14535 if test -d /usr/nec ;then
14537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14538 soname_spec='$libname${shared_ext}.$major'
14539 shlibpath_var=LD_LIBRARY_PATH
14543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14544 version_type=freebsd-elf
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14552 if test "$with_gnu_ld" = yes; then
14553 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14558 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14562 sys_lib_dlsearch_path_spec='/usr/lib'
14566 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 shlibpath_overrides_runpath=no
14573 hardcode_into_libs=yes
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LD_LIBRARY_PATH
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14588 $as_echo "$dynamic_linker" >&6; }
14589 test "$dynamic_linker" = no && can_build_shared=no
14591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14592 if test "$GCC" = yes; then
14593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14596 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14597 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14600 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14639 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14640 hardcode_action_CXX=
14641 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14642 test -n "$runpath_var_CXX" ||
14643 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14645 # We can hardcode non-existent directories.
14646 if test "$hardcode_direct_CXX" != no &&
14647 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14648 # have to relink, otherwise we might link with an installed library
14649 # when we should be linking with a yet-to-be-installed one
14650 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14651 test "$hardcode_minus_L_CXX" != no; then
14652 # Linking always hardcodes the temporary library directory.
14653 hardcode_action_CXX=relink
14655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14656 hardcode_action_CXX=immediate
14659 # We cannot hardcode anything, or else we can only hardcode existing
14661 hardcode_action_CXX=unsupported
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14664 $as_echo "$hardcode_action_CXX" >&6; }
14666 if test "$hardcode_action_CXX" = relink ||
14667 test "$inherit_rpath_CXX" = yes; then
14668 # Fast installation is not supported
14669 enable_fast_install=no
14670 elif test "$shlibpath_overrides_runpath" = yes ||
14671 test "$enable_shared" = no; then
14672 # Fast installation is not necessary
14673 enable_fast_install=needless
14682 fi # test -n "$compiler"
14688 with_gnu_ld=$lt_save_with_gnu_ld
14689 lt_cv_path_LDCXX=$lt_cv_path_LD
14690 lt_cv_path_LD=$lt_save_path_LD
14691 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14692 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14693 fi # test "$_lt_caught_CXX_error" != yes
14696 ac_cpp='$CXXCPP $CPPFLAGS'
14697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14713 ac_config_commands="$ac_config_commands libtool"
14718 # Only expand once:
14723 # Check whether some low-level functions/files are available
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14726 $as_echo_n "checking for ANSI C header files... " >&6; }
14727 if test "${ac_cv_header_stdc+set}" = set; then :
14728 $as_echo_n "(cached) " >&6
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14732 #include <stdlib.h>
14733 #include <stdarg.h>
14734 #include <string.h>
14745 if ac_fn_cxx_try_compile "$LINENO"; then :
14746 ac_cv_header_stdc=yes
14748 ac_cv_header_stdc=no
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 if test $ac_cv_header_stdc = yes; then
14753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 #include <string.h>
14759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14760 $EGREP "memchr" >/dev/null 2>&1; then :
14763 ac_cv_header_stdc=no
14769 if test $ac_cv_header_stdc = yes; then
14770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 #include <stdlib.h>
14776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14777 $EGREP "free" >/dev/null 2>&1; then :
14780 ac_cv_header_stdc=no
14786 if test $ac_cv_header_stdc = yes; then
14787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14788 if test "$cross_compiling" = yes; then :
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14794 #include <stdlib.h>
14795 #if ((' ' & 0x0FF) == 0x020)
14796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14799 # define ISLOWER(c) \
14800 (('a' <= (c) && (c) <= 'i') \
14801 || ('j' <= (c) && (c) <= 'r') \
14802 || ('s' <= (c) && (c) <= 'z'))
14803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14811 for (i = 0; i < 256; i++)
14812 if (XOR (islower (i), ISLOWER (i))
14813 || toupper (i) != TOUPPER (i))
14818 if ac_fn_cxx_try_run "$LINENO"; then :
14821 ac_cv_header_stdc=no
14823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14824 conftest.$ac_objext conftest.beam conftest.$ac_ext
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14830 $as_echo "$ac_cv_header_stdc" >&6; }
14831 if test $ac_cv_header_stdc = yes; then
14833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14838 # These are tested for by AC_HEADER_STDC, but I check again to set the var
14839 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14840 if test "x$ac_cv_header_stdint_h" = x""yes; then :
14841 ac_cv_have_stdint_h=1
14843 ac_cv_have_stdint_h=0
14847 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14848 if test "x$ac_cv_header_sys_types_h" = x""yes; then :
14849 ac_cv_have_systypes_h=1
14851 ac_cv_have_systypes_h=0
14855 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14856 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
14857 ac_cv_have_inttypes_h=1
14859 ac_cv_have_inttypes_h=0
14863 for ac_header in unistd.h
14865 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14866 if test "x$ac_cv_header_unistd_h" = x""yes; then :
14867 cat >>confdefs.h <<_ACEOF
14868 #define HAVE_UNISTD_H 1
14870 ac_cv_have_unistd_h=1
14872 ac_cv_have_unistd_h=0
14877 for ac_header in syscall.h
14879 ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
14880 if test "x$ac_cv_header_syscall_h" = x""yes; then :
14881 cat >>confdefs.h <<_ACEOF
14882 #define HAVE_SYSCALL_H 1
14889 for ac_header in sys/syscall.h
14891 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
14892 if test "x$ac_cv_header_sys_syscall_h" = x""yes; then :
14893 cat >>confdefs.h <<_ACEOF
14894 #define HAVE_SYS_SYSCALL_H 1
14901 # For backtrace with glibc.
14902 for ac_header in execinfo.h
14904 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
14905 if test "x$ac_cv_header_execinfo_h" = x""yes; then :
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_EXECINFO_H 1
14914 # For backtrace with libunwind.
14915 for ac_header in libunwind.h
14917 ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
14918 if test "x$ac_cv_header_libunwind_h" = x""yes; then :
14919 cat >>confdefs.h <<_ACEOF
14920 #define HAVE_LIBUNWIND_H 1
14922 ac_cv_have_libunwind_h=1
14924 ac_cv_have_libunwind_h=0
14929 for ac_header in ucontext.h
14931 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
14932 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_UCONTEXT_H 1
14941 for ac_header in sys/utsname.h
14943 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
14944 if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
14945 cat >>confdefs.h <<_ACEOF
14946 #define HAVE_SYS_UTSNAME_H 1
14953 for ac_header in pwd.h
14955 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14956 if test "x$ac_cv_header_pwd_h" = x""yes; then :
14957 cat >>confdefs.h <<_ACEOF
14958 #define HAVE_PWD_H 1
14965 for ac_header in syslog.h
14967 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14968 if test "x$ac_cv_header_syslog_h" = x""yes; then :
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_SYSLOG_H 1
14977 for ac_header in sys/time.h
14979 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14980 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
14981 cat >>confdefs.h <<_ACEOF
14982 #define HAVE_SYS_TIME_H 1
14989 for ac_header in glob.h
14991 ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
14992 if test "x$ac_cv_header_glob_h" = x""yes; then :
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_GLOB_H 1
15002 # The cast to long int works around a bug in the HP C Compiler
15003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15005 # This bug is HP SR number 8606223364.
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15007 $as_echo_n "checking size of void *... " >&6; }
15008 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15009 $as_echo_n "(cached) " >&6
15011 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15014 if test "$ac_cv_type_void_p" = yes; then
15015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15017 { as_fn_set_status 77
15018 as_fn_error "cannot compute sizeof (void *)
15019 See \`config.log' for more details." "$LINENO" 5; }; }
15021 ac_cv_sizeof_void_p=0
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15027 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15031 cat >>confdefs.h <<_ACEOF
15032 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15037 # These are the types I need. We look for them in either stdint.h,
15038 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15039 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15040 if test "x$ac_cv_type_uint16_t" = x""yes; then :
15041 ac_cv_have_uint16_t=1
15043 ac_cv_have_uint16_t=0
15046 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15047 if test "x$ac_cv_type_u_int16_t" = x""yes; then :
15048 ac_cv_have_u_int16_t=1
15050 ac_cv_have_u_int16_t=0
15053 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15054 if test "x$ac_cv_type___uint16" = x""yes; then :
15055 ac_cv_have___uint16=1
15057 ac_cv_have___uint16=0
15061 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15062 if test "x$ac_cv_func_sigaltstack" = x""yes; then :
15064 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15068 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15069 if test "x$ac_cv_func_dladdr" = x""yes; then :
15071 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15075 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15076 if test "x$ac_cv_func_fcntl" = x""yes; then :
15078 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15085 $as_echo_n "checking for __attribute__... " >&6; }
15086 if test "${ac_cv___attribute__+set}" = set; then :
15087 $as_echo_n "(cached) " >&6
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 #include <stdlib.h>
15093 static void foo(void) __attribute__ ((unused));
15094 void foo(void) { exit(1); }
15103 if ac_fn_cxx_try_compile "$LINENO"; then :
15104 ac_cv___attribute__=yes
15106 ac_cv___attribute__=no
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 if test "$ac_cv___attribute__" = "yes"; then
15114 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15118 $as_echo "$ac_cv___attribute__" >&6; }
15120 # We only care about these two attributes.
15121 if test x"$ac_cv___attribute__" = x"yes"; then
15122 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15123 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15125 ac_cv___attribute___noreturn=
15126 ac_cv___attribute___printf_4_5=
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15131 $as_echo_n "checking for __builtin_expect... " >&6; }
15132 if test "${ac_cv___builtin_expect+set}" = set; then :
15133 $as_echo_n "(cached) " >&6
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15147 if ac_fn_cxx_try_compile "$LINENO"; then :
15148 ac_cv___builtin_expect=yes
15150 ac_cv___builtin_expect=no
15153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156 if test "$ac_cv___builtin_expect" = "yes"; then
15158 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15162 $as_echo "$ac_cv___builtin_expect" >&6; }
15164 if test x"$ac_cv___builtin_expect" = x"yes"; then
15165 ac_cv_have___builtin_expect=1
15167 ac_cv_have___builtin_expect=0
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15172 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15173 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then :
15174 $as_echo_n "(cached) " >&6
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15183 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15188 if ac_fn_cxx_try_link "$LINENO"; then :
15189 ac_cv___sync_val_compare_and_swap=yes
15191 ac_cv___sync_val_compare_and_swap=no
15194 rm -f core conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15198 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15200 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15204 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15207 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15208 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15209 # Check whether --enable-frame_pointers was given.
15210 if test "${enable_frame_pointers+set}" = set; then :
15211 enableval=$enable_frame_pointers;
15213 enable_frame_pointers=no
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15222 return __x86_64__ == 1 ? 0 : 1
15227 if ac_fn_cxx_try_compile "$LINENO"; then :
15232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15233 if test "$enable_frame_pointers" = yes; then
15234 ENABLE_FRAME_POINTERS_TRUE=
15235 ENABLE_FRAME_POINTERS_FALSE='#'
15237 ENABLE_FRAME_POINTERS_TRUE='#'
15238 ENABLE_FRAME_POINTERS_FALSE=
15241 if test "$is_x86_64" = yes; then
15250 # Check whether --enable-rtti was given.
15251 if test "${enable_rtti+set}" = set; then :
15252 enableval=$enable_rtti;
15255 if test x"$enable_rtti" = x"no"; then
15257 DISABLE_RTTI_FALSE='#'
15259 DISABLE_RTTI_TRUE='#'
15260 DISABLE_RTTI_FALSE=
15263 if test x"$enable_rtti" = x"no"; then
15265 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
15269 # Some of the code in this directory depends on pthreads
15274 ac_cpp='$CPP $CPPFLAGS'
15275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15281 # We used to check for pthread.h first, but this fails if pthread.h
15282 # requires special compiler flags (e.g. on True64 or Sequent).
15283 # It gets checked for in the link test anyway.
15285 # First of all, check if the user has set any of the PTHREAD_LIBS,
15286 # etcetera environment variables, and if threads linking works using
15288 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15289 save_CFLAGS="$CFLAGS"
15290 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15292 LIBS="$PTHREAD_LIBS $LIBS"
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15294 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15298 /* Override any GCC internal prototype to avoid an error.
15299 Use char because int might match the return type of a GCC
15300 builtin and then its argument prototype would still apply. */
15304 char pthread_join ();
15308 return pthread_join ();
15313 if ac_fn_c_try_link "$LINENO"; then :
15316 rm -f core conftest.err conftest.$ac_objext \
15317 conftest$ac_exeext conftest.$ac_ext
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15319 $as_echo "$acx_pthread_ok" >&6; }
15320 if test x"$acx_pthread_ok" = xno; then
15325 CFLAGS="$save_CFLAGS"
15328 # We must check for the threads library under a number of different
15329 # names; the ordering is very important because some systems
15330 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15331 # libraries is broken (non-POSIX).
15333 # Create a list of thread flags to try. Items starting with a "-" are
15334 # C compiler flags, and other items are library names, except for "none"
15335 # which indicates that we try without any flags at all, and "pthread-config"
15336 # which is a program returning the flags for the Pth emulation library.
15338 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15340 # The ordering *is* (sometimes) important. Some notes on the
15341 # individual items follow:
15343 # pthreads: AIX (must check this before -lpthread)
15344 # none: in case threads are in libc; should be tried before -Kthread and
15345 # other compiler flags to prevent continual compiler warnings
15346 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15347 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15348 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15349 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15350 # -pthreads: Solaris/gcc
15351 # -mthreads: Mingw32/gcc, Lynx/gcc
15352 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15353 # doesn't hurt to check since this sometimes defines pthreads too;
15354 # also defines -D_REENTRANT)
15355 # ... -mt is also the pthreads flag for HP/aCC
15356 # pthread: Linux, etcetera
15357 # --thread-safe: KAI C++
15358 # pthread-config: use pthread-config program (for GNU Pth library)
15360 case "${host_cpu}-${host_os}" in
15363 # On Solaris (at least, for some versions), libc contains stubbed
15364 # (non-functional) versions of the pthreads routines, so link-based
15365 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15366 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15367 # a function called by this macro, so we could check for that, but
15368 # who knows whether they'll stub that too in a future libc.) So,
15369 # we'll just look for -pthreads and -lpthread first:
15371 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15375 if test x"$acx_pthread_ok" = xno; then
15376 for flag in $acx_pthread_flags; do
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15381 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15386 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15387 PTHREAD_CFLAGS="$flag"
15391 # Extract the first word of "pthread-config", so it can be a program name with args.
15392 set dummy pthread-config; ac_word=$2
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15394 $as_echo_n "checking for $ac_word... " >&6; }
15395 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
15396 $as_echo_n "(cached) " >&6
15398 if test -n "$acx_pthread_config"; then
15399 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15402 for as_dir in $PATH
15405 test -z "$as_dir" && as_dir=.
15406 for ac_exec_ext in '' $ac_executable_extensions; do
15407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15408 ac_cv_prog_acx_pthread_config="yes"
15409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15416 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15419 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15420 if test -n "$acx_pthread_config"; then
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15422 $as_echo "$acx_pthread_config" >&6; }
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15425 $as_echo "no" >&6; }
15429 if test x"$acx_pthread_config" = xno; then continue; fi
15430 PTHREAD_CFLAGS="`pthread-config --cflags`"
15431 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15436 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15437 PTHREAD_LIBS="-l$flag"
15442 save_CFLAGS="$CFLAGS"
15443 LIBS="$PTHREAD_LIBS $LIBS"
15444 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15446 # Check for various functions. We must include pthread.h,
15447 # since some functions may be macros. (On the Sequent, we
15448 # need a special flag -Kthread to make this header compile.)
15449 # We check for pthread_join because it is in -lpthread on IRIX
15450 # while pthread_create is in libc. We check for pthread_attr_init
15451 # due to DEC craziness with -lpthreads. We check for
15452 # pthread_cleanup_push because it is one of the few pthread
15453 # functions on Solaris that doesn't have a non-functional libc stub.
15454 # We try pthread_create on general principles.
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457 #include <pthread.h>
15461 pthread_t th; pthread_join(th, 0);
15462 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15463 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15468 if ac_fn_c_try_link "$LINENO"; then :
15471 rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext conftest.$ac_ext
15475 CFLAGS="$save_CFLAGS"
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15478 $as_echo "$acx_pthread_ok" >&6; }
15479 if test "x$acx_pthread_ok" = xyes; then
15488 # Various other checks:
15489 if test "x$acx_pthread_ok" = xyes; then
15491 LIBS="$PTHREAD_LIBS $LIBS"
15492 save_CFLAGS="$CFLAGS"
15493 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15495 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15497 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15499 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502 #include <pthread.h>
15506 int attr=$attr; return attr;
15511 if ac_fn_c_try_link "$LINENO"; then :
15512 attr_name=$attr; break
15514 rm -f core conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15518 $as_echo "$attr_name" >&6; }
15519 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define PTHREAD_CREATE_JOINABLE $attr_name
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15528 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15530 case "${host_cpu}-${host_os}" in
15531 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15532 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15535 $as_echo "${flag}" >&6; }
15536 if test "x$flag" != xno; then
15537 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15541 CFLAGS="$save_CFLAGS"
15542 # More AIX lossage: must compile with xlc_r or cc_r
15543 if test x"$GCC" != xyes; then
15544 for ac_prog in xlc_r cc_r
15546 # Extract the first word of "$ac_prog", so it can be a program name with args.
15547 set dummy $ac_prog; ac_word=$2
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549 $as_echo_n "checking for $ac_word... " >&6; }
15550 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15551 $as_echo_n "(cached) " >&6
15553 if test -n "$PTHREAD_CC"; then
15554 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $PATH
15560 test -z "$as_dir" && as_dir=.
15561 for ac_exec_ext in '' $ac_executable_extensions; do
15562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15563 ac_cv_prog_PTHREAD_CC="$ac_prog"
15564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15573 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15574 if test -n "$PTHREAD_CC"; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15576 $as_echo "$PTHREAD_CC" >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579 $as_echo "no" >&6; }
15583 test -n "$PTHREAD_CC" && break
15585 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15591 # The next part tries to detect GCC inconsistency with -shared on some
15592 # architectures and systems. The problem is that in certain
15593 # configurations, when -shared is specified, GCC "forgets" to
15594 # internally use various flags which are still necessary.
15597 # Prepare the flags
15599 save_CFLAGS="$CFLAGS"
15603 # Try with the flags determined by the earlier checks.
15605 # -Wl,-z,defs forces link-time symbol resolution, so that the
15606 # linking checks with -shared actually have any value
15608 # FIXME: -fPIC is required for -shared on many architectures,
15609 # so we specify it here, but the right way would probably be to
15610 # properly detect whether it is actually required.
15611 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15612 LIBS="$PTHREAD_LIBS $LIBS"
15615 # In order not to create several levels of indentation, we test
15616 # the value of "$done" until we find the cure or run out of ideas.
15619 # First, make sure the CFLAGS we added are actually accepted by our
15620 # compiler. If not (and OS X's ld, for instance, does not accept -z),
15621 # then we can't do this test.
15622 if test x"$done" = xno; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15624 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15636 if ac_fn_c_try_link "$LINENO"; then :
15641 rm -f core conftest.err conftest.$ac_objext \
15642 conftest$ac_exeext conftest.$ac_ext
15644 if test "x$done" = xyes ; then
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646 $as_echo "no" >&6; }
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15649 $as_echo "yes" >&6; }
15653 if test x"$done" = xno; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15655 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 #include <pthread.h>
15662 pthread_t th; pthread_join(th, 0);
15663 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15664 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15669 if ac_fn_c_try_link "$LINENO"; then :
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15675 if test "x$done" = xyes; then
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15677 $as_echo "yes" >&6; }
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680 $as_echo "no" >&6; }
15685 # Linux gcc on some architectures such as mips/mipsel forgets
15688 if test x"$done" = xno; then
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15690 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
15691 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15694 #include <pthread.h>
15698 pthread_t th; pthread_join(th, 0);
15699 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15700 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15705 if ac_fn_c_try_link "$LINENO"; then :
15708 rm -f core conftest.err conftest.$ac_objext \
15709 conftest$ac_exeext conftest.$ac_ext
15711 if test "x$done" = xyes; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15713 $as_echo "yes" >&6; }
15714 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15721 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15723 if test x"$done" = xno; then
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15725 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
15726 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15729 #include <pthread.h>
15733 pthread_t th; pthread_join(th, 0);
15734 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15735 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15740 if ac_fn_c_try_link "$LINENO"; then :
15743 rm -f core conftest.err conftest.$ac_objext \
15744 conftest$ac_exeext conftest.$ac_ext
15746 if test "x$done" = xyes; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15748 $as_echo "yes" >&6; }
15749 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752 $as_echo "no" >&6; }
15755 if test x"$done" = xno; then
15756 # OK, we have run out of ideas
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15758 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15760 # so it's not safe to assume that we may use pthreads
15764 CFLAGS="$save_CFLAGS"
15775 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15776 if test x"$acx_pthread_ok" = xyes; then
15778 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15786 ac_cpp='$CXXCPP $CPPFLAGS'
15787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15792 if test x"$acx_pthread_ok" = x"yes"; then
15793 # To make libglog depend on libpthread on Linux, we need to add
15794 # -lpthread in addition to -pthread.
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
15796 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
15797 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
15798 $as_echo_n "(cached) " >&6
15800 ac_check_lib_save_LIBS=$LIBS
15801 LIBS="-lpthread $LIBS"
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15805 /* Override any GCC internal prototype to avoid an error.
15806 Use char because int might match the return type of a GCC
15807 builtin and then its argument prototype would still apply. */
15811 char pthread_self ();
15815 return pthread_self ();
15820 if ac_fn_cxx_try_link "$LINENO"; then :
15821 ac_cv_lib_pthread_pthread_self=yes
15823 ac_cv_lib_pthread_pthread_self=no
15825 rm -f core conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
15827 LIBS=$ac_check_lib_save_LIBS
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
15830 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
15831 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
15832 cat >>confdefs.h <<_ACEOF
15833 #define HAVE_LIBPTHREAD 1
15836 LIBS="-lpthread $LIBS"
15842 # Check if there is google-gflags library installed.
15843 SAVE_CFLAGS="$CFLAGS"
15846 # Check whether --with-gflags was given.
15847 if test "${with_gflags+set}" = set; then :
15848 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
15849 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
15850 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
15851 LIBS="$LIBS $GFLAGS_LIBS"
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
15856 $as_echo_n "checking for main in -lgflags... " >&6; }
15857 if test "${ac_cv_lib_gflags_main+set}" = set; then :
15858 $as_echo_n "(cached) " >&6
15860 ac_check_lib_save_LIBS=$LIBS
15861 LIBS="-lgflags $LIBS"
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15874 if ac_fn_cxx_try_link "$LINENO"; then :
15875 ac_cv_lib_gflags_main=yes
15877 ac_cv_lib_gflags_main=no
15879 rm -f core conftest.err conftest.$ac_objext \
15880 conftest$ac_exeext conftest.$ac_ext
15881 LIBS=$ac_check_lib_save_LIBS
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
15884 $as_echo "$ac_cv_lib_gflags_main" >&6; }
15885 if test "x$ac_cv_lib_gflags_main" = x""yes; then :
15886 ac_cv_have_libgflags=1
15888 ac_cv_have_libgflags=0
15891 if test x"$ac_cv_have_libgflags" = x"1"; then
15893 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
15895 if test x"$GFLAGS_LIBS" = x""; then
15896 GFLAGS_LIBS="-lgflags"
15902 CFLAGS="$SAVE_CFLAGS"
15905 # TODO(hamaji): Use official m4 macros provided by testing libraries
15906 # once the m4 macro of Google Mocking becomes ready.
15907 # Check if there is Google Test library installed.
15908 # Extract the first word of "gtest-config", so it can be a program name with args.
15909 set dummy gtest-config; ac_word=$2
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15911 $as_echo_n "checking for $ac_word... " >&6; }
15912 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then :
15913 $as_echo_n "(cached) " >&6
15915 if test -n "$GTEST_CONFIG"; then
15916 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
15918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919 for as_dir in $PATH
15922 test -z "$as_dir" && as_dir=.
15923 for ac_exec_ext in '' $ac_executable_extensions; do
15924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15925 ac_cv_prog_GTEST_CONFIG=""yes""
15926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15935 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
15936 if test -n "$GTEST_CONFIG"; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
15938 $as_echo "$GTEST_CONFIG" >&6; }
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15945 if test x"$GTEST_CONFIG" = "xyes"; then
15946 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
15947 GTEST_LIBS=`gtest-config --ldflags --libs`
15949 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
15952 # Check if there is Google Mocking library installed.
15953 # Extract the first word of "gmock-config", so it can be a program name with args.
15954 set dummy gmock-config; ac_word=$2
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15956 $as_echo_n "checking for $ac_word... " >&6; }
15957 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then :
15958 $as_echo_n "(cached) " >&6
15960 if test -n "$GMOCK_CONFIG"; then
15961 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
15963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15964 for as_dir in $PATH
15967 test -z "$as_dir" && as_dir=.
15968 for ac_exec_ext in '' $ac_executable_extensions; do
15969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15970 ac_cv_prog_GMOCK_CONFIG=""yes""
15971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15980 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
15981 if test -n "$GMOCK_CONFIG"; then
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
15983 $as_echo "$GMOCK_CONFIG" >&6; }
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15986 $as_echo "no" >&6; }
15990 if test x"$GMOCK_CONFIG" = "xyes"; then
15991 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
15992 GMOCK_LIBS=`gmock-config --ldflags --libs`
15994 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
15997 # We don't run test cases which use Google Mocking framework.
16002 # We'll use src/googletest.h for our unittests.
16006 if test x"$GMOCK_CONFIG" = "xyes"; then
16008 HAVE_GMOCK_FALSE='#'
16010 HAVE_GMOCK_TRUE='#'
16015 # We want to link in libunwind if it exists
16017 # Unfortunately, we need to check the header file in addition to the
16018 # lib file to check if libunwind is available since libunwind-0.98
16019 # doesn't install all necessary header files.
16020 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16022 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16023 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
16024 $as_echo_n "(cached) " >&6
16026 ac_check_lib_save_LIBS=$LIBS
16027 LIBS="-lunwind $LIBS"
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16031 /* Override any GCC internal prototype to avoid an error.
16032 Use char because int might match the return type of a GCC
16033 builtin and then its argument prototype would still apply. */
16041 return backtrace ();
16046 if ac_fn_cxx_try_link "$LINENO"; then :
16047 ac_cv_lib_unwind_backtrace=yes
16049 ac_cv_lib_unwind_backtrace=no
16051 rm -f core conftest.err conftest.$ac_objext \
16052 conftest$ac_exeext conftest.$ac_ext
16053 LIBS=$ac_check_lib_save_LIBS
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16056 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16057 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
16058 UNWIND_LIBS=-lunwind
16063 if test x"$UNWIND_LIBS" != x""; then
16065 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16069 # We'd like to use read/write locks in several places in the code.
16070 # See if our pthreads support extends to that. Note: for linux, it
16071 # does as long as you define _XOPEN_SOURCE appropriately.
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16073 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16074 if test "${ac_cv_rwlock+set}" = set; then :
16075 $as_echo_n "(cached) " >&6
16079 ac_cpp='$CPP $CPPFLAGS'
16080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 #define _XOPEN_SOURCE 500
16087 #include <pthread.h>
16091 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16092 pthread_rwlock_rdlock(&l);
16098 if ac_fn_c_try_compile "$LINENO"; then :
16103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105 ac_cpp='$CXXCPP $CPPFLAGS'
16106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16113 $as_echo "$ac_cv_rwlock" >&6; }
16114 if test "$ac_cv_rwlock" = yes; then
16116 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16121 # Find out what namespace 'normal' STL code lives in, and also what namespace
16122 # the user wants our classes to be defined in
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16124 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16125 if test "${ac_cv_cxx_namespaces+set}" = set; then :
16126 $as_echo_n "(cached) " >&6
16130 ac_cpp='$CXXCPP $CPPFLAGS'
16131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16138 namespace Inner { int i = 0; }}
16142 using namespace Outer::Inner; return i;
16147 if ac_fn_cxx_try_compile "$LINENO"; then :
16148 ac_cv_cxx_namespaces=yes
16150 ac_cv_cxx_namespaces=no
16152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16154 ac_cpp='$CXXCPP $CPPFLAGS'
16155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16161 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16162 if test "$ac_cv_cxx_namespaces" = yes; then
16164 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16168 $as_echo_n "checking what namespace STL code is in... " >&6; }
16169 if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
16170 $as_echo_n "(cached) " >&6
16175 ac_cpp='$CXXCPP $CPPFLAGS'
16176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16186 vector<int> t; return 0;
16191 if ac_fn_cxx_try_compile "$LINENO"; then :
16192 ac_cv_cxx_stl_namespace=none
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16201 std::vector<int> t; return 0;
16206 if ac_fn_cxx_try_compile "$LINENO"; then :
16207 ac_cv_cxx_stl_namespace=std
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 ac_cpp='$CXXCPP $CPPFLAGS'
16212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16218 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16219 if test "$ac_cv_cxx_stl_namespace" = none; then
16221 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16224 if test "$ac_cv_cxx_stl_namespace" = std; then
16226 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16230 google_namespace_default=google
16231 # Check whether --enable-namespace was given.
16232 if test "${enable_namespace+set}" = set; then :
16233 enableval=$enable_namespace; case "$enableval" in
16234 yes) google_namespace="$google_namespace_default" ;;
16235 no) google_namespace="" ;;
16236 *) google_namespace="$enableval" ;;
16239 google_namespace="$google_namespace_default"
16242 if test -n "$google_namespace"; then
16243 ac_google_namespace="$google_namespace"
16244 ac_google_start_namespace="namespace $google_namespace {"
16245 ac_google_end_namespace="}"
16247 ac_google_namespace=""
16248 ac_google_start_namespace=""
16249 ac_google_end_namespace=""
16252 cat >>confdefs.h <<_ACEOF
16253 #define GOOGLE_NAMESPACE $ac_google_namespace
16257 cat >>confdefs.h <<_ACEOF
16258 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16262 cat >>confdefs.h <<_ACEOF
16263 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16269 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16270 if test "${ac_cv_cxx_using_operator+set}" = set; then :
16271 $as_echo_n "(cached) " >&6
16275 ac_cpp='$CXXCPP $CPPFLAGS'
16276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16282 #include <iostream>
16283 std::ostream& operator<<(std::ostream&, struct s);
16287 using ::operator<<; return 0;
16292 if ac_fn_cxx_try_compile "$LINENO"; then :
16293 ac_cv_cxx_using_operator=1
16295 ac_cv_cxx_using_operator=0
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 ac_cpp='$CXXCPP $CPPFLAGS'
16300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
16306 $as_echo "$ac_cv_cxx_using_operator" >&6; }
16307 if test "$ac_cv_cxx_using_operator" = 1; then
16309 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
16313 for ac_header in ucontext.h
16315 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
16316 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
16317 cat >>confdefs.h <<_ACEOF
16318 #define HAVE_UCONTEXT_H 1
16325 for ac_header in sys/ucontext.h
16327 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
16328 if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then :
16329 cat >>confdefs.h <<_ACEOF
16330 #define HAVE_SYS_UCONTEXT_H 1
16336 # ucontext on OS X 10.6 (at least)
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
16338 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
16339 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
16340 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
16341 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
16342 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
16343 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
16344 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
16345 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
16346 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
16347 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
16348 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
16349 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
16350 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
16351 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
16352 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
16353 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
16354 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
16355 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
16356 pc_field_found=false
16357 for pc_field in $pc_fields; do
16358 if ! $pc_field_found; then
16359 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 #define _GNU_SOURCE 1
16363 #include <sys/ucontext.h>
16367 ucontext_t u; return u.$pc_field == 0;
16372 if ac_fn_cxx_try_compile "$LINENO"; then :
16374 cat >>confdefs.h <<_ACEOF
16375 #define PC_FROM_UCONTEXT $pc_field
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16379 $as_echo "$pc_field" >&6; }
16380 pc_field_found=true
16382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16386 #define _GNU_SOURCE 1
16387 #include <ucontext.h>
16391 ucontext_t u; return u.$pc_field == 0;
16396 if ac_fn_cxx_try_compile "$LINENO"; then :
16398 cat >>confdefs.h <<_ACEOF
16399 #define PC_FROM_UCONTEXT $pc_field
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16403 $as_echo "$pc_field" >&6; }
16404 pc_field_found=true
16406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410 if ! $pc_field_found; then
16411 pc_fields=" sc_eip" # OpenBSD (i386)
16412 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
16413 for pc_field in $pc_fields; do
16414 if ! $pc_field_found; then
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 #include <signal.h>
16421 ucontext_t u; return u.$pc_field == 0;
16426 if ac_fn_cxx_try_compile "$LINENO"; then :
16428 cat >>confdefs.h <<_ACEOF
16429 #define PC_FROM_UCONTEXT $pc_field
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16433 $as_echo "$pc_field" >&6; }
16434 pc_field_found=true
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440 if ! $pc_field_found; then
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
16442 $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
16446 cat >>confdefs.h <<_ACEOF
16447 #define TEST_SRC_DIR "$srcdir"
16451 # These are what's needed by logging.h.in and raw_logging.h.in
16474 # Write generated configuration file
16475 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
16477 ac_config_files="$ac_config_files libglog.pc"
16479 cat >confcache <<\_ACEOF
16480 # This file is a shell script that caches the results of configure
16481 # tests run on this system so they can be shared between configure
16482 # scripts and configure runs, see configure's option --config-cache.
16483 # It is not useful on other systems. If it contains results you don't
16484 # want to keep, you may remove or edit it.
16486 # config.status only pays attention to the cache file if you give it
16487 # the --recheck option to rerun configure.
16489 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16491 # following values.
16495 # The following way of writing the cache mishandles newlines in values,
16496 # but we know of no workaround that is simple, portable, and efficient.
16497 # So, we kill variables containing newlines.
16498 # Ultrix sh set writes to stderr and can't be redirected directly,
16499 # and sets the high bit in the cache file unless we assign to the vars.
16501 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16502 eval ac_val=\$$ac_var
16506 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16507 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16510 _ | IFS | as_nl) ;; #(
16511 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16512 *) { eval $ac_var=; unset $ac_var;} ;;
16518 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16519 *${as_nl}ac_space=\ *)
16520 # `set' does not quote correctly, so add quotes: double-quote
16521 # substitution turns \\\\ into \\, and sed turns \\ into \.
16524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16527 # `set' quotes correctly as required by POSIX, so do not add quotes.
16528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16537 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16539 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16541 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16542 if test -w "$cache_file"; then
16543 test "x$cache_file" != "x/dev/null" &&
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16545 $as_echo "$as_me: updating cache $cache_file" >&6;}
16546 cat confcache >$cache_file
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16549 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16555 # Let make expand exec_prefix.
16556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16558 DEFS=-DHAVE_CONFIG_H
16562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16563 # 1. Remove the extension, and $U if already installed.
16564 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16565 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16566 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16567 # will be set to the directory where LIBOBJS objects are built.
16568 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16569 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16571 LIBOBJS=$ac_libobjs
16573 LTLIBOBJS=$ac_ltlibobjs
16576 if test -n "$EXEEXT"; then
16578 am__EXEEXT_FALSE='#'
16580 am__EXEEXT_TRUE='#'
16584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16585 as_fn_error "conditional \"AMDEP\" was never defined.
16586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16588 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16589 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16592 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16593 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16596 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
16597 as_fn_error "conditional \"GCC\" was never defined.
16598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16600 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16601 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16604 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
16605 as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16608 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
16609 as_fn_error "conditional \"X86_64\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16612 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
16613 as_fn_error "conditional \"DISABLE_RTTI\" was never defined.
16614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16616 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
16617 as_fn_error "conditional \"HAVE_GMOCK\" was never defined.
16618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16621 : ${CONFIG_STATUS=./config.status}
16623 ac_clean_files_save=$ac_clean_files
16624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16626 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16628 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16630 # Generated by $as_me.
16631 # Run this file to recreate the current configuration.
16632 # Compiler output produced by configure, useful for debugging
16633 # configure, is in config.log if it exists.
16636 ac_cs_recheck=false
16639 SHELL=\${CONFIG_SHELL-$SHELL}
16642 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16643 ## -------------------- ##
16644 ## M4sh Initialization. ##
16645 ## -------------------- ##
16647 # Be more Bourne compatible
16648 DUALCASE=1; export DUALCASE # for MKS sh
16649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16653 # is contrary to our usage. Disable this feature.
16654 alias -g '${1+"$@"}'='"$@"'
16655 setopt NO_GLOB_SUBST
16657 case `(set -o) 2>/dev/null` in #(
16669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16670 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16673 # Prefer a ksh shell builtin over an external printf program on Solaris,
16674 # but without wasting forks for bash or zsh.
16675 if test -z "$BASH_VERSION$ZSH_VERSION" \
16676 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16677 as_echo='print -r --'
16678 as_echo_n='print -rn --'
16679 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16680 as_echo='printf %s\n'
16681 as_echo_n='printf %s'
16683 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16684 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16685 as_echo_n='/usr/ucb/echo -n'
16687 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16688 as_echo_n_body='eval
16692 expr "X$arg" : "X\\(.*\\)$as_nl";
16693 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16695 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16697 export as_echo_n_body
16698 as_echo_n='sh -c $as_echo_n_body as_echo'
16700 export as_echo_body
16701 as_echo='sh -c $as_echo_body as_echo'
16704 # The user is always right.
16705 if test "${PATH_SEPARATOR+set}" != set; then
16707 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16708 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16715 # We need space, tab and new line, in precisely that order. Quoting is
16716 # there to prevent editors from complaining about space-tab.
16717 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16718 # splitting by setting IFS to empty value.)
16721 # Find who we are. Look in the path if we contain no directory separator.
16723 *[\\/]* ) as_myself=$0 ;;
16724 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16725 for as_dir in $PATH
16728 test -z "$as_dir" && as_dir=.
16729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16735 # We did not find ourselves, most probably we were run as `sh COMMAND'
16736 # in which case we are not to be found in the path.
16737 if test "x$as_myself" = x; then
16740 if test ! -f "$as_myself"; then
16741 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16745 # Unset variables that we do not need and which cause bugs (e.g. in
16746 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16747 # suppresses any "Segmentation fault" message there. '((' could
16748 # trigger a bug in pdksh 5.2.14.
16749 for as_var in BASH_ENV ENV MAIL MAILPATH
16750 do eval test x\${$as_var+set} = xset \
16751 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16767 # as_fn_error ERROR [LINENO LOG_FD]
16768 # ---------------------------------
16769 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16770 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16771 # script with status $?, using 1 if that was 0.
16774 as_status=$?; test $as_status -eq 0 && as_status=1
16776 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16777 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16779 $as_echo "$as_me: error: $1" >&2
16780 as_fn_exit $as_status
16784 # as_fn_set_status STATUS
16785 # -----------------------
16786 # Set $? to STATUS, without forking.
16787 as_fn_set_status ()
16790 } # as_fn_set_status
16792 # as_fn_exit STATUS
16793 # -----------------
16794 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16798 as_fn_set_status $1
16804 # Portably unset VAR.
16807 { eval $1=; unset $1;}
16809 as_unset=as_fn_unset
16810 # as_fn_append VAR VALUE
16811 # ----------------------
16812 # Append the text in VALUE to the end of the definition contained in VAR. Take
16813 # advantage of any shell optimizations that allow amortized linear growth over
16814 # repeated appends, instead of the typical quadratic growth present in naive
16816 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16817 eval 'as_fn_append ()
16828 # as_fn_arith ARG...
16829 # ------------------
16830 # Perform arithmetic evaluation on the ARGs, and store the result in the
16831 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16832 # must be portable across $(()) and expr.
16833 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16834 eval 'as_fn_arith ()
16841 as_val=`expr "$@" || test $? -eq 1`
16846 if expr a : '\(a\)' >/dev/null 2>&1 &&
16847 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16854 as_basename=basename
16859 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16865 as_me=`$as_basename -- "$0" ||
16866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16867 X"$0" : 'X\(//\)$' \| \
16868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16870 sed '/^.*\/\([^/][^/]*\)\/*$/{
16884 # Avoid depending upon Character Ranges.
16885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16888 as_cr_digits='0123456789'
16889 as_cr_alnum=$as_cr_Letters$as_cr_digits
16891 ECHO_C= ECHO_N= ECHO_T=
16892 case `echo -n x` in #(((((
16894 case `echo 'xy\c'` in
16895 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16897 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16904 rm -f conf$$ conf$$.exe conf$$.file
16905 if test -d conf$$.dir; then
16906 rm -f conf$$.dir/conf$$.file
16909 mkdir conf$$.dir 2>/dev/null
16911 if (echo >conf$$.file) 2>/dev/null; then
16912 if ln -s conf$$.file conf$$ 2>/dev/null; then
16914 # ... but there are two gotchas:
16915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16917 # In both cases, we have to default to `cp -p'.
16918 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16920 elif ln conf$$.file conf$$ 2>/dev/null; then
16928 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16929 rmdir conf$$.dir 2>/dev/null
16934 # Create "$as_dir" as a directory, including parents if necessary.
16939 -*) as_dir=./$as_dir;;
16941 test -d "$as_dir" || eval $as_mkdir_p || {
16945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16946 *) as_qdir=$as_dir;;
16948 as_dirs="'$as_qdir' $as_dirs"
16949 as_dir=`$as_dirname -- "$as_dir" ||
16950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16951 X"$as_dir" : 'X\(//\)[^/]' \| \
16952 X"$as_dir" : 'X\(//\)$' \| \
16953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16954 $as_echo X"$as_dir" |
16955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16959 /^X\(\/\/\)[^/].*/{
16972 test -d "$as_dir" && break
16974 test -z "$as_dirs" || eval "mkdir $as_dirs"
16975 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16979 if mkdir -p . 2>/dev/null; then
16980 as_mkdir_p='mkdir -p "$as_dir"'
16982 test -d ./-p && rmdir ./-p
16986 if test -x / >/dev/null 2>&1; then
16987 as_test_x='test -x'
16989 if ls -dL / >/dev/null 2>&1; then
16996 if test -d "$1"; then
17002 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17003 ???[sx]*):;;*)false;;esac;fi
17007 as_executable_p=$as_test_x
17009 # Sed expression to map a string onto a valid CPP name.
17010 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17012 # Sed expression to map a string onto a valid variable name.
17013 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17017 ## ----------------------------------- ##
17018 ## Main body of $CONFIG_STATUS script. ##
17019 ## ----------------------------------- ##
17021 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17024 # Save the log message, to keep $0 and so on meaningful, and to
17025 # report actual input values of CONFIG_FILES etc. instead of their
17026 # values after options handling.
17028 This file was extended by glog $as_me 0.3.2, which was
17029 generated by GNU Autoconf 2.65. Invocation command line was
17031 CONFIG_FILES = $CONFIG_FILES
17032 CONFIG_HEADERS = $CONFIG_HEADERS
17033 CONFIG_LINKS = $CONFIG_LINKS
17034 CONFIG_COMMANDS = $CONFIG_COMMANDS
17037 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17042 case $ac_config_files in *"
17043 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17046 case $ac_config_headers in *"
17047 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17052 # Files that config.status was made for.
17053 config_files="$ac_config_files"
17054 config_headers="$ac_config_headers"
17055 config_commands="$ac_config_commands"
17059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17061 \`$as_me' instantiates files and other configuration actions
17062 from templates according to the current configuration. Unless the files
17063 and actions are specified as TAGs, all are instantiated by default.
17065 Usage: $0 [OPTION]... [TAG]...
17067 -h, --help print this help, then exit
17068 -V, --version print version number and configuration settings, then exit
17069 --config print configuration, then exit
17070 -q, --quiet, --silent
17071 do not print progress messages
17072 -d, --debug don't remove temporary files
17073 --recheck update $as_me by reconfiguring in the same conditions
17074 --file=FILE[:TEMPLATE]
17075 instantiate the configuration file FILE
17076 --header=FILE[:TEMPLATE]
17077 instantiate the configuration header FILE
17079 Configuration files:
17082 Configuration headers:
17085 Configuration commands:
17088 Report bugs to <opensource@google.com>."
17091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17092 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17094 glog config.status 0.3.2
17095 configured by $0, generated by GNU Autoconf 2.65,
17096 with options \\"\$ac_cs_config\\"
17098 Copyright (C) 2009 Free Software Foundation, Inc.
17099 This config.status script is free software; the Free Software Foundation
17100 gives unlimited permission to copy, distribute and modify it."
17107 test -n "\$AWK" || AWK=awk
17110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17111 # The default lists apply if the user does not specify any file.
17117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17129 # Handling of the options.
17130 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17132 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17133 $as_echo "$ac_cs_version"; exit ;;
17134 --config | --confi | --conf | --con | --co | --c )
17135 $as_echo "$ac_cs_config"; exit ;;
17136 --debug | --debu | --deb | --de | --d | -d )
17138 --file | --fil | --fi | --f )
17141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17143 as_fn_append CONFIG_FILES " '$ac_optarg'"
17144 ac_need_defaults=false;;
17145 --header | --heade | --head | --hea )
17148 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17150 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17151 ac_need_defaults=false;;
17153 # Conflict between --help and --header
17154 as_fn_error "ambiguous option: \`$1'
17155 Try \`$0 --help' for more information.";;
17156 --help | --hel | -h )
17157 $as_echo "$ac_cs_usage"; exit ;;
17158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17159 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17162 # This is an error.
17163 -*) as_fn_error "unrecognized option: \`$1'
17164 Try \`$0 --help' for more information." ;;
17166 *) as_fn_append ac_config_targets " $1"
17167 ac_need_defaults=false ;;
17173 ac_configure_extra_args=
17175 if $ac_cs_silent; then
17177 ac_configure_extra_args="$ac_configure_extra_args --silent"
17181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17182 if \$ac_cs_recheck; then
17183 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17185 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17186 CONFIG_SHELL='$SHELL'
17187 export CONFIG_SHELL
17192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17197 ## Running $as_me. ##
17203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17207 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17210 # The HP-UX ksh and POSIX shell print the target directory to stdout
17211 # if CDPATH is set.
17212 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17214 sed_quote_subst='$sed_quote_subst'
17215 double_quote_subst='$double_quote_subst'
17216 delay_variable_subst='$delay_variable_subst'
17217 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17218 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17219 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17220 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17221 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17222 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17223 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17224 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17225 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17226 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17227 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17228 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17229 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17230 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17231 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17232 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17233 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17234 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17235 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17236 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17237 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17238 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17239 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17240 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17241 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17242 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17243 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17244 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17245 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17246 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17247 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17248 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17249 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17250 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17251 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17252 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17253 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17254 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17255 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17256 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17257 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17258 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17259 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17260 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17261 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"`'
17262 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"`'
17263 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17264 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17265 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17266 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17267 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17268 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17269 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17270 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17271 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17272 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17273 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17274 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17275 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17276 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17277 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17278 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17279 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17280 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17281 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17282 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17283 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17284 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17285 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17286 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17287 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17288 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17289 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17290 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17291 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17292 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17293 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17294 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17295 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17296 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17297 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17298 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17299 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17300 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17301 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17302 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17303 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17304 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17305 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17306 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17307 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17308 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17309 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17310 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17311 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17312 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17313 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17314 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17315 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17316 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17317 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17318 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17319 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17320 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17321 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17322 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17323 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17324 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17325 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17326 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17327 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17328 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17329 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17330 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17331 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17332 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17333 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17334 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17335 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17336 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17337 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17338 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17339 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17340 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17341 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17342 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17343 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17344 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17345 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17346 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17347 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17348 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17349 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17350 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17351 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17352 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17353 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17354 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17355 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17356 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17357 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17358 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17359 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17360 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17361 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17362 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17363 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17364 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17365 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17366 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17367 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17368 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17369 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17370 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17371 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17372 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17373 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17374 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17375 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17376 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17377 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17378 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17379 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17380 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17381 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17382 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17383 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17384 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17385 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17386 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17387 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17390 LTCFLAGS='$LTCFLAGS'
17391 compiler='$compiler_DEFAULT'
17393 # Quote evaled strings.
17405 deplibs_check_method \
17414 lt_cv_sys_global_symbol_pipe \
17415 lt_cv_sys_global_symbol_to_cdecl \
17416 lt_cv_sys_global_symbol_to_c_name_address \
17417 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17420 lt_prog_compiler_no_builtin_flag \
17421 lt_prog_compiler_wl \
17422 lt_prog_compiler_pic \
17423 lt_prog_compiler_static \
17424 lt_cv_prog_compiler_c_o \
17432 export_dynamic_flag_spec \
17433 whole_archive_flag_spec \
17434 compiler_needs_object \
17436 allow_undefined_flag \
17437 no_undefined_flag \
17438 hardcode_libdir_flag_spec \
17439 hardcode_libdir_flag_spec_ld \
17440 hardcode_libdir_separator \
17445 variables_saved_for_relink \
17447 library_names_spec \
17452 compiler_lib_search_dirs \
17457 compiler_lib_search_path \
17460 lt_prog_compiler_no_builtin_flag_CXX \
17461 lt_prog_compiler_wl_CXX \
17462 lt_prog_compiler_pic_CXX \
17463 lt_prog_compiler_static_CXX \
17464 lt_cv_prog_compiler_c_o_CXX \
17465 export_dynamic_flag_spec_CXX \
17466 whole_archive_flag_spec_CXX \
17467 compiler_needs_object_CXX \
17469 allow_undefined_flag_CXX \
17470 no_undefined_flag_CXX \
17471 hardcode_libdir_flag_spec_CXX \
17472 hardcode_libdir_flag_spec_ld_CXX \
17473 hardcode_libdir_separator_CXX \
17474 fix_srcfile_path_CXX \
17475 exclude_expsyms_CXX \
17476 include_expsyms_CXX \
17477 file_list_spec_CXX \
17478 compiler_lib_search_dirs_CXX \
17479 predep_objects_CXX \
17480 postdep_objects_CXX \
17483 compiler_lib_search_path_CXX; do
17484 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17485 *[\\\\\\\`\\"\\\$]*)
17486 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17489 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17494 # Double-quote double-evaled strings.
17495 for var in reload_cmds \
17496 old_postinstall_cmds \
17497 old_postuninstall_cmds \
17499 extract_expsyms_cmds \
17500 old_archive_from_new_cmds \
17501 old_archive_from_expsyms_cmds \
17503 archive_expsym_cmds \
17505 module_expsym_cmds \
17506 export_symbols_cmds \
17509 postuninstall_cmds \
17511 sys_lib_search_path_spec \
17512 sys_lib_dlsearch_path_spec \
17513 old_archive_cmds_CXX \
17514 old_archive_from_new_cmds_CXX \
17515 old_archive_from_expsyms_cmds_CXX \
17517 archive_expsym_cmds_CXX \
17519 module_expsym_cmds_CXX \
17520 export_symbols_cmds_CXX \
17521 prelink_cmds_CXX; do
17522 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17523 *[\\\\\\\`\\"\\\$]*)
17524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17532 # Fix-up fallback echo if it was mangled by the above quoting rules.
17534 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17538 ac_aux_dir='$ac_aux_dir'
17539 xsi_shell='$xsi_shell'
17540 lt_shell_append='$lt_shell_append'
17542 # See if we are running on zsh, and set the options which allow our
17543 # commands through without removal of \ escapes INIT.
17544 if test -n "\${ZSH_VERSION+set}" ; then
17545 setopt NO_GLOB_SUBST
17551 TIMESTAMP='$TIMESTAMP'
17562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17564 # Handling of arguments.
17565 for ac_config_target in $ac_config_targets
17567 case $ac_config_target in
17568 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17569 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17570 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17571 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17572 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
17573 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
17574 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
17575 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
17576 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
17578 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17583 # If the user did not use the arguments to specify the items to instantiate,
17584 # then the envvar interface is used. Set only those that are not.
17585 # We use the long form for the default assignment because of an extremely
17586 # bizarre bug on SunOS 4.1.3.
17587 if $ac_need_defaults; then
17588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17593 # Have a temporary directory for convenience. Make it in the build tree
17594 # simply because there is no reason against having it here, and in addition,
17595 # creating and moving files from /tmp can sometimes cause problems.
17596 # Hook for its removal unless debugging.
17597 # Note that there is a small window in which the directory will not be cleaned:
17598 # after its creation but before its name has been assigned to `$tmp'.
17602 trap 'exit_status=$?
17603 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17605 trap 'as_fn_exit 1' 1 2 13 15
17607 # Create a (secure) tmp directory for tmp files.
17610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17611 test -n "$tmp" && test -d "$tmp"
17614 tmp=./conf$$-$RANDOM
17615 (umask 077 && mkdir "$tmp")
17616 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17618 # Set up the scripts for CONFIG_FILES section.
17619 # No need to generate them if there are no CONFIG_FILES.
17620 # This happens for instance with `./config.status config.h'.
17621 if test -n "$CONFIG_FILES"; then
17624 ac_cr=`echo X | tr X '\015'`
17625 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17626 # But we know of no other shell where ac_cr would be empty at this
17627 # point, so we can use a bashism as a fallback.
17628 if test "x$ac_cr" = x; then
17629 eval ac_cr=\$\'\\r\'
17631 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17635 ac_cs_awk_cr=$ac_cr
17638 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17643 echo "cat >conf$$subs.awk <<_ACEOF" &&
17644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17646 } >conf$$subs.sh ||
17647 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17650 for ac_last_try in false false false false false :; do
17651 . ./conf$$subs.sh ||
17652 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17654 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17655 if test $ac_delim_n = $ac_delim_num; then
17657 elif $ac_last_try; then
17658 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17663 rm -f conf$$subs.sh
17665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17666 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17670 s/^/S["/; s/!.*/"]=/
17680 s/\(.\{148\}\)..*/\1/
17682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17694 s/\(.\{148\}\)..*/\1/
17696 s/["\\]/\\&/g; s/^/"/; s/$/"/
17700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17705 ' <conf$$subs.awk | sed '
17710 ' >>$CONFIG_STATUS || ac_write_fail=1
17711 rm -f conf$$subs.awk
17712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17715 for (key in S) S_is_set[key] = 1
17721 nfields = split(line, field, "@")
17723 len = length(field[1])
17724 for (i = 2; i < nfields; i++) {
17726 keylen = length(key)
17727 if (S_is_set[key]) {
17729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17730 len += length(value) + length(field[++i])
17741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17746 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17747 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17752 # trailing colons and then remove the whole line if VPATH becomes empty
17753 # (actually we leave an empty line to preserve line numbers).
17754 if test "x$srcdir" = x.; then
17755 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17756 s/:*\$(srcdir):*/:/
17757 s/:*\${srcdir}:*/:/
17759 s/^\([^=]*=[ ]*\):*/\1/
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17766 fi # test -n "$CONFIG_FILES"
17768 # Set up the scripts for CONFIG_HEADERS section.
17769 # No need to generate them if there are no CONFIG_HEADERS.
17770 # This happens for instance with `./config.status Makefile'.
17771 if test -n "$CONFIG_HEADERS"; then
17772 cat >"$tmp/defines.awk" <<\_ACAWK ||
17776 # Transform confdefs.h into an awk script `defines.awk', embedded as
17777 # here-document in config.status, that substitutes the proper values into
17778 # config.h.in to produce config.h.
17780 # Create a delimiter string that does not exist in confdefs.h, to ease
17781 # handling of long lines.
17783 for ac_last_try in false false :; do
17784 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17785 if test -z "$ac_t"; then
17787 elif $ac_last_try; then
17788 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17794 # For the awk script, D is an array of macro values keyed by name,
17795 # likewise P contains macro parameters if any. Preserve backslash
17796 # newline sequences.
17798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17800 s/.\{148\}/&'"$ac_delim"'/g
17803 s/^[ ]*#[ ]*define[ ][ ]*/ /
17810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17812 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17817 D["\1"]=" \3\\\\\\n"\\/p
17819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17824 s/.\{148\}/&'"$ac_delim"'/g
17829 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17832 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17834 ' <confdefs.h | sed '
17835 s/'"$ac_delim"'/"\\\
17836 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17839 for (key in D) D_is_set[key] = 1
17842 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17844 split(line, arg, " ")
17845 if (arg[1] == "#") {
17849 defundef = substr(arg[1], 2)
17852 split(mac1, mac2, "(") #)
17854 prefix = substr(line, 1, index(line, defundef) - 1)
17855 if (D_is_set[macro]) {
17856 # Preserve the white space surrounding the "#".
17857 print prefix "define", macro P[macro] D[macro]
17860 # Replace #undef with comments. This is necessary, for example,
17861 # in the case of _POSIX_SOURCE, which is predefined and required
17862 # on some systems where configure will not decide to define it.
17863 if (defundef == "undef") {
17864 print "/*", prefix defundef, macro, "*/"
17872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17873 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17874 fi # test -n "$CONFIG_HEADERS"
17877 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17882 :[FHLC]) ac_mode=$ac_tag; continue;;
17884 case $ac_mode$ac_tag in
17886 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17887 :[FH]-) ac_tag=-:-;;
17888 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17905 -) ac_f="$tmp/stdin";;
17906 *) # Look for the file first in the build tree, then in the source tree
17907 # (if the path is not absolute). The absolute path cannot be DOS-style,
17908 # because $ac_f cannot contain `:'.
17912 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17914 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17916 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17917 as_fn_append ac_file_inputs " '$ac_f'"
17920 # Let's still pretend it is `configure' which instantiates (i.e., don't
17921 # use $as_me), people would be surprised to read:
17922 # /* config.h. Generated by config.status. */
17923 configure_input='Generated from '`
17924 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17926 if test x"$ac_file" != x-; then
17927 configure_input="$ac_file. $configure_input"
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17929 $as_echo "$as_me: creating $ac_file" >&6;}
17931 # Neutralize special characters interpreted by sed in replacement strings.
17932 case $configure_input in #(
17933 *\&* | *\|* | *\\* )
17934 ac_sed_conf_input=`$as_echo "$configure_input" |
17935 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17936 *) ac_sed_conf_input=$configure_input;;
17940 *:-:* | *:-) cat >"$tmp/stdin" \
17941 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17946 ac_dir=`$as_dirname -- "$ac_file" ||
17947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17948 X"$ac_file" : 'X\(//\)[^/]' \| \
17949 X"$ac_file" : 'X\(//\)$' \| \
17950 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17951 $as_echo X"$ac_file" |
17952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17956 /^X\(\/\/\)[^/].*/{
17969 as_dir="$ac_dir"; as_fn_mkdir_p
17973 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17975 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17976 # A ".." for each directory in $ac_dir_suffix.
17977 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17978 case $ac_top_builddir_sub in
17979 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17980 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17983 ac_abs_top_builddir=$ac_pwd
17984 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17985 # for backward compatibility:
17986 ac_top_builddir=$ac_top_build_prefix
17989 .) # We are building in place.
17991 ac_top_srcdir=$ac_top_builddir_sub
17992 ac_abs_top_srcdir=$ac_pwd ;;
17993 [\\/]* | ?:[\\/]* ) # Absolute name.
17994 ac_srcdir=$srcdir$ac_dir_suffix;
17995 ac_top_srcdir=$srcdir
17996 ac_abs_top_srcdir=$srcdir ;;
17997 *) # Relative name.
17998 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17999 ac_top_srcdir=$ac_top_build_prefix$srcdir
18000 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18002 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18012 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18013 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18015 ac_MKDIR_P=$MKDIR_P
18017 [\\/$]* | ?:[\\/]* ) ;;
18018 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 # If the template does not know about datarootdir, expand it.
18024 # FIXME: This hack should be removed a few years after 2.60.
18025 ac_datarootdir_hack=; ac_datarootdir_seen=
18036 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18037 *datarootdir*) ac_datarootdir_seen=yes;;
18038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18040 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18043 ac_datarootdir_hack='
18044 s&@datadir@&$datadir&g
18045 s&@docdir@&$docdir&g
18046 s&@infodir@&$infodir&g
18047 s&@localedir@&$localedir&g
18048 s&@mandir@&$mandir&g
18049 s&\\\${datarootdir}&$datarootdir&g' ;;
18053 # Neutralize VPATH when `$srcdir' = `.'.
18054 # Shell code in configure.ac might set extrasub.
18055 # FIXME: do we really want to maintain this feature?
18056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18057 ac_sed_extra="$ac_vpsub
18060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18063 s|@configure_input@|$ac_sed_conf_input|;t t
18064 s&@top_builddir@&$ac_top_builddir_sub&;t t
18065 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18066 s&@srcdir@&$ac_srcdir&;t t
18067 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18068 s&@top_srcdir@&$ac_top_srcdir&;t t
18069 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18070 s&@builddir@&$ac_builddir&;t t
18071 s&@abs_builddir@&$ac_abs_builddir&;t t
18072 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18073 s&@INSTALL@&$ac_INSTALL&;t t
18074 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18075 $ac_datarootdir_hack
18077 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18078 || as_fn_error "could not create $ac_file" "$LINENO" 5
18080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18081 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18084 which seems to be undefined. Please make sure it is defined." >&5
18085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18086 which seems to be undefined. Please make sure it is defined." >&2;}
18090 -) cat "$tmp/out" && rm -f "$tmp/out";;
18091 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18093 || as_fn_error "could not create $ac_file" "$LINENO" 5
18099 if test x"$ac_file" != x-; then
18101 $as_echo "/* $configure_input */" \
18102 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18103 } >"$tmp/config.h" \
18104 || as_fn_error "could not create $ac_file" "$LINENO" 5
18105 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18107 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18110 mv "$tmp/config.h" "$ac_file" \
18111 || as_fn_error "could not create $ac_file" "$LINENO" 5
18114 $as_echo "/* $configure_input */" \
18115 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18116 || as_fn_error "could not create -" "$LINENO" 5
18118 # Compute "$ac_file"'s index in $config_headers.
18121 for _am_header in $config_headers :; do
18122 case $_am_header in
18123 $_am_arg | $_am_arg:* )
18126 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18129 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18130 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18131 X"$_am_arg" : 'X\(//\)[^/]' \| \
18132 X"$_am_arg" : 'X\(//\)$' \| \
18133 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18134 $as_echo X"$_am_arg" |
18135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18139 /^X\(\/\/\)[^/].*/{
18151 s/.*/./; q'`/stamp-h$_am_stamp_count
18154 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18155 $as_echo "$as_me: executing $ac_file commands" >&6;}
18160 case $ac_file$ac_mode in
18161 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18162 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18163 # are listed without --file. Let's play safe and only enable the eval
18164 # if we detect the quoting.
18165 case $CONFIG_FILES in
18166 *\'*) eval set x "$CONFIG_FILES" ;;
18167 *) set x $CONFIG_FILES ;;
18172 # Strip MF so we end up with the name of the file.
18173 mf=`echo "$mf" | sed -e 's/:.*$//'`
18174 # Check whether this is an Automake generated Makefile or not.
18175 # We used to match only the files named `Makefile.in', but
18176 # some people rename them; so instead we look at the file content.
18177 # Grep'ing the first line is not enough: some people post-process
18178 # each Makefile.in and add a new line on top of each file to say so.
18179 # Grep'ing the whole file is not good either: AIX grep has a line
18180 # limit of 2048, but all sed's we know have understand at least 4000.
18181 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18182 dirpart=`$as_dirname -- "$mf" ||
18183 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18184 X"$mf" : 'X\(//\)[^/]' \| \
18185 X"$mf" : 'X\(//\)$' \| \
18186 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18192 /^X\(\/\/\)[^/].*/{
18208 # Extract the definition of DEPDIR, am__include, and am__quote
18209 # from the Makefile without running `make'.
18210 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18211 test -z "$DEPDIR" && continue
18212 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18213 test -z "am__include" && continue
18214 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18215 # When using ansi2knr, U may be empty or an underscore; expand it
18216 U=`sed -n 's/^U = //p' < "$mf"`
18217 # Find all dependency output files, they are included files with
18218 # $(DEPDIR) in their names. We invoke sed twice because it is the
18219 # simplest approach to changing $(DEPDIR) to its actual value in the
18221 for file in `sed -n "
18222 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18223 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18224 # Make sure the directory exists.
18225 test -f "$dirpart/$file" && continue
18226 fdir=`$as_dirname -- "$file" ||
18227 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18228 X"$file" : 'X\(//\)[^/]' \| \
18229 X"$file" : 'X\(//\)$' \| \
18230 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18231 $as_echo X"$file" |
18232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18236 /^X\(\/\/\)[^/].*/{
18249 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18250 # echo "creating $dirpart/$file"
18251 echo '# dummy' > "$dirpart/$file"
18258 # See if we are running on zsh, and set the options which allow our
18259 # commands through without removal of \ escapes.
18260 if test -n "${ZSH_VERSION+set}" ; then
18261 setopt NO_GLOB_SUBST
18264 cfgfile="${ofile}T"
18265 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18268 cat <<_LT_EOF >> "$cfgfile"
18271 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18272 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18274 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18276 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18277 # 2006, 2007, 2008 Free Software Foundation, Inc.
18278 # Written by Gordon Matzigkeit, 1996
18280 # This file is part of GNU Libtool.
18282 # GNU Libtool is free software; you can redistribute it and/or
18283 # modify it under the terms of the GNU General Public License as
18284 # published by the Free Software Foundation; either version 2 of
18285 # the License, or (at your option) any later version.
18287 # As a special exception to the GNU General Public License,
18288 # if you distribute this file as part of a program or library that
18289 # is built using GNU Libtool, you may include this file under the
18290 # same distribution terms that you use for the rest of that program.
18292 # GNU Libtool is distributed in the hope that it will be useful,
18293 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18294 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18295 # GNU General Public License for more details.
18297 # You should have received a copy of the GNU General Public License
18298 # along with GNU Libtool; see the file COPYING. If not, a copy
18299 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18300 # obtained by writing to the Free Software Foundation, Inc.,
18301 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18304 # The names of the tagged configurations supported by this script.
18305 available_tags="CXX "
18307 # ### BEGIN LIBTOOL CONFIG
18309 # Which release of libtool.m4 was used?
18310 macro_version=$macro_version
18311 macro_revision=$macro_revision
18313 # Whether or not to build shared libraries.
18314 build_libtool_libs=$enable_shared
18316 # Whether or not to build static libraries.
18317 build_old_libs=$enable_static
18319 # What type of objects to build.
18322 # Whether or not to optimize for fast installation.
18323 fast_install=$enable_fast_install
18326 host_alias=$host_alias
18330 # The build system.
18331 build_alias=$build_alias
18335 # A sed program that does not truncate output.
18338 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18339 Xsed="\$SED -e 1s/^X//"
18341 # A grep program that handles long lines.
18347 # A literal string matcher.
18350 # A BSD- or MS-compatible name lister.
18353 # Whether we need soft or hard links.
18356 # What is the maximum length of a command?
18357 max_cmd_len=$max_cmd_len
18359 # Object file suffix (normally "o").
18362 # Executable file suffix (normally "").
18365 # whether the shell understands "unset".
18368 # turn spaces into newlines.
18371 # turn newlines into spaces.
18374 # How to create reloadable object files.
18375 reload_flag=$lt_reload_flag
18376 reload_cmds=$lt_reload_cmds
18378 # An object symbol dumper.
18379 OBJDUMP=$lt_OBJDUMP
18381 # Method to check whether dependent libraries are shared objects.
18382 deplibs_check_method=$lt_deplibs_check_method
18384 # Command to use when deplibs_check_method == "file_magic".
18385 file_magic_cmd=$lt_file_magic_cmd
18389 AR_FLAGS=$lt_AR_FLAGS
18391 # A symbol stripping program.
18394 # Commands used to install an old-style archive.
18396 old_postinstall_cmds=$lt_old_postinstall_cmds
18397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18402 # LTCC compiler flags.
18403 LTCFLAGS=$lt_CFLAGS
18405 # Take the output of nm and produce a listing of raw symbols and C names.
18406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18408 # Transform the output of nm in a proper C declaration.
18409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18411 # Transform the output of nm in a C name address pair.
18412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18414 # Transform the output of nm in a C name address pair when lib prefix is needed.
18415 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18417 # The name of the directory that contains temporary libtool files.
18420 # Shell to use when invoking shell scripts.
18423 # An echo program that does not interpret backslashes.
18426 # Used to examine libraries when file_magic_cmd begins with "file".
18427 MAGIC_CMD=$MAGIC_CMD
18429 # Must we lock files when doing compilation?
18430 need_locks=$lt_need_locks
18432 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18433 DSYMUTIL=$lt_DSYMUTIL
18435 # Tool to change global to local symbols on Mac OS X.
18438 # Tool to manipulate fat objects and archives on Mac OS X.
18441 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18444 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18445 OTOOL64=$lt_OTOOL64
18447 # Old archive suffix (normally "a").
18450 # Shared library suffix (normally ".so").
18451 shrext_cmds=$lt_shrext_cmds
18453 # The commands to extract the exported symbol list from a shared archive.
18454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18456 # Variables whose values should be saved in libtool wrapper scripts and
18457 # restored at link time.
18458 variables_saved_for_relink=$lt_variables_saved_for_relink
18460 # Do we need the "lib" prefix for modules?
18461 need_lib_prefix=$need_lib_prefix
18463 # Do we need a version for libraries?
18464 need_version=$need_version
18466 # Library versioning type.
18467 version_type=$version_type
18469 # Shared library runtime path variable.
18470 runpath_var=$runpath_var
18472 # Shared library path variable.
18473 shlibpath_var=$shlibpath_var
18475 # Is shlibpath searched before the hard-coded library search path?
18476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18478 # Format of library name prefix.
18479 libname_spec=$lt_libname_spec
18481 # List of archive names. First name is the real one, the rest are links.
18482 # The last name is the one that the linker finds with -lNAME
18483 library_names_spec=$lt_library_names_spec
18485 # The coded name of the library, if different from the real name.
18486 soname_spec=$lt_soname_spec
18488 # Command to use after installation of a shared archive.
18489 postinstall_cmds=$lt_postinstall_cmds
18491 # Command to use after uninstallation of a shared archive.
18492 postuninstall_cmds=$lt_postuninstall_cmds
18494 # Commands used to finish a libtool library installation in a directory.
18495 finish_cmds=$lt_finish_cmds
18497 # As "finish_cmds", except a single script fragment to be evaled but
18499 finish_eval=$lt_finish_eval
18501 # Whether we should hardcode library paths into libraries.
18502 hardcode_into_libs=$hardcode_into_libs
18504 # Compile-time system search path for libraries.
18505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18507 # Run-time system search path for libraries.
18508 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18510 # Whether dlopen is supported.
18511 dlopen_support=$enable_dlopen
18513 # Whether dlopen of programs is supported.
18514 dlopen_self=$enable_dlopen_self
18516 # Whether dlopen of statically linked programs is supported.
18517 dlopen_self_static=$enable_dlopen_self_static
18519 # Commands to strip libraries.
18520 old_striplib=$lt_old_striplib
18521 striplib=$lt_striplib
18524 # The linker used to build libraries.
18527 # Commands used to build an old-style archive.
18528 old_archive_cmds=$lt_old_archive_cmds
18530 # A language specific compiler.
18533 # Is the compiler the GNU compiler?
18536 # Compiler flag to turn off builtin functions.
18537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18539 # How to pass a linker flag through the compiler.
18540 wl=$lt_lt_prog_compiler_wl
18542 # Additional compiler flags for building library objects.
18543 pic_flag=$lt_lt_prog_compiler_pic
18545 # Compiler flag to prevent dynamic linking.
18546 link_static_flag=$lt_lt_prog_compiler_static
18548 # Does compiler simultaneously support -c and -o options?
18549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18551 # Whether or not to add -lc for building shared libraries.
18552 build_libtool_need_lc=$archive_cmds_need_lc
18554 # Whether or not to disallow shared libs when runtime libs are static.
18555 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18557 # Compiler flag to allow reflexive dlopens.
18558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18560 # Compiler flag to generate shared objects directly from archives.
18561 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18563 # Whether the compiler copes with passing no objects directly.
18564 compiler_needs_object=$lt_compiler_needs_object
18566 # Create an old-style archive from a shared archive.
18567 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18569 # Create a temporary old-style archive to link instead of a shared archive.
18570 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18572 # Commands used to build a shared archive.
18573 archive_cmds=$lt_archive_cmds
18574 archive_expsym_cmds=$lt_archive_expsym_cmds
18576 # Commands used to build a loadable module if different from building
18577 # a shared archive.
18578 module_cmds=$lt_module_cmds
18579 module_expsym_cmds=$lt_module_expsym_cmds
18581 # Whether we are building with GNU ld or not.
18582 with_gnu_ld=$lt_with_gnu_ld
18584 # Flag that allows shared libraries with undefined symbols to be built.
18585 allow_undefined_flag=$lt_allow_undefined_flag
18587 # Flag that enforces no undefined symbols.
18588 no_undefined_flag=$lt_no_undefined_flag
18590 # Flag to hardcode \$libdir into a binary during linking.
18591 # This must work even if \$libdir does not exist
18592 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18594 # If ld is used when linking, flag to hardcode \$libdir into a binary
18595 # during linking. This must work even if \$libdir does not exist.
18596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18598 # Whether we need a single "-rpath" flag with a separated argument.
18599 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18601 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18602 # DIR into the resulting binary.
18603 hardcode_direct=$hardcode_direct
18605 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18606 # DIR into the resulting binary and the resulting library dependency is
18607 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18608 # library is relocated.
18609 hardcode_direct_absolute=$hardcode_direct_absolute
18611 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18612 # into the resulting binary.
18613 hardcode_minus_L=$hardcode_minus_L
18615 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18616 # into the resulting binary.
18617 hardcode_shlibpath_var=$hardcode_shlibpath_var
18619 # Set to "yes" if building a shared library automatically hardcodes DIR
18620 # into the library and all subsequent libraries and executables linked
18622 hardcode_automatic=$hardcode_automatic
18624 # Set to yes if linker adds runtime paths of dependent libraries
18625 # to runtime path list.
18626 inherit_rpath=$inherit_rpath
18628 # Whether libtool must link a program against all its dependency libraries.
18629 link_all_deplibs=$link_all_deplibs
18631 # Fix the shell variable \$srcfile for the compiler.
18632 fix_srcfile_path=$lt_fix_srcfile_path
18634 # Set to "yes" if exported symbols are required.
18635 always_export_symbols=$always_export_symbols
18637 # The commands to list exported symbols.
18638 export_symbols_cmds=$lt_export_symbols_cmds
18640 # Symbols that should not be listed in the preloaded symbols.
18641 exclude_expsyms=$lt_exclude_expsyms
18643 # Symbols that must always be exported.
18644 include_expsyms=$lt_include_expsyms
18646 # Commands necessary for linking programs (against libraries) with templates.
18647 prelink_cmds=$lt_prelink_cmds
18649 # Specify filename containing input files.
18650 file_list_spec=$lt_file_list_spec
18652 # How to hardcode a shared library path into an executable.
18653 hardcode_action=$hardcode_action
18655 # The directories searched by this compiler when creating a shared library.
18656 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18658 # Dependencies to place before and after the objects being linked to
18659 # create a shared library.
18660 predep_objects=$lt_predep_objects
18661 postdep_objects=$lt_postdep_objects
18662 predeps=$lt_predeps
18663 postdeps=$lt_postdeps
18665 # The library search path used internally by the compiler when linking
18666 # a shared library.
18667 compiler_lib_search_path=$lt_compiler_lib_search_path
18669 # ### END LIBTOOL CONFIG
18675 cat <<\_LT_EOF >> "$cfgfile"
18676 # AIX sometimes has problems with the GCC collect2 program. For some
18677 # reason, if we set the COLLECT_NAMES environment variable, the problems
18678 # vanish in a puff of smoke.
18679 if test "X${COLLECT_NAMES+set}" != Xset; then
18681 export COLLECT_NAMES
18688 ltmain="$ac_aux_dir/ltmain.sh"
18691 # We use sed instead of cat because bash on DJGPP gets confused if
18692 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18693 # text mode, it properly converts lines to CR/LF. This bash problem
18694 # is reportedly fixed, but why not run on old versions too?
18695 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18696 || (rm -f "$cfgfile"; exit 1)
18700 cat << \_LT_EOF >> "$cfgfile"
18702 # func_dirname file append nondir_replacement
18703 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18704 # otherwise set result to NONDIR_REPLACEMENT.
18708 */*) func_dirname_result="${1%/*}${2}" ;;
18709 * ) func_dirname_result="${3}" ;;
18713 # func_basename file
18716 func_basename_result="${1##*/}"
18719 # func_dirname_and_basename file append nondir_replacement
18720 # perform func_basename and func_dirname in a single function
18722 # dirname: Compute the dirname of FILE. If nonempty,
18723 # add APPEND to the result, otherwise set result
18724 # to NONDIR_REPLACEMENT.
18725 # value returned in "$func_dirname_result"
18726 # basename: Compute filename of FILE.
18727 # value retuned in "$func_basename_result"
18728 # Implementation must be kept synchronized with func_dirname
18729 # and func_basename. For efficiency, we do not delegate to
18730 # those functions but instead duplicate the functionality here.
18731 func_dirname_and_basename ()
18734 */*) func_dirname_result="${1%/*}${2}" ;;
18735 * ) func_dirname_result="${3}" ;;
18737 func_basename_result="${1##*/}"
18740 # func_stripname prefix suffix name
18741 # strip PREFIX and SUFFIX off of NAME.
18742 # PREFIX and SUFFIX must not contain globbing or regex special
18743 # characters, hashes, percent signs, but SUFFIX may contain a leading
18744 # dot (in which case that matches only a dot).
18747 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18748 # positional parameters, so assign one to ordinary parameter first.
18749 func_stripname_result=${3}
18750 func_stripname_result=${func_stripname_result#"${1}"}
18751 func_stripname_result=${func_stripname_result%"${2}"}
18757 func_opt_split_opt=${1%%=*}
18758 func_opt_split_arg=${1#*=}
18765 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18766 *) func_lo2o_result=${1} ;;
18770 # func_xform libobj-or-source
18773 func_xform_result=${1%.*}.lo
18776 # func_arith arithmetic-term...
18779 func_arith_result=$(( $* ))
18783 # STRING may not start with a hyphen.
18786 func_len_result=${#1}
18791 *) # Bourne compatible functions.
18792 cat << \_LT_EOF >> "$cfgfile"
18794 # func_dirname file append nondir_replacement
18795 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18796 # otherwise set result to NONDIR_REPLACEMENT.
18799 # Extract subdirectory from the argument.
18800 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18801 if test "X$func_dirname_result" = "X${1}"; then
18802 func_dirname_result="${3}"
18804 func_dirname_result="$func_dirname_result${2}"
18808 # func_basename file
18811 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18815 # func_stripname prefix suffix name
18816 # strip PREFIX and SUFFIX off of NAME.
18817 # PREFIX and SUFFIX must not contain globbing or regex special
18818 # characters, hashes, percent signs, but SUFFIX may contain a leading
18819 # dot (in which case that matches only a dot).
18820 # func_strip_suffix prefix name
18824 .*) func_stripname_result=`$ECHO "X${3}" \
18825 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18826 *) func_stripname_result=`$ECHO "X${3}" \
18827 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18832 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18833 my_sed_long_arg='1s/^-[^=]*=//'
18838 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18839 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18845 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18848 # func_xform libobj-or-source
18851 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18854 # func_arith arithmetic-term...
18857 func_arith_result=`expr "$@"`
18861 # STRING may not start with a hyphen.
18864 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18870 case $lt_shell_append in
18872 cat << \_LT_EOF >> "$cfgfile"
18874 # func_append var value
18875 # Append VALUE to the end of shell variable VAR.
18883 cat << \_LT_EOF >> "$cfgfile"
18885 # func_append var value
18886 # Append VALUE to the end of shell variable VAR.
18897 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18898 || (rm -f "$cfgfile"; exit 1)
18900 mv -f "$cfgfile" "$ofile" ||
18901 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18905 cat <<_LT_EOF >> "$ofile"
18907 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18909 # The linker used to build libraries.
18912 # Commands used to build an old-style archive.
18913 old_archive_cmds=$lt_old_archive_cmds_CXX
18915 # A language specific compiler.
18916 CC=$lt_compiler_CXX
18918 # Is the compiler the GNU compiler?
18921 # Compiler flag to turn off builtin functions.
18922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18924 # How to pass a linker flag through the compiler.
18925 wl=$lt_lt_prog_compiler_wl_CXX
18927 # Additional compiler flags for building library objects.
18928 pic_flag=$lt_lt_prog_compiler_pic_CXX
18930 # Compiler flag to prevent dynamic linking.
18931 link_static_flag=$lt_lt_prog_compiler_static_CXX
18933 # Does compiler simultaneously support -c and -o options?
18934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18936 # Whether or not to add -lc for building shared libraries.
18937 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18939 # Whether or not to disallow shared libs when runtime libs are static.
18940 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18942 # Compiler flag to allow reflexive dlopens.
18943 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18945 # Compiler flag to generate shared objects directly from archives.
18946 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18948 # Whether the compiler copes with passing no objects directly.
18949 compiler_needs_object=$lt_compiler_needs_object_CXX
18951 # Create an old-style archive from a shared archive.
18952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18954 # Create a temporary old-style archive to link instead of a shared archive.
18955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18957 # Commands used to build a shared archive.
18958 archive_cmds=$lt_archive_cmds_CXX
18959 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18961 # Commands used to build a loadable module if different from building
18962 # a shared archive.
18963 module_cmds=$lt_module_cmds_CXX
18964 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18966 # Whether we are building with GNU ld or not.
18967 with_gnu_ld=$lt_with_gnu_ld_CXX
18969 # Flag that allows shared libraries with undefined symbols to be built.
18970 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18972 # Flag that enforces no undefined symbols.
18973 no_undefined_flag=$lt_no_undefined_flag_CXX
18975 # Flag to hardcode \$libdir into a binary during linking.
18976 # This must work even if \$libdir does not exist
18977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18979 # If ld is used when linking, flag to hardcode \$libdir into a binary
18980 # during linking. This must work even if \$libdir does not exist.
18981 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18983 # Whether we need a single "-rpath" flag with a separated argument.
18984 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18986 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18987 # DIR into the resulting binary.
18988 hardcode_direct=$hardcode_direct_CXX
18990 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18991 # DIR into the resulting binary and the resulting library dependency is
18992 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18993 # library is relocated.
18994 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18996 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18997 # into the resulting binary.
18998 hardcode_minus_L=$hardcode_minus_L_CXX
19000 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19001 # into the resulting binary.
19002 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19004 # Set to "yes" if building a shared library automatically hardcodes DIR
19005 # into the library and all subsequent libraries and executables linked
19007 hardcode_automatic=$hardcode_automatic_CXX
19009 # Set to yes if linker adds runtime paths of dependent libraries
19010 # to runtime path list.
19011 inherit_rpath=$inherit_rpath_CXX
19013 # Whether libtool must link a program against all its dependency libraries.
19014 link_all_deplibs=$link_all_deplibs_CXX
19016 # Fix the shell variable \$srcfile for the compiler.
19017 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19019 # Set to "yes" if exported symbols are required.
19020 always_export_symbols=$always_export_symbols_CXX
19022 # The commands to list exported symbols.
19023 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19025 # Symbols that should not be listed in the preloaded symbols.
19026 exclude_expsyms=$lt_exclude_expsyms_CXX
19028 # Symbols that must always be exported.
19029 include_expsyms=$lt_include_expsyms_CXX
19031 # Commands necessary for linking programs (against libraries) with templates.
19032 prelink_cmds=$lt_prelink_cmds_CXX
19034 # Specify filename containing input files.
19035 file_list_spec=$lt_file_list_spec_CXX
19037 # How to hardcode a shared library path into an executable.
19038 hardcode_action=$hardcode_action_CXX
19040 # The directories searched by this compiler when creating a shared library.
19041 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19043 # Dependencies to place before and after the objects being linked to
19044 # create a shared library.
19045 predep_objects=$lt_predep_objects_CXX
19046 postdep_objects=$lt_postdep_objects_CXX
19047 predeps=$lt_predeps_CXX
19048 postdeps=$lt_postdeps_CXX
19050 # The library search path used internally by the compiler when linking
19051 # a shared library.
19052 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19054 # ### END LIBTOOL TAG CONFIG: CXX
19065 ac_clean_files=$ac_clean_files_save
19067 test $ac_write_fail = 0 ||
19068 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19071 # configure is writing to config.log, and then calls config.status.
19072 # config.status does its own redirection, appending to config.log.
19073 # Unfortunately, on DOS this fails, as config.log is still kept open
19074 # by configure, so config.status won't be able to write to it; its
19075 # output is simply discarded. So we exec the FD to /dev/null,
19076 # effectively closing config.log, so it can be properly (re)opened and
19077 # appended to by config.status. When coming back to configure, we
19078 # need to make the FD available again.
19079 if test "$no_create" != yes; then
19081 ac_config_status_args=
19082 test "$silent" = yes &&
19083 ac_config_status_args="$ac_config_status_args --quiet"
19085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19088 # would make configure fail if this is the last instruction.
19089 $ac_cs_success || as_fn_exit $?
19091 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19093 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}