2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for glog 0.3.4.
5 # Report bugs to <opensource@google.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: opensource@google.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='glog'
593 PACKAGE_VERSION='0.3.4'
594 PACKAGE_STRING='glog 0.3.4'
595 PACKAGE_BUGREPORT='opensource@google.com'
598 ac_unique_file="README"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
651 ac_cv_have_inttypes_h
652 ac_cv_have_systypes_h
654 ac_cv_have___builtin_expect
655 ac_cv___attribute___printf_4_5
656 ac_cv___attribute___noinline
657 ac_cv___attribute___noreturn
658 ac_cv_cxx_using_operator
660 ac_google_end_namespace
661 ac_google_start_namespace
675 ENABLE_FRAME_POINTERS_FALSE
676 ENABLE_FRAME_POINTERS_TRUE
746 INSTALL_STRIP_PROGRAM
788 program_transform_name
801 enable_option_checking
803 enable_dependency_tracking
811 enable_frame_pointers
816 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 ac_unrecognized_opts=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
989 -help | --help | --hel | --he | -h)
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1138 -site=* | --site=* | --sit=*)
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1265 # Be sure to have absolute directory names.
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1369 \`configure' configures glog 0.3.4 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of glog 0.3.4:";;
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-dependency-tracking
1450 do not reject slow dependency extractors
1451 --disable-dependency-tracking
1452 speeds up one-time build
1453 --enable-shared[=PKGS] build shared libraries [default=yes]
1454 --enable-static[=PKGS] build static libraries [default=yes]
1455 --enable-fast-install[=PKGS]
1456 optimize for fast installation [default=yes]
1457 --disable-libtool-lock avoid locking (might break parallel builds)
1458 --enable-frame-pointers On x86_64 systems, compile with
1459 -fno-omit-frame-pointer (see INSTALL)
1460 --disable-rtti Disable RTTI in glog
1461 --enable-namespace=FOO to define these Google
1462 classes in the FOO namespace. --disable-namespace
1463 to define them in the global namespace. Default
1464 is to define them in namespace google.
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1471 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1472 --with-sysroot=DIR Search for dependent libraries within DIR
1473 (or the compiler's sysroot if not specified).
1474 --with-gflags=GFLAGS_DIR
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1487 CXXCPP C++ preprocessor
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <opensource@google.com>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1555 glog configure 0.3.4
1556 generated by GNU Autoconf 2.69
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_compile
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1644 # ac_fn_cxx_try_compile LINENO
1645 # ----------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_cxx_try_compile ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext
1651 if { { ac_try="$ac_compile"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_cxx_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext; then :
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1680 } # ac_fn_cxx_try_compile
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 test -x conftest$ac_exeext
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1726 } # ac_fn_c_try_link
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1745 if ac_fn_c_try_compile "$LINENO"; then :
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 } # ac_fn_c_check_header_compile
1759 # ac_fn_c_try_run LINENO
1760 # ----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762 # that executables *can* be run.
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_link"
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>&5
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777 { { case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_try") 2>&5
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; }; }; then :
1789 $as_echo "$as_me: program exited with status $ac_status" >&5
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=$ac_status
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1801 # ac_fn_c_check_func LINENO FUNC VAR
1802 # ----------------------------------
1803 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1804 ac_fn_c_check_func ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1816 #define $2 innocuous_$2
1818 /* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $2 (); below.
1820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821 <limits.h> exists even on freestanding compilers. */
1824 # include <limits.h>
1826 # include <assert.h>
1831 /* Override any GCC internal prototype to avoid an error.
1832 Use char because int might match the return type of a GCC
1833 builtin and then its argument prototype would still apply. */
1838 /* The GNU C library defines this for functions which it implements
1839 to always fail with ENOSYS. Some functions are actually named
1840 something starting with __ and the normal name is an alias. */
1841 #if defined __stub_$2 || defined __stub___$2
1853 if ac_fn_c_try_link "$LINENO"; then :
1858 rm -f core conftest.err conftest.$ac_objext \
1859 conftest$ac_exeext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_func
1868 # ac_fn_cxx_try_cpp LINENO
1869 # ------------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_cxx_try_cpp ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } > conftest.i && {
1890 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1903 } # ac_fn_cxx_try_cpp
1905 # ac_fn_cxx_try_link LINENO
1906 # -------------------------
1907 # Try to link conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_link ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 rm -f conftest.$ac_objext conftest$ac_exeext
1912 if { { ac_try="$ac_link"
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_link") 2>conftest.err
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && {
1928 test -z "$ac_cxx_werror_flag" ||
1929 test ! -s conftest.err
1930 } && test -s conftest$ac_exeext && {
1931 test "$cross_compiling" = yes ||
1932 test -x conftest$ac_exeext
1936 $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1941 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943 # interfere with the next link command; also delete a directory that is
1944 # left behind by Apple's compiler. We do this before executing the actions.
1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1949 } # ac_fn_cxx_try_link
1951 # ac_fn_cxx_try_run LINENO
1952 # ------------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1954 # that executables *can* be run.
1955 ac_fn_cxx_try_run ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_link"
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>&5
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1969 { { case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_try") 2>&5
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; }; }; then :
1981 $as_echo "$as_me: program exited with status $ac_status" >&5
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=$ac_status
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1991 } # ac_fn_cxx_try_run
1993 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1994 # ---------------------------------------------------------
1995 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1996 # the include files in INCLUDES and setting the cache variable VAR
1998 ac_fn_cxx_check_header_mongrel ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if eval \${$3+:} false; then :
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 # Is the header compilable?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2013 $as_echo_n "checking $2 usability... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2019 if ac_fn_cxx_try_compile "$LINENO"; then :
2020 ac_header_compiler=yes
2022 ac_header_compiler=no
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2026 $as_echo "$ac_header_compiler" >&6; }
2028 # Is the header present?
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2030 $as_echo_n "checking $2 presence... " >&6; }
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 if ac_fn_cxx_try_cpp "$LINENO"; then :
2036 ac_header_preproc=yes
2038 ac_header_preproc=no
2040 rm -f conftest.err conftest.i conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2042 $as_echo "$ac_header_preproc" >&6; }
2044 # So? What about this header?
2045 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2048 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2054 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2056 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2058 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2060 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 ( $as_echo "## ------------------------------------ ##
2064 ## Report this to opensource@google.com ##
2065 ## ------------------------------------ ##"
2066 ) | sed "s/^/$as_me: WARNING: /" >&2
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2074 eval "$3=\$ac_header_compiler"
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_cxx_check_header_mongrel
2084 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2085 # ----------------------------------------------
2086 # Tries to find the compile-time value of EXPR in a program that includes
2087 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2089 ac_fn_cxx_compute_int ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if test "$cross_compiling" = yes; then
2093 # Depending upon the size, compute the lo and hi bounds.
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) >= 0)];
2102 return test_array [0];
2108 if ac_fn_cxx_try_compile "$LINENO"; then :
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2117 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 return test_array [0];
2125 if ac_fn_cxx_try_compile "$LINENO"; then :
2126 ac_hi=$ac_mid; break
2128 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2129 if test $ac_lo -le $ac_mid; then
2133 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) < 0)];
2146 return test_array [0];
2152 if ac_fn_cxx_try_compile "$LINENO"; then :
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2161 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2163 return test_array [0];
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 return test_array [0];
2204 if ac_fn_cxx_try_compile "$LINENO"; then :
2207 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2219 static long int longval () { return $2; }
2220 static unsigned long int ulongval () { return $2; }
2227 FILE *f = fopen ("conftest.val", "w");
2232 long int i = longval ();
2235 fprintf (f, "%ld", i);
2239 unsigned long int i = ulongval ();
2242 fprintf (f, "%lu", i);
2244 /* Do not output a trailing newline, as this causes \r\n confusion
2245 on some platforms. */
2246 return ferror (f) || fclose (f) != 0;
2252 if ac_fn_cxx_try_run "$LINENO"; then :
2253 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2258 conftest.$ac_objext conftest.beam conftest.$ac_ext
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2265 } # ac_fn_cxx_compute_int
2267 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2268 # ---------------------------------------------
2269 # Tests whether TYPE exists after having included INCLUDES, setting cache
2270 # variable VAR accordingly.
2271 ac_fn_cxx_check_type ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2292 if ac_fn_cxx_try_compile "$LINENO"; then :
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2305 if ac_fn_cxx_try_compile "$LINENO"; then :
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_cxx_check_type
2321 # ac_fn_cxx_check_func LINENO FUNC VAR
2322 # ------------------------------------
2323 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2324 ac_fn_cxx_check_func ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if eval \${$3+:} false; then :
2330 $as_echo_n "(cached) " >&6
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2336 #define $2 innocuous_$2
2338 /* System header to define __stub macros and hopefully few prototypes,
2339 which can conflict with char $2 (); below.
2340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2341 <limits.h> exists even on freestanding compilers. */
2344 # include <limits.h>
2346 # include <assert.h>
2351 /* Override any GCC internal prototype to avoid an error.
2352 Use char because int might match the return type of a GCC
2353 builtin and then its argument prototype would still apply. */
2358 /* The GNU C library defines this for functions which it implements
2359 to always fail with ENOSYS. Some functions are actually named
2360 something starting with __ and the normal name is an alias. */
2361 #if defined __stub_$2 || defined __stub___$2
2373 if ac_fn_cxx_try_link "$LINENO"; then :
2378 rm -f core conftest.err conftest.$ac_objext \
2379 conftest$ac_exeext conftest.$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386 } # ac_fn_cxx_check_func
2387 cat >config.log <<_ACEOF
2388 This file contains any messages produced by compilers while
2389 running configure, to aid debugging if configure makes a mistake.
2391 It was created by glog $as_me 0.3.4, which was
2392 generated by GNU Autoconf 2.69. Invocation command line was
2404 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2411 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2413 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2414 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2415 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2416 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2417 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2418 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2419 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 $as_echo "PATH: $as_dir"
2444 # Keep a trace of the command line.
2445 # Strip out --no-create and --no-recursion so they do not pile up.
2446 # Strip out --silent because we don't want to record it for future runs.
2447 # Also quote any args containing shell meta-characters.
2448 # Make two passes to allow for proper duplicate-argument suppression.
2452 ac_must_keep_next=false
2458 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2460 | -silent | --silent | --silen | --sile | --sil)
2463 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2466 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2468 as_fn_append ac_configure_args1 " '$ac_arg'"
2469 if test $ac_must_keep_next = true; then
2470 ac_must_keep_next=false # Got value, back to normal.
2473 *=* | --config-cache | -C | -disable-* | --disable-* \
2474 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2475 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2476 | -with-* | --with-* | -without-* | --without-* | --x)
2477 case "$ac_configure_args0 " in
2478 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2481 -* ) ac_must_keep_next=true ;;
2484 as_fn_append ac_configure_args " '$ac_arg'"
2489 { ac_configure_args0=; unset ac_configure_args0;}
2490 { ac_configure_args1=; unset ac_configure_args1;}
2492 # When interrupted or exit'd, cleanup temporary files, and complete
2493 # config.log. We remove comments because anyway the quotes in there
2494 # would cause problems or look ugly.
2495 # WARNING: Use '\'' to represent an apostrophe within the trap.
2496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2497 trap 'exit_status=$?
2498 # Save into config.log some information that might help in debugging.
2502 $as_echo "## ---------------- ##
2503 ## Cache variables. ##
2504 ## ---------------- ##"
2506 # The following way of writing the cache mishandles newlines in values,
2508 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2509 eval ac_val=\$$ac_var
2513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2517 _ | IFS | as_nl) ;; #(
2518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2519 *) { eval $ac_var=; unset $ac_var;} ;;
2524 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2525 *${as_nl}ac_space=\ *)
2527 "s/'\''/'\''\\\\'\'''\''/g;
2528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2538 $as_echo "## ----------------- ##
2539 ## Output variables. ##
2540 ## ----------------- ##"
2542 for ac_var in $ac_subst_vars
2544 eval ac_val=\$$ac_var
2546 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548 $as_echo "$ac_var='\''$ac_val'\''"
2552 if test -n "$ac_subst_files"; then
2553 $as_echo "## ------------------- ##
2554 ## File substitutions. ##
2555 ## ------------------- ##"
2557 for ac_var in $ac_subst_files
2559 eval ac_val=\$$ac_var
2561 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2563 $as_echo "$ac_var='\''$ac_val'\''"
2568 if test -s confdefs.h; then
2569 $as_echo "## ----------- ##
2576 test "$ac_signal" != 0 &&
2577 $as_echo "$as_me: caught signal $ac_signal"
2578 $as_echo "$as_me: exit $exit_status"
2580 rm -f core *.core core.conftest.* &&
2581 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2584 for ac_signal in 1 2 13 15; do
2585 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2590 rm -f -r conftest* confdefs.h
2592 $as_echo "/* confdefs.h */" > confdefs.h
2594 # Predefined preprocessor variables.
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_NAME "$PACKAGE_NAME"
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_STRING "$PACKAGE_STRING"
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_URL "$PACKAGE_URL"
2621 # Let the site file select an alternate cache file if it wants to.
2622 # Prefer an explicitly selected file to automatically selected ones.
2625 if test -n "$CONFIG_SITE"; then
2626 # We do not want a PATH search for config.site.
2627 case $CONFIG_SITE in #((
2628 -*) ac_site_file1=./$CONFIG_SITE;;
2629 */*) ac_site_file1=$CONFIG_SITE;;
2630 *) ac_site_file1=./$CONFIG_SITE;;
2632 elif test "x$prefix" != xNONE; then
2633 ac_site_file1=$prefix/share/config.site
2634 ac_site_file2=$prefix/etc/config.site
2636 ac_site_file1=$ac_default_prefix/share/config.site
2637 ac_site_file2=$ac_default_prefix/etc/config.site
2639 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2641 test "x$ac_site_file" = xNONE && continue
2642 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2644 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2645 sed 's/^/| /' "$ac_site_file" >&5
2647 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 as_fn_error $? "failed to load site script $ac_site_file
2650 See \`config.log' for more details" "$LINENO" 5; }
2654 if test -r "$cache_file"; then
2655 # Some versions of bash will fail to source /dev/null (special files
2656 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2657 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2659 $as_echo "$as_me: loading cache $cache_file" >&6;}
2661 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2662 *) . "./$cache_file";;
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2667 $as_echo "$as_me: creating cache $cache_file" >&6;}
2671 # Check that the precious variables saved in the cache have kept the same
2673 ac_cache_corrupted=false
2674 for ac_var in $ac_precious_vars; do
2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676 eval ac_new_set=\$ac_env_${ac_var}_set
2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678 eval ac_new_val=\$ac_env_${ac_var}_value
2679 case $ac_old_set,$ac_new_set in
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2690 if test "x$ac_old_val" != "x$ac_new_val"; then
2691 # differences in whitespace do not lead to failure.
2692 ac_old_val_w=`echo x $ac_old_val`
2693 ac_new_val_w=`echo x $ac_new_val`
2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697 ac_cache_corrupted=:
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701 eval $ac_var=\$ac_old_val
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2704 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2706 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2709 # Pass precious variables to config.status.
2710 if test "$ac_new_set" = set; then
2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 *) ac_arg=$ac_var=$ac_new_val ;;
2715 case " $ac_configure_args " in
2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2721 if $ac_cache_corrupted; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2728 ## -------------------- ##
2729 ## Main body of script. ##
2730 ## -------------------- ##
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 # The argument here is just something that should be in the current directory
2740 # (for sanity checking)
2743 am__api_version='1.14'
2746 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2747 if test -f "$ac_dir/install-sh"; then
2749 ac_install_sh="$ac_aux_dir/install-sh -c"
2751 elif test -f "$ac_dir/install.sh"; then
2753 ac_install_sh="$ac_aux_dir/install.sh -c"
2755 elif test -f "$ac_dir/shtool"; then
2757 ac_install_sh="$ac_aux_dir/shtool install -c"
2761 if test -z "$ac_aux_dir"; then
2762 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2765 # These three variables are undocumented and unsupported,
2766 # and are intended to be withdrawn in a future Autoconf release.
2767 # They can cause serious problems if a builder's source tree is in a directory
2768 # whose full name contains unusual characters.
2769 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2770 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2771 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2774 # Find a good install program. We prefer a C program (faster),
2775 # so one script is as good as another. But avoid the broken or
2776 # incompatible versions:
2777 # SysV /etc/install, /usr/sbin/install
2778 # SunOS /usr/etc/install
2779 # IRIX /sbin/install
2781 # AmigaOS /C/install, which installs bootblocks on floppy discs
2782 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2783 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2784 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2785 # OS/2's system install, which has a completely different semantic
2786 # ./install, which can be erroneously created by make from ./install.sh.
2787 # Reject install programs that cannot install multiple files.
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2789 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2790 if test -z "$INSTALL"; then
2791 if ${ac_cv_path_install+:} false; then :
2792 $as_echo_n "(cached) " >&6
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 # Account for people who put trailing slashes in PATH elements.
2800 case $as_dir/ in #((
2801 ./ | .// | /[cC]/* | \
2802 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2803 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2806 # OSF1 and SCO ODT 3.0 have their own names for install.
2807 # Don't use installbsd from OSF since it installs stuff as root
2809 for ac_prog in ginstall scoinst install; do
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2812 if test $ac_prog = install &&
2813 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2814 # AIX install. It has an incompatible calling convention.
2816 elif test $ac_prog = install &&
2817 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # program-specific install script used by HP pwplus--don't use.
2821 rm -rf conftest.one conftest.two conftest.dir
2822 echo one > conftest.one
2823 echo two > conftest.two
2825 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2826 test -s conftest.one && test -s conftest.two &&
2827 test -s conftest.dir/conftest.one &&
2828 test -s conftest.dir/conftest.two
2830 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2843 rm -rf conftest.one conftest.two conftest.dir
2846 if test "${ac_cv_path_install+set}" = set; then
2847 INSTALL=$ac_cv_path_install
2849 # As a last resort, use the slow shell script. Don't cache a
2850 # value for INSTALL within a source directory, because that will
2851 # break other packages using the cache if that directory is
2852 # removed, or if the value is a relative name.
2853 INSTALL=$ac_install_sh
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2857 $as_echo "$INSTALL" >&6; }
2859 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2860 # It thinks the first close brace ends the variable substitution.
2861 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2863 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2865 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2868 $as_echo_n "checking whether build environment is sane... " >&6; }
2869 # Reject unsafe characters in $srcdir or the absolute working directory
2870 # name. Accept space and tab only in the latter.
2874 *[\\\"\#\$\&\'\`$am_lf]*)
2875 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2878 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2879 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2882 # Do 'set' in a subshell so we don't clobber the current shell's
2883 # arguments. Must try -L first in case configure is actually a
2884 # symlink; some systems play weird games with the mod time of symlinks
2885 # (eg FreeBSD returns the mod time of the symlink's containing
2889 for am_try in 1 2; do
2890 echo "timestamp, slept: $am_has_slept" > conftest.file
2891 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2892 if test "$*" = "X"; then
2894 set X `ls -t "$srcdir/configure" conftest.file`
2896 if test "$*" != "X $srcdir/configure conftest.file" \
2897 && test "$*" != "X conftest.file $srcdir/configure"; then
2899 # If neither matched, then we have a broken ls. This can happen
2900 # if, for instance, CONFIG_SHELL is bash and it inherits a
2901 # broken ls alias from the environment. This has actually
2902 # happened. Such a system could not be considered "sane".
2903 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2904 alias in your environment" "$LINENO" 5
2906 if test "$2" = conftest.file || test $am_try -eq 2; then
2913 test "$2" = conftest.file
2919 as_fn_error $? "newly created file is older than distributed files!
2920 Check your system clock" "$LINENO" 5
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923 $as_echo "yes" >&6; }
2924 # If we didn't sleep, we still need to ensure time stamps of config.status and
2925 # generated files are strictly newer.
2927 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2934 test "$program_prefix" != NONE &&
2935 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2936 # Use a double $ so make ignores it.
2937 test "$program_suffix" != NONE &&
2938 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2939 # Double any \ or $.
2940 # By default was `s,x,x', remove it if useless.
2941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2942 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2944 # expand $ac_aux_dir to an absolute path
2945 am_aux_dir=`cd $ac_aux_dir && pwd`
2947 if test x"${MISSING+set}" != xset; then
2950 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2952 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2955 # Use eval to expand $SHELL
2956 if eval "$MISSING --is-lightweight"; then
2957 am_missing_run="$MISSING "
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2961 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2964 if test x"${install_sh}" != xset; then
2967 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2969 install_sh="\${SHELL} $am_aux_dir/install-sh"
2973 # Installed binaries are usually stripped using 'strip' when the user
2974 # run "make install-strip". However 'strip' might not be the right
2975 # tool to use in cross-compilation environments, therefore Automake
2976 # will honor the 'STRIP' environment variable to overrule this program.
2977 if test "$cross_compiling" != no; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}strip; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_STRIP+:} false; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$STRIP"; then
2987 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 STRIP=$ac_cv_prog_STRIP
3007 if test -n "$STRIP"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3009 $as_echo "$STRIP" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3017 if test -z "$ac_cv_prog_STRIP"; then
3019 # Extract the first word of "strip", so it can be a program name with args.
3020 set dummy strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$ac_ct_STRIP"; then
3027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_ac_ct_STRIP="strip"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3047 if test -n "$ac_ct_STRIP"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3049 $as_echo "$ac_ct_STRIP" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3055 if test "x$ac_ct_STRIP" = x; then
3058 case $cross_compiling:$ac_tool_warned in
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3067 STRIP="$ac_cv_prog_STRIP"
3071 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3074 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3075 if test -z "$MKDIR_P"; then
3076 if ${ac_cv_path_mkdir+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3083 test -z "$as_dir" && as_dir=.
3084 for ac_prog in mkdir gmkdir; do
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3087 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3088 'mkdir (GNU coreutils) '* | \
3089 'mkdir (coreutils) '* | \
3090 'mkdir (fileutils) '4.1*)
3091 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3101 test -d ./--version && rmdir ./--version
3102 if test "${ac_cv_path_mkdir+set}" = set; then
3103 MKDIR_P="$ac_cv_path_mkdir -p"
3105 # As a last resort, use the slow shell script. Don't cache a
3106 # value for MKDIR_P within a source directory, because that will
3107 # break other packages using the cache if that directory is
3108 # removed, or if the value is a relative name.
3109 MKDIR_P="$ac_install_sh -d"
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3113 $as_echo "$MKDIR_P" >&6; }
3115 for ac_prog in gawk mawk nawk awk
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_AWK+:} false; then :
3122 $as_echo_n "(cached) " >&6
3124 if test -n "$AWK"; then
3125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_AWK="$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 if test -n "$AWK"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3147 $as_echo "$AWK" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3154 test -n "$AWK" && break
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3158 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3160 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3161 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3162 $as_echo_n "(cached) " >&6
3164 cat >conftest.make <<\_ACEOF
3167 @echo '@@@%%%=$(MAKE)=@@@%%%'
3169 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3170 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3172 eval ac_cv_prog_make_${ac_make}_set=yes;;
3174 eval ac_cv_prog_make_${ac_make}_set=no;;
3178 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3180 $as_echo "yes" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 SET_MAKE="MAKE=${MAKE-make}"
3188 rm -rf .tst 2>/dev/null
3189 mkdir .tst 2>/dev/null
3190 if test -d .tst; then
3195 rmdir .tst 2>/dev/null
3197 # Check whether --enable-silent-rules was given.
3198 if test "${enable_silent_rules+set}" = set; then :
3199 enableval=$enable_silent_rules;
3202 case $enable_silent_rules in # (((
3203 yes) AM_DEFAULT_VERBOSITY=0;;
3204 no) AM_DEFAULT_VERBOSITY=1;;
3205 *) AM_DEFAULT_VERBOSITY=1;;
3207 am_make=${MAKE-make}
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3209 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3210 if ${am_cv_make_support_nested_variables+:} false; then :
3211 $as_echo_n "(cached) " >&6
3213 if $as_echo 'TRUE=$(BAR$(V))
3219 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3220 am_cv_make_support_nested_variables=yes
3222 am_cv_make_support_nested_variables=no
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3226 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3227 if test $am_cv_make_support_nested_variables = yes; then
3229 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3231 AM_V=$AM_DEFAULT_VERBOSITY
3232 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3236 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3237 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3238 # is not polluted with repeated "-I."
3239 am__isrc=' -I$(srcdir)'
3240 # test to see if srcdir already configured
3241 if test -f $srcdir/config.status; then
3242 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3246 # test whether we have cygpath
3247 if test -z "$CYGPATH_W"; then
3248 if (cygpath --version) >/dev/null 2>/dev/null; then
3249 CYGPATH_W='cygpath -w'
3256 # Define the identity of the package.
3261 cat >>confdefs.h <<_ACEOF
3262 #define PACKAGE "$PACKAGE"
3266 cat >>confdefs.h <<_ACEOF
3267 #define VERSION "$VERSION"
3270 # Some tools Automake needs.
3272 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3275 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3278 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3281 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3284 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3286 # For better backward compatibility. To be removed once Automake 1.9.x
3287 # dies out for good. For more background, see:
3288 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3289 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3290 mkdir_p='$(MKDIR_P)'
3292 # We need awk for the "check" target. The system "awk" is bad on
3294 # Always define AMTAR for backward compatibility. Yes, it's still used
3295 # in the wild :-( We should find a proper way to deprecate it ...
3299 # We'll loop over all known methods to create a tar archive until one works.
3300 _am_tools='gnutar pax cpio none'
3302 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3309 # POSIX will say in a future version that running "rm -f" with no argument
3310 # is OK; and we want to be able to make that assumption in our Makefile
3311 # recipes. So use an aggressive probe to check that the usage we want is
3312 # actually supported "in the wild" to an acceptable degree.
3313 # See automake bug#10828.
3314 # To make any issue more visible, cause the running configure to be aborted
3315 # by default if the 'rm' program in use doesn't match our expectations; the
3316 # user can still override this though.
3317 if rm -f && rm -fr && rm -rf; then : OK; else
3321 Your 'rm' program seems unable to run without file operands specified
3322 on the command line, even when the '-f' option is present. This is contrary
3323 to the behaviour of most rm programs out there, and not conforming with
3324 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3326 Please tell bug-automake@gnu.org about your system, including the value
3327 of your $PATH and any error possibly output before this message. This
3328 can help us improve future automake versions.
3331 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3332 echo 'Configuration will proceed anyway, since you have set the' >&2
3333 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3337 Aborting the configuration process, to ensure you take notice of the issue.
3339 You can download and install GNU coreutils to get an 'rm' implementation
3340 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3342 If you want to complete the configuration process using your problematic
3343 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3344 to "yes", and re-run configure.
3347 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3350 ac_config_headers="$ac_config_headers src/config.h"
3354 ac_cpp='$CXXCPP $CPPFLAGS'
3355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3360 # Checks for programs.
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 if test -n "$CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 $as_echo "$CC" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3405 if test -z "$ac_cv_prog_CC"; then
3407 # Extract the first word of "gcc", so it can be a program name with args.
3408 set dummy gcc; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 if test -n "$ac_ct_CC"; then
3415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_ac_ct_CC="gcc"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435 if test -n "$ac_ct_CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 $as_echo "$ac_ct_CC" >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3443 if test "x$ac_ct_CC" = x; then
3446 case $cross_compiling:$ac_tool_warned in
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3450 ac_tool_warned=yes ;;
3458 if test -z "$CC"; then
3459 if test -n "$ac_tool_prefix"; then
3460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3461 set dummy ${ac_tool_prefix}cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_prog_CC="${ac_tool_prefix}cc"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 if test -n "$CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490 $as_echo "$CC" >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3499 if test -z "$CC"; then
3500 # Extract the first word of "cc", so it can be a program name with args.
3501 set dummy cc; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_CC+:} false; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$CC"; then
3508 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3519 ac_prog_rejected=yes
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 if test $ac_prog_rejected = yes; then
3531 # We found a bogon in the path, so make sure we never use it.
3532 set dummy $ac_cv_prog_CC
3534 if test $# != 0; then
3535 # We chose a different compiler from the bogus one.
3536 # However, it has the same basename, so the bogon will be chosen
3537 # first if we set CC to just the basename; use the full file name.
3539 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3545 if test -n "$CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547 $as_echo "$CC" >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3555 if test -z "$CC"; then
3556 if test -n "$ac_tool_prefix"; then
3557 for ac_prog in cl.exe
3559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_CC+:} false; then :
3564 $as_echo_n "(cached) " >&6
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3596 test -n "$CC" && break
3599 if test -z "$CC"; then
3601 for ac_prog in cl.exe
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -n "$ac_ct_CC"; then
3611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_ac_ct_CC="$ac_prog"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3631 if test -n "$ac_ct_CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3633 $as_echo "$ac_ct_CC" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3640 test -n "$ac_ct_CC" && break
3643 if test "x$ac_ct_CC" = x; then
3646 case $cross_compiling:$ac_tool_warned in
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3650 ac_tool_warned=yes ;;
3659 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error $? "no acceptable C compiler found in \$PATH
3662 See \`config.log' for more details" "$LINENO" 5; }
3664 # Provide some information about the compiler.
3665 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3668 for ac_option in --version -v -V -qversion; do
3669 { { ac_try="$ac_compiler $ac_option >&5"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3678 if test -s conftest.err; then
3680 ... rest of stderr output deleted ...
3681 10q' conftest.err >conftest.er1
3682 cat conftest.er1 >&5
3684 rm -f conftest.er1 conftest.err
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3700 ac_clean_files_save=$ac_clean_files
3701 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3702 # Try to create an executable without -o first, disregard a.out.
3703 # It will help us diagnose broken compilers, and finding out an intuition
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3706 $as_echo_n "checking whether the C compiler works... " >&6; }
3707 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3709 # The possible output files:
3710 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3713 for ac_file in $ac_files
3716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3717 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3722 if { { ac_try="$ac_link_default"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_link_default") 2>&5
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }; then :
3733 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3734 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3735 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3736 # so that the user can short-circuit this test for compilers unknown to
3738 for ac_file in $ac_files ''
3740 test -f "$ac_file" || continue
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3745 # We found the default executable, but exeext='' is most
3749 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3753 # We set ac_cv_exeext here because the later test for it is not
3754 # safe: cross compilers may not add the suffix if given an `-o'
3755 # argument, so we may need to know it at that point already.
3756 # Even if this section looks crufty: it has the advantage of
3763 test "$ac_cv_exeext" = no && ac_cv_exeext=
3768 if test -z "$ac_file"; then :
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 $as_echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error 77 "C compiler cannot create executables
3777 See \`config.log' for more details" "$LINENO" 5; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3780 $as_echo "yes" >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3783 $as_echo_n "checking for C compiler default output file name... " >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3785 $as_echo "$ac_file" >&6; }
3786 ac_exeext=$ac_cv_exeext
3788 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3789 ac_clean_files=$ac_clean_files_save
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3791 $as_echo_n "checking for suffix of executables... " >&6; }
3792 if { { ac_try="$ac_link"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_link") 2>&5
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }; then :
3803 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3804 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3805 # work properly (i.e., refer to `conftest.exe'), while it won't with
3807 for ac_file in conftest.exe conftest conftest.*; do
3808 test -f "$ac_file" || continue
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3820 See \`config.log' for more details" "$LINENO" 5; }
3822 rm -f conftest conftest$ac_cv_exeext
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3824 $as_echo "$ac_cv_exeext" >&6; }
3826 rm -f conftest.$ac_ext
3827 EXEEXT=$ac_cv_exeext
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3835 FILE *f = fopen ("conftest.out", "w");
3836 return ferror (f) || fclose (f) != 0;
3842 ac_clean_files="$ac_clean_files conftest.out"
3843 # Check that the compiler produces executables we can run. If not, either
3844 # the compiler is broken, or we cross compile.
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3846 $as_echo_n "checking whether we are cross compiling... " >&6; }
3847 if test "$cross_compiling" != yes; then
3848 { { ac_try="$ac_link"
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_link") 2>&5
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }
3859 if { ac_try='./conftest$ac_cv_exeext'
3860 { { case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_try") 2>&5
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }; }; then
3872 if test "$cross_compiling" = maybe; then
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error $? "cannot run C compiled programs.
3878 If you meant to cross compile, use \`--host'.
3879 See \`config.log' for more details" "$LINENO" 5; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3884 $as_echo "$cross_compiling" >&6; }
3886 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3887 ac_clean_files=$ac_clean_files_save
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3889 $as_echo_n "checking for suffix of object files... " >&6; }
3890 if ${ac_cv_objext+:} false; then :
3891 $as_echo_n "(cached) " >&6
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3904 rm -f conftest.o conftest.obj
3905 if { { ac_try="$ac_compile"
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_compile") 2>&5
3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }; then :
3916 for ac_file in conftest.o conftest.obj conftest.*; do
3917 test -f "$ac_file" || continue;
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3925 $as_echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error $? "cannot compute suffix of object files: cannot compile
3931 See \`config.log' for more details" "$LINENO" 5; }
3933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3936 $as_echo "$ac_cv_objext" >&6; }
3937 OBJEXT=$ac_cv_objext
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3940 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3941 if ${ac_cv_c_compiler_gnu+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3958 if ac_fn_c_try_compile "$LINENO"; then :
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3968 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3969 if test $ac_compiler_gnu = yes; then
3974 ac_test_CFLAGS=${CFLAGS+set}
3975 ac_save_CFLAGS=$CFLAGS
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3977 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3978 if ${ac_cv_prog_cc_g+:} false; then :
3979 $as_echo_n "(cached) " >&6
3981 ac_save_c_werror_flag=$ac_c_werror_flag
3982 ac_c_werror_flag=yes
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 if ac_fn_c_try_compile "$LINENO"; then :
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4011 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_c_werror_flag=$ac_save_c_werror_flag
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4027 if ac_fn_c_try_compile "$LINENO"; then :
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 ac_c_werror_flag=$ac_save_c_werror_flag
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4038 $as_echo "$ac_cv_prog_cc_g" >&6; }
4039 if test "$ac_test_CFLAGS" = set; then
4040 CFLAGS=$ac_save_CFLAGS
4041 elif test $ac_cv_prog_cc_g = yes; then
4042 if test "$GCC" = yes; then
4048 if test "$GCC" = yes; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4056 if ${ac_cv_prog_cc_c89+:} false; then :
4057 $as_echo_n "(cached) " >&6
4059 ac_cv_prog_cc_c89=no
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.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
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4156 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4157 if ${am_cv_prog_cc_c_o+:} false; then :
4158 $as_echo_n "(cached) " >&6
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4171 # Make sure it works both with $CC and with simple cc.
4172 # Following AC_PROG_CC_C_O, we do the test twice because some
4173 # compilers refuse to overwrite an existing .o file with -o,
4174 # though they will create one.
4175 am_cv_prog_cc_c_o=yes
4177 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4178 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } \
4182 && test -f conftest2.$ac_objext; then
4185 am_cv_prog_cc_c_o=no
4189 rm -f core conftest*
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4193 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4194 if test "$am_cv_prog_cc_c_o" != yes; then
4195 # Losing compiler, so override with the script.
4196 # FIXME: It is wrong to rewrite CC.
4197 # But if we don't then we get into trouble of one sort or another.
4198 # A longer-term fix would be to have automake use am__CC in this case,
4199 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4200 CC="$am_aux_dir/compile $CC"
4203 ac_cpp='$CXXCPP $CPPFLAGS'
4204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4208 DEPDIR="${am__leading_dot}deps"
4210 ac_config_commands="$ac_config_commands depfiles"
4213 am_make=${MAKE-make}
4214 cat > confinc << 'END'
4216 @echo this is the am__doit target
4219 # If we don't find an include directive, just comment out the code.
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4221 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4225 # First try GNU make style include.
4226 echo "include confinc" > confmf
4227 # Ignore all kinds of additional output from 'make'.
4228 case `$am_make -s -f confmf 2> /dev/null` in #(
4229 *the\ am__doit\ target*)
4235 # Now try BSD make style include.
4236 if test "$am__include" = "#"; then
4237 echo '.include "confinc"' > confmf
4238 case `$am_make -s -f confmf 2> /dev/null` in #(
4239 *the\ am__doit\ target*)
4240 am__include=.include
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4249 $as_echo "$_am_result" >&6; }
4250 rm -f confinc confmf
4252 # Check whether --enable-dependency-tracking was given.
4253 if test "${enable_dependency_tracking+set}" = set; then :
4254 enableval=$enable_dependency_tracking;
4257 if test "x$enable_dependency_tracking" != xno; then
4258 am_depcomp="$ac_aux_dir/depcomp"
4262 if test "x$enable_dependency_tracking" != xno; then
4272 depcc="$CC" am_compiler_list=
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4275 $as_echo_n "checking dependency style of $depcc... " >&6; }
4276 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4277 $as_echo_n "(cached) " >&6
4279 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4280 # We make a subdir and do the tests there. Otherwise we can end up
4281 # making bogus files that we don't know about and never remove. For
4282 # instance it was reported that on HP-UX the gcc test will end up
4283 # making a dummy file named 'D' -- because '-MD' means "put the output
4287 # Copy depcomp to subdir because otherwise we won't find it if we're
4288 # using a relative directory.
4289 cp "$am_depcomp" conftest.dir
4291 # We will build objects and dependencies in a subdirectory because
4292 # it helps to detect inapplicable dependency modes. For instance
4293 # both Tru64's cc and ICC support -MD to output dependencies as a
4294 # side effect of compilation, but ICC will put the dependencies in
4295 # the current directory while Tru64 will put them in the object
4299 am_cv_CC_dependencies_compiler_type=none
4300 if test "$am_compiler_list" = ""; then
4301 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4304 case " $depcc " in #(
4305 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4308 for depmode in $am_compiler_list; do
4309 # Setup a source with many dependencies, because some compilers
4310 # like to wrap large dependency lists on column 80 (with \), and
4311 # we should not choose a depcomp mode which is confused by this.
4313 # We need to recreate these files for each test, as the compiler may
4314 # overwrite some of them when testing with obscure command lines.
4315 # This happens at least with the AIX C compiler.
4317 for i in 1 2 3 4 5 6; do
4318 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4319 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4320 # Solaris 10 /bin/sh.
4321 echo '/* dummy */' > sub/conftst$i.h
4323 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4325 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4326 # mode. It turns out that the SunPro C++ compiler does not properly
4327 # handle '-M -o', and we need to detect this. Also, some Intel
4328 # versions had trouble with output in subdirs.
4329 am__obj=sub/conftest.${OBJEXT-o}
4330 am__minus_obj="-o $am__obj"
4333 # This depmode causes a compiler race in universal mode.
4334 test "$am__universal" = false || continue
4337 # After this tag, mechanisms are not by side-effect, so they'll
4338 # only be used when explicitly requested.
4339 if test "x$enable_dependency_tracking" = xyes; then
4345 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4346 # This compiler won't grok '-c -o', but also, the minuso test has
4347 # not run yet. These depmodes are late enough in the game, and
4348 # so weak that their functioning should not be impacted.
4349 am__obj=conftest.${OBJEXT-o}
4354 if depmode=$depmode \
4355 source=sub/conftest.c object=$am__obj \
4356 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4357 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4358 >/dev/null 2>conftest.err &&
4359 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4360 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4361 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4362 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4363 # icc doesn't choke on unknown options, it will just issue warnings
4364 # or remarks (even with -Werror). So we grep stderr for any message
4365 # that says an option was ignored or not supported.
4366 # When given -MP, icc 7.0 and 7.1 complain thusly:
4367 # icc: Command line warning: ignoring option '-M'; no argument required
4368 # The diagnosis changed in icc 8.0:
4369 # icc: Command line remark: option '-MP' not supported
4370 if (grep 'ignoring option' conftest.err ||
4371 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4372 am_cv_CC_dependencies_compiler_type=$depmode
4381 am_cv_CC_dependencies_compiler_type=none
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4386 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4387 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4390 test "x$enable_dependency_tracking" != xno \
4391 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4393 am__fastdepCC_FALSE='#'
4395 am__fastdepCC_TRUE='#'
4396 am__fastdepCC_FALSE=
4401 ac_cpp='$CPP $CPPFLAGS'
4402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4406 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4407 # On Suns, sometimes $CPP names a directory.
4408 if test -n "$CPP" && test -d "$CPP"; then
4411 if test -z "$CPP"; then
4412 if ${ac_cv_prog_CPP+:} false; then :
4413 $as_echo_n "(cached) " >&6
4415 # Double quotes because CPP needs to be expanded
4416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4419 for ac_c_preproc_warn_flag in '' yes
4421 # Use a header file that comes with gcc, so configuring glibc
4422 # with a fresh cross-compiler works.
4423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4424 # <limits.h> exists even on freestanding compilers.
4425 # On the NeXT, cc -E runs the code through the compiler's parser,
4426 # not just through cpp. "Syntax error" is here to catch this case.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4430 # include <limits.h>
4432 # include <assert.h>
4436 if ac_fn_c_try_cpp "$LINENO"; then :
4439 # Broken: fails on valid input.
4442 rm -f conftest.err conftest.i conftest.$ac_ext
4444 # OK, works on sane cases. Now check whether nonexistent headers
4445 # can be detected and how.
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #include <ac_nonexistent.h>
4450 if ac_fn_c_try_cpp "$LINENO"; then :
4451 # Broken: success on invalid input.
4454 # Passes both tests.
4458 rm -f conftest.err conftest.i conftest.$ac_ext
4461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462 rm -f conftest.i conftest.err conftest.$ac_ext
4463 if $ac_preproc_ok; then :
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4476 $as_echo "$CPP" >&6; }
4478 for ac_c_preproc_warn_flag in '' yes
4480 # Use a header file that comes with gcc, so configuring glibc
4481 # with a fresh cross-compiler works.
4482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4483 # <limits.h> exists even on freestanding compilers.
4484 # On the NeXT, cc -E runs the code through the compiler's parser,
4485 # not just through cpp. "Syntax error" is here to catch this case.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4489 # include <limits.h>
4491 # include <assert.h>
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4498 # Broken: fails on valid input.
4501 rm -f conftest.err conftest.i conftest.$ac_ext
4503 # OK, works on sane cases. Now check whether nonexistent headers
4504 # can be detected and how.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <ac_nonexistent.h>
4509 if ac_fn_c_try_cpp "$LINENO"; then :
4510 # Broken: success on invalid input.
4513 # Passes both tests.
4517 rm -f conftest.err conftest.i conftest.$ac_ext
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.i conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then :
4525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details" "$LINENO" 5; }
4532 ac_cpp='$CXXCPP $CPPFLAGS'
4533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4538 ac_cpp='$CXXCPP $CPPFLAGS'
4539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4542 if test -z "$CXX"; then
4543 if test -n "$CCC"; then
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CXX+:} false; then :
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$CXX"; then
4557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 if test -n "$CXX"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4579 $as_echo "$CXX" >&6; }
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4586 test -n "$CXX" && break
4589 if test -z "$CXX"; then
4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$ac_ct_CXX"; then
4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_CXX="$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4623 $as_echo "$ac_ct_CXX" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$ac_ct_CXX" && break
4633 if test "x$ac_ct_CXX" = x; then
4636 case $cross_compiling:$ac_tool_warned in
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4648 # Provide some information about the compiler.
4649 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4652 for ac_option in --version -v -V -qversion; do
4653 { { ac_try="$ac_compiler $ac_option >&5"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4662 if test -s conftest.err; then
4664 ... rest of stderr output deleted ...
4665 10q' conftest.err >conftest.er1
4666 cat conftest.er1 >&5
4668 rm -f conftest.er1 conftest.err
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4674 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4675 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4676 $as_echo_n "(cached) " >&6
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4702 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4703 if test $ac_compiler_gnu = yes; then
4708 ac_test_CXXFLAGS=${CXXFLAGS+set}
4709 ac_save_CXXFLAGS=$CXXFLAGS
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4711 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4712 if ${ac_cv_prog_cxx_g+:} false; then :
4713 $as_echo_n "(cached) " >&6
4715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4716 ac_cxx_werror_flag=yes
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4745 if ac_fn_cxx_try_compile "$LINENO"; then :
4748 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4761 if ac_fn_cxx_try_compile "$LINENO"; then :
4762 ac_cv_prog_cxx_g=yes
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4772 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4773 if test "$ac_test_CXXFLAGS" = set; then
4774 CXXFLAGS=$ac_save_CXXFLAGS
4775 elif test $ac_cv_prog_cxx_g = yes; then
4776 if test "$GXX" = yes; then
4782 if test "$GXX" = yes; then
4789 ac_cpp='$CXXCPP $CPPFLAGS'
4790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4794 depcc="$CXX" am_compiler_list=
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4797 $as_echo_n "checking dependency style of $depcc... " >&6; }
4798 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4802 # We make a subdir and do the tests there. Otherwise we can end up
4803 # making bogus files that we don't know about and never remove. For
4804 # instance it was reported that on HP-UX the gcc test will end up
4805 # making a dummy file named 'D' -- because '-MD' means "put the output
4809 # Copy depcomp to subdir because otherwise we won't find it if we're
4810 # using a relative directory.
4811 cp "$am_depcomp" conftest.dir
4813 # We will build objects and dependencies in a subdirectory because
4814 # it helps to detect inapplicable dependency modes. For instance
4815 # both Tru64's cc and ICC support -MD to output dependencies as a
4816 # side effect of compilation, but ICC will put the dependencies in
4817 # the current directory while Tru64 will put them in the object
4821 am_cv_CXX_dependencies_compiler_type=none
4822 if test "$am_compiler_list" = ""; then
4823 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4826 case " $depcc " in #(
4827 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4830 for depmode in $am_compiler_list; do
4831 # Setup a source with many dependencies, because some compilers
4832 # like to wrap large dependency lists on column 80 (with \), and
4833 # we should not choose a depcomp mode which is confused by this.
4835 # We need to recreate these files for each test, as the compiler may
4836 # overwrite some of them when testing with obscure command lines.
4837 # This happens at least with the AIX C compiler.
4839 for i in 1 2 3 4 5 6; do
4840 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4841 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4842 # Solaris 10 /bin/sh.
4843 echo '/* dummy */' > sub/conftst$i.h
4845 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4847 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4848 # mode. It turns out that the SunPro C++ compiler does not properly
4849 # handle '-M -o', and we need to detect this. Also, some Intel
4850 # versions had trouble with output in subdirs.
4851 am__obj=sub/conftest.${OBJEXT-o}
4852 am__minus_obj="-o $am__obj"
4855 # This depmode causes a compiler race in universal mode.
4856 test "$am__universal" = false || continue
4859 # After this tag, mechanisms are not by side-effect, so they'll
4860 # only be used when explicitly requested.
4861 if test "x$enable_dependency_tracking" = xyes; then
4867 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4868 # This compiler won't grok '-c -o', but also, the minuso test has
4869 # not run yet. These depmodes are late enough in the game, and
4870 # so weak that their functioning should not be impacted.
4871 am__obj=conftest.${OBJEXT-o}
4876 if depmode=$depmode \
4877 source=sub/conftest.c object=$am__obj \
4878 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4879 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4880 >/dev/null 2>conftest.err &&
4881 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4882 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4883 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4884 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4885 # icc doesn't choke on unknown options, it will just issue warnings
4886 # or remarks (even with -Werror). So we grep stderr for any message
4887 # that says an option was ignored or not supported.
4888 # When given -MP, icc 7.0 and 7.1 complain thusly:
4889 # icc: Command line warning: ignoring option '-M'; no argument required
4890 # The diagnosis changed in icc 8.0:
4891 # icc: Command line remark: option '-MP' not supported
4892 if (grep 'ignoring option' conftest.err ||
4893 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4894 am_cv_CXX_dependencies_compiler_type=$depmode
4903 am_cv_CXX_dependencies_compiler_type=none
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4908 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4909 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4912 test "x$enable_dependency_tracking" != xno \
4913 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4914 am__fastdepCXX_TRUE=
4915 am__fastdepCXX_FALSE='#'
4917 am__fastdepCXX_TRUE='#'
4918 am__fastdepCXX_FALSE=
4922 if test "$GCC" = yes; then
4929 # let the Makefile know if we're gcc
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4934 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4939 macro_version='2.4.2'
4940 macro_revision='1.3337'
4954 ltmain="$ac_aux_dir/ltmain.sh"
4956 # Make sure we can run config.sub.
4957 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4958 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4961 $as_echo_n "checking build system type... " >&6; }
4962 if ${ac_cv_build+:} false; then :
4963 $as_echo_n "(cached) " >&6
4965 ac_build_alias=$build_alias
4966 test "x$ac_build_alias" = x &&
4967 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4968 test "x$ac_build_alias" = x &&
4969 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4970 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4971 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4975 $as_echo "$ac_cv_build" >&6; }
4976 case $ac_cv_build in
4978 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4981 ac_save_IFS=$IFS; IFS='-'
4987 # Remember, the first character of IFS is used to create $*,
4988 # except with old shells:
4991 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4995 $as_echo_n "checking host system type... " >&6; }
4996 if ${ac_cv_host+:} false; then :
4997 $as_echo_n "(cached) " >&6
4999 if test "x$host_alias" = x; then
5000 ac_cv_host=$ac_cv_build
5002 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5003 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5008 $as_echo "$ac_cv_host" >&6; }
5011 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5014 ac_save_IFS=$IFS; IFS='-'
5020 # Remember, the first character of IFS is used to create $*,
5021 # except with old shells:
5024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5027 # Backslashify metacharacters that are still active within
5028 # double-quoted strings.
5029 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5031 # Same as above, but do not quote variable references.
5032 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5034 # Sed substitution to delay expansion of an escaped shell variable in a
5035 # double_quote_subst'ed string.
5036 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5038 # Sed substitution to delay expansion of an escaped single quote.
5039 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5041 # Sed substitution to avoid accidental globbing in evaled expressions
5042 no_glob_subst='s/\*/\\\*/g'
5044 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5046 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5049 $as_echo_n "checking how to print strings... " >&6; }
5050 # Test print first, because it will be a builtin if present.
5051 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5052 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5054 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5057 # Use this function as a fallback that always works.
5058 func_fallback_echo ()
5060 eval 'cat <<_LTECHO_EOF
5064 ECHO='func_fallback_echo'
5067 # func_echo_all arg...
5068 # Invoke $ECHO with all args, space-separated.
5075 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5076 $as_echo "printf" >&6; } ;;
5077 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5078 $as_echo "print -r" >&6; } ;;
5079 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5080 $as_echo "cat" >&6; } ;;
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5097 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5098 if ${ac_cv_path_SED+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5102 for ac_i in 1 2 3 4 5 6 7; do
5103 ac_script="$ac_script$as_nl$ac_script"
5105 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5106 { ac_script=; unset ac_script;}
5107 if test -z "$SED"; then
5108 ac_path_SED_found=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_prog in sed gsed; do
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5118 as_fn_executable_p "$ac_path_SED" || continue
5119 # Check for GNU ac_path_SED and select it if it is found.
5120 # Check for GNU $ac_path_SED
5121 case `"$ac_path_SED" --version 2>&1` in
5123 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5126 $as_echo_n 0123456789 >"conftest.in"
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo '' >> "conftest.nl"
5133 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135 as_fn_arith $ac_count + 1 && ac_count=$as_val
5136 if test $ac_count -gt ${ac_path_SED_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_SED="$ac_path_SED"
5139 ac_path_SED_max=$ac_count
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5147 $ac_path_SED_found && break 3
5152 if test -z "$ac_cv_path_SED"; then
5153 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5161 $as_echo "$ac_cv_path_SED" >&6; }
5162 SED="$ac_cv_path_SED"
5165 test -z "$SED" && SED=sed
5166 Xsed="$SED -e 1s/^X//"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5180 if ${ac_cv_path_GREP+:} false; then :
5181 $as_echo_n "(cached) " >&6
5183 if test -z "$GREP"; then
5184 ac_path_GREP_found=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5190 test -z "$as_dir" && as_dir=.
5191 for ac_prog in grep ggrep; do
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5194 as_fn_executable_p "$ac_path_GREP" || continue
5195 # Check for GNU ac_path_GREP and select it if it is found.
5196 # Check for GNU $ac_path_GREP
5197 case `"$ac_path_GREP" --version 2>&1` in
5199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5202 $as_echo_n 0123456789 >"conftest.in"
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'GREP' >> "conftest.nl"
5209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211 as_fn_arith $ac_count + 1 && ac_count=$as_val
5212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_GREP="$ac_path_GREP"
5215 ac_path_GREP_max=$ac_count
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223 $ac_path_GREP_found && break 3
5228 if test -z "$ac_cv_path_GREP"; then
5229 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232 ac_cv_path_GREP=$GREP
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5237 $as_echo "$ac_cv_path_GREP" >&6; }
5238 GREP="$ac_cv_path_GREP"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5242 $as_echo_n "checking for egrep... " >&6; }
5243 if ${ac_cv_path_EGREP+:} false; then :
5244 $as_echo_n "(cached) " >&6
5246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5247 then ac_cv_path_EGREP="$GREP -E"
5249 if test -z "$EGREP"; then
5250 ac_path_EGREP_found=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5256 test -z "$as_dir" && as_dir=.
5257 for ac_prog in egrep; do
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5260 as_fn_executable_p "$ac_path_EGREP" || continue
5261 # Check for GNU ac_path_EGREP and select it if it is found.
5262 # Check for GNU $ac_path_EGREP
5263 case `"$ac_path_EGREP" --version 2>&1` in
5265 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5268 $as_echo_n 0123456789 >"conftest.in"
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'EGREP' >> "conftest.nl"
5275 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277 as_fn_arith $ac_count + 1 && ac_count=$as_val
5278 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_EGREP="$ac_path_EGREP"
5281 ac_path_EGREP_max=$ac_count
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5289 $ac_path_EGREP_found && break 3
5294 if test -z "$ac_cv_path_EGREP"; then
5295 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5298 ac_cv_path_EGREP=$EGREP
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5304 $as_echo "$ac_cv_path_EGREP" >&6; }
5305 EGREP="$ac_cv_path_EGREP"
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5309 $as_echo_n "checking for fgrep... " >&6; }
5310 if ${ac_cv_path_FGREP+:} false; then :
5311 $as_echo_n "(cached) " >&6
5313 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5314 then ac_cv_path_FGREP="$GREP -F"
5316 if test -z "$FGREP"; then
5317 ac_path_FGREP_found=false
5318 # Loop through the user's path and test for each of PROGNAME-LIST
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323 test -z "$as_dir" && as_dir=.
5324 for ac_prog in fgrep; do
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5327 as_fn_executable_p "$ac_path_FGREP" || continue
5328 # Check for GNU ac_path_FGREP and select it if it is found.
5329 # Check for GNU $ac_path_FGREP
5330 case `"$ac_path_FGREP" --version 2>&1` in
5332 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5335 $as_echo_n 0123456789 >"conftest.in"
5338 cat "conftest.in" "conftest.in" >"conftest.tmp"
5339 mv "conftest.tmp" "conftest.in"
5340 cp "conftest.in" "conftest.nl"
5341 $as_echo 'FGREP' >> "conftest.nl"
5342 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5344 as_fn_arith $ac_count + 1 && ac_count=$as_val
5345 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5346 # Best one so far, save it but keep looking for a better one
5347 ac_cv_path_FGREP="$ac_path_FGREP"
5348 ac_path_FGREP_max=$ac_count
5350 # 10*(2^10) chars as input seems more than enough
5351 test $ac_count -gt 10 && break
5353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356 $ac_path_FGREP_found && break 3
5361 if test -z "$ac_cv_path_FGREP"; then
5362 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5365 ac_cv_path_FGREP=$FGREP
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5371 $as_echo "$ac_cv_path_FGREP" >&6; }
5372 FGREP="$ac_cv_path_FGREP"
5375 test -z "$GREP" && GREP=grep
5395 # Check whether --with-gnu-ld was given.
5396 if test "${with_gnu_ld+set}" = set; then :
5397 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5403 if test "$GCC" = yes; then
5404 # Check if gcc -print-prog-name=ld gives a path.
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5406 $as_echo_n "checking for ld used by $CC... " >&6; }
5409 # gcc leaves a trailing carriage return which upsets mingw
5410 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5412 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5415 # Accept absolute paths.
5417 re_direlt='/[^/][^/]*/\.\./'
5418 # Canonicalize the pathname of ld
5419 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5420 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5421 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5423 test -z "$LD" && LD="$ac_prog"
5426 # If it fails, then pretend we aren't using GCC.
5430 # If it is relative, then search for the first ld in PATH.
5434 elif test "$with_gnu_ld" = yes; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5436 $as_echo_n "checking for GNU ld... " >&6; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5439 $as_echo_n "checking for non-GNU ld... " >&6; }
5441 if ${lt_cv_path_LD+:} false; then :
5442 $as_echo_n "(cached) " >&6
5444 if test -z "$LD"; then
5445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5446 for ac_dir in $PATH; do
5448 test -z "$ac_dir" && ac_dir=.
5449 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5450 lt_cv_path_LD="$ac_dir/$ac_prog"
5451 # Check to see if the program is GNU ld. I'd rather use --version,
5452 # but apparently some variants of GNU ld only accept -v.
5453 # Break only if it was the GNU/non-GNU ld that we prefer.
5454 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5455 *GNU* | *'with BFD'*)
5456 test "$with_gnu_ld" != no && break
5459 test "$with_gnu_ld" != yes && break
5466 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5471 if test -n "$LD"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5473 $as_echo "$LD" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5478 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5480 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5481 if ${lt_cv_prog_gnu_ld+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5485 case `$LD -v 2>&1 </dev/null` in
5486 *GNU* | *'with BFD'*)
5487 lt_cv_prog_gnu_ld=yes
5490 lt_cv_prog_gnu_ld=no
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5495 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5496 with_gnu_ld=$lt_cv_prog_gnu_ld
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5507 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5508 if ${lt_cv_path_NM+:} false; then :
5509 $as_echo_n "(cached) " >&6
5511 if test -n "$NM"; then
5512 # Let the user override the test.
5515 lt_nm_to_check="${ac_tool_prefix}nm"
5516 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5517 lt_nm_to_check="$lt_nm_to_check nm"
5519 for lt_tmp_nm in $lt_nm_to_check; do
5520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5521 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5523 test -z "$ac_dir" && ac_dir=.
5524 tmp_nm="$ac_dir/$lt_tmp_nm"
5525 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5526 # Check to see if the nm accepts a BSD-compat flag.
5527 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5528 # nm: unknown option "B" ignored
5529 # Tru64's nm complains that /dev/null is an invalid object file
5530 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5531 */dev/null* | *'Invalid file or object type'*)
5532 lt_cv_path_NM="$tmp_nm -B"
5536 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5538 lt_cv_path_NM="$tmp_nm -p"
5542 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5543 continue # so that we can try to find one that supports BSD flags
5552 : ${lt_cv_path_NM=no}
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5556 $as_echo "$lt_cv_path_NM" >&6; }
5557 if test "$lt_cv_path_NM" != "no"; then
5560 # Didn't find any BSD compatible name lister, look for dumpbin.
5561 if test -n "$DUMPBIN"; then :
5562 # Let the user override the test.
5564 if test -n "$ac_tool_prefix"; then
5565 for ac_prog in dumpbin "link -dump"
5567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_DUMPBIN+:} false; then :
5572 $as_echo_n "(cached) " >&6
5574 if test -n "$DUMPBIN"; then
5575 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 DUMPBIN=$ac_cv_prog_DUMPBIN
5595 if test -n "$DUMPBIN"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5597 $as_echo "$DUMPBIN" >&6; }
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5604 test -n "$DUMPBIN" && break
5607 if test -z "$DUMPBIN"; then
5608 ac_ct_DUMPBIN=$DUMPBIN
5609 for ac_prog in dumpbin "link -dump"
5611 # Extract the first word of "$ac_prog", so it can be a program name with args.
5612 set dummy $ac_prog; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5616 $as_echo_n "(cached) " >&6
5618 if test -n "$ac_ct_DUMPBIN"; then
5619 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5639 if test -n "$ac_ct_DUMPBIN"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5641 $as_echo "$ac_ct_DUMPBIN" >&6; }
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5648 test -n "$ac_ct_DUMPBIN" && break
5651 if test "x$ac_ct_DUMPBIN" = x; then
5654 case $cross_compiling:$ac_tool_warned in
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5660 DUMPBIN=$ac_ct_DUMPBIN
5664 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5666 DUMPBIN="$DUMPBIN -symbols"
5674 if test "$DUMPBIN" != ":"; then
5678 test -z "$NM" && NM=nm
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5686 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5687 if ${lt_cv_nm_interface+:} false; then :
5688 $as_echo_n "(cached) " >&6
5690 lt_cv_nm_interface="BSD nm"
5691 echo "int some_variable = 0;" > conftest.$ac_ext
5692 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5693 (eval "$ac_compile" 2>conftest.err)
5694 cat conftest.err >&5
5695 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5696 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5697 cat conftest.err >&5
5698 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5699 cat conftest.out >&5
5700 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5701 lt_cv_nm_interface="MS dumpbin"
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5706 $as_echo "$lt_cv_nm_interface" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5709 $as_echo_n "checking whether ln -s works... " >&6; }
5711 if test "$LN_S" = "ln -s"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713 $as_echo "yes" >&6; }
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5716 $as_echo "no, using $LN_S" >&6; }
5719 # find the maximum length of command line arguments
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5721 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5722 if ${lt_cv_sys_max_cmd_len+:} false; then :
5723 $as_echo_n "(cached) " >&6
5730 # On DJGPP, this test can blow up pretty badly due to problems in libc
5731 # (any single argument exceeding 2000 bytes causes a buffer overrun
5732 # during glob expansion). Even if it were fixed, the result of this
5733 # check would be larger than it should be.
5734 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5738 # Under GNU Hurd, this test is not required because there is
5739 # no limit to the length of command line arguments.
5740 # Libtool will interpret -1 as no limit whatsoever
5741 lt_cv_sys_max_cmd_len=-1;
5744 cygwin* | mingw* | cegcc*)
5745 # On Win9x/ME, this test blows up -- it succeeds, but takes
5746 # about 5 minutes as the teststring grows exponentially.
5747 # Worse, since 9x/ME are not pre-emptively multitasking,
5748 # you end up with a "frozen" computer, even though with patience
5749 # the test eventually succeeds (with a max line length of 256k).
5750 # Instead, let's just punt: use the minimum linelength reported by
5751 # all of the supported platforms: 8192 (on NT/2K/XP).
5752 lt_cv_sys_max_cmd_len=8192;
5756 # On MiNT this can take a long time and run out of memory.
5757 lt_cv_sys_max_cmd_len=8192;
5761 # On AmigaOS with pdksh, this test takes hours, literally.
5762 # So we just punt and use a minimum line length of 8192.
5763 lt_cv_sys_max_cmd_len=8192;
5766 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5767 # This has been around since 386BSD, at least. Likely further.
5768 if test -x /sbin/sysctl; then
5769 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5770 elif test -x /usr/sbin/sysctl; then
5771 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5773 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5775 # And add a safety zone
5776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5781 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5782 lt_cv_sys_max_cmd_len=196608
5786 # The test takes a long time on OS/2.
5787 lt_cv_sys_max_cmd_len=8192
5791 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5792 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5793 # nice to cause kernel panics so lets avoid the loop below.
5794 # First set a reasonable default.
5795 lt_cv_sys_max_cmd_len=16384
5797 if test -x /sbin/sysconfig; then
5798 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5799 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5804 lt_cv_sys_max_cmd_len=102400
5806 sysv5* | sco5v6* | sysv4.2uw2*)
5807 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5808 if test -n "$kargmax"; then
5809 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5811 lt_cv_sys_max_cmd_len=32768
5815 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5816 if test -n "$lt_cv_sys_max_cmd_len"; then
5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5820 # Make teststring a little bigger before we do anything with it.
5821 # a 1K string should be a reasonable start.
5822 for i in 1 2 3 4 5 6 7 8 ; do
5823 teststring=$teststring$teststring
5825 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826 # If test is not a shell built-in, we'll probably end up computing a
5827 # maximum length that is only half of the actual maximum length, but
5829 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5830 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5831 test $i != 17 # 1/2 MB should be enough
5834 teststring=$teststring$teststring
5836 # Only check the string length outside the loop.
5837 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5839 # Add a significant safety factor because C++ compilers can tack on
5840 # massive amounts of additional arguments before passing them to the
5841 # linker. It appears as though 1/2 is a usable value.
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5849 if test -n $lt_cv_sys_max_cmd_len ; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5851 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5854 $as_echo "none" >&6; }
5856 max_cmd_len=$lt_cv_sys_max_cmd_len
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5868 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5869 # Try some XSI features
5872 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5874 && eval 'test $(( 1 + 1 )) -eq 2 \
5875 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5878 $as_echo "$xsi_shell" >&6; }
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5882 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5884 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5886 && lt_shell_append=yes
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5888 $as_echo "$lt_shell_append" >&6; }
5891 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5901 # test EBCDIC or ASCII
5902 case `echo X|tr X '\101'` in
5903 A) # ASCII based system
5904 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5905 lt_SP2NL='tr \040 \012'
5906 lt_NL2SP='tr \015\012 \040\040'
5908 *) # EBCDIC based system
5909 lt_SP2NL='tr \100 \n'
5910 lt_NL2SP='tr \r\n \100\100'
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5923 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5924 if ${lt_cv_to_host_file_cmd+:} false; then :
5925 $as_echo_n "(cached) " >&6
5930 *-*-mingw* ) # actually msys
5931 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5934 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5936 * ) # otherwise, assume *nix
5937 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5943 *-*-mingw* ) # actually msys
5944 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5947 lt_cv_to_host_file_cmd=func_convert_file_noop
5949 * ) # otherwise, assume *nix
5950 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5954 * ) # unhandled hosts (and "normal" native builds)
5955 lt_cv_to_host_file_cmd=func_convert_file_noop
5961 to_host_file_cmd=$lt_cv_to_host_file_cmd
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5963 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5970 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5971 if ${lt_cv_to_tool_file_cmd+:} false; then :
5972 $as_echo_n "(cached) " >&6
5974 #assume ordinary cross tools, or native build.
5975 lt_cv_to_tool_file_cmd=func_convert_file_noop
5979 *-*-mingw* ) # actually msys
5980 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5988 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5990 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5997 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5998 if ${lt_cv_ld_reload_flag+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 lt_cv_ld_reload_flag='-r'
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6004 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6005 reload_flag=$lt_cv_ld_reload_flag
6006 case $reload_flag in
6008 *) reload_flag=" $reload_flag" ;;
6010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6012 cygwin* | mingw* | pw32* | cegcc*)
6013 if test "$GCC" != yes; then
6018 if test "$GCC" = yes; then
6019 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_OBJDUMP+:} false; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$OBJDUMP"; then
6043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 OBJDUMP=$ac_cv_prog_OBJDUMP
6063 if test -n "$OBJDUMP"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6065 $as_echo "$OBJDUMP" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_OBJDUMP"; then
6074 ac_ct_OBJDUMP=$OBJDUMP
6075 # Extract the first word of "objdump", so it can be a program name with args.
6076 set dummy objdump; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6105 $as_echo "$ac_ct_OBJDUMP" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_OBJDUMP" = x; then
6114 case $cross_compiling:$ac_tool_warned in
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6120 OBJDUMP=$ac_ct_OBJDUMP
6123 OBJDUMP="$ac_cv_prog_OBJDUMP"
6126 test -z "$OBJDUMP" && OBJDUMP=objdump
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6138 if ${lt_cv_deplibs_check_method+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 lt_cv_file_magic_cmd='$MAGIC_CMD'
6142 lt_cv_file_magic_test_file=
6143 lt_cv_deplibs_check_method='unknown'
6144 # Need to set the preceding variable on all platforms that support
6145 # interlibrary dependencies.
6146 # 'none' -- dependencies not supported.
6147 # `unknown' -- same as none, but documents that we really don't know.
6148 # 'pass_all' -- all dependencies passed with no checks.
6149 # 'test_compile' -- check by making test program.
6150 # 'file_magic [[regex]]' -- check by looking for files in library path
6151 # which responds to the $file_magic_cmd with a given extended regex.
6152 # If you have `file' or equivalent on your system and you're not sure
6153 # whether `pass_all' will *always* work, you probably want this one.
6157 lt_cv_deplibs_check_method=pass_all
6161 lt_cv_deplibs_check_method=pass_all
6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6166 lt_cv_file_magic_cmd='/usr/bin/file -L'
6167 lt_cv_file_magic_test_file=/shlib/libc.so
6171 # func_win32_libid is a shell function defined in ltmain.sh
6172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6173 lt_cv_file_magic_cmd='func_win32_libid'
6177 # Base MSYS/MinGW do not provide the 'file' command needed by
6178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6179 # unless we find 'file', for example because we are cross-compiling.
6180 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6181 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6183 lt_cv_file_magic_cmd='func_win32_libid'
6185 # Keep this pattern in sync with the one in func_win32_libid.
6186 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6187 lt_cv_file_magic_cmd='$OBJDUMP -f'
6192 # use the weaker test based on 'objdump'. See mingw*.
6193 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6194 lt_cv_file_magic_cmd='$OBJDUMP -f'
6197 darwin* | rhapsody*)
6198 lt_cv_deplibs_check_method=pass_all
6201 freebsd* | dragonfly*)
6202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6205 # Not sure whether the presence of OpenBSD here was a mistake.
6206 # Let's accept both of them until this is cleared up.
6207 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6208 lt_cv_file_magic_cmd=/usr/bin/file
6209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6213 lt_cv_deplibs_check_method=pass_all
6218 lt_cv_deplibs_check_method=pass_all
6222 lt_cv_deplibs_check_method=pass_all
6225 hpux10.20* | hpux11*)
6226 lt_cv_file_magic_cmd=/usr/bin/file
6229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6244 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6248 irix5* | irix6* | nonstopux*)
6250 *-32|*"-32 ") libmagic=32-bit;;
6251 *-n32|*"-n32 ") libmagic=N32;;
6252 *-64|*"-64 ") libmagic=64-bit;;
6253 *) libmagic=never-match;;
6255 lt_cv_deplibs_check_method=pass_all
6258 # This must be glibc/ELF.
6259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6260 lt_cv_deplibs_check_method=pass_all
6263 netbsd* | netbsdelf*-gnu)
6264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6273 lt_cv_file_magic_cmd=/usr/bin/file
6274 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6278 lt_cv_deplibs_check_method=pass_all
6282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6289 osf3* | osf4* | osf5*)
6290 lt_cv_deplibs_check_method=pass_all
6294 lt_cv_deplibs_check_method=pass_all
6298 lt_cv_deplibs_check_method=pass_all
6301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6302 lt_cv_deplibs_check_method=pass_all
6306 case $host_vendor in
6308 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]'
6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6312 lt_cv_deplibs_check_method=pass_all
6315 lt_cv_file_magic_cmd='/bin/file'
6316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6319 lt_cv_file_magic_cmd='/bin/file'
6320 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6321 lt_cv_file_magic_test_file=/lib/libc.so
6324 lt_cv_deplibs_check_method=pass_all
6327 lt_cv_deplibs_check_method=pass_all
6333 lt_cv_deplibs_check_method=pass_all
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6339 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6343 if test "$build" = "$host"; then
6346 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6349 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6355 file_magic_cmd=$lt_cv_file_magic_cmd
6356 deplibs_check_method=$lt_cv_deplibs_check_method
6357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6380 if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_DLLTOOL+:} false; then :
6386 $as_echo_n "(cached) " >&6
6388 if test -n "$DLLTOOL"; then
6389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 DLLTOOL=$ac_cv_prog_DLLTOOL
6409 if test -n "$DLLTOOL"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6411 $as_echo "$DLLTOOL" >&6; }
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6419 if test -z "$ac_cv_prog_DLLTOOL"; then
6420 ac_ct_DLLTOOL=$DLLTOOL
6421 # Extract the first word of "dlltool", so it can be a program name with args.
6422 set dummy dlltool; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6426 $as_echo_n "(cached) " >&6
6428 if test -n "$ac_ct_DLLTOOL"; then
6429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6449 if test -n "$ac_ct_DLLTOOL"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6451 $as_echo "$ac_ct_DLLTOOL" >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6457 if test "x$ac_ct_DLLTOOL" = x; then
6460 case $cross_compiling:$ac_tool_warned in
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6466 DLLTOOL=$ac_ct_DLLTOOL
6469 DLLTOOL="$ac_cv_prog_DLLTOOL"
6472 test -z "$DLLTOOL" && DLLTOOL=dlltool
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6484 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6485 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6486 $as_echo_n "(cached) " >&6
6488 lt_cv_sharedlib_from_linklib_cmd='unknown'
6491 cygwin* | mingw* | pw32* | cegcc*)
6492 # two different shell functions defined in ltmain.sh
6493 # decide which to use based on capabilities of $DLLTOOL
6494 case `$DLLTOOL --help 2>&1` in
6495 *--identify-strict*)
6496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6499 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6504 # fallback: assume linklib IS sharedlib
6505 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6511 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6512 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6513 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6522 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_AR+:} false; then :
6530 $as_echo_n "(cached) " >&6
6532 if test -n "$AR"; then
6533 ac_cv_prog_AR="$AR" # Let the user override the test.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 if test -n "$AR"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6555 $as_echo "$AR" >&6; }
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6562 test -n "$AR" && break
6565 if test -z "$AR"; then
6569 # Extract the first word of "$ac_prog", so it can be a program name with args.
6570 set dummy $ac_prog; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6574 $as_echo_n "(cached) " >&6
6576 if test -n "$ac_ct_AR"; then
6577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_ac_ct_AR="$ac_prog"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6597 if test -n "$ac_ct_AR"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6599 $as_echo "$ac_ct_AR" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6606 test -n "$ac_ct_AR" && break
6609 if test "x$ac_ct_AR" = x; then
6612 case $cross_compiling:$ac_tool_warned in
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6636 $as_echo_n "checking for archiver @FILE support... " >&6; }
6637 if ${lt_cv_ar_at_file+:} false; then :
6638 $as_echo_n "(cached) " >&6
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6652 if ac_fn_cxx_try_compile "$LINENO"; then :
6653 echo conftest.$ac_objext > conftest.lst
6654 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6656 (eval $lt_ar_try) 2>&5
6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; }
6660 if test "$ac_status" -eq 0; then
6661 # Ensure the archiver fails upon bogus file names.
6662 rm -f conftest.$ac_objext libconftest.a
6663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6664 (eval $lt_ar_try) 2>&5
6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; }
6668 if test "$ac_status" -ne 0; then
6672 rm -f conftest.* libconftest.a
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6679 $as_echo "$lt_cv_ar_at_file" >&6; }
6681 if test "x$lt_cv_ar_at_file" = xno; then
6684 archiver_list_spec=$lt_cv_ar_at_file
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}strip; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_STRIP+:} false; then :
6699 $as_echo_n "(cached) " >&6
6701 if test -n "$STRIP"; then
6702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 STRIP=$ac_cv_prog_STRIP
6722 if test -n "$STRIP"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6724 $as_echo "$STRIP" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6732 if test -z "$ac_cv_prog_STRIP"; then
6734 # Extract the first word of "strip", so it can be a program name with args.
6735 set dummy strip; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 if test -n "$ac_ct_STRIP"; then
6742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_ac_ct_STRIP="strip"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6762 if test -n "$ac_ct_STRIP"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6764 $as_echo "$ac_ct_STRIP" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6770 if test "x$ac_ct_STRIP" = x; then
6773 case $cross_compiling:$ac_tool_warned in
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6782 STRIP="$ac_cv_prog_STRIP"
6785 test -z "$STRIP" && STRIP=:
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_RANLIB+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$RANLIB"; then
6801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 RANLIB=$ac_cv_prog_RANLIB
6821 if test -n "$RANLIB"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6823 $as_echo "$RANLIB" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6831 if test -z "$ac_cv_prog_RANLIB"; then
6832 ac_ct_RANLIB=$RANLIB
6833 # Extract the first word of "ranlib", so it can be a program name with args.
6834 set dummy ranlib; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 if test -n "$ac_ct_RANLIB"; then
6841 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_ac_ct_RANLIB="ranlib"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6861 if test -n "$ac_ct_RANLIB"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6863 $as_echo "$ac_ct_RANLIB" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6869 if test "x$ac_ct_RANLIB" = x; then
6872 case $cross_compiling:$ac_tool_warned in
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6878 RANLIB=$ac_ct_RANLIB
6881 RANLIB="$ac_cv_prog_RANLIB"
6884 test -z "$RANLIB" && RANLIB=:
6891 # Determine commands to create old-style static archives.
6892 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6893 old_postinstall_cmds='chmod 644 $oldlib'
6894 old_postuninstall_cmds=
6896 if test -n "$RANLIB"; then
6899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6905 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6910 lock_old_archive_extraction=yes ;;
6912 lock_old_archive_extraction=no ;;
6953 # If no C compiler was specified, use CC.
6956 # If no C compiler flags were specified, use CFLAGS.
6957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6959 # Allow CC to be a program name with arguments.
6963 # Check for command to grab the raw symbol name followed by C symbol from nm.
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6965 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6966 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6967 $as_echo_n "(cached) " >&6
6970 # These are sane defaults that work on at least a few old systems.
6971 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6973 # Character class describing NM global symbol codes.
6974 symcode='[BCDEGRST]'
6976 # Regexp to match symbols that can be accessed directly from C.
6977 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6979 # Define system-specific variables.
6984 cygwin* | mingw* | pw32* | cegcc*)
6985 symcode='[ABCDGISTW]'
6988 if test "$host_cpu" = ia64; then
6989 symcode='[ABCDEGRST]'
6993 symcode='[BCDEGRST]'
6996 symcode='[BCDEGQRST]'
7007 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7015 # If we're using GNU nm, then use its standard symbol codes.
7016 case `$NM -V 2>&1` in
7017 *GNU* | *'with BFD'*)
7018 symcode='[ABCDGIRSTW]' ;;
7021 # Transform an extracted symbol line into a proper C declaration.
7022 # Some systems (esp. on ia64) link data and code symbols differently,
7023 # so use this general approach.
7024 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7026 # Transform an extracted symbol line into symbol name and symbol address
7027 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7028 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'"
7030 # Handle CRLF in mingw tool chain
7034 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7038 # Try without a prefix underscore, then with it.
7039 for ac_symprfx in "" "_"; do
7041 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7042 symxfrm="\\1 $ac_symprfx\\2 \\2"
7044 # Write the raw and C identifiers.
7045 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7046 # Fake it for dumpbin and say T for any non-static function
7047 # and D for any global variable.
7048 # Also find C++ and __fastcall symbols from MSVC++,
7049 # which start with @ or ?.
7050 lt_cv_sys_global_symbol_pipe="$AWK '"\
7051 " {last_section=section; section=\$ 3};"\
7052 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7053 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7054 " \$ 0!~/External *\|/{next};"\
7055 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7056 " {if(hide[section]) next};"\
7057 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7058 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7059 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7060 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7061 " ' prfx=^$ac_symprfx"
7063 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7065 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7067 # Check to see that the pipe works correctly.
7071 cat > conftest.$ac_ext <<_LT_EOF
7076 void nm_test_func(void);
7077 void nm_test_func(void){}
7081 int main(){nm_test_var='a';nm_test_func();return(0);}
7084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085 (eval $ac_compile) 2>&5
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }; then
7089 # Now try to grab the symbols.
7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7092 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095 test $ac_status = 0; } && test -s "$nlist"; then
7096 # Try sorting and uniquifying the output.
7097 if sort "$nlist" | uniq > "$nlist"T; then
7098 mv -f "$nlist"T "$nlist"
7103 # Make sure that we snagged all the symbols we need.
7104 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7105 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7106 cat <<_LT_EOF > conftest.$ac_ext
7107 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7108 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7109 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7110 relocations are performed -- see ld's documentation on pseudo-relocs. */
7111 # define LT_DLSYM_CONST
7112 #elif defined(__osf__)
7113 /* This system does not cope well with relocations in const data. */
7114 # define LT_DLSYM_CONST
7116 # define LT_DLSYM_CONST const
7124 # Now generate the symbol file.
7125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7127 cat <<_LT_EOF >> conftest.$ac_ext
7129 /* The mapping between symbol names and symbols. */
7130 LT_DLSYM_CONST struct {
7134 lt__PROGRAM__LTX_preloaded_symbols[] =
7136 { "@PROGRAM@", (void *) 0 },
7138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139 cat <<\_LT_EOF >> conftest.$ac_ext
7143 /* This works around a problem in FreeBSD linker */
7144 #ifdef FREEBSD_WORKAROUND
7145 static const void *lt_preloaded_setup() {
7146 return lt__PROGRAM__LTX_preloaded_symbols;
7154 # Now try linking the two files.
7155 mv conftest.$ac_objext conftstm.$ac_objext
7156 lt_globsym_save_LIBS=$LIBS
7157 lt_globsym_save_CFLAGS=$CFLAGS
7158 LIBS="conftstm.$ac_objext"
7159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7161 (eval $ac_link) 2>&5
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7167 LIBS=$lt_globsym_save_LIBS
7168 CFLAGS=$lt_globsym_save_CFLAGS
7170 echo "cannot find nm_test_func in $nlist" >&5
7173 echo "cannot find nm_test_var in $nlist" >&5
7176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7179 echo "$progname: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 rm -rf conftest* conftst*
7184 # Do not use the global_symbol_pipe unless it works.
7185 if test "$pipe_works" = yes; then
7188 lt_cv_sys_global_symbol_pipe=
7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195 lt_cv_sys_global_symbol_to_cdecl=
7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7199 $as_echo "failed" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7202 $as_echo "ok" >&6; }
7205 # Response file support.
7206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7207 nm_file_list_spec='@'
7208 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7209 nm_file_list_spec='@'
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7239 $as_echo_n "checking for sysroot... " >&6; }
7241 # Check whether --with-sysroot was given.
7242 if test "${with_sysroot+set}" = set; then :
7243 withval=$with_sysroot;
7250 case ${with_sysroot} in #(
7252 if test "$GCC" = yes; then
7253 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7257 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7263 $as_echo "${with_sysroot}" >&6; }
7264 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7269 $as_echo "${lt_sysroot:-no}" >&6; }
7276 # Check whether --enable-libtool-lock was given.
7277 if test "${enable_libtool_lock+set}" = set; then :
7278 enableval=$enable_libtool_lock;
7281 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7283 # Some flags need to be propagated to the compiler or linker for good
7287 # Find out which ABI we are using.
7288 echo 'int i;' > conftest.$ac_ext
7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290 (eval $ac_compile) 2>&5
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }; then
7294 case `/usr/bin/file conftest.$ac_objext` in
7306 # Find out which ABI we are using.
7307 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309 (eval $ac_compile) 2>&5
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; then
7313 if test "$lt_cv_prog_gnu_ld" = yes; then
7314 case `/usr/bin/file conftest.$ac_objext` in
7316 LD="${LD-ld} -melf32bsmip"
7319 LD="${LD-ld} -melf32bmipn32"
7322 LD="${LD-ld} -melf64bmip"
7326 case `/usr/bin/file conftest.$ac_objext` in
7342 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7343 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7344 # Find out which ABI we are using.
7345 echo 'int i;' > conftest.$ac_ext
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 case `/usr/bin/file conftest.o` in
7354 x86_64-*kfreebsd*-gnu)
7355 LD="${LD-ld} -m elf_i386_fbsd"
7358 LD="${LD-ld} -m elf_i386"
7360 ppc64-*linux*|powerpc64-*linux*)
7361 LD="${LD-ld} -m elf32ppclinux"
7364 LD="${LD-ld} -m elf_s390"
7367 LD="${LD-ld} -m elf32_sparc"
7373 x86_64-*kfreebsd*-gnu)
7374 LD="${LD-ld} -m elf_x86_64_fbsd"
7377 LD="${LD-ld} -m elf_x86_64"
7379 ppc*-*linux*|powerpc*-*linux*)
7380 LD="${LD-ld} -m elf64ppc"
7382 s390*-*linux*|s390*-*tpf*)
7383 LD="${LD-ld} -m elf64_s390"
7386 LD="${LD-ld} -m elf64_sparc"
7396 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7397 SAVE_CFLAGS="$CFLAGS"
7398 CFLAGS="$CFLAGS -belf"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7400 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7401 if ${lt_cv_cc_needs_belf+:} false; then :
7402 $as_echo_n "(cached) " >&6
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7421 if ac_fn_c_try_link "$LINENO"; then :
7422 lt_cv_cc_needs_belf=yes
7424 lt_cv_cc_needs_belf=no
7426 rm -f core conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext conftest.$ac_ext
7429 ac_cpp='$CPP $CPPFLAGS'
7430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7436 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7437 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7438 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7439 CFLAGS="$SAVE_CFLAGS"
7443 # Find out which ABI we are using.
7444 echo 'int i;' > conftest.$ac_ext
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446 (eval $ac_compile) 2>&5
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7450 case `/usr/bin/file conftest.o` in
7452 case $lt_cv_prog_gnu_ld in
7456 LD="${LD-ld} -m elf_x86_64"
7459 LD="${LD-ld} -m elf64_sparc"
7462 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7463 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7468 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7480 need_locks="$enable_libtool_lock"
7482 if test -n "$ac_tool_prefix"; then
7483 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7484 set dummy ${ac_tool_prefix}mt; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7488 $as_echo_n "(cached) " >&6
7490 if test -n "$MANIFEST_TOOL"; then
7491 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7511 if test -n "$MANIFEST_TOOL"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7513 $as_echo "$MANIFEST_TOOL" >&6; }
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7521 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7522 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7523 # Extract the first word of "mt", so it can be a program name with args.
7524 set dummy mt; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7528 $as_echo_n "(cached) " >&6
7530 if test -n "$ac_ct_MANIFEST_TOOL"; then
7531 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7551 if test -n "$ac_ct_MANIFEST_TOOL"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7553 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7559 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7562 case $cross_compiling:$ac_tool_warned in
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566 ac_tool_warned=yes ;;
7568 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7571 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7574 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7576 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7577 if ${lt_cv_path_mainfest_tool+:} false; then :
7578 $as_echo_n "(cached) " >&6
7580 lt_cv_path_mainfest_tool=no
7581 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7582 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7583 cat conftest.err >&5
7584 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7585 lt_cv_path_mainfest_tool=yes
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7590 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7591 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7601 rhapsody* | darwin*)
7602 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7608 $as_echo_n "(cached) " >&6
7610 if test -n "$DSYMUTIL"; then
7611 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7631 if test -n "$DSYMUTIL"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7633 $as_echo "$DSYMUTIL" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7641 if test -z "$ac_cv_prog_DSYMUTIL"; then
7642 ac_ct_DSYMUTIL=$DSYMUTIL
7643 # Extract the first word of "dsymutil", so it can be a program name with args.
7644 set dummy dsymutil; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7648 $as_echo_n "(cached) " >&6
7650 if test -n "$ac_ct_DSYMUTIL"; then
7651 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7671 if test -n "$ac_ct_DSYMUTIL"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7673 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7679 if test "x$ac_ct_DSYMUTIL" = x; then
7682 case $cross_compiling:$ac_tool_warned in
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686 ac_tool_warned=yes ;;
7688 DSYMUTIL=$ac_ct_DSYMUTIL
7691 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_NMEDIT+:} false; then :
7700 $as_echo_n "(cached) " >&6
7702 if test -n "$NMEDIT"; then
7703 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 NMEDIT=$ac_cv_prog_NMEDIT
7723 if test -n "$NMEDIT"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7725 $as_echo "$NMEDIT" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7733 if test -z "$ac_cv_prog_NMEDIT"; then
7734 ac_ct_NMEDIT=$NMEDIT
7735 # Extract the first word of "nmedit", so it can be a program name with args.
7736 set dummy nmedit; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7740 $as_echo_n "(cached) " >&6
7742 if test -n "$ac_ct_NMEDIT"; then
7743 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7763 if test -n "$ac_ct_NMEDIT"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7765 $as_echo "$ac_ct_NMEDIT" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7771 if test "x$ac_ct_NMEDIT" = x; then
7774 case $cross_compiling:$ac_tool_warned in
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7780 NMEDIT=$ac_ct_NMEDIT
7783 NMEDIT="$ac_cv_prog_NMEDIT"
7786 if test -n "$ac_tool_prefix"; then
7787 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7788 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_LIPO+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 if test -n "$LIPO"; then
7795 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 LIPO=$ac_cv_prog_LIPO
7815 if test -n "$LIPO"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7817 $as_echo "$LIPO" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7825 if test -z "$ac_cv_prog_LIPO"; then
7827 # Extract the first word of "lipo", so it can be a program name with args.
7828 set dummy lipo; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7832 $as_echo_n "(cached) " >&6
7834 if test -n "$ac_ct_LIPO"; then
7835 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_ac_ct_LIPO="lipo"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7855 if test -n "$ac_ct_LIPO"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7857 $as_echo "$ac_ct_LIPO" >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7863 if test "x$ac_ct_LIPO" = x; then
7866 case $cross_compiling:$ac_tool_warned in
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870 ac_tool_warned=yes ;;
7875 LIPO="$ac_cv_prog_LIPO"
7878 if test -n "$ac_tool_prefix"; then
7879 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7880 set dummy ${ac_tool_prefix}otool; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_OTOOL+:} false; then :
7884 $as_echo_n "(cached) " >&6
7886 if test -n "$OTOOL"; then
7887 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 OTOOL=$ac_cv_prog_OTOOL
7907 if test -n "$OTOOL"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7909 $as_echo "$OTOOL" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7917 if test -z "$ac_cv_prog_OTOOL"; then
7919 # Extract the first word of "otool", so it can be a program name with args.
7920 set dummy otool; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7924 $as_echo_n "(cached) " >&6
7926 if test -n "$ac_ct_OTOOL"; then
7927 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_ac_ct_OTOOL="otool"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7947 if test -n "$ac_ct_OTOOL"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7949 $as_echo "$ac_ct_OTOOL" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7955 if test "x$ac_ct_OTOOL" = x; then
7958 case $cross_compiling:$ac_tool_warned in
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7962 ac_tool_warned=yes ;;
7967 OTOOL="$ac_cv_prog_OTOOL"
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_OTOOL64+:} false; then :
7976 $as_echo_n "(cached) " >&6
7978 if test -n "$OTOOL64"; then
7979 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 OTOOL64=$ac_cv_prog_OTOOL64
7999 if test -n "$OTOOL64"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8001 $as_echo "$OTOOL64" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8009 if test -z "$ac_cv_prog_OTOOL64"; then
8010 ac_ct_OTOOL64=$OTOOL64
8011 # Extract the first word of "otool64", so it can be a program name with args.
8012 set dummy otool64; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8016 $as_echo_n "(cached) " >&6
8018 if test -n "$ac_ct_OTOOL64"; then
8019 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_ac_ct_OTOOL64="otool64"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8039 if test -n "$ac_ct_OTOOL64"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8041 $as_echo "$ac_ct_OTOOL64" >&6; }
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8047 if test "x$ac_ct_OTOOL64" = x; then
8050 case $cross_compiling:$ac_tool_warned in
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8056 OTOOL64=$ac_ct_OTOOL64
8059 OTOOL64="$ac_cv_prog_OTOOL64"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8089 $as_echo_n "checking for -single_module linker flag... " >&6; }
8090 if ${lt_cv_apple_cc_single_mod+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 lt_cv_apple_cc_single_mod=no
8094 if test -z "${LT_MULTI_MODULE}"; then
8095 # By default we will add the -single_module flag. You can override
8096 # by either setting the environment variable LT_MULTI_MODULE
8097 # non-empty at configure time, or by adding -multi_module to the
8099 rm -rf libconftest.dylib*
8100 echo "int foo(void){return 1;}" > conftest.c
8101 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8102 -dynamiclib -Wl,-single_module conftest.c" >&5
8103 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8104 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8106 # If there is a non-empty error log, and "single_module"
8107 # appears in it, assume the flag caused a linker warning
8108 if test -s conftest.err && $GREP single_module conftest.err; then
8109 cat conftest.err >&5
8110 # Otherwise, if the output was created with a 0 exit code from
8111 # the compiler, it worked.
8112 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8113 lt_cv_apple_cc_single_mod=yes
8115 cat conftest.err >&5
8117 rm -rf libconftest.dylib*
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8122 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8125 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8126 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8127 $as_echo_n "(cached) " >&6
8129 lt_cv_ld_exported_symbols_list=no
8130 save_LDFLAGS=$LDFLAGS
8131 echo "_main" > conftest.sym
8132 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8144 if ac_fn_c_try_link "$LINENO"; then :
8145 lt_cv_ld_exported_symbols_list=yes
8147 lt_cv_ld_exported_symbols_list=no
8149 rm -f core conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8151 LDFLAGS="$save_LDFLAGS"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8155 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8158 $as_echo_n "checking for -force_load linker flag... " >&6; }
8159 if ${lt_cv_ld_force_load+:} false; then :
8160 $as_echo_n "(cached) " >&6
8162 lt_cv_ld_force_load=no
8163 cat > conftest.c << _LT_EOF
8164 int forced_loaded() { return 2;}
8166 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8167 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8168 echo "$AR cru libconftest.a conftest.o" >&5
8169 $AR cru libconftest.a conftest.o 2>&5
8170 echo "$RANLIB libconftest.a" >&5
8171 $RANLIB libconftest.a 2>&5
8172 cat > conftest.c << _LT_EOF
8173 int main() { return 0;}
8175 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8176 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8178 if test -s conftest.err && $GREP force_load conftest.err; then
8179 cat conftest.err >&5
8180 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8181 lt_cv_ld_force_load=yes
8183 cat conftest.err >&5
8185 rm -f conftest.err libconftest.a conftest conftest.c
8186 rm -rf conftest.dSYM
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8190 $as_echo "$lt_cv_ld_force_load" >&6; }
8192 rhapsody* | darwin1.[012])
8193 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8195 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8196 darwin*) # darwin 5.x on
8197 # if running on 10.5 or later, the deployment target defaults
8198 # to the OS version, if on x86, and 10.4, the deployment
8199 # target defaults to 10.4. Don't you love it?
8200 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8201 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8202 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8204 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8206 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8210 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8211 _lt_dar_single_mod='$single_module'
8213 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8214 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8216 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8218 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8219 _lt_dsymutil='~$DSYMUTIL $lib || :'
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8228 $as_echo_n "checking for ANSI C header files... " >&6; }
8229 if ${ac_cv_header_stdc+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8247 if ac_fn_c_try_compile "$LINENO"; then :
8248 ac_cv_header_stdc=yes
8250 ac_cv_header_stdc=no
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 if test $ac_cv_header_stdc = yes; then
8255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8262 $EGREP "memchr" >/dev/null 2>&1; then :
8265 ac_cv_header_stdc=no
8271 if test $ac_cv_header_stdc = yes; then
8272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8279 $EGREP "free" >/dev/null 2>&1; then :
8282 ac_cv_header_stdc=no
8288 if test $ac_cv_header_stdc = yes; then
8289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8290 if test "$cross_compiling" = yes; then :
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8297 #if ((' ' & 0x0FF) == 0x020)
8298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8301 # define ISLOWER(c) \
8302 (('a' <= (c) && (c) <= 'i') \
8303 || ('j' <= (c) && (c) <= 'r') \
8304 || ('s' <= (c) && (c) <= 'z'))
8305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8313 for (i = 0; i < 256; i++)
8314 if (XOR (islower (i), ISLOWER (i))
8315 || toupper (i) != TOUPPER (i))
8320 if ac_fn_c_try_run "$LINENO"; then :
8323 ac_cv_header_stdc=no
8325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8326 conftest.$ac_objext conftest.beam conftest.$ac_ext
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8332 $as_echo "$ac_cv_header_stdc" >&6; }
8333 if test $ac_cv_header_stdc = yes; then
8335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8339 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8340 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8341 inttypes.h stdint.h unistd.h
8343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8344 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8347 cat >>confdefs.h <<_ACEOF
8348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8356 for ac_header in dlfcn.h
8358 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8360 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8361 cat >>confdefs.h <<_ACEOF
8362 #define HAVE_DLFCN_H 1
8371 func_stripname_cnf ()
8374 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8375 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8377 } # func_stripname_cnf
8393 # Check whether --enable-shared was given.
8394 if test "${enable_shared+set}" = set; then :
8395 enableval=$enable_shared; p=${PACKAGE-default}
8397 yes) enable_shared=yes ;;
8398 no) enable_shared=no ;;
8401 # Look at the argument we got. We use all the common list separators.
8402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8403 for pkg in $enableval; do
8405 if test "X$pkg" = "X$p"; then
8424 # Check whether --enable-static was given.
8425 if test "${enable_static+set}" = set; then :
8426 enableval=$enable_static; p=${PACKAGE-default}
8428 yes) enable_static=yes ;;
8429 no) enable_static=no ;;
8432 # Look at the argument we got. We use all the common list separators.
8433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8434 for pkg in $enableval; do
8436 if test "X$pkg" = "X$p"; then
8456 # Check whether --with-pic was given.
8457 if test "${with_pic+set}" = set; then :
8458 withval=$with_pic; lt_p=${PACKAGE-default}
8460 yes|no) pic_mode=$withval ;;
8463 # Look at the argument we got. We use all the common list separators.
8464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8465 for lt_pkg in $withval; do
8467 if test "X$lt_pkg" = "X$lt_p"; then
8479 test -z "$pic_mode" && pic_mode=default
8487 # Check whether --enable-fast-install was given.
8488 if test "${enable_fast_install+set}" = set; then :
8489 enableval=$enable_fast_install; p=${PACKAGE-default}
8491 yes) enable_fast_install=yes ;;
8492 no) enable_fast_install=no ;;
8494 enable_fast_install=no
8495 # Look at the argument we got. We use all the common list separators.
8496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8497 for pkg in $enableval; do
8499 if test "X$pkg" = "X$p"; then
8500 enable_fast_install=yes
8507 enable_fast_install=yes
8520 # This can be used to rebuild libtool when needed
8521 LIBTOOL_DEPS="$ltmain"
8523 # Always use our own libtool.
8524 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8555 test -z "$LN_S" && LN_S="ln -s"
8570 if test -n "${ZSH_VERSION+set}" ; then
8571 setopt NO_GLOB_SUBST
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8575 $as_echo_n "checking for objdir... " >&6; }
8576 if ${lt_cv_objdir+:} false; then :
8577 $as_echo_n "(cached) " >&6
8579 rm -f .libs 2>/dev/null
8580 mkdir .libs 2>/dev/null
8581 if test -d .libs; then
8584 # MS-DOS does not allow filenames that begin with a dot.
8587 rmdir .libs 2>/dev/null
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8590 $as_echo "$lt_cv_objdir" >&6; }
8591 objdir=$lt_cv_objdir
8597 cat >>confdefs.h <<_ACEOF
8598 #define LT_OBJDIR "$lt_cv_objdir/"
8606 # AIX sometimes has problems with the GCC collect2 program. For some
8607 # reason, if we set the COLLECT_NAMES environment variable, the problems
8608 # vanish in a puff of smoke.
8609 if test "X${COLLECT_NAMES+set}" != Xset; then
8611 export COLLECT_NAMES
8618 can_build_shared=yes
8620 # All known linkers require a `.a' archive for static linking (except MSVC,
8621 # which needs '.lib').
8624 with_gnu_ld="$lt_cv_prog_gnu_ld"
8627 old_CFLAGS="$CFLAGS"
8629 # Set sane defaults for various variables
8630 test -z "$CC" && CC=cc
8631 test -z "$LTCC" && LTCC=$CC
8632 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8633 test -z "$LD" && LD=ld
8634 test -z "$ac_objext" && ac_objext=o
8636 for cc_temp in $compiler""; do
8638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8644 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8647 # Only perform the check for file, if the check method requires it
8648 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8649 case $deplibs_check_method in
8651 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8653 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8654 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8655 $as_echo_n "(cached) " >&6
8659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8662 lt_save_MAGIC_CMD="$MAGIC_CMD"
8663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8664 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8665 for ac_dir in $ac_dummy; do
8667 test -z "$ac_dir" && ac_dir=.
8668 if test -f $ac_dir/${ac_tool_prefix}file; then
8669 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8670 if test -n "$file_magic_test_file"; then
8671 case $deplibs_check_method in
8673 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8676 $EGREP "$file_magic_regex" > /dev/null; then
8681 *** Warning: the command libtool uses to detect shared libraries,
8682 *** $file_magic_cmd, produces output that libtool cannot recognize.
8683 *** The result is that libtool may fail to recognize shared libraries
8684 *** as such. This will affect the creation of libtool libraries that
8685 *** depend on shared libraries, but programs linked with such libtool
8686 *** libraries will work regardless of this problem. Nevertheless, you
8687 *** may want to report the problem to your system manager and/or to
8688 *** bug-libtool@gnu.org
8698 MAGIC_CMD="$lt_save_MAGIC_CMD"
8703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8704 if test -n "$MAGIC_CMD"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8706 $as_echo "$MAGIC_CMD" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8716 if test -z "$lt_cv_path_MAGIC_CMD"; then
8717 if test -n "$ac_tool_prefix"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8719 $as_echo_n "checking for file... " >&6; }
8720 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8721 $as_echo_n "(cached) " >&6
8725 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8728 lt_save_MAGIC_CMD="$MAGIC_CMD"
8729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8730 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8731 for ac_dir in $ac_dummy; do
8733 test -z "$ac_dir" && ac_dir=.
8734 if test -f $ac_dir/file; then
8735 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8736 if test -n "$file_magic_test_file"; then
8737 case $deplibs_check_method in
8739 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8742 $EGREP "$file_magic_regex" > /dev/null; then
8747 *** Warning: the command libtool uses to detect shared libraries,
8748 *** $file_magic_cmd, produces output that libtool cannot recognize.
8749 *** The result is that libtool may fail to recognize shared libraries
8750 *** as such. This will affect the creation of libtool libraries that
8751 *** depend on shared libraries, but programs linked with such libtool
8752 *** libraries will work regardless of this problem. Nevertheless, you
8753 *** may want to report the problem to your system manager and/or to
8754 *** bug-libtool@gnu.org
8764 MAGIC_CMD="$lt_save_MAGIC_CMD"
8769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8770 if test -n "$MAGIC_CMD"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8772 $as_echo "$MAGIC_CMD" >&6; }
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8788 # Use C for the default configuration in the libtool script
8792 ac_cpp='$CPP $CPPFLAGS'
8793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8798 # Source file extension for C test sources.
8801 # Object file extension for compiled C test sources.
8805 # Code to be used in simple compile tests
8806 lt_simple_compile_test_code="int some_variable = 0;"
8808 # Code to be used in simple link tests
8809 lt_simple_link_test_code='int main(){return(0);}'
8817 # If no C compiler was specified, use CC.
8820 # If no C compiler flags were specified, use CFLAGS.
8821 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8823 # Allow CC to be a program name with arguments.
8826 # Save the default compiler, since it gets overwritten when the other
8827 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8828 compiler_DEFAULT=$CC
8830 # save warnings/boilerplate of simple test code
8831 ac_outfile=conftest.$ac_objext
8832 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8833 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8834 _lt_compiler_boilerplate=`cat conftest.err`
8837 ac_outfile=conftest.$ac_objext
8838 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8839 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8840 _lt_linker_boilerplate=`cat conftest.err`
8845 ## There is no encapsulation within the following macros, do not change
8846 ## the running order or otherwise move them around unless you know exactly
8847 ## what you are doing...
8848 if test -n "$compiler"; then
8850 lt_prog_compiler_no_builtin_flag=
8852 if test "$GCC" = yes; then
8853 case $cc_basename in
8855 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8857 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8861 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8862 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8863 $as_echo_n "(cached) " >&6
8865 lt_cv_prog_compiler_rtti_exceptions=no
8866 ac_outfile=conftest.$ac_objext
8867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8868 lt_compiler_flag="-fno-rtti -fno-exceptions"
8869 # Insert the option either (1) after the last *FLAGS variable, or
8870 # (2) before a word containing "conftest.", or (3) at the end.
8871 # Note that $ac_compile itself does not contain backslashes and begins
8872 # with a dollar sign (not a hyphen), so the echo should work correctly.
8873 # The option is referenced via a variable to avoid confusing sed.
8874 lt_compile=`echo "$ac_compile" | $SED \
8875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8877 -e 's:$: $lt_compiler_flag:'`
8878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8879 (eval "$lt_compile" 2>conftest.err)
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 if (exit $ac_status) && test -s "$ac_outfile"; then
8884 # The compiler can only warn and ignore the option if not recognized
8885 # So say no if there are warnings other than the usual output.
8886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8888 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8889 lt_cv_prog_compiler_rtti_exceptions=yes
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8896 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8898 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8899 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8911 lt_prog_compiler_wl=
8912 lt_prog_compiler_pic=
8913 lt_prog_compiler_static=
8916 if test "$GCC" = yes; then
8917 lt_prog_compiler_wl='-Wl,'
8918 lt_prog_compiler_static='-static'
8922 # All AIX code is PIC.
8923 if test "$host_cpu" = ia64; then
8924 # AIX 5 now supports IA64 processor
8925 lt_prog_compiler_static='-Bstatic'
8932 # see comment about AmigaOS4 .so support
8933 lt_prog_compiler_pic='-fPIC'
8936 # FIXME: we need at least 68020 code to build shared libraries, but
8937 # adding the `-m68020' flag to GCC prevents building anything better,
8939 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8945 # PIC is the default for these OSes.
8948 mingw* | cygwin* | pw32* | os2* | cegcc*)
8949 # This hack is so that the source file can tell whether it is being
8950 # built for inclusion in a dll (and should export symbols for example).
8951 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8952 # (--disable-auto-import) libraries
8953 lt_prog_compiler_pic='-DDLL_EXPORT'
8956 darwin* | rhapsody*)
8957 # PIC is the default on this platform
8958 # Common symbols not allowed in MH_DYLIB files
8959 lt_prog_compiler_pic='-fno-common'
8963 # PIC is the default for Haiku.
8964 # The "-static" flag exists, but is broken.
8965 lt_prog_compiler_static=
8969 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8970 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8971 # sets the default TLS model and affects inlining.
8977 lt_prog_compiler_pic='-fPIC'
8983 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8984 # Instead, we relocate shared libraries at runtime.
8988 # Just because we use GCC doesn't mean we suddenly get shared libraries
8989 # on systems that don't support them.
8990 lt_prog_compiler_can_build_shared=no
8995 # QNX uses GNU C++, but need to define -shared option too, otherwise
8997 lt_prog_compiler_pic='-fPIC -shared'
9001 if test -d /usr/nec; then
9002 lt_prog_compiler_pic=-Kconform_pic
9007 lt_prog_compiler_pic='-fPIC'
9011 case $cc_basename in
9012 nvcc*) # Cuda Compiler Driver 2.2
9013 lt_prog_compiler_wl='-Xlinker '
9014 if test -n "$lt_prog_compiler_pic"; then
9015 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9020 # PORTME Check for flag to pass linker flags through the system compiler.
9023 lt_prog_compiler_wl='-Wl,'
9024 if test "$host_cpu" = ia64; then
9025 # AIX 5 now supports IA64 processor
9026 lt_prog_compiler_static='-Bstatic'
9028 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9032 mingw* | cygwin* | pw32* | os2* | cegcc*)
9033 # This hack is so that the source file can tell whether it is being
9034 # built for inclusion in a dll (and should export symbols for example).
9035 lt_prog_compiler_pic='-DDLL_EXPORT'
9038 hpux9* | hpux10* | hpux11*)
9039 lt_prog_compiler_wl='-Wl,'
9040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9047 lt_prog_compiler_pic='+Z'
9050 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9051 lt_prog_compiler_static='${wl}-a ${wl}archive'
9054 irix5* | irix6* | nonstopux*)
9055 lt_prog_compiler_wl='-Wl,'
9056 # PIC (with -KPIC) is the default.
9057 lt_prog_compiler_static='-non_shared'
9060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9061 case $cc_basename in
9062 # old Intel for x86_64 which still supported -KPIC.
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-static'
9068 # icc used to be incompatible with GCC.
9069 # ICC 10 doesn't accept -KPIC any more.
9071 lt_prog_compiler_wl='-Wl,'
9072 lt_prog_compiler_pic='-fPIC'
9073 lt_prog_compiler_static='-static'
9075 # Lahey Fortran 8.1.
9077 lt_prog_compiler_wl='-Wl,'
9078 lt_prog_compiler_pic='--shared'
9079 lt_prog_compiler_static='--static'
9082 # NAG Fortran compiler
9083 lt_prog_compiler_wl='-Wl,-Wl,,'
9084 lt_prog_compiler_pic='-PIC'
9085 lt_prog_compiler_static='-Bstatic'
9087 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9088 # Portland Group compilers (*not* the Pentium gcc compiler,
9089 # which looks to be a dead project)
9090 lt_prog_compiler_wl='-Wl,'
9091 lt_prog_compiler_pic='-fpic'
9092 lt_prog_compiler_static='-Bstatic'
9095 lt_prog_compiler_wl='-Wl,'
9096 # All Alpha code is PIC.
9097 lt_prog_compiler_static='-non_shared'
9099 xl* | bgxl* | bgf* | mpixl*)
9100 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_pic='-qpic'
9103 lt_prog_compiler_static='-qstaticlink'
9106 case `$CC -V 2>&1 | sed 5q` in
9107 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9108 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9109 lt_prog_compiler_pic='-KPIC'
9110 lt_prog_compiler_static='-Bstatic'
9111 lt_prog_compiler_wl=''
9113 *Sun\ F* | *Sun*Fortran*)
9114 lt_prog_compiler_pic='-KPIC'
9115 lt_prog_compiler_static='-Bstatic'
9116 lt_prog_compiler_wl='-Qoption ld '
9120 lt_prog_compiler_pic='-KPIC'
9121 lt_prog_compiler_static='-Bstatic'
9122 lt_prog_compiler_wl='-Wl,'
9124 *Intel*\ [CF]*Compiler*)
9125 lt_prog_compiler_wl='-Wl,'
9126 lt_prog_compiler_pic='-fPIC'
9127 lt_prog_compiler_static='-static'
9130 lt_prog_compiler_wl='-Wl,'
9131 lt_prog_compiler_pic='-fpic'
9132 lt_prog_compiler_static='-Bstatic'
9140 lt_prog_compiler_pic='-KPIC'
9141 lt_prog_compiler_static='-Bstatic'
9145 # QNX uses GNU C++, but need to define -shared option too, otherwise
9147 lt_prog_compiler_pic='-fPIC -shared'
9150 osf3* | osf4* | osf5*)
9151 lt_prog_compiler_wl='-Wl,'
9152 # All OSF/1 code is PIC.
9153 lt_prog_compiler_static='-non_shared'
9157 lt_prog_compiler_static='-non_shared'
9161 lt_prog_compiler_pic='-KPIC'
9162 lt_prog_compiler_static='-Bstatic'
9163 case $cc_basename in
9164 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9165 lt_prog_compiler_wl='-Qoption ld ';;
9167 lt_prog_compiler_wl='-Wl,';;
9172 lt_prog_compiler_wl='-Qoption ld '
9173 lt_prog_compiler_pic='-PIC'
9174 lt_prog_compiler_static='-Bstatic'
9177 sysv4 | sysv4.2uw2* | sysv4.3*)
9178 lt_prog_compiler_wl='-Wl,'
9179 lt_prog_compiler_pic='-KPIC'
9180 lt_prog_compiler_static='-Bstatic'
9184 if test -d /usr/nec ;then
9185 lt_prog_compiler_pic='-Kconform_pic'
9186 lt_prog_compiler_static='-Bstatic'
9190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_pic='-KPIC'
9193 lt_prog_compiler_static='-Bstatic'
9197 lt_prog_compiler_wl='-Wl,'
9198 lt_prog_compiler_can_build_shared=no
9202 lt_prog_compiler_pic='-pic'
9203 lt_prog_compiler_static='-Bstatic'
9207 lt_prog_compiler_can_build_shared=no
9213 # For platforms which do not support PIC, -DPIC is meaningless:
9215 lt_prog_compiler_pic=
9218 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9223 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9224 if ${lt_cv_prog_compiler_pic+:} false; then :
9225 $as_echo_n "(cached) " >&6
9227 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9230 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9231 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9234 # Check to make sure the PIC flag actually works.
9236 if test -n "$lt_prog_compiler_pic"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9238 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9239 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9240 $as_echo_n "(cached) " >&6
9242 lt_cv_prog_compiler_pic_works=no
9243 ac_outfile=conftest.$ac_objext
9244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9245 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9246 # Insert the option either (1) after the last *FLAGS variable, or
9247 # (2) before a word containing "conftest.", or (3) at the end.
9248 # Note that $ac_compile itself does not contain backslashes and begins
9249 # with a dollar sign (not a hyphen), so the echo should work correctly.
9250 # The option is referenced via a variable to avoid confusing sed.
9251 lt_compile=`echo "$ac_compile" | $SED \
9252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9254 -e 's:$: $lt_compiler_flag:'`
9255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9256 (eval "$lt_compile" 2>conftest.err)
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 if (exit $ac_status) && test -s "$ac_outfile"; then
9261 # The compiler can only warn and ignore the option if not recognized
9262 # So say no if there are warnings other than the usual output.
9263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9266 lt_cv_prog_compiler_pic_works=yes
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9273 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9275 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9276 case $lt_prog_compiler_pic in
9278 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9281 lt_prog_compiler_pic=
9282 lt_prog_compiler_can_build_shared=no
9298 # Check to make sure the static flag actually works.
9300 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9303 if ${lt_cv_prog_compiler_static_works+:} false; then :
9304 $as_echo_n "(cached) " >&6
9306 lt_cv_prog_compiler_static_works=no
9307 save_LDFLAGS="$LDFLAGS"
9308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9311 # The linker can only warn and ignore the option if not recognized
9312 # So say no if there are warnings
9313 if test -s conftest.err; then
9314 # Append any errors to the config.log.
9315 cat conftest.err 1>&5
9316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9318 if diff conftest.exp conftest.er2 >/dev/null; then
9319 lt_cv_prog_compiler_static_works=yes
9322 lt_cv_prog_compiler_static_works=yes
9326 LDFLAGS="$save_LDFLAGS"
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9330 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9332 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9335 lt_prog_compiler_static=
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9345 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9346 if ${lt_cv_prog_compiler_c_o+:} false; then :
9347 $as_echo_n "(cached) " >&6
9349 lt_cv_prog_compiler_c_o=no
9350 $RM -r conftest 2>/dev/null
9354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9356 lt_compiler_flag="-o out/conftest2.$ac_objext"
9357 # Insert the option either (1) after the last *FLAGS variable, or
9358 # (2) before a word containing "conftest.", or (3) at the end.
9359 # Note that $ac_compile itself does not contain backslashes and begins
9360 # with a dollar sign (not a hyphen), so the echo should work correctly.
9361 lt_compile=`echo "$ac_compile" | $SED \
9362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9364 -e 's:$: $lt_compiler_flag:'`
9365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9366 (eval "$lt_compile" 2>out/conftest.err)
9368 cat out/conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9372 # The compiler can only warn and ignore the option if not recognized
9373 # So say no if there are warnings
9374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9377 lt_cv_prog_compiler_c_o=yes
9382 # SGI C++ compiler will create directory out/ii_files/ for
9383 # template instantiation
9384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9385 $RM out/* && rmdir out
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9392 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9400 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9401 if ${lt_cv_prog_compiler_c_o+:} false; then :
9402 $as_echo_n "(cached) " >&6
9404 lt_cv_prog_compiler_c_o=no
9405 $RM -r conftest 2>/dev/null
9409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411 lt_compiler_flag="-o out/conftest2.$ac_objext"
9412 # Insert the option either (1) after the last *FLAGS variable, or
9413 # (2) before a word containing "conftest.", or (3) at the end.
9414 # Note that $ac_compile itself does not contain backslashes and begins
9415 # with a dollar sign (not a hyphen), so the echo should work correctly.
9416 lt_compile=`echo "$ac_compile" | $SED \
9417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9419 -e 's:$: $lt_compiler_flag:'`
9420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9421 (eval "$lt_compile" 2>out/conftest.err)
9423 cat out/conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9427 # The compiler can only warn and ignore the option if not recognized
9428 # So say no if there are warnings
9429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9432 lt_cv_prog_compiler_c_o=yes
9437 # SGI C++ compiler will create directory out/ii_files/ for
9438 # template instantiation
9439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9440 $RM out/* && rmdir out
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9447 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9452 hard_links="nottested"
9453 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9454 # do not overwrite the value of need_locks provided by the user
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9456 $as_echo_n "checking if we can lock with hard links... " >&6; }
9459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9461 ln conftest.a conftest.b 2>&5 || hard_links=no
9462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9464 $as_echo "$hard_links" >&6; }
9465 if test "$hard_links" = no; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9467 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9480 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9483 allow_undefined_flag=
9484 always_export_symbols=no
9486 archive_expsym_cmds=
9487 compiler_needs_object=no
9488 enable_shared_with_static_runtimes=no
9489 export_dynamic_flag_spec=
9490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9491 hardcode_automatic=no
9493 hardcode_direct_absolute=no
9494 hardcode_libdir_flag_spec=
9495 hardcode_libdir_separator=
9497 hardcode_shlibpath_var=unsupported
9499 link_all_deplibs=unknown
9502 old_archive_from_new_cmds=
9503 old_archive_from_expsyms_cmds=
9504 thread_safe_flag_spec=
9505 whole_archive_flag_spec=
9506 # include_expsyms should be a list of space-separated symbols to be *always*
9507 # included in the symbol list
9509 # exclude_expsyms can be an extended regexp of symbols to exclude
9510 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9511 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9512 # as well as any symbol that contains `d'.
9513 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9514 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9515 # platforms (ab)use it in PIC code, but their linkers get confused if
9516 # the symbol is explicitly referenced. Since portable code cannot
9517 # rely on this symbol name, it's probably fine to never include it in
9518 # preloaded symbol tables.
9519 # Exclude shared library initialization/finalization symbols.
9520 extract_expsyms_cmds=
9523 cygwin* | mingw* | pw32* | cegcc*)
9524 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9525 # When not using gcc, we currently assume that we are using
9526 # Microsoft Visual C++.
9527 if test "$GCC" != yes; then
9532 # we just hope/assume this is gcc and not c89 (= MSVC++)
9538 linux* | k*bsd*-gnu | gnu*)
9545 # On some targets, GNU ld is compatible enough with the native linker
9546 # that we're better off using the native interface for both.
9547 lt_use_gnu_ld_interface=no
9548 if test "$with_gnu_ld" = yes; then
9551 # The AIX port of GNU ld has always aspired to compatibility
9552 # with the native linker. However, as the warning in the GNU ld
9553 # block says, versions before 2.19.5* couldn't really create working
9554 # shared libraries, regardless of the interface used.
9555 case `$LD -v 2>&1` in
9556 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9557 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9558 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9560 lt_use_gnu_ld_interface=yes
9565 lt_use_gnu_ld_interface=yes
9570 if test "$lt_use_gnu_ld_interface" = yes; then
9571 # If archive_cmds runs LD, not CC, wlarc should be empty
9574 # Set some defaults for GNU ld with shared library support. These
9575 # are reset later if shared libraries are not supported. Putting them
9576 # here allows them to be overridden if necessary.
9577 runpath_var=LD_RUN_PATH
9578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579 export_dynamic_flag_spec='${wl}--export-dynamic'
9580 # ancient GNU ld didn't support --whole-archive et. al.
9581 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9582 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9584 whole_archive_flag_spec=
9586 supports_anon_versioning=no
9587 case `$LD -v 2>&1` in
9588 *GNU\ gold*) supports_anon_versioning=yes ;;
9589 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9590 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9591 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9592 *\ 2.11.*) ;; # other 2.11 versions
9593 *) supports_anon_versioning=yes ;;
9596 # See if GNU ld supports shared libraries.
9599 # On AIX/PPC, the GNU linker is very broken
9600 if test "$host_cpu" != ia64; then
9604 *** Warning: the GNU linker, at least up to release 2.19, is reported
9605 *** to be unable to reliably create shared libraries on AIX.
9606 *** Therefore, libtool is disabling shared libraries support. If you
9607 *** really care for shared libraries, you may want to install binutils
9608 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9609 *** You will then need to restart the configuration process.
9618 # see comment about AmigaOS4 .so support
9619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620 archive_expsym_cmds=''
9623 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)'
9624 hardcode_libdir_flag_spec='-L$libdir'
9625 hardcode_minus_L=yes
9631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9632 allow_undefined_flag=unsupported
9633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9634 # support --undefined. This deserves some investigation. FIXME
9635 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641 cygwin* | mingw* | pw32* | cegcc*)
9642 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9643 # as there is no search path for DLLs.
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 export_dynamic_flag_spec='${wl}--export-all-symbols'
9646 allow_undefined_flag=unsupported
9647 always_export_symbols=no
9648 enable_shared_with_static_runtimes=yes
9649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9650 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9652 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9654 # If the export-symbols file already is a .def file (1st line
9655 # is EXPORTS), use it as is; otherwise, prepend...
9656 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9657 cp $export_symbols $output_objdir/$soname.def;
9659 echo EXPORTS > $output_objdir/$soname.def;
9660 cat $export_symbols >> $output_objdir/$soname.def;
9662 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9670 link_all_deplibs=yes
9675 hardcode_shlibpath_var=no
9676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9677 export_dynamic_flag_spec='${wl}-E'
9678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9679 # Instead, shared libraries are loaded at an image base (0x10000000 by
9680 # default) and relocated if they conflict, which is a slow very memory
9681 # consuming and fragmenting process. To avoid this, we pick a random,
9682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9685 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'
9688 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9690 if test "$host_os" = linux-dietlibc; then
9691 case $cc_basename in
9692 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9695 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9696 && test "$tmp_diet" = no
9698 tmp_addflag=' $pic_flag'
9699 tmp_sharedflag='-shared'
9700 case $cc_basename,$host_cpu in
9701 pgcc*) # Portland Group C compiler
9702 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9703 tmp_addflag=' $pic_flag'
9705 pgf77* | pgf90* | pgf95* | pgfortran*)
9706 # Portland Group f77 and f90 compilers
9707 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9708 tmp_addflag=' $pic_flag -Mnomain' ;;
9709 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9710 tmp_addflag=' -i_dynamic' ;;
9711 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9712 tmp_addflag=' -i_dynamic -nofor_main' ;;
9713 ifc* | ifort*) # Intel Fortran compiler
9714 tmp_addflag=' -nofor_main' ;;
9715 lf95*) # Lahey Fortran 8.1
9716 whole_archive_flag_spec=
9717 tmp_sharedflag='--shared' ;;
9718 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9719 tmp_sharedflag='-qmkshrobj'
9721 nvcc*) # Cuda Compiler Driver 2.2
9722 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9723 compiler_needs_object=yes
9726 case `$CC -V 2>&1 | sed 5q` in
9727 *Sun\ C*) # Sun C 5.9
9728 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9729 compiler_needs_object=yes
9730 tmp_sharedflag='-G' ;;
9731 *Sun\ F*) # Sun Fortran 8.3
9732 tmp_sharedflag='-G' ;;
9734 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736 if test "x$supports_anon_versioning" = xyes; then
9737 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9739 echo "local: *; };" >> $output_objdir/$libname.ver~
9740 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9743 case $cc_basename in
9744 xlf* | bgf* | bgxlf* | mpixlf*)
9745 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9746 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9749 if test "x$supports_anon_versioning" = xyes; then
9750 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9752 echo "local: *; };" >> $output_objdir/$libname.ver~
9753 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9762 netbsd* | netbsdelf*-gnu)
9763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9764 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9768 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9773 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9777 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9778 *** create shared libraries on Solaris systems. Therefore, libtool
9779 *** is disabling shared libraries support. We urge you to upgrade GNU
9780 *** binutils to release 2.9.1 or newer. Another option is to modify
9781 *** your PATH or compiler configuration so that the native linker is
9782 *** used, and then restart.
9785 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9794 case `$LD -v 2>&1` in
9795 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9799 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9800 *** reliably create shared libraries on SCO systems. Therefore, libtool
9801 *** is disabling shared libraries support. We urge you to upgrade GNU
9802 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9803 *** your PATH or compiler configuration so that the native linker is
9804 *** used, and then restart.
9809 # For security reasons, it is highly recommended that you always
9810 # use absolute paths for naming shared libraries, and exclude the
9811 # DT_RUNPATH tag from executables and libraries. But doing so
9812 # requires that you compile everything twice, which is a pain.
9813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9825 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9828 hardcode_shlibpath_var=no
9832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9833 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9841 if test "$ld_shlibs" = no; then
9843 hardcode_libdir_flag_spec=
9844 export_dynamic_flag_spec=
9845 whole_archive_flag_spec=
9848 # PORTME fill in a description of your system's linker (not GNU ld)
9851 allow_undefined_flag=unsupported
9852 always_export_symbols=yes
9853 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'
9854 # Note: this linker hardcodes the directories in LIBPATH if there
9855 # are no directories specified by -L.
9856 hardcode_minus_L=yes
9857 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9858 # Neither direct hardcoding nor static linking is supported with a
9860 hardcode_direct=unsupported
9865 if test "$host_cpu" = ia64; then
9866 # On IA64, the linker does run time linking by default, so we don't
9867 # have to do anything special.
9868 aix_use_runtimelinking=no
9869 exp_sym_flag='-Bexport'
9872 # If we're using GNU nm, then we don't want the "-C" option.
9873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9874 # Also, AIX nm treats weak defined symbols like other global
9875 # defined symbols, whereas GNU nm marks them as "W".
9876 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9877 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9879 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'
9881 aix_use_runtimelinking=no
9883 # Test if we are trying to use run time linking or normal
9884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9885 # need to do runtime linking.
9886 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9887 for ld_flag in $LDFLAGS; do
9888 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9889 aix_use_runtimelinking=yes
9896 exp_sym_flag='-bexport'
9897 no_entry_flag='-bnoentry'
9900 # When large executables or shared objects are built, AIX ld can
9901 # have problems creating the table of contents. If linking a library
9902 # or program results in "error TOC overflow" add -mminimal-toc to
9903 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9904 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9908 hardcode_direct_absolute=yes
9909 hardcode_libdir_separator=':'
9910 link_all_deplibs=yes
9911 file_list_spec='${wl}-f,'
9913 if test "$GCC" = yes; then
9914 case $host_os in aix4.[012]|aix4.[012].*)
9915 # We only want to do this on AIX 4.2 and lower, the check
9916 # below for broken collect2 doesn't work under 4.3+
9917 collect2name=`${CC} -print-prog-name=collect2`
9918 if test -f "$collect2name" &&
9919 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9921 # We have reworked collect2
9924 # We have old collect2
9925 hardcode_direct=unsupported
9926 # It fails to find uninstalled libraries when the uninstalled
9927 # path is not listed in the libpath. Setting hardcode_minus_L
9928 # to unsupported forces relinking
9929 hardcode_minus_L=yes
9930 hardcode_libdir_flag_spec='-L$libdir'
9931 hardcode_libdir_separator=
9935 shared_flag='-shared'
9936 if test "$aix_use_runtimelinking" = yes; then
9937 shared_flag="$shared_flag "'${wl}-G'
9942 if test "$host_cpu" = ia64; then
9943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9944 # chokes on -Wl,-G. The following line is correct:
9947 if test "$aix_use_runtimelinking" = yes; then
9948 shared_flag='${wl}-G'
9950 shared_flag='${wl}-bM:SRE'
9955 export_dynamic_flag_spec='${wl}-bexpall'
9956 # It seems that -bexpall does not export symbols beginning with
9957 # underscore (_), so it is better to generate a list of symbols to export.
9958 always_export_symbols=yes
9959 if test "$aix_use_runtimelinking" = yes; then
9960 # Warning - without using the other runtime loading flags (-brtl),
9961 # -berok will link without error, but may produce a broken library.
9962 allow_undefined_flag='-berok'
9963 # Determine the default libpath from the value encoded in an
9965 if test "${lt_cv_aix_libpath+set}" = set; then
9966 aix_libpath=$lt_cv_aix_libpath
9968 if ${lt_cv_aix_libpath_+:} false; then :
9969 $as_echo_n "(cached) " >&6
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9982 if ac_fn_c_try_link "$LINENO"; then :
9984 lt_aix_libpath_sed='
9985 /Import File Strings/,/^$/ {
9987 s/^0 *\([^ ]*\) *$/\1/
9991 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9992 # Check for a 64-bit object if we didn't find anything.
9993 if test -z "$lt_cv_aix_libpath_"; then
9994 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9997 rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 if test -z "$lt_cv_aix_libpath_"; then
10000 lt_cv_aix_libpath_="/usr/lib:/lib"
10005 aix_libpath=$lt_cv_aix_libpath_
10008 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10009 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10011 if test "$host_cpu" = ia64; then
10012 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10013 allow_undefined_flag="-z nodefs"
10014 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"
10016 # Determine the default libpath from the value encoded in an
10017 # empty executable.
10018 if test "${lt_cv_aix_libpath+set}" = set; then
10019 aix_libpath=$lt_cv_aix_libpath
10021 if ${lt_cv_aix_libpath_+:} false; then :
10022 $as_echo_n "(cached) " >&6
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10035 if ac_fn_c_try_link "$LINENO"; then :
10037 lt_aix_libpath_sed='
10038 /Import File Strings/,/^$/ {
10040 s/^0 *\([^ ]*\) *$/\1/
10044 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10045 # Check for a 64-bit object if we didn't find anything.
10046 if test -z "$lt_cv_aix_libpath_"; then
10047 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 if test -z "$lt_cv_aix_libpath_"; then
10053 lt_cv_aix_libpath_="/usr/lib:/lib"
10058 aix_libpath=$lt_cv_aix_libpath_
10061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10062 # Warning - without using the other run time loading flags,
10063 # -berok will link without error, but may produce a broken library.
10064 no_undefined_flag=' ${wl}-bernotok'
10065 allow_undefined_flag=' ${wl}-berok'
10066 if test "$with_gnu_ld" = yes; then
10067 # We only use this code for GNU lds that support --whole-archive.
10068 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10070 # Exported symbols can be pulled into shared objects from archives
10071 whole_archive_flag_spec='$convenience'
10073 archive_cmds_need_lc=yes
10074 # This is similar to how AIX traditionally builds its shared libraries.
10075 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'
10083 # see comment about AmigaOS4 .so support
10084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085 archive_expsym_cmds=''
10088 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)'
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_minus_L=yes
10096 export_dynamic_flag_spec=-rdynamic
10099 cygwin* | mingw* | pw32* | cegcc*)
10100 # When not using gcc, we currently assume that we are using
10101 # Microsoft Visual C++.
10102 # hardcode_libdir_flag_spec is actually meaningless, as there is
10103 # no search path for DLLs.
10104 case $cc_basename in
10107 hardcode_libdir_flag_spec=' '
10108 allow_undefined_flag=unsupported
10109 always_export_symbols=yes
10111 # Tell ltmain to make .lib files, not .a files.
10113 # Tell ltmain to make .dll files, not .so files.
10115 # FIXME: Setting linknames here is a bad hack.
10116 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10117 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10118 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10120 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10122 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10124 # The linker will not automatically build a static lib if we build a DLL.
10125 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10126 enable_shared_with_static_runtimes=yes
10127 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10130 old_postinstall_cmds='chmod 644 $oldlib'
10131 postlink_cmds='lt_outputfile="@OUTPUT@"~
10132 lt_tool_outputfile="@TOOL_OUTPUT@"~
10133 case $lt_outputfile in
10136 lt_outputfile="$lt_outputfile.exe"
10137 lt_tool_outputfile="$lt_tool_outputfile.exe"
10140 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10141 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10142 $RM "$lt_outputfile.manifest";
10146 # Assume MSVC wrapper
10147 hardcode_libdir_flag_spec=' '
10148 allow_undefined_flag=unsupported
10149 # Tell ltmain to make .lib files, not .a files.
10151 # Tell ltmain to make .dll files, not .so files.
10153 # FIXME: Setting linknames here is a bad hack.
10154 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10155 # The linker will automatically build a .lib file if we build a DLL.
10156 old_archive_from_new_cmds='true'
10157 # FIXME: Should let the user specify the lib program.
10158 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10159 enable_shared_with_static_runtimes=yes
10164 darwin* | rhapsody*)
10167 archive_cmds_need_lc=no
10169 hardcode_automatic=yes
10170 hardcode_shlibpath_var=unsupported
10171 if test "$lt_cv_ld_force_load" = "yes"; then
10172 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10175 whole_archive_flag_spec=''
10177 link_all_deplibs=yes
10178 allow_undefined_flag="$_lt_dar_allow_undefined"
10179 case $cc_basename in
10180 ifort*) _lt_dar_can_shared=yes ;;
10181 *) _lt_dar_can_shared=$GCC ;;
10183 if test "$_lt_dar_can_shared" = "yes"; then
10184 output_verbose_link_cmd=func_echo_all
10185 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10186 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10187 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}"
10188 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}"
10197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198 hardcode_libdir_flag_spec='-L$libdir'
10199 hardcode_shlibpath_var=no
10202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10203 # support. Future versions do this automatically, but an explicit c++rt0.o
10204 # does not break anything, and helps significantly (at the cost of a little
10207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10208 hardcode_libdir_flag_spec='-R$libdir'
10209 hardcode_direct=yes
10210 hardcode_shlibpath_var=no
10213 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_direct=yes
10217 hardcode_minus_L=yes
10218 hardcode_shlibpath_var=no
10221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10222 freebsd* | dragonfly*)
10223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224 hardcode_libdir_flag_spec='-R$libdir'
10225 hardcode_direct=yes
10226 hardcode_shlibpath_var=no
10230 if test "$GCC" = yes; then
10231 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10233 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'
10235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236 hardcode_libdir_separator=:
10237 hardcode_direct=yes
10239 # hardcode_minus_L: Not really in the search PATH,
10240 # but as the default location of the library.
10241 hardcode_minus_L=yes
10242 export_dynamic_flag_spec='${wl}-E'
10246 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10247 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10251 if test "$with_gnu_ld" = no; then
10252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10253 hardcode_libdir_separator=:
10254 hardcode_direct=yes
10255 hardcode_direct_absolute=yes
10256 export_dynamic_flag_spec='${wl}-E'
10257 # hardcode_minus_L: Not really in the search PATH,
10258 # but as the default location of the library.
10259 hardcode_minus_L=yes
10264 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10267 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10286 # Older versions of the 11.00 compiler do not understand -b yet
10287 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10289 $as_echo_n "checking if $CC understands -b... " >&6; }
10290 if ${lt_cv_prog_compiler__b+:} false; then :
10291 $as_echo_n "(cached) " >&6
10293 lt_cv_prog_compiler__b=no
10294 save_LDFLAGS="$LDFLAGS"
10295 LDFLAGS="$LDFLAGS -b"
10296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10298 # The linker can only warn and ignore the option if not recognized
10299 # So say no if there are warnings
10300 if test -s conftest.err; then
10301 # Append any errors to the config.log.
10302 cat conftest.err 1>&5
10303 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10305 if diff conftest.exp conftest.er2 >/dev/null; then
10306 lt_cv_prog_compiler__b=yes
10309 lt_cv_prog_compiler__b=yes
10313 LDFLAGS="$save_LDFLAGS"
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10317 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10319 if test x"$lt_cv_prog_compiler__b" = xyes; then
10320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10328 if test "$with_gnu_ld" = no; then
10329 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10330 hardcode_libdir_separator=:
10335 hardcode_shlibpath_var=no
10338 hardcode_direct=yes
10339 hardcode_direct_absolute=yes
10340 export_dynamic_flag_spec='${wl}-E'
10342 # hardcode_minus_L: Not really in the search PATH,
10343 # but as the default location of the library.
10344 hardcode_minus_L=yes
10350 irix5* | irix6* | nonstopux*)
10351 if test "$GCC" = yes; then
10352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10353 # Try to use the -exported_symbol ld option, if it does not
10354 # work, assume that -exports_file does not work either and
10355 # implicitly export all symbols.
10356 # This should be the same for all languages, so no per-tag cache variable.
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10358 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10359 if ${lt_cv_irix_exported_symbol+:} false; then :
10360 $as_echo_n "(cached) " >&6
10362 save_LDFLAGS="$LDFLAGS"
10363 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int foo (void) { return 0; }
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 lt_cv_irix_exported_symbol=yes
10371 lt_cv_irix_exported_symbol=no
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 LDFLAGS="$save_LDFLAGS"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10378 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10379 if test "$lt_cv_irix_exported_symbol" = yes; then
10380 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10386 archive_cmds_need_lc='no'
10387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10388 hardcode_libdir_separator=:
10390 link_all_deplibs=yes
10393 netbsd* | netbsdelf*-gnu)
10394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10397 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10399 hardcode_libdir_flag_spec='-R$libdir'
10400 hardcode_direct=yes
10401 hardcode_shlibpath_var=no
10405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_direct=yes
10407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10408 hardcode_libdir_separator=:
10409 hardcode_shlibpath_var=no
10416 if test -f /usr/libexec/ld.so; then
10417 hardcode_direct=yes
10418 hardcode_shlibpath_var=no
10419 hardcode_direct_absolute=yes
10420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10424 export_dynamic_flag_spec='${wl}-E'
10427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10429 hardcode_libdir_flag_spec='-R$libdir'
10432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10443 hardcode_libdir_flag_spec='-L$libdir'
10444 hardcode_minus_L=yes
10445 allow_undefined_flag=unsupported
10446 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'
10447 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10451 if test "$GCC" = yes; then
10452 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10453 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10455 allow_undefined_flag=' -expect_unresolved \*'
10456 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10458 archive_cmds_need_lc='no'
10459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10460 hardcode_libdir_separator=:
10463 osf4* | osf5*) # as osf3* with the addition of -msym flag
10464 if test "$GCC" = yes; then
10465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10466 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469 allow_undefined_flag=' -expect_unresolved \*'
10470 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10471 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~
10472 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10474 # Both c and cxx compiler support -rpath directly
10475 hardcode_libdir_flag_spec='-rpath $libdir'
10477 archive_cmds_need_lc='no'
10478 hardcode_libdir_separator=:
10482 no_undefined_flag=' -z defs'
10483 if test "$GCC" = yes; then
10485 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10487 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10489 case `$CC -V 2>&1` in
10492 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10494 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10498 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10500 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10504 hardcode_libdir_flag_spec='-R$libdir'
10505 hardcode_shlibpath_var=no
10507 solaris2.[0-5] | solaris2.[0-5].*) ;;
10509 # The compiler driver will combine and reorder linker options,
10510 # but understands `-z linker_flag'. GCC discards it without `$wl',
10511 # but is careful enough not to reorder.
10512 # Supported since Solaris 2.6 (maybe 2.5.1?)
10513 if test "$GCC" = yes; then
10514 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10520 link_all_deplibs=yes
10524 if test "x$host_vendor" = xsequent; then
10525 # Use $CC to link under sequent, because it throws in some extra .o
10526 # files that make .init and .fini sections work.
10527 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10529 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10531 hardcode_libdir_flag_spec='-L$libdir'
10532 hardcode_direct=yes
10533 hardcode_minus_L=yes
10534 hardcode_shlibpath_var=no
10538 case $host_vendor in
10540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541 hardcode_direct=yes # is this really true???
10544 ## LD is ld it makes a PLAMLIB
10545 ## CC just makes a GrossModule.
10546 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10547 reload_cmds='$CC -r -o $output$reload_objs'
10551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10555 runpath_var='LD_RUN_PATH'
10556 hardcode_shlibpath_var=no
10560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561 hardcode_shlibpath_var=no
10562 export_dynamic_flag_spec='-Bexport'
10566 if test -d /usr/nec; then
10567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_shlibpath_var=no
10569 runpath_var=LD_RUN_PATH
10570 hardcode_runpath_var=yes
10575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10576 no_undefined_flag='${wl}-z,text'
10577 archive_cmds_need_lc=no
10578 hardcode_shlibpath_var=no
10579 runpath_var='LD_RUN_PATH'
10581 if test "$GCC" = yes; then
10582 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590 sysv5* | sco3.2v5* | sco5v6*)
10591 # Note: We can NOT use -z defs as we might desire, because we do not
10592 # link with -lc, and that would cause any symbols used from libc to
10593 # always be unresolved, which means just about no library would
10594 # ever link correctly. If we're not using GNU ld we use -z text
10595 # though, which does catch some bad symbols but isn't as heavy-handed
10597 no_undefined_flag='${wl}-z,text'
10598 allow_undefined_flag='${wl}-z,nodefs'
10599 archive_cmds_need_lc=no
10600 hardcode_shlibpath_var=no
10601 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10602 hardcode_libdir_separator=':'
10603 link_all_deplibs=yes
10604 export_dynamic_flag_spec='${wl}-Bexport'
10605 runpath_var='LD_RUN_PATH'
10607 if test "$GCC" = yes; then
10608 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10618 hardcode_libdir_flag_spec='-L$libdir'
10619 hardcode_shlibpath_var=no
10627 if test x$host_vendor = xsni; then
10629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10630 export_dynamic_flag_spec='${wl}-Blargedynsym'
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10637 $as_echo "$ld_shlibs" >&6; }
10638 test "$ld_shlibs" = no && can_build_shared=no
10640 with_gnu_ld=$with_gnu_ld
10657 # Do we need to explicitly link libc?
10659 case "x$archive_cmds_need_lc" in
10661 # Assume -lc should be added
10662 archive_cmds_need_lc=yes
10664 if test "$enable_shared" = yes && test "$GCC" = yes; then
10665 case $archive_cmds in
10667 # FIXME: we may have to deal with multi-command sequences.
10670 # Test whether the compiler implicitly links with -lc since on some
10671 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10672 # to ld, don't add -lc before -lgcc.
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10674 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10675 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10676 $as_echo_n "(cached) " >&6
10679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10682 (eval $ac_compile) 2>&5
10684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10685 test $ac_status = 0; } 2>conftest.err; then
10688 libobjs=conftest.$ac_objext
10690 wl=$lt_prog_compiler_wl
10691 pic_flag=$lt_prog_compiler_pic
10697 lt_save_allow_undefined_flag=$allow_undefined_flag
10698 allow_undefined_flag=
10699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10700 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10703 test $ac_status = 0; }
10705 lt_cv_archive_cmds_need_lc=no
10707 lt_cv_archive_cmds_need_lc=yes
10709 allow_undefined_flag=$lt_save_allow_undefined_flag
10711 cat conftest.err 1>&5
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10717 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10718 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10877 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10879 if test "$GCC" = yes; then
10881 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10882 *) lt_awk_arg="/^libraries:/" ;;
10885 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10886 *) lt_sed_strip_eq="s,=/,/,g" ;;
10888 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10889 case $lt_search_path_spec in
10891 # if the path contains ";" then we assume it to be the separator
10892 # otherwise default to the standard path separator (i.e. ":") - it is
10893 # assumed that no part of a normal pathname contains ";" but that should
10894 # okay in the real world where ";" in dirpaths is itself problematic.
10895 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10898 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10901 # Ok, now we have the path, separated by spaces, we can step through it
10902 # and add multilib dir if necessary.
10903 lt_tmp_lt_search_path_spec=
10904 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10905 for lt_sys_path in $lt_search_path_spec; do
10906 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10907 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10909 test -d "$lt_sys_path" && \
10910 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10913 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10914 BEGIN {RS=" "; FS="/|\n";} {
10917 for (lt_i = NF; lt_i > 0; lt_i--) {
10918 if ($lt_i != "" && $lt_i != ".") {
10919 if ($lt_i == "..") {
10922 if (lt_count == 0) {
10923 lt_foo="/" $lt_i lt_foo;
10930 if (lt_foo != "") { lt_freq[lt_foo]++; }
10931 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10933 # AWK program above erroneously prepends '/' to C:/dos/paths
10936 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10937 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10939 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10941 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10943 library_names_spec=
10944 libname_spec='lib$name'
10948 postuninstall_cmds=
10952 shlibpath_overrides_runpath=unknown
10954 dynamic_linker="$host_os ld.so"
10955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10956 need_lib_prefix=unknown
10957 hardcode_into_libs=no
10959 # when you set need_version to no, make sure it does not cause -set_version
10960 # flags to be left without arguments
10961 need_version=unknown
10965 version_type=linux # correct to gnu/linux during the next big refactor
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10967 shlibpath_var=LIBPATH
10969 # AIX 3 has no versioning support, so we append a major version to the name.
10970 soname_spec='${libname}${release}${shared_ext}$major'
10974 version_type=linux # correct to gnu/linux during the next big refactor
10977 hardcode_into_libs=yes
10978 if test "$host_cpu" = ia64; then
10979 # AIX 5 supports IA64
10980 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10981 shlibpath_var=LD_LIBRARY_PATH
10983 # With GCC up to 2.95.x, collect2 would create an import file
10984 # for dependence libraries. The import file would start with
10985 # the line `#! .'. This would cause the generated library to
10986 # depend on `.', always an invalid library. This was fixed in
10987 # development snapshots of GCC prior to 3.0.
10989 aix4 | aix4.[01] | aix4.[01].*)
10990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10992 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10995 can_build_shared=no
10999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11000 # soname into executable. Probably we can add versioning support to
11001 # collect2, so additional links can be useful in future.
11002 if test "$aix_use_runtimelinking" = yes; then
11003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11004 # instead of lib<name>.a to let people know that these are not
11005 # typical AIX shared libraries.
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 # We preserve .a as extension for shared libraries through AIX4.2
11009 # and later when we are not doing run time linking.
11010 library_names_spec='${libname}${release}.a $libname.a'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11013 shlibpath_var=LIBPATH
11020 # Since July 2007 AmigaOS4 officially supports .so libraries.
11021 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 library_names_spec='$libname.ixlibrary $libname.a'
11026 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11027 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11033 library_names_spec='${libname}${shared_ext}'
11034 dynamic_linker="$host_os ld.so"
11035 shlibpath_var=LIBRARY_PATH
11039 version_type=linux # correct to gnu/linux during the next big refactor
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11046 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11047 # the default ld.so.conf also contains /usr/contrib/lib and
11048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11049 # libtool to hard-code these into programs
11052 cygwin* | mingw* | pw32* | cegcc*)
11053 version_type=windows
11058 case $GCC,$cc_basename in
11061 library_names_spec='$libname.dll.a'
11062 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11063 postinstall_cmds='base_file=`basename \${file}`~
11064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11065 dldir=$destdir/`dirname \$dlpath`~
11066 test -d \$dldir || mkdir -p \$dldir~
11067 $install_prog $dir/$dlname \$dldir/$dlname~
11068 chmod a+x \$dldir/$dlname~
11069 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11070 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11073 dlpath=$dir/\$dldll~
11075 shlibpath_overrides_runpath=yes
11079 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11080 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11082 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11085 # MinGW DLLs use traditional 'lib' prefix
11086 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11089 # pw32 DLLs use 'pw' prefix rather than 'lib'
11090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11093 dynamic_linker='Win32 ld.exe'
11098 libname_spec='$name'
11099 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11100 library_names_spec='${libname}.dll.lib'
11104 sys_lib_search_path_spec=
11107 for lt_path in $LIB
11110 # Let DOS variable expansion print the short 8.3 style file name.
11111 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11112 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11115 # Convert to MSYS style.
11116 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11119 # Convert to unix form, then to dos form, then back to unix form
11120 # but this time dos style (no spaces!) so that the unix form looks
11121 # like /cygdrive/c/PROGRA~1:/cygdr...
11122 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11123 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11124 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11127 sys_lib_search_path_spec="$LIB"
11128 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11129 # It is most probably a Windows format PATH.
11130 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11134 # FIXME: find the short name or the path components, as spaces are
11135 # common. (e.g. "Program Files" -> "PROGRA~1")
11139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11140 postinstall_cmds='base_file=`basename \${file}`~
11141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11142 dldir=$destdir/`dirname \$dlpath`~
11143 test -d \$dldir || mkdir -p \$dldir~
11144 $install_prog $dir/$dlname \$dldir/$dlname'
11145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11146 dlpath=$dir/\$dldll~
11148 shlibpath_overrides_runpath=yes
11149 dynamic_linker='Win32 link.exe'
11153 # Assume MSVC wrapper
11154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11155 dynamic_linker='Win32 ld.exe'
11158 # FIXME: first we should search . and the directory the executable is in
11162 darwin* | rhapsody*)
11163 dynamic_linker="$host_os dyld"
11164 version_type=darwin
11167 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11168 soname_spec='${libname}${release}${major}$shared_ext'
11169 shlibpath_overrides_runpath=yes
11170 shlibpath_var=DYLD_LIBRARY_PATH
11171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11173 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11174 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11178 version_type=linux # correct to gnu/linux during the next big refactor
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11186 freebsd* | dragonfly*)
11187 # DragonFly does not have aout. When/if they implement a new
11188 # versioning mechanism, adjust this.
11189 if test -x /usr/bin/objformat; then
11190 objformat=`/usr/bin/objformat`
11193 freebsd[23].*) objformat=aout ;;
11194 *) objformat=elf ;;
11197 version_type=freebsd-$objformat
11198 case $version_type in
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11209 shlibpath_var=LD_LIBRARY_PATH
11212 shlibpath_overrides_runpath=yes
11214 freebsd3.[01]* | freebsdelf3.[01]*)
11215 shlibpath_overrides_runpath=yes
11216 hardcode_into_libs=yes
11218 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11219 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11220 shlibpath_overrides_runpath=no
11221 hardcode_into_libs=yes
11223 *) # from 4.6 on, and DragonFly
11224 shlibpath_overrides_runpath=yes
11225 hardcode_into_libs=yes
11231 version_type=linux # correct to gnu/linux during the next big refactor
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11235 soname_spec='${libname}${release}${shared_ext}$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=no
11238 hardcode_into_libs=yes
11242 version_type=linux # correct to gnu/linux during the next big refactor
11245 dynamic_linker="$host_os runtime_loader"
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 shlibpath_var=LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11251 hardcode_into_libs=yes
11254 hpux9* | hpux10* | hpux11*)
11255 # Give a soname corresponding to the major version so that dld.sl refuses to
11256 # link against other versions.
11263 hardcode_into_libs=yes
11264 dynamic_linker="$host_os dld.so"
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 if test "X$HPUX_IA64_MODE" = X32; then
11270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11278 hardcode_into_libs=yes
11279 dynamic_linker="$host_os dld.sl"
11280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11289 dynamic_linker="$host_os dld.sl"
11290 shlibpath_var=SHLIB_PATH
11291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11296 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11297 postinstall_cmds='chmod 555 $lib'
11298 # or fails outright, so override atomically:
11299 install_override_mode=555
11303 version_type=linux # correct to gnu/linux during the next big refactor
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11309 shlibpath_var=LD_LIBRARY_PATH
11310 shlibpath_overrides_runpath=no
11311 hardcode_into_libs=yes
11314 irix5* | irix6* | nonstopux*)
11316 nonstopux*) version_type=nonstopux ;;
11318 if test "$lt_cv_prog_gnu_ld" = yes; then
11319 version_type=linux # correct to gnu/linux during the next big refactor
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11329 irix5* | nonstopux*)
11330 libsuff= shlibsuff=
11333 case $LD in # libtool.m4 will add one of these switches to LD
11334 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11335 libsuff= shlibsuff= libmagic=32-bit;;
11336 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11337 libsuff=32 shlibsuff=N32 libmagic=N32;;
11338 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11339 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11340 *) libsuff= shlibsuff= libmagic=never-match;;
11344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11345 shlibpath_overrides_runpath=no
11346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11348 hardcode_into_libs=yes
11351 # No shared lib support for Linux oldld, aout, or coff.
11352 linux*oldld* | linux*aout* | linux*coff*)
11356 # This must be glibc/ELF.
11357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11358 version_type=linux # correct to gnu/linux during the next big refactor
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath=no
11367 # Some binutils ld are patched to set DT_RUNPATH
11368 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11369 $as_echo_n "(cached) " >&6
11371 lt_cv_shlibpath_overrides_runpath=no
11372 save_LDFLAGS=$LDFLAGS
11373 save_libdir=$libdir
11374 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11375 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11387 if ac_fn_c_try_link "$LINENO"; then :
11388 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11389 lt_cv_shlibpath_overrides_runpath=yes
11392 rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394 LDFLAGS=$save_LDFLAGS
11395 libdir=$save_libdir
11399 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11401 # This implies no fast_install, which is unacceptable.
11402 # Some rework will be needed to allow for fast_install
11403 # before this can be enabled.
11404 hardcode_into_libs=yes
11406 # Append ld.so.conf contents to the search path
11407 if test -f /etc/ld.so.conf; then
11408 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;s/"//g;/^$/d' | tr '\n' ' '`
11409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11412 # We used to test for /lib/ld.so.1 and disable shared libraries on
11413 # powerpc, because MkLinux only supported shared libraries with the
11414 # GNU dynamic linker. Since this was broken with cross compilers,
11415 # most powerpc-linux boxes support dynamic linking these days and
11416 # people can always --disable-shared, the test was removed, and we
11417 # assume the GNU/Linux dynamic linker is in use.
11418 dynamic_linker='GNU/Linux ld.so'
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 shlibpath_var=LD_LIBRARY_PATH
11428 shlibpath_overrides_runpath=no
11429 hardcode_into_libs=yes
11430 dynamic_linker='NetBSD ld.elf_so'
11437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11440 dynamic_linker='NetBSD (a.out) ld.so'
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 dynamic_linker='NetBSD ld.elf_so'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 shlibpath_overrides_runpath=yes
11448 hardcode_into_libs=yes
11452 version_type=linux # correct to gnu/linux during the next big refactor
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=no
11466 hardcode_into_libs=yes
11467 dynamic_linker='ldqnx.so'
11472 sys_lib_dlsearch_path_spec="/usr/lib"
11474 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11476 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11477 *) need_version=no ;;
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11484 openbsd2.[89] | openbsd2.[89].*)
11485 shlibpath_overrides_runpath=no
11488 shlibpath_overrides_runpath=yes
11492 shlibpath_overrides_runpath=yes
11497 libname_spec='$name'
11500 library_names_spec='$libname${shared_ext} $libname.a'
11501 dynamic_linker='OS/2 ld.exe'
11502 shlibpath_var=LIBPATH
11505 osf3* | osf4* | osf5*)
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11513 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11521 version_type=linux # correct to gnu/linux during the next big refactor
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 hardcode_into_libs=yes
11529 # ldd complains unless libraries are executable
11530 postinstall_cmds='chmod +x $lib'
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11536 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 if test "$with_gnu_ld" = yes; then
11546 version_type=linux # correct to gnu/linux during the next big refactor
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 case $host_vendor in
11552 shlibpath_overrides_runpath=no
11554 runpath_var=LD_RUN_PATH
11562 shlibpath_overrides_runpath=no
11563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11569 if test -d /usr/nec ;then
11570 version_type=linux # correct to gnu/linux during the next big refactor
11571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11572 soname_spec='$libname${shared_ext}.$major'
11573 shlibpath_var=LD_LIBRARY_PATH
11577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11578 version_type=freebsd-elf
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11586 if test "$with_gnu_ld" = yes; then
11587 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11589 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11596 sys_lib_dlsearch_path_spec='/usr/lib'
11600 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11601 version_type=linux # correct to gnu/linux during the next big refactor
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=no
11607 hardcode_into_libs=yes
11611 version_type=linux # correct to gnu/linux during the next big refactor
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 shlibpath_var=LD_LIBRARY_PATH
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11622 $as_echo "$dynamic_linker" >&6; }
11623 test "$dynamic_linker" = no && can_build_shared=no
11625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11626 if test "$GCC" = yes; then
11627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11630 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11631 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11633 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11634 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11729 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11731 if test -n "$hardcode_libdir_flag_spec" ||
11732 test -n "$runpath_var" ||
11733 test "X$hardcode_automatic" = "Xyes" ; then
11735 # We can hardcode non-existent directories.
11736 if test "$hardcode_direct" != no &&
11737 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11738 # have to relink, otherwise we might link with an installed library
11739 # when we should be linking with a yet-to-be-installed one
11740 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11741 test "$hardcode_minus_L" != no; then
11742 # Linking always hardcodes the temporary library directory.
11743 hardcode_action=relink
11745 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11746 hardcode_action=immediate
11749 # We cannot hardcode anything, or else we can only hardcode existing
11751 hardcode_action=unsupported
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11754 $as_echo "$hardcode_action" >&6; }
11756 if test "$hardcode_action" = relink ||
11757 test "$inherit_rpath" = yes; then
11758 # Fast installation is not supported
11759 enable_fast_install=no
11760 elif test "$shlibpath_overrides_runpath" = yes ||
11761 test "$enable_shared" = no; then
11762 # Fast installation is not necessary
11763 enable_fast_install=needless
11771 if test "x$enable_dlopen" != xyes; then
11772 enable_dlopen=unknown
11773 enable_dlopen_self=unknown
11774 enable_dlopen_self_static=unknown
11781 lt_cv_dlopen="load_add_on"
11783 lt_cv_dlopen_self=yes
11786 mingw* | pw32* | cegcc*)
11787 lt_cv_dlopen="LoadLibrary"
11792 lt_cv_dlopen="dlopen"
11797 # if libdl is installed we need to link against it
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11799 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11800 if ${ac_cv_lib_dl_dlopen+:} false; then :
11801 $as_echo_n "(cached) " >&6
11803 ac_check_lib_save_LIBS=$LIBS
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11823 if ac_fn_c_try_link "$LINENO"; then :
11824 ac_cv_lib_dl_dlopen=yes
11826 ac_cv_lib_dl_dlopen=no
11828 rm -f core conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11833 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11834 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11838 lt_cv_dlopen="dyld"
11840 lt_cv_dlopen_self=yes
11847 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11848 if test "x$ac_cv_func_shl_load" = xyes; then :
11849 lt_cv_dlopen="shl_load"
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11852 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11853 if ${ac_cv_lib_dld_shl_load+:} false; then :
11854 $as_echo_n "(cached) " >&6
11856 ac_check_lib_save_LIBS=$LIBS
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 /* Override any GCC internal prototype to avoid an error.
11862 Use char because int might match the return type of a GCC
11863 builtin and then its argument prototype would still apply. */
11871 return shl_load ();
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 ac_cv_lib_dld_shl_load=yes
11879 ac_cv_lib_dld_shl_load=no
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11883 LIBS=$ac_check_lib_save_LIBS
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11886 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11887 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11888 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11890 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11891 if test "x$ac_cv_func_dlopen" = xyes; then :
11892 lt_cv_dlopen="dlopen"
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11896 if ${ac_cv_lib_dl_dlopen+:} false; then :
11897 $as_echo_n "(cached) " >&6
11899 ac_check_lib_save_LIBS=$LIBS
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11919 if ac_fn_c_try_link "$LINENO"; then :
11920 ac_cv_lib_dl_dlopen=yes
11922 ac_cv_lib_dl_dlopen=no
11924 rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11934 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11935 if ${ac_cv_lib_svld_dlopen+:} false; then :
11936 $as_echo_n "(cached) " >&6
11938 ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lsvld $LIBS"
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11943 /* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11958 if ac_fn_c_try_link "$LINENO"; then :
11959 ac_cv_lib_svld_dlopen=yes
11961 ac_cv_lib_svld_dlopen=no
11963 rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_check_lib_save_LIBS
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11968 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11969 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11973 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11974 if ${ac_cv_lib_dld_dld_link+:} false; then :
11975 $as_echo_n "(cached) " >&6
11977 ac_check_lib_save_LIBS=$LIBS
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11992 return dld_link ();
11997 if ac_fn_c_try_link "$LINENO"; then :
11998 ac_cv_lib_dld_dld_link=yes
12000 ac_cv_lib_dld_dld_link=no
12002 rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12007 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12008 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12009 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12030 if test "x$lt_cv_dlopen" != xno; then
12036 case $lt_cv_dlopen in
12038 save_CPPFLAGS="$CPPFLAGS"
12039 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12041 save_LDFLAGS="$LDFLAGS"
12042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12045 LIBS="$lt_cv_dlopen_libs $LIBS"
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12048 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12049 if ${lt_cv_dlopen_self+:} false; then :
12050 $as_echo_n "(cached) " >&6
12052 if test "$cross_compiling" = yes; then :
12053 lt_cv_dlopen_self=cross
12055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12056 lt_status=$lt_dlunknown
12057 cat > conftest.$ac_ext <<_LT_EOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12068 # define LT_DLGLOBAL RTLD_GLOBAL
12071 # define LT_DLGLOBAL DL_GLOBAL
12073 # define LT_DLGLOBAL 0
12077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12078 find out it does not work in some platform. */
12079 #ifndef LT_DLLAZY_OR_NOW
12081 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12084 # define LT_DLLAZY_OR_NOW DL_LAZY
12087 # define LT_DLLAZY_OR_NOW RTLD_NOW
12090 # define LT_DLLAZY_OR_NOW DL_NOW
12092 # define LT_DLLAZY_OR_NOW 0
12099 /* When -fvisbility=hidden is used, assume the code has been annotated
12100 correspondingly for the symbols needed. */
12101 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12102 int fnord () __attribute__((visibility("default")));
12105 int fnord () { return 42; }
12108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12109 int status = $lt_dlunknown;
12113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12117 else puts (dlerror ());
12119 /* dlclose (self); */
12127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12128 (eval $ac_link) 2>&5
12130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12131 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12132 (./conftest; exit; ) >&5 2>/dev/null
12134 case x$lt_status in
12135 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12136 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12137 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12140 # compilation failed
12141 lt_cv_dlopen_self=no
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12149 $as_echo "$lt_cv_dlopen_self" >&6; }
12151 if test "x$lt_cv_dlopen_self" = xyes; then
12152 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12154 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12155 if ${lt_cv_dlopen_self_static+:} false; then :
12156 $as_echo_n "(cached) " >&6
12158 if test "$cross_compiling" = yes; then :
12159 lt_cv_dlopen_self_static=cross
12161 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12162 lt_status=$lt_dlunknown
12163 cat > conftest.$ac_ext <<_LT_EOF
12164 #line $LINENO "configure"
12165 #include "confdefs.h"
12174 # define LT_DLGLOBAL RTLD_GLOBAL
12177 # define LT_DLGLOBAL DL_GLOBAL
12179 # define LT_DLGLOBAL 0
12183 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12184 find out it does not work in some platform. */
12185 #ifndef LT_DLLAZY_OR_NOW
12187 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12190 # define LT_DLLAZY_OR_NOW DL_LAZY
12193 # define LT_DLLAZY_OR_NOW RTLD_NOW
12196 # define LT_DLLAZY_OR_NOW DL_NOW
12198 # define LT_DLLAZY_OR_NOW 0
12205 /* When -fvisbility=hidden is used, assume the code has been annotated
12206 correspondingly for the symbols needed. */
12207 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12208 int fnord () __attribute__((visibility("default")));
12211 int fnord () { return 42; }
12214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12215 int status = $lt_dlunknown;
12219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12222 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12223 else puts (dlerror ());
12225 /* dlclose (self); */
12233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12234 (eval $ac_link) 2>&5
12236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12238 (./conftest; exit; ) >&5 2>/dev/null
12240 case x$lt_status in
12241 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12242 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12243 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12246 # compilation failed
12247 lt_cv_dlopen_self_static=no
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12255 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12258 CPPFLAGS="$save_CPPFLAGS"
12259 LDFLAGS="$save_LDFLAGS"
12264 case $lt_cv_dlopen_self in
12265 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12266 *) enable_dlopen_self=unknown ;;
12269 case $lt_cv_dlopen_self_static in
12270 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12271 *) enable_dlopen_self_static=unknown ;;
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12294 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12295 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299 $as_echo "yes" >&6; }
12301 # FIXME - insert some real tests, host_os isn't really good enough
12304 if test -n "$STRIP" ; then
12305 striplib="$STRIP -x"
12306 old_striplib="$STRIP -S"
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308 $as_echo "yes" >&6; }
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12332 # Report which library types will actually be built
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12334 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12336 $as_echo "$can_build_shared" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12339 $as_echo_n "checking whether to build shared libraries... " >&6; }
12340 test "$can_build_shared" = "no" && enable_shared=no
12342 # On AIX, shared libraries and static libraries use the same namespace, and
12343 # are all built from PIC.
12346 test "$enable_shared" = yes && enable_static=no
12347 if test -n "$RANLIB"; then
12348 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12349 postinstall_cmds='$RANLIB $lib'
12354 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12355 test "$enable_shared" = yes && enable_static=no
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12360 $as_echo "$enable_shared" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12363 $as_echo_n "checking whether to build static libraries... " >&6; }
12364 # Make sure either enable_shared or enable_static is yes.
12365 test "$enable_shared" = yes || enable_static=yes
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12367 $as_echo "$enable_static" >&6; }
12374 ac_cpp='$CXXCPP $CPPFLAGS'
12375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12381 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12382 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12383 (test "X$CXX" != "Xg++"))) ; then
12385 ac_cpp='$CXXCPP $CPPFLAGS'
12386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12390 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12391 if test -z "$CXXCPP"; then
12392 if ${ac_cv_prog_CXXCPP+:} false; then :
12393 $as_echo_n "(cached) " >&6
12395 # Double quotes because CXXCPP needs to be expanded
12396 for CXXCPP in "$CXX -E" "/lib/cpp"
12398 ac_preproc_ok=false
12399 for ac_cxx_preproc_warn_flag in '' yes
12401 # Use a header file that comes with gcc, so configuring glibc
12402 # with a fresh cross-compiler works.
12403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404 # <limits.h> exists even on freestanding compilers.
12405 # On the NeXT, cc -E runs the code through the compiler's parser,
12406 # not just through cpp. "Syntax error" is here to catch this case.
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 # include <limits.h>
12412 # include <assert.h>
12416 if ac_fn_cxx_try_cpp "$LINENO"; then :
12419 # Broken: fails on valid input.
12422 rm -f conftest.err conftest.i conftest.$ac_ext
12424 # OK, works on sane cases. Now check whether nonexistent headers
12425 # can be detected and how.
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12428 #include <ac_nonexistent.h>
12430 if ac_fn_cxx_try_cpp "$LINENO"; then :
12431 # Broken: success on invalid input.
12434 # Passes both tests.
12438 rm -f conftest.err conftest.i conftest.$ac_ext
12441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12442 rm -f conftest.i conftest.err conftest.$ac_ext
12443 if $ac_preproc_ok; then :
12448 ac_cv_prog_CXXCPP=$CXXCPP
12451 CXXCPP=$ac_cv_prog_CXXCPP
12453 ac_cv_prog_CXXCPP=$CXXCPP
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12456 $as_echo "$CXXCPP" >&6; }
12457 ac_preproc_ok=false
12458 for ac_cxx_preproc_warn_flag in '' yes
12460 # Use a header file that comes with gcc, so configuring glibc
12461 # with a fresh cross-compiler works.
12462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463 # <limits.h> exists even on freestanding compilers.
12464 # On the NeXT, cc -E runs the code through the compiler's parser,
12465 # not just through cpp. "Syntax error" is here to catch this case.
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 # include <limits.h>
12471 # include <assert.h>
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12478 # Broken: fails on valid input.
12481 rm -f conftest.err conftest.i conftest.$ac_ext
12483 # OK, works on sane cases. Now check whether nonexistent headers
12484 # can be detected and how.
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <ac_nonexistent.h>
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490 # Broken: success on invalid input.
12493 # Passes both tests.
12497 rm -f conftest.err conftest.i conftest.$ac_ext
12500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501 rm -f conftest.i conftest.err conftest.$ac_ext
12502 if $ac_preproc_ok; then :
12505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12507 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12508 See \`config.log' for more details" "$LINENO" 5; }
12512 ac_cpp='$CXXCPP $CPPFLAGS'
12513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12518 _lt_caught_CXX_error=yes
12522 ac_cpp='$CXXCPP $CPPFLAGS'
12523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12527 archive_cmds_need_lc_CXX=no
12528 allow_undefined_flag_CXX=
12529 always_export_symbols_CXX=no
12530 archive_expsym_cmds_CXX=
12531 compiler_needs_object_CXX=no
12532 export_dynamic_flag_spec_CXX=
12533 hardcode_direct_CXX=no
12534 hardcode_direct_absolute_CXX=no
12535 hardcode_libdir_flag_spec_CXX=
12536 hardcode_libdir_separator_CXX=
12537 hardcode_minus_L_CXX=no
12538 hardcode_shlibpath_var_CXX=unsupported
12539 hardcode_automatic_CXX=no
12540 inherit_rpath_CXX=no
12542 module_expsym_cmds_CXX=
12543 link_all_deplibs_CXX=unknown
12544 old_archive_cmds_CXX=$old_archive_cmds
12545 reload_flag_CXX=$reload_flag
12546 reload_cmds_CXX=$reload_cmds
12547 no_undefined_flag_CXX=
12548 whole_archive_flag_spec_CXX=
12549 enable_shared_with_static_runtimes_CXX=no
12551 # Source file extension for C++ test sources.
12554 # Object file extension for compiled C++ test sources.
12558 # No sense in running all these tests if we already determined that
12559 # the CXX compiler isn't working. Some variables (like enable_shared)
12560 # are currently assumed to apply to all compilers on this platform,
12561 # and will be corrupted by setting them based on a non-working compiler.
12562 if test "$_lt_caught_CXX_error" != yes; then
12563 # Code to be used in simple compile tests
12564 lt_simple_compile_test_code="int some_variable = 0;"
12566 # Code to be used in simple link tests
12567 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12569 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12576 # If no C compiler was specified, use CC.
12579 # If no C compiler flags were specified, use CFLAGS.
12580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12582 # Allow CC to be a program name with arguments.
12586 # save warnings/boilerplate of simple test code
12587 ac_outfile=conftest.$ac_objext
12588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12590 _lt_compiler_boilerplate=`cat conftest.err`
12593 ac_outfile=conftest.$ac_objext
12594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12596 _lt_linker_boilerplate=`cat conftest.err`
12600 # Allow CC to be a program name with arguments.
12602 lt_save_CFLAGS=$CFLAGS
12606 lt_save_with_gnu_ld=$with_gnu_ld
12607 lt_save_path_LD=$lt_cv_path_LD
12608 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12609 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12611 $as_unset lt_cv_prog_gnu_ld
12613 if test -n "${lt_cv_path_LDCXX+set}"; then
12614 lt_cv_path_LD=$lt_cv_path_LDCXX
12616 $as_unset lt_cv_path_LD
12618 test -z "${LDCXX+set}" || LD=$LDCXX
12623 for cc_temp in $compiler""; do
12625 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12626 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12631 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12634 if test -n "$compiler"; then
12635 # We don't want -fno-exception when compiling C++ code, so set the
12636 # no_builtin_flag separately
12637 if test "$GXX" = yes; then
12638 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12640 lt_prog_compiler_no_builtin_flag_CXX=
12643 if test "$GXX" = yes; then
12644 # Set up default GNU C++ configuration
12648 # Check whether --with-gnu-ld was given.
12649 if test "${with_gnu_ld+set}" = set; then :
12650 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12656 if test "$GCC" = yes; then
12657 # Check if gcc -print-prog-name=ld gives a path.
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12659 $as_echo_n "checking for ld used by $CC... " >&6; }
12662 # gcc leaves a trailing carriage return which upsets mingw
12663 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12665 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12668 # Accept absolute paths.
12670 re_direlt='/[^/][^/]*/\.\./'
12671 # Canonicalize the pathname of ld
12672 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12673 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12674 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12676 test -z "$LD" && LD="$ac_prog"
12679 # If it fails, then pretend we aren't using GCC.
12683 # If it is relative, then search for the first ld in PATH.
12684 with_gnu_ld=unknown
12687 elif test "$with_gnu_ld" = yes; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12689 $as_echo_n "checking for GNU ld... " >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12692 $as_echo_n "checking for non-GNU ld... " >&6; }
12694 if ${lt_cv_path_LD+:} false; then :
12695 $as_echo_n "(cached) " >&6
12697 if test -z "$LD"; then
12698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12699 for ac_dir in $PATH; do
12701 test -z "$ac_dir" && ac_dir=.
12702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12703 lt_cv_path_LD="$ac_dir/$ac_prog"
12704 # Check to see if the program is GNU ld. I'd rather use --version,
12705 # but apparently some variants of GNU ld only accept -v.
12706 # Break only if it was the GNU/non-GNU ld that we prefer.
12707 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12708 *GNU* | *'with BFD'*)
12709 test "$with_gnu_ld" != no && break
12712 test "$with_gnu_ld" != yes && break
12719 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12723 LD="$lt_cv_path_LD"
12724 if test -n "$LD"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12726 $as_echo "$LD" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12731 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12733 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12734 if ${lt_cv_prog_gnu_ld+:} false; then :
12735 $as_echo_n "(cached) " >&6
12737 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12738 case `$LD -v 2>&1 </dev/null` in
12739 *GNU* | *'with BFD'*)
12740 lt_cv_prog_gnu_ld=yes
12743 lt_cv_prog_gnu_ld=no
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12748 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12749 with_gnu_ld=$lt_cv_prog_gnu_ld
12757 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12758 # archiving commands below assume that GNU ld is being used.
12759 if test "$with_gnu_ld" = yes; then
12760 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12766 # If archive_cmds runs LD, not CC, wlarc should be empty
12767 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12768 # investigate it a little bit more. (MM)
12771 # ancient GNU ld didn't support --whole-archive et. al.
12772 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12773 $GREP 'no-whole-archive' > /dev/null; then
12774 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12776 whole_archive_flag_spec_CXX=
12782 # A generic and very simple default shared library creation
12783 # command for GNU C++ for the case where it uses the native
12784 # linker, instead of GNU ld. If possible, this setting should
12785 # overridden to take advantage of the native linker features on
12786 # the platform it is being used on.
12787 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12790 # Commands to make compiler produce verbose output that lists
12791 # what "hidden" libraries, object files and flags are used when
12792 # linking a shared library.
12793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12801 # PORTME: fill in a description of your system's C++ link characteristics
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12807 # FIXME: insert proper C++ library support
12811 if test "$host_cpu" = ia64; then
12812 # On IA64, the linker does run time linking by default, so we don't
12813 # have to do anything special.
12814 aix_use_runtimelinking=no
12815 exp_sym_flag='-Bexport'
12818 aix_use_runtimelinking=no
12820 # Test if we are trying to use run time linking or normal
12821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12822 # need to do runtime linking.
12823 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12824 for ld_flag in $LDFLAGS; do
12827 aix_use_runtimelinking=yes
12835 exp_sym_flag='-bexport'
12836 no_entry_flag='-bnoentry'
12839 # When large executables or shared objects are built, AIX ld can
12840 # have problems creating the table of contents. If linking a library
12841 # or program results in "error TOC overflow" add -mminimal-toc to
12842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12845 archive_cmds_CXX=''
12846 hardcode_direct_CXX=yes
12847 hardcode_direct_absolute_CXX=yes
12848 hardcode_libdir_separator_CXX=':'
12849 link_all_deplibs_CXX=yes
12850 file_list_spec_CXX='${wl}-f,'
12852 if test "$GXX" = yes; then
12853 case $host_os in aix4.[012]|aix4.[012].*)
12854 # We only want to do this on AIX 4.2 and lower, the check
12855 # below for broken collect2 doesn't work under 4.3+
12856 collect2name=`${CC} -print-prog-name=collect2`
12857 if test -f "$collect2name" &&
12858 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12860 # We have reworked collect2
12863 # We have old collect2
12864 hardcode_direct_CXX=unsupported
12865 # It fails to find uninstalled libraries when the uninstalled
12866 # path is not listed in the libpath. Setting hardcode_minus_L
12867 # to unsupported forces relinking
12868 hardcode_minus_L_CXX=yes
12869 hardcode_libdir_flag_spec_CXX='-L$libdir'
12870 hardcode_libdir_separator_CXX=
12873 shared_flag='-shared'
12874 if test "$aix_use_runtimelinking" = yes; then
12875 shared_flag="$shared_flag "'${wl}-G'
12879 if test "$host_cpu" = ia64; then
12880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12881 # chokes on -Wl,-G. The following line is correct:
12884 if test "$aix_use_runtimelinking" = yes; then
12885 shared_flag='${wl}-G'
12887 shared_flag='${wl}-bM:SRE'
12892 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12893 # It seems that -bexpall does not export symbols beginning with
12894 # underscore (_), so it is better to generate a list of symbols to
12896 always_export_symbols_CXX=yes
12897 if test "$aix_use_runtimelinking" = yes; then
12898 # Warning - without using the other runtime loading flags (-brtl),
12899 # -berok will link without error, but may produce a broken library.
12900 allow_undefined_flag_CXX='-berok'
12901 # Determine the default libpath from the value encoded in an empty
12903 if test "${lt_cv_aix_libpath+set}" = set; then
12904 aix_libpath=$lt_cv_aix_libpath
12906 if ${lt_cv_aix_libpath__CXX+:} false; then :
12907 $as_echo_n "(cached) " >&6
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12920 if ac_fn_cxx_try_link "$LINENO"; then :
12922 lt_aix_libpath_sed='
12923 /Import File Strings/,/^$/ {
12925 s/^0 *\([^ ]*\) *$/\1/
12929 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12930 # Check for a 64-bit object if we didn't find anything.
12931 if test -z "$lt_cv_aix_libpath__CXX"; then
12932 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12935 rm -f core conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext conftest.$ac_ext
12937 if test -z "$lt_cv_aix_libpath__CXX"; then
12938 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12943 aix_libpath=$lt_cv_aix_libpath__CXX
12946 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12948 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12950 if test "$host_cpu" = ia64; then
12951 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12952 allow_undefined_flag_CXX="-z nodefs"
12953 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"
12955 # Determine the default libpath from the value encoded in an
12956 # empty executable.
12957 if test "${lt_cv_aix_libpath+set}" = set; then
12958 aix_libpath=$lt_cv_aix_libpath
12960 if ${lt_cv_aix_libpath__CXX+:} false; then :
12961 $as_echo_n "(cached) " >&6
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12974 if ac_fn_cxx_try_link "$LINENO"; then :
12976 lt_aix_libpath_sed='
12977 /Import File Strings/,/^$/ {
12979 s/^0 *\([^ ]*\) *$/\1/
12983 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12984 # Check for a 64-bit object if we didn't find anything.
12985 if test -z "$lt_cv_aix_libpath__CXX"; then
12986 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12989 rm -f core conftest.err conftest.$ac_objext \
12990 conftest$ac_exeext conftest.$ac_ext
12991 if test -z "$lt_cv_aix_libpath__CXX"; then
12992 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12997 aix_libpath=$lt_cv_aix_libpath__CXX
13000 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13001 # Warning - without using the other run time loading flags,
13002 # -berok will link without error, but may produce a broken library.
13003 no_undefined_flag_CXX=' ${wl}-bernotok'
13004 allow_undefined_flag_CXX=' ${wl}-berok'
13005 if test "$with_gnu_ld" = yes; then
13006 # We only use this code for GNU lds that support --whole-archive.
13007 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13009 # Exported symbols can be pulled into shared objects from archives
13010 whole_archive_flag_spec_CXX='$convenience'
13012 archive_cmds_need_lc_CXX=yes
13013 # This is similar to how AIX traditionally builds its shared
13015 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'
13021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13022 allow_undefined_flag_CXX=unsupported
13023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13024 # support --undefined. This deserves some investigation. FIXME
13025 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13032 case $cc_basename in
13034 # FIXME: insert proper C++ library support
13040 cygwin* | mingw* | pw32* | cegcc*)
13041 case $GXX,$cc_basename in
13044 # hardcode_libdir_flag_spec is actually meaningless, as there is
13045 # no search path for DLLs.
13046 hardcode_libdir_flag_spec_CXX=' '
13047 allow_undefined_flag_CXX=unsupported
13048 always_export_symbols_CXX=yes
13049 file_list_spec_CXX='@'
13050 # Tell ltmain to make .lib files, not .a files.
13052 # Tell ltmain to make .dll files, not .so files.
13054 # FIXME: Setting linknames here is a bad hack.
13055 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13056 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13057 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13059 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13061 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13063 # The linker will not automatically build a static lib if we build a DLL.
13064 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13065 enable_shared_with_static_runtimes_CXX=yes
13067 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13068 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13069 lt_tool_outputfile="@TOOL_OUTPUT@"~
13070 case $lt_outputfile in
13073 lt_outputfile="$lt_outputfile.exe"
13074 lt_tool_outputfile="$lt_tool_outputfile.exe"
13077 func_to_tool_file "$lt_outputfile"~
13078 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13079 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13080 $RM "$lt_outputfile.manifest";
13085 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13086 # as there is no search path for DLLs.
13087 hardcode_libdir_flag_spec_CXX='-L$libdir'
13088 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13089 allow_undefined_flag_CXX=unsupported
13090 always_export_symbols_CXX=no
13091 enable_shared_with_static_runtimes_CXX=yes
13093 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13094 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'
13095 # If the export-symbols file already is a .def file (1st line
13096 # is EXPORTS), use it as is; otherwise, prepend...
13097 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13098 cp $export_symbols $output_objdir/$soname.def;
13100 echo EXPORTS > $output_objdir/$soname.def;
13101 cat $export_symbols >> $output_objdir/$soname.def;
13103 $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'
13110 darwin* | rhapsody*)
13113 archive_cmds_need_lc_CXX=no
13114 hardcode_direct_CXX=no
13115 hardcode_automatic_CXX=yes
13116 hardcode_shlibpath_var_CXX=unsupported
13117 if test "$lt_cv_ld_force_load" = "yes"; then
13118 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13121 whole_archive_flag_spec_CXX=''
13123 link_all_deplibs_CXX=yes
13124 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13125 case $cc_basename in
13126 ifort*) _lt_dar_can_shared=yes ;;
13127 *) _lt_dar_can_shared=$GCC ;;
13129 if test "$_lt_dar_can_shared" = "yes"; then
13130 output_verbose_link_cmd=func_echo_all
13131 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}"
13132 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13133 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}"
13134 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}"
13135 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13136 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}"
13137 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}"
13147 case $cc_basename in
13149 # FIXME: insert proper C++ library support
13153 # Green Hills C++ Compiler
13154 # FIXME: insert proper C++ library support
13158 # FIXME: insert proper C++ library support
13165 # C++ shared libraries reported to be fairly broken before
13171 archive_cmds_need_lc_CXX=no
13174 freebsd* | dragonfly*)
13175 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13184 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185 link_all_deplibs_CXX=yes
13189 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13190 hardcode_libdir_separator_CXX=:
13191 export_dynamic_flag_spec_CXX='${wl}-E'
13192 hardcode_direct_CXX=yes
13193 hardcode_minus_L_CXX=yes # Not in the search PATH,
13194 # but as the default
13195 # location of the library.
13197 case $cc_basename in
13199 # FIXME: insert proper C++ library support
13203 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'
13204 # Commands to make compiler produce verbose output that lists
13205 # what "hidden" libraries, object files and flags are used when
13206 # linking a shared library.
13208 # There doesn't appear to be a way to prevent this compiler from
13209 # explicitly linking system object files so we need to strip them
13210 # from the output so that they don't get included in the library
13212 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; func_echo_all "$list"'
13215 if test "$GXX" = yes; then
13216 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13218 # FIXME: insert proper C++ library support
13226 if test $with_gnu_ld = no; then
13227 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13228 hardcode_libdir_separator_CXX=:
13234 export_dynamic_flag_spec_CXX='${wl}-E'
13240 hardcode_direct_CXX=no
13241 hardcode_shlibpath_var_CXX=no
13244 hardcode_direct_CXX=yes
13245 hardcode_direct_absolute_CXX=yes
13246 hardcode_minus_L_CXX=yes # Not in the search PATH,
13247 # but as the default
13248 # location of the library.
13252 case $cc_basename in
13254 # FIXME: insert proper C++ library support
13260 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13263 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13266 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13269 # Commands to make compiler produce verbose output that lists
13270 # what "hidden" libraries, object files and flags are used when
13271 # linking a shared library.
13273 # There doesn't appear to be a way to prevent this compiler from
13274 # explicitly linking system object files so we need to strip them
13275 # from the output so that they don't get included in the library
13277 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; func_echo_all "$list"'
13280 if test "$GXX" = yes; then
13281 if test $with_gnu_ld = no; then
13284 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13287 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13290 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13295 # FIXME: insert proper C++ library support
13303 hardcode_direct_CXX=no
13304 hardcode_shlibpath_var_CXX=no
13305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306 export_dynamic_flag_spec_CXX='${wl}-E'
13307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13308 # Instead, shared libraries are loaded at an image base (0x10000000 by
13309 # default) and relocated if they conflict, which is a slow very memory
13310 # consuming and fragmenting process. To avoid this, we pick a random,
13311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13312 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13313 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'
13314 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'
13317 case $cc_basename in
13320 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13322 # Archives containing C++ object files must be created using
13323 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13324 # necessary to make sure instantiated templates are included
13326 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13329 if test "$GXX" = yes; then
13330 if test "$with_gnu_ld" = no; then
13331 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13333 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13336 link_all_deplibs_CXX=yes
13339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_CXX=:
13341 inherit_rpath_CXX=yes
13344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13345 case $cc_basename in
13347 # Kuck and Associates, Inc. (KAI) C++ Compiler
13349 # KCC will only create a shared library if the output file
13350 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13351 # to its proper name (with version) after linking.
13352 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'
13353 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'
13354 # Commands to make compiler produce verbose output that lists
13355 # what "hidden" libraries, object files and flags are used when
13356 # linking a shared library.
13358 # There doesn't appear to be a way to prevent this compiler from
13359 # explicitly linking system object files so we need to strip them
13360 # from the output so that they don't get included in the library
13362 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; func_echo_all "$list"'
13364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13367 # Archives containing C++ object files must be created using
13368 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13369 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13374 # version 8.0 and above of icpc choke on multiply defined symbols
13375 # if we add $predep_objects and $postdep_objects, however 7.1 and
13376 # earlier do not add the objects themselves.
13377 case `$CC -V 2>&1` in
13379 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380 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'
13382 *) # Version 8.0 or newer
13385 ia64*) tmp_idyn=' -i_dynamic';;
13387 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388 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'
13391 archive_cmds_need_lc_CXX=no
13392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13393 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13394 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13397 # Portland Group C++ compiler
13399 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13400 prelink_cmds_CXX='tpldir=Template.dir~
13402 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13403 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13404 old_archive_cmds_CXX='tpldir=Template.dir~
13406 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13407 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13409 archive_cmds_CXX='tpldir=Template.dir~
13411 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13412 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13413 archive_expsym_cmds_CXX='tpldir=Template.dir~
13415 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13416 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13418 *) # Version 6 and above use weak symbols
13419 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420 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'
13424 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13426 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13431 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'
13433 runpath_var=LD_RUN_PATH
13434 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13435 hardcode_libdir_separator_CXX=:
13437 # Commands to make compiler produce verbose output that lists
13438 # what "hidden" libraries, object files and flags are used when
13439 # linking a shared library.
13441 # There doesn't appear to be a way to prevent this compiler from
13442 # explicitly linking system object files so we need to strip them
13443 # from the output so that they don't get included in the library
13445 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13447 xl* | mpixl* | bgxl*)
13448 # IBM XL 8.0 on PPC, with GNU ld
13449 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13451 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452 if test "x$supports_anon_versioning" = xyes; then
13453 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13455 echo "local: *; };" >> $output_objdir/$libname.ver~
13456 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13460 case `$CC -V 2>&1 | sed 5q` in
13463 no_undefined_flag_CXX=' -zdefs'
13464 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13465 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'
13466 hardcode_libdir_flag_spec_CXX='-R$libdir'
13467 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13468 compiler_needs_object_CXX=yes
13470 # Not sure whether something based on
13471 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13473 output_verbose_link_cmd='func_echo_all'
13475 # Archives containing C++ object files must be created using
13476 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13477 # necessary to make sure instantiated templates are included
13479 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13487 # FIXME: insert proper C++ library support
13492 # FIXME: insert proper C++ library support
13497 case $cc_basename in
13499 # FIXME: insert proper C++ library support
13503 # FIXME: insert proper C++ library support
13510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13511 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13513 hardcode_libdir_flag_spec_CXX='-R$libdir'
13514 hardcode_direct_CXX=yes
13515 hardcode_shlibpath_var_CXX=no
13517 # Workaround some broken pre-1.5 toolchains
13518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13526 # C++ shared libraries are fairly broken
13531 if test -f /usr/libexec/ld.so; then
13532 hardcode_direct_CXX=yes
13533 hardcode_shlibpath_var_CXX=no
13534 hardcode_direct_absolute_CXX=yes
13535 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13538 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13539 export_dynamic_flag_spec_CXX='${wl}-E'
13540 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13542 output_verbose_link_cmd=func_echo_all
13548 osf3* | osf4* | osf5*)
13549 case $cc_basename in
13551 # Kuck and Associates, Inc. (KAI) C++ Compiler
13553 # KCC will only create a shared library if the output file
13554 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13555 # to its proper name (with version) after linking.
13556 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'
13558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13559 hardcode_libdir_separator_CXX=:
13561 # Archives containing C++ object files must be created using
13562 # the KAI C++ compiler.
13564 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13565 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13569 # Rational C++ 2.4.1
13570 # FIXME: insert proper C++ library support
13576 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13577 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13581 allow_undefined_flag_CXX=' -expect_unresolved \*'
13582 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13583 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13584 echo "-hidden">> $lib.exp~
13585 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13587 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13591 hardcode_libdir_separator_CXX=:
13593 # Commands to make compiler produce verbose output that lists
13594 # what "hidden" libraries, object files and flags are used when
13595 # linking a shared library.
13597 # There doesn't appear to be a way to prevent this compiler from
13598 # explicitly linking system object files so we need to strip them
13599 # from the output so that they don't get included in the library
13601 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13604 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13605 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13608 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13611 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13615 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13616 hardcode_libdir_separator_CXX=:
13618 # Commands to make compiler produce verbose output that lists
13619 # what "hidden" libraries, object files and flags are used when
13620 # linking a shared library.
13621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13624 # FIXME: insert proper C++ library support
13632 # FIXME: insert proper C++ library support
13637 case $cc_basename in
13640 # FIXME: insert proper C++ library support
13645 # FIXME: insert proper C++ library support
13649 # FIXME: insert proper C++ library support
13656 case $cc_basename in
13658 # Sun C++ 4.2, 5.x and Centerline C++
13659 archive_cmds_need_lc_CXX=yes
13660 no_undefined_flag_CXX=' -zdefs'
13661 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13662 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13663 $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'
13665 hardcode_libdir_flag_spec_CXX='-R$libdir'
13666 hardcode_shlibpath_var_CXX=no
13668 solaris2.[0-5] | solaris2.[0-5].*) ;;
13670 # The compiler driver will combine and reorder linker options,
13671 # but understands `-z linker_flag'.
13672 # Supported since Solaris 2.6 (maybe 2.5.1?)
13673 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13676 link_all_deplibs_CXX=yes
13678 output_verbose_link_cmd='func_echo_all'
13680 # Archives containing C++ object files must be created using
13681 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13682 # necessary to make sure instantiated templates are included
13684 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13687 # Green Hills C++ Compiler
13688 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13690 # The C++ compiler must be used to create the archive.
13691 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13694 # GNU C++ compiler with Solaris linker
13695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13696 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13697 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13698 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13699 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13700 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13702 # Commands to make compiler produce verbose output that lists
13703 # what "hidden" libraries, object files and flags are used when
13704 # linking a shared library.
13705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13707 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13709 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13710 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13713 # Commands to make compiler produce verbose output that lists
13714 # what "hidden" libraries, object files and flags are used when
13715 # linking a shared library.
13716 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13719 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13721 solaris2.[0-5] | solaris2.[0-5].*) ;;
13723 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13732 no_undefined_flag_CXX='${wl}-z,text'
13733 archive_cmds_need_lc_CXX=no
13734 hardcode_shlibpath_var_CXX=no
13735 runpath_var='LD_RUN_PATH'
13737 case $cc_basename in
13739 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13749 sysv5* | sco3.2v5* | sco5v6*)
13750 # Note: We can NOT use -z defs as we might desire, because we do not
13751 # link with -lc, and that would cause any symbols used from libc to
13752 # always be unresolved, which means just about no library would
13753 # ever link correctly. If we're not using GNU ld we use -z text
13754 # though, which does catch some bad symbols but isn't as heavy-handed
13756 no_undefined_flag_CXX='${wl}-z,text'
13757 allow_undefined_flag_CXX='${wl}-z,nodefs'
13758 archive_cmds_need_lc_CXX=no
13759 hardcode_shlibpath_var_CXX=no
13760 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13761 hardcode_libdir_separator_CXX=':'
13762 link_all_deplibs_CXX=yes
13763 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13764 runpath_var='LD_RUN_PATH'
13766 case $cc_basename in
13768 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13771 '"$old_archive_cmds_CXX"
13772 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13773 '"$reload_cmds_CXX"
13776 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 case $cc_basename in
13785 # NonStop-UX NCC 3.20
13786 # FIXME: insert proper C++ library support
13790 # FIXME: insert proper C++ library support
13797 # FIXME: insert proper C++ library support
13802 # FIXME: insert proper C++ library support
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13808 $as_echo "$ld_shlibs_CXX" >&6; }
13809 test "$ld_shlibs_CXX" = no && can_build_shared=no
13815 ## There is no encapsulation within the following macros, do not change
13816 ## the running order or otherwise move them around unless you know exactly
13817 ## what you are doing...
13818 # Dependencies to place before and after the object being linked:
13819 predep_objects_CXX=
13820 postdep_objects_CXX=
13823 compiler_lib_search_path_CXX=
13825 cat > conftest.$ac_ext <<_LT_EOF
13829 Foo (void) { a = 0; }
13836 _lt_libdeps_save_CFLAGS=$CFLAGS
13837 case "$CC $CFLAGS " in #(
13838 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13839 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13840 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13844 (eval $ac_compile) 2>&5
13846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847 test $ac_status = 0; }; then
13848 # Parse the compiler output and extract the necessary
13849 # objects, libraries and library flags.
13851 # Sentinel used to keep track of whether or not we are before
13852 # the conftest object file.
13853 pre_test_object_deps_done=no
13855 for p in `eval "$output_verbose_link_cmd"`; do
13856 case ${prev}${p} in
13859 # Some compilers place space between "-{L,R}" and the path.
13860 # Remove the space.
13861 if test $p = "-L" ||
13862 test $p = "-R"; then
13867 # Expand the sysroot to ease extracting the directories later.
13868 if test -z "$prev"; then
13870 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13871 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13872 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13876 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13878 if test "$pre_test_object_deps_done" = no; then
13881 # Internal compiler library paths should come after those
13882 # provided the user. The postdeps already come after the
13883 # user supplied libs so there is no need to process them.
13884 if test -z "$compiler_lib_search_path_CXX"; then
13885 compiler_lib_search_path_CXX="${prev}${p}"
13887 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13890 # The "-l" case would never come before the object being
13891 # linked, so don't bother handling this case.
13894 if test -z "$postdeps_CXX"; then
13895 postdeps_CXX="${prev}${p}"
13897 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13903 *.lto.$objext) ;; # Ignore GCC LTO objects
13905 # This assumes that the test object file only shows up
13906 # once in the compiler output.
13907 if test "$p" = "conftest.$objext"; then
13908 pre_test_object_deps_done=yes
13912 if test "$pre_test_object_deps_done" = no; then
13913 if test -z "$predep_objects_CXX"; then
13914 predep_objects_CXX="$p"
13916 predep_objects_CXX="$predep_objects_CXX $p"
13919 if test -z "$postdep_objects_CXX"; then
13920 postdep_objects_CXX="$p"
13922 postdep_objects_CXX="$postdep_objects_CXX $p"
13927 *) ;; # Ignore the rest.
13935 echo "libtool.m4: error: problem compiling CXX test program"
13938 $RM -f confest.$objext
13939 CFLAGS=$_lt_libdeps_save_CFLAGS
13941 # PORTME: override above test on systems where it is broken
13944 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13945 # hack all around it, let's just trust "g++" to DTRT.
13946 predep_objects_CXX=
13947 postdep_objects_CXX=
13952 case `$CC -V 2>&1 | sed 5q` in
13956 # The more standards-conforming stlport4 library is
13957 # incompatible with the Cstd library. Avoid specifying
13958 # it if it's in CXXFLAGS. Ignore libCrun as
13959 # -library=stlport4 depends on it.
13960 case " $CXX $CXXFLAGS " in
13961 *" -library=stlport4 "*)
13962 solaris_use_stlport4=yes
13966 if test "$solaris_use_stlport4" != yes; then
13967 postdeps_CXX='-library=Cstd -library=Crun'
13974 case $cc_basename in
13976 # The more standards-conforming stlport4 library is
13977 # incompatible with the Cstd library. Avoid specifying
13978 # it if it's in CXXFLAGS. Ignore libCrun as
13979 # -library=stlport4 depends on it.
13980 case " $CXX $CXXFLAGS " in
13981 *" -library=stlport4 "*)
13982 solaris_use_stlport4=yes
13986 # Adding this requires a known-good setup of shared libraries for
13987 # Sun compiler versions before 5.6, else PIC objects from an old
13988 # archive will be linked into the output, leading to subtle bugs.
13989 if test "$solaris_use_stlport4" != yes; then
13990 postdeps_CXX='-library=Cstd -library=Crun'
13998 case " $postdeps_CXX " in
13999 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14001 compiler_lib_search_dirs_CXX=
14002 if test -n "${compiler_lib_search_path_CXX}"; then
14003 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14036 lt_prog_compiler_wl_CXX=
14037 lt_prog_compiler_pic_CXX=
14038 lt_prog_compiler_static_CXX=
14041 # C++ specific cases for pic, static, wl, etc.
14042 if test "$GXX" = yes; then
14043 lt_prog_compiler_wl_CXX='-Wl,'
14044 lt_prog_compiler_static_CXX='-static'
14048 # All AIX code is PIC.
14049 if test "$host_cpu" = ia64; then
14050 # AIX 5 now supports IA64 processor
14051 lt_prog_compiler_static_CXX='-Bstatic'
14058 # see comment about AmigaOS4 .so support
14059 lt_prog_compiler_pic_CXX='-fPIC'
14062 # FIXME: we need at least 68020 code to build shared libraries, but
14063 # adding the `-m68020' flag to GCC prevents building anything better,
14065 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14070 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14071 # PIC is the default for these OSes.
14073 mingw* | cygwin* | os2* | pw32* | cegcc*)
14074 # This hack is so that the source file can tell whether it is being
14075 # built for inclusion in a dll (and should export symbols for example).
14076 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14077 # (--disable-auto-import) libraries
14078 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14080 darwin* | rhapsody*)
14081 # PIC is the default on this platform
14082 # Common symbols not allowed in MH_DYLIB files
14083 lt_prog_compiler_pic_CXX='-fno-common'
14086 # DJGPP does not support shared libraries at all
14087 lt_prog_compiler_pic_CXX=
14090 # PIC is the default for Haiku.
14091 # The "-static" flag exists, but is broken.
14092 lt_prog_compiler_static_CXX=
14095 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14096 # Instead, we relocate shared libraries at runtime.
14099 if test -d /usr/nec; then
14100 lt_prog_compiler_pic_CXX=-Kconform_pic
14104 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14105 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14106 # sets the default TLS model and affects inlining.
14111 lt_prog_compiler_pic_CXX='-fPIC'
14116 # QNX uses GNU C++, but need to define -shared option too, otherwise
14117 # it will coredump.
14118 lt_prog_compiler_pic_CXX='-fPIC -shared'
14121 lt_prog_compiler_pic_CXX='-fPIC'
14127 # All AIX code is PIC.
14128 if test "$host_cpu" = ia64; then
14129 # AIX 5 now supports IA64 processor
14130 lt_prog_compiler_static_CXX='-Bstatic'
14132 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14136 case $cc_basename in
14138 # Green Hills C++ Compiler
14139 # _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"
14143 mingw* | cygwin* | os2* | pw32* | cegcc*)
14144 # This hack is so that the source file can tell whether it is being
14145 # built for inclusion in a dll (and should export symbols for example).
14146 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14149 case $cc_basename in
14151 lt_prog_compiler_pic_CXX='-KPIC'
14154 # Green Hills C++ Compiler
14155 lt_prog_compiler_pic_CXX='-pic'
14161 freebsd* | dragonfly*)
14162 # FreeBSD uses GNU C++
14164 hpux9* | hpux10* | hpux11*)
14165 case $cc_basename in
14167 lt_prog_compiler_wl_CXX='-Wl,'
14168 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14169 if test "$host_cpu" != ia64; then
14170 lt_prog_compiler_pic_CXX='+Z'
14174 lt_prog_compiler_wl_CXX='-Wl,'
14175 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14181 lt_prog_compiler_pic_CXX='+Z'
14190 # This is c89, which is MS Visual C++ (no shared libs)
14191 # Anyone wants to do a port?
14193 irix5* | irix6* | nonstopux*)
14194 case $cc_basename in
14196 lt_prog_compiler_wl_CXX='-Wl,'
14197 lt_prog_compiler_static_CXX='-non_shared'
14198 # CC pic flag -KPIC is the default.
14204 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14205 case $cc_basename in
14208 lt_prog_compiler_wl_CXX='--backend -Wl,'
14209 lt_prog_compiler_pic_CXX='-fPIC'
14212 # old Intel C++ for x86_64 which still supported -KPIC.
14213 lt_prog_compiler_wl_CXX='-Wl,'
14214 lt_prog_compiler_pic_CXX='-KPIC'
14215 lt_prog_compiler_static_CXX='-static'
14218 # Intel C++, used to be incompatible with GCC.
14219 # ICC 10 doesn't accept -KPIC any more.
14220 lt_prog_compiler_wl_CXX='-Wl,'
14221 lt_prog_compiler_pic_CXX='-fPIC'
14222 lt_prog_compiler_static_CXX='-static'
14225 # Portland Group C++ compiler
14226 lt_prog_compiler_wl_CXX='-Wl,'
14227 lt_prog_compiler_pic_CXX='-fpic'
14228 lt_prog_compiler_static_CXX='-Bstatic'
14232 # Make sure the PIC flag is empty. It appears that all Alpha
14233 # Linux and Compaq Tru64 Unix objects are PIC.
14234 lt_prog_compiler_pic_CXX=
14235 lt_prog_compiler_static_CXX='-non_shared'
14237 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14238 # IBM XL 8.0, 9.0 on PPC and BlueGene
14239 lt_prog_compiler_wl_CXX='-Wl,'
14240 lt_prog_compiler_pic_CXX='-qpic'
14241 lt_prog_compiler_static_CXX='-qstaticlink'
14244 case `$CC -V 2>&1 | sed 5q` in
14247 lt_prog_compiler_pic_CXX='-KPIC'
14248 lt_prog_compiler_static_CXX='-Bstatic'
14249 lt_prog_compiler_wl_CXX='-Qoption ld '
14260 case $cc_basename in
14262 lt_prog_compiler_pic_CXX='-W c,exportall'
14268 netbsd* | netbsdelf*-gnu)
14271 # QNX uses GNU C++, but need to define -shared option too, otherwise
14272 # it will coredump.
14273 lt_prog_compiler_pic_CXX='-fPIC -shared'
14275 osf3* | osf4* | osf5*)
14276 case $cc_basename in
14278 lt_prog_compiler_wl_CXX='--backend -Wl,'
14281 # Rational C++ 2.4.1
14282 lt_prog_compiler_pic_CXX='-pic'
14285 # Digital/Compaq C++
14286 lt_prog_compiler_wl_CXX='-Wl,'
14287 # Make sure the PIC flag is empty. It appears that all Alpha
14288 # Linux and Compaq Tru64 Unix objects are PIC.
14289 lt_prog_compiler_pic_CXX=
14290 lt_prog_compiler_static_CXX='-non_shared'
14299 case $cc_basename in
14301 # Sun C++ 4.2, 5.x and Centerline C++
14302 lt_prog_compiler_pic_CXX='-KPIC'
14303 lt_prog_compiler_static_CXX='-Bstatic'
14304 lt_prog_compiler_wl_CXX='-Qoption ld '
14307 # Green Hills C++ Compiler
14308 lt_prog_compiler_pic_CXX='-PIC'
14315 case $cc_basename in
14318 lt_prog_compiler_pic_CXX='-pic'
14319 lt_prog_compiler_static_CXX='-Bstatic'
14323 lt_prog_compiler_pic_CXX='-pic'
14329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14330 case $cc_basename in
14332 lt_prog_compiler_wl_CXX='-Wl,'
14333 lt_prog_compiler_pic_CXX='-KPIC'
14334 lt_prog_compiler_static_CXX='-Bstatic'
14339 case $cc_basename in
14341 # NonStop-UX NCC 3.20
14342 lt_prog_compiler_pic_CXX='-KPIC'
14351 lt_prog_compiler_can_build_shared_CXX=no
14357 # For platforms which do not support PIC, -DPIC is meaningless:
14359 lt_prog_compiler_pic_CXX=
14362 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14367 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14368 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14369 $as_echo_n "(cached) " >&6
14371 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14374 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14375 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14378 # Check to make sure the PIC flag actually works.
14380 if test -n "$lt_prog_compiler_pic_CXX"; then
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14382 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14383 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14384 $as_echo_n "(cached) " >&6
14386 lt_cv_prog_compiler_pic_works_CXX=no
14387 ac_outfile=conftest.$ac_objext
14388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14389 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14390 # Insert the option either (1) after the last *FLAGS variable, or
14391 # (2) before a word containing "conftest.", or (3) at the end.
14392 # Note that $ac_compile itself does not contain backslashes and begins
14393 # with a dollar sign (not a hyphen), so the echo should work correctly.
14394 # The option is referenced via a variable to avoid confusing sed.
14395 lt_compile=`echo "$ac_compile" | $SED \
14396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14398 -e 's:$: $lt_compiler_flag:'`
14399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14400 (eval "$lt_compile" 2>conftest.err)
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 if (exit $ac_status) && test -s "$ac_outfile"; then
14405 # The compiler can only warn and ignore the option if not recognized
14406 # So say no if there are warnings other than the usual output.
14407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14410 lt_cv_prog_compiler_pic_works_CXX=yes
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14417 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14419 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14420 case $lt_prog_compiler_pic_CXX in
14422 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14425 lt_prog_compiler_pic_CXX=
14426 lt_prog_compiler_can_build_shared_CXX=no
14436 # Check to make sure the static flag actually works.
14438 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14440 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14441 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14442 $as_echo_n "(cached) " >&6
14444 lt_cv_prog_compiler_static_works_CXX=no
14445 save_LDFLAGS="$LDFLAGS"
14446 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14449 # The linker can only warn and ignore the option if not recognized
14450 # So say no if there are warnings
14451 if test -s conftest.err; then
14452 # Append any errors to the config.log.
14453 cat conftest.err 1>&5
14454 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14456 if diff conftest.exp conftest.er2 >/dev/null; then
14457 lt_cv_prog_compiler_static_works_CXX=yes
14460 lt_cv_prog_compiler_static_works_CXX=yes
14464 LDFLAGS="$save_LDFLAGS"
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14468 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14470 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14473 lt_prog_compiler_static_CXX=
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14481 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14482 $as_echo_n "(cached) " >&6
14484 lt_cv_prog_compiler_c_o_CXX=no
14485 $RM -r conftest 2>/dev/null
14489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491 lt_compiler_flag="-o out/conftest2.$ac_objext"
14492 # Insert the option either (1) after the last *FLAGS variable, or
14493 # (2) before a word containing "conftest.", or (3) at the end.
14494 # Note that $ac_compile itself does not contain backslashes and begins
14495 # with a dollar sign (not a hyphen), so the echo should work correctly.
14496 lt_compile=`echo "$ac_compile" | $SED \
14497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499 -e 's:$: $lt_compiler_flag:'`
14500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14501 (eval "$lt_compile" 2>out/conftest.err)
14503 cat out/conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14507 # The compiler can only warn and ignore the option if not recognized
14508 # So say no if there are warnings
14509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14512 lt_cv_prog_compiler_c_o_CXX=yes
14517 # SGI C++ compiler will create directory out/ii_files/ for
14518 # template instantiation
14519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14520 $RM out/* && rmdir out
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14527 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14532 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14533 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14534 $as_echo_n "(cached) " >&6
14536 lt_cv_prog_compiler_c_o_CXX=no
14537 $RM -r conftest 2>/dev/null
14541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14543 lt_compiler_flag="-o out/conftest2.$ac_objext"
14544 # Insert the option either (1) after the last *FLAGS variable, or
14545 # (2) before a word containing "conftest.", or (3) at the end.
14546 # Note that $ac_compile itself does not contain backslashes and begins
14547 # with a dollar sign (not a hyphen), so the echo should work correctly.
14548 lt_compile=`echo "$ac_compile" | $SED \
14549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14551 -e 's:$: $lt_compiler_flag:'`
14552 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14553 (eval "$lt_compile" 2>out/conftest.err)
14555 cat out/conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14559 # The compiler can only warn and ignore the option if not recognized
14560 # So say no if there are warnings
14561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14564 lt_cv_prog_compiler_c_o_CXX=yes
14569 # SGI C++ compiler will create directory out/ii_files/ for
14570 # template instantiation
14571 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14572 $RM out/* && rmdir out
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14579 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14584 hard_links="nottested"
14585 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14586 # do not overwrite the value of need_locks provided by the user
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14588 $as_echo_n "checking if we can lock with hard links... " >&6; }
14591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14593 ln conftest.a conftest.b 2>&5 || hard_links=no
14594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14596 $as_echo "$hard_links" >&6; }
14597 if test "$hard_links" = no; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14599 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14609 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14611 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14612 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14615 # If we're using GNU nm, then we don't want the "-C" option.
14616 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14617 # Also, AIX nm treats weak defined symbols like other global defined
14618 # symbols, whereas GNU nm marks them as "W".
14619 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14620 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14622 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'
14626 export_symbols_cmds_CXX="$ltdll_cmds"
14628 cygwin* | mingw* | cegcc*)
14629 case $cc_basename in
14631 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14635 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14639 linux* | k*bsd*-gnu | gnu*)
14640 link_all_deplibs_CXX=no
14643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14648 $as_echo "$ld_shlibs_CXX" >&6; }
14649 test "$ld_shlibs_CXX" = no && can_build_shared=no
14651 with_gnu_ld_CXX=$with_gnu_ld
14659 # Do we need to explicitly link libc?
14661 case "x$archive_cmds_need_lc_CXX" in
14663 # Assume -lc should be added
14664 archive_cmds_need_lc_CXX=yes
14666 if test "$enable_shared" = yes && test "$GCC" = yes; then
14667 case $archive_cmds_CXX in
14669 # FIXME: we may have to deal with multi-command sequences.
14672 # Test whether the compiler implicitly links with -lc since on some
14673 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14674 # to ld, don't add -lc before -lgcc.
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14676 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14677 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14678 $as_echo_n "(cached) " >&6
14681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14684 (eval $ac_compile) 2>&5
14686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14687 test $ac_status = 0; } 2>conftest.err; then
14690 libobjs=conftest.$ac_objext
14692 wl=$lt_prog_compiler_wl_CXX
14693 pic_flag=$lt_prog_compiler_pic_CXX
14699 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14700 allow_undefined_flag_CXX=
14701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14702 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14705 test $ac_status = 0; }
14707 lt_cv_archive_cmds_need_lc_CXX=no
14709 lt_cv_archive_cmds_need_lc_CXX=yes
14711 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14713 cat conftest.err 1>&5
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14719 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14720 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14789 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14791 library_names_spec=
14792 libname_spec='lib$name'
14796 postuninstall_cmds=
14800 shlibpath_overrides_runpath=unknown
14802 dynamic_linker="$host_os ld.so"
14803 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14804 need_lib_prefix=unknown
14805 hardcode_into_libs=no
14807 # when you set need_version to no, make sure it does not cause -set_version
14808 # flags to be left without arguments
14809 need_version=unknown
14813 version_type=linux # correct to gnu/linux during the next big refactor
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14815 shlibpath_var=LIBPATH
14817 # AIX 3 has no versioning support, so we append a major version to the name.
14818 soname_spec='${libname}${release}${shared_ext}$major'
14822 version_type=linux # correct to gnu/linux during the next big refactor
14825 hardcode_into_libs=yes
14826 if test "$host_cpu" = ia64; then
14827 # AIX 5 supports IA64
14828 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14829 shlibpath_var=LD_LIBRARY_PATH
14831 # With GCC up to 2.95.x, collect2 would create an import file
14832 # for dependence libraries. The import file would start with
14833 # the line `#! .'. This would cause the generated library to
14834 # depend on `.', always an invalid library. This was fixed in
14835 # development snapshots of GCC prior to 3.0.
14837 aix4 | aix4.[01] | aix4.[01].*)
14838 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14840 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14843 can_build_shared=no
14847 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14848 # soname into executable. Probably we can add versioning support to
14849 # collect2, so additional links can be useful in future.
14850 if test "$aix_use_runtimelinking" = yes; then
14851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14852 # instead of lib<name>.a to let people know that these are not
14853 # typical AIX shared libraries.
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 # We preserve .a as extension for shared libraries through AIX4.2
14857 # and later when we are not doing run time linking.
14858 library_names_spec='${libname}${release}.a $libname.a'
14859 soname_spec='${libname}${release}${shared_ext}$major'
14861 shlibpath_var=LIBPATH
14868 # Since July 2007 AmigaOS4 officially supports .so libraries.
14869 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 library_names_spec='$libname.ixlibrary $libname.a'
14874 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14875 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14881 library_names_spec='${libname}${shared_ext}'
14882 dynamic_linker="$host_os ld.so"
14883 shlibpath_var=LIBRARY_PATH
14887 version_type=linux # correct to gnu/linux during the next big refactor
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14895 # the default ld.so.conf also contains /usr/contrib/lib and
14896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14897 # libtool to hard-code these into programs
14900 cygwin* | mingw* | pw32* | cegcc*)
14901 version_type=windows
14906 case $GCC,$cc_basename in
14909 library_names_spec='$libname.dll.a'
14910 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14911 postinstall_cmds='base_file=`basename \${file}`~
14912 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14913 dldir=$destdir/`dirname \$dlpath`~
14914 test -d \$dldir || mkdir -p \$dldir~
14915 $install_prog $dir/$dlname \$dldir/$dlname~
14916 chmod a+x \$dldir/$dlname~
14917 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14918 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14920 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14921 dlpath=$dir/\$dldll~
14923 shlibpath_overrides_runpath=yes
14927 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14928 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14932 # MinGW DLLs use traditional 'lib' prefix
14933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936 # pw32 DLLs use 'pw' prefix rather than 'lib'
14937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14940 dynamic_linker='Win32 ld.exe'
14945 libname_spec='$name'
14946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14947 library_names_spec='${libname}.dll.lib'
14951 sys_lib_search_path_spec=
14954 for lt_path in $LIB
14957 # Let DOS variable expansion print the short 8.3 style file name.
14958 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14959 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14962 # Convert to MSYS style.
14963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14966 # Convert to unix form, then to dos form, then back to unix form
14967 # but this time dos style (no spaces!) so that the unix form looks
14968 # like /cygdrive/c/PROGRA~1:/cygdr...
14969 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14970 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14971 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14974 sys_lib_search_path_spec="$LIB"
14975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14976 # It is most probably a Windows format PATH.
14977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14981 # FIXME: find the short name or the path components, as spaces are
14982 # common. (e.g. "Program Files" -> "PROGRA~1")
14986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14987 postinstall_cmds='base_file=`basename \${file}`~
14988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14989 dldir=$destdir/`dirname \$dlpath`~
14990 test -d \$dldir || mkdir -p \$dldir~
14991 $install_prog $dir/$dlname \$dldir/$dlname'
14992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14993 dlpath=$dir/\$dldll~
14995 shlibpath_overrides_runpath=yes
14996 dynamic_linker='Win32 link.exe'
15000 # Assume MSVC wrapper
15001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15002 dynamic_linker='Win32 ld.exe'
15005 # FIXME: first we should search . and the directory the executable is in
15009 darwin* | rhapsody*)
15010 dynamic_linker="$host_os dyld"
15011 version_type=darwin
15014 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15015 soname_spec='${libname}${release}${major}$shared_ext'
15016 shlibpath_overrides_runpath=yes
15017 shlibpath_var=DYLD_LIBRARY_PATH
15018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15024 version_type=linux # correct to gnu/linux during the next big refactor
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15029 shlibpath_var=LD_LIBRARY_PATH
15032 freebsd* | dragonfly*)
15033 # DragonFly does not have aout. When/if they implement a new
15034 # versioning mechanism, adjust this.
15035 if test -x /usr/bin/objformat; then
15036 objformat=`/usr/bin/objformat`
15039 freebsd[23].*) objformat=aout ;;
15040 *) objformat=elf ;;
15043 version_type=freebsd-$objformat
15044 case $version_type in
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15055 shlibpath_var=LD_LIBRARY_PATH
15058 shlibpath_overrides_runpath=yes
15060 freebsd3.[01]* | freebsdelf3.[01]*)
15061 shlibpath_overrides_runpath=yes
15062 hardcode_into_libs=yes
15064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15066 shlibpath_overrides_runpath=no
15067 hardcode_into_libs=yes
15069 *) # from 4.6 on, and DragonFly
15070 shlibpath_overrides_runpath=yes
15071 hardcode_into_libs=yes
15077 version_type=linux # correct to gnu/linux during the next big refactor
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 shlibpath_overrides_runpath=no
15084 hardcode_into_libs=yes
15088 version_type=linux # correct to gnu/linux during the next big refactor
15091 dynamic_linker="$host_os runtime_loader"
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 shlibpath_var=LIBRARY_PATH
15095 shlibpath_overrides_runpath=yes
15096 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15097 hardcode_into_libs=yes
15100 hpux9* | hpux10* | hpux11*)
15101 # Give a soname corresponding to the major version so that dld.sl refuses to
15102 # link against other versions.
15109 hardcode_into_libs=yes
15110 dynamic_linker="$host_os dld.so"
15111 shlibpath_var=LD_LIBRARY_PATH
15112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 if test "X$HPUX_IA64_MODE" = X32; then
15116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15124 hardcode_into_libs=yes
15125 dynamic_linker="$host_os dld.sl"
15126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15135 dynamic_linker="$host_os dld.sl"
15136 shlibpath_var=SHLIB_PATH
15137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15142 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15143 postinstall_cmds='chmod 555 $lib'
15144 # or fails outright, so override atomically:
15145 install_override_mode=555
15149 version_type=linux # correct to gnu/linux during the next big refactor
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 shlibpath_overrides_runpath=no
15157 hardcode_into_libs=yes
15160 irix5* | irix6* | nonstopux*)
15162 nonstopux*) version_type=nonstopux ;;
15164 if test "$lt_cv_prog_gnu_ld" = yes; then
15165 version_type=linux # correct to gnu/linux during the next big refactor
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15175 irix5* | nonstopux*)
15176 libsuff= shlibsuff=
15179 case $LD in # libtool.m4 will add one of these switches to LD
15180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15181 libsuff= shlibsuff= libmagic=32-bit;;
15182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15183 libsuff=32 shlibsuff=N32 libmagic=N32;;
15184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15186 *) libsuff= shlibsuff= libmagic=never-match;;
15190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15191 shlibpath_overrides_runpath=no
15192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15194 hardcode_into_libs=yes
15197 # No shared lib support for Linux oldld, aout, or coff.
15198 linux*oldld* | linux*aout* | linux*coff*)
15202 # This must be glibc/ELF.
15203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15204 version_type=linux # correct to gnu/linux during the next big refactor
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=no
15213 # Some binutils ld are patched to set DT_RUNPATH
15214 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15215 $as_echo_n "(cached) " >&6
15217 lt_cv_shlibpath_overrides_runpath=no
15218 save_LDFLAGS=$LDFLAGS
15219 save_libdir=$libdir
15220 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15221 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15233 if ac_fn_cxx_try_link "$LINENO"; then :
15234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15235 lt_cv_shlibpath_overrides_runpath=yes
15238 rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15240 LDFLAGS=$save_LDFLAGS
15241 libdir=$save_libdir
15245 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15247 # This implies no fast_install, which is unacceptable.
15248 # Some rework will be needed to allow for fast_install
15249 # before this can be enabled.
15250 hardcode_into_libs=yes
15252 # Append ld.so.conf contents to the search path
15253 if test -f /etc/ld.so.conf; then
15254 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;s/"//g;/^$/d' | tr '\n' ' '`
15255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15258 # We used to test for /lib/ld.so.1 and disable shared libraries on
15259 # powerpc, because MkLinux only supported shared libraries with the
15260 # GNU dynamic linker. Since this was broken with cross compilers,
15261 # most powerpc-linux boxes support dynamic linking these days and
15262 # people can always --disable-shared, the test was removed, and we
15263 # assume the GNU/Linux dynamic linker is in use.
15264 dynamic_linker='GNU/Linux ld.so'
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 shlibpath_overrides_runpath=no
15275 hardcode_into_libs=yes
15276 dynamic_linker='NetBSD ld.elf_so'
15283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15286 dynamic_linker='NetBSD (a.out) ld.so'
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 dynamic_linker='NetBSD ld.elf_so'
15292 shlibpath_var=LD_LIBRARY_PATH
15293 shlibpath_overrides_runpath=yes
15294 hardcode_into_libs=yes
15298 version_type=linux # correct to gnu/linux during the next big refactor
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=yes
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 shlibpath_overrides_runpath=no
15312 hardcode_into_libs=yes
15313 dynamic_linker='ldqnx.so'
15318 sys_lib_dlsearch_path_spec="/usr/lib"
15320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15323 *) need_version=no ;;
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15330 openbsd2.[89] | openbsd2.[89].*)
15331 shlibpath_overrides_runpath=no
15334 shlibpath_overrides_runpath=yes
15338 shlibpath_overrides_runpath=yes
15343 libname_spec='$name'
15346 library_names_spec='$libname${shared_ext} $libname.a'
15347 dynamic_linker='OS/2 ld.exe'
15348 shlibpath_var=LIBPATH
15351 osf3* | osf4* | osf5*)
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 shlibpath_var=LD_LIBRARY_PATH
15358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15367 version_type=linux # correct to gnu/linux during the next big refactor
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=yes
15374 hardcode_into_libs=yes
15375 # ldd complains unless libraries are executable
15376 postinstall_cmds='chmod +x $lib'
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 shlibpath_overrides_runpath=yes
15385 if test "$with_gnu_ld" = yes; then
15392 version_type=linux # correct to gnu/linux during the next big refactor
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 case $host_vendor in
15398 shlibpath_overrides_runpath=no
15400 runpath_var=LD_RUN_PATH
15408 shlibpath_overrides_runpath=no
15409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15415 if test -d /usr/nec ;then
15416 version_type=linux # correct to gnu/linux during the next big refactor
15417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15418 soname_spec='$libname${shared_ext}.$major'
15419 shlibpath_var=LD_LIBRARY_PATH
15423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15424 version_type=freebsd-elf
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15431 hardcode_into_libs=yes
15432 if test "$with_gnu_ld" = yes; then
15433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15442 sys_lib_dlsearch_path_spec='/usr/lib'
15446 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15447 version_type=linux # correct to gnu/linux during the next big refactor
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 shlibpath_overrides_runpath=no
15453 hardcode_into_libs=yes
15457 version_type=linux # correct to gnu/linux during the next big refactor
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 shlibpath_var=LD_LIBRARY_PATH
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15468 $as_echo "$dynamic_linker" >&6; }
15469 test "$dynamic_linker" = no && can_build_shared=no
15471 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15472 if test "$GCC" = yes; then
15473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15476 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15477 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15479 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15522 hardcode_action_CXX=
15523 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15524 test -n "$runpath_var_CXX" ||
15525 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15527 # We can hardcode non-existent directories.
15528 if test "$hardcode_direct_CXX" != no &&
15529 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15530 # have to relink, otherwise we might link with an installed library
15531 # when we should be linking with a yet-to-be-installed one
15532 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15533 test "$hardcode_minus_L_CXX" != no; then
15534 # Linking always hardcodes the temporary library directory.
15535 hardcode_action_CXX=relink
15537 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15538 hardcode_action_CXX=immediate
15541 # We cannot hardcode anything, or else we can only hardcode existing
15543 hardcode_action_CXX=unsupported
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15546 $as_echo "$hardcode_action_CXX" >&6; }
15548 if test "$hardcode_action_CXX" = relink ||
15549 test "$inherit_rpath_CXX" = yes; then
15550 # Fast installation is not supported
15551 enable_fast_install=no
15552 elif test "$shlibpath_overrides_runpath" = yes ||
15553 test "$enable_shared" = no; then
15554 # Fast installation is not necessary
15555 enable_fast_install=needless
15564 fi # test -n "$compiler"
15567 CFLAGS=$lt_save_CFLAGS
15571 with_gnu_ld=$lt_save_with_gnu_ld
15572 lt_cv_path_LDCXX=$lt_cv_path_LD
15573 lt_cv_path_LD=$lt_save_path_LD
15574 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15575 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15576 fi # test "$_lt_caught_CXX_error" != yes
15579 ac_cpp='$CXXCPP $CPPFLAGS'
15580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15598 ac_config_commands="$ac_config_commands libtool"
15603 # Only expand once:
15608 # Check whether some low-level functions/files are available
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15611 $as_echo_n "checking for ANSI C header files... " >&6; }
15612 if ${ac_cv_header_stdc+:} false; then :
15613 $as_echo_n "(cached) " >&6
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15617 #include <stdlib.h>
15618 #include <stdarg.h>
15619 #include <string.h>
15630 if ac_fn_cxx_try_compile "$LINENO"; then :
15631 ac_cv_header_stdc=yes
15633 ac_cv_header_stdc=no
15635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15637 if test $ac_cv_header_stdc = yes; then
15638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15641 #include <string.h>
15644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15645 $EGREP "memchr" >/dev/null 2>&1; then :
15648 ac_cv_header_stdc=no
15654 if test $ac_cv_header_stdc = yes; then
15655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 #include <stdlib.h>
15661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15662 $EGREP "free" >/dev/null 2>&1; then :
15665 ac_cv_header_stdc=no
15671 if test $ac_cv_header_stdc = yes; then
15672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15673 if test "$cross_compiling" = yes; then :
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15679 #include <stdlib.h>
15680 #if ((' ' & 0x0FF) == 0x020)
15681 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15682 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15684 # define ISLOWER(c) \
15685 (('a' <= (c) && (c) <= 'i') \
15686 || ('j' <= (c) && (c) <= 'r') \
15687 || ('s' <= (c) && (c) <= 'z'))
15688 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15691 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15696 for (i = 0; i < 256; i++)
15697 if (XOR (islower (i), ISLOWER (i))
15698 || toupper (i) != TOUPPER (i))
15703 if ac_fn_cxx_try_run "$LINENO"; then :
15706 ac_cv_header_stdc=no
15708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15709 conftest.$ac_objext conftest.beam conftest.$ac_ext
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15715 $as_echo "$ac_cv_header_stdc" >&6; }
15716 if test $ac_cv_header_stdc = yes; then
15718 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15723 # These are tested for by AC_HEADER_STDC, but I check again to set the var
15724 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15725 if test "x$ac_cv_header_stdint_h" = xyes; then :
15726 ac_cv_have_stdint_h=1
15728 ac_cv_have_stdint_h=0
15732 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15733 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15734 ac_cv_have_systypes_h=1
15736 ac_cv_have_systypes_h=0
15740 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15741 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15742 ac_cv_have_inttypes_h=1
15744 ac_cv_have_inttypes_h=0
15748 for ac_header in unistd.h
15750 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15751 if test "x$ac_cv_header_unistd_h" = xyes; then :
15752 cat >>confdefs.h <<_ACEOF
15753 #define HAVE_UNISTD_H 1
15755 ac_cv_have_unistd_h=1
15757 ac_cv_have_unistd_h=0
15762 for ac_header in syscall.h
15764 ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
15765 if test "x$ac_cv_header_syscall_h" = xyes; then :
15766 cat >>confdefs.h <<_ACEOF
15767 #define HAVE_SYSCALL_H 1
15774 for ac_header in sys/syscall.h
15776 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15777 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
15778 cat >>confdefs.h <<_ACEOF
15779 #define HAVE_SYS_SYSCALL_H 1
15786 # For backtrace with glibc.
15787 for ac_header in execinfo.h
15789 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15790 if test "x$ac_cv_header_execinfo_h" = xyes; then :
15791 cat >>confdefs.h <<_ACEOF
15792 #define HAVE_EXECINFO_H 1
15799 # For backtrace with libunwind.
15800 for ac_header in libunwind.h
15802 ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15803 if test "x$ac_cv_header_libunwind_h" = xyes; then :
15804 cat >>confdefs.h <<_ACEOF
15805 #define HAVE_LIBUNWIND_H 1
15807 ac_cv_have_libunwind_h=1
15809 ac_cv_have_libunwind_h=0
15814 for ac_header in ucontext.h
15816 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15817 if test "x$ac_cv_header_ucontext_h" = xyes; then :
15818 cat >>confdefs.h <<_ACEOF
15819 #define HAVE_UCONTEXT_H 1
15826 for ac_header in sys/utsname.h
15828 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
15829 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
15830 cat >>confdefs.h <<_ACEOF
15831 #define HAVE_SYS_UTSNAME_H 1
15838 for ac_header in pwd.h
15840 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15841 if test "x$ac_cv_header_pwd_h" = xyes; then :
15842 cat >>confdefs.h <<_ACEOF
15843 #define HAVE_PWD_H 1
15850 for ac_header in syslog.h
15852 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15853 if test "x$ac_cv_header_syslog_h" = xyes; then :
15854 cat >>confdefs.h <<_ACEOF
15855 #define HAVE_SYSLOG_H 1
15862 for ac_header in sys/time.h
15864 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15865 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15866 cat >>confdefs.h <<_ACEOF
15867 #define HAVE_SYS_TIME_H 1
15874 for ac_header in glob.h
15876 ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15877 if test "x$ac_cv_header_glob_h" = xyes; then :
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_GLOB_H 1
15886 # For backtrace with gcc.
15887 for ac_header in unwind.h
15889 ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15890 if test "x$ac_cv_header_unwind_h" = xyes; then :
15891 cat >>confdefs.h <<_ACEOF
15892 #define HAVE_UNWIND_H 1
15900 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15901 if test "x$ac_cv_header_windows_h" = xyes; then :
15902 ac_cv_have_windows_h=1
15904 ac_cv_have_windows_h=0
15908 if test x"$ac_cv_have_windows_h" = x"1"; then
15909 MINGW_CFLAGS=-Isrc/windows
15912 # The cast to long int works around a bug in the HP C Compiler
15913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15915 # This bug is HP SR number 8606223364.
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15917 $as_echo_n "checking size of void *... " >&6; }
15918 if ${ac_cv_sizeof_void_p+:} false; then :
15919 $as_echo_n "(cached) " >&6
15921 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15924 if test "$ac_cv_type_void_p" = yes; then
15925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15927 as_fn_error 77 "cannot compute sizeof (void *)
15928 See \`config.log' for more details" "$LINENO" 5; }
15930 ac_cv_sizeof_void_p=0
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15936 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15940 cat >>confdefs.h <<_ACEOF
15941 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15946 # These are the types I need. We look for them in either stdint.h,
15947 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15948 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15949 if test "x$ac_cv_type_uint16_t" = xyes; then :
15950 ac_cv_have_uint16_t=1
15952 ac_cv_have_uint16_t=0
15955 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15956 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15957 ac_cv_have_u_int16_t=1
15959 ac_cv_have_u_int16_t=0
15962 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15963 if test "x$ac_cv_type___uint16" = xyes; then :
15964 ac_cv_have___uint16=1
15966 ac_cv_have___uint16=0
15970 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15971 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15973 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15977 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
15978 if test "x$ac_cv_func_sigaction" = xyes; then :
15980 $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
15984 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15985 if test "x$ac_cv_func_dladdr" = xyes; then :
15987 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15991 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15992 if test "x$ac_cv_func_fcntl" = xyes; then :
15994 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15998 ac_fn_cxx_check_func "$LINENO" "pread" "ac_cv_func_pread"
15999 if test "x$ac_cv_func_pread" = xyes; then :
16001 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
16005 ac_fn_cxx_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
16006 if test "x$ac_cv_func_pwrite" = xyes; then :
16008 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
16015 $as_echo_n "checking for __attribute__... " >&6; }
16016 if ${ac_cv___attribute__+:} false; then :
16017 $as_echo_n "(cached) " >&6
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022 #include <stdlib.h>
16023 static void foo(void) __attribute__ ((unused));
16024 void foo(void) { exit(1); }
16033 if ac_fn_cxx_try_compile "$LINENO"; then :
16034 ac_cv___attribute__=yes
16036 ac_cv___attribute__=no
16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 if test "$ac_cv___attribute__" = "yes"; then
16044 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
16048 $as_echo "$ac_cv___attribute__" >&6; }
16050 # We only care about these two attributes.
16051 if test x"$ac_cv___attribute__" = x"yes"; then
16052 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
16053 ac_cv___attribute___noinline="__attribute__ ((noinline))"
16054 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
16056 ac_cv___attribute___noreturn=
16057 ac_cv___attribute___noinline=
16058 ac_cv___attribute___printf_4_5=
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
16063 $as_echo_n "checking for __builtin_expect... " >&6; }
16064 if ${ac_cv___builtin_expect+:} false; then :
16065 $as_echo_n "(cached) " >&6
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16070 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
16079 if ac_fn_cxx_try_compile "$LINENO"; then :
16080 ac_cv___builtin_expect=yes
16082 ac_cv___builtin_expect=no
16085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 if test "$ac_cv___builtin_expect" = "yes"; then
16090 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
16094 $as_echo "$ac_cv___builtin_expect" >&6; }
16096 if test x"$ac_cv___builtin_expect" = x"yes"; then
16097 ac_cv_have___builtin_expect=1
16099 ac_cv_have___builtin_expect=0
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
16104 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
16105 if ${ac_cv___sync_val_compare_and_swap+:} false; then :
16106 $as_echo_n "(cached) " >&6
16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16115 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
16120 if ac_fn_cxx_try_link "$LINENO"; then :
16121 ac_cv___sync_val_compare_and_swap=yes
16123 ac_cv___sync_val_compare_and_swap=no
16126 rm -f core conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16130 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
16132 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
16136 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
16139 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
16140 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
16141 # Check whether --enable-frame_pointers was given.
16142 if test "${enable_frame_pointers+set}" = set; then :
16143 enableval=$enable_frame_pointers;
16145 enable_frame_pointers=no
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16154 return __x86_64__ == 1 ? 0 : 1
16159 if ac_fn_cxx_try_compile "$LINENO"; then :
16164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165 if test "$enable_frame_pointers" = yes; then
16166 ENABLE_FRAME_POINTERS_TRUE=
16167 ENABLE_FRAME_POINTERS_FALSE='#'
16169 ENABLE_FRAME_POINTERS_TRUE='#'
16170 ENABLE_FRAME_POINTERS_FALSE=
16173 if test "$is_x86_64" = yes; then
16182 # Check whether --enable-rtti was given.
16183 if test "${enable_rtti+set}" = set; then :
16184 enableval=$enable_rtti;
16187 if test x"$enable_rtti" = x"no"; then
16189 DISABLE_RTTI_FALSE='#'
16191 DISABLE_RTTI_TRUE='#'
16192 DISABLE_RTTI_FALSE=
16195 if test x"$enable_rtti" = x"no"; then
16197 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
16201 # Some of the code in this directory depends on pthreads
16206 ac_cpp='$CPP $CPPFLAGS'
16207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16213 # We used to check for pthread.h first, but this fails if pthread.h
16214 # requires special compiler flags (e.g. on True64 or Sequent).
16215 # It gets checked for in the link test anyway.
16217 # First of all, check if the user has set any of the PTHREAD_LIBS,
16218 # etcetera environment variables, and if threads linking works using
16220 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16221 save_CFLAGS="$CFLAGS"
16222 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16224 LIBS="$PTHREAD_LIBS $LIBS"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16226 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16230 /* Override any GCC internal prototype to avoid an error.
16231 Use char because int might match the return type of a GCC
16232 builtin and then its argument prototype would still apply. */
16236 char pthread_join ();
16240 return pthread_join ();
16245 if ac_fn_c_try_link "$LINENO"; then :
16248 rm -f core conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16251 $as_echo "$acx_pthread_ok" >&6; }
16252 if test x"$acx_pthread_ok" = xno; then
16257 CFLAGS="$save_CFLAGS"
16260 # We must check for the threads library under a number of different
16261 # names; the ordering is very important because some systems
16262 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16263 # libraries is broken (non-POSIX).
16265 # Create a list of thread flags to try. Items starting with a "-" are
16266 # C compiler flags, and other items are library names, except for "none"
16267 # which indicates that we try without any flags at all, and "pthread-config"
16268 # which is a program returning the flags for the Pth emulation library.
16270 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16272 # The ordering *is* (sometimes) important. Some notes on the
16273 # individual items follow:
16275 # pthreads: AIX (must check this before -lpthread)
16276 # none: in case threads are in libc; should be tried before -Kthread and
16277 # other compiler flags to prevent continual compiler warnings
16278 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16279 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16280 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16281 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16282 # -pthreads: Solaris/gcc
16283 # -mthreads: Mingw32/gcc, Lynx/gcc
16284 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16285 # doesn't hurt to check since this sometimes defines pthreads too;
16286 # also defines -D_REENTRANT)
16287 # ... -mt is also the pthreads flag for HP/aCC
16288 # pthread: Linux, etcetera
16289 # --thread-safe: KAI C++
16290 # pthread-config: use pthread-config program (for GNU Pth library)
16292 case "${host_cpu}-${host_os}" in
16295 # On Solaris (at least, for some versions), libc contains stubbed
16296 # (non-functional) versions of the pthreads routines, so link-based
16297 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16298 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16299 # a function called by this macro, so we could check for that, but
16300 # who knows whether they'll stub that too in a future libc.) So,
16301 # we'll just look for -pthreads and -lpthread first:
16303 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16307 if test x"$acx_pthread_ok" = xno; then
16308 for flag in $acx_pthread_flags; do
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16313 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16318 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16319 PTHREAD_CFLAGS="$flag"
16323 # Extract the first word of "pthread-config", so it can be a program name with args.
16324 set dummy pthread-config; ac_word=$2
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16326 $as_echo_n "checking for $ac_word... " >&6; }
16327 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16328 $as_echo_n "(cached) " >&6
16330 if test -n "$acx_pthread_config"; then
16331 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16334 for as_dir in $PATH
16337 test -z "$as_dir" && as_dir=.
16338 for ac_exec_ext in '' $ac_executable_extensions; do
16339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16340 ac_cv_prog_acx_pthread_config="yes"
16341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16348 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16351 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16352 if test -n "$acx_pthread_config"; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16354 $as_echo "$acx_pthread_config" >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16361 if test x"$acx_pthread_config" = xno; then continue; fi
16362 PTHREAD_CFLAGS="`pthread-config --cflags`"
16363 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16368 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16369 PTHREAD_LIBS="-l$flag"
16374 save_CFLAGS="$CFLAGS"
16375 LIBS="$PTHREAD_LIBS $LIBS"
16376 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16378 # Check for various functions. We must include pthread.h,
16379 # since some functions may be macros. (On the Sequent, we
16380 # need a special flag -Kthread to make this header compile.)
16381 # We check for pthread_join because it is in -lpthread on IRIX
16382 # while pthread_create is in libc. We check for pthread_attr_init
16383 # due to DEC craziness with -lpthreads. We check for
16384 # pthread_cleanup_push because it is one of the few pthread
16385 # functions on Solaris that doesn't have a non-functional libc stub.
16386 # We try pthread_create on general principles.
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 #include <pthread.h>
16393 pthread_t th; pthread_join(th, 0);
16394 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16395 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16400 if ac_fn_c_try_link "$LINENO"; then :
16403 rm -f core conftest.err conftest.$ac_objext \
16404 conftest$ac_exeext conftest.$ac_ext
16407 CFLAGS="$save_CFLAGS"
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16410 $as_echo "$acx_pthread_ok" >&6; }
16411 if test "x$acx_pthread_ok" = xyes; then
16420 # Various other checks:
16421 if test "x$acx_pthread_ok" = xyes; then
16423 LIBS="$PTHREAD_LIBS $LIBS"
16424 save_CFLAGS="$CFLAGS"
16425 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16427 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16429 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16431 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 #include <pthread.h>
16438 int attr=$attr; return attr;
16443 if ac_fn_c_try_link "$LINENO"; then :
16444 attr_name=$attr; break
16446 rm -f core conftest.err conftest.$ac_objext \
16447 conftest$ac_exeext conftest.$ac_ext
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16450 $as_echo "$attr_name" >&6; }
16451 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16453 cat >>confdefs.h <<_ACEOF
16454 #define PTHREAD_CREATE_JOINABLE $attr_name
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16460 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16462 case "${host_cpu}-${host_os}" in
16463 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16464 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16467 $as_echo "${flag}" >&6; }
16468 if test "x$flag" != xno; then
16469 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16473 CFLAGS="$save_CFLAGS"
16474 # More AIX lossage: must compile with xlc_r or cc_r
16475 if test x"$GCC" != xyes; then
16476 for ac_prog in xlc_r cc_r
16478 # Extract the first word of "$ac_prog", so it can be a program name with args.
16479 set dummy $ac_prog; ac_word=$2
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16481 $as_echo_n "checking for $ac_word... " >&6; }
16482 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16483 $as_echo_n "(cached) " >&6
16485 if test -n "$PTHREAD_CC"; then
16486 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16489 for as_dir in $PATH
16492 test -z "$as_dir" && as_dir=.
16493 for ac_exec_ext in '' $ac_executable_extensions; do
16494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16495 ac_cv_prog_PTHREAD_CC="$ac_prog"
16496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16505 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16506 if test -n "$PTHREAD_CC"; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16508 $as_echo "$PTHREAD_CC" >&6; }
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16515 test -n "$PTHREAD_CC" && break
16517 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16523 # The next part tries to detect GCC inconsistency with -shared on some
16524 # architectures and systems. The problem is that in certain
16525 # configurations, when -shared is specified, GCC "forgets" to
16526 # internally use various flags which are still necessary.
16529 # Prepare the flags
16531 save_CFLAGS="$CFLAGS"
16535 # Try with the flags determined by the earlier checks.
16537 # -Wl,-z,defs forces link-time symbol resolution, so that the
16538 # linking checks with -shared actually have any value
16540 # FIXME: -fPIC is required for -shared on many architectures,
16541 # so we specify it here, but the right way would probably be to
16542 # properly detect whether it is actually required.
16543 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16544 LIBS="$PTHREAD_LIBS $LIBS"
16547 # In order not to create several levels of indentation, we test
16548 # the value of "$done" until we find the cure or run out of ideas.
16551 # First, make sure the CFLAGS we added are actually accepted by our
16552 # compiler. If not (and OS X's ld, for instance, does not accept -z),
16553 # then we can't do this test.
16554 if test x"$done" = xno; then
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16556 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16568 if ac_fn_c_try_link "$LINENO"; then :
16573 rm -f core conftest.err conftest.$ac_objext \
16574 conftest$ac_exeext conftest.$ac_ext
16576 if test "x$done" = xyes ; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16578 $as_echo "no" >&6; }
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16581 $as_echo "yes" >&6; }
16585 if test x"$done" = xno; then
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16587 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16590 #include <pthread.h>
16594 pthread_t th; pthread_join(th, 0);
16595 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16596 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16601 if ac_fn_c_try_link "$LINENO"; then :
16604 rm -f core conftest.err conftest.$ac_objext \
16605 conftest$ac_exeext conftest.$ac_ext
16607 if test "x$done" = xyes; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16609 $as_echo "yes" >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16617 # Linux gcc on some architectures such as mips/mipsel forgets
16620 if test x"$done" = xno; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16622 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16623 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16626 #include <pthread.h>
16630 pthread_t th; pthread_join(th, 0);
16631 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16632 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16637 if ac_fn_c_try_link "$LINENO"; then :
16640 rm -f core conftest.err conftest.$ac_objext \
16641 conftest$ac_exeext conftest.$ac_ext
16643 if test "x$done" = xyes; then
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16645 $as_echo "yes" >&6; }
16646 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649 $as_echo "no" >&6; }
16653 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16655 if test x"$done" = xno; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16657 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16658 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h. */
16661 #include <pthread.h>
16665 pthread_t th; pthread_join(th, 0);
16666 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16667 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16672 if ac_fn_c_try_link "$LINENO"; then :
16675 rm -f core conftest.err conftest.$ac_objext \
16676 conftest$ac_exeext conftest.$ac_ext
16678 if test "x$done" = xyes; then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16680 $as_echo "yes" >&6; }
16681 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684 $as_echo "no" >&6; }
16687 if test x"$done" = xno; then
16688 # OK, we have run out of ideas
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16690 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16692 # so it's not safe to assume that we may use pthreads
16696 CFLAGS="$save_CFLAGS"
16707 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16708 if test x"$acx_pthread_ok" = xyes; then
16710 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16718 ac_cpp='$CXXCPP $CPPFLAGS'
16719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16724 if test x"$acx_pthread_ok" = x"yes"; then
16725 # To make libglog depend on libpthread on Linux, we need to add
16726 # -lpthread in addition to -pthread.
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
16728 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
16729 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
16730 $as_echo_n "(cached) " >&6
16732 ac_check_lib_save_LIBS=$LIBS
16733 LIBS="-lpthread $LIBS"
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16737 /* Override any GCC internal prototype to avoid an error.
16738 Use char because int might match the return type of a GCC
16739 builtin and then its argument prototype would still apply. */
16743 char pthread_self ();
16747 return pthread_self ();
16752 if ac_fn_cxx_try_link "$LINENO"; then :
16753 ac_cv_lib_pthread_pthread_self=yes
16755 ac_cv_lib_pthread_pthread_self=no
16757 rm -f core conftest.err conftest.$ac_objext \
16758 conftest$ac_exeext conftest.$ac_ext
16759 LIBS=$ac_check_lib_save_LIBS
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
16762 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
16763 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
16764 cat >>confdefs.h <<_ACEOF
16765 #define HAVE_LIBPTHREAD 1
16768 LIBS="-lpthread $LIBS"
16774 # Check if there is google-gflags library installed.
16775 SAVE_CFLAGS="$CFLAGS"
16778 # Check whether --with-gflags was given.
16779 if test "${with_gflags+set}" = set; then :
16780 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
16781 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
16782 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
16783 LIBS="$LIBS $GFLAGS_LIBS"
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
16788 $as_echo_n "checking for main in -lgflags... " >&6; }
16789 if ${ac_cv_lib_gflags_main+:} false; then :
16790 $as_echo_n "(cached) " >&6
16792 ac_check_lib_save_LIBS=$LIBS
16793 LIBS="-lgflags $LIBS"
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16806 if ac_fn_cxx_try_link "$LINENO"; then :
16807 ac_cv_lib_gflags_main=yes
16809 ac_cv_lib_gflags_main=no
16811 rm -f core conftest.err conftest.$ac_objext \
16812 conftest$ac_exeext conftest.$ac_ext
16813 LIBS=$ac_check_lib_save_LIBS
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
16816 $as_echo "$ac_cv_lib_gflags_main" >&6; }
16817 if test "x$ac_cv_lib_gflags_main" = xyes; then :
16818 ac_cv_have_libgflags=1
16820 ac_cv_have_libgflags=0
16823 if test x"$ac_cv_have_libgflags" = x"1"; then
16825 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
16827 if test x"$GFLAGS_LIBS" = x""; then
16828 GFLAGS_LIBS="-lgflags"
16834 CFLAGS="$SAVE_CFLAGS"
16837 # TODO(hamaji): Use official m4 macros provided by testing libraries
16838 # once the m4 macro of Google Mocking becomes ready.
16839 # Check if there is Google Test library installed.
16840 # Extract the first word of "gtest-config", so it can be a program name with args.
16841 set dummy gtest-config; ac_word=$2
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16843 $as_echo_n "checking for $ac_word... " >&6; }
16844 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
16845 $as_echo_n "(cached) " >&6
16847 if test -n "$GTEST_CONFIG"; then
16848 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
16850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16851 for as_dir in $PATH
16854 test -z "$as_dir" && as_dir=.
16855 for ac_exec_ext in '' $ac_executable_extensions; do
16856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16857 ac_cv_prog_GTEST_CONFIG=""yes""
16858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16867 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
16868 if test -n "$GTEST_CONFIG"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16870 $as_echo "$GTEST_CONFIG" >&6; }
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873 $as_echo "no" >&6; }
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtest" >&5
16878 $as_echo_n "checking for main in -lgtest... " >&6; }
16879 if ${ac_cv_lib_gtest_main+:} false; then :
16880 $as_echo_n "(cached) " >&6
16882 ac_check_lib_save_LIBS=$LIBS
16883 LIBS="-lgtest $LIBS"
16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h. */
16896 if ac_fn_cxx_try_link "$LINENO"; then :
16897 ac_cv_lib_gtest_main=yes
16899 ac_cv_lib_gtest_main=no
16901 rm -f core conftest.err conftest.$ac_objext \
16902 conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtest_main" >&5
16906 $as_echo "$ac_cv_lib_gtest_main" >&6; }
16907 if test "x$ac_cv_lib_gtest_main" = xyes; then :
16908 have_gtest_lib="yes"
16911 if test x"$GTEST_CONFIG" = "xyes" -a x"$have_gtest_lib" = "xyes"; then
16912 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
16913 GTEST_LIBS=`gtest-config --ldflags --libs`
16915 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
16918 # Check if there is Google Mocking library installed.
16919 # Extract the first word of "gmock-config", so it can be a program name with args.
16920 set dummy gmock-config; ac_word=$2
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16922 $as_echo_n "checking for $ac_word... " >&6; }
16923 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
16924 $as_echo_n "(cached) " >&6
16926 if test -n "$GMOCK_CONFIG"; then
16927 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
16929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16930 for as_dir in $PATH
16933 test -z "$as_dir" && as_dir=.
16934 for ac_exec_ext in '' $ac_executable_extensions; do
16935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16936 ac_cv_prog_GMOCK_CONFIG=""yes""
16937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16946 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16947 if test -n "$GMOCK_CONFIG"; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16949 $as_echo "$GMOCK_CONFIG" >&6; }
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16952 $as_echo "no" >&6; }
16956 if test x"$GMOCK_CONFIG" = "xyes"; then
16957 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16958 GMOCK_LIBS=`gmock-config --ldflags --libs`
16960 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16963 # We don't run test cases which use Google Mocking framework.
16968 # We'll use src/googletest.h for our unittests.
16972 if test x"$GMOCK_CONFIG" = "xyes"; then
16974 HAVE_GMOCK_FALSE='#'
16976 HAVE_GMOCK_TRUE='#'
16981 # We want to link in libunwind if it exists
16983 # Unfortunately, we need to check the header file in addition to the
16984 # lib file to check if libunwind is available since libunwind-0.98
16985 # doesn't install all necessary header files.
16986 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16988 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16989 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16990 $as_echo_n "(cached) " >&6
16992 ac_check_lib_save_LIBS=$LIBS
16993 LIBS="-lunwind $LIBS"
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16997 /* Override any GCC internal prototype to avoid an error.
16998 Use char because int might match the return type of a GCC
16999 builtin and then its argument prototype would still apply. */
17007 return backtrace ();
17012 if ac_fn_cxx_try_link "$LINENO"; then :
17013 ac_cv_lib_unwind_backtrace=yes
17015 ac_cv_lib_unwind_backtrace=no
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17019 LIBS=$ac_check_lib_save_LIBS
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
17022 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
17023 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
17024 UNWIND_LIBS=-lunwind
17029 if test x"$UNWIND_LIBS" != x""; then
17031 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
17035 # We'd like to use read/write locks in several places in the code.
17036 # See if our pthreads support extends to that. Note: for linux, it
17037 # does as long as you define _XOPEN_SOURCE appropriately.
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
17039 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
17040 if ${ac_cv_rwlock+:} false; then :
17041 $as_echo_n "(cached) " >&6
17045 ac_cpp='$CPP $CPPFLAGS'
17046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17052 #define _XOPEN_SOURCE 500
17053 #include <pthread.h>
17057 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
17058 pthread_rwlock_rdlock(&l);
17064 if ac_fn_c_try_compile "$LINENO"; then :
17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071 ac_cpp='$CXXCPP $CPPFLAGS'
17072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
17079 $as_echo "$ac_cv_rwlock" >&6; }
17080 if test "$ac_cv_rwlock" = yes; then
17082 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
17087 # Find out what namespace 'normal' STL code lives in, and also what namespace
17088 # the user wants our classes to be defined in
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17090 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17091 if ${ac_cv_cxx_namespaces+:} false; then :
17092 $as_echo_n "(cached) " >&6
17096 ac_cpp='$CXXCPP $CPPFLAGS'
17097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17104 namespace Inner { int i = 0; }}
17108 using namespace Outer::Inner; return i;
17113 if ac_fn_cxx_try_compile "$LINENO"; then :
17114 ac_cv_cxx_namespaces=yes
17116 ac_cv_cxx_namespaces=no
17118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120 ac_cpp='$CXXCPP $CPPFLAGS'
17121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17127 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17128 if test "$ac_cv_cxx_namespaces" = yes; then
17130 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
17134 $as_echo_n "checking what namespace STL code is in... " >&6; }
17135 if ${ac_cv_cxx_stl_namespace+:} false; then :
17136 $as_echo_n "(cached) " >&6
17141 ac_cpp='$CXXCPP $CPPFLAGS'
17142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17152 vector<int> t; return 0;
17157 if ac_fn_cxx_try_compile "$LINENO"; then :
17158 ac_cv_cxx_stl_namespace=none
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17167 std::vector<int> t; return 0;
17172 if ac_fn_cxx_try_compile "$LINENO"; then :
17173 ac_cv_cxx_stl_namespace=std
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17177 ac_cpp='$CXXCPP $CPPFLAGS'
17178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
17184 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
17185 if test "$ac_cv_cxx_stl_namespace" = none; then
17187 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
17190 if test "$ac_cv_cxx_stl_namespace" = std; then
17192 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
17196 google_namespace_default=google
17197 # Check whether --enable-namespace was given.
17198 if test "${enable_namespace+set}" = set; then :
17199 enableval=$enable_namespace; case "$enableval" in
17200 yes) google_namespace="$google_namespace_default" ;;
17201 no) google_namespace="" ;;
17202 *) google_namespace="$enableval" ;;
17205 google_namespace="$google_namespace_default"
17208 if test -n "$google_namespace"; then
17209 ac_google_namespace="$google_namespace"
17210 ac_google_start_namespace="namespace $google_namespace {"
17211 ac_google_end_namespace="}"
17213 ac_google_namespace=""
17214 ac_google_start_namespace=""
17215 ac_google_end_namespace=""
17218 cat >>confdefs.h <<_ACEOF
17219 #define GOOGLE_NAMESPACE $ac_google_namespace
17223 cat >>confdefs.h <<_ACEOF
17224 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
17228 cat >>confdefs.h <<_ACEOF
17229 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
17235 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
17236 if ${ac_cv_cxx_using_operator+:} false; then :
17237 $as_echo_n "(cached) " >&6
17241 ac_cpp='$CXXCPP $CPPFLAGS'
17242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17248 #include <iostream>
17249 std::ostream& operator<<(std::ostream&, struct s);
17253 using ::operator<<; return 0;
17258 if ac_fn_cxx_try_compile "$LINENO"; then :
17259 ac_cv_cxx_using_operator=1
17261 ac_cv_cxx_using_operator=0
17263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17265 ac_cpp='$CXXCPP $CPPFLAGS'
17266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
17272 $as_echo "$ac_cv_cxx_using_operator" >&6; }
17273 if test "$ac_cv_cxx_using_operator" = 1; then
17275 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
17279 for ac_header in ucontext.h
17281 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
17282 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17283 cat >>confdefs.h <<_ACEOF
17284 #define HAVE_UCONTEXT_H 1
17291 for ac_header in sys/ucontext.h
17293 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
17294 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
17295 cat >>confdefs.h <<_ACEOF
17296 #define HAVE_SYS_UCONTEXT_H 1
17302 # ucontext on OS X 10.6 (at least)
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
17304 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
17305 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
17306 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
17307 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
17308 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
17309 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
17310 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
17311 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
17312 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
17313 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
17314 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
17315 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
17316 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
17317 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
17318 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
17319 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
17320 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
17321 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
17322 pc_field_found=false
17323 for pc_field in $pc_fields; do
17324 if ! $pc_field_found; then
17325 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 #define _GNU_SOURCE 1
17329 #include <sys/ucontext.h>
17333 ucontext_t u; return u.$pc_field == 0;
17338 if ac_fn_cxx_try_compile "$LINENO"; then :
17340 cat >>confdefs.h <<_ACEOF
17341 #define PC_FROM_UCONTEXT $pc_field
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17345 $as_echo "$pc_field" >&6; }
17346 pc_field_found=true
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17352 #define _GNU_SOURCE 1
17353 #include <ucontext.h>
17357 ucontext_t u; return u.$pc_field == 0;
17362 if ac_fn_cxx_try_compile "$LINENO"; then :
17364 cat >>confdefs.h <<_ACEOF
17365 #define PC_FROM_UCONTEXT $pc_field
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17369 $as_echo "$pc_field" >&6; }
17370 pc_field_found=true
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376 if ! $pc_field_found; then
17377 pc_fields=" sc_eip" # OpenBSD (i386)
17378 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
17379 for pc_field in $pc_fields; do
17380 if ! $pc_field_found; then
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383 #include <signal.h>
17387 ucontext_t u; return u.$pc_field == 0;
17392 if ac_fn_cxx_try_compile "$LINENO"; then :
17394 cat >>confdefs.h <<_ACEOF
17395 #define PC_FROM_UCONTEXT $pc_field
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17399 $as_echo "$pc_field" >&6; }
17400 pc_field_found=true
17402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406 if ! $pc_field_found; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
17408 $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
17412 cat >>confdefs.h <<_ACEOF
17413 #define TEST_SRC_DIR "$srcdir"
17417 # These are what's needed by logging.h.in and raw_logging.h.in
17442 # Write generated configuration file
17443 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"
17445 ac_config_files="$ac_config_files libglog.pc"
17447 cat >confcache <<\_ACEOF
17448 # This file is a shell script that caches the results of configure
17449 # tests run on this system so they can be shared between configure
17450 # scripts and configure runs, see configure's option --config-cache.
17451 # It is not useful on other systems. If it contains results you don't
17452 # want to keep, you may remove or edit it.
17454 # config.status only pays attention to the cache file if you give it
17455 # the --recheck option to rerun configure.
17457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17459 # following values.
17463 # The following way of writing the cache mishandles newlines in values,
17464 # but we know of no workaround that is simple, portable, and efficient.
17465 # So, we kill variables containing newlines.
17466 # Ultrix sh set writes to stderr and can't be redirected directly,
17467 # and sets the high bit in the cache file unless we assign to the vars.
17469 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17470 eval ac_val=\$$ac_var
17474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17478 _ | IFS | as_nl) ;; #(
17479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17480 *) { eval $ac_var=; unset $ac_var;} ;;
17486 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17487 *${as_nl}ac_space=\ *)
17488 # `set' does not quote correctly, so add quotes: double-quote
17489 # substitution turns \\\\ into \\, and sed turns \\ into \.
17492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17495 # `set' quotes correctly as required by POSIX, so do not add quotes.
17496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17510 if test -w "$cache_file"; then
17511 if test "x$cache_file" != "x/dev/null"; then
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17513 $as_echo "$as_me: updating cache $cache_file" >&6;}
17514 if test ! -f "$cache_file" || test -h "$cache_file"; then
17515 cat confcache >"$cache_file"
17517 case $cache_file in #(
17519 mv -f confcache "$cache_file"$$ &&
17520 mv -f "$cache_file"$$ "$cache_file" ;; #(
17522 mv -f confcache "$cache_file" ;;
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17528 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17534 # Let make expand exec_prefix.
17535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17537 DEFS=-DHAVE_CONFIG_H
17541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17542 # 1. Remove the extension, and $U if already installed.
17543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17544 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17546 # will be set to the directory where LIBOBJS objects are built.
17547 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17548 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17550 LIBOBJS=$ac_libobjs
17552 LTLIBOBJS=$ac_ltlibobjs
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17556 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17557 if test -n "$am_sleep_pid"; then
17558 # Hide warnings about reused PIDs.
17559 wait $am_sleep_pid 2>/dev/null
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17562 $as_echo "done" >&6; }
17563 if test -n "$EXEEXT"; then
17565 am__EXEEXT_FALSE='#'
17567 am__EXEEXT_TRUE='#'
17571 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17572 as_fn_error $? "conditional \"AMDEP\" was never defined.
17573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17575 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17576 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17579 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17580 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17583 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17584 as_fn_error $? "conditional \"GCC\" was never defined.
17585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17587 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17588 as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17591 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
17592 as_fn_error $? "conditional \"X86_64\" was never defined.
17593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17595 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
17596 as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
17597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17599 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
17600 as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
17601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17604 : "${CONFIG_STATUS=./config.status}"
17606 ac_clean_files_save=$ac_clean_files
17607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17609 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17611 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17613 # Generated by $as_me.
17614 # Run this file to recreate the current configuration.
17615 # Compiler output produced by configure, useful for debugging
17616 # configure, is in config.log if it exists.
17619 ac_cs_recheck=false
17622 SHELL=\${CONFIG_SHELL-$SHELL}
17625 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17626 ## -------------------- ##
17627 ## M4sh Initialization. ##
17628 ## -------------------- ##
17630 # Be more Bourne compatible
17631 DUALCASE=1; export DUALCASE # for MKS sh
17632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17635 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17636 # is contrary to our usage. Disable this feature.
17637 alias -g '${1+"$@"}'='"$@"'
17638 setopt NO_GLOB_SUBST
17640 case `(set -o) 2>/dev/null` in #(
17652 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17653 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17656 # Prefer a ksh shell builtin over an external printf program on Solaris,
17657 # but without wasting forks for bash or zsh.
17658 if test -z "$BASH_VERSION$ZSH_VERSION" \
17659 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17660 as_echo='print -r --'
17661 as_echo_n='print -rn --'
17662 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17663 as_echo='printf %s\n'
17664 as_echo_n='printf %s'
17666 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17667 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17668 as_echo_n='/usr/ucb/echo -n'
17670 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17671 as_echo_n_body='eval
17675 expr "X$arg" : "X\\(.*\\)$as_nl";
17676 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17678 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17680 export as_echo_n_body
17681 as_echo_n='sh -c $as_echo_n_body as_echo'
17683 export as_echo_body
17684 as_echo='sh -c $as_echo_body as_echo'
17687 # The user is always right.
17688 if test "${PATH_SEPARATOR+set}" != set; then
17690 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17691 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17698 # We need space, tab and new line, in precisely that order. Quoting is
17699 # there to prevent editors from complaining about space-tab.
17700 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17701 # splitting by setting IFS to empty value.)
17704 # Find who we are. Look in the path if we contain no directory separator.
17707 *[\\/]* ) as_myself=$0 ;;
17708 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17709 for as_dir in $PATH
17712 test -z "$as_dir" && as_dir=.
17713 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17719 # We did not find ourselves, most probably we were run as `sh COMMAND'
17720 # in which case we are not to be found in the path.
17721 if test "x$as_myself" = x; then
17724 if test ! -f "$as_myself"; then
17725 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17729 # Unset variables that we do not need and which cause bugs (e.g. in
17730 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17731 # suppresses any "Segmentation fault" message there. '((' could
17732 # trigger a bug in pdksh 5.2.14.
17733 for as_var in BASH_ENV ENV MAIL MAILPATH
17734 do eval test x\${$as_var+set} = xset \
17735 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17751 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17752 # ----------------------------------------
17753 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17754 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17755 # script with STATUS, using 1 if that was 0.
17758 as_status=$1; test $as_status -eq 0 && as_status=1
17760 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17761 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17763 $as_echo "$as_me: error: $2" >&2
17764 as_fn_exit $as_status
17768 # as_fn_set_status STATUS
17769 # -----------------------
17770 # Set $? to STATUS, without forking.
17771 as_fn_set_status ()
17774 } # as_fn_set_status
17776 # as_fn_exit STATUS
17777 # -----------------
17778 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17782 as_fn_set_status $1
17788 # Portably unset VAR.
17791 { eval $1=; unset $1;}
17793 as_unset=as_fn_unset
17794 # as_fn_append VAR VALUE
17795 # ----------------------
17796 # Append the text in VALUE to the end of the definition contained in VAR. Take
17797 # advantage of any shell optimizations that allow amortized linear growth over
17798 # repeated appends, instead of the typical quadratic growth present in naive
17800 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17801 eval 'as_fn_append ()
17812 # as_fn_arith ARG...
17813 # ------------------
17814 # Perform arithmetic evaluation on the ARGs, and store the result in the
17815 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17816 # must be portable across $(()) and expr.
17817 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17818 eval 'as_fn_arith ()
17825 as_val=`expr "$@" || test $? -eq 1`
17830 if expr a : '\(a\)' >/dev/null 2>&1 &&
17831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17837 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17838 as_basename=basename
17843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17849 as_me=`$as_basename -- "$0" ||
17850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17851 X"$0" : 'X\(//\)$' \| \
17852 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17854 sed '/^.*\/\([^/][^/]*\)\/*$/{
17868 # Avoid depending upon Character Ranges.
17869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17872 as_cr_digits='0123456789'
17873 as_cr_alnum=$as_cr_Letters$as_cr_digits
17875 ECHO_C= ECHO_N= ECHO_T=
17876 case `echo -n x` in #(((((
17878 case `echo 'xy\c'` in
17879 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17881 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17888 rm -f conf$$ conf$$.exe conf$$.file
17889 if test -d conf$$.dir; then
17890 rm -f conf$$.dir/conf$$.file
17893 mkdir conf$$.dir 2>/dev/null
17895 if (echo >conf$$.file) 2>/dev/null; then
17896 if ln -s conf$$.file conf$$ 2>/dev/null; then
17898 # ... but there are two gotchas:
17899 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17900 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17901 # In both cases, we have to default to `cp -pR'.
17902 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17904 elif ln conf$$.file conf$$ 2>/dev/null; then
17912 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17913 rmdir conf$$.dir 2>/dev/null
17918 # Create "$as_dir" as a directory, including parents if necessary.
17923 -*) as_dir=./$as_dir;;
17925 test -d "$as_dir" || eval $as_mkdir_p || {
17929 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17930 *) as_qdir=$as_dir;;
17932 as_dirs="'$as_qdir' $as_dirs"
17933 as_dir=`$as_dirname -- "$as_dir" ||
17934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17935 X"$as_dir" : 'X\(//\)[^/]' \| \
17936 X"$as_dir" : 'X\(//\)$' \| \
17937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17938 $as_echo X"$as_dir" |
17939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17943 /^X\(\/\/\)[^/].*/{
17956 test -d "$as_dir" && break
17958 test -z "$as_dirs" || eval "mkdir $as_dirs"
17959 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17963 if mkdir -p . 2>/dev/null; then
17964 as_mkdir_p='mkdir -p "$as_dir"'
17966 test -d ./-p && rmdir ./-p
17971 # as_fn_executable_p FILE
17972 # -----------------------
17973 # Test if FILE is an executable regular file.
17974 as_fn_executable_p ()
17976 test -f "$1" && test -x "$1"
17977 } # as_fn_executable_p
17978 as_test_x='test -x'
17979 as_executable_p=as_fn_executable_p
17981 # Sed expression to map a string onto a valid CPP name.
17982 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17984 # Sed expression to map a string onto a valid variable name.
17985 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17989 ## ----------------------------------- ##
17990 ## Main body of $CONFIG_STATUS script. ##
17991 ## ----------------------------------- ##
17993 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17996 # Save the log message, to keep $0 and so on meaningful, and to
17997 # report actual input values of CONFIG_FILES etc. instead of their
17998 # values after options handling.
18000 This file was extended by glog $as_me 0.3.4, which was
18001 generated by GNU Autoconf 2.69. Invocation command line was
18003 CONFIG_FILES = $CONFIG_FILES
18004 CONFIG_HEADERS = $CONFIG_HEADERS
18005 CONFIG_LINKS = $CONFIG_LINKS
18006 CONFIG_COMMANDS = $CONFIG_COMMANDS
18009 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18014 case $ac_config_files in *"
18015 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18018 case $ac_config_headers in *"
18019 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18024 # Files that config.status was made for.
18025 config_files="$ac_config_files"
18026 config_headers="$ac_config_headers"
18027 config_commands="$ac_config_commands"
18031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18033 \`$as_me' instantiates files and other configuration actions
18034 from templates according to the current configuration. Unless the files
18035 and actions are specified as TAGs, all are instantiated by default.
18037 Usage: $0 [OPTION]... [TAG]...
18039 -h, --help print this help, then exit
18040 -V, --version print version number and configuration settings, then exit
18041 --config print configuration, then exit
18042 -q, --quiet, --silent
18043 do not print progress messages
18044 -d, --debug don't remove temporary files
18045 --recheck update $as_me by reconfiguring in the same conditions
18046 --file=FILE[:TEMPLATE]
18047 instantiate the configuration file FILE
18048 --header=FILE[:TEMPLATE]
18049 instantiate the configuration header FILE
18051 Configuration files:
18054 Configuration headers:
18057 Configuration commands:
18060 Report bugs to <opensource@google.com>."
18063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18064 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18066 glog config.status 0.3.4
18067 configured by $0, generated by GNU Autoconf 2.69,
18068 with options \\"\$ac_cs_config\\"
18070 Copyright (C) 2012 Free Software Foundation, Inc.
18071 This config.status script is free software; the Free Software Foundation
18072 gives unlimited permission to copy, distribute and modify it."
18079 test -n "\$AWK" || AWK=awk
18082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18083 # The default lists apply if the user does not specify any file.
18089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18106 # Handling of the options.
18107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18110 $as_echo "$ac_cs_version"; exit ;;
18111 --config | --confi | --conf | --con | --co | --c )
18112 $as_echo "$ac_cs_config"; exit ;;
18113 --debug | --debu | --deb | --de | --d | -d )
18115 --file | --fil | --fi | --f )
18118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18119 '') as_fn_error $? "missing file argument" ;;
18121 as_fn_append CONFIG_FILES " '$ac_optarg'"
18122 ac_need_defaults=false;;
18123 --header | --heade | --head | --hea )
18126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18128 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18129 ac_need_defaults=false;;
18131 # Conflict between --help and --header
18132 as_fn_error $? "ambiguous option: \`$1'
18133 Try \`$0 --help' for more information.";;
18134 --help | --hel | -h )
18135 $as_echo "$ac_cs_usage"; exit ;;
18136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18137 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18140 # This is an error.
18141 -*) as_fn_error $? "unrecognized option: \`$1'
18142 Try \`$0 --help' for more information." ;;
18144 *) as_fn_append ac_config_targets " $1"
18145 ac_need_defaults=false ;;
18151 ac_configure_extra_args=
18153 if $ac_cs_silent; then
18155 ac_configure_extra_args="$ac_configure_extra_args --silent"
18159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160 if \$ac_cs_recheck; then
18161 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18163 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18164 CONFIG_SHELL='$SHELL'
18165 export CONFIG_SHELL
18170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18175 ## Running $as_me. ##
18181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18185 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18188 # The HP-UX ksh and POSIX shell print the target directory to stdout
18189 # if CDPATH is set.
18190 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18192 sed_quote_subst='$sed_quote_subst'
18193 double_quote_subst='$double_quote_subst'
18194 delay_variable_subst='$delay_variable_subst'
18195 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18196 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18197 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18198 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18199 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18200 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18201 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18202 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18203 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18204 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18205 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18206 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18207 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18208 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18209 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18210 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18211 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18212 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18213 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18214 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18215 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18216 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18217 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18218 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18219 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18220 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18221 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18222 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18223 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18224 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18225 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18226 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18227 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18228 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18229 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18230 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18231 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18232 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18233 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18234 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18235 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18236 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18237 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18238 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18239 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18240 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18241 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18242 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18243 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18244 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18245 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18246 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18247 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18248 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18249 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18250 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18252 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18253 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18254 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18255 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18256 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18257 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18258 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18259 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18260 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18261 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18262 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18263 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18264 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18265 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18266 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18267 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18268 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18269 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18270 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18271 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18272 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18273 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18274 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18275 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18276 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18277 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18278 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18279 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18280 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18281 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18282 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18283 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18284 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18285 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18286 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18287 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18288 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18289 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18290 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18291 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18292 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18293 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18294 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18295 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18296 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18297 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18298 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18299 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18300 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18301 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18302 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18303 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18304 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18305 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18306 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18307 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18308 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18309 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18310 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18311 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18312 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18313 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18314 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18315 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18316 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18317 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18318 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18319 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18320 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18321 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18322 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18323 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18324 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18325 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18326 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18327 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18328 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18329 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18330 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18331 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18332 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18333 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18334 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18335 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18336 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18337 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18338 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18339 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18340 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18341 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18342 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18343 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18344 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18345 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18346 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18347 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18348 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18349 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18350 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18351 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18352 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18353 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18354 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18355 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18356 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18357 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18358 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18359 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18360 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18361 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18362 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18363 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18364 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18365 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18366 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18367 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18368 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18369 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18370 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18371 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18372 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18373 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18374 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18375 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18376 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18377 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18378 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18381 LTCFLAGS='$LTCFLAGS'
18382 compiler='$compiler_DEFAULT'
18384 # A function that is used when there is no print builtin or printf.
18385 func_fallback_echo ()
18387 eval 'cat <<_LTECHO_EOF
18392 # Quote evaled strings.
18407 deplibs_check_method \
18412 sharedlib_from_linklib_cmd \
18415 archiver_list_spec \
18421 lt_cv_sys_global_symbol_pipe \
18422 lt_cv_sys_global_symbol_to_cdecl \
18423 lt_cv_sys_global_symbol_to_c_name_address \
18424 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18425 nm_file_list_spec \
18426 lt_prog_compiler_no_builtin_flag \
18427 lt_prog_compiler_pic \
18428 lt_prog_compiler_wl \
18429 lt_prog_compiler_static \
18430 lt_cv_prog_compiler_c_o \
18439 export_dynamic_flag_spec \
18440 whole_archive_flag_spec \
18441 compiler_needs_object \
18443 allow_undefined_flag \
18444 no_undefined_flag \
18445 hardcode_libdir_flag_spec \
18446 hardcode_libdir_separator \
18450 variables_saved_for_relink \
18452 library_names_spec \
18454 install_override_mode \
18458 compiler_lib_search_dirs \
18463 compiler_lib_search_path \
18467 lt_prog_compiler_no_builtin_flag_CXX \
18468 lt_prog_compiler_pic_CXX \
18469 lt_prog_compiler_wl_CXX \
18470 lt_prog_compiler_static_CXX \
18471 lt_cv_prog_compiler_c_o_CXX \
18472 export_dynamic_flag_spec_CXX \
18473 whole_archive_flag_spec_CXX \
18474 compiler_needs_object_CXX \
18476 allow_undefined_flag_CXX \
18477 no_undefined_flag_CXX \
18478 hardcode_libdir_flag_spec_CXX \
18479 hardcode_libdir_separator_CXX \
18480 exclude_expsyms_CXX \
18481 include_expsyms_CXX \
18482 file_list_spec_CXX \
18483 compiler_lib_search_dirs_CXX \
18484 predep_objects_CXX \
18485 postdep_objects_CXX \
18488 compiler_lib_search_path_CXX; do
18489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18490 *[\\\\\\\`\\"\\\$]*)
18491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18499 # Double-quote double-evaled strings.
18500 for var in reload_cmds \
18501 old_postinstall_cmds \
18502 old_postuninstall_cmds \
18504 extract_expsyms_cmds \
18505 old_archive_from_new_cmds \
18506 old_archive_from_expsyms_cmds \
18508 archive_expsym_cmds \
18510 module_expsym_cmds \
18511 export_symbols_cmds \
18515 postuninstall_cmds \
18517 sys_lib_search_path_spec \
18518 sys_lib_dlsearch_path_spec \
18520 old_archive_cmds_CXX \
18521 old_archive_from_new_cmds_CXX \
18522 old_archive_from_expsyms_cmds_CXX \
18524 archive_expsym_cmds_CXX \
18526 module_expsym_cmds_CXX \
18527 export_symbols_cmds_CXX \
18529 postlink_cmds_CXX; do
18530 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18531 *[\\\\\\\`\\"\\\$]*)
18532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18540 ac_aux_dir='$ac_aux_dir'
18541 xsi_shell='$xsi_shell'
18542 lt_shell_append='$lt_shell_append'
18544 # See if we are running on zsh, and set the options which allow our
18545 # commands through without removal of \ escapes INIT.
18546 if test -n "\${ZSH_VERSION+set}" ; then
18547 setopt NO_GLOB_SUBST
18553 TIMESTAMP='$TIMESTAMP'
18564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18566 # Handling of arguments.
18567 for ac_config_target in $ac_config_targets
18569 case $ac_config_target in
18570 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18571 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18572 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18574 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
18575 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
18576 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
18577 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
18578 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
18580 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18585 # If the user did not use the arguments to specify the items to instantiate,
18586 # then the envvar interface is used. Set only those that are not.
18587 # We use the long form for the default assignment because of an extremely
18588 # bizarre bug on SunOS 4.1.3.
18589 if $ac_need_defaults; then
18590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18595 # Have a temporary directory for convenience. Make it in the build tree
18596 # simply because there is no reason against having it here, and in addition,
18597 # creating and moving files from /tmp can sometimes cause problems.
18598 # Hook for its removal unless debugging.
18599 # Note that there is a small window in which the directory will not be cleaned:
18600 # after its creation but before its name has been assigned to `$tmp'.
18604 trap 'exit_status=$?
18605 : "${ac_tmp:=$tmp}"
18606 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18608 trap 'as_fn_exit 1' 1 2 13 15
18610 # Create a (secure) tmp directory for tmp files.
18613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18617 tmp=./conf$$-$RANDOM
18618 (umask 077 && mkdir "$tmp")
18619 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18622 # Set up the scripts for CONFIG_FILES section.
18623 # No need to generate them if there are no CONFIG_FILES.
18624 # This happens for instance with `./config.status config.h'.
18625 if test -n "$CONFIG_FILES"; then
18628 ac_cr=`echo X | tr X '\015'`
18629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18630 # But we know of no other shell where ac_cr would be empty at this
18631 # point, so we can use a bashism as a fallback.
18632 if test "x$ac_cr" = x; then
18633 eval ac_cr=\$\'\\r\'
18635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18639 ac_cs_awk_cr=$ac_cr
18642 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18647 echo "cat >conf$$subs.awk <<_ACEOF" &&
18648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18650 } >conf$$subs.sh ||
18651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18652 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18654 for ac_last_try in false false false false false :; do
18655 . ./conf$$subs.sh ||
18656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18659 if test $ac_delim_n = $ac_delim_num; then
18661 elif $ac_last_try; then
18662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18667 rm -f conf$$subs.sh
18669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18674 s/^/S["/; s/!.*/"]=/
18684 s/\(.\{148\}\)..*/\1/
18686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18698 s/\(.\{148\}\)..*/\1/
18700 s/["\\]/\\&/g; s/^/"/; s/$/"/
18704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18709 ' <conf$$subs.awk | sed '
18714 ' >>$CONFIG_STATUS || ac_write_fail=1
18715 rm -f conf$$subs.awk
18716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18718 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18719 for (key in S) S_is_set[key] = 1
18725 nfields = split(line, field, "@")
18727 len = length(field[1])
18728 for (i = 2; i < nfields; i++) {
18730 keylen = length(key)
18731 if (S_is_set[key]) {
18733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18734 len += length(value) + length(field[++i])
18745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18750 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18754 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18755 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18756 # trailing colons and then remove the whole line if VPATH becomes empty
18757 # (actually we leave an empty line to preserve line numbers).
18758 if test "x$srcdir" = x.; then
18759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18778 fi # test -n "$CONFIG_FILES"
18780 # Set up the scripts for CONFIG_HEADERS section.
18781 # No need to generate them if there are no CONFIG_HEADERS.
18782 # This happens for instance with `./config.status Makefile'.
18783 if test -n "$CONFIG_HEADERS"; then
18784 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18788 # Transform confdefs.h into an awk script `defines.awk', embedded as
18789 # here-document in config.status, that substitutes the proper values into
18790 # config.h.in to produce config.h.
18792 # Create a delimiter string that does not exist in confdefs.h, to ease
18793 # handling of long lines.
18795 for ac_last_try in false false :; do
18796 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18797 if test -z "$ac_tt"; then
18799 elif $ac_last_try; then
18800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18806 # For the awk script, D is an array of macro values keyed by name,
18807 # likewise P contains macro parameters if any. Preserve backslash
18808 # newline sequences.
18810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18812 s/.\{148\}/&'"$ac_delim"'/g
18815 s/^[ ]*#[ ]*define[ ][ ]*/ /
18822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18829 D["\1"]=" \3\\\\\\n"\\/p
18831 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18836 s/.\{148\}/&'"$ac_delim"'/g
18841 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18844 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18846 ' <confdefs.h | sed '
18847 s/'"$ac_delim"'/"\\\
18848 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18851 for (key in D) D_is_set[key] = 1
18854 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18856 split(line, arg, " ")
18857 if (arg[1] == "#") {
18861 defundef = substr(arg[1], 2)
18864 split(mac1, mac2, "(") #)
18866 prefix = substr(line, 1, index(line, defundef) - 1)
18867 if (D_is_set[macro]) {
18868 # Preserve the white space surrounding the "#".
18869 print prefix "define", macro P[macro] D[macro]
18872 # Replace #undef with comments. This is necessary, for example,
18873 # in the case of _POSIX_SOURCE, which is predefined and required
18874 # on some systems where configure will not decide to define it.
18875 if (defundef == "undef") {
18876 print "/*", prefix defundef, macro, "*/"
18884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18885 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18886 fi # test -n "$CONFIG_HEADERS"
18889 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18894 :[FHLC]) ac_mode=$ac_tag; continue;;
18896 case $ac_mode$ac_tag in
18898 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18899 :[FH]-) ac_tag=-:-;;
18900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18917 -) ac_f="$ac_tmp/stdin";;
18918 *) # Look for the file first in the build tree, then in the source tree
18919 # (if the path is not absolute). The absolute path cannot be DOS-style,
18920 # because $ac_f cannot contain `:'.
18924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18926 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18929 as_fn_append ac_file_inputs " '$ac_f'"
18932 # Let's still pretend it is `configure' which instantiates (i.e., don't
18933 # use $as_me), people would be surprised to read:
18934 # /* config.h. Generated by config.status. */
18935 configure_input='Generated from '`
18936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18938 if test x"$ac_file" != x-; then
18939 configure_input="$ac_file. $configure_input"
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18941 $as_echo "$as_me: creating $ac_file" >&6;}
18943 # Neutralize special characters interpreted by sed in replacement strings.
18944 case $configure_input in #(
18945 *\&* | *\|* | *\\* )
18946 ac_sed_conf_input=`$as_echo "$configure_input" |
18947 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18948 *) ac_sed_conf_input=$configure_input;;
18952 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18958 ac_dir=`$as_dirname -- "$ac_file" ||
18959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18960 X"$ac_file" : 'X\(//\)[^/]' \| \
18961 X"$ac_file" : 'X\(//\)$' \| \
18962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18963 $as_echo X"$ac_file" |
18964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18968 /^X\(\/\/\)[^/].*/{
18981 as_dir="$ac_dir"; as_fn_mkdir_p
18985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18988 # A ".." for each directory in $ac_dir_suffix.
18989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18990 case $ac_top_builddir_sub in
18991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18995 ac_abs_top_builddir=$ac_pwd
18996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18997 # for backward compatibility:
18998 ac_top_builddir=$ac_top_build_prefix
19001 .) # We are building in place.
19003 ac_top_srcdir=$ac_top_builddir_sub
19004 ac_abs_top_srcdir=$ac_pwd ;;
19005 [\\/]* | ?:[\\/]* ) # Absolute name.
19006 ac_srcdir=$srcdir$ac_dir_suffix;
19007 ac_top_srcdir=$srcdir
19008 ac_abs_top_srcdir=$srcdir ;;
19009 *) # Relative name.
19010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19011 ac_top_srcdir=$ac_top_build_prefix$srcdir
19012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19027 ac_MKDIR_P=$MKDIR_P
19029 [\\/$]* | ?:[\\/]* ) ;;
19030 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19035 # If the template does not know about datarootdir, expand it.
19036 # FIXME: This hack should be removed a few years after 2.60.
19037 ac_datarootdir_hack=; ac_datarootdir_seen=
19048 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19049 *datarootdir*) ac_datarootdir_seen=yes;;
19050 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19052 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19055 ac_datarootdir_hack='
19056 s&@datadir@&$datadir&g
19057 s&@docdir@&$docdir&g
19058 s&@infodir@&$infodir&g
19059 s&@localedir@&$localedir&g
19060 s&@mandir@&$mandir&g
19061 s&\\\${datarootdir}&$datarootdir&g' ;;
19065 # Neutralize VPATH when `$srcdir' = `.'.
19066 # Shell code in configure.ac might set extrasub.
19067 # FIXME: do we really want to maintain this feature?
19068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19069 ac_sed_extra="$ac_vpsub
19072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19075 s|@configure_input@|$ac_sed_conf_input|;t t
19076 s&@top_builddir@&$ac_top_builddir_sub&;t t
19077 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19078 s&@srcdir@&$ac_srcdir&;t t
19079 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19080 s&@top_srcdir@&$ac_top_srcdir&;t t
19081 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19082 s&@builddir@&$ac_builddir&;t t
19083 s&@abs_builddir@&$ac_abs_builddir&;t t
19084 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19085 s&@INSTALL@&$ac_INSTALL&;t t
19086 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19087 $ac_datarootdir_hack
19089 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19090 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19095 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19097 which seems to be undefined. Please make sure it is defined" >&5
19098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19099 which seems to be undefined. Please make sure it is defined" >&2;}
19101 rm -f "$ac_tmp/stdin"
19103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19112 if test x"$ac_file" != x-; then
19114 $as_echo "/* $configure_input */" \
19115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19116 } >"$ac_tmp/config.h" \
19117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19123 mv "$ac_tmp/config.h" "$ac_file" \
19124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19127 $as_echo "/* $configure_input */" \
19128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19129 || as_fn_error $? "could not create -" "$LINENO" 5
19131 # Compute "$ac_file"'s index in $config_headers.
19134 for _am_header in $config_headers :; do
19135 case $_am_header in
19136 $_am_arg | $_am_arg:* )
19139 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19142 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19143 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19144 X"$_am_arg" : 'X\(//\)[^/]' \| \
19145 X"$_am_arg" : 'X\(//\)$' \| \
19146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19147 $as_echo X"$_am_arg" |
19148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19152 /^X\(\/\/\)[^/].*/{
19164 s/.*/./; q'`/stamp-h$_am_stamp_count
19167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19168 $as_echo "$as_me: executing $ac_file commands" >&6;}
19173 case $ac_file$ac_mode in
19174 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19175 # Older Autoconf quotes --file arguments for eval, but not when files
19176 # are listed without --file. Let's play safe and only enable the eval
19177 # if we detect the quoting.
19178 case $CONFIG_FILES in
19179 *\'*) eval set x "$CONFIG_FILES" ;;
19180 *) set x $CONFIG_FILES ;;
19185 # Strip MF so we end up with the name of the file.
19186 mf=`echo "$mf" | sed -e 's/:.*$//'`
19187 # Check whether this is an Automake generated Makefile or not.
19188 # We used to match only the files named 'Makefile.in', but
19189 # some people rename them; so instead we look at the file content.
19190 # Grep'ing the first line is not enough: some people post-process
19191 # each Makefile.in and add a new line on top of each file to say so.
19192 # Grep'ing the whole file is not good either: AIX grep has a line
19193 # limit of 2048, but all sed's we know have understand at least 4000.
19194 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19195 dirpart=`$as_dirname -- "$mf" ||
19196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19197 X"$mf" : 'X\(//\)[^/]' \| \
19198 X"$mf" : 'X\(//\)$' \| \
19199 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19205 /^X\(\/\/\)[^/].*/{
19221 # Extract the definition of DEPDIR, am__include, and am__quote
19222 # from the Makefile without running 'make'.
19223 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19224 test -z "$DEPDIR" && continue
19225 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19226 test -z "$am__include" && continue
19227 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19228 # Find all dependency output files, they are included files with
19229 # $(DEPDIR) in their names. We invoke sed twice because it is the
19230 # simplest approach to changing $(DEPDIR) to its actual value in the
19232 for file in `sed -n "
19233 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19234 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19235 # Make sure the directory exists.
19236 test -f "$dirpart/$file" && continue
19237 fdir=`$as_dirname -- "$file" ||
19238 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19239 X"$file" : 'X\(//\)[^/]' \| \
19240 X"$file" : 'X\(//\)$' \| \
19241 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19242 $as_echo X"$file" |
19243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19247 /^X\(\/\/\)[^/].*/{
19260 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19261 # echo "creating $dirpart/$file"
19262 echo '# dummy' > "$dirpart/$file"
19269 # See if we are running on zsh, and set the options which allow our
19270 # commands through without removal of \ escapes.
19271 if test -n "${ZSH_VERSION+set}" ; then
19272 setopt NO_GLOB_SUBST
19275 cfgfile="${ofile}T"
19276 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19279 cat <<_LT_EOF >> "$cfgfile"
19282 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19283 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19285 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19287 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19288 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19290 # Written by Gordon Matzigkeit, 1996
19292 # This file is part of GNU Libtool.
19294 # GNU Libtool is free software; you can redistribute it and/or
19295 # modify it under the terms of the GNU General Public License as
19296 # published by the Free Software Foundation; either version 2 of
19297 # the License, or (at your option) any later version.
19299 # As a special exception to the GNU General Public License,
19300 # if you distribute this file as part of a program or library that
19301 # is built using GNU Libtool, you may include this file under the
19302 # same distribution terms that you use for the rest of that program.
19304 # GNU Libtool is distributed in the hope that it will be useful,
19305 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19306 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19307 # GNU General Public License for more details.
19309 # You should have received a copy of the GNU General Public License
19310 # along with GNU Libtool; see the file COPYING. If not, a copy
19311 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19312 # obtained by writing to the Free Software Foundation, Inc.,
19313 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19316 # The names of the tagged configurations supported by this script.
19317 available_tags="CXX "
19319 # ### BEGIN LIBTOOL CONFIG
19321 # Which release of libtool.m4 was used?
19322 macro_version=$macro_version
19323 macro_revision=$macro_revision
19325 # Whether or not to build shared libraries.
19326 build_libtool_libs=$enable_shared
19328 # Whether or not to build static libraries.
19329 build_old_libs=$enable_static
19331 # What type of objects to build.
19334 # Whether or not to optimize for fast installation.
19335 fast_install=$enable_fast_install
19337 # Shell to use when invoking shell scripts.
19340 # An echo program that protects backslashes.
19343 # The PATH separator for the build system.
19344 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19347 host_alias=$host_alias
19351 # The build system.
19352 build_alias=$build_alias
19356 # A sed program that does not truncate output.
19359 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19360 Xsed="\$SED -e 1s/^X//"
19362 # A grep program that handles long lines.
19368 # A literal string matcher.
19371 # A BSD- or MS-compatible name lister.
19374 # Whether we need soft or hard links.
19377 # What is the maximum length of a command?
19378 max_cmd_len=$max_cmd_len
19380 # Object file suffix (normally "o").
19383 # Executable file suffix (normally "").
19386 # whether the shell understands "unset".
19389 # turn spaces into newlines.
19392 # turn newlines into spaces.
19395 # convert \$build file names to \$host format.
19396 to_host_file_cmd=$lt_cv_to_host_file_cmd
19398 # convert \$build files to toolchain format.
19399 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19401 # An object symbol dumper.
19402 OBJDUMP=$lt_OBJDUMP
19404 # Method to check whether dependent libraries are shared objects.
19405 deplibs_check_method=$lt_deplibs_check_method
19407 # Command to use when deplibs_check_method = "file_magic".
19408 file_magic_cmd=$lt_file_magic_cmd
19410 # How to find potential files when deplibs_check_method = "file_magic".
19411 file_magic_glob=$lt_file_magic_glob
19413 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19414 want_nocaseglob=$lt_want_nocaseglob
19416 # DLL creation program.
19417 DLLTOOL=$lt_DLLTOOL
19419 # Command to associate shared and link libraries.
19420 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19425 # Flags to create an archive.
19426 AR_FLAGS=$lt_AR_FLAGS
19428 # How to feed a file listing to the archiver.
19429 archiver_list_spec=$lt_archiver_list_spec
19431 # A symbol stripping program.
19434 # Commands used to install an old-style archive.
19436 old_postinstall_cmds=$lt_old_postinstall_cmds
19437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19439 # Whether to use a lock for old archive extraction.
19440 lock_old_archive_extraction=$lock_old_archive_extraction
19445 # LTCC compiler flags.
19446 LTCFLAGS=$lt_CFLAGS
19448 # Take the output of nm and produce a listing of raw symbols and C names.
19449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19451 # Transform the output of nm in a proper C declaration.
19452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19454 # Transform the output of nm in a C name address pair.
19455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19457 # Transform the output of nm in a C name address pair when lib prefix is needed.
19458 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19460 # Specify filename containing input files for \$NM.
19461 nm_file_list_spec=$lt_nm_file_list_spec
19463 # The root where to search for dependent libraries,and in which our libraries should be installed.
19464 lt_sysroot=$lt_sysroot
19466 # The name of the directory that contains temporary libtool files.
19469 # Used to examine libraries when file_magic_cmd begins with "file".
19470 MAGIC_CMD=$MAGIC_CMD
19472 # Must we lock files when doing compilation?
19473 need_locks=$lt_need_locks
19476 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19478 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19479 DSYMUTIL=$lt_DSYMUTIL
19481 # Tool to change global to local symbols on Mac OS X.
19484 # Tool to manipulate fat objects and archives on Mac OS X.
19487 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19490 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19491 OTOOL64=$lt_OTOOL64
19493 # Old archive suffix (normally "a").
19496 # Shared library suffix (normally ".so").
19497 shrext_cmds=$lt_shrext_cmds
19499 # The commands to extract the exported symbol list from a shared archive.
19500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19502 # Variables whose values should be saved in libtool wrapper scripts and
19503 # restored at link time.
19504 variables_saved_for_relink=$lt_variables_saved_for_relink
19506 # Do we need the "lib" prefix for modules?
19507 need_lib_prefix=$need_lib_prefix
19509 # Do we need a version for libraries?
19510 need_version=$need_version
19512 # Library versioning type.
19513 version_type=$version_type
19515 # Shared library runtime path variable.
19516 runpath_var=$runpath_var
19518 # Shared library path variable.
19519 shlibpath_var=$shlibpath_var
19521 # Is shlibpath searched before the hard-coded library search path?
19522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19524 # Format of library name prefix.
19525 libname_spec=$lt_libname_spec
19527 # List of archive names. First name is the real one, the rest are links.
19528 # The last name is the one that the linker finds with -lNAME
19529 library_names_spec=$lt_library_names_spec
19531 # The coded name of the library, if different from the real name.
19532 soname_spec=$lt_soname_spec
19534 # Permission mode override for installation of shared libraries.
19535 install_override_mode=$lt_install_override_mode
19537 # Command to use after installation of a shared archive.
19538 postinstall_cmds=$lt_postinstall_cmds
19540 # Command to use after uninstallation of a shared archive.
19541 postuninstall_cmds=$lt_postuninstall_cmds
19543 # Commands used to finish a libtool library installation in a directory.
19544 finish_cmds=$lt_finish_cmds
19546 # As "finish_cmds", except a single script fragment to be evaled but
19548 finish_eval=$lt_finish_eval
19550 # Whether we should hardcode library paths into libraries.
19551 hardcode_into_libs=$hardcode_into_libs
19553 # Compile-time system search path for libraries.
19554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19556 # Run-time system search path for libraries.
19557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19559 # Whether dlopen is supported.
19560 dlopen_support=$enable_dlopen
19562 # Whether dlopen of programs is supported.
19563 dlopen_self=$enable_dlopen_self
19565 # Whether dlopen of statically linked programs is supported.
19566 dlopen_self_static=$enable_dlopen_self_static
19568 # Commands to strip libraries.
19569 old_striplib=$lt_old_striplib
19570 striplib=$lt_striplib
19573 # The linker used to build libraries.
19576 # How to create reloadable object files.
19577 reload_flag=$lt_reload_flag
19578 reload_cmds=$lt_reload_cmds
19580 # Commands used to build an old-style archive.
19581 old_archive_cmds=$lt_old_archive_cmds
19583 # A language specific compiler.
19586 # Is the compiler the GNU compiler?
19589 # Compiler flag to turn off builtin functions.
19590 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19592 # Additional compiler flags for building library objects.
19593 pic_flag=$lt_lt_prog_compiler_pic
19595 # How to pass a linker flag through the compiler.
19596 wl=$lt_lt_prog_compiler_wl
19598 # Compiler flag to prevent dynamic linking.
19599 link_static_flag=$lt_lt_prog_compiler_static
19601 # Does compiler simultaneously support -c and -o options?
19602 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19604 # Whether or not to add -lc for building shared libraries.
19605 build_libtool_need_lc=$archive_cmds_need_lc
19607 # Whether or not to disallow shared libs when runtime libs are static.
19608 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19610 # Compiler flag to allow reflexive dlopens.
19611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19613 # Compiler flag to generate shared objects directly from archives.
19614 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19616 # Whether the compiler copes with passing no objects directly.
19617 compiler_needs_object=$lt_compiler_needs_object
19619 # Create an old-style archive from a shared archive.
19620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19622 # Create a temporary old-style archive to link instead of a shared archive.
19623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19625 # Commands used to build a shared archive.
19626 archive_cmds=$lt_archive_cmds
19627 archive_expsym_cmds=$lt_archive_expsym_cmds
19629 # Commands used to build a loadable module if different from building
19630 # a shared archive.
19631 module_cmds=$lt_module_cmds
19632 module_expsym_cmds=$lt_module_expsym_cmds
19634 # Whether we are building with GNU ld or not.
19635 with_gnu_ld=$lt_with_gnu_ld
19637 # Flag that allows shared libraries with undefined symbols to be built.
19638 allow_undefined_flag=$lt_allow_undefined_flag
19640 # Flag that enforces no undefined symbols.
19641 no_undefined_flag=$lt_no_undefined_flag
19643 # Flag to hardcode \$libdir into a binary during linking.
19644 # This must work even if \$libdir does not exist
19645 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19647 # Whether we need a single "-rpath" flag with a separated argument.
19648 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19650 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19651 # DIR into the resulting binary.
19652 hardcode_direct=$hardcode_direct
19654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19655 # DIR into the resulting binary and the resulting library dependency is
19656 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19657 # library is relocated.
19658 hardcode_direct_absolute=$hardcode_direct_absolute
19660 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19661 # into the resulting binary.
19662 hardcode_minus_L=$hardcode_minus_L
19664 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19665 # into the resulting binary.
19666 hardcode_shlibpath_var=$hardcode_shlibpath_var
19668 # Set to "yes" if building a shared library automatically hardcodes DIR
19669 # into the library and all subsequent libraries and executables linked
19671 hardcode_automatic=$hardcode_automatic
19673 # Set to yes if linker adds runtime paths of dependent libraries
19674 # to runtime path list.
19675 inherit_rpath=$inherit_rpath
19677 # Whether libtool must link a program against all its dependency libraries.
19678 link_all_deplibs=$link_all_deplibs
19680 # Set to "yes" if exported symbols are required.
19681 always_export_symbols=$always_export_symbols
19683 # The commands to list exported symbols.
19684 export_symbols_cmds=$lt_export_symbols_cmds
19686 # Symbols that should not be listed in the preloaded symbols.
19687 exclude_expsyms=$lt_exclude_expsyms
19689 # Symbols that must always be exported.
19690 include_expsyms=$lt_include_expsyms
19692 # Commands necessary for linking programs (against libraries) with templates.
19693 prelink_cmds=$lt_prelink_cmds
19695 # Commands necessary for finishing linking programs.
19696 postlink_cmds=$lt_postlink_cmds
19698 # Specify filename containing input files.
19699 file_list_spec=$lt_file_list_spec
19701 # How to hardcode a shared library path into an executable.
19702 hardcode_action=$hardcode_action
19704 # The directories searched by this compiler when creating a shared library.
19705 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19707 # Dependencies to place before and after the objects being linked to
19708 # create a shared library.
19709 predep_objects=$lt_predep_objects
19710 postdep_objects=$lt_postdep_objects
19711 predeps=$lt_predeps
19712 postdeps=$lt_postdeps
19714 # The library search path used internally by the compiler when linking
19715 # a shared library.
19716 compiler_lib_search_path=$lt_compiler_lib_search_path
19718 # ### END LIBTOOL CONFIG
19724 cat <<\_LT_EOF >> "$cfgfile"
19725 # AIX sometimes has problems with the GCC collect2 program. For some
19726 # reason, if we set the COLLECT_NAMES environment variable, the problems
19727 # vanish in a puff of smoke.
19728 if test "X${COLLECT_NAMES+set}" != Xset; then
19730 export COLLECT_NAMES
19737 ltmain="$ac_aux_dir/ltmain.sh"
19740 # We use sed instead of cat because bash on DJGPP gets confused if
19741 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19742 # text mode, it properly converts lines to CR/LF. This bash problem
19743 # is reportedly fixed, but why not run on old versions too?
19744 sed '$q' "$ltmain" >> "$cfgfile" \
19745 || (rm -f "$cfgfile"; exit 1)
19747 if test x"$xsi_shell" = xyes; then
19748 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19752 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19753 \ * ) func_dirname_result="${3}" ;;\
19755 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19756 && mv -f "$cfgfile.tmp" "$cfgfile" \
19757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19758 test 0 -eq $? || _lt_function_replace_fail=:
19761 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19764 \ func_basename_result="${1##*/}"\
19765 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19766 && mv -f "$cfgfile.tmp" "$cfgfile" \
19767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19768 test 0 -eq $? || _lt_function_replace_fail=:
19771 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19772 func_dirname_and_basename ()\
19775 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19776 \ * ) func_dirname_result="${3}" ;;\
19778 \ func_basename_result="${1##*/}"\
19779 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19780 && mv -f "$cfgfile.tmp" "$cfgfile" \
19781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19782 test 0 -eq $? || _lt_function_replace_fail=:
19785 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19788 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19789 \ # positional parameters, so assign one to ordinary parameter first.\
19790 \ func_stripname_result=${3}\
19791 \ func_stripname_result=${func_stripname_result#"${1}"}\
19792 \ func_stripname_result=${func_stripname_result%"${2}"}\
19793 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19794 && mv -f "$cfgfile.tmp" "$cfgfile" \
19795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19796 test 0 -eq $? || _lt_function_replace_fail=:
19799 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19800 func_split_long_opt ()\
19802 \ func_split_long_opt_name=${1%%=*}\
19803 \ func_split_long_opt_arg=${1#*=}\
19804 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19805 && mv -f "$cfgfile.tmp" "$cfgfile" \
19806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19807 test 0 -eq $? || _lt_function_replace_fail=:
19810 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19811 func_split_short_opt ()\
19813 \ func_split_short_opt_arg=${1#??}\
19814 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19815 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19816 && mv -f "$cfgfile.tmp" "$cfgfile" \
19817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19818 test 0 -eq $? || _lt_function_replace_fail=:
19821 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19825 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19826 \ *) func_lo2o_result=${1} ;;\
19828 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19829 && mv -f "$cfgfile.tmp" "$cfgfile" \
19830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19831 test 0 -eq $? || _lt_function_replace_fail=:
19834 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19837 func_xform_result=${1%.*}.lo\
19838 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19839 && mv -f "$cfgfile.tmp" "$cfgfile" \
19840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19841 test 0 -eq $? || _lt_function_replace_fail=:
19844 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19847 func_arith_result=$(( $* ))\
19848 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19849 && mv -f "$cfgfile.tmp" "$cfgfile" \
19850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19851 test 0 -eq $? || _lt_function_replace_fail=:
19854 sed -e '/^func_len ()$/,/^} # func_len /c\
19857 func_len_result=${#1}\
19858 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19859 && mv -f "$cfgfile.tmp" "$cfgfile" \
19860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19861 test 0 -eq $? || _lt_function_replace_fail=:
19865 if test x"$lt_shell_append" = xyes; then
19866 sed -e '/^func_append ()$/,/^} # func_append /c\
19869 eval "${1}+=\\${2}"\
19870 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19871 && mv -f "$cfgfile.tmp" "$cfgfile" \
19872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19873 test 0 -eq $? || _lt_function_replace_fail=:
19876 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19877 func_append_quoted ()\
19879 \ func_quote_for_eval "${2}"\
19880 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19881 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19882 && mv -f "$cfgfile.tmp" "$cfgfile" \
19883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19884 test 0 -eq $? || _lt_function_replace_fail=:
19887 # Save a `func_append' function call where possible by direct use of '+='
19888 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19889 && mv -f "$cfgfile.tmp" "$cfgfile" \
19890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19891 test 0 -eq $? || _lt_function_replace_fail=:
19893 # Save a `func_append' function call even when '+=' is not available
19894 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19895 && mv -f "$cfgfile.tmp" "$cfgfile" \
19896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19897 test 0 -eq $? || _lt_function_replace_fail=:
19900 if test x"$_lt_function_replace_fail" = x":"; then
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19902 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19906 mv -f "$cfgfile" "$ofile" ||
19907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19911 cat <<_LT_EOF >> "$ofile"
19913 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19915 # The linker used to build libraries.
19918 # How to create reloadable object files.
19919 reload_flag=$lt_reload_flag_CXX
19920 reload_cmds=$lt_reload_cmds_CXX
19922 # Commands used to build an old-style archive.
19923 old_archive_cmds=$lt_old_archive_cmds_CXX
19925 # A language specific compiler.
19926 CC=$lt_compiler_CXX
19928 # Is the compiler the GNU compiler?
19931 # Compiler flag to turn off builtin functions.
19932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19934 # Additional compiler flags for building library objects.
19935 pic_flag=$lt_lt_prog_compiler_pic_CXX
19937 # How to pass a linker flag through the compiler.
19938 wl=$lt_lt_prog_compiler_wl_CXX
19940 # Compiler flag to prevent dynamic linking.
19941 link_static_flag=$lt_lt_prog_compiler_static_CXX
19943 # Does compiler simultaneously support -c and -o options?
19944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19946 # Whether or not to add -lc for building shared libraries.
19947 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19949 # Whether or not to disallow shared libs when runtime libs are static.
19950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19952 # Compiler flag to allow reflexive dlopens.
19953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19955 # Compiler flag to generate shared objects directly from archives.
19956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19958 # Whether the compiler copes with passing no objects directly.
19959 compiler_needs_object=$lt_compiler_needs_object_CXX
19961 # Create an old-style archive from a shared archive.
19962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19964 # Create a temporary old-style archive to link instead of a shared archive.
19965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19967 # Commands used to build a shared archive.
19968 archive_cmds=$lt_archive_cmds_CXX
19969 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19971 # Commands used to build a loadable module if different from building
19972 # a shared archive.
19973 module_cmds=$lt_module_cmds_CXX
19974 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19976 # Whether we are building with GNU ld or not.
19977 with_gnu_ld=$lt_with_gnu_ld_CXX
19979 # Flag that allows shared libraries with undefined symbols to be built.
19980 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19982 # Flag that enforces no undefined symbols.
19983 no_undefined_flag=$lt_no_undefined_flag_CXX
19985 # Flag to hardcode \$libdir into a binary during linking.
19986 # This must work even if \$libdir does not exist
19987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19989 # Whether we need a single "-rpath" flag with a separated argument.
19990 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19992 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19993 # DIR into the resulting binary.
19994 hardcode_direct=$hardcode_direct_CXX
19996 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19997 # DIR into the resulting binary and the resulting library dependency is
19998 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19999 # library is relocated.
20000 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20002 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20003 # into the resulting binary.
20004 hardcode_minus_L=$hardcode_minus_L_CXX
20006 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20007 # into the resulting binary.
20008 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20010 # Set to "yes" if building a shared library automatically hardcodes DIR
20011 # into the library and all subsequent libraries and executables linked
20013 hardcode_automatic=$hardcode_automatic_CXX
20015 # Set to yes if linker adds runtime paths of dependent libraries
20016 # to runtime path list.
20017 inherit_rpath=$inherit_rpath_CXX
20019 # Whether libtool must link a program against all its dependency libraries.
20020 link_all_deplibs=$link_all_deplibs_CXX
20022 # Set to "yes" if exported symbols are required.
20023 always_export_symbols=$always_export_symbols_CXX
20025 # The commands to list exported symbols.
20026 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20028 # Symbols that should not be listed in the preloaded symbols.
20029 exclude_expsyms=$lt_exclude_expsyms_CXX
20031 # Symbols that must always be exported.
20032 include_expsyms=$lt_include_expsyms_CXX
20034 # Commands necessary for linking programs (against libraries) with templates.
20035 prelink_cmds=$lt_prelink_cmds_CXX
20037 # Commands necessary for finishing linking programs.
20038 postlink_cmds=$lt_postlink_cmds_CXX
20040 # Specify filename containing input files.
20041 file_list_spec=$lt_file_list_spec_CXX
20043 # How to hardcode a shared library path into an executable.
20044 hardcode_action=$hardcode_action_CXX
20046 # The directories searched by this compiler when creating a shared library.
20047 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20049 # Dependencies to place before and after the objects being linked to
20050 # create a shared library.
20051 predep_objects=$lt_predep_objects_CXX
20052 postdep_objects=$lt_postdep_objects_CXX
20053 predeps=$lt_predeps_CXX
20054 postdeps=$lt_postdeps_CXX
20056 # The library search path used internally by the compiler when linking
20057 # a shared library.
20058 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20060 # ### END LIBTOOL TAG CONFIG: CXX
20071 ac_clean_files=$ac_clean_files_save
20073 test $ac_write_fail = 0 ||
20074 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20077 # configure is writing to config.log, and then calls config.status.
20078 # config.status does its own redirection, appending to config.log.
20079 # Unfortunately, on DOS this fails, as config.log is still kept open
20080 # by configure, so config.status won't be able to write to it; its
20081 # output is simply discarded. So we exec the FD to /dev/null,
20082 # effectively closing config.log, so it can be properly (re)opened and
20083 # appended to by config.status. When coming back to configure, we
20084 # need to make the FD available again.
20085 if test "$no_create" != yes; then
20087 ac_config_status_args=
20088 test "$silent" = yes &&
20089 ac_config_status_args="$ac_config_status_args --quiet"
20091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20094 # would make configure fail if this is the last instruction.
20095 $ac_cs_success || as_fn_exit 1
20097 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20099 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}