2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 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, 2010 Free Software
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: opensource@google.com about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
546 # Remove one level of quotation (which was required for Make).
547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
552 if test "X$1" = X--no-reexec; then
553 # Discard the --no-reexec flag, and continue.
555 elif test "X$1" = X--fallback-echo; then
556 # Avoid inline document here, it may be left over
558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559 # Yippee, $ECHO works!
562 # Restart under the correct shell.
563 exec $SHELL "$0" --no-reexec ${1+"$@"}
566 if test "X$1" = X--fallback-echo; then
567 # used as fallback echo
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579 if test -z "$lt_ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
601 # So, first we look for a working echo in the user's PATH.
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
616 if test "X$ECHO" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
647 ECHO="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 ECHO="$CONFIG_SHELL $0 --fallback-echo"
654 # maybe with a smaller string...
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670 # Oops. We lost completely, so just stick with echo.
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 test -n "$DJDIR" || exec 7<&0 </dev/null
693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 # so uname gets run too.
695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
700 ac_default_prefix=/usr/local
702 ac_config_libobj_dir=.
709 # Identity of this package.
711 PACKAGE_TARNAME='glog'
712 PACKAGE_VERSION='0.3.2'
713 PACKAGE_STRING='glog 0.3.2'
714 PACKAGE_BUGREPORT='opensource@google.com'
717 ac_unique_file="README"
718 # Factoring default headers for most tests.
719 ac_includes_default="\
721 #ifdef HAVE_SYS_TYPES_H
722 # include <sys/types.h>
724 #ifdef HAVE_SYS_STAT_H
725 # include <sys/stat.h>
731 # ifdef HAVE_STDLIB_H
736 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
741 #ifdef HAVE_STRINGS_H
742 # include <strings.h>
744 #ifdef HAVE_INTTYPES_H
745 # include <inttypes.h>
754 ac_subst_vars='am__EXEEXT_FALSE
769 ac_cv_have_inttypes_h
770 ac_cv_have_systypes_h
772 ac_cv_have___builtin_expect
773 ac_cv___attribute___printf_4_5
774 ac_cv___attribute___noreturn
775 ac_cv_cxx_using_operator
777 ac_google_end_namespace
778 ac_google_start_namespace
792 ENABLE_FRAME_POINTERS_FALSE
793 ENABLE_FRAME_POINTERS_TRUE
856 INSTALL_STRIP_PROGRAM
898 program_transform_name
911 enable_option_checking
912 enable_dependency_tracking
919 enable_frame_pointers
924 ac_precious_vars='build_alias
939 # Initialize some variables set by options.
941 ac_init_version=false
942 ac_unrecognized_opts=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name=s,x,x,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
999 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1030 -datadir | --datadir | --datadi | --datad)
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error $? "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_$ac_useropt"
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1056 eval enable_$ac_useropt=no ;;
1058 -docdir | --docdir | --docdi | --doc | --do)
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_$ac_useropt"
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1246 -site=* | --site=* | --sit=*)
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error $? "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1286 eval with_$ac_useropt=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error $? "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1302 eval with_$ac_useropt=no ;;
1305 # Obsolete; use --with-x.
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1322 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' | [0-9]* | *[!_$as_cr_alnum]* )
1331 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error $? "missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used" >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error $? "pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures glog 0.3.2 to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking ...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 if test -n "$ac_init_help"; then
1548 case $ac_init_help in
1549 short | recursive ) echo "Configuration of glog 0.3.2:";;
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --disable-dependency-tracking speeds up one-time build
1558 --enable-dependency-tracking do not reject slow dependency extractors
1559 --enable-shared[=PKGS] build shared libraries [default=yes]
1560 --enable-static[=PKGS] build static libraries [default=yes]
1561 --enable-fast-install[=PKGS]
1562 optimize for fast installation [default=yes]
1563 --disable-libtool-lock avoid locking (might break parallel builds)
1564 --enable-frame-pointers On x86_64 systems, compile with
1565 -fno-omit-frame-pointer (see INSTALL)
1566 --disable-rtti Disable RTTI in glog
1567 --enable-namespace=FOO to define these Google
1568 classes in the FOO namespace. --disable-namespace
1569 to define them in the global namespace. Default
1570 is to define them in namespace google.
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578 --with-gflags=GFLAGS_DIR
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 CXXCPP C++ preprocessor
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1596 Report bugs to <opensource@google.com>.
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1626 .) # We are building in place.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1659 glog configure 0.3.2
1660 generated by GNU Autoconf 2.68
1662 Copyright (C) 2010 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1673 # ac_fn_c_try_compile LINENO
1674 # --------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_c_try_compile
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } > conftest.i && {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_cxx_try_compile
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1849 if ac_fn_c_try_compile "$LINENO"; then :
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_header_compile
1863 # ac_fn_c_try_run LINENO
1864 # ----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1866 # that executables *can* be run.
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if { { ac_try="$ac_link"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>&5
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1881 { { case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_try") 2>&5
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; }; }; then :
1893 $as_echo "$as_me: program exited with status $ac_status" >&5
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_retval=$ac_status
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1905 # ac_fn_c_check_func LINENO FUNC VAR
1906 # ----------------------------------
1907 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1908 ac_fn_c_check_func ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1920 #define $2 innocuous_$2
1922 /* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $2 (); below.
1924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925 <limits.h> exists even on freestanding compilers. */
1928 # include <limits.h>
1930 # include <assert.h>
1935 /* Override any GCC internal prototype to avoid an error.
1936 Use char because int might match the return type of a GCC
1937 builtin and then its argument prototype would still apply. */
1942 /* The GNU C library defines this for functions which it implements
1943 to always fail with ENOSYS. Some functions are actually named
1944 something starting with __ and the normal name is an alias. */
1945 #if defined __stub_$2 || defined __stub___$2
1957 if ac_fn_c_try_link "$LINENO"; then :
1962 rm -f core conftest.err conftest.$ac_objext \
1963 conftest$ac_exeext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_func
1972 # ac_fn_cxx_try_cpp LINENO
1973 # ------------------------
1974 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1975 ac_fn_cxx_try_cpp ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { { ac_try="$ac_cpp conftest.$ac_ext"
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } > conftest.i && {
1994 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1995 test ! -s conftest.err
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2007 } # ac_fn_cxx_try_cpp
2009 # ac_fn_cxx_try_link LINENO
2010 # -------------------------
2011 # Try to link conftest.$ac_ext, and return whether this succeeded.
2012 ac_fn_cxx_try_link ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 rm -f conftest.$ac_objext conftest$ac_exeext
2016 if { { ac_try="$ac_link"
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_link") 2>conftest.err
2025 if test -s conftest.err; then
2026 grep -v '^ *+' conftest.err >conftest.er1
2027 cat conftest.er1 >&5
2028 mv -f conftest.er1 conftest.err
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; } && {
2032 test -z "$ac_cxx_werror_flag" ||
2033 test ! -s conftest.err
2034 } && test -s conftest$ac_exeext && {
2035 test "$cross_compiling" = yes ||
2036 $as_test_x conftest$ac_exeext
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2046 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2047 # interfere with the next link command; also delete a directory that is
2048 # left behind by Apple's compiler. We do this before executing the actions.
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_cxx_try_link
2055 # ac_fn_cxx_try_run LINENO
2056 # ------------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2058 # that executables *can* be run.
2059 ac_fn_cxx_try_run ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_link"
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>&5
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2073 { { case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_try") 2>&5
2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 test $ac_status = 0; }; }; then :
2085 $as_echo "$as_me: program exited with status $ac_status" >&5
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2089 ac_retval=$ac_status
2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
2095 } # ac_fn_cxx_try_run
2097 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2098 # ---------------------------------------------------------
2099 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2100 # the include files in INCLUDES and setting the cache variable VAR
2102 ac_fn_cxx_check_header_mongrel ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if eval \${$3+:} false; then :
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2115 # Is the header compilable?
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2117 $as_echo_n "checking $2 usability... " >&6; }
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2123 if ac_fn_cxx_try_compile "$LINENO"; then :
2124 ac_header_compiler=yes
2126 ac_header_compiler=no
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2130 $as_echo "$ac_header_compiler" >&6; }
2132 # Is the header present?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2134 $as_echo_n "checking $2 presence... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 if ac_fn_cxx_try_cpp "$LINENO"; then :
2140 ac_header_preproc=yes
2142 ac_header_preproc=no
2144 rm -f conftest.err conftest.i conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2146 $as_echo "$ac_header_preproc" >&6; }
2148 # So? What about this header?
2149 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2152 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2154 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2158 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2160 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2162 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2164 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2166 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2167 ( $as_echo "## ------------------------------------ ##
2168 ## Report this to opensource@google.com ##
2169 ## ------------------------------------ ##"
2170 ) | sed "s/^/$as_me: WARNING: /" >&2
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176 $as_echo_n "(cached) " >&6
2178 eval "$3=\$ac_header_compiler"
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_cxx_check_header_mongrel
2188 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2189 # ----------------------------------------------
2190 # Tries to find the compile-time value of EXPR in a program that includes
2191 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2193 ac_fn_cxx_compute_int ()
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 if test "$cross_compiling" = yes; then
2197 # Depending upon the size, compute the lo and hi bounds.
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 static int test_array [1 - 2 * !(($2) >= 0)];
2211 if ac_fn_cxx_try_compile "$LINENO"; then :
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228 ac_hi=$ac_mid; break
2230 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2231 if test $ac_lo -le $ac_mid; then
2235 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) < 0)];
2253 if ac_fn_cxx_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2269 if ac_fn_cxx_try_compile "$LINENO"; then :
2270 ac_lo=$ac_mid; break
2272 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2273 if test $ac_mid -le $ac_hi; then
2277 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 # Binary search between lo and hi bounds.
2288 while test "x$ac_lo" != "x$ac_hi"; do
2289 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 if ac_fn_cxx_try_compile "$LINENO"; then :
2306 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2318 static long int longval () { return $2; }
2319 static unsigned long int ulongval () { return $2; }
2326 FILE *f = fopen ("conftest.val", "w");
2331 long int i = longval ();
2334 fprintf (f, "%ld", i);
2338 unsigned long int i = ulongval ();
2341 fprintf (f, "%lu", i);
2343 /* Do not output a trailing newline, as this causes \r\n confusion
2344 on some platforms. */
2345 return ferror (f) || fclose (f) != 0;
2351 if ac_fn_cxx_try_run "$LINENO"; then :
2352 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2357 conftest.$ac_objext conftest.beam conftest.$ac_ext
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362 as_fn_set_status $ac_retval
2364 } # ac_fn_cxx_compute_int
2366 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2367 # ---------------------------------------------
2368 # Tests whether TYPE exists after having included INCLUDES, setting cache
2369 # variable VAR accordingly.
2370 ac_fn_cxx_check_type ()
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 $as_echo_n "checking for $2... " >&6; }
2375 if eval \${$3+:} false; then :
2376 $as_echo_n "(cached) " >&6
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2391 if ac_fn_cxx_try_compile "$LINENO"; then :
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2418 } # ac_fn_cxx_check_type
2420 # ac_fn_cxx_check_func LINENO FUNC VAR
2421 # ------------------------------------
2422 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2423 ac_fn_cxx_check_func ()
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2427 $as_echo_n "checking for $2... " >&6; }
2428 if eval \${$3+:} false; then :
2429 $as_echo_n "(cached) " >&6
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2433 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2435 #define $2 innocuous_$2
2437 /* System header to define __stub macros and hopefully few prototypes,
2438 which can conflict with char $2 (); below.
2439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 <limits.h> exists even on freestanding compilers. */
2443 # include <limits.h>
2445 # include <assert.h>
2450 /* Override any GCC internal prototype to avoid an error.
2451 Use char because int might match the return type of a GCC
2452 builtin and then its argument prototype would still apply. */
2457 /* The GNU C library defines this for functions which it implements
2458 to always fail with ENOSYS. Some functions are actually named
2459 something starting with __ and the normal name is an alias. */
2460 #if defined __stub_$2 || defined __stub___$2
2472 if ac_fn_cxx_try_link "$LINENO"; then :
2477 rm -f core conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2485 } # ac_fn_cxx_check_func
2486 cat >config.log <<_ACEOF
2487 This file contains any messages produced by compilers while
2488 running configure, to aid debugging if configure makes a mistake.
2490 It was created by glog $as_me 0.3.2, which was
2491 generated by GNU Autoconf 2.68. Invocation command line was
2503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 $as_echo "PATH: $as_dir"
2543 # Keep a trace of the command line.
2544 # Strip out --no-create and --no-recursion so they do not pile up.
2545 # Strip out --silent because we don't want to record it for future runs.
2546 # Also quote any args containing shell meta-characters.
2547 # Make two passes to allow for proper duplicate-argument suppression.
2551 ac_must_keep_next=false
2557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2559 | -silent | --silent | --silen | --sile | --sil)
2562 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2565 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2567 as_fn_append ac_configure_args1 " '$ac_arg'"
2568 if test $ac_must_keep_next = true; then
2569 ac_must_keep_next=false # Got value, back to normal.
2572 *=* | --config-cache | -C | -disable-* | --disable-* \
2573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2575 | -with-* | --with-* | -without-* | --without-* | --x)
2576 case "$ac_configure_args0 " in
2577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2580 -* ) ac_must_keep_next=true ;;
2583 as_fn_append ac_configure_args " '$ac_arg'"
2588 { ac_configure_args0=; unset ac_configure_args0;}
2589 { ac_configure_args1=; unset ac_configure_args1;}
2591 # When interrupted or exit'd, cleanup temporary files, and complete
2592 # config.log. We remove comments because anyway the quotes in there
2593 # would cause problems or look ugly.
2594 # WARNING: Use '\'' to represent an apostrophe within the trap.
2595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2596 trap 'exit_status=$?
2597 # Save into config.log some information that might help in debugging.
2601 $as_echo "## ---------------- ##
2602 ## Cache variables. ##
2603 ## ---------------- ##"
2605 # The following way of writing the cache mishandles newlines in values,
2607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2608 eval ac_val=\$$ac_var
2612 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2616 _ | IFS | as_nl) ;; #(
2617 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2618 *) { eval $ac_var=; unset $ac_var;} ;;
2623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2624 *${as_nl}ac_space=\ *)
2626 "s/'\''/'\''\\\\'\'''\''/g;
2627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2637 $as_echo "## ----------------- ##
2638 ## Output variables. ##
2639 ## ----------------- ##"
2641 for ac_var in $ac_subst_vars
2643 eval ac_val=\$$ac_var
2645 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2647 $as_echo "$ac_var='\''$ac_val'\''"
2651 if test -n "$ac_subst_files"; then
2652 $as_echo "## ------------------- ##
2653 ## File substitutions. ##
2654 ## ------------------- ##"
2656 for ac_var in $ac_subst_files
2658 eval ac_val=\$$ac_var
2660 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2662 $as_echo "$ac_var='\''$ac_val'\''"
2667 if test -s confdefs.h; then
2668 $as_echo "## ----------- ##
2675 test "$ac_signal" != 0 &&
2676 $as_echo "$as_me: caught signal $ac_signal"
2677 $as_echo "$as_me: exit $exit_status"
2679 rm -f core *.core core.conftest.* &&
2680 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2683 for ac_signal in 1 2 13 15; do
2684 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2688 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2689 rm -f -r conftest* confdefs.h
2691 $as_echo "/* confdefs.h */" > confdefs.h
2693 # Predefined preprocessor variables.
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_NAME "$PACKAGE_NAME"
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_STRING "$PACKAGE_STRING"
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_URL "$PACKAGE_URL"
2720 # Let the site file select an alternate cache file if it wants to.
2721 # Prefer an explicitly selected file to automatically selected ones.
2724 if test -n "$CONFIG_SITE"; then
2725 # We do not want a PATH search for config.site.
2726 case $CONFIG_SITE in #((
2727 -*) ac_site_file1=./$CONFIG_SITE;;
2728 */*) ac_site_file1=$CONFIG_SITE;;
2729 *) ac_site_file1=./$CONFIG_SITE;;
2731 elif test "x$prefix" != xNONE; then
2732 ac_site_file1=$prefix/share/config.site
2733 ac_site_file2=$prefix/etc/config.site
2735 ac_site_file1=$ac_default_prefix/share/config.site
2736 ac_site_file2=$ac_default_prefix/etc/config.site
2738 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2740 test "x$ac_site_file" = xNONE && continue
2741 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2743 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2744 sed 's/^/| /' "$ac_site_file" >&5
2746 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 as_fn_error $? "failed to load site script $ac_site_file
2749 See \`config.log' for more details" "$LINENO" 5; }
2753 if test -r "$cache_file"; then
2754 # Some versions of bash will fail to source /dev/null (special files
2755 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2756 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2758 $as_echo "$as_me: loading cache $cache_file" >&6;}
2760 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2761 *) . "./$cache_file";;
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2766 $as_echo "$as_me: creating cache $cache_file" >&6;}
2770 # Check that the precious variables saved in the cache have kept the same
2772 ac_cache_corrupted=false
2773 for ac_var in $ac_precious_vars; do
2774 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2775 eval ac_new_set=\$ac_env_${ac_var}_set
2776 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2777 eval ac_new_val=\$ac_env_${ac_var}_value
2778 case $ac_old_set,$ac_new_set in
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2781 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2782 ac_cache_corrupted=: ;;
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2785 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2786 ac_cache_corrupted=: ;;
2789 if test "x$ac_old_val" != "x$ac_new_val"; then
2790 # differences in whitespace do not lead to failure.
2791 ac_old_val_w=`echo x $ac_old_val`
2792 ac_new_val_w=`echo x $ac_new_val`
2793 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2795 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2796 ac_cache_corrupted=:
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2799 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2800 eval $ac_var=\$ac_old_val
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2803 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2805 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2808 # Pass precious variables to config.status.
2809 if test "$ac_new_set" = set; then
2811 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2812 *) ac_arg=$ac_var=$ac_new_val ;;
2814 case " $ac_configure_args " in
2815 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2816 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2820 if $ac_cache_corrupted; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2824 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2825 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2827 ## -------------------- ##
2828 ## Main body of script. ##
2829 ## -------------------- ##
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 # The argument here is just something that should be in the current directory
2839 # (for sanity checking)
2842 am__api_version='1.11'
2845 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2846 if test -f "$ac_dir/install-sh"; then
2848 ac_install_sh="$ac_aux_dir/install-sh -c"
2850 elif test -f "$ac_dir/install.sh"; then
2852 ac_install_sh="$ac_aux_dir/install.sh -c"
2854 elif test -f "$ac_dir/shtool"; then
2856 ac_install_sh="$ac_aux_dir/shtool install -c"
2860 if test -z "$ac_aux_dir"; then
2861 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2864 # These three variables are undocumented and unsupported,
2865 # and are intended to be withdrawn in a future Autoconf release.
2866 # They can cause serious problems if a builder's source tree is in a directory
2867 # whose full name contains unusual characters.
2868 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2869 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2870 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2873 # Find a good install program. We prefer a C program (faster),
2874 # so one script is as good as another. But avoid the broken or
2875 # incompatible versions:
2876 # SysV /etc/install, /usr/sbin/install
2877 # SunOS /usr/etc/install
2878 # IRIX /sbin/install
2880 # AmigaOS /C/install, which installs bootblocks on floppy discs
2881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2884 # OS/2's system install, which has a completely different semantic
2885 # ./install, which can be erroneously created by make from ./install.sh.
2886 # Reject install programs that cannot install multiple files.
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2888 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2889 if test -z "$INSTALL"; then
2890 if ${ac_cv_path_install+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir=.
2898 # Account for people who put trailing slashes in PATH elements.
2899 case $as_dir/ in #((
2900 ./ | .// | /[cC]/* | \
2901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2902 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2905 # OSF1 and SCO ODT 3.0 have their own names for install.
2906 # Don't use installbsd from OSF since it installs stuff as root
2908 for ac_prog in ginstall scoinst install; do
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2911 if test $ac_prog = install &&
2912 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2913 # AIX install. It has an incompatible calling convention.
2915 elif test $ac_prog = install &&
2916 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2917 # program-specific install script used by HP pwplus--don't use.
2920 rm -rf conftest.one conftest.two conftest.dir
2921 echo one > conftest.one
2922 echo two > conftest.two
2924 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2925 test -s conftest.one && test -s conftest.two &&
2926 test -s conftest.dir/conftest.one &&
2927 test -s conftest.dir/conftest.two
2929 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2942 rm -rf conftest.one conftest.two conftest.dir
2945 if test "${ac_cv_path_install+set}" = set; then
2946 INSTALL=$ac_cv_path_install
2948 # As a last resort, use the slow shell script. Don't cache a
2949 # value for INSTALL within a source directory, because that will
2950 # break other packages using the cache if that directory is
2951 # removed, or if the value is a relative name.
2952 INSTALL=$ac_install_sh
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2956 $as_echo "$INSTALL" >&6; }
2958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2959 # It thinks the first close brace ends the variable substitution.
2960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2967 $as_echo_n "checking whether build environment is sane... " >&6; }
2970 echo timestamp > conftest.file
2971 # Reject unsafe characters in $srcdir or the absolute working directory
2972 # name. Accept space and tab only in the latter.
2976 *[\\\"\#\$\&\'\`$am_lf]*)
2977 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2980 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2981 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2984 # Do `set' in a subshell so we don't clobber the current shell's
2985 # arguments. Must try -L first in case configure is actually a
2986 # symlink; some systems play weird games with the mod time of symlinks
2987 # (eg FreeBSD returns the mod time of the symlink's containing
2990 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2991 if test "$*" = "X"; then
2993 set X `ls -t "$srcdir/configure" conftest.file`
2996 if test "$*" != "X $srcdir/configure conftest.file" \
2997 && test "$*" != "X conftest.file $srcdir/configure"; then
2999 # If neither matched, then we have a broken ls. This can happen
3000 # if, for instance, CONFIG_SHELL is bash and it inherits a
3001 # broken ls alias from the environment. This has actually
3002 # happened. Such a system could not be considered "sane".
3003 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3004 alias in your environment" "$LINENO" 5
3007 test "$2" = conftest.file
3013 as_fn_error $? "newly created file is older than distributed files!
3014 Check your system clock" "$LINENO" 5
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017 $as_echo "yes" >&6; }
3018 test "$program_prefix" != NONE &&
3019 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3020 # Use a double $ so make ignores it.
3021 test "$program_suffix" != NONE &&
3022 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3023 # Double any \ or $.
3024 # By default was `s,x,x', remove it if useless.
3025 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3026 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3028 # expand $ac_aux_dir to an absolute path
3029 am_aux_dir=`cd $ac_aux_dir && pwd`
3031 if test x"${MISSING+set}" != xset; then
3034 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3036 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3039 # Use eval to expand $SHELL
3040 if eval "$MISSING --run true"; then
3041 am_missing_run="$MISSING --run "
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3045 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3048 if test x"${install_sh}" != xset; then
3051 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3053 install_sh="\${SHELL} $am_aux_dir/install-sh"
3057 # Installed binaries are usually stripped using `strip' when the user
3058 # run `make install-strip'. However `strip' might not be the right
3059 # tool to use in cross-compilation environments, therefore Automake
3060 # will honor the `STRIP' environment variable to overrule this program.
3061 if test "$cross_compiling" != no; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}strip; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_STRIP+:} false; then :
3068 $as_echo_n "(cached) " >&6
3070 if test -n "$STRIP"; then
3071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 STRIP=$ac_cv_prog_STRIP
3091 if test -n "$STRIP"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3093 $as_echo "$STRIP" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3101 if test -z "$ac_cv_prog_STRIP"; then
3103 # Extract the first word of "strip", so it can be a program name with args.
3104 set dummy strip; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$ac_ct_STRIP"; then
3111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_ac_ct_STRIP="strip"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131 if test -n "$ac_ct_STRIP"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3133 $as_echo "$ac_ct_STRIP" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3139 if test "x$ac_ct_STRIP" = x; then
3142 case $cross_compiling:$ac_tool_warned in
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146 ac_tool_warned=yes ;;
3151 STRIP="$ac_cv_prog_STRIP"
3155 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3158 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3159 if test -z "$MKDIR_P"; then
3160 if ${ac_cv_path_mkdir+:} false; then :
3161 $as_echo_n "(cached) " >&6
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3167 test -z "$as_dir" && as_dir=.
3168 for ac_prog in mkdir gmkdir; do
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3171 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3172 'mkdir (GNU coreutils) '* | \
3173 'mkdir (coreutils) '* | \
3174 'mkdir (fileutils) '4.1*)
3175 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3185 test -d ./--version && rmdir ./--version
3186 if test "${ac_cv_path_mkdir+set}" = set; then
3187 MKDIR_P="$ac_cv_path_mkdir -p"
3189 # As a last resort, use the slow shell script. Don't cache a
3190 # value for MKDIR_P within a source directory, because that will
3191 # break other packages using the cache if that directory is
3192 # removed, or if the value is a relative name.
3193 MKDIR_P="$ac_install_sh -d"
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3197 $as_echo "$MKDIR_P" >&6; }
3201 [\\/$]* | ?:[\\/]*) ;;
3202 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3205 for ac_prog in gawk mawk nawk awk
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_AWK+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$AWK"; then
3215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_AWK="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 if test -n "$AWK"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3237 $as_echo "$AWK" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3244 test -n "$AWK" && break
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3251 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 cat >conftest.make <<\_ACEOF
3257 @echo '@@@%%%=$(MAKE)=@@@%%%'
3259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3262 eval ac_cv_prog_make_${ac_make}_set=yes;;
3264 eval ac_cv_prog_make_${ac_make}_set=no;;
3268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 SET_MAKE="MAKE=${MAKE-make}"
3278 rm -rf .tst 2>/dev/null
3279 mkdir .tst 2>/dev/null
3280 if test -d .tst; then
3285 rmdir .tst 2>/dev/null
3287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3288 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3289 # is not polluted with repeated "-I."
3290 am__isrc=' -I$(srcdir)'
3291 # test to see if srcdir already configured
3292 if test -f $srcdir/config.status; then
3293 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3297 # test whether we have cygpath
3298 if test -z "$CYGPATH_W"; then
3299 if (cygpath --version) >/dev/null 2>/dev/null; then
3300 CYGPATH_W='cygpath -w'
3307 # Define the identity of the package.
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE "$PACKAGE"
3317 cat >>confdefs.h <<_ACEOF
3318 #define VERSION "$VERSION"
3321 # Some tools Automake needs.
3323 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3326 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3329 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3332 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3335 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3337 # We need awk for the "check" target. The system "awk" is bad on
3339 # Always define AMTAR for backward compatibility.
3341 AMTAR=${AMTAR-"${am_missing_run}tar"}
3343 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3349 ac_config_headers="$ac_config_headers src/config.h"
3353 ac_cpp='$CXXCPP $CPPFLAGS'
3354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3359 # Checks for programs.
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 if test -n "$ac_tool_prefix"; then
3366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371 $as_echo_n "(cached) " >&6
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 if test -n "$CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3404 if test -z "$ac_cv_prog_CC"; then
3406 # Extract the first word of "gcc", so it can be a program name with args.
3407 set dummy gcc; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 if test -n "$ac_ct_CC"; then
3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_ac_ct_CC="gcc"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 $as_echo "$ac_ct_CC" >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3442 if test "x$ac_ct_CC" = x; then
3445 case $cross_compiling:$ac_tool_warned in
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3457 if test -z "$CC"; then
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}cc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_CC="${ac_tool_prefix}cc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3498 if test -z "$CC"; then
3499 # Extract the first word of "cc", so it can be a program name with args.
3500 set dummy cc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC="$CC" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3518 ac_prog_rejected=yes
3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test $ac_prog_rejected = yes; then
3530 # We found a bogon in the path, so make sure we never use it.
3531 set dummy $ac_cv_prog_CC
3533 if test $# != 0; then
3534 # We chose a different compiler from the bogus one.
3535 # However, it has the same basename, so the bogon will be chosen
3536 # first if we set CC to just the basename; use the full file name.
3538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3544 if test -n "$CC"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3546 $as_echo "$CC" >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3554 if test -z "$CC"; then
3555 if test -n "$ac_tool_prefix"; then
3556 for ac_prog in cl.exe
3558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if ${ac_cv_prog_CC+:} false; then :
3563 $as_echo_n "(cached) " >&6
3565 if test -n "$CC"; then
3566 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 if test -n "$CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3595 test -n "$CC" && break
3598 if test -z "$CC"; then
3600 for ac_prog in cl.exe
3602 # Extract the first word of "$ac_prog", so it can be a program name with args.
3603 set dummy $ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$ac_ct_CC"; then
3610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_ac_ct_CC="$ac_prog"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3630 if test -n "$ac_ct_CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3632 $as_echo "$ac_ct_CC" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3639 test -n "$ac_ct_CC" && break
3642 if test "x$ac_ct_CC" = x; then
3645 case $cross_compiling:$ac_tool_warned in
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3649 ac_tool_warned=yes ;;
3658 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error $? "no acceptable C compiler found in \$PATH
3661 See \`config.log' for more details" "$LINENO" 5; }
3663 # Provide some information about the compiler.
3664 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3667 for ac_option in --version -v -V -qversion; do
3668 { { ac_try="$ac_compiler $ac_option >&5"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3677 if test -s conftest.err; then
3679 ... rest of stderr output deleted ...
3680 10q' conftest.err >conftest.er1
3681 cat conftest.er1 >&5
3683 rm -f conftest.er1 conftest.err
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3699 ac_clean_files_save=$ac_clean_files
3700 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3701 # Try to create an executable without -o first, disregard a.out.
3702 # It will help us diagnose broken compilers, and finding out an intuition
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3705 $as_echo_n "checking whether the C compiler works... " >&6; }
3706 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3708 # The possible output files:
3709 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3712 for ac_file in $ac_files
3715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3716 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3721 if { { ac_try="$ac_link_default"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_link_default") 2>&5
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }; then :
3732 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3733 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3734 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3735 # so that the user can short-circuit this test for compilers unknown to
3737 for ac_file in $ac_files ''
3739 test -f "$ac_file" || continue
3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3744 # We found the default executable, but exeext='' is most
3748 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3750 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752 # We set ac_cv_exeext here because the later test for it is not
3753 # safe: cross compilers may not add the suffix if given an `-o'
3754 # argument, so we may need to know it at that point already.
3755 # Even if this section looks crufty: it has the advantage of
3762 test "$ac_cv_exeext" = no && ac_cv_exeext=
3767 if test -z "$ac_file"; then :
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3770 $as_echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3775 as_fn_error 77 "C compiler cannot create executables
3776 See \`config.log' for more details" "$LINENO" 5; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779 $as_echo "yes" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3782 $as_echo_n "checking for C compiler default output file name... " >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3784 $as_echo "$ac_file" >&6; }
3785 ac_exeext=$ac_cv_exeext
3787 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3788 ac_clean_files=$ac_clean_files_save
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3790 $as_echo_n "checking for suffix of executables... " >&6; }
3791 if { { ac_try="$ac_link"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_link") 2>&5
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; then :
3802 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3803 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3804 # work properly (i.e., refer to `conftest.exe'), while it won't with
3806 for ac_file in conftest.exe conftest conftest.*; do
3807 test -f "$ac_file" || continue
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3810 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3819 See \`config.log' for more details" "$LINENO" 5; }
3821 rm -f conftest conftest$ac_cv_exeext
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3823 $as_echo "$ac_cv_exeext" >&6; }
3825 rm -f conftest.$ac_ext
3826 EXEEXT=$ac_cv_exeext
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3834 FILE *f = fopen ("conftest.out", "w");
3835 return ferror (f) || fclose (f) != 0;
3841 ac_clean_files="$ac_clean_files conftest.out"
3842 # Check that the compiler produces executables we can run. If not, either
3843 # the compiler is broken, or we cross compile.
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3845 $as_echo_n "checking whether we are cross compiling... " >&6; }
3846 if test "$cross_compiling" != yes; then
3847 { { ac_try="$ac_link"
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_link") 2>&5
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3858 if { ac_try='./conftest$ac_cv_exeext'
3859 { { case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_try") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; }; then
3871 if test "$cross_compiling" = maybe; then
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error $? "cannot run C compiled programs.
3877 If you meant to cross compile, use \`--host'.
3878 See \`config.log' for more details" "$LINENO" 5; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3883 $as_echo "$cross_compiling" >&6; }
3885 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3886 ac_clean_files=$ac_clean_files_save
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3888 $as_echo_n "checking for suffix of object files... " >&6; }
3889 if ${ac_cv_objext+:} false; then :
3890 $as_echo_n "(cached) " >&6
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3903 rm -f conftest.o conftest.obj
3904 if { { ac_try="$ac_compile"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_compile") 2>&5
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; then :
3915 for ac_file in conftest.o conftest.obj conftest.*; do
3916 test -f "$ac_file" || continue;
3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3924 $as_echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error $? "cannot compute suffix of object files: cannot compile
3930 See \`config.log' for more details" "$LINENO" 5; }
3932 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3935 $as_echo "$ac_cv_objext" >&6; }
3936 OBJEXT=$ac_cv_objext
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3940 if ${ac_cv_c_compiler_gnu+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3957 if ac_fn_c_try_compile "$LINENO"; then :
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3968 if test $ac_compiler_gnu = yes; then
3973 ac_test_CFLAGS=${CFLAGS+set}
3974 ac_save_CFLAGS=$CFLAGS
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3977 if ${ac_cv_prog_cc_g+:} false; then :
3978 $as_echo_n "(cached) " >&6
3980 ac_save_c_werror_flag=$ac_c_werror_flag
3981 ac_c_werror_flag=yes
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3995 if ac_fn_c_try_compile "$LINENO"; then :
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_c_werror_flag=$ac_save_c_werror_flag
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4026 if ac_fn_c_try_compile "$LINENO"; then :
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 ac_c_werror_flag=$ac_save_c_werror_flag
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4037 $as_echo "$ac_cv_prog_cc_g" >&6; }
4038 if test "$ac_test_CFLAGS" = set; then
4039 CFLAGS=$ac_save_CFLAGS
4040 elif test $ac_cv_prog_cc_g = yes; then
4041 if test "$GCC" = yes; then
4047 if test "$GCC" = yes; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4055 if ${ac_cv_prog_cc_c89+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 ac_cv_prog_cc_c89=no
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4064 #include <sys/types.h>
4065 #include <sys/stat.h>
4066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4067 struct buf { int x; };
4068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4069 static char *e (p, i)
4075 static char *f (char * (*g) (char **, int), char **p, ...)
4080 s = g (p, va_arg (v,int));
4085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4086 function prototypes and stuff, but not '\xHH' hex character constants.
4087 These don't provoke an error unfortunately, instead are silently treated
4088 as 'x'. The following induces an error, until -std is added to get
4089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4090 array size at least. It's necessary to write '\x00'==0 to get something
4091 that's true only with -std. */
4092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4095 inside strings and character constants. */
4097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4099 int test (int i, double x);
4100 struct s1 {int (*f) (int a);};
4101 struct s2 {int (*f) (double a);};
4102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4114 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4116 CC="$ac_save_CC $ac_arg"
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_prog_cc_c89=$ac_arg
4120 rm -f core conftest.err conftest.$ac_objext
4121 test "x$ac_cv_prog_cc_c89" != "xno" && break
4123 rm -f conftest.$ac_ext
4128 case "x$ac_cv_prog_cc_c89" in
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4136 CC="$CC $ac_cv_prog_cc_c89"
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4140 if test "x$ac_cv_prog_cc_c89" != xno; then :
4145 ac_cpp='$CXXCPP $CPPFLAGS'
4146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4149 DEPDIR="${am__leading_dot}deps"
4151 ac_config_commands="$ac_config_commands depfiles"
4154 am_make=${MAKE-make}
4155 cat > confinc << 'END'
4157 @echo this is the am__doit target
4160 # If we don't find an include directive, just comment out the code.
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4162 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4166 # First try GNU make style include.
4167 echo "include confinc" > confmf
4168 # Ignore all kinds of additional output from `make'.
4169 case `$am_make -s -f confmf 2> /dev/null` in #(
4170 *the\ am__doit\ target*)
4176 # Now try BSD make style include.
4177 if test "$am__include" = "#"; then
4178 echo '.include "confinc"' > confmf
4179 case `$am_make -s -f confmf 2> /dev/null` in #(
4180 *the\ am__doit\ target*)
4181 am__include=.include
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4190 $as_echo "$_am_result" >&6; }
4191 rm -f confinc confmf
4193 # Check whether --enable-dependency-tracking was given.
4194 if test "${enable_dependency_tracking+set}" = set; then :
4195 enableval=$enable_dependency_tracking;
4198 if test "x$enable_dependency_tracking" != xno; then
4199 am_depcomp="$ac_aux_dir/depcomp"
4202 if test "x$enable_dependency_tracking" != xno; then
4212 depcc="$CC" am_compiler_list=
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4215 $as_echo_n "checking dependency style of $depcc... " >&6; }
4216 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4217 $as_echo_n "(cached) " >&6
4219 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4220 # We make a subdir and do the tests there. Otherwise we can end up
4221 # making bogus files that we don't know about and never remove. For
4222 # instance it was reported that on HP-UX the gcc test will end up
4223 # making a dummy file named `D' -- because `-MD' means `put the output
4226 # Copy depcomp to subdir because otherwise we won't find it if we're
4227 # using a relative directory.
4228 cp "$am_depcomp" conftest.dir
4230 # We will build objects and dependencies in a subdirectory because
4231 # it helps to detect inapplicable dependency modes. For instance
4232 # both Tru64's cc and ICC support -MD to output dependencies as a
4233 # side effect of compilation, but ICC will put the dependencies in
4234 # the current directory while Tru64 will put them in the object
4238 am_cv_CC_dependencies_compiler_type=none
4239 if test "$am_compiler_list" = ""; then
4240 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4243 case " $depcc " in #(
4244 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4247 for depmode in $am_compiler_list; do
4248 # Setup a source with many dependencies, because some compilers
4249 # like to wrap large dependency lists on column 80 (with \), and
4250 # we should not choose a depcomp mode which is confused by this.
4252 # We need to recreate these files for each test, as the compiler may
4253 # overwrite some of them when testing with obscure command lines.
4254 # This happens at least with the AIX C compiler.
4256 for i in 1 2 3 4 5 6; do
4257 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4258 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4259 # Solaris 8's {/usr,}/bin/sh.
4260 touch sub/conftst$i.h
4262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4265 # mode. It turns out that the SunPro C++ compiler does not properly
4266 # handle `-M -o', and we need to detect this. Also, some Intel
4267 # versions had trouble with output in subdirs
4268 am__obj=sub/conftest.${OBJEXT-o}
4269 am__minus_obj="-o $am__obj"
4272 # This depmode causes a compiler race in universal mode.
4273 test "$am__universal" = false || continue
4276 # after this tag, mechanisms are not by side-effect, so they'll
4277 # only be used when explicitly requested
4278 if test "x$enable_dependency_tracking" = xyes; then
4284 msvisualcpp | msvcmsys)
4285 # This compiler won't grok `-c -o', but also, the minuso test has
4286 # not run yet. These depmodes are late enough in the game, and
4287 # so weak that their functioning should not be impacted.
4288 am__obj=conftest.${OBJEXT-o}
4293 if depmode=$depmode \
4294 source=sub/conftest.c object=$am__obj \
4295 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4296 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4297 >/dev/null 2>conftest.err &&
4298 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4299 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4300 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4301 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4302 # icc doesn't choke on unknown options, it will just issue warnings
4303 # or remarks (even with -Werror). So we grep stderr for any message
4304 # that says an option was ignored or not supported.
4305 # When given -MP, icc 7.0 and 7.1 complain thusly:
4306 # icc: Command line warning: ignoring option '-M'; no argument required
4307 # The diagnosis changed in icc 8.0:
4308 # icc: Command line remark: option '-MP' not supported
4309 if (grep 'ignoring option' conftest.err ||
4310 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4311 am_cv_CC_dependencies_compiler_type=$depmode
4320 am_cv_CC_dependencies_compiler_type=none
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4325 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4326 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4329 test "x$enable_dependency_tracking" != xno \
4330 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4332 am__fastdepCC_FALSE='#'
4334 am__fastdepCC_TRUE='#'
4335 am__fastdepCC_FALSE=
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4345 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4346 # On Suns, sometimes $CPP names a directory.
4347 if test -n "$CPP" && test -d "$CPP"; then
4350 if test -z "$CPP"; then
4351 if ${ac_cv_prog_CPP+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 # Double quotes because CPP needs to be expanded
4355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4358 for ac_c_preproc_warn_flag in '' yes
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4369 # include <limits.h>
4371 # include <assert.h>
4375 if ac_fn_c_try_cpp "$LINENO"; then :
4378 # Broken: fails on valid input.
4381 rm -f conftest.err conftest.i conftest.$ac_ext
4383 # OK, works on sane cases. Now check whether nonexistent headers
4384 # can be detected and how.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4389 if ac_fn_c_try_cpp "$LINENO"; then :
4390 # Broken: success on invalid input.
4393 # Passes both tests.
4397 rm -f conftest.err conftest.i conftest.$ac_ext
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.i conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then :
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4415 $as_echo "$CPP" >&6; }
4417 for ac_c_preproc_warn_flag in '' yes
4419 # Use a header file that comes with gcc, so configuring glibc
4420 # with a fresh cross-compiler works.
4421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422 # <limits.h> exists even on freestanding compilers.
4423 # On the NeXT, cc -E runs the code through the compiler's parser,
4424 # not just through cpp. "Syntax error" is here to catch this case.
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4428 # include <limits.h>
4430 # include <assert.h>
4434 if ac_fn_c_try_cpp "$LINENO"; then :
4437 # Broken: fails on valid input.
4440 rm -f conftest.err conftest.i conftest.$ac_ext
4442 # OK, works on sane cases. Now check whether nonexistent headers
4443 # can be detected and how.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <ac_nonexistent.h>
4448 if ac_fn_c_try_cpp "$LINENO"; then :
4449 # Broken: success on invalid input.
4452 # Passes both tests.
4456 rm -f conftest.err conftest.i conftest.$ac_ext
4459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460 rm -f conftest.i conftest.err conftest.$ac_ext
4461 if $ac_preproc_ok; then :
4464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4466 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4467 See \`config.log' for more details" "$LINENO" 5; }
4471 ac_cpp='$CXXCPP $CPPFLAGS'
4472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4477 ac_cpp='$CXXCPP $CPPFLAGS'
4478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4481 if test -z "$CXX"; then
4482 if test -n "$CCC"; then
4485 if test -n "$ac_tool_prefix"; then
4486 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_CXX+:} false; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -n "$CXX"; then
4496 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 if test -n "$CXX"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4518 $as_echo "$CXX" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4525 test -n "$CXX" && break
4528 if test -z "$CXX"; then
4530 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4532 # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4537 $as_echo_n "(cached) " >&6
4539 if test -n "$ac_ct_CXX"; then
4540 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_prog_ac_ct_CXX="$ac_prog"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4560 if test -n "$ac_ct_CXX"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4562 $as_echo "$ac_ct_CXX" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4569 test -n "$ac_ct_CXX" && break
4572 if test "x$ac_ct_CXX" = x; then
4575 case $cross_compiling:$ac_tool_warned in
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4579 ac_tool_warned=yes ;;
4587 # Provide some information about the compiler.
4588 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4591 for ac_option in --version -v -V -qversion; do
4592 { { ac_try="$ac_compiler $ac_option >&5"
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4598 $as_echo "$ac_try_echo"; } >&5
4599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4601 if test -s conftest.err; then
4603 ... rest of stderr output deleted ...
4604 10q' conftest.err >conftest.er1
4605 cat conftest.er1 >&5
4607 rm -f conftest.er1 conftest.err
4608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4609 test $ac_status = 0; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4613 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4614 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4615 $as_echo_n "(cached) " >&6
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4631 if ac_fn_cxx_try_compile "$LINENO"; then :
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4641 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4642 if test $ac_compiler_gnu = yes; then
4647 ac_test_CXXFLAGS=${CXXFLAGS+set}
4648 ac_save_CXXFLAGS=$CXXFLAGS
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4650 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4651 if ${ac_cv_prog_cxx_g+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4655 ac_cxx_werror_flag=yes
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4669 if ac_fn_cxx_try_compile "$LINENO"; then :
4670 ac_cv_prog_cxx_g=yes
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4684 if ac_fn_cxx_try_compile "$LINENO"; then :
4687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4700 if ac_fn_cxx_try_compile "$LINENO"; then :
4701 ac_cv_prog_cxx_g=yes
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4711 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4712 if test "$ac_test_CXXFLAGS" = set; then
4713 CXXFLAGS=$ac_save_CXXFLAGS
4714 elif test $ac_cv_prog_cxx_g = yes; then
4715 if test "$GXX" = yes; then
4721 if test "$GXX" = yes; then
4728 ac_cpp='$CXXCPP $CPPFLAGS'
4729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4733 depcc="$CXX" am_compiler_list=
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4736 $as_echo_n "checking dependency style of $depcc... " >&6; }
4737 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4741 # We make a subdir and do the tests there. Otherwise we can end up
4742 # making bogus files that we don't know about and never remove. For
4743 # instance it was reported that on HP-UX the gcc test will end up
4744 # making a dummy file named `D' -- because `-MD' means `put the output
4747 # Copy depcomp to subdir because otherwise we won't find it if we're
4748 # using a relative directory.
4749 cp "$am_depcomp" conftest.dir
4751 # We will build objects and dependencies in a subdirectory because
4752 # it helps to detect inapplicable dependency modes. For instance
4753 # both Tru64's cc and ICC support -MD to output dependencies as a
4754 # side effect of compilation, but ICC will put the dependencies in
4755 # the current directory while Tru64 will put them in the object
4759 am_cv_CXX_dependencies_compiler_type=none
4760 if test "$am_compiler_list" = ""; then
4761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4764 case " $depcc " in #(
4765 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4768 for depmode in $am_compiler_list; do
4769 # Setup a source with many dependencies, because some compilers
4770 # like to wrap large dependency lists on column 80 (with \), and
4771 # we should not choose a depcomp mode which is confused by this.
4773 # We need to recreate these files for each test, as the compiler may
4774 # overwrite some of them when testing with obscure command lines.
4775 # This happens at least with the AIX C compiler.
4777 for i in 1 2 3 4 5 6; do
4778 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4779 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4780 # Solaris 8's {/usr,}/bin/sh.
4781 touch sub/conftst$i.h
4783 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4785 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4786 # mode. It turns out that the SunPro C++ compiler does not properly
4787 # handle `-M -o', and we need to detect this. Also, some Intel
4788 # versions had trouble with output in subdirs
4789 am__obj=sub/conftest.${OBJEXT-o}
4790 am__minus_obj="-o $am__obj"
4793 # This depmode causes a compiler race in universal mode.
4794 test "$am__universal" = false || continue
4797 # after this tag, mechanisms are not by side-effect, so they'll
4798 # only be used when explicitly requested
4799 if test "x$enable_dependency_tracking" = xyes; then
4805 msvisualcpp | msvcmsys)
4806 # This compiler won't grok `-c -o', but also, the minuso test has
4807 # not run yet. These depmodes are late enough in the game, and
4808 # so weak that their functioning should not be impacted.
4809 am__obj=conftest.${OBJEXT-o}
4814 if depmode=$depmode \
4815 source=sub/conftest.c object=$am__obj \
4816 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4817 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4818 >/dev/null 2>conftest.err &&
4819 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4820 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4821 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4822 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4823 # icc doesn't choke on unknown options, it will just issue warnings
4824 # or remarks (even with -Werror). So we grep stderr for any message
4825 # that says an option was ignored or not supported.
4826 # When given -MP, icc 7.0 and 7.1 complain thusly:
4827 # icc: Command line warning: ignoring option '-M'; no argument required
4828 # The diagnosis changed in icc 8.0:
4829 # icc: Command line remark: option '-MP' not supported
4830 if (grep 'ignoring option' conftest.err ||
4831 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4832 am_cv_CXX_dependencies_compiler_type=$depmode
4841 am_cv_CXX_dependencies_compiler_type=none
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4846 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4847 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4850 test "x$enable_dependency_tracking" != xno \
4851 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4852 am__fastdepCXX_TRUE=
4853 am__fastdepCXX_FALSE='#'
4855 am__fastdepCXX_TRUE='#'
4856 am__fastdepCXX_FALSE=
4860 if test "$GCC" = yes; then
4867 # let the Makefile know if we're gcc
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4872 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4877 macro_version='2.2.6b'
4878 macro_revision='1.3017'
4892 ltmain="$ac_aux_dir/ltmain.sh"
4894 # Make sure we can run config.sub.
4895 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4896 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4899 $as_echo_n "checking build system type... " >&6; }
4900 if ${ac_cv_build+:} false; then :
4901 $as_echo_n "(cached) " >&6
4903 ac_build_alias=$build_alias
4904 test "x$ac_build_alias" = x &&
4905 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4906 test "x$ac_build_alias" = x &&
4907 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4908 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4909 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4913 $as_echo "$ac_cv_build" >&6; }
4914 case $ac_cv_build in
4916 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4919 ac_save_IFS=$IFS; IFS='-'
4925 # Remember, the first character of IFS is used to create $*,
4926 # except with old shells:
4929 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4933 $as_echo_n "checking host system type... " >&6; }
4934 if ${ac_cv_host+:} false; then :
4935 $as_echo_n "(cached) " >&6
4937 if test "x$host_alias" = x; then
4938 ac_cv_host=$ac_cv_build
4940 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4941 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4946 $as_echo "$ac_cv_host" >&6; }
4949 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4952 ac_save_IFS=$IFS; IFS='-'
4958 # Remember, the first character of IFS is used to create $*,
4959 # except with old shells:
4962 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4966 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4967 if ${ac_cv_path_SED+:} false; then :
4968 $as_echo_n "(cached) " >&6
4970 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4971 for ac_i in 1 2 3 4 5 6 7; do
4972 ac_script="$ac_script$as_nl$ac_script"
4974 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4975 { ac_script=; unset ac_script;}
4976 if test -z "$SED"; then
4977 ac_path_SED_found=false
4978 # Loop through the user's path and test for each of PROGNAME-LIST
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_prog in sed gsed; do
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4987 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4988 # Check for GNU ac_path_SED and select it if it is found.
4989 # Check for GNU $ac_path_SED
4990 case `"$ac_path_SED" --version 2>&1` in
4992 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4995 $as_echo_n 0123456789 >"conftest.in"
4998 cat "conftest.in" "conftest.in" >"conftest.tmp"
4999 mv "conftest.tmp" "conftest.in"
5000 cp "conftest.in" "conftest.nl"
5001 $as_echo '' >> "conftest.nl"
5002 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004 as_fn_arith $ac_count + 1 && ac_count=$as_val
5005 if test $ac_count -gt ${ac_path_SED_max-0}; then
5006 # Best one so far, save it but keep looking for a better one
5007 ac_cv_path_SED="$ac_path_SED"
5008 ac_path_SED_max=$ac_count
5010 # 10*(2^10) chars as input seems more than enough
5011 test $ac_count -gt 10 && break
5013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5016 $ac_path_SED_found && break 3
5021 if test -z "$ac_cv_path_SED"; then
5022 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5030 $as_echo "$ac_cv_path_SED" >&6; }
5031 SED="$ac_cv_path_SED"
5034 test -z "$SED" && SED=sed
5035 Xsed="$SED -e 1s/^X//"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5048 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5049 if ${ac_cv_path_GREP+:} false; then :
5050 $as_echo_n "(cached) " >&6
5052 if test -z "$GREP"; then
5053 ac_path_GREP_found=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 test -z "$as_dir" && as_dir=.
5060 for ac_prog in grep ggrep; do
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5063 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5064 # Check for GNU ac_path_GREP and select it if it is found.
5065 # Check for GNU $ac_path_GREP
5066 case `"$ac_path_GREP" --version 2>&1` in
5068 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5071 $as_echo_n 0123456789 >"conftest.in"
5074 cat "conftest.in" "conftest.in" >"conftest.tmp"
5075 mv "conftest.tmp" "conftest.in"
5076 cp "conftest.in" "conftest.nl"
5077 $as_echo 'GREP' >> "conftest.nl"
5078 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080 as_fn_arith $ac_count + 1 && ac_count=$as_val
5081 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5082 # Best one so far, save it but keep looking for a better one
5083 ac_cv_path_GREP="$ac_path_GREP"
5084 ac_path_GREP_max=$ac_count
5086 # 10*(2^10) chars as input seems more than enough
5087 test $ac_count -gt 10 && break
5089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5092 $ac_path_GREP_found && break 3
5097 if test -z "$ac_cv_path_GREP"; then
5098 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101 ac_cv_path_GREP=$GREP
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5106 $as_echo "$ac_cv_path_GREP" >&6; }
5107 GREP="$ac_cv_path_GREP"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5111 $as_echo_n "checking for egrep... " >&6; }
5112 if ${ac_cv_path_EGREP+:} false; then :
5113 $as_echo_n "(cached) " >&6
5115 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5116 then ac_cv_path_EGREP="$GREP -E"
5118 if test -z "$EGREP"; then
5119 ac_path_EGREP_found=false
5120 # Loop through the user's path and test for each of PROGNAME-LIST
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5125 test -z "$as_dir" && as_dir=.
5126 for ac_prog in egrep; do
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5129 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5130 # Check for GNU ac_path_EGREP and select it if it is found.
5131 # Check for GNU $ac_path_EGREP
5132 case `"$ac_path_EGREP" --version 2>&1` in
5134 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5137 $as_echo_n 0123456789 >"conftest.in"
5140 cat "conftest.in" "conftest.in" >"conftest.tmp"
5141 mv "conftest.tmp" "conftest.in"
5142 cp "conftest.in" "conftest.nl"
5143 $as_echo 'EGREP' >> "conftest.nl"
5144 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5146 as_fn_arith $ac_count + 1 && ac_count=$as_val
5147 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5148 # Best one so far, save it but keep looking for a better one
5149 ac_cv_path_EGREP="$ac_path_EGREP"
5150 ac_path_EGREP_max=$ac_count
5152 # 10*(2^10) chars as input seems more than enough
5153 test $ac_count -gt 10 && break
5155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5158 $ac_path_EGREP_found && break 3
5163 if test -z "$ac_cv_path_EGREP"; then
5164 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5167 ac_cv_path_EGREP=$EGREP
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5173 $as_echo "$ac_cv_path_EGREP" >&6; }
5174 EGREP="$ac_cv_path_EGREP"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5178 $as_echo_n "checking for fgrep... " >&6; }
5179 if ${ac_cv_path_FGREP+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5183 then ac_cv_path_FGREP="$GREP -F"
5185 if test -z "$FGREP"; then
5186 ac_path_FGREP_found=false
5187 # Loop through the user's path and test for each of PROGNAME-LIST
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192 test -z "$as_dir" && as_dir=.
5193 for ac_prog in fgrep; do
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5196 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5197 # Check for GNU ac_path_FGREP and select it if it is found.
5198 # Check for GNU $ac_path_FGREP
5199 case `"$ac_path_FGREP" --version 2>&1` in
5201 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5204 $as_echo_n 0123456789 >"conftest.in"
5207 cat "conftest.in" "conftest.in" >"conftest.tmp"
5208 mv "conftest.tmp" "conftest.in"
5209 cp "conftest.in" "conftest.nl"
5210 $as_echo 'FGREP' >> "conftest.nl"
5211 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213 as_fn_arith $ac_count + 1 && ac_count=$as_val
5214 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5215 # Best one so far, save it but keep looking for a better one
5216 ac_cv_path_FGREP="$ac_path_FGREP"
5217 ac_path_FGREP_max=$ac_count
5219 # 10*(2^10) chars as input seems more than enough
5220 test $ac_count -gt 10 && break
5222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225 $ac_path_FGREP_found && break 3
5230 if test -z "$ac_cv_path_FGREP"; then
5231 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234 ac_cv_path_FGREP=$FGREP
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5240 $as_echo "$ac_cv_path_FGREP" >&6; }
5241 FGREP="$ac_cv_path_FGREP"
5244 test -z "$GREP" && GREP=grep
5264 # Check whether --with-gnu-ld was given.
5265 if test "${with_gnu_ld+set}" = set; then :
5266 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5272 if test "$GCC" = yes; then
5273 # Check if gcc -print-prog-name=ld gives a path.
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5275 $as_echo_n "checking for ld used by $CC... " >&6; }
5278 # gcc leaves a trailing carriage return which upsets mingw
5279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5284 # Accept absolute paths.
5286 re_direlt='/[^/][^/]*/\.\./'
5287 # Canonicalize the pathname of ld
5288 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5289 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5290 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5292 test -z "$LD" && LD="$ac_prog"
5295 # If it fails, then pretend we aren't using GCC.
5299 # If it is relative, then search for the first ld in PATH.
5303 elif test "$with_gnu_ld" = yes; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5305 $as_echo_n "checking for GNU ld... " >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5308 $as_echo_n "checking for non-GNU ld... " >&6; }
5310 if ${lt_cv_path_LD+:} false; then :
5311 $as_echo_n "(cached) " >&6
5313 if test -z "$LD"; then
5314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5315 for ac_dir in $PATH; do
5317 test -z "$ac_dir" && ac_dir=.
5318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5319 lt_cv_path_LD="$ac_dir/$ac_prog"
5320 # Check to see if the program is GNU ld. I'd rather use --version,
5321 # but apparently some variants of GNU ld only accept -v.
5322 # Break only if it was the GNU/non-GNU ld that we prefer.
5323 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5324 *GNU* | *'with BFD'*)
5325 test "$with_gnu_ld" != no && break
5328 test "$with_gnu_ld" != yes && break
5335 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5340 if test -n "$LD"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5342 $as_echo "$LD" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5350 if ${lt_cv_prog_gnu_ld+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5354 case `$LD -v 2>&1 </dev/null` in
5355 *GNU* | *'with BFD'*)
5356 lt_cv_prog_gnu_ld=yes
5359 lt_cv_prog_gnu_ld=no
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5365 with_gnu_ld=$lt_cv_prog_gnu_ld
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5377 if ${lt_cv_path_NM+:} false; then :
5378 $as_echo_n "(cached) " >&6
5380 if test -n "$NM"; then
5381 # Let the user override the test.
5384 lt_nm_to_check="${ac_tool_prefix}nm"
5385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5386 lt_nm_to_check="$lt_nm_to_check nm"
5388 for lt_tmp_nm in $lt_nm_to_check; do
5389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5392 test -z "$ac_dir" && ac_dir=.
5393 tmp_nm="$ac_dir/$lt_tmp_nm"
5394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5395 # Check to see if the nm accepts a BSD-compat flag.
5396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5397 # nm: unknown option "B" ignored
5398 # Tru64's nm complains that /dev/null is an invalid object file
5399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5400 */dev/null* | *'Invalid file or object type'*)
5401 lt_cv_path_NM="$tmp_nm -B"
5405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5407 lt_cv_path_NM="$tmp_nm -p"
5411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5412 continue # so that we can try to find one that supports BSD flags
5421 : ${lt_cv_path_NM=no}
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5425 $as_echo "$lt_cv_path_NM" >&6; }
5426 if test "$lt_cv_path_NM" != "no"; then
5429 # Didn't find any BSD compatible name lister, look for dumpbin.
5430 if test -n "$ac_tool_prefix"; then
5431 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_DUMPBIN+:} false; then :
5438 $as_echo_n "(cached) " >&6
5440 if test -n "$DUMPBIN"; then
5441 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 DUMPBIN=$ac_cv_prog_DUMPBIN
5461 if test -n "$DUMPBIN"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5463 $as_echo "$DUMPBIN" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5470 test -n "$DUMPBIN" && break
5473 if test -z "$DUMPBIN"; then
5474 ac_ct_DUMPBIN=$DUMPBIN
5475 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5477 # Extract the first word of "$ac_prog", so it can be a program name with args.
5478 set dummy $ac_prog; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 if test -n "$ac_ct_DUMPBIN"; then
5485 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5505 if test -n "$ac_ct_DUMPBIN"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5507 $as_echo "$ac_ct_DUMPBIN" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5514 test -n "$ac_ct_DUMPBIN" && break
5517 if test "x$ac_ct_DUMPBIN" = x; then
5520 case $cross_compiling:$ac_tool_warned in
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5526 DUMPBIN=$ac_ct_DUMPBIN
5531 if test "$DUMPBIN" != ":"; then
5535 test -z "$NM" && NM=nm
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5544 if ${lt_cv_nm_interface+:} false; then :
5545 $as_echo_n "(cached) " >&6
5547 lt_cv_nm_interface="BSD nm"
5548 echo "int some_variable = 0;" > conftest.$ac_ext
5549 (eval echo "\"\$as_me:5549: $ac_compile\"" >&5)
5550 (eval "$ac_compile" 2>conftest.err)
5551 cat conftest.err >&5
5552 (eval echo "\"\$as_me:5552: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5554 cat conftest.err >&5
5555 (eval echo "\"\$as_me:5555: output\"" >&5)
5556 cat conftest.out >&5
5557 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5558 lt_cv_nm_interface="MS dumpbin"
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5563 $as_echo "$lt_cv_nm_interface" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5566 $as_echo_n "checking whether ln -s works... " >&6; }
5568 if test "$LN_S" = "ln -s"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5570 $as_echo "yes" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5573 $as_echo "no, using $LN_S" >&6; }
5576 # find the maximum length of command line arguments
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5579 if ${lt_cv_sys_max_cmd_len+:} false; then :
5580 $as_echo_n "(cached) " >&6
5587 # On DJGPP, this test can blow up pretty badly due to problems in libc
5588 # (any single argument exceeding 2000 bytes causes a buffer overrun
5589 # during glob expansion). Even if it were fixed, the result of this
5590 # check would be larger than it should be.
5591 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5595 # Under GNU Hurd, this test is not required because there is
5596 # no limit to the length of command line arguments.
5597 # Libtool will interpret -1 as no limit whatsoever
5598 lt_cv_sys_max_cmd_len=-1;
5601 cygwin* | mingw* | cegcc*)
5602 # On Win9x/ME, this test blows up -- it succeeds, but takes
5603 # about 5 minutes as the teststring grows exponentially.
5604 # Worse, since 9x/ME are not pre-emptively multitasking,
5605 # you end up with a "frozen" computer, even though with patience
5606 # the test eventually succeeds (with a max line length of 256k).
5607 # Instead, let's just punt: use the minimum linelength reported by
5608 # all of the supported platforms: 8192 (on NT/2K/XP).
5609 lt_cv_sys_max_cmd_len=8192;
5613 # On AmigaOS with pdksh, this test takes hours, literally.
5614 # So we just punt and use a minimum line length of 8192.
5615 lt_cv_sys_max_cmd_len=8192;
5618 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5619 # This has been around since 386BSD, at least. Likely further.
5620 if test -x /sbin/sysctl; then
5621 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5622 elif test -x /usr/sbin/sysctl; then
5623 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5625 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5627 # And add a safety zone
5628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5633 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5634 lt_cv_sys_max_cmd_len=196608
5638 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5639 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5640 # nice to cause kernel panics so lets avoid the loop below.
5641 # First set a reasonable default.
5642 lt_cv_sys_max_cmd_len=16384
5644 if test -x /sbin/sysconfig; then
5645 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5646 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5651 lt_cv_sys_max_cmd_len=102400
5653 sysv5* | sco5v6* | sysv4.2uw2*)
5654 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5655 if test -n "$kargmax"; then
5656 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5658 lt_cv_sys_max_cmd_len=32768
5662 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5663 if test -n "$lt_cv_sys_max_cmd_len"; then
5664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5667 # Make teststring a little bigger before we do anything with it.
5668 # a 1K string should be a reasonable start.
5669 for i in 1 2 3 4 5 6 7 8 ; do
5670 teststring=$teststring$teststring
5672 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5673 # If test is not a shell built-in, we'll probably end up computing a
5674 # maximum length that is only half of the actual maximum length, but
5676 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5677 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5678 test $i != 17 # 1/2 MB should be enough
5681 teststring=$teststring$teststring
5683 # Only check the string length outside the loop.
5684 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5686 # Add a significant safety factor because C++ compilers can tack on
5687 # massive amounts of additional arguments before passing them to the
5688 # linker. It appears as though 1/2 is a usable value.
5689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5696 if test -n $lt_cv_sys_max_cmd_len ; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5698 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5701 $as_echo "none" >&6; }
5703 max_cmd_len=$lt_cv_sys_max_cmd_len
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5715 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5716 # Try some XSI features
5719 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5721 && eval 'test $(( 1 + 1 )) -eq 2 \
5722 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5725 $as_echo "$xsi_shell" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5729 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5731 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5733 && lt_shell_append=yes
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5735 $as_echo "$lt_shell_append" >&6; }
5738 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5748 # test EBCDIC or ASCII
5749 case `echo X|tr X '\101'` in
5750 A) # ASCII based system
5751 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5752 lt_SP2NL='tr \040 \012'
5753 lt_NL2SP='tr \015\012 \040\040'
5755 *) # EBCDIC based system
5756 lt_SP2NL='tr \100 \n'
5757 lt_NL2SP='tr \r\n \100\100'
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5770 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5771 if ${lt_cv_ld_reload_flag+:} false; then :
5772 $as_echo_n "(cached) " >&6
5774 lt_cv_ld_reload_flag='-r'
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5777 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5778 reload_flag=$lt_cv_ld_reload_flag
5779 case $reload_flag in
5781 *) reload_flag=" $reload_flag" ;;
5783 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5786 if test "$GCC" = yes; then
5787 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5802 if test -n "$ac_tool_prefix"; then
5803 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5804 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_OBJDUMP+:} false; then :
5808 $as_echo_n "(cached) " >&6
5810 if test -n "$OBJDUMP"; then
5811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 OBJDUMP=$ac_cv_prog_OBJDUMP
5831 if test -n "$OBJDUMP"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5833 $as_echo "$OBJDUMP" >&6; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5841 if test -z "$ac_cv_prog_OBJDUMP"; then
5842 ac_ct_OBJDUMP=$OBJDUMP
5843 # Extract the first word of "objdump", so it can be a program name with args.
5844 set dummy objdump; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5848 $as_echo_n "(cached) " >&6
5850 if test -n "$ac_ct_OBJDUMP"; then
5851 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5871 if test -n "$ac_ct_OBJDUMP"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5873 $as_echo "$ac_ct_OBJDUMP" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5879 if test "x$ac_ct_OBJDUMP" = x; then
5882 case $cross_compiling:$ac_tool_warned in
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5888 OBJDUMP=$ac_ct_OBJDUMP
5891 OBJDUMP="$ac_cv_prog_OBJDUMP"
5894 test -z "$OBJDUMP" && OBJDUMP=objdump
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5905 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5906 if ${lt_cv_deplibs_check_method+:} false; then :
5907 $as_echo_n "(cached) " >&6
5909 lt_cv_file_magic_cmd='$MAGIC_CMD'
5910 lt_cv_file_magic_test_file=
5911 lt_cv_deplibs_check_method='unknown'
5912 # Need to set the preceding variable on all platforms that support
5913 # interlibrary dependencies.
5914 # 'none' -- dependencies not supported.
5915 # `unknown' -- same as none, but documents that we really don't know.
5916 # 'pass_all' -- all dependencies passed with no checks.
5917 # 'test_compile' -- check by making test program.
5918 # 'file_magic [[regex]]' -- check by looking for files in library path
5919 # which responds to the $file_magic_cmd with a given extended regex.
5920 # If you have `file' or equivalent on your system and you're not sure
5921 # whether `pass_all' will *always* work, you probably want this one.
5925 lt_cv_deplibs_check_method=pass_all
5929 lt_cv_deplibs_check_method=pass_all
5933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5934 lt_cv_file_magic_cmd='/usr/bin/file -L'
5935 lt_cv_file_magic_test_file=/shlib/libc.so
5939 # func_win32_libid is a shell function defined in ltmain.sh
5940 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5941 lt_cv_file_magic_cmd='func_win32_libid'
5945 # Base MSYS/MinGW do not provide the 'file' command needed by
5946 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5947 # unless we find 'file', for example because we are cross-compiling.
5948 if ( file / ) >/dev/null 2>&1; then
5949 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5950 lt_cv_file_magic_cmd='func_win32_libid'
5952 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5953 lt_cv_file_magic_cmd='$OBJDUMP -f'
5958 # use the weaker test based on 'objdump'. See mingw*.
5959 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5960 lt_cv_file_magic_cmd='$OBJDUMP -f'
5963 darwin* | rhapsody*)
5964 lt_cv_deplibs_check_method=pass_all
5967 freebsd* | dragonfly*)
5968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5971 # Not sure whether the presence of OpenBSD here was a mistake.
5972 # Let's accept both of them until this is cleared up.
5973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5974 lt_cv_file_magic_cmd=/usr/bin/file
5975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5979 lt_cv_deplibs_check_method=pass_all
5984 lt_cv_deplibs_check_method=pass_all
5987 hpux10.20* | hpux11*)
5988 lt_cv_file_magic_cmd=/usr/bin/file
5991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5992 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5995 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]'
5996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6000 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6006 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6010 irix5* | irix6* | nonstopux*)
6012 *-32|*"-32 ") libmagic=32-bit;;
6013 *-n32|*"-n32 ") libmagic=N32;;
6014 *-64|*"-64 ") libmagic=64-bit;;
6015 *) libmagic=never-match;;
6017 lt_cv_deplibs_check_method=pass_all
6020 # This must be Linux ELF.
6021 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6022 lt_cv_deplibs_check_method=pass_all
6025 netbsd* | netbsdelf*-gnu)
6026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6035 lt_cv_file_magic_cmd=/usr/bin/file
6036 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6040 lt_cv_deplibs_check_method=pass_all
6044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6051 osf3* | osf4* | osf5*)
6052 lt_cv_deplibs_check_method=pass_all
6056 lt_cv_deplibs_check_method=pass_all
6060 lt_cv_deplibs_check_method=pass_all
6063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6064 lt_cv_deplibs_check_method=pass_all
6068 case $host_vendor in
6070 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]'
6071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6074 lt_cv_deplibs_check_method=pass_all
6077 lt_cv_file_magic_cmd='/bin/file'
6078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6081 lt_cv_file_magic_cmd='/bin/file'
6082 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6083 lt_cv_file_magic_test_file=/lib/libc.so
6086 lt_cv_deplibs_check_method=pass_all
6089 lt_cv_deplibs_check_method=pass_all
6095 lt_cv_deplibs_check_method=pass_all
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6101 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6102 file_magic_cmd=$lt_cv_file_magic_cmd
6103 deplibs_check_method=$lt_cv_deplibs_check_method
6104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6117 if test -n "$ac_tool_prefix"; then
6118 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}ar; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_AR+:} false; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -n "$AR"; then
6126 ac_cv_prog_AR="$AR" # Let the user override the test.
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_AR="${ac_tool_prefix}ar"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 if test -n "$AR"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6148 $as_echo "$AR" >&6; }
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6156 if test -z "$ac_cv_prog_AR"; then
6158 # Extract the first word of "ar", so it can be a program name with args.
6159 set dummy ar; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6163 $as_echo_n "(cached) " >&6
6165 if test -n "$ac_ct_AR"; then
6166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_ac_ct_AR="ar"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6186 if test -n "$ac_ct_AR"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6188 $as_echo "$ac_ct_AR" >&6; }
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6194 if test "x$ac_ct_AR" = x; then
6197 case $cross_compiling:$ac_tool_warned in
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6209 test -z "$AR" && AR=ar
6210 test -z "$AR_FLAGS" && AR_FLAGS=cru
6222 if test -n "$ac_tool_prefix"; then
6223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}strip; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_STRIP+:} false; then :
6228 $as_echo_n "(cached) " >&6
6230 if test -n "$STRIP"; then
6231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 STRIP=$ac_cv_prog_STRIP
6251 if test -n "$STRIP"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6253 $as_echo "$STRIP" >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6261 if test -z "$ac_cv_prog_STRIP"; then
6263 # Extract the first word of "strip", so it can be a program name with args.
6264 set dummy strip; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6268 $as_echo_n "(cached) " >&6
6270 if test -n "$ac_ct_STRIP"; then
6271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_ac_ct_STRIP="strip"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6291 if test -n "$ac_ct_STRIP"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6293 $as_echo "$ac_ct_STRIP" >&6; }
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6299 if test "x$ac_ct_STRIP" = x; then
6302 case $cross_compiling:$ac_tool_warned in
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306 ac_tool_warned=yes ;;
6311 STRIP="$ac_cv_prog_STRIP"
6314 test -z "$STRIP" && STRIP=:
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_RANLIB+:} false; then :
6327 $as_echo_n "(cached) " >&6
6329 if test -n "$RANLIB"; then
6330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 RANLIB=$ac_cv_prog_RANLIB
6350 if test -n "$RANLIB"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6352 $as_echo "$RANLIB" >&6; }
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6360 if test -z "$ac_cv_prog_RANLIB"; then
6361 ac_ct_RANLIB=$RANLIB
6362 # Extract the first word of "ranlib", so it can be a program name with args.
6363 set dummy ranlib; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 if test -n "$ac_ct_RANLIB"; then
6370 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_ac_ct_RANLIB="ranlib"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6390 if test -n "$ac_ct_RANLIB"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6392 $as_echo "$ac_ct_RANLIB" >&6; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6398 if test "x$ac_ct_RANLIB" = x; then
6401 case $cross_compiling:$ac_tool_warned in
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6407 RANLIB=$ac_ct_RANLIB
6410 RANLIB="$ac_cv_prog_RANLIB"
6413 test -z "$RANLIB" && RANLIB=:
6420 # Determine commands to create old-style static archives.
6421 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6422 old_postinstall_cmds='chmod 644 $oldlib'
6423 old_postuninstall_cmds=
6425 if test -n "$RANLIB"; then
6428 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6431 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6434 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6470 # If no C compiler was specified, use CC.
6473 # If no C compiler flags were specified, use CFLAGS.
6474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6476 # Allow CC to be a program name with arguments.
6480 # Check for command to grab the raw symbol name followed by C symbol from nm.
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6482 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6483 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6484 $as_echo_n "(cached) " >&6
6487 # These are sane defaults that work on at least a few old systems.
6488 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6490 # Character class describing NM global symbol codes.
6491 symcode='[BCDEGRST]'
6493 # Regexp to match symbols that can be accessed directly from C.
6494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6496 # Define system-specific variables.
6501 cygwin* | mingw* | pw32* | cegcc*)
6502 symcode='[ABCDGISTW]'
6505 if test "$host_cpu" = ia64; then
6506 symcode='[ABCDEGRST]'
6510 symcode='[BCDEGRST]'
6513 symcode='[BCDEGQRST]'
6524 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6532 # If we're using GNU nm, then use its standard symbol codes.
6533 case `$NM -V 2>&1` in
6534 *GNU* | *'with BFD'*)
6535 symcode='[ABCDGIRSTW]' ;;
6538 # Transform an extracted symbol line into a proper C declaration.
6539 # Some systems (esp. on ia64) link data and code symbols differently,
6540 # so use this general approach.
6541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6543 # Transform an extracted symbol line into symbol name and symbol address
6544 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6545 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'"
6547 # Handle CRLF in mingw tool chain
6551 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6555 # Try without a prefix underscore, then with it.
6556 for ac_symprfx in "" "_"; do
6558 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6559 symxfrm="\\1 $ac_symprfx\\2 \\2"
6561 # Write the raw and C identifiers.
6562 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6563 # Fake it for dumpbin and say T for any non-static function
6564 # and D for any global variable.
6565 # Also find C++ and __fastcall symbols from MSVC++,
6566 # which start with @ or ?.
6567 lt_cv_sys_global_symbol_pipe="$AWK '"\
6568 " {last_section=section; section=\$ 3};"\
6569 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6570 " \$ 0!~/External *\|/{next};"\
6571 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6572 " {if(hide[section]) next};"\
6573 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6574 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6575 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6576 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6577 " ' prfx=^$ac_symprfx"
6579 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6582 # Check to see that the pipe works correctly.
6586 cat > conftest.$ac_ext <<_LT_EOF
6591 void nm_test_func(void);
6592 void nm_test_func(void){}
6596 int main(){nm_test_var='a';nm_test_func();return(0);}
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 # Now try to grab the symbols.
6606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6607 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; } && test -s "$nlist"; then
6611 # Try sorting and uniquifying the output.
6612 if sort "$nlist" | uniq > "$nlist"T; then
6613 mv -f "$nlist"T "$nlist"
6618 # Make sure that we snagged all the symbols we need.
6619 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6620 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6621 cat <<_LT_EOF > conftest.$ac_ext
6627 # Now generate the symbol file.
6628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6630 cat <<_LT_EOF >> conftest.$ac_ext
6632 /* The mapping between symbol names and symbols. */
6637 lt__PROGRAM__LTX_preloaded_symbols[] =
6639 { "@PROGRAM@", (void *) 0 },
6641 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6642 cat <<\_LT_EOF >> conftest.$ac_ext
6646 /* This works around a problem in FreeBSD linker */
6647 #ifdef FREEBSD_WORKAROUND
6648 static const void *lt_preloaded_setup() {
6649 return lt__PROGRAM__LTX_preloaded_symbols;
6657 # Now try linking the two files.
6658 mv conftest.$ac_objext conftstm.$ac_objext
6659 lt_save_LIBS="$LIBS"
6660 lt_save_CFLAGS="$CFLAGS"
6661 LIBS="conftstm.$ac_objext"
6662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6664 (eval $ac_link) 2>&5
6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6670 LIBS="$lt_save_LIBS"
6671 CFLAGS="$lt_save_CFLAGS"
6673 echo "cannot find nm_test_func in $nlist" >&5
6676 echo "cannot find nm_test_var in $nlist" >&5
6679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6682 echo "$progname: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 rm -rf conftest* conftst*
6687 # Do not use the global_symbol_pipe unless it works.
6688 if test "$pipe_works" = yes; then
6691 lt_cv_sys_global_symbol_pipe=
6697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6698 lt_cv_sys_global_symbol_to_cdecl=
6700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6702 $as_echo "failed" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6705 $as_echo "ok" >&6; }
6730 # Check whether --enable-libtool-lock was given.
6731 if test "${enable_libtool_lock+set}" = set; then :
6732 enableval=$enable_libtool_lock;
6735 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6737 # Some flags need to be propagated to the compiler or linker for good
6741 # Find out which ABI we are using.
6742 echo 'int i;' > conftest.$ac_ext
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6744 (eval $ac_compile) 2>&5
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; }; then
6748 case `/usr/bin/file conftest.$ac_objext` in
6760 # Find out which ABI we are using.
6761 echo '#line 6761 "configure"' > conftest.$ac_ext
6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6763 (eval $ac_compile) 2>&5
6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766 test $ac_status = 0; }; then
6767 if test "$lt_cv_prog_gnu_ld" = yes; then
6768 case `/usr/bin/file conftest.$ac_objext` in
6770 LD="${LD-ld} -melf32bsmip"
6773 LD="${LD-ld} -melf32bmipn32"
6776 LD="${LD-ld} -melf64bmip"
6780 case `/usr/bin/file conftest.$ac_objext` in
6796 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6797 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6798 # Find out which ABI we are using.
6799 echo 'int i;' > conftest.$ac_ext
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801 (eval $ac_compile) 2>&5
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; }; then
6805 case `/usr/bin/file conftest.o` in
6808 x86_64-*kfreebsd*-gnu)
6809 LD="${LD-ld} -m elf_i386_fbsd"
6812 LD="${LD-ld} -m elf_i386"
6814 ppc64-*linux*|powerpc64-*linux*)
6815 LD="${LD-ld} -m elf32ppclinux"
6818 LD="${LD-ld} -m elf_s390"
6821 LD="${LD-ld} -m elf32_sparc"
6827 x86_64-*kfreebsd*-gnu)
6828 LD="${LD-ld} -m elf_x86_64_fbsd"
6831 LD="${LD-ld} -m elf_x86_64"
6833 ppc*-*linux*|powerpc*-*linux*)
6834 LD="${LD-ld} -m elf64ppc"
6836 s390*-*linux*|s390*-*tpf*)
6837 LD="${LD-ld} -m elf64_s390"
6840 LD="${LD-ld} -m elf64_sparc"
6850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6851 SAVE_CFLAGS="$CFLAGS"
6852 CFLAGS="$CFLAGS -belf"
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6854 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6855 if ${lt_cv_cc_needs_belf+:} false; then :
6856 $as_echo_n "(cached) " >&6
6859 ac_cpp='$CPP $CPPFLAGS'
6860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6875 if ac_fn_c_try_link "$LINENO"; then :
6876 lt_cv_cc_needs_belf=yes
6878 lt_cv_cc_needs_belf=no
6880 rm -f core conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6890 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6893 CFLAGS="$SAVE_CFLAGS"
6897 # Find out which ABI we are using.
6898 echo 'int i;' > conftest.$ac_ext
6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6900 (eval $ac_compile) 2>&5
6902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903 test $ac_status = 0; }; then
6904 case `/usr/bin/file conftest.o` in
6906 case $lt_cv_prog_gnu_ld in
6907 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6909 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6921 need_locks="$enable_libtool_lock"
6925 rhapsody* | darwin*)
6926 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6928 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6932 $as_echo_n "(cached) " >&6
6934 if test -n "$DSYMUTIL"; then
6935 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6955 if test -n "$DSYMUTIL"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6957 $as_echo "$DSYMUTIL" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6965 if test -z "$ac_cv_prog_DSYMUTIL"; then
6966 ac_ct_DSYMUTIL=$DSYMUTIL
6967 # Extract the first word of "dsymutil", so it can be a program name with args.
6968 set dummy dsymutil; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 if test -n "$ac_ct_DSYMUTIL"; then
6975 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6995 if test -n "$ac_ct_DSYMUTIL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6997 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7003 if test "x$ac_ct_DSYMUTIL" = x; then
7006 case $cross_compiling:$ac_tool_warned in
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010 ac_tool_warned=yes ;;
7012 DSYMUTIL=$ac_ct_DSYMUTIL
7015 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_NMEDIT+:} false; then :
7024 $as_echo_n "(cached) " >&6
7026 if test -n "$NMEDIT"; then
7027 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 NMEDIT=$ac_cv_prog_NMEDIT
7047 if test -n "$NMEDIT"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7049 $as_echo "$NMEDIT" >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7057 if test -z "$ac_cv_prog_NMEDIT"; then
7058 ac_ct_NMEDIT=$NMEDIT
7059 # Extract the first word of "nmedit", so it can be a program name with args.
7060 set dummy nmedit; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7064 $as_echo_n "(cached) " >&6
7066 if test -n "$ac_ct_NMEDIT"; then
7067 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7087 if test -n "$ac_ct_NMEDIT"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7089 $as_echo "$ac_ct_NMEDIT" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7095 if test "x$ac_ct_NMEDIT" = x; then
7098 case $cross_compiling:$ac_tool_warned in
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102 ac_tool_warned=yes ;;
7104 NMEDIT=$ac_ct_NMEDIT
7107 NMEDIT="$ac_cv_prog_NMEDIT"
7110 if test -n "$ac_tool_prefix"; then
7111 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7112 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_LIPO+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 if test -n "$LIPO"; then
7119 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 LIPO=$ac_cv_prog_LIPO
7139 if test -n "$LIPO"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7141 $as_echo "$LIPO" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7149 if test -z "$ac_cv_prog_LIPO"; then
7151 # Extract the first word of "lipo", so it can be a program name with args.
7152 set dummy lipo; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7156 $as_echo_n "(cached) " >&6
7158 if test -n "$ac_ct_LIPO"; then
7159 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_prog_ac_ct_LIPO="lipo"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7179 if test -n "$ac_ct_LIPO"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7181 $as_echo "$ac_ct_LIPO" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7187 if test "x$ac_ct_LIPO" = x; then
7190 case $cross_compiling:$ac_tool_warned in
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194 ac_tool_warned=yes ;;
7199 LIPO="$ac_cv_prog_LIPO"
7202 if test -n "$ac_tool_prefix"; then
7203 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}otool; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_OTOOL+:} false; then :
7208 $as_echo_n "(cached) " >&6
7210 if test -n "$OTOOL"; then
7211 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 OTOOL=$ac_cv_prog_OTOOL
7231 if test -n "$OTOOL"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7233 $as_echo "$OTOOL" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7241 if test -z "$ac_cv_prog_OTOOL"; then
7243 # Extract the first word of "otool", so it can be a program name with args.
7244 set dummy otool; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7248 $as_echo_n "(cached) " >&6
7250 if test -n "$ac_ct_OTOOL"; then
7251 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_ac_ct_OTOOL="otool"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7271 if test -n "$ac_ct_OTOOL"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7273 $as_echo "$ac_ct_OTOOL" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7279 if test "x$ac_ct_OTOOL" = x; then
7282 case $cross_compiling:$ac_tool_warned in
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7291 OTOOL="$ac_cv_prog_OTOOL"
7294 if test -n "$ac_tool_prefix"; then
7295 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7296 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_OTOOL64+:} false; then :
7300 $as_echo_n "(cached) " >&6
7302 if test -n "$OTOOL64"; then
7303 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 OTOOL64=$ac_cv_prog_OTOOL64
7323 if test -n "$OTOOL64"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7325 $as_echo "$OTOOL64" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7333 if test -z "$ac_cv_prog_OTOOL64"; then
7334 ac_ct_OTOOL64=$OTOOL64
7335 # Extract the first word of "otool64", so it can be a program name with args.
7336 set dummy otool64; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7340 $as_echo_n "(cached) " >&6
7342 if test -n "$ac_ct_OTOOL64"; then
7343 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_ac_ct_OTOOL64="otool64"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7363 if test -n "$ac_ct_OTOOL64"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7365 $as_echo "$ac_ct_OTOOL64" >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7371 if test "x$ac_ct_OTOOL64" = x; then
7374 case $cross_compiling:$ac_tool_warned in
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7378 ac_tool_warned=yes ;;
7380 OTOOL64=$ac_ct_OTOOL64
7383 OTOOL64="$ac_cv_prog_OTOOL64"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7413 $as_echo_n "checking for -single_module linker flag... " >&6; }
7414 if ${lt_cv_apple_cc_single_mod+:} false; then :
7415 $as_echo_n "(cached) " >&6
7417 lt_cv_apple_cc_single_mod=no
7418 if test -z "${LT_MULTI_MODULE}"; then
7419 # By default we will add the -single_module flag. You can override
7420 # by either setting the environment variable LT_MULTI_MODULE
7421 # non-empty at configure time, or by adding -multi_module to the
7423 rm -rf libconftest.dylib*
7424 echo "int foo(void){return 1;}" > conftest.c
7425 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7426 -dynamiclib -Wl,-single_module conftest.c" >&5
7427 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7428 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7430 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7431 lt_cv_apple_cc_single_mod=yes
7433 cat conftest.err >&5
7435 rm -rf libconftest.dylib*
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7440 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7442 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7443 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 lt_cv_ld_exported_symbols_list=no
7447 save_LDFLAGS=$LDFLAGS
7448 echo "_main" > conftest.sym
7449 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7461 if ac_fn_c_try_link "$LINENO"; then :
7462 lt_cv_ld_exported_symbols_list=yes
7464 lt_cv_ld_exported_symbols_list=no
7466 rm -f core conftest.err conftest.$ac_objext \
7467 conftest$ac_exeext conftest.$ac_ext
7468 LDFLAGS="$save_LDFLAGS"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7472 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7474 rhapsody* | darwin1.[012])
7475 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7477 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7478 darwin*) # darwin 5.x on
7479 # if running on 10.5 or later, the deployment target defaults
7480 # to the OS version, if on x86, and 10.4, the deployment
7481 # target defaults to 10.4. Don't you love it?
7482 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7483 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7484 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7486 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7488 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7492 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7493 _lt_dar_single_mod='$single_module'
7495 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7496 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7498 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7500 if test "$DSYMUTIL" != ":"; then
7501 _lt_dsymutil='~$DSYMUTIL $lib || :'
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7510 $as_echo_n "checking for ANSI C header files... " >&6; }
7511 if ${ac_cv_header_stdc+:} false; then :
7512 $as_echo_n "(cached) " >&6
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 ac_cv_header_stdc=yes
7532 ac_cv_header_stdc=no
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 if test $ac_cv_header_stdc = yes; then
7537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544 $EGREP "memchr" >/dev/null 2>&1; then :
7547 ac_cv_header_stdc=no
7553 if test $ac_cv_header_stdc = yes; then
7554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561 $EGREP "free" >/dev/null 2>&1; then :
7564 ac_cv_header_stdc=no
7570 if test $ac_cv_header_stdc = yes; then
7571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7572 if test "$cross_compiling" = yes; then :
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7579 #if ((' ' & 0x0FF) == 0x020)
7580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7583 # define ISLOWER(c) \
7584 (('a' <= (c) && (c) <= 'i') \
7585 || ('j' <= (c) && (c) <= 'r') \
7586 || ('s' <= (c) && (c) <= 'z'))
7587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7595 for (i = 0; i < 256; i++)
7596 if (XOR (islower (i), ISLOWER (i))
7597 || toupper (i) != TOUPPER (i))
7602 if ac_fn_c_try_run "$LINENO"; then :
7605 ac_cv_header_stdc=no
7607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7608 conftest.$ac_objext conftest.beam conftest.$ac_ext
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7614 $as_echo "$ac_cv_header_stdc" >&6; }
7615 if test $ac_cv_header_stdc = yes; then
7617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7623 inttypes.h stdint.h unistd.h
7625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7629 cat >>confdefs.h <<_ACEOF
7630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7638 for ac_header in dlfcn.h
7640 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7643 cat >>confdefs.h <<_ACEOF
7644 #define HAVE_DLFCN_H 1
7654 ac_cpp='$CXXCPP $CPPFLAGS'
7655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7658 if test -z "$CXX"; then
7659 if test -n "$CCC"; then
7662 if test -n "$ac_tool_prefix"; then
7663 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_prog_CXX+:} false; then :
7670 $as_echo_n "(cached) " >&6
7672 if test -n "$CXX"; then
7673 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 if test -n "$CXX"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7695 $as_echo "$CXX" >&6; }
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7702 test -n "$CXX" && break
7705 if test -z "$CXX"; then
7707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7709 # Extract the first word of "$ac_prog", so it can be a program name with args.
7710 set dummy $ac_prog; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7714 $as_echo_n "(cached) " >&6
7716 if test -n "$ac_ct_CXX"; then
7717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_ac_ct_CXX="$ac_prog"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7737 if test -n "$ac_ct_CXX"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7739 $as_echo "$ac_ct_CXX" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7746 test -n "$ac_ct_CXX" && break
7749 if test "x$ac_ct_CXX" = x; then
7752 case $cross_compiling:$ac_tool_warned in
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned=yes ;;
7764 # Provide some information about the compiler.
7765 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7768 for ac_option in --version -v -V -qversion; do
7769 { { ac_try="$ac_compiler $ac_option >&5"
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7775 $as_echo "$ac_try_echo"; } >&5
7776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7778 if test -s conftest.err; then
7780 ... rest of stderr output deleted ...
7781 10q' conftest.err >conftest.er1
7782 cat conftest.er1 >&5
7784 rm -f conftest.er1 conftest.err
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7790 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7791 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7808 if ac_fn_cxx_try_compile "$LINENO"; then :
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7818 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7819 if test $ac_compiler_gnu = yes; then
7824 ac_test_CXXFLAGS=${CXXFLAGS+set}
7825 ac_save_CXXFLAGS=$CXXFLAGS
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7827 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7828 if ${ac_cv_prog_cxx_g+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7832 ac_cxx_werror_flag=yes
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7846 if ac_fn_cxx_try_compile "$LINENO"; then :
7847 ac_cv_prog_cxx_g=yes
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7861 if ac_fn_cxx_try_compile "$LINENO"; then :
7864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7877 if ac_fn_cxx_try_compile "$LINENO"; then :
7878 ac_cv_prog_cxx_g=yes
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7888 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7889 if test "$ac_test_CXXFLAGS" = set; then
7890 CXXFLAGS=$ac_save_CXXFLAGS
7891 elif test $ac_cv_prog_cxx_g = yes; then
7892 if test "$GXX" = yes; then
7898 if test "$GXX" = yes; then
7905 ac_cpp='$CXXCPP $CPPFLAGS'
7906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7910 depcc="$CXX" am_compiler_list=
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7913 $as_echo_n "checking dependency style of $depcc... " >&6; }
7914 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7915 $as_echo_n "(cached) " >&6
7917 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7918 # We make a subdir and do the tests there. Otherwise we can end up
7919 # making bogus files that we don't know about and never remove. For
7920 # instance it was reported that on HP-UX the gcc test will end up
7921 # making a dummy file named `D' -- because `-MD' means `put the output
7924 # Copy depcomp to subdir because otherwise we won't find it if we're
7925 # using a relative directory.
7926 cp "$am_depcomp" conftest.dir
7928 # We will build objects and dependencies in a subdirectory because
7929 # it helps to detect inapplicable dependency modes. For instance
7930 # both Tru64's cc and ICC support -MD to output dependencies as a
7931 # side effect of compilation, but ICC will put the dependencies in
7932 # the current directory while Tru64 will put them in the object
7936 am_cv_CXX_dependencies_compiler_type=none
7937 if test "$am_compiler_list" = ""; then
7938 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7941 case " $depcc " in #(
7942 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7945 for depmode in $am_compiler_list; do
7946 # Setup a source with many dependencies, because some compilers
7947 # like to wrap large dependency lists on column 80 (with \), and
7948 # we should not choose a depcomp mode which is confused by this.
7950 # We need to recreate these files for each test, as the compiler may
7951 # overwrite some of them when testing with obscure command lines.
7952 # This happens at least with the AIX C compiler.
7954 for i in 1 2 3 4 5 6; do
7955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7956 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7957 # Solaris 8's {/usr,}/bin/sh.
7958 touch sub/conftst$i.h
7960 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7962 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7963 # mode. It turns out that the SunPro C++ compiler does not properly
7964 # handle `-M -o', and we need to detect this. Also, some Intel
7965 # versions had trouble with output in subdirs
7966 am__obj=sub/conftest.${OBJEXT-o}
7967 am__minus_obj="-o $am__obj"
7970 # This depmode causes a compiler race in universal mode.
7971 test "$am__universal" = false || continue
7974 # after this tag, mechanisms are not by side-effect, so they'll
7975 # only be used when explicitly requested
7976 if test "x$enable_dependency_tracking" = xyes; then
7982 msvisualcpp | msvcmsys)
7983 # This compiler won't grok `-c -o', but also, the minuso test has
7984 # not run yet. These depmodes are late enough in the game, and
7985 # so weak that their functioning should not be impacted.
7986 am__obj=conftest.${OBJEXT-o}
7991 if depmode=$depmode \
7992 source=sub/conftest.c object=$am__obj \
7993 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7994 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7995 >/dev/null 2>conftest.err &&
7996 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7997 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7998 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7999 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8000 # icc doesn't choke on unknown options, it will just issue warnings
8001 # or remarks (even with -Werror). So we grep stderr for any message
8002 # that says an option was ignored or not supported.
8003 # When given -MP, icc 7.0 and 7.1 complain thusly:
8004 # icc: Command line warning: ignoring option '-M'; no argument required
8005 # The diagnosis changed in icc 8.0:
8006 # icc: Command line remark: option '-MP' not supported
8007 if (grep 'ignoring option' conftest.err ||
8008 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8009 am_cv_CXX_dependencies_compiler_type=$depmode
8018 am_cv_CXX_dependencies_compiler_type=none
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8023 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8024 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8027 test "x$enable_dependency_tracking" != xno \
8028 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8029 am__fastdepCXX_TRUE=
8030 am__fastdepCXX_FALSE='#'
8032 am__fastdepCXX_TRUE='#'
8033 am__fastdepCXX_FALSE=
8037 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8038 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8039 (test "X$CXX" != "Xg++"))) ; then
8041 ac_cpp='$CXXCPP $CPPFLAGS'
8042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8046 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8047 if test -z "$CXXCPP"; then
8048 if ${ac_cv_prog_CXXCPP+:} false; then :
8049 $as_echo_n "(cached) " >&6
8051 # Double quotes because CXXCPP needs to be expanded
8052 for CXXCPP in "$CXX -E" "/lib/cpp"
8055 for ac_cxx_preproc_warn_flag in '' yes
8057 # Use a header file that comes with gcc, so configuring glibc
8058 # with a fresh cross-compiler works.
8059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8060 # <limits.h> exists even on freestanding compilers.
8061 # On the NeXT, cc -E runs the code through the compiler's parser,
8062 # not just through cpp. "Syntax error" is here to catch this case.
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8066 # include <limits.h>
8068 # include <assert.h>
8072 if ac_fn_cxx_try_cpp "$LINENO"; then :
8075 # Broken: fails on valid input.
8078 rm -f conftest.err conftest.i conftest.$ac_ext
8080 # OK, works on sane cases. Now check whether nonexistent headers
8081 # can be detected and how.
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084 #include <ac_nonexistent.h>
8086 if ac_fn_cxx_try_cpp "$LINENO"; then :
8087 # Broken: success on invalid input.
8090 # Passes both tests.
8094 rm -f conftest.err conftest.i conftest.$ac_ext
8097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8098 rm -f conftest.i conftest.err conftest.$ac_ext
8099 if $ac_preproc_ok; then :
8104 ac_cv_prog_CXXCPP=$CXXCPP
8107 CXXCPP=$ac_cv_prog_CXXCPP
8109 ac_cv_prog_CXXCPP=$CXXCPP
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8112 $as_echo "$CXXCPP" >&6; }
8114 for ac_cxx_preproc_warn_flag in '' yes
8116 # Use a header file that comes with gcc, so configuring glibc
8117 # with a fresh cross-compiler works.
8118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8119 # <limits.h> exists even on freestanding compilers.
8120 # On the NeXT, cc -E runs the code through the compiler's parser,
8121 # not just through cpp. "Syntax error" is here to catch this case.
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8125 # include <limits.h>
8127 # include <assert.h>
8131 if ac_fn_cxx_try_cpp "$LINENO"; then :
8134 # Broken: fails on valid input.
8137 rm -f conftest.err conftest.i conftest.$ac_ext
8139 # OK, works on sane cases. Now check whether nonexistent headers
8140 # can be detected and how.
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 #include <ac_nonexistent.h>
8145 if ac_fn_cxx_try_cpp "$LINENO"; then :
8146 # Broken: success on invalid input.
8149 # Passes both tests.
8153 rm -f conftest.err conftest.i conftest.$ac_ext
8156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8157 rm -f conftest.i conftest.err conftest.$ac_ext
8158 if $ac_preproc_ok; then :
8161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8163 _lt_caught_CXX_error=yes; }
8167 ac_cpp='$CXXCPP $CPPFLAGS'
8168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8173 _lt_caught_CXX_error=yes
8190 # Check whether --enable-shared was given.
8191 if test "${enable_shared+set}" = set; then :
8192 enableval=$enable_shared; p=${PACKAGE-default}
8194 yes) enable_shared=yes ;;
8195 no) enable_shared=no ;;
8198 # Look at the argument we got. We use all the common list separators.
8199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8200 for pkg in $enableval; do
8202 if test "X$pkg" = "X$p"; then
8221 # Check whether --enable-static was given.
8222 if test "${enable_static+set}" = set; then :
8223 enableval=$enable_static; p=${PACKAGE-default}
8225 yes) enable_static=yes ;;
8226 no) enable_static=no ;;
8229 # Look at the argument we got. We use all the common list separators.
8230 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8231 for pkg in $enableval; do
8233 if test "X$pkg" = "X$p"; then
8253 # Check whether --with-pic was given.
8254 if test "${with_pic+set}" = set; then :
8255 withval=$with_pic; pic_mode="$withval"
8261 test -z "$pic_mode" && pic_mode=default
8269 # Check whether --enable-fast-install was given.
8270 if test "${enable_fast_install+set}" = set; then :
8271 enableval=$enable_fast_install; p=${PACKAGE-default}
8273 yes) enable_fast_install=yes ;;
8274 no) enable_fast_install=no ;;
8276 enable_fast_install=no
8277 # Look at the argument we got. We use all the common list separators.
8278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8279 for pkg in $enableval; do
8281 if test "X$pkg" = "X$p"; then
8282 enable_fast_install=yes
8289 enable_fast_install=yes
8302 # This can be used to rebuild libtool when needed
8303 LIBTOOL_DEPS="$ltmain"
8305 # Always use our own libtool.
8306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8332 test -z "$LN_S" && LN_S="ln -s"
8347 if test -n "${ZSH_VERSION+set}" ; then
8348 setopt NO_GLOB_SUBST
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8352 $as_echo_n "checking for objdir... " >&6; }
8353 if ${lt_cv_objdir+:} false; then :
8354 $as_echo_n "(cached) " >&6
8356 rm -f .libs 2>/dev/null
8357 mkdir .libs 2>/dev/null
8358 if test -d .libs; then
8361 # MS-DOS does not allow filenames that begin with a dot.
8364 rmdir .libs 2>/dev/null
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8367 $as_echo "$lt_cv_objdir" >&6; }
8368 objdir=$lt_cv_objdir
8374 cat >>confdefs.h <<_ACEOF
8375 #define LT_OBJDIR "$lt_cv_objdir/"
8396 # AIX sometimes has problems with the GCC collect2 program. For some
8397 # reason, if we set the COLLECT_NAMES environment variable, the problems
8398 # vanish in a puff of smoke.
8399 if test "X${COLLECT_NAMES+set}" != Xset; then
8401 export COLLECT_NAMES
8406 # Sed substitution that helps us do robust quoting. It backslashifies
8407 # metacharacters that are still active within double-quoted strings.
8408 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8410 # Same as above, but do not quote variable references.
8411 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8413 # Sed substitution to delay expansion of an escaped shell variable in a
8414 # double_quote_subst'ed string.
8415 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8417 # Sed substitution to delay expansion of an escaped single quote.
8418 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8420 # Sed substitution to avoid accidental globbing in evaled expressions
8421 no_glob_subst='s/\*/\\\*/g'
8425 can_build_shared=yes
8427 # All known linkers require a `.a' archive for static linking (except MSVC,
8428 # which needs '.lib').
8431 with_gnu_ld="$lt_cv_prog_gnu_ld"
8434 old_CFLAGS="$CFLAGS"
8436 # Set sane defaults for various variables
8437 test -z "$CC" && CC=cc
8438 test -z "$LTCC" && LTCC=$CC
8439 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8440 test -z "$LD" && LD=ld
8441 test -z "$ac_objext" && ac_objext=o
8443 for cc_temp in $compiler""; do
8445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8451 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8454 # Only perform the check for file, if the check method requires it
8455 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8456 case $deplibs_check_method in
8458 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8460 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8461 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8462 $as_echo_n "(cached) " >&6
8466 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8469 lt_save_MAGIC_CMD="$MAGIC_CMD"
8470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8471 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8472 for ac_dir in $ac_dummy; do
8474 test -z "$ac_dir" && ac_dir=.
8475 if test -f $ac_dir/${ac_tool_prefix}file; then
8476 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8477 if test -n "$file_magic_test_file"; then
8478 case $deplibs_check_method in
8480 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8483 $EGREP "$file_magic_regex" > /dev/null; then
8488 *** Warning: the command libtool uses to detect shared libraries,
8489 *** $file_magic_cmd, produces output that libtool cannot recognize.
8490 *** The result is that libtool may fail to recognize shared libraries
8491 *** as such. This will affect the creation of libtool libraries that
8492 *** depend on shared libraries, but programs linked with such libtool
8493 *** libraries will work regardless of this problem. Nevertheless, you
8494 *** may want to report the problem to your system manager and/or to
8495 *** bug-libtool@gnu.org
8505 MAGIC_CMD="$lt_save_MAGIC_CMD"
8510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8511 if test -n "$MAGIC_CMD"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8513 $as_echo "$MAGIC_CMD" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8523 if test -z "$lt_cv_path_MAGIC_CMD"; then
8524 if test -n "$ac_tool_prefix"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8526 $as_echo_n "checking for file... " >&6; }
8527 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8528 $as_echo_n "(cached) " >&6
8532 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8535 lt_save_MAGIC_CMD="$MAGIC_CMD"
8536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8537 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8538 for ac_dir in $ac_dummy; do
8540 test -z "$ac_dir" && ac_dir=.
8541 if test -f $ac_dir/file; then
8542 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8543 if test -n "$file_magic_test_file"; then
8544 case $deplibs_check_method in
8546 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8549 $EGREP "$file_magic_regex" > /dev/null; then
8554 *** Warning: the command libtool uses to detect shared libraries,
8555 *** $file_magic_cmd, produces output that libtool cannot recognize.
8556 *** The result is that libtool may fail to recognize shared libraries
8557 *** as such. This will affect the creation of libtool libraries that
8558 *** depend on shared libraries, but programs linked with such libtool
8559 *** libraries will work regardless of this problem. Nevertheless, you
8560 *** may want to report the problem to your system manager and/or to
8561 *** bug-libtool@gnu.org
8571 MAGIC_CMD="$lt_save_MAGIC_CMD"
8576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577 if test -n "$MAGIC_CMD"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8579 $as_echo "$MAGIC_CMD" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8595 # Use C for the default configuration in the libtool script
8599 ac_cpp='$CPP $CPPFLAGS'
8600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8605 # Source file extension for C test sources.
8608 # Object file extension for compiled C test sources.
8612 # Code to be used in simple compile tests
8613 lt_simple_compile_test_code="int some_variable = 0;"
8615 # Code to be used in simple link tests
8616 lt_simple_link_test_code='int main(){return(0);}'
8624 # If no C compiler was specified, use CC.
8627 # If no C compiler flags were specified, use CFLAGS.
8628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8630 # Allow CC to be a program name with arguments.
8633 # Save the default compiler, since it gets overwritten when the other
8634 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8635 compiler_DEFAULT=$CC
8637 # save warnings/boilerplate of simple test code
8638 ac_outfile=conftest.$ac_objext
8639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8641 _lt_compiler_boilerplate=`cat conftest.err`
8644 ac_outfile=conftest.$ac_objext
8645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8647 _lt_linker_boilerplate=`cat conftest.err`
8652 ## There is no encapsulation within the following macros, do not change
8653 ## the running order or otherwise move them around unless you know exactly
8654 ## what you are doing...
8655 if test -n "$compiler"; then
8657 lt_prog_compiler_no_builtin_flag=
8659 if test "$GCC" = yes; then
8660 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8663 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8664 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8665 $as_echo_n "(cached) " >&6
8667 lt_cv_prog_compiler_rtti_exceptions=no
8668 ac_outfile=conftest.$ac_objext
8669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670 lt_compiler_flag="-fno-rtti -fno-exceptions"
8671 # Insert the option either (1) after the last *FLAGS variable, or
8672 # (2) before a word containing "conftest.", or (3) at the end.
8673 # Note that $ac_compile itself does not contain backslashes and begins
8674 # with a dollar sign (not a hyphen), so the echo should work correctly.
8675 # The option is referenced via a variable to avoid confusing sed.
8676 lt_compile=`echo "$ac_compile" | $SED \
8677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679 -e 's:$: $lt_compiler_flag:'`
8680 (eval echo "\"\$as_me:8680: $lt_compile\"" >&5)
8681 (eval "$lt_compile" 2>conftest.err)
8683 cat conftest.err >&5
8684 echo "$as_me:8684: \$? = $ac_status" >&5
8685 if (exit $ac_status) && test -s "$ac_outfile"; then
8686 # The compiler can only warn and ignore the option if not recognized
8687 # So say no if there are warnings other than the usual output.
8688 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8691 lt_cv_prog_compiler_rtti_exceptions=yes
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8698 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8700 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8701 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8713 lt_prog_compiler_wl=
8714 lt_prog_compiler_pic=
8715 lt_prog_compiler_static=
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8720 if test "$GCC" = yes; then
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_static='-static'
8726 # All AIX code is PIC.
8727 if test "$host_cpu" = ia64; then
8728 # AIX 5 now supports IA64 processor
8729 lt_prog_compiler_static='-Bstatic'
8736 # see comment about AmigaOS4 .so support
8737 lt_prog_compiler_pic='-fPIC'
8740 # FIXME: we need at least 68020 code to build shared libraries, but
8741 # adding the `-m68020' flag to GCC prevents building anything better,
8743 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8748 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8749 # PIC is the default for these OSes.
8752 mingw* | cygwin* | pw32* | os2* | cegcc*)
8753 # This hack is so that the source file can tell whether it is being
8754 # built for inclusion in a dll (and should export symbols for example).
8755 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8756 # (--disable-auto-import) libraries
8757 lt_prog_compiler_pic='-DDLL_EXPORT'
8760 darwin* | rhapsody*)
8761 # PIC is the default on this platform
8762 # Common symbols not allowed in MH_DYLIB files
8763 lt_prog_compiler_pic='-fno-common'
8767 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8768 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8769 # sets the default TLS model and affects inlining.
8775 lt_prog_compiler_pic='-fPIC'
8781 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8782 # Instead, we relocate shared libraries at runtime.
8786 # Just because we use GCC doesn't mean we suddenly get shared libraries
8787 # on systems that don't support them.
8788 lt_prog_compiler_can_build_shared=no
8793 # QNX uses GNU C++, but need to define -shared option too, otherwise
8795 lt_prog_compiler_pic='-fPIC -shared'
8799 if test -d /usr/nec; then
8800 lt_prog_compiler_pic=-Kconform_pic
8805 lt_prog_compiler_pic='-fPIC'
8809 # PORTME Check for flag to pass linker flags through the system compiler.
8812 lt_prog_compiler_wl='-Wl,'
8813 if test "$host_cpu" = ia64; then
8814 # AIX 5 now supports IA64 processor
8815 lt_prog_compiler_static='-Bstatic'
8817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8821 mingw* | cygwin* | pw32* | os2* | cegcc*)
8822 # This hack is so that the source file can tell whether it is being
8823 # built for inclusion in a dll (and should export symbols for example).
8824 lt_prog_compiler_pic='-DDLL_EXPORT'
8827 hpux9* | hpux10* | hpux11*)
8828 lt_prog_compiler_wl='-Wl,'
8829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8836 lt_prog_compiler_pic='+Z'
8839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8840 lt_prog_compiler_static='${wl}-a ${wl}archive'
8843 irix5* | irix6* | nonstopux*)
8844 lt_prog_compiler_wl='-Wl,'
8845 # PIC (with -KPIC) is the default.
8846 lt_prog_compiler_static='-non_shared'
8849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8850 case $cc_basename in
8851 # old Intel for x86_64 which still supported -KPIC.
8853 lt_prog_compiler_wl='-Wl,'
8854 lt_prog_compiler_pic='-KPIC'
8855 lt_prog_compiler_static='-static'
8857 # icc used to be incompatible with GCC.
8858 # ICC 10 doesn't accept -KPIC any more.
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-fPIC'
8862 lt_prog_compiler_static='-static'
8864 # Lahey Fortran 8.1.
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='--shared'
8868 lt_prog_compiler_static='--static'
8870 pgcc* | pgf77* | pgf90* | pgf95*)
8871 # Portland Group compilers (*not* the Pentium gcc compiler,
8872 # which looks to be a dead project)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-fpic'
8875 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Wl,'
8879 # All Alpha code is PIC.
8880 lt_prog_compiler_static='-non_shared'
8883 # IBM XL C 8.0/Fortran 10.1 on PPC
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_pic='-qpic'
8886 lt_prog_compiler_static='-qstaticlink'
8889 case `$CC -V 2>&1 | sed 5q` in
8892 lt_prog_compiler_pic='-KPIC'
8893 lt_prog_compiler_static='-Bstatic'
8894 lt_prog_compiler_wl='-Wl,'
8897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 lt_prog_compiler_wl=''
8908 lt_prog_compiler_pic='-KPIC'
8909 lt_prog_compiler_static='-Bstatic'
8913 # QNX uses GNU C++, but need to define -shared option too, otherwise
8915 lt_prog_compiler_pic='-fPIC -shared'
8918 osf3* | osf4* | osf5*)
8919 lt_prog_compiler_wl='-Wl,'
8920 # All OSF/1 code is PIC.
8921 lt_prog_compiler_static='-non_shared'
8925 lt_prog_compiler_static='-non_shared'
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 case $cc_basename in
8933 lt_prog_compiler_wl='-Qoption ld ';;
8935 lt_prog_compiler_wl='-Wl,';;
8940 lt_prog_compiler_wl='-Qoption ld '
8941 lt_prog_compiler_pic='-PIC'
8942 lt_prog_compiler_static='-Bstatic'
8945 sysv4 | sysv4.2uw2* | sysv4.3*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8952 if test -d /usr/nec ;then
8953 lt_prog_compiler_pic='-Kconform_pic'
8954 lt_prog_compiler_static='-Bstatic'
8958 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='-KPIC'
8961 lt_prog_compiler_static='-Bstatic'
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_can_build_shared=no
8970 lt_prog_compiler_pic='-pic'
8971 lt_prog_compiler_static='-Bstatic'
8975 lt_prog_compiler_can_build_shared=no
8981 # For platforms which do not support PIC, -DPIC is meaningless:
8983 lt_prog_compiler_pic=
8986 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8990 $as_echo "$lt_prog_compiler_pic" >&6; }
8998 # Check to make sure the PIC flag actually works.
9000 if test -n "$lt_prog_compiler_pic"; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9002 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9003 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9004 $as_echo_n "(cached) " >&6
9006 lt_cv_prog_compiler_pic_works=no
9007 ac_outfile=conftest.$ac_objext
9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9010 # Insert the option either (1) after the last *FLAGS variable, or
9011 # (2) before a word containing "conftest.", or (3) at the end.
9012 # Note that $ac_compile itself does not contain backslashes and begins
9013 # with a dollar sign (not a hyphen), so the echo should work correctly.
9014 # The option is referenced via a variable to avoid confusing sed.
9015 lt_compile=`echo "$ac_compile" | $SED \
9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018 -e 's:$: $lt_compiler_flag:'`
9019 (eval echo "\"\$as_me:9019: $lt_compile\"" >&5)
9020 (eval "$lt_compile" 2>conftest.err)
9022 cat conftest.err >&5
9023 echo "$as_me:9023: \$? = $ac_status" >&5
9024 if (exit $ac_status) && test -s "$ac_outfile"; then
9025 # The compiler can only warn and ignore the option if not recognized
9026 # So say no if there are warnings other than the usual output.
9027 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9030 lt_cv_prog_compiler_pic_works=yes
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9037 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9039 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9040 case $lt_prog_compiler_pic in
9042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9045 lt_prog_compiler_pic=
9046 lt_prog_compiler_can_build_shared=no
9057 # Check to make sure the static flag actually works.
9059 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9061 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9062 if ${lt_cv_prog_compiler_static_works+:} false; then :
9063 $as_echo_n "(cached) " >&6
9065 lt_cv_prog_compiler_static_works=no
9066 save_LDFLAGS="$LDFLAGS"
9067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9068 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9070 # The linker can only warn and ignore the option if not recognized
9071 # So say no if there are warnings
9072 if test -s conftest.err; then
9073 # Append any errors to the config.log.
9074 cat conftest.err 1>&5
9075 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9077 if diff conftest.exp conftest.er2 >/dev/null; then
9078 lt_cv_prog_compiler_static_works=yes
9081 lt_cv_prog_compiler_static_works=yes
9085 LDFLAGS="$save_LDFLAGS"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9089 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9091 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9094 lt_prog_compiler_static=
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9104 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9105 if ${lt_cv_prog_compiler_c_o+:} false; then :
9106 $as_echo_n "(cached) " >&6
9108 lt_cv_prog_compiler_c_o=no
9109 $RM -r conftest 2>/dev/null
9113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9115 lt_compiler_flag="-o out/conftest2.$ac_objext"
9116 # Insert the option either (1) after the last *FLAGS variable, or
9117 # (2) before a word containing "conftest.", or (3) at the end.
9118 # Note that $ac_compile itself does not contain backslashes and begins
9119 # with a dollar sign (not a hyphen), so the echo should work correctly.
9120 lt_compile=`echo "$ac_compile" | $SED \
9121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123 -e 's:$: $lt_compiler_flag:'`
9124 (eval echo "\"\$as_me:9124: $lt_compile\"" >&5)
9125 (eval "$lt_compile" 2>out/conftest.err)
9127 cat out/conftest.err >&5
9128 echo "$as_me:9128: \$? = $ac_status" >&5
9129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9131 # The compiler can only warn and ignore the option if not recognized
9132 # So say no if there are warnings
9133 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9136 lt_cv_prog_compiler_c_o=yes
9141 # SGI C++ compiler will create directory out/ii_files/ for
9142 # template instantiation
9143 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9144 $RM out/* && rmdir out
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9151 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9159 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9160 if ${lt_cv_prog_compiler_c_o+:} false; then :
9161 $as_echo_n "(cached) " >&6
9163 lt_cv_prog_compiler_c_o=no
9164 $RM -r conftest 2>/dev/null
9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9170 lt_compiler_flag="-o out/conftest2.$ac_objext"
9171 # Insert the option either (1) after the last *FLAGS variable, or
9172 # (2) before a word containing "conftest.", or (3) at the end.
9173 # Note that $ac_compile itself does not contain backslashes and begins
9174 # with a dollar sign (not a hyphen), so the echo should work correctly.
9175 lt_compile=`echo "$ac_compile" | $SED \
9176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178 -e 's:$: $lt_compiler_flag:'`
9179 (eval echo "\"\$as_me:9179: $lt_compile\"" >&5)
9180 (eval "$lt_compile" 2>out/conftest.err)
9182 cat out/conftest.err >&5
9183 echo "$as_me:9183: \$? = $ac_status" >&5
9184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9186 # The compiler can only warn and ignore the option if not recognized
9187 # So say no if there are warnings
9188 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9191 lt_cv_prog_compiler_c_o=yes
9196 # SGI C++ compiler will create directory out/ii_files/ for
9197 # template instantiation
9198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9199 $RM out/* && rmdir out
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9206 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9211 hard_links="nottested"
9212 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9213 # do not overwrite the value of need_locks provided by the user
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9215 $as_echo_n "checking if we can lock with hard links... " >&6; }
9218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9220 ln conftest.a conftest.b 2>&5 || hard_links=no
9221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9223 $as_echo "$hard_links" >&6; }
9224 if test "$hard_links" = no; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9226 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9239 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9242 allow_undefined_flag=
9243 always_export_symbols=no
9245 archive_expsym_cmds=
9246 compiler_needs_object=no
9247 enable_shared_with_static_runtimes=no
9248 export_dynamic_flag_spec=
9249 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9250 hardcode_automatic=no
9252 hardcode_direct_absolute=no
9253 hardcode_libdir_flag_spec=
9254 hardcode_libdir_flag_spec_ld=
9255 hardcode_libdir_separator=
9257 hardcode_shlibpath_var=unsupported
9259 link_all_deplibs=unknown
9262 old_archive_from_new_cmds=
9263 old_archive_from_expsyms_cmds=
9264 thread_safe_flag_spec=
9265 whole_archive_flag_spec=
9266 # include_expsyms should be a list of space-separated symbols to be *always*
9267 # included in the symbol list
9269 # exclude_expsyms can be an extended regexp of symbols to exclude
9270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9272 # as well as any symbol that contains `d'.
9273 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9275 # platforms (ab)use it in PIC code, but their linkers get confused if
9276 # the symbol is explicitly referenced. Since portable code cannot
9277 # rely on this symbol name, it's probably fine to never include it in
9278 # preloaded symbol tables.
9279 # Exclude shared library initialization/finalization symbols.
9280 extract_expsyms_cmds=
9283 cygwin* | mingw* | pw32* | cegcc*)
9284 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9285 # When not using gcc, we currently assume that we are using
9286 # Microsoft Visual C++.
9287 if test "$GCC" != yes; then
9292 # we just hope/assume this is gcc and not c89 (= MSVC++)
9298 linux* | k*bsd*-gnu)
9304 if test "$with_gnu_ld" = yes; then
9305 # If archive_cmds runs LD, not CC, wlarc should be empty
9308 # Set some defaults for GNU ld with shared library support. These
9309 # are reset later if shared libraries are not supported. Putting them
9310 # here allows them to be overridden if necessary.
9311 runpath_var=LD_RUN_PATH
9312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9313 export_dynamic_flag_spec='${wl}--export-dynamic'
9314 # ancient GNU ld didn't support --whole-archive et. al.
9315 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9316 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9318 whole_archive_flag_spec=
9320 supports_anon_versioning=no
9321 case `$LD -v 2>&1` in
9322 *GNU\ gold*) supports_anon_versioning=yes ;;
9323 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9324 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9325 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9326 *\ 2.11.*) ;; # other 2.11 versions
9327 *) supports_anon_versioning=yes ;;
9330 # See if GNU ld supports shared libraries.
9333 # On AIX/PPC, the GNU linker is very broken
9334 if test "$host_cpu" != ia64; then
9338 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9339 *** to be unable to reliably create shared libraries on AIX.
9340 *** Therefore, libtool is disabling shared libraries support. If you
9341 *** really care for shared libraries, you may want to modify your PATH
9342 *** so that a non-GNU linker is found, and then restart.
9351 # see comment about AmigaOS4 .so support
9352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353 archive_expsym_cmds=''
9356 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)'
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 hardcode_minus_L=yes
9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365 allow_undefined_flag=unsupported
9366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9367 # support --undefined. This deserves some investigation. FIXME
9368 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374 cygwin* | mingw* | pw32* | cegcc*)
9375 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9376 # as there is no search path for DLLs.
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 allow_undefined_flag=unsupported
9379 always_export_symbols=no
9380 enable_shared_with_static_runtimes=yes
9381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9383 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385 # If the export-symbols file already is a .def file (1st line
9386 # is EXPORTS), use it as is; otherwise, prepend...
9387 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9388 cp $export_symbols $output_objdir/$soname.def;
9390 echo EXPORTS > $output_objdir/$soname.def;
9391 cat $export_symbols >> $output_objdir/$soname.def;
9393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9401 hardcode_shlibpath_var=no
9402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9403 export_dynamic_flag_spec='${wl}-E'
9404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9405 # Instead, shared libraries are loaded at an image base (0x10000000 by
9406 # default) and relocated if they conflict, which is a slow very memory
9407 # consuming and fragmenting process. To avoid this, we pick a random,
9408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9409 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9411 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'
9414 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9416 if test "$host_os" = linux-dietlibc; then
9417 case $cc_basename in
9418 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9421 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9422 && test "$tmp_diet" = no
9425 tmp_sharedflag='-shared'
9426 case $cc_basename,$host_cpu in
9427 pgcc*) # Portland Group C compiler
9428 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'
9429 tmp_addflag=' $pic_flag'
9431 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9432 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'
9433 tmp_addflag=' $pic_flag -Mnomain' ;;
9434 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9435 tmp_addflag=' -i_dynamic' ;;
9436 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9437 tmp_addflag=' -i_dynamic -nofor_main' ;;
9438 ifc* | ifort*) # Intel Fortran compiler
9439 tmp_addflag=' -nofor_main' ;;
9440 lf95*) # Lahey Fortran 8.1
9441 whole_archive_flag_spec=
9442 tmp_sharedflag='--shared' ;;
9443 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9444 tmp_sharedflag='-qmkshrobj'
9447 case `$CC -V 2>&1 | sed 5q` in
9448 *Sun\ C*) # Sun C 5.9
9449 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'
9450 compiler_needs_object=yes
9451 tmp_sharedflag='-G' ;;
9452 *Sun\ F*) # Sun Fortran 8.3
9453 tmp_sharedflag='-G' ;;
9455 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457 if test "x$supports_anon_versioning" = xyes; then
9458 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9459 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9460 echo "local: *; };" >> $output_objdir/$libname.ver~
9461 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9464 case $cc_basename in
9466 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9467 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9468 hardcode_libdir_flag_spec=
9469 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9470 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9471 if test "x$supports_anon_versioning" = xyes; then
9472 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9474 echo "local: *; };" >> $output_objdir/$libname.ver~
9475 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9484 netbsd* | netbsdelf*-gnu)
9485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9486 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9495 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9500 *** create shared libraries on Solaris systems. Therefore, libtool
9501 *** is disabling shared libraries support. We urge you to upgrade GNU
9502 *** binutils to release 2.9.1 or newer. Another option is to modify
9503 *** your PATH or compiler configuration so that the native linker is
9504 *** used, and then restart.
9507 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9516 case `$LD -v 2>&1` in
9517 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9521 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9522 *** reliably create shared libraries on SCO systems. Therefore, libtool
9523 *** is disabling shared libraries support. We urge you to upgrade GNU
9524 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9525 *** your PATH or compiler configuration so that the native linker is
9526 *** used, and then restart.
9531 # For security reasons, it is highly recommended that you always
9532 # use absolute paths for naming shared libraries, and exclude the
9533 # DT_RUNPATH tag from executables and libraries. But doing so
9534 # requires that you compile everything twice, which is a pain.
9535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9547 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9550 hardcode_shlibpath_var=no
9554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9563 if test "$ld_shlibs" = no; then
9565 hardcode_libdir_flag_spec=
9566 export_dynamic_flag_spec=
9567 whole_archive_flag_spec=
9570 # PORTME fill in a description of your system's linker (not GNU ld)
9573 allow_undefined_flag=unsupported
9574 always_export_symbols=yes
9575 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'
9576 # Note: this linker hardcodes the directories in LIBPATH if there
9577 # are no directories specified by -L.
9578 hardcode_minus_L=yes
9579 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9580 # Neither direct hardcoding nor static linking is supported with a
9582 hardcode_direct=unsupported
9587 if test "$host_cpu" = ia64; then
9588 # On IA64, the linker does run time linking by default, so we don't
9589 # have to do anything special.
9590 aix_use_runtimelinking=no
9591 exp_sym_flag='-Bexport'
9594 # If we're using GNU nm, then we don't want the "-C" option.
9595 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9596 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9597 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'
9599 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'
9601 aix_use_runtimelinking=no
9603 # Test if we are trying to use run time linking or normal
9604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9605 # need to do runtime linking.
9606 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9607 for ld_flag in $LDFLAGS; do
9608 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9609 aix_use_runtimelinking=yes
9616 exp_sym_flag='-bexport'
9617 no_entry_flag='-bnoentry'
9620 # When large executables or shared objects are built, AIX ld can
9621 # have problems creating the table of contents. If linking a library
9622 # or program results in "error TOC overflow" add -mminimal-toc to
9623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9628 hardcode_direct_absolute=yes
9629 hardcode_libdir_separator=':'
9630 link_all_deplibs=yes
9631 file_list_spec='${wl}-f,'
9633 if test "$GCC" = yes; then
9634 case $host_os in aix4.[012]|aix4.[012].*)
9635 # We only want to do this on AIX 4.2 and lower, the check
9636 # below for broken collect2 doesn't work under 4.3+
9637 collect2name=`${CC} -print-prog-name=collect2`
9638 if test -f "$collect2name" &&
9639 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9641 # We have reworked collect2
9644 # We have old collect2
9645 hardcode_direct=unsupported
9646 # It fails to find uninstalled libraries when the uninstalled
9647 # path is not listed in the libpath. Setting hardcode_minus_L
9648 # to unsupported forces relinking
9649 hardcode_minus_L=yes
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_libdir_separator=
9655 shared_flag='-shared'
9656 if test "$aix_use_runtimelinking" = yes; then
9657 shared_flag="$shared_flag "'${wl}-G'
9662 if test "$host_cpu" = ia64; then
9663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9664 # chokes on -Wl,-G. The following line is correct:
9667 if test "$aix_use_runtimelinking" = yes; then
9668 shared_flag='${wl}-G'
9670 shared_flag='${wl}-bM:SRE'
9675 export_dynamic_flag_spec='${wl}-bexpall'
9676 # It seems that -bexpall does not export symbols beginning with
9677 # underscore (_), so it is better to generate a list of symbols to export.
9678 always_export_symbols=yes
9679 if test "$aix_use_runtimelinking" = yes; then
9680 # Warning - without using the other runtime loading flags (-brtl),
9681 # -berok will link without error, but may produce a broken library.
9682 allow_undefined_flag='-berok'
9683 # Determine the default libpath from the value encoded in an
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9696 if ac_fn_c_try_link "$LINENO"; then :
9698 lt_aix_libpath_sed='
9699 /Import File Strings/,/^$/ {
9705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9706 # Check for a 64-bit object if we didn't find anything.
9707 if test -z "$aix_libpath"; then
9708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 rm -f core conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9715 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9716 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"
9718 if test "$host_cpu" = ia64; then
9719 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9720 allow_undefined_flag="-z nodefs"
9721 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"
9723 # Determine the default libpath from the value encoded in an
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9736 if ac_fn_c_try_link "$LINENO"; then :
9738 lt_aix_libpath_sed='
9739 /Import File Strings/,/^$/ {
9745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746 # Check for a 64-bit object if we didn't find anything.
9747 if test -z "$aix_libpath"; then
9748 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9755 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9756 # Warning - without using the other run time loading flags,
9757 # -berok will link without error, but may produce a broken library.
9758 no_undefined_flag=' ${wl}-bernotok'
9759 allow_undefined_flag=' ${wl}-berok'
9760 # Exported symbols can be pulled into shared objects from archives
9761 whole_archive_flag_spec='$convenience'
9762 archive_cmds_need_lc=yes
9763 # This is similar to how AIX traditionally builds its shared libraries.
9764 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'
9772 # see comment about AmigaOS4 .so support
9773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9774 archive_expsym_cmds=''
9777 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)'
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_minus_L=yes
9785 export_dynamic_flag_spec=-rdynamic
9788 cygwin* | mingw* | pw32* | cegcc*)
9789 # When not using gcc, we currently assume that we are using
9790 # Microsoft Visual C++.
9791 # hardcode_libdir_flag_spec is actually meaningless, as there is
9792 # no search path for DLLs.
9793 hardcode_libdir_flag_spec=' '
9794 allow_undefined_flag=unsupported
9795 # Tell ltmain to make .lib files, not .a files.
9797 # Tell ltmain to make .dll files, not .so files.
9799 # FIXME: Setting linknames here is a bad hack.
9800 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9801 # The linker will automatically build a .lib file if we build a DLL.
9802 old_archive_from_new_cmds='true'
9803 # FIXME: Should let the user specify the lib program.
9804 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9805 fix_srcfile_path='`cygpath -w "$srcfile"`'
9806 enable_shared_with_static_runtimes=yes
9809 darwin* | rhapsody*)
9812 archive_cmds_need_lc=no
9814 hardcode_automatic=yes
9815 hardcode_shlibpath_var=unsupported
9816 whole_archive_flag_spec=''
9817 link_all_deplibs=yes
9818 allow_undefined_flag="$_lt_dar_allow_undefined"
9819 case $cc_basename in
9820 ifort*) _lt_dar_can_shared=yes ;;
9821 *) _lt_dar_can_shared=$GCC ;;
9823 if test "$_lt_dar_can_shared" = "yes"; then
9824 output_verbose_link_cmd=echo
9825 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9826 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9827 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}"
9828 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}"
9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_libdir_flag_spec='-L$libdir'
9839 hardcode_shlibpath_var=no
9846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9847 # support. Future versions do this automatically, but an explicit c++rt0.o
9848 # does not break anything, and helps significantly (at the cost of a little
9851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9852 hardcode_libdir_flag_spec='-R$libdir'
9854 hardcode_shlibpath_var=no
9857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861 hardcode_minus_L=yes
9862 hardcode_shlibpath_var=no
9865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9866 freebsd* | dragonfly*)
9867 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9868 hardcode_libdir_flag_spec='-R$libdir'
9870 hardcode_shlibpath_var=no
9874 if test "$GCC" = yes; then
9875 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'
9877 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'
9879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9880 hardcode_libdir_separator=:
9883 # hardcode_minus_L: Not really in the search PATH,
9884 # but as the default location of the library.
9885 hardcode_minus_L=yes
9886 export_dynamic_flag_spec='${wl}-E'
9890 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895 if test "$with_gnu_ld" = no; then
9896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9897 hardcode_libdir_flag_spec_ld='+b $libdir'
9898 hardcode_libdir_separator=:
9900 hardcode_direct_absolute=yes
9901 export_dynamic_flag_spec='${wl}-E'
9902 # hardcode_minus_L: Not really in the search PATH,
9903 # but as the default location of the library.
9904 hardcode_minus_L=yes
9909 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9912 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9924 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9934 if test "$with_gnu_ld" = no; then
9935 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9936 hardcode_libdir_separator=:
9941 hardcode_shlibpath_var=no
9945 hardcode_direct_absolute=yes
9946 export_dynamic_flag_spec='${wl}-E'
9948 # hardcode_minus_L: Not really in the search PATH,
9949 # but as the default location of the library.
9950 hardcode_minus_L=yes
9956 irix5* | irix6* | nonstopux*)
9957 if test "$GCC" = yes; then
9958 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'
9959 # Try to use the -exported_symbol ld option, if it does not
9960 # work, assume that -exports_file does not work either and
9961 # implicitly export all symbols.
9962 save_LDFLAGS="$LDFLAGS"
9963 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9968 if ac_fn_c_try_link "$LINENO"; then :
9969 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'
9972 rm -f core conftest.err conftest.$ac_objext \
9973 conftest$ac_exeext conftest.$ac_ext
9974 LDFLAGS="$save_LDFLAGS"
9976 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'
9977 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'
9979 archive_cmds_need_lc='no'
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 hardcode_libdir_separator=:
9983 link_all_deplibs=yes
9986 netbsd* | netbsdelf*-gnu)
9987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9990 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9992 hardcode_libdir_flag_spec='-R$libdir'
9994 hardcode_shlibpath_var=no
9998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10001 hardcode_libdir_separator=:
10002 hardcode_shlibpath_var=no
10009 if test -f /usr/libexec/ld.so; then
10010 hardcode_direct=yes
10011 hardcode_shlibpath_var=no
10012 hardcode_direct_absolute=yes
10013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10017 export_dynamic_flag_spec='${wl}-E'
10020 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_libdir_flag_spec='-R$libdir'
10025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10036 hardcode_libdir_flag_spec='-L$libdir'
10037 hardcode_minus_L=yes
10038 allow_undefined_flag=unsupported
10039 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'
10040 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10044 if test "$GCC" = yes; then
10045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10046 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'
10048 allow_undefined_flag=' -expect_unresolved \*'
10049 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'
10051 archive_cmds_need_lc='no'
10052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10053 hardcode_libdir_separator=:
10056 osf4* | osf5*) # as osf3* with the addition of -msym flag
10057 if test "$GCC" = yes; then
10058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10059 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'
10060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10062 allow_undefined_flag=' -expect_unresolved \*'
10063 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'
10064 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~
10065 $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'
10067 # Both c and cxx compiler support -rpath directly
10068 hardcode_libdir_flag_spec='-rpath $libdir'
10070 archive_cmds_need_lc='no'
10071 hardcode_libdir_separator=:
10075 no_undefined_flag=' -z defs'
10076 if test "$GCC" = yes; then
10078 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10080 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10082 case `$CC -V 2>&1` in
10085 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10091 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10093 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10097 hardcode_libdir_flag_spec='-R$libdir'
10098 hardcode_shlibpath_var=no
10100 solaris2.[0-5] | solaris2.[0-5].*) ;;
10102 # The compiler driver will combine and reorder linker options,
10103 # but understands `-z linker_flag'. GCC discards it without `$wl',
10104 # but is careful enough not to reorder.
10105 # Supported since Solaris 2.6 (maybe 2.5.1?)
10106 if test "$GCC" = yes; then
10107 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10109 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10113 link_all_deplibs=yes
10117 if test "x$host_vendor" = xsequent; then
10118 # Use $CC to link under sequent, because it throws in some extra .o
10119 # files that make .init and .fini sections work.
10120 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_libdir_flag_spec='-L$libdir'
10125 hardcode_direct=yes
10126 hardcode_minus_L=yes
10127 hardcode_shlibpath_var=no
10131 case $host_vendor in
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_direct=yes # is this really true???
10137 ## LD is ld it makes a PLAMLIB
10138 ## CC just makes a GrossModule.
10139 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10140 reload_cmds='$CC -r -o $output$reload_objs'
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10148 runpath_var='LD_RUN_PATH'
10149 hardcode_shlibpath_var=no
10153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10154 hardcode_shlibpath_var=no
10155 export_dynamic_flag_spec='-Bexport'
10159 if test -d /usr/nec; then
10160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_shlibpath_var=no
10162 runpath_var=LD_RUN_PATH
10163 hardcode_runpath_var=yes
10168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10169 no_undefined_flag='${wl}-z,text'
10170 archive_cmds_need_lc=no
10171 hardcode_shlibpath_var=no
10172 runpath_var='LD_RUN_PATH'
10174 if test "$GCC" = yes; then
10175 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183 sysv5* | sco3.2v5* | sco5v6*)
10184 # Note: We can NOT use -z defs as we might desire, because we do not
10185 # link with -lc, and that would cause any symbols used from libc to
10186 # always be unresolved, which means just about no library would
10187 # ever link correctly. If we're not using GNU ld we use -z text
10188 # though, which does catch some bad symbols but isn't as heavy-handed
10190 no_undefined_flag='${wl}-z,text'
10191 allow_undefined_flag='${wl}-z,nodefs'
10192 archive_cmds_need_lc=no
10193 hardcode_shlibpath_var=no
10194 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10195 hardcode_libdir_separator=':'
10196 link_all_deplibs=yes
10197 export_dynamic_flag_spec='${wl}-Bexport'
10198 runpath_var='LD_RUN_PATH'
10200 if test "$GCC" = yes; then
10201 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10202 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211 hardcode_libdir_flag_spec='-L$libdir'
10212 hardcode_shlibpath_var=no
10220 if test x$host_vendor = xsni; then
10222 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10223 export_dynamic_flag_spec='${wl}-Blargedynsym'
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10230 $as_echo "$ld_shlibs" >&6; }
10231 test "$ld_shlibs" = no && can_build_shared=no
10233 with_gnu_ld=$with_gnu_ld
10250 # Do we need to explicitly link libc?
10252 case "x$archive_cmds_need_lc" in
10254 # Assume -lc should be added
10255 archive_cmds_need_lc=yes
10257 if test "$enable_shared" = yes && test "$GCC" = yes; then
10258 case $archive_cmds in
10260 # FIXME: we may have to deal with multi-command sequences.
10263 # Test whether the compiler implicitly links with -lc since on some
10264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10265 # to ld, don't add -lc before -lgcc.
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10272 (eval $ac_compile) 2>&5
10274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10275 test $ac_status = 0; } 2>conftest.err; then
10278 libobjs=conftest.$ac_objext
10280 wl=$lt_prog_compiler_wl
10281 pic_flag=$lt_prog_compiler_pic
10287 lt_save_allow_undefined_flag=$allow_undefined_flag
10288 allow_undefined_flag=
10289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10290 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10293 test $ac_status = 0; }
10295 archive_cmds_need_lc=no
10297 archive_cmds_need_lc=yes
10299 allow_undefined_flag=$lt_save_allow_undefined_flag
10301 cat conftest.err 1>&5
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10305 $as_echo "$archive_cmds_need_lc" >&6; }
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10469 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10471 if test "$GCC" = yes; then
10473 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10474 *) lt_awk_arg="/^libraries:/" ;;
10476 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10477 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10478 # if the path contains ";" then we assume it to be the separator
10479 # otherwise default to the standard path separator (i.e. ":") - it is
10480 # assumed that no part of a normal pathname contains ";" but that should
10481 # okay in the real world where ";" in dirpaths is itself problematic.
10482 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10486 # Ok, now we have the path, separated by spaces, we can step through it
10487 # and add multilib dir if necessary.
10488 lt_tmp_lt_search_path_spec=
10489 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10490 for lt_sys_path in $lt_search_path_spec; do
10491 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10494 test -d "$lt_sys_path" && \
10495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10498 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10499 BEGIN {RS=" "; FS="/|\n";} {
10502 for (lt_i = NF; lt_i > 0; lt_i--) {
10503 if ($lt_i != "" && $lt_i != ".") {
10504 if ($lt_i == "..") {
10507 if (lt_count == 0) {
10508 lt_foo="/" $lt_i lt_foo;
10515 if (lt_foo != "") { lt_freq[lt_foo]++; }
10516 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10518 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10520 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10522 library_names_spec=
10523 libname_spec='lib$name'
10527 postuninstall_cmds=
10531 shlibpath_overrides_runpath=unknown
10533 dynamic_linker="$host_os ld.so"
10534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10535 need_lib_prefix=unknown
10536 hardcode_into_libs=no
10538 # when you set need_version to no, make sure it does not cause -set_version
10539 # flags to be left without arguments
10540 need_version=unknown
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10546 shlibpath_var=LIBPATH
10548 # AIX 3 has no versioning support, so we append a major version to the name.
10549 soname_spec='${libname}${release}${shared_ext}$major'
10556 hardcode_into_libs=yes
10557 if test "$host_cpu" = ia64; then
10558 # AIX 5 supports IA64
10559 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10562 # With GCC up to 2.95.x, collect2 would create an import file
10563 # for dependence libraries. The import file would start with
10564 # the line `#! .'. This would cause the generated library to
10565 # depend on `.', always an invalid library. This was fixed in
10566 # development snapshots of GCC prior to 3.0.
10568 aix4 | aix4.[01] | aix4.[01].*)
10569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10571 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10574 can_build_shared=no
10578 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10579 # soname into executable. Probably we can add versioning support to
10580 # collect2, so additional links can be useful in future.
10581 if test "$aix_use_runtimelinking" = yes; then
10582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10583 # instead of lib<name>.a to let people know that these are not
10584 # typical AIX shared libraries.
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587 # We preserve .a as extension for shared libraries through AIX4.2
10588 # and later when we are not doing run time linking.
10589 library_names_spec='${libname}${release}.a $libname.a'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10592 shlibpath_var=LIBPATH
10599 # Since July 2007 AmigaOS4 officially supports .so libraries.
10600 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 library_names_spec='$libname.ixlibrary $libname.a'
10605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10606 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'
10612 library_names_spec='${libname}${shared_ext}'
10613 dynamic_linker="$host_os ld.so"
10614 shlibpath_var=LIBRARY_PATH
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10626 # the default ld.so.conf also contains /usr/contrib/lib and
10627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10628 # libtool to hard-code these into programs
10631 cygwin* | mingw* | pw32* | cegcc*)
10632 version_type=windows
10637 case $GCC,$host_os in
10638 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10639 library_names_spec='$libname.dll.a'
10640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10641 postinstall_cmds='base_file=`basename \${file}`~
10642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10643 dldir=$destdir/`dirname \$dlpath`~
10644 test -d \$dldir || mkdir -p \$dldir~
10645 $install_prog $dir/$dlname \$dldir/$dlname~
10646 chmod a+x \$dldir/$dlname~
10647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10651 dlpath=$dir/\$dldll~
10653 shlibpath_overrides_runpath=yes
10657 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10658 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10662 # MinGW DLLs use traditional 'lib' prefix
10663 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10665 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10666 # It is most probably a Windows format PATH printed by
10667 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10668 # path with ; separators, and with drive letters. We can handle the
10669 # drive letters (cygwin fileutils understands them), so leave them,
10670 # especially as we might pass files found there to a mingw objdump,
10671 # which wouldn't understand a cygwinified path. Ahh.
10672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10674 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10678 # pw32 DLLs use 'pw' prefix rather than 'lib'
10679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10688 dynamic_linker='Win32 ld.exe'
10689 # FIXME: first we should search . and the directory the executable is in
10693 darwin* | rhapsody*)
10694 dynamic_linker="$host_os dyld"
10695 version_type=darwin
10698 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10699 soname_spec='${libname}${release}${major}$shared_ext'
10700 shlibpath_overrides_runpath=yes
10701 shlibpath_var=DYLD_LIBRARY_PATH
10702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10704 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 shlibpath_var=LD_LIBRARY_PATH
10721 freebsd* | dragonfly*)
10722 # DragonFly does not have aout. When/if they implement a new
10723 # versioning mechanism, adjust this.
10724 if test -x /usr/bin/objformat; then
10725 objformat=`/usr/bin/objformat`
10728 freebsd[123]*) objformat=aout ;;
10729 *) objformat=elf ;;
10732 version_type=freebsd-$objformat
10733 case $version_type in
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10744 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=yes
10749 freebsd3.[01]* | freebsdelf3.[01]*)
10750 shlibpath_overrides_runpath=yes
10751 hardcode_into_libs=yes
10753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10755 shlibpath_overrides_runpath=no
10756 hardcode_into_libs=yes
10758 *) # from 4.6 on, and DragonFly
10759 shlibpath_overrides_runpath=yes
10760 hardcode_into_libs=yes
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 shlibpath_var=LD_LIBRARY_PATH
10772 hardcode_into_libs=yes
10775 hpux9* | hpux10* | hpux11*)
10776 # Give a soname corresponding to the major version so that dld.sl refuses to
10777 # link against other versions.
10784 hardcode_into_libs=yes
10785 dynamic_linker="$host_os dld.so"
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 if test "X$HPUX_IA64_MODE" = X32; then
10791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10799 hardcode_into_libs=yes
10800 dynamic_linker="$host_os dld.sl"
10801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10810 dynamic_linker="$host_os dld.sl"
10811 shlibpath_var=SHLIB_PATH
10812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
10817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10818 postinstall_cmds='chmod 555 $lib'
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10826 soname_spec='${libname}${release}${shared_ext}$major'
10827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=no
10830 hardcode_into_libs=yes
10833 irix5* | irix6* | nonstopux*)
10835 nonstopux*) version_type=nonstopux ;;
10837 if test "$lt_cv_prog_gnu_ld" = yes; then
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10848 irix5* | nonstopux*)
10849 libsuff= shlibsuff=
10852 case $LD in # libtool.m4 will add one of these switches to LD
10853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10854 libsuff= shlibsuff= libmagic=32-bit;;
10855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10856 libsuff=32 shlibsuff=N32 libmagic=N32;;
10857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10859 *) libsuff= shlibsuff= libmagic=never-match;;
10863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10864 shlibpath_overrides_runpath=no
10865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10867 hardcode_into_libs=yes
10870 # No shared lib support for Linux oldld, aout, or coff.
10871 linux*oldld* | linux*aout* | linux*coff*)
10875 # This must be Linux ELF.
10876 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=no
10885 # Some binutils ld are patched to set DT_RUNPATH
10886 save_LDFLAGS=$LDFLAGS
10887 save_libdir=$libdir
10888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10901 if ac_fn_c_try_link "$LINENO"; then :
10902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10903 shlibpath_overrides_runpath=yes
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LDFLAGS=$save_LDFLAGS
10909 libdir=$save_libdir
10911 # This implies no fast_install, which is unacceptable.
10912 # Some rework will be needed to allow for fast_install
10913 # before this can be enabled.
10914 hardcode_into_libs=yes
10916 # Append ld.so.conf contents to the search path
10917 if test -f /etc/ld.so.conf; then
10918 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' ' '`
10919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10922 # We used to test for /lib/ld.so.1 and disable shared libraries on
10923 # powerpc, because MkLinux only supported shared libraries with the
10924 # GNU dynamic linker. Since this was broken with cross compilers,
10925 # most powerpc-linux boxes support dynamic linking these days and
10926 # people can always --disable-shared, the test was removed, and we
10927 # assume the GNU/Linux dynamic linker is in use.
10928 dynamic_linker='GNU/Linux ld.so'
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=no
10939 hardcode_into_libs=yes
10940 dynamic_linker='NetBSD ld.elf_so'
10947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10950 dynamic_linker='NetBSD (a.out) ld.so'
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 dynamic_linker='NetBSD ld.elf_so'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes
10958 hardcode_into_libs=yes
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=no
10976 hardcode_into_libs=yes
10977 dynamic_linker='ldqnx.so'
10982 sys_lib_dlsearch_path_spec="/usr/lib"
10984 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10986 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10987 *) need_version=no ;;
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10994 openbsd2.[89] | openbsd2.[89].*)
10995 shlibpath_overrides_runpath=no
10998 shlibpath_overrides_runpath=yes
11002 shlibpath_overrides_runpath=yes
11007 libname_spec='$name'
11010 library_names_spec='$libname${shared_ext} $libname.a'
11011 dynamic_linker='OS/2 ld.exe'
11012 shlibpath_var=LIBPATH
11015 osf3* | osf4* | osf5*)
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11023 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11038 hardcode_into_libs=yes
11039 # ldd complains unless libraries are executable
11040 postinstall_cmds='chmod +x $lib'
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes
11049 if test "$with_gnu_ld" = yes; then
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 soname_spec='${libname}${release}${shared_ext}$major'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 case $host_vendor in
11062 shlibpath_overrides_runpath=no
11064 runpath_var=LD_RUN_PATH
11072 shlibpath_overrides_runpath=no
11073 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11079 if test -d /usr/nec ;then
11081 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11082 soname_spec='$libname${shared_ext}.$major'
11083 shlibpath_var=LD_LIBRARY_PATH
11087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11088 version_type=freebsd-elf
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes
11095 hardcode_into_libs=yes
11096 if test "$with_gnu_ld" = yes; then
11097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11099 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11102 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11106 sys_lib_dlsearch_path_spec='/usr/lib'
11110 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=no
11117 hardcode_into_libs=yes
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 shlibpath_var=LD_LIBRARY_PATH
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11132 $as_echo "$dynamic_linker" >&6; }
11133 test "$dynamic_linker" = no && can_build_shared=no
11135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11136 if test "$GCC" = yes; then
11137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11140 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11141 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11143 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11144 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11234 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11236 if test -n "$hardcode_libdir_flag_spec" ||
11237 test -n "$runpath_var" ||
11238 test "X$hardcode_automatic" = "Xyes" ; then
11240 # We can hardcode non-existent directories.
11241 if test "$hardcode_direct" != no &&
11242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11243 # have to relink, otherwise we might link with an installed library
11244 # when we should be linking with a yet-to-be-installed one
11245 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11246 test "$hardcode_minus_L" != no; then
11247 # Linking always hardcodes the temporary library directory.
11248 hardcode_action=relink
11250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11251 hardcode_action=immediate
11254 # We cannot hardcode anything, or else we can only hardcode existing
11256 hardcode_action=unsupported
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11259 $as_echo "$hardcode_action" >&6; }
11261 if test "$hardcode_action" = relink ||
11262 test "$inherit_rpath" = yes; then
11263 # Fast installation is not supported
11264 enable_fast_install=no
11265 elif test "$shlibpath_overrides_runpath" = yes ||
11266 test "$enable_shared" = no; then
11267 # Fast installation is not necessary
11268 enable_fast_install=needless
11276 if test "x$enable_dlopen" != xyes; then
11277 enable_dlopen=unknown
11278 enable_dlopen_self=unknown
11279 enable_dlopen_self_static=unknown
11286 lt_cv_dlopen="load_add_on"
11288 lt_cv_dlopen_self=yes
11291 mingw* | pw32* | cegcc*)
11292 lt_cv_dlopen="LoadLibrary"
11297 lt_cv_dlopen="dlopen"
11302 # if libdl is installed we need to link against it
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11304 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11305 if ${ac_cv_lib_dl_dlopen+:} false; then :
11306 $as_echo_n "(cached) " >&6
11308 ac_check_lib_save_LIBS=$LIBS
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11328 if ac_fn_c_try_link "$LINENO"; then :
11329 ac_cv_lib_dl_dlopen=yes
11331 ac_cv_lib_dl_dlopen=no
11333 rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 LIBS=$ac_check_lib_save_LIBS
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11338 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11339 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11343 lt_cv_dlopen="dyld"
11345 lt_cv_dlopen_self=yes
11352 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11353 if test "x$ac_cv_func_shl_load" = xyes; then :
11354 lt_cv_dlopen="shl_load"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11357 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11358 if ${ac_cv_lib_dld_shl_load+:} false; then :
11359 $as_echo_n "(cached) " >&6
11361 ac_check_lib_save_LIBS=$LIBS
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11366 /* Override any GCC internal prototype to avoid an error.
11367 Use char because int might match the return type of a GCC
11368 builtin and then its argument prototype would still apply. */
11376 return shl_load ();
11381 if ac_fn_c_try_link "$LINENO"; then :
11382 ac_cv_lib_dld_shl_load=yes
11384 ac_cv_lib_dld_shl_load=no
11386 rm -f core conftest.err conftest.$ac_objext \
11387 conftest$ac_exeext conftest.$ac_ext
11388 LIBS=$ac_check_lib_save_LIBS
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11391 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11392 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11393 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11395 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11396 if test "x$ac_cv_func_dlopen" = xyes; then :
11397 lt_cv_dlopen="dlopen"
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11400 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11401 if ${ac_cv_lib_dl_dlopen+:} false; then :
11402 $as_echo_n "(cached) " >&6
11404 ac_check_lib_save_LIBS=$LIBS
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11409 /* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
11424 if ac_fn_c_try_link "$LINENO"; then :
11425 ac_cv_lib_dl_dlopen=yes
11427 ac_cv_lib_dl_dlopen=no
11429 rm -f core conftest.err conftest.$ac_objext \
11430 conftest$ac_exeext conftest.$ac_ext
11431 LIBS=$ac_check_lib_save_LIBS
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11434 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11435 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11436 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11439 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11440 if ${ac_cv_lib_svld_dlopen+:} false; then :
11441 $as_echo_n "(cached) " >&6
11443 ac_check_lib_save_LIBS=$LIBS
11444 LIBS="-lsvld $LIBS"
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11463 if ac_fn_c_try_link "$LINENO"; then :
11464 ac_cv_lib_svld_dlopen=yes
11466 ac_cv_lib_svld_dlopen=no
11468 rm -f core conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11470 LIBS=$ac_check_lib_save_LIBS
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11473 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11474 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11478 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11479 if ${ac_cv_lib_dld_dld_link+:} false; then :
11480 $as_echo_n "(cached) " >&6
11482 ac_check_lib_save_LIBS=$LIBS
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11497 return dld_link ();
11502 if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_lib_dld_dld_link=yes
11505 ac_cv_lib_dld_dld_link=no
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11512 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11513 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11514 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11535 if test "x$lt_cv_dlopen" != xno; then
11541 case $lt_cv_dlopen in
11543 save_CPPFLAGS="$CPPFLAGS"
11544 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11546 save_LDFLAGS="$LDFLAGS"
11547 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11550 LIBS="$lt_cv_dlopen_libs $LIBS"
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11553 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11554 if ${lt_cv_dlopen_self+:} false; then :
11555 $as_echo_n "(cached) " >&6
11557 if test "$cross_compiling" = yes; then :
11558 lt_cv_dlopen_self=cross
11560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11561 lt_status=$lt_dlunknown
11562 cat > conftest.$ac_ext <<_LT_EOF
11563 #line 11563 "configure"
11564 #include "confdefs.h"
11573 # define LT_DLGLOBAL RTLD_GLOBAL
11576 # define LT_DLGLOBAL DL_GLOBAL
11578 # define LT_DLGLOBAL 0
11582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11583 find out it does not work in some platform. */
11584 #ifndef LT_DLLAZY_OR_NOW
11586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11589 # define LT_DLLAZY_OR_NOW DL_LAZY
11592 # define LT_DLLAZY_OR_NOW RTLD_NOW
11595 # define LT_DLLAZY_OR_NOW DL_NOW
11597 # define LT_DLLAZY_OR_NOW 0
11604 void fnord() { int i=42;}
11607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608 int status = $lt_dlunknown;
11612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11613 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11614 /* dlclose (self); */
11622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11623 (eval $ac_link) 2>&5
11625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11627 (./conftest; exit; ) >&5 2>/dev/null
11629 case x$lt_status in
11630 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11631 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11632 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11635 # compilation failed
11636 lt_cv_dlopen_self=no
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11644 $as_echo "$lt_cv_dlopen_self" >&6; }
11646 if test "x$lt_cv_dlopen_self" = xyes; then
11647 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11649 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11650 if ${lt_cv_dlopen_self_static+:} false; then :
11651 $as_echo_n "(cached) " >&6
11653 if test "$cross_compiling" = yes; then :
11654 lt_cv_dlopen_self_static=cross
11656 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11657 lt_status=$lt_dlunknown
11658 cat > conftest.$ac_ext <<_LT_EOF
11659 #line 11659 "configure"
11660 #include "confdefs.h"
11669 # define LT_DLGLOBAL RTLD_GLOBAL
11672 # define LT_DLGLOBAL DL_GLOBAL
11674 # define LT_DLGLOBAL 0
11678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11679 find out it does not work in some platform. */
11680 #ifndef LT_DLLAZY_OR_NOW
11682 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11685 # define LT_DLLAZY_OR_NOW DL_LAZY
11688 # define LT_DLLAZY_OR_NOW RTLD_NOW
11691 # define LT_DLLAZY_OR_NOW DL_NOW
11693 # define LT_DLLAZY_OR_NOW 0
11700 void fnord() { int i=42;}
11703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11704 int status = $lt_dlunknown;
11708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11709 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11710 /* dlclose (self); */
11718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11719 (eval $ac_link) 2>&5
11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11723 (./conftest; exit; ) >&5 2>/dev/null
11725 case x$lt_status in
11726 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11727 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11728 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11731 # compilation failed
11732 lt_cv_dlopen_self_static=no
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11740 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11743 CPPFLAGS="$save_CPPFLAGS"
11744 LDFLAGS="$save_LDFLAGS"
11749 case $lt_cv_dlopen_self in
11750 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11751 *) enable_dlopen_self=unknown ;;
11754 case $lt_cv_dlopen_self_static in
11755 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11756 *) enable_dlopen_self_static=unknown ;;
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11779 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11780 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11781 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11782 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11784 $as_echo "yes" >&6; }
11786 # FIXME - insert some real tests, host_os isn't really good enough
11789 if test -n "$STRIP" ; then
11790 striplib="$STRIP -x"
11791 old_striplib="$STRIP -S"
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11793 $as_echo "yes" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11817 # Report which library types will actually be built
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11819 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11821 $as_echo "$can_build_shared" >&6; }
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11824 $as_echo_n "checking whether to build shared libraries... " >&6; }
11825 test "$can_build_shared" = "no" && enable_shared=no
11827 # On AIX, shared libraries and static libraries use the same namespace, and
11828 # are all built from PIC.
11831 test "$enable_shared" = yes && enable_static=no
11832 if test -n "$RANLIB"; then
11833 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11834 postinstall_cmds='$RANLIB $lib'
11839 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11840 test "$enable_shared" = yes && enable_static=no
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11845 $as_echo "$enable_shared" >&6; }
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11848 $as_echo_n "checking whether to build static libraries... " >&6; }
11849 # Make sure either enable_shared or enable_static is yes.
11850 test "$enable_shared" = yes || enable_static=yes
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11852 $as_echo "$enable_static" >&6; }
11859 ac_cpp='$CXXCPP $CPPFLAGS'
11860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11868 ac_cpp='$CXXCPP $CPPFLAGS'
11869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11873 archive_cmds_need_lc_CXX=no
11874 allow_undefined_flag_CXX=
11875 always_export_symbols_CXX=no
11876 archive_expsym_cmds_CXX=
11877 compiler_needs_object_CXX=no
11878 export_dynamic_flag_spec_CXX=
11879 hardcode_direct_CXX=no
11880 hardcode_direct_absolute_CXX=no
11881 hardcode_libdir_flag_spec_CXX=
11882 hardcode_libdir_flag_spec_ld_CXX=
11883 hardcode_libdir_separator_CXX=
11884 hardcode_minus_L_CXX=no
11885 hardcode_shlibpath_var_CXX=unsupported
11886 hardcode_automatic_CXX=no
11887 inherit_rpath_CXX=no
11889 module_expsym_cmds_CXX=
11890 link_all_deplibs_CXX=unknown
11891 old_archive_cmds_CXX=$old_archive_cmds
11892 no_undefined_flag_CXX=
11893 whole_archive_flag_spec_CXX=
11894 enable_shared_with_static_runtimes_CXX=no
11896 # Source file extension for C++ test sources.
11899 # Object file extension for compiled C++ test sources.
11903 # No sense in running all these tests if we already determined that
11904 # the CXX compiler isn't working. Some variables (like enable_shared)
11905 # are currently assumed to apply to all compilers on this platform,
11906 # and will be corrupted by setting them based on a non-working compiler.
11907 if test "$_lt_caught_CXX_error" != yes; then
11908 # Code to be used in simple compile tests
11909 lt_simple_compile_test_code="int some_variable = 0;"
11911 # Code to be used in simple link tests
11912 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11921 # If no C compiler was specified, use CC.
11924 # If no C compiler flags were specified, use CFLAGS.
11925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11927 # Allow CC to be a program name with arguments.
11931 # save warnings/boilerplate of simple test code
11932 ac_outfile=conftest.$ac_objext
11933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11935 _lt_compiler_boilerplate=`cat conftest.err`
11938 ac_outfile=conftest.$ac_objext
11939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11941 _lt_linker_boilerplate=`cat conftest.err`
11945 # Allow CC to be a program name with arguments.
11950 lt_save_with_gnu_ld=$with_gnu_ld
11951 lt_save_path_LD=$lt_cv_path_LD
11952 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11953 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11955 $as_unset lt_cv_prog_gnu_ld
11957 if test -n "${lt_cv_path_LDCXX+set}"; then
11958 lt_cv_path_LD=$lt_cv_path_LDCXX
11960 $as_unset lt_cv_path_LD
11962 test -z "${LDCXX+set}" || LD=$LDCXX
11966 for cc_temp in $compiler""; do
11968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11974 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11977 if test -n "$compiler"; then
11978 # We don't want -fno-exception when compiling C++ code, so set the
11979 # no_builtin_flag separately
11980 if test "$GXX" = yes; then
11981 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11983 lt_prog_compiler_no_builtin_flag_CXX=
11986 if test "$GXX" = yes; then
11987 # Set up default GNU C++ configuration
11991 # Check whether --with-gnu-ld was given.
11992 if test "${with_gnu_ld+set}" = set; then :
11993 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11999 if test "$GCC" = yes; then
12000 # Check if gcc -print-prog-name=ld gives a path.
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12002 $as_echo_n "checking for ld used by $CC... " >&6; }
12005 # gcc leaves a trailing carriage return which upsets mingw
12006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12011 # Accept absolute paths.
12013 re_direlt='/[^/][^/]*/\.\./'
12014 # Canonicalize the pathname of ld
12015 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12016 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12017 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12019 test -z "$LD" && LD="$ac_prog"
12022 # If it fails, then pretend we aren't using GCC.
12026 # If it is relative, then search for the first ld in PATH.
12027 with_gnu_ld=unknown
12030 elif test "$with_gnu_ld" = yes; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12032 $as_echo_n "checking for GNU ld... " >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12035 $as_echo_n "checking for non-GNU ld... " >&6; }
12037 if ${lt_cv_path_LD+:} false; then :
12038 $as_echo_n "(cached) " >&6
12040 if test -z "$LD"; then
12041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12042 for ac_dir in $PATH; do
12044 test -z "$ac_dir" && ac_dir=.
12045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12046 lt_cv_path_LD="$ac_dir/$ac_prog"
12047 # Check to see if the program is GNU ld. I'd rather use --version,
12048 # but apparently some variants of GNU ld only accept -v.
12049 # Break only if it was the GNU/non-GNU ld that we prefer.
12050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12051 *GNU* | *'with BFD'*)
12052 test "$with_gnu_ld" != no && break
12055 test "$with_gnu_ld" != yes && break
12062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12066 LD="$lt_cv_path_LD"
12067 if test -n "$LD"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12069 $as_echo "$LD" >&6; }
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12074 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12076 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12077 if ${lt_cv_prog_gnu_ld+:} false; then :
12078 $as_echo_n "(cached) " >&6
12080 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12081 case `$LD -v 2>&1 </dev/null` in
12082 *GNU* | *'with BFD'*)
12083 lt_cv_prog_gnu_ld=yes
12086 lt_cv_prog_gnu_ld=no
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12091 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12092 with_gnu_ld=$lt_cv_prog_gnu_ld
12100 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12101 # archiving commands below assume that GNU ld is being used.
12102 if test "$with_gnu_ld" = yes; then
12103 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12104 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'
12106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12107 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12109 # If archive_cmds runs LD, not CC, wlarc should be empty
12110 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12111 # investigate it a little bit more. (MM)
12114 # ancient GNU ld didn't support --whole-archive et. al.
12115 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12116 $GREP 'no-whole-archive' > /dev/null; then
12117 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12119 whole_archive_flag_spec_CXX=
12125 # A generic and very simple default shared library creation
12126 # command for GNU C++ for the case where it uses the native
12127 # linker, instead of GNU ld. If possible, this setting should
12128 # overridden to take advantage of the native linker features on
12129 # the platform it is being used on.
12130 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12144 # PORTME: fill in a description of your system's C++ link characteristics
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12150 # FIXME: insert proper C++ library support
12154 if test "$host_cpu" = ia64; then
12155 # On IA64, the linker does run time linking by default, so we don't
12156 # have to do anything special.
12157 aix_use_runtimelinking=no
12158 exp_sym_flag='-Bexport'
12161 aix_use_runtimelinking=no
12163 # Test if we are trying to use run time linking or normal
12164 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12165 # need to do runtime linking.
12166 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12167 for ld_flag in $LDFLAGS; do
12170 aix_use_runtimelinking=yes
12178 exp_sym_flag='-bexport'
12179 no_entry_flag='-bnoentry'
12182 # When large executables or shared objects are built, AIX ld can
12183 # have problems creating the table of contents. If linking a library
12184 # or program results in "error TOC overflow" add -mminimal-toc to
12185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12188 archive_cmds_CXX=''
12189 hardcode_direct_CXX=yes
12190 hardcode_direct_absolute_CXX=yes
12191 hardcode_libdir_separator_CXX=':'
12192 link_all_deplibs_CXX=yes
12193 file_list_spec_CXX='${wl}-f,'
12195 if test "$GXX" = yes; then
12196 case $host_os in aix4.[012]|aix4.[012].*)
12197 # We only want to do this on AIX 4.2 and lower, the check
12198 # below for broken collect2 doesn't work under 4.3+
12199 collect2name=`${CC} -print-prog-name=collect2`
12200 if test -f "$collect2name" &&
12201 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12203 # We have reworked collect2
12206 # We have old collect2
12207 hardcode_direct_CXX=unsupported
12208 # It fails to find uninstalled libraries when the uninstalled
12209 # path is not listed in the libpath. Setting hardcode_minus_L
12210 # to unsupported forces relinking
12211 hardcode_minus_L_CXX=yes
12212 hardcode_libdir_flag_spec_CXX='-L$libdir'
12213 hardcode_libdir_separator_CXX=
12216 shared_flag='-shared'
12217 if test "$aix_use_runtimelinking" = yes; then
12218 shared_flag="$shared_flag "'${wl}-G'
12222 if test "$host_cpu" = ia64; then
12223 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12224 # chokes on -Wl,-G. The following line is correct:
12227 if test "$aix_use_runtimelinking" = yes; then
12228 shared_flag='${wl}-G'
12230 shared_flag='${wl}-bM:SRE'
12235 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12236 # It seems that -bexpall does not export symbols beginning with
12237 # underscore (_), so it is better to generate a list of symbols to
12239 always_export_symbols_CXX=yes
12240 if test "$aix_use_runtimelinking" = yes; then
12241 # Warning - without using the other runtime loading flags (-brtl),
12242 # -berok will link without error, but may produce a broken library.
12243 allow_undefined_flag_CXX='-berok'
12244 # Determine the default libpath from the value encoded in an empty
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12257 if ac_fn_cxx_try_link "$LINENO"; then :
12259 lt_aix_libpath_sed='
12260 /Import File Strings/,/^$/ {
12266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12267 # Check for a 64-bit object if we didn't find anything.
12268 if test -z "$aix_libpath"; then
12269 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12272 rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12276 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12278 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"
12280 if test "$host_cpu" = ia64; then
12281 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12282 allow_undefined_flag_CXX="-z nodefs"
12283 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"
12285 # Determine the default libpath from the value encoded in an
12286 # empty executable.
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12298 if ac_fn_cxx_try_link "$LINENO"; then :
12300 lt_aix_libpath_sed='
12301 /Import File Strings/,/^$/ {
12307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12308 # Check for a 64-bit object if we didn't find anything.
12309 if test -z "$aix_libpath"; then
12310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12317 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12318 # Warning - without using the other run time loading flags,
12319 # -berok will link without error, but may produce a broken library.
12320 no_undefined_flag_CXX=' ${wl}-bernotok'
12321 allow_undefined_flag_CXX=' ${wl}-berok'
12322 # Exported symbols can be pulled into shared objects from archives
12323 whole_archive_flag_spec_CXX='$convenience'
12324 archive_cmds_need_lc_CXX=yes
12325 # This is similar to how AIX traditionally builds its shared
12327 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'
12333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12334 allow_undefined_flag_CXX=unsupported
12335 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12336 # support --undefined. This deserves some investigation. FIXME
12337 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12344 case $cc_basename in
12346 # FIXME: insert proper C++ library support
12352 cygwin* | mingw* | pw32* | cegcc*)
12353 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12354 # as there is no search path for DLLs.
12355 hardcode_libdir_flag_spec_CXX='-L$libdir'
12356 allow_undefined_flag_CXX=unsupported
12357 always_export_symbols_CXX=no
12358 enable_shared_with_static_runtimes_CXX=yes
12360 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12361 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'
12362 # If the export-symbols file already is a .def file (1st line
12363 # is EXPORTS), use it as is; otherwise, prepend...
12364 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12365 cp $export_symbols $output_objdir/$soname.def;
12367 echo EXPORTS > $output_objdir/$soname.def;
12368 cat $export_symbols >> $output_objdir/$soname.def;
12370 $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'
12375 darwin* | rhapsody*)
12378 archive_cmds_need_lc_CXX=no
12379 hardcode_direct_CXX=no
12380 hardcode_automatic_CXX=yes
12381 hardcode_shlibpath_var_CXX=unsupported
12382 whole_archive_flag_spec_CXX=''
12383 link_all_deplibs_CXX=yes
12384 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12385 case $cc_basename in
12386 ifort*) _lt_dar_can_shared=yes ;;
12387 *) _lt_dar_can_shared=$GCC ;;
12389 if test "$_lt_dar_can_shared" = "yes"; then
12390 output_verbose_link_cmd=echo
12391 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}"
12392 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12393 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}"
12394 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}"
12395 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12396 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}"
12397 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}"
12407 case $cc_basename in
12409 # FIXME: insert proper C++ library support
12413 # Green Hills C++ Compiler
12414 # FIXME: insert proper C++ library support
12418 # FIXME: insert proper C++ library support
12425 # C++ shared libraries reported to be fairly broken before
12431 archive_cmds_need_lc_CXX=no
12434 freebsd* | dragonfly*)
12435 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12444 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12445 hardcode_libdir_separator_CXX=:
12446 export_dynamic_flag_spec_CXX='${wl}-E'
12447 hardcode_direct_CXX=yes
12448 hardcode_minus_L_CXX=yes # Not in the search PATH,
12449 # but as the default
12450 # location of the library.
12452 case $cc_basename in
12454 # FIXME: insert proper C++ library support
12458 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'
12459 # Commands to make compiler produce verbose output that lists
12460 # what "hidden" libraries, object files and flags are used when
12461 # linking a shared library.
12463 # There doesn't appear to be a way to prevent this compiler from
12464 # explicitly linking system object files so we need to strip them
12465 # from the output so that they don't get included in the library
12467 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'
12470 if test "$GXX" = yes; then
12471 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'
12473 # FIXME: insert proper C++ library support
12481 if test $with_gnu_ld = no; then
12482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12483 hardcode_libdir_separator_CXX=:
12489 export_dynamic_flag_spec_CXX='${wl}-E'
12495 hardcode_direct_CXX=no
12496 hardcode_shlibpath_var_CXX=no
12499 hardcode_direct_CXX=yes
12500 hardcode_direct_absolute_CXX=yes
12501 hardcode_minus_L_CXX=yes # Not in the search PATH,
12502 # but as the default
12503 # location of the library.
12507 case $cc_basename in
12509 # FIXME: insert proper C++ library support
12515 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12518 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12524 # Commands to make compiler produce verbose output that lists
12525 # what "hidden" libraries, object files and flags are used when
12526 # linking a shared library.
12528 # There doesn't appear to be a way to prevent this compiler from
12529 # explicitly linking system object files so we need to strip them
12530 # from the output so that they don't get included in the library
12532 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'
12535 if test "$GXX" = yes; then
12536 if test $with_gnu_ld = no; then
12539 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12545 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'
12550 # FIXME: insert proper C++ library support
12558 hardcode_direct_CXX=no
12559 hardcode_shlibpath_var_CXX=no
12560 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12561 export_dynamic_flag_spec_CXX='${wl}-E'
12562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12563 # Instead, shared libraries are loaded at an image base (0x10000000 by
12564 # default) and relocated if they conflict, which is a slow very memory
12565 # consuming and fragmenting process. To avoid this, we pick a random,
12566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12568 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'
12569 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'
12572 case $cc_basename in
12575 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'
12577 # Archives containing C++ object files must be created using
12578 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12579 # necessary to make sure instantiated templates are included
12581 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12584 if test "$GXX" = yes; then
12585 if test "$with_gnu_ld" = no; then
12586 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'
12588 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'
12591 link_all_deplibs_CXX=yes
12594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12595 hardcode_libdir_separator_CXX=:
12596 inherit_rpath_CXX=yes
12599 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12600 case $cc_basename in
12602 # Kuck and Associates, Inc. (KAI) C++ Compiler
12604 # KCC will only create a shared library if the output file
12605 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12606 # to its proper name (with version) after linking.
12607 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'
12608 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'
12609 # Commands to make compiler produce verbose output that lists
12610 # what "hidden" libraries, object files and flags are used when
12611 # linking a shared library.
12613 # There doesn't appear to be a way to prevent this compiler from
12614 # explicitly linking system object files so we need to strip them
12615 # from the output so that they don't get included in the library
12617 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'
12619 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12622 # Archives containing C++ object files must be created using
12623 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12624 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12629 # version 8.0 and above of icpc choke on multiply defined symbols
12630 # if we add $predep_objects and $postdep_objects, however 7.1 and
12631 # earlier do not add the objects themselves.
12632 case `$CC -V 2>&1` in
12634 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12635 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'
12637 *) # Version 8.0 or newer
12640 ia64*) tmp_idyn=' -i_dynamic';;
12642 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12643 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'
12646 archive_cmds_need_lc_CXX=no
12647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12649 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12652 # Portland Group C++ compiler
12654 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12655 prelink_cmds_CXX='tpldir=Template.dir~
12657 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12658 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12659 old_archive_cmds_CXX='tpldir=Template.dir~
12661 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12662 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12664 archive_cmds_CXX='tpldir=Template.dir~
12666 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12667 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12668 archive_expsym_cmds_CXX='tpldir=Template.dir~
12670 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12671 $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'
12673 *) # Version 6 will use weak symbols
12674 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12675 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'
12679 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12681 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'
12685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12686 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'
12688 runpath_var=LD_RUN_PATH
12689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12690 hardcode_libdir_separator_CXX=:
12692 # Commands to make compiler produce verbose output that lists
12693 # what "hidden" libraries, object files and flags are used when
12694 # linking a shared library.
12696 # There doesn't appear to be a way to prevent this compiler from
12697 # explicitly linking system object files so we need to strip them
12698 # from the output so that they don't get included in the library
12700 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'
12703 # IBM XL 8.0 on PPC, with GNU ld
12704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12706 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12707 if test "x$supports_anon_versioning" = xyes; then
12708 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12710 echo "local: *; };" >> $output_objdir/$libname.ver~
12711 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12715 case `$CC -V 2>&1 | sed 5q` in
12718 no_undefined_flag_CXX=' -zdefs'
12719 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12720 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'
12721 hardcode_libdir_flag_spec_CXX='-R$libdir'
12722 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'
12723 compiler_needs_object_CXX=yes
12725 # Not sure whether something based on
12726 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12728 output_verbose_link_cmd='echo'
12730 # Archives containing C++ object files must be created using
12731 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12732 # necessary to make sure instantiated templates are included
12734 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12742 # FIXME: insert proper C++ library support
12747 # FIXME: insert proper C++ library support
12752 case $cc_basename in
12754 # FIXME: insert proper C++ library support
12758 # FIXME: insert proper C++ library support
12765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12766 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12768 hardcode_libdir_flag_spec_CXX='-R$libdir'
12769 hardcode_direct_CXX=yes
12770 hardcode_shlibpath_var_CXX=no
12772 # Workaround some broken pre-1.5 toolchains
12773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12781 # C++ shared libraries are fairly broken
12786 if test -f /usr/libexec/ld.so; then
12787 hardcode_direct_CXX=yes
12788 hardcode_shlibpath_var_CXX=no
12789 hardcode_direct_absolute_CXX=yes
12790 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12793 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12794 export_dynamic_flag_spec_CXX='${wl}-E'
12795 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12797 output_verbose_link_cmd=echo
12803 osf3* | osf4* | osf5*)
12804 case $cc_basename in
12806 # Kuck and Associates, Inc. (KAI) C++ Compiler
12808 # KCC will only create a shared library if the output file
12809 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12810 # to its proper name (with version) after linking.
12811 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'
12813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12814 hardcode_libdir_separator_CXX=:
12816 # Archives containing C++ object files must be created using
12817 # the KAI C++ compiler.
12819 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12820 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12824 # Rational C++ 2.4.1
12825 # FIXME: insert proper C++ library support
12831 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12832 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'
12833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12836 allow_undefined_flag_CXX=' -expect_unresolved \*'
12837 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'
12838 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12839 echo "-hidden">> $lib.exp~
12840 $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~
12842 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12846 hardcode_libdir_separator_CXX=:
12848 # Commands to make compiler produce verbose output that lists
12849 # what "hidden" libraries, object files and flags are used when
12850 # linking a shared library.
12852 # There doesn't appear to be a way to prevent this compiler from
12853 # explicitly linking system object files so we need to strip them
12854 # from the output so that they don't get included in the library
12856 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'
12859 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12860 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12863 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'
12866 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'
12870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12871 hardcode_libdir_separator_CXX=:
12873 # Commands to make compiler produce verbose output that lists
12874 # what "hidden" libraries, object files and flags are used when
12875 # linking a shared library.
12876 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12879 # FIXME: insert proper C++ library support
12887 # FIXME: insert proper C++ library support
12892 case $cc_basename in
12895 # FIXME: insert proper C++ library support
12900 # FIXME: insert proper C++ library support
12904 # FIXME: insert proper C++ library support
12911 case $cc_basename in
12913 # Sun C++ 4.2, 5.x and Centerline C++
12914 archive_cmds_need_lc_CXX=yes
12915 no_undefined_flag_CXX=' -zdefs'
12916 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12917 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12918 $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'
12920 hardcode_libdir_flag_spec_CXX='-R$libdir'
12921 hardcode_shlibpath_var_CXX=no
12923 solaris2.[0-5] | solaris2.[0-5].*) ;;
12925 # The compiler driver will combine and reorder linker options,
12926 # but understands `-z linker_flag'.
12927 # Supported since Solaris 2.6 (maybe 2.5.1?)
12928 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12931 link_all_deplibs_CXX=yes
12933 output_verbose_link_cmd='echo'
12935 # Archives containing C++ object files must be created using
12936 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12937 # necessary to make sure instantiated templates are included
12939 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12942 # Green Hills C++ Compiler
12943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12945 # The C++ compiler must be used to create the archive.
12946 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12949 # GNU C++ compiler with Solaris linker
12950 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12951 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12952 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12953 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12954 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12955 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12957 # Commands to make compiler produce verbose output that lists
12958 # what "hidden" libraries, object files and flags are used when
12959 # linking a shared library.
12960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12962 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12964 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12965 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12966 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12968 # Commands to make compiler produce verbose output that lists
12969 # what "hidden" libraries, object files and flags are used when
12970 # linking a shared library.
12971 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12974 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12976 solaris2.[0-5] | solaris2.[0-5].*) ;;
12978 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12987 no_undefined_flag_CXX='${wl}-z,text'
12988 archive_cmds_need_lc_CXX=no
12989 hardcode_shlibpath_var_CXX=no
12990 runpath_var='LD_RUN_PATH'
12992 case $cc_basename in
12994 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12995 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12998 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12999 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13004 sysv5* | sco3.2v5* | sco5v6*)
13005 # Note: We can NOT use -z defs as we might desire, because we do not
13006 # link with -lc, and that would cause any symbols used from libc to
13007 # always be unresolved, which means just about no library would
13008 # ever link correctly. If we're not using GNU ld we use -z text
13009 # though, which does catch some bad symbols but isn't as heavy-handed
13011 no_undefined_flag_CXX='${wl}-z,text'
13012 allow_undefined_flag_CXX='${wl}-z,nodefs'
13013 archive_cmds_need_lc_CXX=no
13014 hardcode_shlibpath_var_CXX=no
13015 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13016 hardcode_libdir_separator_CXX=':'
13017 link_all_deplibs_CXX=yes
13018 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13019 runpath_var='LD_RUN_PATH'
13021 case $cc_basename in
13023 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13024 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13027 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13028 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13034 case $cc_basename in
13036 # NonStop-UX NCC 3.20
13037 # FIXME: insert proper C++ library support
13041 # FIXME: insert proper C++ library support
13048 # FIXME: insert proper C++ library support
13053 # FIXME: insert proper C++ library support
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13059 $as_echo "$ld_shlibs_CXX" >&6; }
13060 test "$ld_shlibs_CXX" = no && can_build_shared=no
13066 ## There is no encapsulation within the following macros, do not change
13067 ## the running order or otherwise move them around unless you know exactly
13068 ## what you are doing...
13069 # Dependencies to place before and after the object being linked:
13070 predep_objects_CXX=
13071 postdep_objects_CXX=
13074 compiler_lib_search_path_CXX=
13076 cat > conftest.$ac_ext <<_LT_EOF
13080 Foo (void) { a = 0; }
13086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13087 (eval $ac_compile) 2>&5
13089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13090 test $ac_status = 0; }; then
13091 # Parse the compiler output and extract the necessary
13092 # objects, libraries and library flags.
13094 # Sentinel used to keep track of whether or not we are before
13095 # the conftest object file.
13096 pre_test_object_deps_done=no
13098 for p in `eval "$output_verbose_link_cmd"`; do
13102 # Some compilers place space between "-{L,R}" and the path.
13103 # Remove the space.
13104 if test $p = "-L" ||
13105 test $p = "-R"; then
13112 if test "$pre_test_object_deps_done" = no; then
13115 # Internal compiler library paths should come after those
13116 # provided the user. The postdeps already come after the
13117 # user supplied libs so there is no need to process them.
13118 if test -z "$compiler_lib_search_path_CXX"; then
13119 compiler_lib_search_path_CXX="${prev}${p}"
13121 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13124 # The "-l" case would never come before the object being
13125 # linked, so don't bother handling this case.
13128 if test -z "$postdeps_CXX"; then
13129 postdeps_CXX="${prev}${p}"
13131 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13137 # This assumes that the test object file only shows up
13138 # once in the compiler output.
13139 if test "$p" = "conftest.$objext"; then
13140 pre_test_object_deps_done=yes
13144 if test "$pre_test_object_deps_done" = no; then
13145 if test -z "$predep_objects_CXX"; then
13146 predep_objects_CXX="$p"
13148 predep_objects_CXX="$predep_objects_CXX $p"
13151 if test -z "$postdep_objects_CXX"; then
13152 postdep_objects_CXX="$p"
13154 postdep_objects_CXX="$postdep_objects_CXX $p"
13159 *) ;; # Ignore the rest.
13167 echo "libtool.m4: error: problem compiling CXX test program"
13170 $RM -f confest.$objext
13172 # PORTME: override above test on systems where it is broken
13175 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13176 # hack all around it, let's just trust "g++" to DTRT.
13177 predep_objects_CXX=
13178 postdep_objects_CXX=
13183 case `$CC -V 2>&1 | sed 5q` in
13187 # The more standards-conforming stlport4 library is
13188 # incompatible with the Cstd library. Avoid specifying
13189 # it if it's in CXXFLAGS. Ignore libCrun as
13190 # -library=stlport4 depends on it.
13191 case " $CXX $CXXFLAGS " in
13192 *" -library=stlport4 "*)
13193 solaris_use_stlport4=yes
13197 if test "$solaris_use_stlport4" != yes; then
13198 postdeps_CXX='-library=Cstd -library=Crun'
13205 case $cc_basename in
13207 # The more standards-conforming stlport4 library is
13208 # incompatible with the Cstd library. Avoid specifying
13209 # it if it's in CXXFLAGS. Ignore libCrun as
13210 # -library=stlport4 depends on it.
13211 case " $CXX $CXXFLAGS " in
13212 *" -library=stlport4 "*)
13213 solaris_use_stlport4=yes
13217 # Adding this requires a known-good setup of shared libraries for
13218 # Sun compiler versions before 5.6, else PIC objects from an old
13219 # archive will be linked into the output, leading to subtle bugs.
13220 if test "$solaris_use_stlport4" != yes; then
13221 postdeps_CXX='-library=Cstd -library=Crun'
13229 case " $postdeps_CXX " in
13230 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13232 compiler_lib_search_dirs_CXX=
13233 if test -n "${compiler_lib_search_path_CXX}"; then
13234 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13267 lt_prog_compiler_wl_CXX=
13268 lt_prog_compiler_pic_CXX=
13269 lt_prog_compiler_static_CXX=
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13272 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13274 # C++ specific cases for pic, static, wl, etc.
13275 if test "$GXX" = yes; then
13276 lt_prog_compiler_wl_CXX='-Wl,'
13277 lt_prog_compiler_static_CXX='-static'
13281 # All AIX code is PIC.
13282 if test "$host_cpu" = ia64; then
13283 # AIX 5 now supports IA64 processor
13284 lt_prog_compiler_static_CXX='-Bstatic'
13291 # see comment about AmigaOS4 .so support
13292 lt_prog_compiler_pic_CXX='-fPIC'
13295 # FIXME: we need at least 68020 code to build shared libraries, but
13296 # adding the `-m68020' flag to GCC prevents building anything better,
13298 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13304 # PIC is the default for these OSes.
13306 mingw* | cygwin* | os2* | pw32* | cegcc*)
13307 # This hack is so that the source file can tell whether it is being
13308 # built for inclusion in a dll (and should export symbols for example).
13309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13310 # (--disable-auto-import) libraries
13311 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13313 darwin* | rhapsody*)
13314 # PIC is the default on this platform
13315 # Common symbols not allowed in MH_DYLIB files
13316 lt_prog_compiler_pic_CXX='-fno-common'
13319 # DJGPP does not support shared libraries at all
13320 lt_prog_compiler_pic_CXX=
13323 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13324 # Instead, we relocate shared libraries at runtime.
13327 if test -d /usr/nec; then
13328 lt_prog_compiler_pic_CXX=-Kconform_pic
13332 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13333 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13334 # sets the default TLS model and affects inlining.
13339 lt_prog_compiler_pic_CXX='-fPIC'
13344 # QNX uses GNU C++, but need to define -shared option too, otherwise
13345 # it will coredump.
13346 lt_prog_compiler_pic_CXX='-fPIC -shared'
13349 lt_prog_compiler_pic_CXX='-fPIC'
13355 # All AIX code is PIC.
13356 if test "$host_cpu" = ia64; then
13357 # AIX 5 now supports IA64 processor
13358 lt_prog_compiler_static_CXX='-Bstatic'
13360 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13364 case $cc_basename in
13366 # Green Hills C++ Compiler
13367 # _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"
13372 case $cc_basename in
13374 lt_prog_compiler_pic_CXX='-KPIC'
13377 # Green Hills C++ Compiler
13378 lt_prog_compiler_pic_CXX='-pic'
13384 freebsd* | dragonfly*)
13385 # FreeBSD uses GNU C++
13387 hpux9* | hpux10* | hpux11*)
13388 case $cc_basename in
13390 lt_prog_compiler_wl_CXX='-Wl,'
13391 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13392 if test "$host_cpu" != ia64; then
13393 lt_prog_compiler_pic_CXX='+Z'
13397 lt_prog_compiler_wl_CXX='-Wl,'
13398 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13404 lt_prog_compiler_pic_CXX='+Z'
13413 # This is c89, which is MS Visual C++ (no shared libs)
13414 # Anyone wants to do a port?
13416 irix5* | irix6* | nonstopux*)
13417 case $cc_basename in
13419 lt_prog_compiler_wl_CXX='-Wl,'
13420 lt_prog_compiler_static_CXX='-non_shared'
13421 # CC pic flag -KPIC is the default.
13427 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13428 case $cc_basename in
13431 lt_prog_compiler_wl_CXX='--backend -Wl,'
13432 lt_prog_compiler_pic_CXX='-fPIC'
13435 # old Intel C++ for x86_64 which still supported -KPIC.
13436 lt_prog_compiler_wl_CXX='-Wl,'
13437 lt_prog_compiler_pic_CXX='-KPIC'
13438 lt_prog_compiler_static_CXX='-static'
13441 # Intel C++, used to be incompatible with GCC.
13442 # ICC 10 doesn't accept -KPIC any more.
13443 lt_prog_compiler_wl_CXX='-Wl,'
13444 lt_prog_compiler_pic_CXX='-fPIC'
13445 lt_prog_compiler_static_CXX='-static'
13448 # Portland Group C++ compiler
13449 lt_prog_compiler_wl_CXX='-Wl,'
13450 lt_prog_compiler_pic_CXX='-fpic'
13451 lt_prog_compiler_static_CXX='-Bstatic'
13455 # Make sure the PIC flag is empty. It appears that all Alpha
13456 # Linux and Compaq Tru64 Unix objects are PIC.
13457 lt_prog_compiler_pic_CXX=
13458 lt_prog_compiler_static_CXX='-non_shared'
13461 # IBM XL 8.0 on PPC
13462 lt_prog_compiler_wl_CXX='-Wl,'
13463 lt_prog_compiler_pic_CXX='-qpic'
13464 lt_prog_compiler_static_CXX='-qstaticlink'
13467 case `$CC -V 2>&1 | sed 5q` in
13470 lt_prog_compiler_pic_CXX='-KPIC'
13471 lt_prog_compiler_static_CXX='-Bstatic'
13472 lt_prog_compiler_wl_CXX='-Qoption ld '
13483 case $cc_basename in
13485 lt_prog_compiler_pic_CXX='-W c,exportall'
13491 netbsd* | netbsdelf*-gnu)
13494 # QNX uses GNU C++, but need to define -shared option too, otherwise
13495 # it will coredump.
13496 lt_prog_compiler_pic_CXX='-fPIC -shared'
13498 osf3* | osf4* | osf5*)
13499 case $cc_basename in
13501 lt_prog_compiler_wl_CXX='--backend -Wl,'
13504 # Rational C++ 2.4.1
13505 lt_prog_compiler_pic_CXX='-pic'
13508 # Digital/Compaq C++
13509 lt_prog_compiler_wl_CXX='-Wl,'
13510 # Make sure the PIC flag is empty. It appears that all Alpha
13511 # Linux and Compaq Tru64 Unix objects are PIC.
13512 lt_prog_compiler_pic_CXX=
13513 lt_prog_compiler_static_CXX='-non_shared'
13522 case $cc_basename in
13524 # Sun C++ 4.2, 5.x and Centerline C++
13525 lt_prog_compiler_pic_CXX='-KPIC'
13526 lt_prog_compiler_static_CXX='-Bstatic'
13527 lt_prog_compiler_wl_CXX='-Qoption ld '
13530 # Green Hills C++ Compiler
13531 lt_prog_compiler_pic_CXX='-PIC'
13538 case $cc_basename in
13541 lt_prog_compiler_pic_CXX='-pic'
13542 lt_prog_compiler_static_CXX='-Bstatic'
13546 lt_prog_compiler_pic_CXX='-pic'
13552 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13553 case $cc_basename in
13555 lt_prog_compiler_wl_CXX='-Wl,'
13556 lt_prog_compiler_pic_CXX='-KPIC'
13557 lt_prog_compiler_static_CXX='-Bstatic'
13562 case $cc_basename in
13564 # NonStop-UX NCC 3.20
13565 lt_prog_compiler_pic_CXX='-KPIC'
13574 lt_prog_compiler_can_build_shared_CXX=no
13580 # For platforms which do not support PIC, -DPIC is meaningless:
13582 lt_prog_compiler_pic_CXX=
13585 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13589 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13594 # Check to make sure the PIC flag actually works.
13596 if test -n "$lt_prog_compiler_pic_CXX"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13598 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13599 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13600 $as_echo_n "(cached) " >&6
13602 lt_cv_prog_compiler_pic_works_CXX=no
13603 ac_outfile=conftest.$ac_objext
13604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13605 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13606 # Insert the option either (1) after the last *FLAGS variable, or
13607 # (2) before a word containing "conftest.", or (3) at the end.
13608 # Note that $ac_compile itself does not contain backslashes and begins
13609 # with a dollar sign (not a hyphen), so the echo should work correctly.
13610 # The option is referenced via a variable to avoid confusing sed.
13611 lt_compile=`echo "$ac_compile" | $SED \
13612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13614 -e 's:$: $lt_compiler_flag:'`
13615 (eval echo "\"\$as_me:13615: $lt_compile\"" >&5)
13616 (eval "$lt_compile" 2>conftest.err)
13618 cat conftest.err >&5
13619 echo "$as_me:13619: \$? = $ac_status" >&5
13620 if (exit $ac_status) && test -s "$ac_outfile"; then
13621 # The compiler can only warn and ignore the option if not recognized
13622 # So say no if there are warnings other than the usual output.
13623 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13626 lt_cv_prog_compiler_pic_works_CXX=yes
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13633 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13635 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13636 case $lt_prog_compiler_pic_CXX in
13638 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13641 lt_prog_compiler_pic_CXX=
13642 lt_prog_compiler_can_build_shared_CXX=no
13650 # Check to make sure the static flag actually works.
13652 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13654 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13655 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13656 $as_echo_n "(cached) " >&6
13658 lt_cv_prog_compiler_static_works_CXX=no
13659 save_LDFLAGS="$LDFLAGS"
13660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13661 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13663 # The linker can only warn and ignore the option if not recognized
13664 # So say no if there are warnings
13665 if test -s conftest.err; then
13666 # Append any errors to the config.log.
13667 cat conftest.err 1>&5
13668 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13670 if diff conftest.exp conftest.er2 >/dev/null; then
13671 lt_cv_prog_compiler_static_works_CXX=yes
13674 lt_cv_prog_compiler_static_works_CXX=yes
13678 LDFLAGS="$save_LDFLAGS"
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13682 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13684 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13687 lt_prog_compiler_static_CXX=
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13695 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13696 $as_echo_n "(cached) " >&6
13698 lt_cv_prog_compiler_c_o_CXX=no
13699 $RM -r conftest 2>/dev/null
13703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13705 lt_compiler_flag="-o out/conftest2.$ac_objext"
13706 # Insert the option either (1) after the last *FLAGS variable, or
13707 # (2) before a word containing "conftest.", or (3) at the end.
13708 # Note that $ac_compile itself does not contain backslashes and begins
13709 # with a dollar sign (not a hyphen), so the echo should work correctly.
13710 lt_compile=`echo "$ac_compile" | $SED \
13711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13713 -e 's:$: $lt_compiler_flag:'`
13714 (eval echo "\"\$as_me:13714: $lt_compile\"" >&5)
13715 (eval "$lt_compile" 2>out/conftest.err)
13717 cat out/conftest.err >&5
13718 echo "$as_me:13718: \$? = $ac_status" >&5
13719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13721 # The compiler can only warn and ignore the option if not recognized
13722 # So say no if there are warnings
13723 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13726 lt_cv_prog_compiler_c_o_CXX=yes
13731 # SGI C++ compiler will create directory out/ii_files/ for
13732 # template instantiation
13733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13734 $RM out/* && rmdir out
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13741 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13747 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13748 $as_echo_n "(cached) " >&6
13750 lt_cv_prog_compiler_c_o_CXX=no
13751 $RM -r conftest 2>/dev/null
13755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13757 lt_compiler_flag="-o out/conftest2.$ac_objext"
13758 # Insert the option either (1) after the last *FLAGS variable, or
13759 # (2) before a word containing "conftest.", or (3) at the end.
13760 # Note that $ac_compile itself does not contain backslashes and begins
13761 # with a dollar sign (not a hyphen), so the echo should work correctly.
13762 lt_compile=`echo "$ac_compile" | $SED \
13763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13765 -e 's:$: $lt_compiler_flag:'`
13766 (eval echo "\"\$as_me:13766: $lt_compile\"" >&5)
13767 (eval "$lt_compile" 2>out/conftest.err)
13769 cat out/conftest.err >&5
13770 echo "$as_me:13770: \$? = $ac_status" >&5
13771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13773 # The compiler can only warn and ignore the option if not recognized
13774 # So say no if there are warnings
13775 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13778 lt_cv_prog_compiler_c_o_CXX=yes
13783 # SGI C++ compiler will create directory out/ii_files/ for
13784 # template instantiation
13785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13786 $RM out/* && rmdir out
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13793 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13798 hard_links="nottested"
13799 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13800 # do not overwrite the value of need_locks provided by the user
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13802 $as_echo_n "checking if we can lock with hard links... " >&6; }
13805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13807 ln conftest.a conftest.b 2>&5 || hard_links=no
13808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13810 $as_echo "$hard_links" >&6; }
13811 if test "$hard_links" = no; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13813 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13823 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13828 # If we're using GNU nm, then we don't want the "-C" option.
13829 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13830 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13831 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'
13833 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'
13837 export_symbols_cmds_CXX="$ltdll_cmds"
13839 cygwin* | mingw* | cegcc*)
13840 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'
13842 linux* | k*bsd*-gnu)
13843 link_all_deplibs_CXX=no
13846 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13849 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13852 $as_echo "$ld_shlibs_CXX" >&6; }
13853 test "$ld_shlibs_CXX" = no && can_build_shared=no
13855 with_gnu_ld_CXX=$with_gnu_ld
13863 # Do we need to explicitly link libc?
13865 case "x$archive_cmds_need_lc_CXX" in
13867 # Assume -lc should be added
13868 archive_cmds_need_lc_CXX=yes
13870 if test "$enable_shared" = yes && test "$GCC" = yes; then
13871 case $archive_cmds_CXX in
13873 # FIXME: we may have to deal with multi-command sequences.
13876 # Test whether the compiler implicitly links with -lc since on some
13877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13878 # to ld, don't add -lc before -lgcc.
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13880 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13885 (eval $ac_compile) 2>&5
13887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13888 test $ac_status = 0; } 2>conftest.err; then
13891 libobjs=conftest.$ac_objext
13893 wl=$lt_prog_compiler_wl_CXX
13894 pic_flag=$lt_prog_compiler_pic_CXX
13900 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13901 allow_undefined_flag_CXX=
13902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13903 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13906 test $ac_status = 0; }
13908 archive_cmds_need_lc_CXX=no
13910 archive_cmds_need_lc_CXX=yes
13912 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13914 cat conftest.err 1>&5
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13918 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13989 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13991 library_names_spec=
13992 libname_spec='lib$name'
13996 postuninstall_cmds=
14000 shlibpath_overrides_runpath=unknown
14002 dynamic_linker="$host_os ld.so"
14003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14004 need_lib_prefix=unknown
14005 hardcode_into_libs=no
14007 # when you set need_version to no, make sure it does not cause -set_version
14008 # flags to be left without arguments
14009 need_version=unknown
14014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14015 shlibpath_var=LIBPATH
14017 # AIX 3 has no versioning support, so we append a major version to the name.
14018 soname_spec='${libname}${release}${shared_ext}$major'
14025 hardcode_into_libs=yes
14026 if test "$host_cpu" = ia64; then
14027 # AIX 5 supports IA64
14028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14029 shlibpath_var=LD_LIBRARY_PATH
14031 # With GCC up to 2.95.x, collect2 would create an import file
14032 # for dependence libraries. The import file would start with
14033 # the line `#! .'. This would cause the generated library to
14034 # depend on `.', always an invalid library. This was fixed in
14035 # development snapshots of GCC prior to 3.0.
14037 aix4 | aix4.[01] | aix4.[01].*)
14038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14040 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14043 can_build_shared=no
14047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14048 # soname into executable. Probably we can add versioning support to
14049 # collect2, so additional links can be useful in future.
14050 if test "$aix_use_runtimelinking" = yes; then
14051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14052 # instead of lib<name>.a to let people know that these are not
14053 # typical AIX shared libraries.
14054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14056 # We preserve .a as extension for shared libraries through AIX4.2
14057 # and later when we are not doing run time linking.
14058 library_names_spec='${libname}${release}.a $libname.a'
14059 soname_spec='${libname}${release}${shared_ext}$major'
14061 shlibpath_var=LIBPATH
14068 # Since July 2007 AmigaOS4 officially supports .so libraries.
14069 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 library_names_spec='$libname.ixlibrary $libname.a'
14074 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14075 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'
14081 library_names_spec='${libname}${shared_ext}'
14082 dynamic_linker="$host_os ld.so"
14083 shlibpath_var=LIBRARY_PATH
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090 soname_spec='${libname}${release}${shared_ext}$major'
14091 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14094 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14095 # the default ld.so.conf also contains /usr/contrib/lib and
14096 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14097 # libtool to hard-code these into programs
14100 cygwin* | mingw* | pw32* | cegcc*)
14101 version_type=windows
14106 case $GCC,$host_os in
14107 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14108 library_names_spec='$libname.dll.a'
14109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14110 postinstall_cmds='base_file=`basename \${file}`~
14111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14112 dldir=$destdir/`dirname \$dlpath`~
14113 test -d \$dldir || mkdir -p \$dldir~
14114 $install_prog $dir/$dlname \$dldir/$dlname~
14115 chmod a+x \$dldir/$dlname~
14116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14117 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14120 dlpath=$dir/\$dldll~
14122 shlibpath_overrides_runpath=yes
14126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14131 # MinGW DLLs use traditional 'lib' prefix
14132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14133 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14134 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14135 # It is most probably a Windows format PATH printed by
14136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14137 # path with ; separators, and with drive letters. We can handle the
14138 # drive letters (cygwin fileutils understands them), so leave them,
14139 # especially as we might pass files found there to a mingw objdump,
14140 # which wouldn't understand a cygwinified path. Ahh.
14141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14147 # pw32 DLLs use 'pw' prefix rather than 'lib'
14148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14157 dynamic_linker='Win32 ld.exe'
14158 # FIXME: first we should search . and the directory the executable is in
14162 darwin* | rhapsody*)
14163 dynamic_linker="$host_os dyld"
14164 version_type=darwin
14167 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14168 soname_spec='${libname}${release}${major}$shared_ext'
14169 shlibpath_overrides_runpath=yes
14170 shlibpath_var=DYLD_LIBRARY_PATH
14171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 shlibpath_var=LD_LIBRARY_PATH
14189 freebsd* | dragonfly*)
14190 # DragonFly does not have aout. When/if they implement a new
14191 # versioning mechanism, adjust this.
14192 if test -x /usr/bin/objformat; then
14193 objformat=`/usr/bin/objformat`
14196 freebsd[123]*) objformat=aout ;;
14197 *) objformat=elf ;;
14200 version_type=freebsd-$objformat
14201 case $version_type in
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14212 shlibpath_var=LD_LIBRARY_PATH
14215 shlibpath_overrides_runpath=yes
14217 freebsd3.[01]* | freebsdelf3.[01]*)
14218 shlibpath_overrides_runpath=yes
14219 hardcode_into_libs=yes
14221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14223 shlibpath_overrides_runpath=no
14224 hardcode_into_libs=yes
14226 *) # from 4.6 on, and DragonFly
14227 shlibpath_overrides_runpath=yes
14228 hardcode_into_libs=yes
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 shlibpath_var=LD_LIBRARY_PATH
14240 hardcode_into_libs=yes
14243 hpux9* | hpux10* | hpux11*)
14244 # Give a soname corresponding to the major version so that dld.sl refuses to
14245 # link against other versions.
14252 hardcode_into_libs=yes
14253 dynamic_linker="$host_os dld.so"
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 if test "X$HPUX_IA64_MODE" = X32; then
14259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14267 hardcode_into_libs=yes
14268 dynamic_linker="$host_os dld.sl"
14269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14278 dynamic_linker="$host_os dld.sl"
14279 shlibpath_var=SHLIB_PATH
14280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
14285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14286 postinstall_cmds='chmod 555 $lib'
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=no
14298 hardcode_into_libs=yes
14301 irix5* | irix6* | nonstopux*)
14303 nonstopux*) version_type=nonstopux ;;
14305 if test "$lt_cv_prog_gnu_ld" = yes; then
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14316 irix5* | nonstopux*)
14317 libsuff= shlibsuff=
14320 case $LD in # libtool.m4 will add one of these switches to LD
14321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14322 libsuff= shlibsuff= libmagic=32-bit;;
14323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14324 libsuff=32 shlibsuff=N32 libmagic=N32;;
14325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14326 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14327 *) libsuff= shlibsuff= libmagic=never-match;;
14331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14332 shlibpath_overrides_runpath=no
14333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14335 hardcode_into_libs=yes
14338 # No shared lib support for Linux oldld, aout, or coff.
14339 linux*oldld* | linux*aout* | linux*coff*)
14343 # This must be Linux ELF.
14344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 shlibpath_overrides_runpath=no
14353 # Some binutils ld are patched to set DT_RUNPATH
14354 save_LDFLAGS=$LDFLAGS
14355 save_libdir=$libdir
14356 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14357 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14369 if ac_fn_cxx_try_link "$LINENO"; then :
14370 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14371 shlibpath_overrides_runpath=yes
14374 rm -f core conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14376 LDFLAGS=$save_LDFLAGS
14377 libdir=$save_libdir
14379 # This implies no fast_install, which is unacceptable.
14380 # Some rework will be needed to allow for fast_install
14381 # before this can be enabled.
14382 hardcode_into_libs=yes
14384 # Append ld.so.conf contents to the search path
14385 if test -f /etc/ld.so.conf; then
14386 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' ' '`
14387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14390 # We used to test for /lib/ld.so.1 and disable shared libraries on
14391 # powerpc, because MkLinux only supported shared libraries with the
14392 # GNU dynamic linker. Since this was broken with cross compilers,
14393 # most powerpc-linux boxes support dynamic linking these days and
14394 # people can always --disable-shared, the test was removed, and we
14395 # assume the GNU/Linux dynamic linker is in use.
14396 dynamic_linker='GNU/Linux ld.so'
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=no
14407 hardcode_into_libs=yes
14408 dynamic_linker='NetBSD ld.elf_so'
14415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14418 dynamic_linker='NetBSD (a.out) ld.so'
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 dynamic_linker='NetBSD ld.elf_so'
14424 shlibpath_var=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath=yes
14426 hardcode_into_libs=yes
14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=yes
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=no
14444 hardcode_into_libs=yes
14445 dynamic_linker='ldqnx.so'
14450 sys_lib_dlsearch_path_spec="/usr/lib"
14452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14454 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14455 *) need_version=no ;;
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14462 openbsd2.[89] | openbsd2.[89].*)
14463 shlibpath_overrides_runpath=no
14466 shlibpath_overrides_runpath=yes
14470 shlibpath_overrides_runpath=yes
14475 libname_spec='$name'
14478 library_names_spec='$libname${shared_ext} $libname.a'
14479 dynamic_linker='OS/2 ld.exe'
14480 shlibpath_var=LIBPATH
14483 osf3* | osf4* | osf5*)
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=yes
14506 hardcode_into_libs=yes
14507 # ldd complains unless libraries are executable
14508 postinstall_cmds='chmod +x $lib'
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14514 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14515 shlibpath_var=LD_LIBRARY_PATH
14516 shlibpath_overrides_runpath=yes
14517 if test "$with_gnu_ld" = yes; then
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 soname_spec='${libname}${release}${shared_ext}$major'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 case $host_vendor in
14530 shlibpath_overrides_runpath=no
14532 runpath_var=LD_RUN_PATH
14540 shlibpath_overrides_runpath=no
14541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14547 if test -d /usr/nec ;then
14549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14550 soname_spec='$libname${shared_ext}.$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14556 version_type=freebsd-elf
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=yes
14563 hardcode_into_libs=yes
14564 if test "$with_gnu_ld" = yes; then
14565 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14567 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14574 sys_lib_dlsearch_path_spec='/usr/lib'
14578 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath=no
14585 hardcode_into_libs=yes
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 shlibpath_var=LD_LIBRARY_PATH
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14600 $as_echo "$dynamic_linker" >&6; }
14601 test "$dynamic_linker" = no && can_build_shared=no
14603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14604 if test "$GCC" = yes; then
14605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14608 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14609 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14611 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14612 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14651 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14652 hardcode_action_CXX=
14653 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14654 test -n "$runpath_var_CXX" ||
14655 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14657 # We can hardcode non-existent directories.
14658 if test "$hardcode_direct_CXX" != no &&
14659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14660 # have to relink, otherwise we might link with an installed library
14661 # when we should be linking with a yet-to-be-installed one
14662 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14663 test "$hardcode_minus_L_CXX" != no; then
14664 # Linking always hardcodes the temporary library directory.
14665 hardcode_action_CXX=relink
14667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14668 hardcode_action_CXX=immediate
14671 # We cannot hardcode anything, or else we can only hardcode existing
14673 hardcode_action_CXX=unsupported
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14676 $as_echo "$hardcode_action_CXX" >&6; }
14678 if test "$hardcode_action_CXX" = relink ||
14679 test "$inherit_rpath_CXX" = yes; then
14680 # Fast installation is not supported
14681 enable_fast_install=no
14682 elif test "$shlibpath_overrides_runpath" = yes ||
14683 test "$enable_shared" = no; then
14684 # Fast installation is not necessary
14685 enable_fast_install=needless
14694 fi # test -n "$compiler"
14700 with_gnu_ld=$lt_save_with_gnu_ld
14701 lt_cv_path_LDCXX=$lt_cv_path_LD
14702 lt_cv_path_LD=$lt_save_path_LD
14703 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14704 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14705 fi # test "$_lt_caught_CXX_error" != yes
14708 ac_cpp='$CXXCPP $CPPFLAGS'
14709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14725 ac_config_commands="$ac_config_commands libtool"
14730 # Only expand once:
14735 # Check whether some low-level functions/files are available
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14738 $as_echo_n "checking for ANSI C header files... " >&6; }
14739 if ${ac_cv_header_stdc+:} false; then :
14740 $as_echo_n "(cached) " >&6
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14744 #include <stdlib.h>
14745 #include <stdarg.h>
14746 #include <string.h>
14757 if ac_fn_cxx_try_compile "$LINENO"; then :
14758 ac_cv_header_stdc=yes
14760 ac_cv_header_stdc=no
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 if test $ac_cv_header_stdc = yes; then
14765 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 #include <string.h>
14771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14772 $EGREP "memchr" >/dev/null 2>&1; then :
14775 ac_cv_header_stdc=no
14781 if test $ac_cv_header_stdc = yes; then
14782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 #include <stdlib.h>
14788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14789 $EGREP "free" >/dev/null 2>&1; then :
14792 ac_cv_header_stdc=no
14798 if test $ac_cv_header_stdc = yes; then
14799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14800 if test "$cross_compiling" = yes; then :
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14806 #include <stdlib.h>
14807 #if ((' ' & 0x0FF) == 0x020)
14808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14811 # define ISLOWER(c) \
14812 (('a' <= (c) && (c) <= 'i') \
14813 || ('j' <= (c) && (c) <= 'r') \
14814 || ('s' <= (c) && (c) <= 'z'))
14815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14823 for (i = 0; i < 256; i++)
14824 if (XOR (islower (i), ISLOWER (i))
14825 || toupper (i) != TOUPPER (i))
14830 if ac_fn_cxx_try_run "$LINENO"; then :
14833 ac_cv_header_stdc=no
14835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14836 conftest.$ac_objext conftest.beam conftest.$ac_ext
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14842 $as_echo "$ac_cv_header_stdc" >&6; }
14843 if test $ac_cv_header_stdc = yes; then
14845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14850 # These are tested for by AC_HEADER_STDC, but I check again to set the var
14851 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14852 if test "x$ac_cv_header_stdint_h" = xyes; then :
14853 ac_cv_have_stdint_h=1
14855 ac_cv_have_stdint_h=0
14859 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14860 if test "x$ac_cv_header_sys_types_h" = xyes; then :
14861 ac_cv_have_systypes_h=1
14863 ac_cv_have_systypes_h=0
14867 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14868 if test "x$ac_cv_header_inttypes_h" = xyes; then :
14869 ac_cv_have_inttypes_h=1
14871 ac_cv_have_inttypes_h=0
14875 for ac_header in unistd.h
14877 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14878 if test "x$ac_cv_header_unistd_h" = xyes; then :
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_UNISTD_H 1
14882 ac_cv_have_unistd_h=1
14884 ac_cv_have_unistd_h=0
14889 for ac_header in syscall.h
14891 ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
14892 if test "x$ac_cv_header_syscall_h" = xyes; then :
14893 cat >>confdefs.h <<_ACEOF
14894 #define HAVE_SYSCALL_H 1
14901 for ac_header in sys/syscall.h
14903 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
14904 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
14905 cat >>confdefs.h <<_ACEOF
14906 #define HAVE_SYS_SYSCALL_H 1
14913 # For backtrace with glibc.
14914 for ac_header in execinfo.h
14916 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
14917 if test "x$ac_cv_header_execinfo_h" = xyes; then :
14918 cat >>confdefs.h <<_ACEOF
14919 #define HAVE_EXECINFO_H 1
14926 # For backtrace with libunwind.
14927 for ac_header in libunwind.h
14929 ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
14930 if test "x$ac_cv_header_libunwind_h" = xyes; then :
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_LIBUNWIND_H 1
14934 ac_cv_have_libunwind_h=1
14936 ac_cv_have_libunwind_h=0
14941 for ac_header in ucontext.h
14943 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
14944 if test "x$ac_cv_header_ucontext_h" = xyes; then :
14945 cat >>confdefs.h <<_ACEOF
14946 #define HAVE_UCONTEXT_H 1
14953 for ac_header in sys/utsname.h
14955 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
14956 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
14957 cat >>confdefs.h <<_ACEOF
14958 #define HAVE_SYS_UTSNAME_H 1
14965 for ac_header in pwd.h
14967 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14968 if test "x$ac_cv_header_pwd_h" = xyes; then :
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_PWD_H 1
14977 for ac_header in syslog.h
14979 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14980 if test "x$ac_cv_header_syslog_h" = xyes; then :
14981 cat >>confdefs.h <<_ACEOF
14982 #define HAVE_SYSLOG_H 1
14989 for ac_header in sys/time.h
14991 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14992 if test "x$ac_cv_header_sys_time_h" = xyes; then :
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_SYS_TIME_H 1
15001 for ac_header in glob.h
15003 ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15004 if test "x$ac_cv_header_glob_h" = xyes; then :
15005 cat >>confdefs.h <<_ACEOF
15006 #define HAVE_GLOB_H 1
15013 # For backtrace with gcc.
15014 for ac_header in unwind.h
15016 ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15017 if test "x$ac_cv_header_unwind_h" = xyes; then :
15018 cat >>confdefs.h <<_ACEOF
15019 #define HAVE_UNWIND_H 1
15027 # The cast to long int works around a bug in the HP C Compiler
15028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15030 # This bug is HP SR number 8606223364.
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15032 $as_echo_n "checking size of void *... " >&6; }
15033 if ${ac_cv_sizeof_void_p+:} false; then :
15034 $as_echo_n "(cached) " >&6
15036 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15039 if test "$ac_cv_type_void_p" = yes; then
15040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15042 as_fn_error 77 "cannot compute sizeof (void *)
15043 See \`config.log' for more details" "$LINENO" 5; }
15045 ac_cv_sizeof_void_p=0
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15051 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15055 cat >>confdefs.h <<_ACEOF
15056 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15061 # These are the types I need. We look for them in either stdint.h,
15062 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15063 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15064 if test "x$ac_cv_type_uint16_t" = xyes; then :
15065 ac_cv_have_uint16_t=1
15067 ac_cv_have_uint16_t=0
15070 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15071 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15072 ac_cv_have_u_int16_t=1
15074 ac_cv_have_u_int16_t=0
15077 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15078 if test "x$ac_cv_type___uint16" = xyes; then :
15079 ac_cv_have___uint16=1
15081 ac_cv_have___uint16=0
15085 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15086 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15088 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15092 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15093 if test "x$ac_cv_func_dladdr" = xyes; then :
15095 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15099 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15100 if test "x$ac_cv_func_fcntl" = xyes; then :
15102 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15109 $as_echo_n "checking for __attribute__... " >&6; }
15110 if ${ac_cv___attribute__+:} false; then :
15111 $as_echo_n "(cached) " >&6
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 #include <stdlib.h>
15117 static void foo(void) __attribute__ ((unused));
15118 void foo(void) { exit(1); }
15127 if ac_fn_cxx_try_compile "$LINENO"; then :
15128 ac_cv___attribute__=yes
15130 ac_cv___attribute__=no
15133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136 if test "$ac_cv___attribute__" = "yes"; then
15138 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15142 $as_echo "$ac_cv___attribute__" >&6; }
15144 # We only care about these two attributes.
15145 if test x"$ac_cv___attribute__" = x"yes"; then
15146 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15147 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15149 ac_cv___attribute___noreturn=
15150 ac_cv___attribute___printf_4_5=
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15155 $as_echo_n "checking for __builtin_expect... " >&6; }
15156 if ${ac_cv___builtin_expect+:} false; then :
15157 $as_echo_n "(cached) " >&6
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15171 if ac_fn_cxx_try_compile "$LINENO"; then :
15172 ac_cv___builtin_expect=yes
15174 ac_cv___builtin_expect=no
15177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 if test "$ac_cv___builtin_expect" = "yes"; then
15182 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15186 $as_echo "$ac_cv___builtin_expect" >&6; }
15188 if test x"$ac_cv___builtin_expect" = x"yes"; then
15189 ac_cv_have___builtin_expect=1
15191 ac_cv_have___builtin_expect=0
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15196 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15197 if ${ac_cv___sync_val_compare_and_swap+:} false; then :
15198 $as_echo_n "(cached) " >&6
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15207 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15212 if ac_fn_cxx_try_link "$LINENO"; then :
15213 ac_cv___sync_val_compare_and_swap=yes
15215 ac_cv___sync_val_compare_and_swap=no
15218 rm -f core conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
15222 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15224 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15228 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15231 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15232 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15233 # Check whether --enable-frame_pointers was given.
15234 if test "${enable_frame_pointers+set}" = set; then :
15235 enableval=$enable_frame_pointers;
15237 enable_frame_pointers=no
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15246 return __x86_64__ == 1 ? 0 : 1
15251 if ac_fn_cxx_try_compile "$LINENO"; then :
15256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15257 if test "$enable_frame_pointers" = yes; then
15258 ENABLE_FRAME_POINTERS_TRUE=
15259 ENABLE_FRAME_POINTERS_FALSE='#'
15261 ENABLE_FRAME_POINTERS_TRUE='#'
15262 ENABLE_FRAME_POINTERS_FALSE=
15265 if test "$is_x86_64" = yes; then
15274 # Check whether --enable-rtti was given.
15275 if test "${enable_rtti+set}" = set; then :
15276 enableval=$enable_rtti;
15279 if test x"$enable_rtti" = x"no"; then
15281 DISABLE_RTTI_FALSE='#'
15283 DISABLE_RTTI_TRUE='#'
15284 DISABLE_RTTI_FALSE=
15287 if test x"$enable_rtti" = x"no"; then
15289 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
15293 # Some of the code in this directory depends on pthreads
15298 ac_cpp='$CPP $CPPFLAGS'
15299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15305 # We used to check for pthread.h first, but this fails if pthread.h
15306 # requires special compiler flags (e.g. on True64 or Sequent).
15307 # It gets checked for in the link test anyway.
15309 # First of all, check if the user has set any of the PTHREAD_LIBS,
15310 # etcetera environment variables, and if threads linking works using
15312 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15313 save_CFLAGS="$CFLAGS"
15314 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15316 LIBS="$PTHREAD_LIBS $LIBS"
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15318 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15328 char pthread_join ();
15332 return pthread_join ();
15337 if ac_fn_c_try_link "$LINENO"; then :
15340 rm -f core conftest.err conftest.$ac_objext \
15341 conftest$ac_exeext conftest.$ac_ext
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15343 $as_echo "$acx_pthread_ok" >&6; }
15344 if test x"$acx_pthread_ok" = xno; then
15349 CFLAGS="$save_CFLAGS"
15352 # We must check for the threads library under a number of different
15353 # names; the ordering is very important because some systems
15354 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15355 # libraries is broken (non-POSIX).
15357 # Create a list of thread flags to try. Items starting with a "-" are
15358 # C compiler flags, and other items are library names, except for "none"
15359 # which indicates that we try without any flags at all, and "pthread-config"
15360 # which is a program returning the flags for the Pth emulation library.
15362 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15364 # The ordering *is* (sometimes) important. Some notes on the
15365 # individual items follow:
15367 # pthreads: AIX (must check this before -lpthread)
15368 # none: in case threads are in libc; should be tried before -Kthread and
15369 # other compiler flags to prevent continual compiler warnings
15370 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15371 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15372 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15373 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15374 # -pthreads: Solaris/gcc
15375 # -mthreads: Mingw32/gcc, Lynx/gcc
15376 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15377 # doesn't hurt to check since this sometimes defines pthreads too;
15378 # also defines -D_REENTRANT)
15379 # ... -mt is also the pthreads flag for HP/aCC
15380 # pthread: Linux, etcetera
15381 # --thread-safe: KAI C++
15382 # pthread-config: use pthread-config program (for GNU Pth library)
15384 case "${host_cpu}-${host_os}" in
15387 # On Solaris (at least, for some versions), libc contains stubbed
15388 # (non-functional) versions of the pthreads routines, so link-based
15389 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15390 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15391 # a function called by this macro, so we could check for that, but
15392 # who knows whether they'll stub that too in a future libc.) So,
15393 # we'll just look for -pthreads and -lpthread first:
15395 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15399 if test x"$acx_pthread_ok" = xno; then
15400 for flag in $acx_pthread_flags; do
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15405 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15410 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15411 PTHREAD_CFLAGS="$flag"
15415 # Extract the first word of "pthread-config", so it can be a program name with args.
15416 set dummy pthread-config; ac_word=$2
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15418 $as_echo_n "checking for $ac_word... " >&6; }
15419 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15420 $as_echo_n "(cached) " >&6
15422 if test -n "$acx_pthread_config"; then
15423 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426 for as_dir in $PATH
15429 test -z "$as_dir" && as_dir=.
15430 for ac_exec_ext in '' $ac_executable_extensions; do
15431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15432 ac_cv_prog_acx_pthread_config="yes"
15433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15440 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15443 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15444 if test -n "$acx_pthread_config"; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15446 $as_echo "$acx_pthread_config" >&6; }
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449 $as_echo "no" >&6; }
15453 if test x"$acx_pthread_config" = xno; then continue; fi
15454 PTHREAD_CFLAGS="`pthread-config --cflags`"
15455 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15460 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15461 PTHREAD_LIBS="-l$flag"
15466 save_CFLAGS="$CFLAGS"
15467 LIBS="$PTHREAD_LIBS $LIBS"
15468 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15470 # Check for various functions. We must include pthread.h,
15471 # since some functions may be macros. (On the Sequent, we
15472 # need a special flag -Kthread to make this header compile.)
15473 # We check for pthread_join because it is in -lpthread on IRIX
15474 # while pthread_create is in libc. We check for pthread_attr_init
15475 # due to DEC craziness with -lpthreads. We check for
15476 # pthread_cleanup_push because it is one of the few pthread
15477 # functions on Solaris that doesn't have a non-functional libc stub.
15478 # We try pthread_create on general principles.
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h. */
15481 #include <pthread.h>
15485 pthread_t th; pthread_join(th, 0);
15486 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15487 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15492 if ac_fn_c_try_link "$LINENO"; then :
15495 rm -f core conftest.err conftest.$ac_objext \
15496 conftest$ac_exeext conftest.$ac_ext
15499 CFLAGS="$save_CFLAGS"
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15502 $as_echo "$acx_pthread_ok" >&6; }
15503 if test "x$acx_pthread_ok" = xyes; then
15512 # Various other checks:
15513 if test "x$acx_pthread_ok" = xyes; then
15515 LIBS="$PTHREAD_LIBS $LIBS"
15516 save_CFLAGS="$CFLAGS"
15517 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15519 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15521 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15523 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #include <pthread.h>
15530 int attr=$attr; return attr;
15535 if ac_fn_c_try_link "$LINENO"; then :
15536 attr_name=$attr; break
15538 rm -f core conftest.err conftest.$ac_objext \
15539 conftest$ac_exeext conftest.$ac_ext
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15542 $as_echo "$attr_name" >&6; }
15543 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15545 cat >>confdefs.h <<_ACEOF
15546 #define PTHREAD_CREATE_JOINABLE $attr_name
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15552 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15554 case "${host_cpu}-${host_os}" in
15555 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15556 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15559 $as_echo "${flag}" >&6; }
15560 if test "x$flag" != xno; then
15561 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15565 CFLAGS="$save_CFLAGS"
15566 # More AIX lossage: must compile with xlc_r or cc_r
15567 if test x"$GCC" != xyes; then
15568 for ac_prog in xlc_r cc_r
15570 # Extract the first word of "$ac_prog", so it can be a program name with args.
15571 set dummy $ac_prog; ac_word=$2
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15573 $as_echo_n "checking for $ac_word... " >&6; }
15574 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15575 $as_echo_n "(cached) " >&6
15577 if test -n "$PTHREAD_CC"; then
15578 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15581 for as_dir in $PATH
15584 test -z "$as_dir" && as_dir=.
15585 for ac_exec_ext in '' $ac_executable_extensions; do
15586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15587 ac_cv_prog_PTHREAD_CC="$ac_prog"
15588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15597 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15598 if test -n "$PTHREAD_CC"; then
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15600 $as_echo "$PTHREAD_CC" >&6; }
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15603 $as_echo "no" >&6; }
15607 test -n "$PTHREAD_CC" && break
15609 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15615 # The next part tries to detect GCC inconsistency with -shared on some
15616 # architectures and systems. The problem is that in certain
15617 # configurations, when -shared is specified, GCC "forgets" to
15618 # internally use various flags which are still necessary.
15621 # Prepare the flags
15623 save_CFLAGS="$CFLAGS"
15627 # Try with the flags determined by the earlier checks.
15629 # -Wl,-z,defs forces link-time symbol resolution, so that the
15630 # linking checks with -shared actually have any value
15632 # FIXME: -fPIC is required for -shared on many architectures,
15633 # so we specify it here, but the right way would probably be to
15634 # properly detect whether it is actually required.
15635 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15636 LIBS="$PTHREAD_LIBS $LIBS"
15639 # In order not to create several levels of indentation, we test
15640 # the value of "$done" until we find the cure or run out of ideas.
15643 # First, make sure the CFLAGS we added are actually accepted by our
15644 # compiler. If not (and OS X's ld, for instance, does not accept -z),
15645 # then we can't do this test.
15646 if test x"$done" = xno; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15648 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15660 if ac_fn_c_try_link "$LINENO"; then :
15665 rm -f core conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15668 if test "x$done" = xyes ; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15673 $as_echo "yes" >&6; }
15677 if test x"$done" = xno; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15679 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 #include <pthread.h>
15686 pthread_t th; pthread_join(th, 0);
15687 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15688 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15693 if ac_fn_c_try_link "$LINENO"; then :
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15699 if test "x$done" = xyes; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701 $as_echo "yes" >&6; }
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15704 $as_echo "no" >&6; }
15709 # Linux gcc on some architectures such as mips/mipsel forgets
15712 if test x"$done" = xno; then
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15714 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
15715 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718 #include <pthread.h>
15722 pthread_t th; pthread_join(th, 0);
15723 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15724 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15729 if ac_fn_c_try_link "$LINENO"; then :
15732 rm -f core conftest.err conftest.$ac_objext \
15733 conftest$ac_exeext conftest.$ac_ext
15735 if test "x$done" = xyes; then
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737 $as_echo "yes" >&6; }
15738 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15745 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15747 if test x"$done" = xno; then
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15749 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
15750 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15753 #include <pthread.h>
15757 pthread_t th; pthread_join(th, 0);
15758 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15759 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15764 if ac_fn_c_try_link "$LINENO"; then :
15767 rm -f core conftest.err conftest.$ac_objext \
15768 conftest$ac_exeext conftest.$ac_ext
15770 if test "x$done" = xyes; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15772 $as_echo "yes" >&6; }
15773 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15776 $as_echo "no" >&6; }
15779 if test x"$done" = xno; then
15780 # OK, we have run out of ideas
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15782 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15784 # so it's not safe to assume that we may use pthreads
15788 CFLAGS="$save_CFLAGS"
15799 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15800 if test x"$acx_pthread_ok" = xyes; then
15802 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15810 ac_cpp='$CXXCPP $CPPFLAGS'
15811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15816 if test x"$acx_pthread_ok" = x"yes"; then
15817 # To make libglog depend on libpthread on Linux, we need to add
15818 # -lpthread in addition to -pthread.
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
15820 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
15821 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
15822 $as_echo_n "(cached) " >&6
15824 ac_check_lib_save_LIBS=$LIBS
15825 LIBS="-lpthread $LIBS"
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15829 /* Override any GCC internal prototype to avoid an error.
15830 Use char because int might match the return type of a GCC
15831 builtin and then its argument prototype would still apply. */
15835 char pthread_self ();
15839 return pthread_self ();
15844 if ac_fn_cxx_try_link "$LINENO"; then :
15845 ac_cv_lib_pthread_pthread_self=yes
15847 ac_cv_lib_pthread_pthread_self=no
15849 rm -f core conftest.err conftest.$ac_objext \
15850 conftest$ac_exeext conftest.$ac_ext
15851 LIBS=$ac_check_lib_save_LIBS
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
15854 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
15855 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
15856 cat >>confdefs.h <<_ACEOF
15857 #define HAVE_LIBPTHREAD 1
15860 LIBS="-lpthread $LIBS"
15866 # Check if there is google-gflags library installed.
15867 SAVE_CFLAGS="$CFLAGS"
15870 # Check whether --with-gflags was given.
15871 if test "${with_gflags+set}" = set; then :
15872 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
15873 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
15874 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
15875 LIBS="$LIBS $GFLAGS_LIBS"
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
15880 $as_echo_n "checking for main in -lgflags... " >&6; }
15881 if ${ac_cv_lib_gflags_main+:} false; then :
15882 $as_echo_n "(cached) " >&6
15884 ac_check_lib_save_LIBS=$LIBS
15885 LIBS="-lgflags $LIBS"
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15898 if ac_fn_cxx_try_link "$LINENO"; then :
15899 ac_cv_lib_gflags_main=yes
15901 ac_cv_lib_gflags_main=no
15903 rm -f core conftest.err conftest.$ac_objext \
15904 conftest$ac_exeext conftest.$ac_ext
15905 LIBS=$ac_check_lib_save_LIBS
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
15908 $as_echo "$ac_cv_lib_gflags_main" >&6; }
15909 if test "x$ac_cv_lib_gflags_main" = xyes; then :
15910 ac_cv_have_libgflags=1
15912 ac_cv_have_libgflags=0
15915 if test x"$ac_cv_have_libgflags" = x"1"; then
15917 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
15919 if test x"$GFLAGS_LIBS" = x""; then
15920 GFLAGS_LIBS="-lgflags"
15926 CFLAGS="$SAVE_CFLAGS"
15929 # TODO(hamaji): Use official m4 macros provided by testing libraries
15930 # once the m4 macro of Google Mocking becomes ready.
15931 # Check if there is Google Test library installed.
15932 # Extract the first word of "gtest-config", so it can be a program name with args.
15933 set dummy gtest-config; ac_word=$2
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15935 $as_echo_n "checking for $ac_word... " >&6; }
15936 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
15937 $as_echo_n "(cached) " >&6
15939 if test -n "$GTEST_CONFIG"; then
15940 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
15942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15943 for as_dir in $PATH
15946 test -z "$as_dir" && as_dir=.
15947 for ac_exec_ext in '' $ac_executable_extensions; do
15948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15949 ac_cv_prog_GTEST_CONFIG=""yes""
15950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15959 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
15960 if test -n "$GTEST_CONFIG"; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
15962 $as_echo "$GTEST_CONFIG" >&6; }
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15965 $as_echo "no" >&6; }
15969 if test x"$GTEST_CONFIG" = "xyes"; then
15970 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
15971 GTEST_LIBS=`gtest-config --ldflags --libs`
15973 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
15976 # Check if there is Google Mocking library installed.
15977 # Extract the first word of "gmock-config", so it can be a program name with args.
15978 set dummy gmock-config; ac_word=$2
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980 $as_echo_n "checking for $ac_word... " >&6; }
15981 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
15982 $as_echo_n "(cached) " >&6
15984 if test -n "$GMOCK_CONFIG"; then
15985 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988 for as_dir in $PATH
15991 test -z "$as_dir" && as_dir=.
15992 for ac_exec_ext in '' $ac_executable_extensions; do
15993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15994 ac_cv_prog_GMOCK_CONFIG=""yes""
15995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16004 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16005 if test -n "$GMOCK_CONFIG"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16007 $as_echo "$GMOCK_CONFIG" >&6; }
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010 $as_echo "no" >&6; }
16014 if test x"$GMOCK_CONFIG" = "xyes"; then
16015 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16016 GMOCK_LIBS=`gmock-config --ldflags --libs`
16018 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16021 # We don't run test cases which use Google Mocking framework.
16026 # We'll use src/googletest.h for our unittests.
16030 if test x"$GMOCK_CONFIG" = "xyes"; then
16032 HAVE_GMOCK_FALSE='#'
16034 HAVE_GMOCK_TRUE='#'
16039 # We want to link in libunwind if it exists
16041 # Unfortunately, we need to check the header file in addition to the
16042 # lib file to check if libunwind is available since libunwind-0.98
16043 # doesn't install all necessary header files.
16044 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16046 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16047 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16048 $as_echo_n "(cached) " >&6
16050 ac_check_lib_save_LIBS=$LIBS
16051 LIBS="-lunwind $LIBS"
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16055 /* Override any GCC internal prototype to avoid an error.
16056 Use char because int might match the return type of a GCC
16057 builtin and then its argument prototype would still apply. */
16065 return backtrace ();
16070 if ac_fn_cxx_try_link "$LINENO"; then :
16071 ac_cv_lib_unwind_backtrace=yes
16073 ac_cv_lib_unwind_backtrace=no
16075 rm -f core conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16080 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16081 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16082 UNWIND_LIBS=-lunwind
16087 if test x"$UNWIND_LIBS" != x""; then
16089 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16093 # We'd like to use read/write locks in several places in the code.
16094 # See if our pthreads support extends to that. Note: for linux, it
16095 # does as long as you define _XOPEN_SOURCE appropriately.
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16097 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16098 if ${ac_cv_rwlock+:} false; then :
16099 $as_echo_n "(cached) " >&6
16103 ac_cpp='$CPP $CPPFLAGS'
16104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110 #define _XOPEN_SOURCE 500
16111 #include <pthread.h>
16115 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16116 pthread_rwlock_rdlock(&l);
16122 if ac_fn_c_try_compile "$LINENO"; then :
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 ac_cpp='$CXXCPP $CPPFLAGS'
16130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16137 $as_echo "$ac_cv_rwlock" >&6; }
16138 if test "$ac_cv_rwlock" = yes; then
16140 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16145 # Find out what namespace 'normal' STL code lives in, and also what namespace
16146 # the user wants our classes to be defined in
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16148 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16149 if ${ac_cv_cxx_namespaces+:} false; then :
16150 $as_echo_n "(cached) " >&6
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
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16162 namespace Inner { int i = 0; }}
16166 using namespace Outer::Inner; return i;
16171 if ac_fn_cxx_try_compile "$LINENO"; then :
16172 ac_cv_cxx_namespaces=yes
16174 ac_cv_cxx_namespaces=no
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 ac_cpp='$CXXCPP $CPPFLAGS'
16179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16185 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16186 if test "$ac_cv_cxx_namespaces" = yes; then
16188 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16192 $as_echo_n "checking what namespace STL code is in... " >&6; }
16193 if ${ac_cv_cxx_stl_namespace+:} false; then :
16194 $as_echo_n "(cached) " >&6
16199 ac_cpp='$CXXCPP $CPPFLAGS'
16200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16210 vector<int> t; return 0;
16215 if ac_fn_cxx_try_compile "$LINENO"; then :
16216 ac_cv_cxx_stl_namespace=none
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16225 std::vector<int> t; return 0;
16230 if ac_fn_cxx_try_compile "$LINENO"; then :
16231 ac_cv_cxx_stl_namespace=std
16233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 ac_cpp='$CXXCPP $CPPFLAGS'
16236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16242 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16243 if test "$ac_cv_cxx_stl_namespace" = none; then
16245 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16248 if test "$ac_cv_cxx_stl_namespace" = std; then
16250 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16254 google_namespace_default=google
16255 # Check whether --enable-namespace was given.
16256 if test "${enable_namespace+set}" = set; then :
16257 enableval=$enable_namespace; case "$enableval" in
16258 yes) google_namespace="$google_namespace_default" ;;
16259 no) google_namespace="" ;;
16260 *) google_namespace="$enableval" ;;
16263 google_namespace="$google_namespace_default"
16266 if test -n "$google_namespace"; then
16267 ac_google_namespace="$google_namespace"
16268 ac_google_start_namespace="namespace $google_namespace {"
16269 ac_google_end_namespace="}"
16271 ac_google_namespace=""
16272 ac_google_start_namespace=""
16273 ac_google_end_namespace=""
16276 cat >>confdefs.h <<_ACEOF
16277 #define GOOGLE_NAMESPACE $ac_google_namespace
16281 cat >>confdefs.h <<_ACEOF
16282 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16286 cat >>confdefs.h <<_ACEOF
16287 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16293 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16294 if ${ac_cv_cxx_using_operator+:} false; then :
16295 $as_echo_n "(cached) " >&6
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
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #include <iostream>
16307 std::ostream& operator<<(std::ostream&, struct s);
16311 using ::operator<<; return 0;
16316 if ac_fn_cxx_try_compile "$LINENO"; then :
16317 ac_cv_cxx_using_operator=1
16319 ac_cv_cxx_using_operator=0
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323 ac_cpp='$CXXCPP $CPPFLAGS'
16324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
16330 $as_echo "$ac_cv_cxx_using_operator" >&6; }
16331 if test "$ac_cv_cxx_using_operator" = 1; then
16333 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
16337 for ac_header in ucontext.h
16339 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
16340 if test "x$ac_cv_header_ucontext_h" = xyes; then :
16341 cat >>confdefs.h <<_ACEOF
16342 #define HAVE_UCONTEXT_H 1
16349 for ac_header in sys/ucontext.h
16351 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
16352 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
16353 cat >>confdefs.h <<_ACEOF
16354 #define HAVE_SYS_UCONTEXT_H 1
16360 # ucontext on OS X 10.6 (at least)
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
16362 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
16363 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
16364 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
16365 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
16366 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
16367 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
16368 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
16369 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
16370 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
16371 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
16372 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
16373 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
16374 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
16375 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
16376 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
16377 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
16378 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
16379 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
16380 pc_field_found=false
16381 for pc_field in $pc_fields; do
16382 if ! $pc_field_found; then
16383 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16386 #define _GNU_SOURCE 1
16387 #include <sys/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
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16410 #define _GNU_SOURCE 1
16411 #include <ucontext.h>
16415 ucontext_t u; return u.$pc_field == 0;
16420 if ac_fn_cxx_try_compile "$LINENO"; then :
16422 cat >>confdefs.h <<_ACEOF
16423 #define PC_FROM_UCONTEXT $pc_field
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16427 $as_echo "$pc_field" >&6; }
16428 pc_field_found=true
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 if ! $pc_field_found; then
16435 pc_fields=" sc_eip" # OpenBSD (i386)
16436 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
16437 for pc_field in $pc_fields; do
16438 if ! $pc_field_found; then
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 #include <signal.h>
16445 ucontext_t u; return u.$pc_field == 0;
16450 if ac_fn_cxx_try_compile "$LINENO"; then :
16452 cat >>confdefs.h <<_ACEOF
16453 #define PC_FROM_UCONTEXT $pc_field
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16457 $as_echo "$pc_field" >&6; }
16458 pc_field_found=true
16460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 if ! $pc_field_found; then
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
16466 $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
16470 cat >>confdefs.h <<_ACEOF
16471 #define TEST_SRC_DIR "$srcdir"
16475 # These are what's needed by logging.h.in and raw_logging.h.in
16498 # Write generated configuration file
16499 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"
16501 ac_config_files="$ac_config_files libglog.pc"
16503 cat >confcache <<\_ACEOF
16504 # This file is a shell script that caches the results of configure
16505 # tests run on this system so they can be shared between configure
16506 # scripts and configure runs, see configure's option --config-cache.
16507 # It is not useful on other systems. If it contains results you don't
16508 # want to keep, you may remove or edit it.
16510 # config.status only pays attention to the cache file if you give it
16511 # the --recheck option to rerun configure.
16513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16515 # following values.
16519 # The following way of writing the cache mishandles newlines in values,
16520 # but we know of no workaround that is simple, portable, and efficient.
16521 # So, we kill variables containing newlines.
16522 # Ultrix sh set writes to stderr and can't be redirected directly,
16523 # and sets the high bit in the cache file unless we assign to the vars.
16525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16526 eval ac_val=\$$ac_var
16530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16531 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16534 _ | IFS | as_nl) ;; #(
16535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16536 *) { eval $ac_var=; unset $ac_var;} ;;
16542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16543 *${as_nl}ac_space=\ *)
16544 # `set' does not quote correctly, so add quotes: double-quote
16545 # substitution turns \\\\ into \\, and sed turns \\ into \.
16548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16551 # `set' quotes correctly as required by POSIX, so do not add quotes.
16552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16566 if test -w "$cache_file"; then
16567 if test "x$cache_file" != "x/dev/null"; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16569 $as_echo "$as_me: updating cache $cache_file" >&6;}
16570 if test ! -f "$cache_file" || test -h "$cache_file"; then
16571 cat confcache >"$cache_file"
16573 case $cache_file in #(
16575 mv -f confcache "$cache_file"$$ &&
16576 mv -f "$cache_file"$$ "$cache_file" ;; #(
16578 mv -f confcache "$cache_file" ;;
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16584 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16590 # Let make expand exec_prefix.
16591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16593 DEFS=-DHAVE_CONFIG_H
16598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16599 # 1. Remove the extension, and $U if already installed.
16600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16603 # will be set to the directory where LIBOBJS objects are built.
16604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16607 LIBOBJS=$ac_libobjs
16609 LTLIBOBJS=$ac_ltlibobjs
16612 if test -n "$EXEEXT"; then
16614 am__EXEEXT_FALSE='#'
16616 am__EXEEXT_TRUE='#'
16620 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16621 as_fn_error $? "conditional \"AMDEP\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16624 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16625 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16628 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16629 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16632 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
16633 as_fn_error $? "conditional \"GCC\" was never defined.
16634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16636 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16637 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16640 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
16641 as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
16642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16644 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
16645 as_fn_error $? "conditional \"X86_64\" was never defined.
16646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16648 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
16649 as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
16650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16652 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
16653 as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
16654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16657 : "${CONFIG_STATUS=./config.status}"
16659 ac_clean_files_save=$ac_clean_files
16660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16662 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16664 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16666 # Generated by $as_me.
16667 # Run this file to recreate the current configuration.
16668 # Compiler output produced by configure, useful for debugging
16669 # configure, is in config.log if it exists.
16672 ac_cs_recheck=false
16675 SHELL=\${CONFIG_SHELL-$SHELL}
16678 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16679 ## -------------------- ##
16680 ## M4sh Initialization. ##
16681 ## -------------------- ##
16683 # Be more Bourne compatible
16684 DUALCASE=1; export DUALCASE # for MKS sh
16685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16688 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16689 # is contrary to our usage. Disable this feature.
16690 alias -g '${1+"$@"}'='"$@"'
16691 setopt NO_GLOB_SUBST
16693 case `(set -o) 2>/dev/null` in #(
16705 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16706 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16709 # Prefer a ksh shell builtin over an external printf program on Solaris,
16710 # but without wasting forks for bash or zsh.
16711 if test -z "$BASH_VERSION$ZSH_VERSION" \
16712 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16713 as_echo='print -r --'
16714 as_echo_n='print -rn --'
16715 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16716 as_echo='printf %s\n'
16717 as_echo_n='printf %s'
16719 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16720 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16721 as_echo_n='/usr/ucb/echo -n'
16723 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16724 as_echo_n_body='eval
16728 expr "X$arg" : "X\\(.*\\)$as_nl";
16729 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16731 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16733 export as_echo_n_body
16734 as_echo_n='sh -c $as_echo_n_body as_echo'
16736 export as_echo_body
16737 as_echo='sh -c $as_echo_body as_echo'
16740 # The user is always right.
16741 if test "${PATH_SEPARATOR+set}" != set; then
16743 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16744 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16751 # We need space, tab and new line, in precisely that order. Quoting is
16752 # there to prevent editors from complaining about space-tab.
16753 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16754 # splitting by setting IFS to empty value.)
16757 # Find who we are. Look in the path if we contain no directory separator.
16760 *[\\/]* ) as_myself=$0 ;;
16761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16762 for as_dir in $PATH
16765 test -z "$as_dir" && as_dir=.
16766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16772 # We did not find ourselves, most probably we were run as `sh COMMAND'
16773 # in which case we are not to be found in the path.
16774 if test "x$as_myself" = x; then
16777 if test ! -f "$as_myself"; then
16778 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16782 # Unset variables that we do not need and which cause bugs (e.g. in
16783 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16784 # suppresses any "Segmentation fault" message there. '((' could
16785 # trigger a bug in pdksh 5.2.14.
16786 for as_var in BASH_ENV ENV MAIL MAILPATH
16787 do eval test x\${$as_var+set} = xset \
16788 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16804 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16805 # ----------------------------------------
16806 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16807 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16808 # script with STATUS, using 1 if that was 0.
16811 as_status=$1; test $as_status -eq 0 && as_status=1
16813 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16814 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16816 $as_echo "$as_me: error: $2" >&2
16817 as_fn_exit $as_status
16821 # as_fn_set_status STATUS
16822 # -----------------------
16823 # Set $? to STATUS, without forking.
16824 as_fn_set_status ()
16827 } # as_fn_set_status
16829 # as_fn_exit STATUS
16830 # -----------------
16831 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16835 as_fn_set_status $1
16841 # Portably unset VAR.
16844 { eval $1=; unset $1;}
16846 as_unset=as_fn_unset
16847 # as_fn_append VAR VALUE
16848 # ----------------------
16849 # Append the text in VALUE to the end of the definition contained in VAR. Take
16850 # advantage of any shell optimizations that allow amortized linear growth over
16851 # repeated appends, instead of the typical quadratic growth present in naive
16853 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16854 eval 'as_fn_append ()
16865 # as_fn_arith ARG...
16866 # ------------------
16867 # Perform arithmetic evaluation on the ARGs, and store the result in the
16868 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16869 # must be portable across $(()) and expr.
16870 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16871 eval 'as_fn_arith ()
16878 as_val=`expr "$@" || test $? -eq 1`
16883 if expr a : '\(a\)' >/dev/null 2>&1 &&
16884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16891 as_basename=basename
16896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16902 as_me=`$as_basename -- "$0" ||
16903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16904 X"$0" : 'X\(//\)$' \| \
16905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16907 sed '/^.*\/\([^/][^/]*\)\/*$/{
16921 # Avoid depending upon Character Ranges.
16922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16925 as_cr_digits='0123456789'
16926 as_cr_alnum=$as_cr_Letters$as_cr_digits
16928 ECHO_C= ECHO_N= ECHO_T=
16929 case `echo -n x` in #(((((
16931 case `echo 'xy\c'` in
16932 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16934 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16941 rm -f conf$$ conf$$.exe conf$$.file
16942 if test -d conf$$.dir; then
16943 rm -f conf$$.dir/conf$$.file
16946 mkdir conf$$.dir 2>/dev/null
16948 if (echo >conf$$.file) 2>/dev/null; then
16949 if ln -s conf$$.file conf$$ 2>/dev/null; then
16951 # ... but there are two gotchas:
16952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16954 # In both cases, we have to default to `cp -p'.
16955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16957 elif ln conf$$.file conf$$ 2>/dev/null; then
16965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16966 rmdir conf$$.dir 2>/dev/null
16971 # Create "$as_dir" as a directory, including parents if necessary.
16976 -*) as_dir=./$as_dir;;
16978 test -d "$as_dir" || eval $as_mkdir_p || {
16982 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16983 *) as_qdir=$as_dir;;
16985 as_dirs="'$as_qdir' $as_dirs"
16986 as_dir=`$as_dirname -- "$as_dir" ||
16987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16988 X"$as_dir" : 'X\(//\)[^/]' \| \
16989 X"$as_dir" : 'X\(//\)$' \| \
16990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16991 $as_echo X"$as_dir" |
16992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16996 /^X\(\/\/\)[^/].*/{
17009 test -d "$as_dir" && break
17011 test -z "$as_dirs" || eval "mkdir $as_dirs"
17012 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17016 if mkdir -p . 2>/dev/null; then
17017 as_mkdir_p='mkdir -p "$as_dir"'
17019 test -d ./-p && rmdir ./-p
17023 if test -x / >/dev/null 2>&1; then
17024 as_test_x='test -x'
17026 if ls -dL / >/dev/null 2>&1; then
17033 if test -d "$1"; then
17039 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17040 ???[sx]*):;;*)false;;esac;fi
17044 as_executable_p=$as_test_x
17046 # Sed expression to map a string onto a valid CPP name.
17047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17049 # Sed expression to map a string onto a valid variable name.
17050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17054 ## ----------------------------------- ##
17055 ## Main body of $CONFIG_STATUS script. ##
17056 ## ----------------------------------- ##
17058 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17061 # Save the log message, to keep $0 and so on meaningful, and to
17062 # report actual input values of CONFIG_FILES etc. instead of their
17063 # values after options handling.
17065 This file was extended by glog $as_me 0.3.2, which was
17066 generated by GNU Autoconf 2.68. Invocation command line was
17068 CONFIG_FILES = $CONFIG_FILES
17069 CONFIG_HEADERS = $CONFIG_HEADERS
17070 CONFIG_LINKS = $CONFIG_LINKS
17071 CONFIG_COMMANDS = $CONFIG_COMMANDS
17074 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17079 case $ac_config_files in *"
17080 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17083 case $ac_config_headers in *"
17084 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17089 # Files that config.status was made for.
17090 config_files="$ac_config_files"
17091 config_headers="$ac_config_headers"
17092 config_commands="$ac_config_commands"
17096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17098 \`$as_me' instantiates files and other configuration actions
17099 from templates according to the current configuration. Unless the files
17100 and actions are specified as TAGs, all are instantiated by default.
17102 Usage: $0 [OPTION]... [TAG]...
17104 -h, --help print this help, then exit
17105 -V, --version print version number and configuration settings, then exit
17106 --config print configuration, then exit
17107 -q, --quiet, --silent
17108 do not print progress messages
17109 -d, --debug don't remove temporary files
17110 --recheck update $as_me by reconfiguring in the same conditions
17111 --file=FILE[:TEMPLATE]
17112 instantiate the configuration file FILE
17113 --header=FILE[:TEMPLATE]
17114 instantiate the configuration header FILE
17116 Configuration files:
17119 Configuration headers:
17122 Configuration commands:
17125 Report bugs to <opensource@google.com>."
17128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17129 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17131 glog config.status 0.3.2
17132 configured by $0, generated by GNU Autoconf 2.68,
17133 with options \\"\$ac_cs_config\\"
17135 Copyright (C) 2010 Free Software Foundation, Inc.
17136 This config.status script is free software; the Free Software Foundation
17137 gives unlimited permission to copy, distribute and modify it."
17144 test -n "\$AWK" || AWK=awk
17147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17148 # The default lists apply if the user does not specify any file.
17154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17155 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17171 # Handling of the options.
17172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17175 $as_echo "$ac_cs_version"; exit ;;
17176 --config | --confi | --conf | --con | --co | --c )
17177 $as_echo "$ac_cs_config"; exit ;;
17178 --debug | --debu | --deb | --de | --d | -d )
17180 --file | --fil | --fi | --f )
17183 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17184 '') as_fn_error $? "missing file argument" ;;
17186 as_fn_append CONFIG_FILES " '$ac_optarg'"
17187 ac_need_defaults=false;;
17188 --header | --heade | --head | --hea )
17191 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17193 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17194 ac_need_defaults=false;;
17196 # Conflict between --help and --header
17197 as_fn_error $? "ambiguous option: \`$1'
17198 Try \`$0 --help' for more information.";;
17199 --help | --hel | -h )
17200 $as_echo "$ac_cs_usage"; exit ;;
17201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17205 # This is an error.
17206 -*) as_fn_error $? "unrecognized option: \`$1'
17207 Try \`$0 --help' for more information." ;;
17209 *) as_fn_append ac_config_targets " $1"
17210 ac_need_defaults=false ;;
17216 ac_configure_extra_args=
17218 if $ac_cs_silent; then
17220 ac_configure_extra_args="$ac_configure_extra_args --silent"
17224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17225 if \$ac_cs_recheck; then
17226 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17228 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17229 CONFIG_SHELL='$SHELL'
17230 export CONFIG_SHELL
17235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17240 ## Running $as_me. ##
17246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17250 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17253 # The HP-UX ksh and POSIX shell print the target directory to stdout
17254 # if CDPATH is set.
17255 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17257 sed_quote_subst='$sed_quote_subst'
17258 double_quote_subst='$double_quote_subst'
17259 delay_variable_subst='$delay_variable_subst'
17260 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17261 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17262 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17263 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17264 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17265 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17266 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17267 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17268 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17269 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17270 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17271 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17272 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17273 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17274 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17275 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17276 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17277 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17278 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17279 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17280 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17281 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17282 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17283 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17284 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17285 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17286 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17287 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17288 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17289 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17290 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17291 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17292 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17293 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17294 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17295 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17296 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17297 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17298 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17299 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17300 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17301 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17302 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17303 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17304 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"`'
17305 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"`'
17306 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17307 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17308 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17309 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17310 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17311 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17312 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17313 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17314 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17315 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17316 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17317 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17318 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17319 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17320 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17321 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17322 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17323 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17324 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17325 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17326 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17327 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17328 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17329 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17330 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17331 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17332 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17333 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17334 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17335 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17336 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17337 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17338 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17339 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17340 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17341 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17342 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17343 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17344 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17345 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17346 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17347 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17348 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17349 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17350 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17351 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17352 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17353 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17354 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17355 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17356 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17357 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17358 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17359 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17360 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17361 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17362 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17363 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17364 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17365 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17366 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17367 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17368 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17369 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17370 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17371 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17372 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17373 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17374 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17375 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17376 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17377 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17378 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17379 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17380 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17381 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17382 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17383 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17384 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17385 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17386 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17387 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17388 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17389 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17390 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17391 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17392 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17393 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17394 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17395 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17396 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17397 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17398 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17399 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17400 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17401 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17402 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17403 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17404 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17405 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17406 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17407 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17408 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17409 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17410 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17411 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17412 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17413 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17414 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17415 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17416 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17417 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17418 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17419 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17420 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17421 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17422 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17423 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17424 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17425 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17426 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17427 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17428 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17429 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17430 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17433 LTCFLAGS='$LTCFLAGS'
17434 compiler='$compiler_DEFAULT'
17436 # Quote evaled strings.
17448 deplibs_check_method \
17457 lt_cv_sys_global_symbol_pipe \
17458 lt_cv_sys_global_symbol_to_cdecl \
17459 lt_cv_sys_global_symbol_to_c_name_address \
17460 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17463 lt_prog_compiler_no_builtin_flag \
17464 lt_prog_compiler_wl \
17465 lt_prog_compiler_pic \
17466 lt_prog_compiler_static \
17467 lt_cv_prog_compiler_c_o \
17475 export_dynamic_flag_spec \
17476 whole_archive_flag_spec \
17477 compiler_needs_object \
17479 allow_undefined_flag \
17480 no_undefined_flag \
17481 hardcode_libdir_flag_spec \
17482 hardcode_libdir_flag_spec_ld \
17483 hardcode_libdir_separator \
17488 variables_saved_for_relink \
17490 library_names_spec \
17495 compiler_lib_search_dirs \
17500 compiler_lib_search_path \
17503 lt_prog_compiler_no_builtin_flag_CXX \
17504 lt_prog_compiler_wl_CXX \
17505 lt_prog_compiler_pic_CXX \
17506 lt_prog_compiler_static_CXX \
17507 lt_cv_prog_compiler_c_o_CXX \
17508 export_dynamic_flag_spec_CXX \
17509 whole_archive_flag_spec_CXX \
17510 compiler_needs_object_CXX \
17512 allow_undefined_flag_CXX \
17513 no_undefined_flag_CXX \
17514 hardcode_libdir_flag_spec_CXX \
17515 hardcode_libdir_flag_spec_ld_CXX \
17516 hardcode_libdir_separator_CXX \
17517 fix_srcfile_path_CXX \
17518 exclude_expsyms_CXX \
17519 include_expsyms_CXX \
17520 file_list_spec_CXX \
17521 compiler_lib_search_dirs_CXX \
17522 predep_objects_CXX \
17523 postdep_objects_CXX \
17526 compiler_lib_search_path_CXX; do
17527 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17528 *[\\\\\\\`\\"\\\$]*)
17529 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17532 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17537 # Double-quote double-evaled strings.
17538 for var in reload_cmds \
17539 old_postinstall_cmds \
17540 old_postuninstall_cmds \
17542 extract_expsyms_cmds \
17543 old_archive_from_new_cmds \
17544 old_archive_from_expsyms_cmds \
17546 archive_expsym_cmds \
17548 module_expsym_cmds \
17549 export_symbols_cmds \
17552 postuninstall_cmds \
17554 sys_lib_search_path_spec \
17555 sys_lib_dlsearch_path_spec \
17556 old_archive_cmds_CXX \
17557 old_archive_from_new_cmds_CXX \
17558 old_archive_from_expsyms_cmds_CXX \
17560 archive_expsym_cmds_CXX \
17562 module_expsym_cmds_CXX \
17563 export_symbols_cmds_CXX \
17564 prelink_cmds_CXX; do
17565 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17566 *[\\\\\\\`\\"\\\$]*)
17567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17575 # Fix-up fallback echo if it was mangled by the above quoting rules.
17577 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17581 ac_aux_dir='$ac_aux_dir'
17582 xsi_shell='$xsi_shell'
17583 lt_shell_append='$lt_shell_append'
17585 # See if we are running on zsh, and set the options which allow our
17586 # commands through without removal of \ escapes INIT.
17587 if test -n "\${ZSH_VERSION+set}" ; then
17588 setopt NO_GLOB_SUBST
17594 TIMESTAMP='$TIMESTAMP'
17605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17607 # Handling of arguments.
17608 for ac_config_target in $ac_config_targets
17610 case $ac_config_target in
17611 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17612 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17613 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17614 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17615 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
17616 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
17617 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
17618 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
17619 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
17621 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17626 # If the user did not use the arguments to specify the items to instantiate,
17627 # then the envvar interface is used. Set only those that are not.
17628 # We use the long form for the default assignment because of an extremely
17629 # bizarre bug on SunOS 4.1.3.
17630 if $ac_need_defaults; then
17631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17636 # Have a temporary directory for convenience. Make it in the build tree
17637 # simply because there is no reason against having it here, and in addition,
17638 # creating and moving files from /tmp can sometimes cause problems.
17639 # Hook for its removal unless debugging.
17640 # Note that there is a small window in which the directory will not be cleaned:
17641 # after its creation but before its name has been assigned to `$tmp'.
17645 trap 'exit_status=$?
17646 : "${ac_tmp:=$tmp}"
17647 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17649 trap 'as_fn_exit 1' 1 2 13 15
17651 # Create a (secure) tmp directory for tmp files.
17654 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17658 tmp=./conf$$-$RANDOM
17659 (umask 077 && mkdir "$tmp")
17660 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17663 # Set up the scripts for CONFIG_FILES section.
17664 # No need to generate them if there are no CONFIG_FILES.
17665 # This happens for instance with `./config.status config.h'.
17666 if test -n "$CONFIG_FILES"; then
17669 ac_cr=`echo X | tr X '\015'`
17670 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17671 # But we know of no other shell where ac_cr would be empty at this
17672 # point, so we can use a bashism as a fallback.
17673 if test "x$ac_cr" = x; then
17674 eval ac_cr=\$\'\\r\'
17676 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17677 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17680 ac_cs_awk_cr=$ac_cr
17683 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17688 echo "cat >conf$$subs.awk <<_ACEOF" &&
17689 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17691 } >conf$$subs.sh ||
17692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17693 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17695 for ac_last_try in false false false false false :; do
17696 . ./conf$$subs.sh ||
17697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17699 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17700 if test $ac_delim_n = $ac_delim_num; then
17702 elif $ac_last_try; then
17703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17708 rm -f conf$$subs.sh
17710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17711 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17715 s/^/S["/; s/!.*/"]=/
17725 s/\(.\{148\}\)..*/\1/
17727 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17739 s/\(.\{148\}\)..*/\1/
17741 s/["\\]/\\&/g; s/^/"/; s/$/"/
17745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17750 ' <conf$$subs.awk | sed '
17755 ' >>$CONFIG_STATUS || ac_write_fail=1
17756 rm -f conf$$subs.awk
17757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17759 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17760 for (key in S) S_is_set[key] = 1
17766 nfields = split(line, field, "@")
17768 len = length(field[1])
17769 for (i = 2; i < nfields; i++) {
17771 keylen = length(key)
17772 if (S_is_set[key]) {
17774 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17775 len += length(value) + length(field[++i])
17786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17787 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17788 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17791 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17792 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17795 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17796 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17797 # trailing colons and then remove the whole line if VPATH becomes empty
17798 # (actually we leave an empty line to preserve line numbers).
17799 if test "x$srcdir" = x.; then
17800 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17819 fi # test -n "$CONFIG_FILES"
17821 # Set up the scripts for CONFIG_HEADERS section.
17822 # No need to generate them if there are no CONFIG_HEADERS.
17823 # This happens for instance with `./config.status Makefile'.
17824 if test -n "$CONFIG_HEADERS"; then
17825 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17829 # Transform confdefs.h into an awk script `defines.awk', embedded as
17830 # here-document in config.status, that substitutes the proper values into
17831 # config.h.in to produce config.h.
17833 # Create a delimiter string that does not exist in confdefs.h, to ease
17834 # handling of long lines.
17836 for ac_last_try in false false :; do
17837 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17838 if test -z "$ac_tt"; then
17840 elif $ac_last_try; then
17841 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17843 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17847 # For the awk script, D is an array of macro values keyed by name,
17848 # likewise P contains macro parameters if any. Preserve backslash
17849 # newline sequences.
17851 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17853 s/.\{148\}/&'"$ac_delim"'/g
17856 s/^[ ]*#[ ]*define[ ][ ]*/ /
17863 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17865 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17870 D["\1"]=" \3\\\\\\n"\\/p
17872 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17877 s/.\{148\}/&'"$ac_delim"'/g
17882 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17885 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17887 ' <confdefs.h | sed '
17888 s/'"$ac_delim"'/"\\\
17889 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17892 for (key in D) D_is_set[key] = 1
17895 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17897 split(line, arg, " ")
17898 if (arg[1] == "#") {
17902 defundef = substr(arg[1], 2)
17905 split(mac1, mac2, "(") #)
17907 prefix = substr(line, 1, index(line, defundef) - 1)
17908 if (D_is_set[macro]) {
17909 # Preserve the white space surrounding the "#".
17910 print prefix "define", macro P[macro] D[macro]
17913 # Replace #undef with comments. This is necessary, for example,
17914 # in the case of _POSIX_SOURCE, which is predefined and required
17915 # on some systems where configure will not decide to define it.
17916 if (defundef == "undef") {
17917 print "/*", prefix defundef, macro, "*/"
17925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17926 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17927 fi # test -n "$CONFIG_HEADERS"
17930 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17935 :[FHLC]) ac_mode=$ac_tag; continue;;
17937 case $ac_mode$ac_tag in
17939 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17940 :[FH]-) ac_tag=-:-;;
17941 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17958 -) ac_f="$ac_tmp/stdin";;
17959 *) # Look for the file first in the build tree, then in the source tree
17960 # (if the path is not absolute). The absolute path cannot be DOS-style,
17961 # because $ac_f cannot contain `:'.
17965 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17967 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17969 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17970 as_fn_append ac_file_inputs " '$ac_f'"
17973 # Let's still pretend it is `configure' which instantiates (i.e., don't
17974 # use $as_me), people would be surprised to read:
17975 # /* config.h. Generated by config.status. */
17976 configure_input='Generated from '`
17977 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17979 if test x"$ac_file" != x-; then
17980 configure_input="$ac_file. $configure_input"
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17982 $as_echo "$as_me: creating $ac_file" >&6;}
17984 # Neutralize special characters interpreted by sed in replacement strings.
17985 case $configure_input in #(
17986 *\&* | *\|* | *\\* )
17987 ac_sed_conf_input=`$as_echo "$configure_input" |
17988 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17989 *) ac_sed_conf_input=$configure_input;;
17993 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17999 ac_dir=`$as_dirname -- "$ac_file" ||
18000 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18001 X"$ac_file" : 'X\(//\)[^/]' \| \
18002 X"$ac_file" : 'X\(//\)$' \| \
18003 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18004 $as_echo X"$ac_file" |
18005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18009 /^X\(\/\/\)[^/].*/{
18022 as_dir="$ac_dir"; as_fn_mkdir_p
18026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18028 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18029 # A ".." for each directory in $ac_dir_suffix.
18030 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18031 case $ac_top_builddir_sub in
18032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18036 ac_abs_top_builddir=$ac_pwd
18037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18038 # for backward compatibility:
18039 ac_top_builddir=$ac_top_build_prefix
18042 .) # We are building in place.
18044 ac_top_srcdir=$ac_top_builddir_sub
18045 ac_abs_top_srcdir=$ac_pwd ;;
18046 [\\/]* | ?:[\\/]* ) # Absolute name.
18047 ac_srcdir=$srcdir$ac_dir_suffix;
18048 ac_top_srcdir=$srcdir
18049 ac_abs_top_srcdir=$srcdir ;;
18050 *) # Relative name.
18051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18052 ac_top_srcdir=$ac_top_build_prefix$srcdir
18053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18066 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18068 ac_MKDIR_P=$MKDIR_P
18070 [\\/$]* | ?:[\\/]* ) ;;
18071 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18076 # If the template does not know about datarootdir, expand it.
18077 # FIXME: This hack should be removed a few years after 2.60.
18078 ac_datarootdir_hack=; ac_datarootdir_seen=
18089 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18090 *datarootdir*) ac_datarootdir_seen=yes;;
18091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18093 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18096 ac_datarootdir_hack='
18097 s&@datadir@&$datadir&g
18098 s&@docdir@&$docdir&g
18099 s&@infodir@&$infodir&g
18100 s&@localedir@&$localedir&g
18101 s&@mandir@&$mandir&g
18102 s&\\\${datarootdir}&$datarootdir&g' ;;
18106 # Neutralize VPATH when `$srcdir' = `.'.
18107 # Shell code in configure.ac might set extrasub.
18108 # FIXME: do we really want to maintain this feature?
18109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18110 ac_sed_extra="$ac_vpsub
18113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18116 s|@configure_input@|$ac_sed_conf_input|;t t
18117 s&@top_builddir@&$ac_top_builddir_sub&;t t
18118 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18119 s&@srcdir@&$ac_srcdir&;t t
18120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18121 s&@top_srcdir@&$ac_top_srcdir&;t t
18122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18123 s&@builddir@&$ac_builddir&;t t
18124 s&@abs_builddir@&$ac_abs_builddir&;t t
18125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18126 s&@INSTALL@&$ac_INSTALL&;t t
18127 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18128 $ac_datarootdir_hack
18130 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18131 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18133 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18134 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18135 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18136 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18138 which seems to be undefined. Please make sure it is defined" >&5
18139 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18140 which seems to be undefined. Please make sure it is defined" >&2;}
18142 rm -f "$ac_tmp/stdin"
18144 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18145 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18153 if test x"$ac_file" != x-; then
18155 $as_echo "/* $configure_input */" \
18156 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18157 } >"$ac_tmp/config.h" \
18158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18159 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18161 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18164 mv "$ac_tmp/config.h" "$ac_file" \
18165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18168 $as_echo "/* $configure_input */" \
18169 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18170 || as_fn_error $? "could not create -" "$LINENO" 5
18172 # Compute "$ac_file"'s index in $config_headers.
18175 for _am_header in $config_headers :; do
18176 case $_am_header in
18177 $_am_arg | $_am_arg:* )
18180 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18183 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18184 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18185 X"$_am_arg" : 'X\(//\)[^/]' \| \
18186 X"$_am_arg" : 'X\(//\)$' \| \
18187 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18188 $as_echo X"$_am_arg" |
18189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18193 /^X\(\/\/\)[^/].*/{
18205 s/.*/./; q'`/stamp-h$_am_stamp_count
18208 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18209 $as_echo "$as_me: executing $ac_file commands" >&6;}
18214 case $ac_file$ac_mode in
18215 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18216 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18217 # are listed without --file. Let's play safe and only enable the eval
18218 # if we detect the quoting.
18219 case $CONFIG_FILES in
18220 *\'*) eval set x "$CONFIG_FILES" ;;
18221 *) set x $CONFIG_FILES ;;
18226 # Strip MF so we end up with the name of the file.
18227 mf=`echo "$mf" | sed -e 's/:.*$//'`
18228 # Check whether this is an Automake generated Makefile or not.
18229 # We used to match only the files named `Makefile.in', but
18230 # some people rename them; so instead we look at the file content.
18231 # Grep'ing the first line is not enough: some people post-process
18232 # each Makefile.in and add a new line on top of each file to say so.
18233 # Grep'ing the whole file is not good either: AIX grep has a line
18234 # limit of 2048, but all sed's we know have understand at least 4000.
18235 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18236 dirpart=`$as_dirname -- "$mf" ||
18237 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18238 X"$mf" : 'X\(//\)[^/]' \| \
18239 X"$mf" : 'X\(//\)$' \| \
18240 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18246 /^X\(\/\/\)[^/].*/{
18262 # Extract the definition of DEPDIR, am__include, and am__quote
18263 # from the Makefile without running `make'.
18264 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18265 test -z "$DEPDIR" && continue
18266 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18267 test -z "am__include" && continue
18268 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18269 # When using ansi2knr, U may be empty or an underscore; expand it
18270 U=`sed -n 's/^U = //p' < "$mf"`
18271 # Find all dependency output files, they are included files with
18272 # $(DEPDIR) in their names. We invoke sed twice because it is the
18273 # simplest approach to changing $(DEPDIR) to its actual value in the
18275 for file in `sed -n "
18276 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18277 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18278 # Make sure the directory exists.
18279 test -f "$dirpart/$file" && continue
18280 fdir=`$as_dirname -- "$file" ||
18281 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18282 X"$file" : 'X\(//\)[^/]' \| \
18283 X"$file" : 'X\(//\)$' \| \
18284 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18285 $as_echo X"$file" |
18286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18290 /^X\(\/\/\)[^/].*/{
18303 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18304 # echo "creating $dirpart/$file"
18305 echo '# dummy' > "$dirpart/$file"
18312 # See if we are running on zsh, and set the options which allow our
18313 # commands through without removal of \ escapes.
18314 if test -n "${ZSH_VERSION+set}" ; then
18315 setopt NO_GLOB_SUBST
18318 cfgfile="${ofile}T"
18319 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18322 cat <<_LT_EOF >> "$cfgfile"
18325 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18326 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18328 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18330 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18331 # 2006, 2007, 2008 Free Software Foundation, Inc.
18332 # Written by Gordon Matzigkeit, 1996
18334 # This file is part of GNU Libtool.
18336 # GNU Libtool is free software; you can redistribute it and/or
18337 # modify it under the terms of the GNU General Public License as
18338 # published by the Free Software Foundation; either version 2 of
18339 # the License, or (at your option) any later version.
18341 # As a special exception to the GNU General Public License,
18342 # if you distribute this file as part of a program or library that
18343 # is built using GNU Libtool, you may include this file under the
18344 # same distribution terms that you use for the rest of that program.
18346 # GNU Libtool is distributed in the hope that it will be useful,
18347 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18348 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18349 # GNU General Public License for more details.
18351 # You should have received a copy of the GNU General Public License
18352 # along with GNU Libtool; see the file COPYING. If not, a copy
18353 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18354 # obtained by writing to the Free Software Foundation, Inc.,
18355 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18358 # The names of the tagged configurations supported by this script.
18359 available_tags="CXX "
18361 # ### BEGIN LIBTOOL CONFIG
18363 # Which release of libtool.m4 was used?
18364 macro_version=$macro_version
18365 macro_revision=$macro_revision
18367 # Whether or not to build shared libraries.
18368 build_libtool_libs=$enable_shared
18370 # Whether or not to build static libraries.
18371 build_old_libs=$enable_static
18373 # What type of objects to build.
18376 # Whether or not to optimize for fast installation.
18377 fast_install=$enable_fast_install
18380 host_alias=$host_alias
18384 # The build system.
18385 build_alias=$build_alias
18389 # A sed program that does not truncate output.
18392 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18393 Xsed="\$SED -e 1s/^X//"
18395 # A grep program that handles long lines.
18401 # A literal string matcher.
18404 # A BSD- or MS-compatible name lister.
18407 # Whether we need soft or hard links.
18410 # What is the maximum length of a command?
18411 max_cmd_len=$max_cmd_len
18413 # Object file suffix (normally "o").
18416 # Executable file suffix (normally "").
18419 # whether the shell understands "unset".
18422 # turn spaces into newlines.
18425 # turn newlines into spaces.
18428 # How to create reloadable object files.
18429 reload_flag=$lt_reload_flag
18430 reload_cmds=$lt_reload_cmds
18432 # An object symbol dumper.
18433 OBJDUMP=$lt_OBJDUMP
18435 # Method to check whether dependent libraries are shared objects.
18436 deplibs_check_method=$lt_deplibs_check_method
18438 # Command to use when deplibs_check_method == "file_magic".
18439 file_magic_cmd=$lt_file_magic_cmd
18443 AR_FLAGS=$lt_AR_FLAGS
18445 # A symbol stripping program.
18448 # Commands used to install an old-style archive.
18450 old_postinstall_cmds=$lt_old_postinstall_cmds
18451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18456 # LTCC compiler flags.
18457 LTCFLAGS=$lt_CFLAGS
18459 # Take the output of nm and produce a listing of raw symbols and C names.
18460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18462 # Transform the output of nm in a proper C declaration.
18463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18465 # Transform the output of nm in a C name address pair.
18466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18468 # Transform the output of nm in a C name address pair when lib prefix is needed.
18469 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18471 # The name of the directory that contains temporary libtool files.
18474 # Shell to use when invoking shell scripts.
18477 # An echo program that does not interpret backslashes.
18480 # Used to examine libraries when file_magic_cmd begins with "file".
18481 MAGIC_CMD=$MAGIC_CMD
18483 # Must we lock files when doing compilation?
18484 need_locks=$lt_need_locks
18486 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18487 DSYMUTIL=$lt_DSYMUTIL
18489 # Tool to change global to local symbols on Mac OS X.
18492 # Tool to manipulate fat objects and archives on Mac OS X.
18495 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18498 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18499 OTOOL64=$lt_OTOOL64
18501 # Old archive suffix (normally "a").
18504 # Shared library suffix (normally ".so").
18505 shrext_cmds=$lt_shrext_cmds
18507 # The commands to extract the exported symbol list from a shared archive.
18508 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18510 # Variables whose values should be saved in libtool wrapper scripts and
18511 # restored at link time.
18512 variables_saved_for_relink=$lt_variables_saved_for_relink
18514 # Do we need the "lib" prefix for modules?
18515 need_lib_prefix=$need_lib_prefix
18517 # Do we need a version for libraries?
18518 need_version=$need_version
18520 # Library versioning type.
18521 version_type=$version_type
18523 # Shared library runtime path variable.
18524 runpath_var=$runpath_var
18526 # Shared library path variable.
18527 shlibpath_var=$shlibpath_var
18529 # Is shlibpath searched before the hard-coded library search path?
18530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18532 # Format of library name prefix.
18533 libname_spec=$lt_libname_spec
18535 # List of archive names. First name is the real one, the rest are links.
18536 # The last name is the one that the linker finds with -lNAME
18537 library_names_spec=$lt_library_names_spec
18539 # The coded name of the library, if different from the real name.
18540 soname_spec=$lt_soname_spec
18542 # Command to use after installation of a shared archive.
18543 postinstall_cmds=$lt_postinstall_cmds
18545 # Command to use after uninstallation of a shared archive.
18546 postuninstall_cmds=$lt_postuninstall_cmds
18548 # Commands used to finish a libtool library installation in a directory.
18549 finish_cmds=$lt_finish_cmds
18551 # As "finish_cmds", except a single script fragment to be evaled but
18553 finish_eval=$lt_finish_eval
18555 # Whether we should hardcode library paths into libraries.
18556 hardcode_into_libs=$hardcode_into_libs
18558 # Compile-time system search path for libraries.
18559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18561 # Run-time system search path for libraries.
18562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18564 # Whether dlopen is supported.
18565 dlopen_support=$enable_dlopen
18567 # Whether dlopen of programs is supported.
18568 dlopen_self=$enable_dlopen_self
18570 # Whether dlopen of statically linked programs is supported.
18571 dlopen_self_static=$enable_dlopen_self_static
18573 # Commands to strip libraries.
18574 old_striplib=$lt_old_striplib
18575 striplib=$lt_striplib
18578 # The linker used to build libraries.
18581 # Commands used to build an old-style archive.
18582 old_archive_cmds=$lt_old_archive_cmds
18584 # A language specific compiler.
18587 # Is the compiler the GNU compiler?
18590 # Compiler flag to turn off builtin functions.
18591 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18593 # How to pass a linker flag through the compiler.
18594 wl=$lt_lt_prog_compiler_wl
18596 # Additional compiler flags for building library objects.
18597 pic_flag=$lt_lt_prog_compiler_pic
18599 # Compiler flag to prevent dynamic linking.
18600 link_static_flag=$lt_lt_prog_compiler_static
18602 # Does compiler simultaneously support -c and -o options?
18603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18605 # Whether or not to add -lc for building shared libraries.
18606 build_libtool_need_lc=$archive_cmds_need_lc
18608 # Whether or not to disallow shared libs when runtime libs are static.
18609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18611 # Compiler flag to allow reflexive dlopens.
18612 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18614 # Compiler flag to generate shared objects directly from archives.
18615 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18617 # Whether the compiler copes with passing no objects directly.
18618 compiler_needs_object=$lt_compiler_needs_object
18620 # Create an old-style archive from a shared archive.
18621 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18623 # Create a temporary old-style archive to link instead of a shared archive.
18624 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18626 # Commands used to build a shared archive.
18627 archive_cmds=$lt_archive_cmds
18628 archive_expsym_cmds=$lt_archive_expsym_cmds
18630 # Commands used to build a loadable module if different from building
18631 # a shared archive.
18632 module_cmds=$lt_module_cmds
18633 module_expsym_cmds=$lt_module_expsym_cmds
18635 # Whether we are building with GNU ld or not.
18636 with_gnu_ld=$lt_with_gnu_ld
18638 # Flag that allows shared libraries with undefined symbols to be built.
18639 allow_undefined_flag=$lt_allow_undefined_flag
18641 # Flag that enforces no undefined symbols.
18642 no_undefined_flag=$lt_no_undefined_flag
18644 # Flag to hardcode \$libdir into a binary during linking.
18645 # This must work even if \$libdir does not exist
18646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18648 # If ld is used when linking, flag to hardcode \$libdir into a binary
18649 # during linking. This must work even if \$libdir does not exist.
18650 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18652 # Whether we need a single "-rpath" flag with a separated argument.
18653 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18655 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18656 # DIR into the resulting binary.
18657 hardcode_direct=$hardcode_direct
18659 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18660 # DIR into the resulting binary and the resulting library dependency is
18661 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18662 # library is relocated.
18663 hardcode_direct_absolute=$hardcode_direct_absolute
18665 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18666 # into the resulting binary.
18667 hardcode_minus_L=$hardcode_minus_L
18669 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18670 # into the resulting binary.
18671 hardcode_shlibpath_var=$hardcode_shlibpath_var
18673 # Set to "yes" if building a shared library automatically hardcodes DIR
18674 # into the library and all subsequent libraries and executables linked
18676 hardcode_automatic=$hardcode_automatic
18678 # Set to yes if linker adds runtime paths of dependent libraries
18679 # to runtime path list.
18680 inherit_rpath=$inherit_rpath
18682 # Whether libtool must link a program against all its dependency libraries.
18683 link_all_deplibs=$link_all_deplibs
18685 # Fix the shell variable \$srcfile for the compiler.
18686 fix_srcfile_path=$lt_fix_srcfile_path
18688 # Set to "yes" if exported symbols are required.
18689 always_export_symbols=$always_export_symbols
18691 # The commands to list exported symbols.
18692 export_symbols_cmds=$lt_export_symbols_cmds
18694 # Symbols that should not be listed in the preloaded symbols.
18695 exclude_expsyms=$lt_exclude_expsyms
18697 # Symbols that must always be exported.
18698 include_expsyms=$lt_include_expsyms
18700 # Commands necessary for linking programs (against libraries) with templates.
18701 prelink_cmds=$lt_prelink_cmds
18703 # Specify filename containing input files.
18704 file_list_spec=$lt_file_list_spec
18706 # How to hardcode a shared library path into an executable.
18707 hardcode_action=$hardcode_action
18709 # The directories searched by this compiler when creating a shared library.
18710 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18712 # Dependencies to place before and after the objects being linked to
18713 # create a shared library.
18714 predep_objects=$lt_predep_objects
18715 postdep_objects=$lt_postdep_objects
18716 predeps=$lt_predeps
18717 postdeps=$lt_postdeps
18719 # The library search path used internally by the compiler when linking
18720 # a shared library.
18721 compiler_lib_search_path=$lt_compiler_lib_search_path
18723 # ### END LIBTOOL CONFIG
18729 cat <<\_LT_EOF >> "$cfgfile"
18730 # AIX sometimes has problems with the GCC collect2 program. For some
18731 # reason, if we set the COLLECT_NAMES environment variable, the problems
18732 # vanish in a puff of smoke.
18733 if test "X${COLLECT_NAMES+set}" != Xset; then
18735 export COLLECT_NAMES
18742 ltmain="$ac_aux_dir/ltmain.sh"
18745 # We use sed instead of cat because bash on DJGPP gets confused if
18746 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18747 # text mode, it properly converts lines to CR/LF. This bash problem
18748 # is reportedly fixed, but why not run on old versions too?
18749 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18750 || (rm -f "$cfgfile"; exit 1)
18754 cat << \_LT_EOF >> "$cfgfile"
18756 # func_dirname file append nondir_replacement
18757 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18758 # otherwise set result to NONDIR_REPLACEMENT.
18762 */*) func_dirname_result="${1%/*}${2}" ;;
18763 * ) func_dirname_result="${3}" ;;
18767 # func_basename file
18770 func_basename_result="${1##*/}"
18773 # func_dirname_and_basename file append nondir_replacement
18774 # perform func_basename and func_dirname in a single function
18776 # dirname: Compute the dirname of FILE. If nonempty,
18777 # add APPEND to the result, otherwise set result
18778 # to NONDIR_REPLACEMENT.
18779 # value returned in "$func_dirname_result"
18780 # basename: Compute filename of FILE.
18781 # value retuned in "$func_basename_result"
18782 # Implementation must be kept synchronized with func_dirname
18783 # and func_basename. For efficiency, we do not delegate to
18784 # those functions but instead duplicate the functionality here.
18785 func_dirname_and_basename ()
18788 */*) func_dirname_result="${1%/*}${2}" ;;
18789 * ) func_dirname_result="${3}" ;;
18791 func_basename_result="${1##*/}"
18794 # func_stripname prefix suffix name
18795 # strip PREFIX and SUFFIX off of NAME.
18796 # PREFIX and SUFFIX must not contain globbing or regex special
18797 # characters, hashes, percent signs, but SUFFIX may contain a leading
18798 # dot (in which case that matches only a dot).
18801 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18802 # positional parameters, so assign one to ordinary parameter first.
18803 func_stripname_result=${3}
18804 func_stripname_result=${func_stripname_result#"${1}"}
18805 func_stripname_result=${func_stripname_result%"${2}"}
18811 func_opt_split_opt=${1%%=*}
18812 func_opt_split_arg=${1#*=}
18819 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18820 *) func_lo2o_result=${1} ;;
18824 # func_xform libobj-or-source
18827 func_xform_result=${1%.*}.lo
18830 # func_arith arithmetic-term...
18833 func_arith_result=$(( $* ))
18837 # STRING may not start with a hyphen.
18840 func_len_result=${#1}
18845 *) # Bourne compatible functions.
18846 cat << \_LT_EOF >> "$cfgfile"
18848 # func_dirname file append nondir_replacement
18849 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18850 # otherwise set result to NONDIR_REPLACEMENT.
18853 # Extract subdirectory from the argument.
18854 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18855 if test "X$func_dirname_result" = "X${1}"; then
18856 func_dirname_result="${3}"
18858 func_dirname_result="$func_dirname_result${2}"
18862 # func_basename file
18865 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18869 # func_stripname prefix suffix name
18870 # strip PREFIX and SUFFIX off of NAME.
18871 # PREFIX and SUFFIX must not contain globbing or regex special
18872 # characters, hashes, percent signs, but SUFFIX may contain a leading
18873 # dot (in which case that matches only a dot).
18874 # func_strip_suffix prefix name
18878 .*) func_stripname_result=`$ECHO "X${3}" \
18879 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18880 *) func_stripname_result=`$ECHO "X${3}" \
18881 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18886 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18887 my_sed_long_arg='1s/^-[^=]*=//'
18892 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18893 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18899 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18902 # func_xform libobj-or-source
18905 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18908 # func_arith arithmetic-term...
18911 func_arith_result=`expr "$@"`
18915 # STRING may not start with a hyphen.
18918 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18924 case $lt_shell_append in
18926 cat << \_LT_EOF >> "$cfgfile"
18928 # func_append var value
18929 # Append VALUE to the end of shell variable VAR.
18937 cat << \_LT_EOF >> "$cfgfile"
18939 # func_append var value
18940 # Append VALUE to the end of shell variable VAR.
18951 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18952 || (rm -f "$cfgfile"; exit 1)
18954 mv -f "$cfgfile" "$ofile" ||
18955 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18959 cat <<_LT_EOF >> "$ofile"
18961 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18963 # The linker used to build libraries.
18966 # Commands used to build an old-style archive.
18967 old_archive_cmds=$lt_old_archive_cmds_CXX
18969 # A language specific compiler.
18970 CC=$lt_compiler_CXX
18972 # Is the compiler the GNU compiler?
18975 # Compiler flag to turn off builtin functions.
18976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18978 # How to pass a linker flag through the compiler.
18979 wl=$lt_lt_prog_compiler_wl_CXX
18981 # Additional compiler flags for building library objects.
18982 pic_flag=$lt_lt_prog_compiler_pic_CXX
18984 # Compiler flag to prevent dynamic linking.
18985 link_static_flag=$lt_lt_prog_compiler_static_CXX
18987 # Does compiler simultaneously support -c and -o options?
18988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18990 # Whether or not to add -lc for building shared libraries.
18991 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18993 # Whether or not to disallow shared libs when runtime libs are static.
18994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18996 # Compiler flag to allow reflexive dlopens.
18997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18999 # Compiler flag to generate shared objects directly from archives.
19000 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19002 # Whether the compiler copes with passing no objects directly.
19003 compiler_needs_object=$lt_compiler_needs_object_CXX
19005 # Create an old-style archive from a shared archive.
19006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19008 # Create a temporary old-style archive to link instead of a shared archive.
19009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19011 # Commands used to build a shared archive.
19012 archive_cmds=$lt_archive_cmds_CXX
19013 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19015 # Commands used to build a loadable module if different from building
19016 # a shared archive.
19017 module_cmds=$lt_module_cmds_CXX
19018 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19020 # Whether we are building with GNU ld or not.
19021 with_gnu_ld=$lt_with_gnu_ld_CXX
19023 # Flag that allows shared libraries with undefined symbols to be built.
19024 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19026 # Flag that enforces no undefined symbols.
19027 no_undefined_flag=$lt_no_undefined_flag_CXX
19029 # Flag to hardcode \$libdir into a binary during linking.
19030 # This must work even if \$libdir does not exist
19031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19033 # If ld is used when linking, flag to hardcode \$libdir into a binary
19034 # during linking. This must work even if \$libdir does not exist.
19035 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19037 # Whether we need a single "-rpath" flag with a separated argument.
19038 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19041 # DIR into the resulting binary.
19042 hardcode_direct=$hardcode_direct_CXX
19044 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19045 # DIR into the resulting binary and the resulting library dependency is
19046 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19047 # library is relocated.
19048 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19050 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19051 # into the resulting binary.
19052 hardcode_minus_L=$hardcode_minus_L_CXX
19054 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19055 # into the resulting binary.
19056 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19058 # Set to "yes" if building a shared library automatically hardcodes DIR
19059 # into the library and all subsequent libraries and executables linked
19061 hardcode_automatic=$hardcode_automatic_CXX
19063 # Set to yes if linker adds runtime paths of dependent libraries
19064 # to runtime path list.
19065 inherit_rpath=$inherit_rpath_CXX
19067 # Whether libtool must link a program against all its dependency libraries.
19068 link_all_deplibs=$link_all_deplibs_CXX
19070 # Fix the shell variable \$srcfile for the compiler.
19071 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19073 # Set to "yes" if exported symbols are required.
19074 always_export_symbols=$always_export_symbols_CXX
19076 # The commands to list exported symbols.
19077 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19079 # Symbols that should not be listed in the preloaded symbols.
19080 exclude_expsyms=$lt_exclude_expsyms_CXX
19082 # Symbols that must always be exported.
19083 include_expsyms=$lt_include_expsyms_CXX
19085 # Commands necessary for linking programs (against libraries) with templates.
19086 prelink_cmds=$lt_prelink_cmds_CXX
19088 # Specify filename containing input files.
19089 file_list_spec=$lt_file_list_spec_CXX
19091 # How to hardcode a shared library path into an executable.
19092 hardcode_action=$hardcode_action_CXX
19094 # The directories searched by this compiler when creating a shared library.
19095 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19097 # Dependencies to place before and after the objects being linked to
19098 # create a shared library.
19099 predep_objects=$lt_predep_objects_CXX
19100 postdep_objects=$lt_postdep_objects_CXX
19101 predeps=$lt_predeps_CXX
19102 postdeps=$lt_postdeps_CXX
19104 # The library search path used internally by the compiler when linking
19105 # a shared library.
19106 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19108 # ### END LIBTOOL TAG CONFIG: CXX
19119 ac_clean_files=$ac_clean_files_save
19121 test $ac_write_fail = 0 ||
19122 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19125 # configure is writing to config.log, and then calls config.status.
19126 # config.status does its own redirection, appending to config.log.
19127 # Unfortunately, on DOS this fails, as config.log is still kept open
19128 # by configure, so config.status won't be able to write to it; its
19129 # output is simply discarded. So we exec the FD to /dev/null,
19130 # effectively closing config.log, so it can be properly (re)opened and
19131 # appended to by config.status. When coming back to configure, we
19132 # need to make the FD available again.
19133 if test "$no_create" != yes; then
19135 ac_config_status_args=
19136 test "$silent" = yes &&
19137 ac_config_status_args="$ac_config_status_args --quiet"
19139 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19141 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19142 # would make configure fail if this is the last instruction.
19143 $ac_cs_success || as_fn_exit 1
19145 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19147 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}