2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Google C++ Testing Framework 1.6.0.
5 # Report bugs to <googletestframework@googlegroups.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: googletestframework@googlegroups.com about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a 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.
591 PACKAGE_NAME='Google C++ Testing Framework'
592 PACKAGE_TARNAME='gtest'
593 PACKAGE_VERSION='1.6.0'
594 PACKAGE_STRING='Google C++ Testing Framework 1.6.0'
595 PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
598 ac_unique_file="./LICENSE"
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
714 INSTALL_STRIP_PROGRAM
756 program_transform_name
769 enable_option_checking
771 enable_dependency_tracking
781 ac_precious_vars='build_alias
796 # Initialize some variables set by options.
798 ac_init_version=false
799 ac_unrecognized_opts=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
810 program_transform_name=s,x,x,
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 # Accept the important Cygnus configure options, so we can diagnose typos.
863 case $ac_dashdash$ac_option in
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
885 cache_file=config.cache ;;
887 -datadir | --datadir | --datadi | --datad)
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
913 eval enable_$ac_useropt=no ;;
915 -docdir | --docdir | --docdi | --doc | --do)
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=\$ac_optarg ;;
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
954 -help | --help | --hel | --he | -h)
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 htmldir=$ac_optarg ;;
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
984 -libdir | --libdir | --libdi | --libd)
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
996 -localedir | --localedir | --localedi | --localed | --locale)
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1075 -psdir | --psdir | --psdi | --psd | --ps)
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1103 -site=* | --site=* | --sit=*)
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval with_$ac_useropt=no ;;
1162 # Obsolete; use --with-x.
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1230 # Be sure to have absolute directory names.
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures Google C++ Testing Framework 1.6.0 to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/gtest]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of Google C++ Testing Framework 1.6.0:";;
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-silent-rules less verbose build output (undo: "make V=1")
1413 --disable-silent-rules verbose build output (undo: "make V=0")
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot=DIR Search for dependent libraries within DIR
1431 (or the compiler's sysroot if not specified).
1432 --with-pthreads use pthreads (default is yes)
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1445 CXXCPP C++ preprocessor
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to <googletestframework@googlegroups.com>.
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1480 .) # We are building in place.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1513 Google C++ Testing Framework configure 1.6.0
1514 generated by GNU Autoconf 2.69
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1563 } # ac_fn_c_try_compile
1565 # ac_fn_cxx_try_compile LINENO
1566 # ----------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_cxx_try_compile ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext
1572 if { { ac_try="$ac_compile"
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_cxx_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext; then :
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1601 } # ac_fn_cxx_try_compile
1603 # ac_fn_c_try_link LINENO
1604 # -----------------------
1605 # Try to link conftest.$ac_ext, and return whether this succeeded.
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext conftest$ac_exeext
1610 if { { ac_try="$ac_link"
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_link") 2>conftest.err
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest$ac_exeext && {
1629 test "$cross_compiling" = yes ||
1630 test -x conftest$ac_exeext
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641 # interfere with the next link command; also delete a directory that is
1642 # left behind by Apple's compiler. We do this before executing the actions.
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_link
1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists and can be compiled using the include files in
1652 # INCLUDES, setting the cache variable VAR accordingly.
1653 ac_fn_c_check_header_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659 $as_echo_n "(cached) " >&6
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1666 if ac_fn_c_try_compile "$LINENO"; then :
1671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 } # ac_fn_c_check_header_compile
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } > conftest.i && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1717 # ac_fn_c_try_run LINENO
1718 # ----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1720 # that executables *can* be run.
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_link"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>&5
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1735 { { case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_try") 2>&5
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; }; }; then :
1747 $as_echo "$as_me: program exited with status $ac_status" >&5
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1751 ac_retval=$ac_status
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1759 # ac_fn_c_check_func LINENO FUNC VAR
1760 # ----------------------------------
1761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1762 ac_fn_c_check_func ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1774 #define $2 innocuous_$2
1776 /* System header to define __stub macros and hopefully few prototypes,
1777 which can conflict with char $2 (); below.
1778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1779 <limits.h> exists even on freestanding compilers. */
1782 # include <limits.h>
1784 # include <assert.h>
1789 /* Override any GCC internal prototype to avoid an error.
1790 Use char because int might match the return type of a GCC
1791 builtin and then its argument prototype would still apply. */
1796 /* The GNU C library defines this for functions which it implements
1797 to always fail with ENOSYS. Some functions are actually named
1798 something starting with __ and the normal name is an alias. */
1799 #if defined __stub_$2 || defined __stub___$2
1811 if ac_fn_c_try_link "$LINENO"; then :
1816 rm -f core conftest.err conftest.$ac_objext \
1817 conftest$ac_exeext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 } # ac_fn_c_check_func
1826 # ac_fn_cxx_try_cpp LINENO
1827 # ------------------------
1828 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_cxx_try_cpp ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if { { ac_try="$ac_cpp conftest.$ac_ext"
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } > conftest.i && {
1848 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_cxx_try_cpp
1863 # ac_fn_cxx_try_link LINENO
1864 # -------------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_link ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext conftest$ac_exeext
1870 if { { ac_try="$ac_link"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_cxx_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
1890 test -x conftest$ac_exeext
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_cxx_try_link
1908 cat >config.log <<_ACEOF
1909 This file contains any messages produced by compilers while
1910 running configure, to aid debugging if configure makes a mistake.
1912 It was created by Google C++ Testing Framework $as_me 1.6.0, which was
1913 generated by GNU Autoconf 2.69. Invocation command line was
1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 test -z "$as_dir" && as_dir=.
1949 $as_echo "PATH: $as_dir"
1965 # Keep a trace of the command line.
1966 # Strip out --no-create and --no-recursion so they do not pile up.
1967 # Strip out --silent because we don't want to record it for future runs.
1968 # Also quote any args containing shell meta-characters.
1969 # Make two passes to allow for proper duplicate-argument suppression.
1973 ac_must_keep_next=false
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002 -* ) ac_must_keep_next=true ;;
2005 as_fn_append ac_configure_args " '$ac_arg'"
2010 { ac_configure_args0=; unset ac_configure_args0;}
2011 { ac_configure_args1=; unset ac_configure_args1;}
2013 # When interrupted or exit'd, cleanup temporary files, and complete
2014 # config.log. We remove comments because anyway the quotes in there
2015 # would cause problems or look ugly.
2016 # WARNING: Use '\'' to represent an apostrophe within the trap.
2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018 trap 'exit_status=$?
2019 # Save into config.log some information that might help in debugging.
2023 $as_echo "## ---------------- ##
2024 ## Cache variables. ##
2025 ## ---------------- ##"
2027 # The following way of writing the cache mishandles newlines in values,
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059 $as_echo "## ----------------- ##
2060 ## Output variables. ##
2061 ## ----------------- ##"
2063 for ac_var in $ac_subst_vars
2065 eval ac_val=\$$ac_var
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 $as_echo "$ac_var='\''$ac_val'\''"
2073 if test -n "$ac_subst_files"; then
2074 $as_echo "## ------------------- ##
2075 ## File substitutions. ##
2076 ## ------------------- ##"
2078 for ac_var in $ac_subst_files
2080 eval ac_val=\$$ac_var
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 $as_echo "$ac_var='\''$ac_val'\''"
2089 if test -s confdefs.h; then
2090 $as_echo "## ----------- ##
2097 test "$ac_signal" != 0 &&
2098 $as_echo "$as_me: caught signal $ac_signal"
2099 $as_echo "$as_me: exit $exit_status"
2101 rm -f core *.core core.conftest.* &&
2102 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2105 for ac_signal in 1 2 13 15; do
2106 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2111 rm -f -r conftest* confdefs.h
2113 $as_echo "/* confdefs.h */" > confdefs.h
2115 # Predefined preprocessor variables.
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "$PACKAGE_NAME"
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_STRING "$PACKAGE_STRING"
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_URL "$PACKAGE_URL"
2142 # Let the site file select an alternate cache file if it wants to.
2143 # Prefer an explicitly selected file to automatically selected ones.
2146 if test -n "$CONFIG_SITE"; then
2147 # We do not want a PATH search for config.site.
2148 case $CONFIG_SITE in #((
2149 -*) ac_site_file1=./$CONFIG_SITE;;
2150 */*) ac_site_file1=$CONFIG_SITE;;
2151 *) ac_site_file1=./$CONFIG_SITE;;
2153 elif test "x$prefix" != xNONE; then
2154 ac_site_file1=$prefix/share/config.site
2155 ac_site_file2=$prefix/etc/config.site
2157 ac_site_file1=$ac_default_prefix/share/config.site
2158 ac_site_file2=$ac_default_prefix/etc/config.site
2160 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162 test "x$ac_site_file" = xNONE && continue
2163 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2166 sed 's/^/| /' "$ac_site_file" >&5
2168 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 as_fn_error $? "failed to load site script $ac_site_file
2171 See \`config.log' for more details" "$LINENO" 5; }
2175 if test -r "$cache_file"; then
2176 # Some versions of bash will fail to source /dev/null (special files
2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180 $as_echo "$as_me: loading cache $cache_file" >&6;}
2182 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2183 *) . "./$cache_file";;
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188 $as_echo "$as_me: creating cache $cache_file" >&6;}
2192 # Check that the precious variables saved in the cache have kept the same
2194 ac_cache_corrupted=false
2195 for ac_var in $ac_precious_vars; do
2196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197 eval ac_new_set=\$ac_env_${ac_var}_set
2198 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199 eval ac_new_val=\$ac_env_${ac_var}_value
2200 case $ac_old_set,$ac_new_set in
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204 ac_cache_corrupted=: ;;
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208 ac_cache_corrupted=: ;;
2211 if test "x$ac_old_val" != "x$ac_new_val"; then
2212 # differences in whitespace do not lead to failure.
2213 ac_old_val_w=`echo x $ac_old_val`
2214 ac_new_val_w=`echo x $ac_new_val`
2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218 ac_cache_corrupted=:
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222 eval $ac_var=\$ac_old_val
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2230 # Pass precious variables to config.status.
2231 if test "$ac_new_set" = set; then
2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 *) ac_arg=$ac_var=$ac_new_val ;;
2236 case " $ac_configure_args " in
2237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2242 if $ac_cache_corrupted; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249 ## -------------------- ##
2250 ## Main body of script. ##
2251 ## -------------------- ##
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261 # Provide various options to initialize the Autoconf and configure processes.
2266 for ac_dir in build-aux "$srcdir"/build-aux; do
2267 if test -f "$ac_dir/install-sh"; then
2269 ac_install_sh="$ac_aux_dir/install-sh -c"
2271 elif test -f "$ac_dir/install.sh"; then
2273 ac_install_sh="$ac_aux_dir/install.sh -c"
2275 elif test -f "$ac_dir/shtool"; then
2277 ac_install_sh="$ac_aux_dir/shtool install -c"
2281 if test -z "$ac_aux_dir"; then
2282 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2285 # These three variables are undocumented and unsupported,
2286 # and are intended to be withdrawn in a future Autoconf release.
2287 # They can cause serious problems if a builder's source tree is in a directory
2288 # whose full name contains unusual characters.
2289 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2290 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2291 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2294 ac_config_headers="$ac_config_headers build-aux/config.h"
2296 ac_config_files="$ac_config_files Makefile"
2298 ac_config_files="$ac_config_files scripts/gtest-config"
2301 # Initialize Automake with various options. We require at least v1.9, prevent
2302 # pedantic complaints about package files, and enable various distribution
2304 am__api_version='1.14'
2306 # Find a good install program. We prefer a C program (faster),
2307 # so one script is as good as another. But avoid the broken or
2308 # incompatible versions:
2309 # SysV /etc/install, /usr/sbin/install
2310 # SunOS /usr/etc/install
2311 # IRIX /sbin/install
2313 # AmigaOS /C/install, which installs bootblocks on floppy discs
2314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317 # OS/2's system install, which has a completely different semantic
2318 # ./install, which can be erroneously created by make from ./install.sh.
2319 # Reject install programs that cannot install multiple files.
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2321 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2322 if test -z "$INSTALL"; then
2323 if ${ac_cv_path_install+:} false; then :
2324 $as_echo_n "(cached) " >&6
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 # Account for people who put trailing slashes in PATH elements.
2332 case $as_dir/ in #((
2333 ./ | .// | /[cC]/* | \
2334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2338 # OSF1 and SCO ODT 3.0 have their own names for install.
2339 # Don't use installbsd from OSF since it installs stuff as root
2341 for ac_prog in ginstall scoinst install; do
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2344 if test $ac_prog = install &&
2345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # AIX install. It has an incompatible calling convention.
2348 elif test $ac_prog = install &&
2349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350 # program-specific install script used by HP pwplus--don't use.
2353 rm -rf conftest.one conftest.two conftest.dir
2354 echo one > conftest.one
2355 echo two > conftest.two
2357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358 test -s conftest.one && test -s conftest.two &&
2359 test -s conftest.dir/conftest.one &&
2360 test -s conftest.dir/conftest.two
2362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2375 rm -rf conftest.one conftest.two conftest.dir
2378 if test "${ac_cv_path_install+set}" = set; then
2379 INSTALL=$ac_cv_path_install
2381 # As a last resort, use the slow shell script. Don't cache a
2382 # value for INSTALL within a source directory, because that will
2383 # break other packages using the cache if that directory is
2384 # removed, or if the value is a relative name.
2385 INSTALL=$ac_install_sh
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2389 $as_echo "$INSTALL" >&6; }
2391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392 # It thinks the first close brace ends the variable substitution.
2393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2400 $as_echo_n "checking whether build environment is sane... " >&6; }
2401 # Reject unsafe characters in $srcdir or the absolute working directory
2402 # name. Accept space and tab only in the latter.
2406 *[\\\"\#\$\&\'\`$am_lf]*)
2407 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2410 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2411 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2414 # Do 'set' in a subshell so we don't clobber the current shell's
2415 # arguments. Must try -L first in case configure is actually a
2416 # symlink; some systems play weird games with the mod time of symlinks
2417 # (eg FreeBSD returns the mod time of the symlink's containing
2421 for am_try in 1 2; do
2422 echo "timestamp, slept: $am_has_slept" > conftest.file
2423 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2424 if test "$*" = "X"; then
2426 set X `ls -t "$srcdir/configure" conftest.file`
2428 if test "$*" != "X $srcdir/configure conftest.file" \
2429 && test "$*" != "X conftest.file $srcdir/configure"; then
2431 # If neither matched, then we have a broken ls. This can happen
2432 # if, for instance, CONFIG_SHELL is bash and it inherits a
2433 # broken ls alias from the environment. This has actually
2434 # happened. Such a system could not be considered "sane".
2435 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2436 alias in your environment" "$LINENO" 5
2438 if test "$2" = conftest.file || test $am_try -eq 2; then
2445 test "$2" = conftest.file
2451 as_fn_error $? "newly created file is older than distributed files!
2452 Check your system clock" "$LINENO" 5
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455 $as_echo "yes" >&6; }
2456 # If we didn't sleep, we still need to ensure time stamps of config.status and
2457 # generated files are strictly newer.
2459 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2466 test "$program_prefix" != NONE &&
2467 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2468 # Use a double $ so make ignores it.
2469 test "$program_suffix" != NONE &&
2470 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2471 # Double any \ or $.
2472 # By default was `s,x,x', remove it if useless.
2473 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2474 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2476 # expand $ac_aux_dir to an absolute path
2477 am_aux_dir=`cd $ac_aux_dir && pwd`
2479 if test x"${MISSING+set}" != xset; then
2482 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2484 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2487 # Use eval to expand $SHELL
2488 if eval "$MISSING --is-lightweight"; then
2489 am_missing_run="$MISSING "
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2493 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2496 if test x"${install_sh}" != xset; then
2499 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2501 install_sh="\${SHELL} $am_aux_dir/install-sh"
2505 # Installed binaries are usually stripped using 'strip' when the user
2506 # run "make install-strip". However 'strip' might not be the right
2507 # tool to use in cross-compilation environments, therefore Automake
2508 # will honor the 'STRIP' environment variable to overrule this program.
2509 if test "$cross_compiling" != no; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}strip; ac_word=$2
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if ${ac_cv_prog_STRIP+:} false; then :
2516 $as_echo_n "(cached) " >&6
2518 if test -n "$STRIP"; then
2519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 STRIP=$ac_cv_prog_STRIP
2539 if test -n "$STRIP"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2541 $as_echo "$STRIP" >&6; }
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 $as_echo "no" >&6; }
2549 if test -z "$ac_cv_prog_STRIP"; then
2551 # Extract the first word of "strip", so it can be a program name with args.
2552 set dummy strip; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2556 $as_echo_n "(cached) " >&6
2558 if test -n "$ac_ct_STRIP"; then
2559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_ac_ct_STRIP="strip"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579 if test -n "$ac_ct_STRIP"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2581 $as_echo "$ac_ct_STRIP" >&6; }
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2587 if test "x$ac_ct_STRIP" = x; then
2590 case $cross_compiling:$ac_tool_warned in
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594 ac_tool_warned=yes ;;
2599 STRIP="$ac_cv_prog_STRIP"
2603 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2606 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2607 if test -z "$MKDIR_P"; then
2608 if ${ac_cv_path_mkdir+:} false; then :
2609 $as_echo_n "(cached) " >&6
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in mkdir gmkdir; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2619 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2620 'mkdir (GNU coreutils) '* | \
2621 'mkdir (coreutils) '* | \
2622 'mkdir (fileutils) '4.1*)
2623 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2633 test -d ./--version && rmdir ./--version
2634 if test "${ac_cv_path_mkdir+set}" = set; then
2635 MKDIR_P="$ac_cv_path_mkdir -p"
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for MKDIR_P within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 MKDIR_P="$ac_install_sh -d"
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2645 $as_echo "$MKDIR_P" >&6; }
2647 for ac_prog in gawk mawk nawk awk
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_AWK+:} false; then :
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2686 test -n "$AWK" && break
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2692 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694 $as_echo_n "(cached) " >&6
2696 cat >conftest.make <<\_ACEOF
2699 @echo '@@@%%%=$(MAKE)=@@@%%%'
2701 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2704 eval ac_cv_prog_make_${ac_make}_set=yes;;
2706 eval ac_cv_prog_make_${ac_make}_set=no;;
2710 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 SET_MAKE="MAKE=${MAKE-make}"
2720 rm -rf .tst 2>/dev/null
2721 mkdir .tst 2>/dev/null
2722 if test -d .tst; then
2727 rmdir .tst 2>/dev/null
2729 # Check whether --enable-silent-rules was given.
2730 if test "${enable_silent_rules+set}" = set; then :
2731 enableval=$enable_silent_rules;
2734 case $enable_silent_rules in # (((
2735 yes) AM_DEFAULT_VERBOSITY=0;;
2736 no) AM_DEFAULT_VERBOSITY=1;;
2737 *) AM_DEFAULT_VERBOSITY=1;;
2739 am_make=${MAKE-make}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2741 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2742 if ${am_cv_make_support_nested_variables+:} false; then :
2743 $as_echo_n "(cached) " >&6
2745 if $as_echo 'TRUE=$(BAR$(V))
2751 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2752 am_cv_make_support_nested_variables=yes
2754 am_cv_make_support_nested_variables=no
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2758 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2759 if test $am_cv_make_support_nested_variables = yes; then
2761 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2763 AM_V=$AM_DEFAULT_VERBOSITY
2764 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2768 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2769 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2770 # is not polluted with repeated "-I."
2771 am__isrc=' -I$(srcdir)'
2772 # test to see if srcdir already configured
2773 if test -f $srcdir/config.status; then
2774 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2778 # test whether we have cygpath
2779 if test -z "$CYGPATH_W"; then
2780 if (cygpath --version) >/dev/null 2>/dev/null; then
2781 CYGPATH_W='cygpath -w'
2788 # Define the identity of the package.
2793 cat >>confdefs.h <<_ACEOF
2794 #define PACKAGE "$PACKAGE"
2798 cat >>confdefs.h <<_ACEOF
2799 #define VERSION "$VERSION"
2802 # Some tools Automake needs.
2804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2818 # For better backward compatibility. To be removed once Automake 1.9.x
2819 # dies out for good. For more background, see:
2820 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2821 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2822 mkdir_p='$(MKDIR_P)'
2824 # We need awk for the "check" target. The system "awk" is bad on
2826 # Always define AMTAR for backward compatibility. Yes, it's still used
2827 # in the wild :-( We should find a proper way to deprecate it ...
2831 # We'll loop over all known methods to create a tar archive until one works.
2832 _am_tools='gnutar pax cpio none'
2834 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2841 # POSIX will say in a future version that running "rm -f" with no argument
2842 # is OK; and we want to be able to make that assumption in our Makefile
2843 # recipes. So use an aggressive probe to check that the usage we want is
2844 # actually supported "in the wild" to an acceptable degree.
2845 # See automake bug#10828.
2846 # To make any issue more visible, cause the running configure to be aborted
2847 # by default if the 'rm' program in use doesn't match our expectations; the
2848 # user can still override this though.
2849 if rm -f && rm -fr && rm -rf; then : OK; else
2853 Your 'rm' program seems unable to run without file operands specified
2854 on the command line, even when the '-f' option is present. This is contrary
2855 to the behaviour of most rm programs out there, and not conforming with
2856 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2858 Please tell bug-automake@gnu.org about your system, including the value
2859 of your $PATH and any error possibly output before this message. This
2860 can help us improve future automake versions.
2863 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2864 echo 'Configuration will proceed anyway, since you have set the' >&2
2865 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2869 Aborting the configuration process, to ensure you take notice of the issue.
2871 You can download and install GNU coreutils to get an 'rm' implementation
2872 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2874 If you want to complete the configuration process using your problematic
2875 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2876 to "yes", and re-run configure.
2879 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2883 # Check for programs used in building Google Test.
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895 $as_echo_n "(cached) " >&6
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 if test -n "$CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2928 if test -z "$ac_cv_prog_CC"; then
2930 # Extract the first word of "gcc", so it can be a program name with args.
2931 set dummy gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="gcc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 $as_echo "$ac_ct_CC" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2966 if test "x$ac_ct_CC" = x; then
2969 case $cross_compiling:$ac_tool_warned in
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}cc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="${ac_tool_prefix}cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3022 if test -z "$CC"; then
3023 # Extract the first word of "cc", so it can be a program name with args.
3024 set dummy cc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042 ac_prog_rejected=yes
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test $ac_prog_rejected = yes; then
3054 # We found a bogon in the path, so make sure we never use it.
3055 set dummy $ac_cv_prog_CC
3057 if test $# != 0; then
3058 # We chose a different compiler from the bogus one.
3059 # However, it has the same basename, so the bogon will be chosen
3060 # first if we set CC to just the basename; use the full file name.
3062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$CC"; then
3079 if test -n "$ac_tool_prefix"; then
3080 for ac_prog in cl.exe
3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3119 test -n "$CC" && break
3122 if test -z "$CC"; then
3124 for ac_prog in cl.exe
3126 # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 set dummy $ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_CC="$ac_prog"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3163 test -n "$ac_ct_CC" && break
3166 if test "x$ac_ct_CC" = x; then
3169 case $cross_compiling:$ac_tool_warned in
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details" "$LINENO" 5; }
3187 # Provide some information about the compiler.
3188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3191 for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201 if test -s conftest.err; then
3203 ... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
3207 rm -f conftest.er1 conftest.err
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3223 ac_clean_files_save=$ac_clean_files
3224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3225 # Try to create an executable without -o first, disregard a.out.
3226 # It will help us diagnose broken compilers, and finding out an intuition
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229 $as_echo_n "checking whether the C compiler works... " >&6; }
3230 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232 # The possible output files:
3233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3236 for ac_file in $ac_files
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 if { { ac_try="$ac_link_default"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link_default") 2>&5
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
3256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3261 for ac_file in $ac_files ''
3263 test -f "$ac_file" || continue
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3268 # We found the default executable, but exeext='' is most
3272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an `-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3291 if test -z "$ac_file"; then :
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error 77 "C compiler cannot create executables
3300 See \`config.log' for more details" "$LINENO" 5; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308 $as_echo "$ac_file" >&6; }
3309 ac_exeext=$ac_cv_exeext
3311 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314 $as_echo_n "checking for suffix of executables... " >&6; }
3315 if { { ac_try="$ac_link"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3328 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details" "$LINENO" 5; }
3345 rm -f conftest conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3358 FILE *f = fopen ("conftest.out", "w");
3359 return ferror (f) || fclose (f) != 0;
3365 ac_clean_files="$ac_clean_files conftest.out"
3366 # Check that the compiler produces executables we can run. If not, either
3367 # the compiler is broken, or we cross compile.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369 $as_echo_n "checking whether we are cross compiling... " >&6; }
3370 if test "$cross_compiling" != yes; then
3371 { { ac_try="$ac_link"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link") 2>&5
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 if { ac_try='./conftest$ac_cv_exeext'
3383 { { case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_try") 2>&5
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; }; then
3395 if test "$cross_compiling" = maybe; then
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details" "$LINENO" 5; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407 $as_echo "$cross_compiling" >&6; }
3409 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3412 $as_echo_n "checking for suffix of object files... " >&6; }
3413 if ${ac_cv_objext+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 rm -f conftest.o conftest.obj
3428 if { { ac_try="$ac_compile"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_compile") 2>&5
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 for ac_file in conftest.o conftest.obj conftest.*; do
3440 test -f "$ac_file" || continue;
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details" "$LINENO" 5; }
3456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 $as_echo "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464 if ${ac_cv_c_compiler_gnu+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3481 if ac_fn_c_try_compile "$LINENO"; then :
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492 if test $ac_compiler_gnu = yes; then
3497 ac_test_CFLAGS=${CFLAGS+set}
3498 ac_save_CFLAGS=$CFLAGS
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3501 if ${ac_cv_prog_cc_g+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 ac_save_c_werror_flag=$ac_c_werror_flag
3505 ac_c_werror_flag=yes
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 if ac_fn_c_try_compile "$LINENO"; then :
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3561 $as_echo "$ac_cv_prog_cc_g" >&6; }
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3571 if test "$GCC" = yes; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3579 if ${ac_cv_prog_cc_c89+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 ac_cv_prog_cc_c89=no
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3603 s = g (p, va_arg (v,int));
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
3611 as 'x'. The following induces an error, until -std is added to get
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
3614 that's true only with -std. */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 CC="$ac_save_CC $ac_arg"
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_c89=$ac_arg
3643 rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
3646 rm -f conftest.$ac_ext
3651 case "x$ac_cv_prog_cc_c89" in
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3659 CC="$CC $ac_cv_prog_cc_c89"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3679 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3680 if ${am_cv_prog_cc_c_o+:} false; then :
3681 $as_echo_n "(cached) " >&6
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3694 # Make sure it works both with $CC and with simple cc.
3695 # Following AC_PROG_CC_C_O, we do the test twice because some
3696 # compilers refuse to overwrite an existing .o file with -o,
3697 # though they will create one.
3698 am_cv_prog_cc_c_o=yes
3700 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3701 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } \
3705 && test -f conftest2.$ac_objext; then
3708 am_cv_prog_cc_c_o=no
3712 rm -f core conftest*
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3716 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3717 if test "$am_cv_prog_cc_c_o" != yes; then
3718 # Losing compiler, so override with the script.
3719 # FIXME: It is wrong to rewrite CC.
3720 # But if we don't then we get into trouble of one sort or another.
3721 # A longer-term fix would be to have automake use am__CC in this case,
3722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3723 CC="$am_aux_dir/compile $CC"
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 DEPDIR="${am__leading_dot}deps"
3733 ac_config_commands="$ac_config_commands depfiles"
3736 am_make=${MAKE-make}
3737 cat > confinc << 'END'
3739 @echo this is the am__doit target
3742 # If we don't find an include directive, just comment out the code.
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3744 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3748 # First try GNU make style include.
3749 echo "include confinc" > confmf
3750 # Ignore all kinds of additional output from 'make'.
3751 case `$am_make -s -f confmf 2> /dev/null` in #(
3752 *the\ am__doit\ target*)
3758 # Now try BSD make style include.
3759 if test "$am__include" = "#"; then
3760 echo '.include "confinc"' > confmf
3761 case `$am_make -s -f confmf 2> /dev/null` in #(
3762 *the\ am__doit\ target*)
3763 am__include=.include
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3772 $as_echo "$_am_result" >&6; }
3773 rm -f confinc confmf
3775 # Check whether --enable-dependency-tracking was given.
3776 if test "${enable_dependency_tracking+set}" = set; then :
3777 enableval=$enable_dependency_tracking;
3780 if test "x$enable_dependency_tracking" != xno; then
3781 am_depcomp="$ac_aux_dir/depcomp"
3785 if test "x$enable_dependency_tracking" != xno; then
3795 depcc="$CC" am_compiler_list=
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3798 $as_echo_n "checking dependency style of $depcc... " >&6; }
3799 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3803 # We make a subdir and do the tests there. Otherwise we can end up
3804 # making bogus files that we don't know about and never remove. For
3805 # instance it was reported that on HP-UX the gcc test will end up
3806 # making a dummy file named 'D' -- because '-MD' means "put the output
3810 # Copy depcomp to subdir because otherwise we won't find it if we're
3811 # using a relative directory.
3812 cp "$am_depcomp" conftest.dir
3814 # We will build objects and dependencies in a subdirectory because
3815 # it helps to detect inapplicable dependency modes. For instance
3816 # both Tru64's cc and ICC support -MD to output dependencies as a
3817 # side effect of compilation, but ICC will put the dependencies in
3818 # the current directory while Tru64 will put them in the object
3822 am_cv_CC_dependencies_compiler_type=none
3823 if test "$am_compiler_list" = ""; then
3824 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3827 case " $depcc " in #(
3828 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3831 for depmode in $am_compiler_list; do
3832 # Setup a source with many dependencies, because some compilers
3833 # like to wrap large dependency lists on column 80 (with \), and
3834 # we should not choose a depcomp mode which is confused by this.
3836 # We need to recreate these files for each test, as the compiler may
3837 # overwrite some of them when testing with obscure command lines.
3838 # This happens at least with the AIX C compiler.
3840 for i in 1 2 3 4 5 6; do
3841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3842 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3843 # Solaris 10 /bin/sh.
3844 echo '/* dummy */' > sub/conftst$i.h
3846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3848 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3849 # mode. It turns out that the SunPro C++ compiler does not properly
3850 # handle '-M -o', and we need to detect this. Also, some Intel
3851 # versions had trouble with output in subdirs.
3852 am__obj=sub/conftest.${OBJEXT-o}
3853 am__minus_obj="-o $am__obj"
3856 # This depmode causes a compiler race in universal mode.
3857 test "$am__universal" = false || continue
3860 # After this tag, mechanisms are not by side-effect, so they'll
3861 # only be used when explicitly requested.
3862 if test "x$enable_dependency_tracking" = xyes; then
3868 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3869 # This compiler won't grok '-c -o', but also, the minuso test has
3870 # not run yet. These depmodes are late enough in the game, and
3871 # so weak that their functioning should not be impacted.
3872 am__obj=conftest.${OBJEXT-o}
3877 if depmode=$depmode \
3878 source=sub/conftest.c object=$am__obj \
3879 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3880 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3881 >/dev/null 2>conftest.err &&
3882 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3883 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3884 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3885 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3886 # icc doesn't choke on unknown options, it will just issue warnings
3887 # or remarks (even with -Werror). So we grep stderr for any message
3888 # that says an option was ignored or not supported.
3889 # When given -MP, icc 7.0 and 7.1 complain thusly:
3890 # icc: Command line warning: ignoring option '-M'; no argument required
3891 # The diagnosis changed in icc 8.0:
3892 # icc: Command line remark: option '-MP' not supported
3893 if (grep 'ignoring option' conftest.err ||
3894 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3895 am_cv_CC_dependencies_compiler_type=$depmode
3904 am_cv_CC_dependencies_compiler_type=none
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3909 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3913 test "x$enable_dependency_tracking" != xno \
3914 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3916 am__fastdepCC_FALSE='#'
3918 am__fastdepCC_TRUE='#'
3919 am__fastdepCC_FALSE=
3924 ac_cpp='$CXXCPP $CPPFLAGS'
3925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3928 if test -z "$CXX"; then
3929 if test -n "$CCC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CXX+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$CXX"; then
3943 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$CXX"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3965 $as_echo "$CXX" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3972 test -n "$CXX" && break
3975 if test -z "$CXX"; then
3977 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$ac_ct_CXX"; then
3987 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_ac_ct_CXX="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4007 if test -n "$ac_ct_CXX"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4009 $as_echo "$ac_ct_CXX" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$ac_ct_CXX" && break
4019 if test "x$ac_ct_CXX" = x; then
4022 case $cross_compiling:$ac_tool_warned in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4034 # Provide some information about the compiler.
4035 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4038 for ac_option in --version -v -V -qversion; do
4039 { { ac_try="$ac_compiler $ac_option >&5"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 $as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4048 if test -s conftest.err; then
4050 ... rest of stderr output deleted ...
4051 10q' conftest.err >conftest.er1
4052 cat conftest.er1 >&5
4054 rm -f conftest.er1 conftest.err
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4060 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4061 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4078 if ac_fn_cxx_try_compile "$LINENO"; then :
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4088 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4089 if test $ac_compiler_gnu = yes; then
4094 ac_test_CXXFLAGS=${CXXFLAGS+set}
4095 ac_save_CXXFLAGS=$CXXFLAGS
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4097 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4098 if ${ac_cv_prog_cxx_g+:} false; then :
4099 $as_echo_n "(cached) " >&6
4101 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4102 ac_cxx_werror_flag=yes
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4116 if ac_fn_cxx_try_compile "$LINENO"; then :
4117 ac_cv_prog_cxx_g=yes
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4131 if ac_fn_cxx_try_compile "$LINENO"; then :
4134 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4147 if ac_fn_cxx_try_compile "$LINENO"; then :
4148 ac_cv_prog_cxx_g=yes
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4158 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4159 if test "$ac_test_CXXFLAGS" = set; then
4160 CXXFLAGS=$ac_save_CXXFLAGS
4161 elif test $ac_cv_prog_cxx_g = yes; then
4162 if test "$GXX" = yes; then
4168 if test "$GXX" = yes; then
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 depcc="$CXX" am_compiler_list=
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183 $as_echo_n "checking dependency style of $depcc... " >&6; }
4184 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188 # We make a subdir and do the tests there. Otherwise we can end up
4189 # making bogus files that we don't know about and never remove. For
4190 # instance it was reported that on HP-UX the gcc test will end up
4191 # making a dummy file named 'D' -- because '-MD' means "put the output
4195 # Copy depcomp to subdir because otherwise we won't find it if we're
4196 # using a relative directory.
4197 cp "$am_depcomp" conftest.dir
4199 # We will build objects and dependencies in a subdirectory because
4200 # it helps to detect inapplicable dependency modes. For instance
4201 # both Tru64's cc and ICC support -MD to output dependencies as a
4202 # side effect of compilation, but ICC will put the dependencies in
4203 # the current directory while Tru64 will put them in the object
4207 am_cv_CXX_dependencies_compiler_type=none
4208 if test "$am_compiler_list" = ""; then
4209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4212 case " $depcc " in #(
4213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4216 for depmode in $am_compiler_list; do
4217 # Setup a source with many dependencies, because some compilers
4218 # like to wrap large dependency lists on column 80 (with \), and
4219 # we should not choose a depcomp mode which is confused by this.
4221 # We need to recreate these files for each test, as the compiler may
4222 # overwrite some of them when testing with obscure command lines.
4223 # This happens at least with the AIX C compiler.
4225 for i in 1 2 3 4 5 6; do
4226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4227 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4228 # Solaris 10 /bin/sh.
4229 echo '/* dummy */' > sub/conftst$i.h
4231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4233 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4234 # mode. It turns out that the SunPro C++ compiler does not properly
4235 # handle '-M -o', and we need to detect this. Also, some Intel
4236 # versions had trouble with output in subdirs.
4237 am__obj=sub/conftest.${OBJEXT-o}
4238 am__minus_obj="-o $am__obj"
4241 # This depmode causes a compiler race in universal mode.
4242 test "$am__universal" = false || continue
4245 # After this tag, mechanisms are not by side-effect, so they'll
4246 # only be used when explicitly requested.
4247 if test "x$enable_dependency_tracking" = xyes; then
4253 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4254 # This compiler won't grok '-c -o', but also, the minuso test has
4255 # not run yet. These depmodes are late enough in the game, and
4256 # so weak that their functioning should not be impacted.
4257 am__obj=conftest.${OBJEXT-o}
4262 if depmode=$depmode \
4263 source=sub/conftest.c object=$am__obj \
4264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4265 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4266 >/dev/null 2>conftest.err &&
4267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4269 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271 # icc doesn't choke on unknown options, it will just issue warnings
4272 # or remarks (even with -Werror). So we grep stderr for any message
4273 # that says an option was ignored or not supported.
4274 # When given -MP, icc 7.0 and 7.1 complain thusly:
4275 # icc: Command line warning: ignoring option '-M'; no argument required
4276 # The diagnosis changed in icc 8.0:
4277 # icc: Command line remark: option '-MP' not supported
4278 if (grep 'ignoring option' conftest.err ||
4279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280 am_cv_CXX_dependencies_compiler_type=$depmode
4289 am_cv_CXX_dependencies_compiler_type=none
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4294 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4295 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4298 test "x$enable_dependency_tracking" != xno \
4299 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4300 am__fastdepCXX_TRUE=
4301 am__fastdepCXX_FALSE='#'
4303 am__fastdepCXX_TRUE='#'
4304 am__fastdepCXX_FALSE=
4309 ac_cpp='$CXXCPP $CPPFLAGS'
4310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4322 macro_version='2.4.2'
4323 macro_revision='1.3337'
4337 ltmain="$ac_aux_dir/ltmain.sh"
4339 # Make sure we can run config.sub.
4340 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4341 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4344 $as_echo_n "checking build system type... " >&6; }
4345 if ${ac_cv_build+:} false; then :
4346 $as_echo_n "(cached) " >&6
4348 ac_build_alias=$build_alias
4349 test "x$ac_build_alias" = x &&
4350 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4351 test "x$ac_build_alias" = x &&
4352 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4358 $as_echo "$ac_cv_build" >&6; }
4359 case $ac_cv_build in
4361 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4364 ac_save_IFS=$IFS; IFS='-'
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4378 $as_echo_n "checking host system type... " >&6; }
4379 if ${ac_cv_host+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 if test "x$host_alias" = x; then
4383 ac_cv_host=$ac_cv_build
4385 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4391 $as_echo "$ac_cv_host" >&6; }
4394 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4397 ac_save_IFS=$IFS; IFS='-'
4403 # Remember, the first character of IFS is used to create $*,
4404 # except with old shells:
4407 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4410 # Backslashify metacharacters that are still active within
4411 # double-quoted strings.
4412 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4414 # Same as above, but do not quote variable references.
4415 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4417 # Sed substitution to delay expansion of an escaped shell variable in a
4418 # double_quote_subst'ed string.
4419 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4421 # Sed substitution to delay expansion of an escaped single quote.
4422 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4424 # Sed substitution to avoid accidental globbing in evaled expressions
4425 no_glob_subst='s/\*/\\\*/g'
4427 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4428 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4429 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4432 $as_echo_n "checking how to print strings... " >&6; }
4433 # Test print first, because it will be a builtin if present.
4434 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4435 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4437 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4440 # Use this function as a fallback that always works.
4441 func_fallback_echo ()
4443 eval 'cat <<_LTECHO_EOF
4447 ECHO='func_fallback_echo'
4450 # func_echo_all arg...
4451 # Invoke $ECHO with all args, space-separated.
4458 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4459 $as_echo "printf" >&6; } ;;
4460 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4461 $as_echo "print -r" >&6; } ;;
4462 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4463 $as_echo "cat" >&6; } ;;
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4480 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4481 if ${ac_cv_path_SED+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4485 for ac_i in 1 2 3 4 5 6 7; do
4486 ac_script="$ac_script$as_nl$ac_script"
4488 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4489 { ac_script=; unset ac_script;}
4490 if test -z "$SED"; then
4491 ac_path_SED_found=false
4492 # Loop through the user's path and test for each of PROGNAME-LIST
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir=.
4498 for ac_prog in sed gsed; do
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4501 as_fn_executable_p "$ac_path_SED" || continue
4502 # Check for GNU ac_path_SED and select it if it is found.
4503 # Check for GNU $ac_path_SED
4504 case `"$ac_path_SED" --version 2>&1` in
4506 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4509 $as_echo_n 0123456789 >"conftest.in"
4512 cat "conftest.in" "conftest.in" >"conftest.tmp"
4513 mv "conftest.tmp" "conftest.in"
4514 cp "conftest.in" "conftest.nl"
4515 $as_echo '' >> "conftest.nl"
4516 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4518 as_fn_arith $ac_count + 1 && ac_count=$as_val
4519 if test $ac_count -gt ${ac_path_SED_max-0}; then
4520 # Best one so far, save it but keep looking for a better one
4521 ac_cv_path_SED="$ac_path_SED"
4522 ac_path_SED_max=$ac_count
4524 # 10*(2^10) chars as input seems more than enough
4525 test $ac_count -gt 10 && break
4527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4530 $ac_path_SED_found && break 3
4535 if test -z "$ac_cv_path_SED"; then
4536 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4544 $as_echo "$ac_cv_path_SED" >&6; }
4545 SED="$ac_cv_path_SED"
4548 test -z "$SED" && SED=sed
4549 Xsed="$SED -e 1s/^X//"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563 if ${ac_cv_path_GREP+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -z "$GREP"; then
4567 ac_path_GREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in grep ggrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577 as_fn_executable_p "$ac_path_GREP" || continue
4578 # Check for GNU ac_path_GREP and select it if it is found.
4579 # Check for GNU $ac_path_GREP
4580 case `"$ac_path_GREP" --version 2>&1` in
4582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4585 $as_echo_n 0123456789 >"conftest.in"
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'GREP' >> "conftest.nl"
4592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_GREP="$ac_path_GREP"
4598 ac_path_GREP_max=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 $ac_path_GREP_found && break 3
4611 if test -z "$ac_cv_path_GREP"; then
4612 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 ac_cv_path_GREP=$GREP
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620 $as_echo "$ac_cv_path_GREP" >&6; }
4621 GREP="$ac_cv_path_GREP"
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625 $as_echo_n "checking for egrep... " >&6; }
4626 if ${ac_cv_path_EGREP+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630 then ac_cv_path_EGREP="$GREP -E"
4632 if test -z "$EGREP"; then
4633 ac_path_EGREP_found=false
4634 # Loop through the user's path and test for each of PROGNAME-LIST
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639 test -z "$as_dir" && as_dir=.
4640 for ac_prog in egrep; do
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643 as_fn_executable_p "$ac_path_EGREP" || continue
4644 # Check for GNU ac_path_EGREP and select it if it is found.
4645 # Check for GNU $ac_path_EGREP
4646 case `"$ac_path_EGREP" --version 2>&1` in
4648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4651 $as_echo_n 0123456789 >"conftest.in"
4654 cat "conftest.in" "conftest.in" >"conftest.tmp"
4655 mv "conftest.tmp" "conftest.in"
4656 cp "conftest.in" "conftest.nl"
4657 $as_echo 'EGREP' >> "conftest.nl"
4658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660 as_fn_arith $ac_count + 1 && ac_count=$as_val
4661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662 # Best one so far, save it but keep looking for a better one
4663 ac_cv_path_EGREP="$ac_path_EGREP"
4664 ac_path_EGREP_max=$ac_count
4666 # 10*(2^10) chars as input seems more than enough
4667 test $ac_count -gt 10 && break
4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 $ac_path_EGREP_found && break 3
4677 if test -z "$ac_cv_path_EGREP"; then
4678 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 ac_cv_path_EGREP=$EGREP
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687 $as_echo "$ac_cv_path_EGREP" >&6; }
4688 EGREP="$ac_cv_path_EGREP"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4692 $as_echo_n "checking for fgrep... " >&6; }
4693 if ${ac_cv_path_FGREP+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4697 then ac_cv_path_FGREP="$GREP -F"
4699 if test -z "$FGREP"; then
4700 ac_path_FGREP_found=false
4701 # Loop through the user's path and test for each of PROGNAME-LIST
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in fgrep; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4710 as_fn_executable_p "$ac_path_FGREP" || continue
4711 # Check for GNU ac_path_FGREP and select it if it is found.
4712 # Check for GNU $ac_path_FGREP
4713 case `"$ac_path_FGREP" --version 2>&1` in
4715 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4718 $as_echo_n 0123456789 >"conftest.in"
4721 cat "conftest.in" "conftest.in" >"conftest.tmp"
4722 mv "conftest.tmp" "conftest.in"
4723 cp "conftest.in" "conftest.nl"
4724 $as_echo 'FGREP' >> "conftest.nl"
4725 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727 as_fn_arith $ac_count + 1 && ac_count=$as_val
4728 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4729 # Best one so far, save it but keep looking for a better one
4730 ac_cv_path_FGREP="$ac_path_FGREP"
4731 ac_path_FGREP_max=$ac_count
4733 # 10*(2^10) chars as input seems more than enough
4734 test $ac_count -gt 10 && break
4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4739 $ac_path_FGREP_found && break 3
4744 if test -z "$ac_cv_path_FGREP"; then
4745 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4748 ac_cv_path_FGREP=$FGREP
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4754 $as_echo "$ac_cv_path_FGREP" >&6; }
4755 FGREP="$ac_cv_path_FGREP"
4758 test -z "$GREP" && GREP=grep
4778 # Check whether --with-gnu-ld was given.
4779 if test "${with_gnu_ld+set}" = set; then :
4780 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4786 if test "$GCC" = yes; then
4787 # Check if gcc -print-prog-name=ld gives a path.
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4789 $as_echo_n "checking for ld used by $CC... " >&6; }
4792 # gcc leaves a trailing carriage return which upsets mingw
4793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4798 # Accept absolute paths.
4800 re_direlt='/[^/][^/]*/\.\./'
4801 # Canonicalize the pathname of ld
4802 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4803 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4804 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4806 test -z "$LD" && LD="$ac_prog"
4809 # If it fails, then pretend we aren't using GCC.
4813 # If it is relative, then search for the first ld in PATH.
4817 elif test "$with_gnu_ld" = yes; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4819 $as_echo_n "checking for GNU ld... " >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4822 $as_echo_n "checking for non-GNU ld... " >&6; }
4824 if ${lt_cv_path_LD+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 if test -z "$LD"; then
4828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4829 for ac_dir in $PATH; do
4831 test -z "$ac_dir" && ac_dir=.
4832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4833 lt_cv_path_LD="$ac_dir/$ac_prog"
4834 # Check to see if the program is GNU ld. I'd rather use --version,
4835 # but apparently some variants of GNU ld only accept -v.
4836 # Break only if it was the GNU/non-GNU ld that we prefer.
4837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4838 *GNU* | *'with BFD'*)
4839 test "$with_gnu_ld" != no && break
4842 test "$with_gnu_ld" != yes && break
4849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4854 if test -n "$LD"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4856 $as_echo "$LD" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4864 if ${lt_cv_prog_gnu_ld+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4868 case `$LD -v 2>&1 </dev/null` in
4869 *GNU* | *'with BFD'*)
4870 lt_cv_prog_gnu_ld=yes
4873 lt_cv_prog_gnu_ld=no
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4879 with_gnu_ld=$lt_cv_prog_gnu_ld
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4890 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4891 if ${lt_cv_path_NM+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 if test -n "$NM"; then
4895 # Let the user override the test.
4898 lt_nm_to_check="${ac_tool_prefix}nm"
4899 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4900 lt_nm_to_check="$lt_nm_to_check nm"
4902 for lt_tmp_nm in $lt_nm_to_check; do
4903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4904 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4906 test -z "$ac_dir" && ac_dir=.
4907 tmp_nm="$ac_dir/$lt_tmp_nm"
4908 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4909 # Check to see if the nm accepts a BSD-compat flag.
4910 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4911 # nm: unknown option "B" ignored
4912 # Tru64's nm complains that /dev/null is an invalid object file
4913 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4914 */dev/null* | *'Invalid file or object type'*)
4915 lt_cv_path_NM="$tmp_nm -B"
4919 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4921 lt_cv_path_NM="$tmp_nm -p"
4925 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4926 continue # so that we can try to find one that supports BSD flags
4935 : ${lt_cv_path_NM=no}
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4939 $as_echo "$lt_cv_path_NM" >&6; }
4940 if test "$lt_cv_path_NM" != "no"; then
4943 # Didn't find any BSD compatible name lister, look for dumpbin.
4944 if test -n "$DUMPBIN"; then :
4945 # Let the user override the test.
4947 if test -n "$ac_tool_prefix"; then
4948 for ac_prog in dumpbin "link -dump"
4950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_DUMPBIN+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 if test -n "$DUMPBIN"; then
4958 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 DUMPBIN=$ac_cv_prog_DUMPBIN
4978 if test -n "$DUMPBIN"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4980 $as_echo "$DUMPBIN" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 test -n "$DUMPBIN" && break
4990 if test -z "$DUMPBIN"; then
4991 ac_ct_DUMPBIN=$DUMPBIN
4992 for ac_prog in dumpbin "link -dump"
4994 # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4999 $as_echo_n "(cached) " >&6
5001 if test -n "$ac_ct_DUMPBIN"; then
5002 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5022 if test -n "$ac_ct_DUMPBIN"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5024 $as_echo "$ac_ct_DUMPBIN" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 test -n "$ac_ct_DUMPBIN" && break
5034 if test "x$ac_ct_DUMPBIN" = x; then
5037 case $cross_compiling:$ac_tool_warned in
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned=yes ;;
5043 DUMPBIN=$ac_ct_DUMPBIN
5047 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5049 DUMPBIN="$DUMPBIN -symbols"
5057 if test "$DUMPBIN" != ":"; then
5061 test -z "$NM" && NM=nm
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5069 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5070 if ${lt_cv_nm_interface+:} false; then :
5071 $as_echo_n "(cached) " >&6
5073 lt_cv_nm_interface="BSD nm"
5074 echo "int some_variable = 0;" > conftest.$ac_ext
5075 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5076 (eval "$ac_compile" 2>conftest.err)
5077 cat conftest.err >&5
5078 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5079 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5080 cat conftest.err >&5
5081 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5082 cat conftest.out >&5
5083 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5084 lt_cv_nm_interface="MS dumpbin"
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5089 $as_echo "$lt_cv_nm_interface" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5092 $as_echo_n "checking whether ln -s works... " >&6; }
5094 if test "$LN_S" = "ln -s"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096 $as_echo "yes" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5099 $as_echo "no, using $LN_S" >&6; }
5102 # find the maximum length of command line arguments
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5104 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5105 if ${lt_cv_sys_max_cmd_len+:} false; then :
5106 $as_echo_n "(cached) " >&6
5113 # On DJGPP, this test can blow up pretty badly due to problems in libc
5114 # (any single argument exceeding 2000 bytes causes a buffer overrun
5115 # during glob expansion). Even if it were fixed, the result of this
5116 # check would be larger than it should be.
5117 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5121 # Under GNU Hurd, this test is not required because there is
5122 # no limit to the length of command line arguments.
5123 # Libtool will interpret -1 as no limit whatsoever
5124 lt_cv_sys_max_cmd_len=-1;
5127 cygwin* | mingw* | cegcc*)
5128 # On Win9x/ME, this test blows up -- it succeeds, but takes
5129 # about 5 minutes as the teststring grows exponentially.
5130 # Worse, since 9x/ME are not pre-emptively multitasking,
5131 # you end up with a "frozen" computer, even though with patience
5132 # the test eventually succeeds (with a max line length of 256k).
5133 # Instead, let's just punt: use the minimum linelength reported by
5134 # all of the supported platforms: 8192 (on NT/2K/XP).
5135 lt_cv_sys_max_cmd_len=8192;
5139 # On MiNT this can take a long time and run out of memory.
5140 lt_cv_sys_max_cmd_len=8192;
5144 # On AmigaOS with pdksh, this test takes hours, literally.
5145 # So we just punt and use a minimum line length of 8192.
5146 lt_cv_sys_max_cmd_len=8192;
5149 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5150 # This has been around since 386BSD, at least. Likely further.
5151 if test -x /sbin/sysctl; then
5152 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5153 elif test -x /usr/sbin/sysctl; then
5154 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5156 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5158 # And add a safety zone
5159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5164 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5165 lt_cv_sys_max_cmd_len=196608
5169 # The test takes a long time on OS/2.
5170 lt_cv_sys_max_cmd_len=8192
5174 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5175 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5176 # nice to cause kernel panics so lets avoid the loop below.
5177 # First set a reasonable default.
5178 lt_cv_sys_max_cmd_len=16384
5180 if test -x /sbin/sysconfig; then
5181 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5182 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5187 lt_cv_sys_max_cmd_len=102400
5189 sysv5* | sco5v6* | sysv4.2uw2*)
5190 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5191 if test -n "$kargmax"; then
5192 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5194 lt_cv_sys_max_cmd_len=32768
5198 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5199 if test -n "$lt_cv_sys_max_cmd_len" && \
5200 test undefined != "$lt_cv_sys_max_cmd_len"; then
5201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5204 # Make teststring a little bigger before we do anything with it.
5205 # a 1K string should be a reasonable start.
5206 for i in 1 2 3 4 5 6 7 8 ; do
5207 teststring=$teststring$teststring
5209 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5210 # If test is not a shell built-in, we'll probably end up computing a
5211 # maximum length that is only half of the actual maximum length, but
5213 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5214 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5215 test $i != 17 # 1/2 MB should be enough
5218 teststring=$teststring$teststring
5220 # Only check the string length outside the loop.
5221 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5223 # Add a significant safety factor because C++ compilers can tack on
5224 # massive amounts of additional arguments before passing them to the
5225 # linker. It appears as though 1/2 is a usable value.
5226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5233 if test -n $lt_cv_sys_max_cmd_len ; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5235 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5238 $as_echo "none" >&6; }
5240 max_cmd_len=$lt_cv_sys_max_cmd_len
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5252 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5253 # Try some XSI features
5256 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5258 && eval 'test $(( 1 + 1 )) -eq 2 \
5259 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5262 $as_echo "$xsi_shell" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5266 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5268 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5270 && lt_shell_append=yes
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5272 $as_echo "$lt_shell_append" >&6; }
5275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5285 # test EBCDIC or ASCII
5286 case `echo X|tr X '\101'` in
5287 A) # ASCII based system
5288 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5289 lt_SP2NL='tr \040 \012'
5290 lt_NL2SP='tr \015\012 \040\040'
5292 *) # EBCDIC based system
5293 lt_SP2NL='tr \100 \n'
5294 lt_NL2SP='tr \r\n \100\100'
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5307 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5308 if ${lt_cv_to_host_file_cmd+:} false; then :
5309 $as_echo_n "(cached) " >&6
5314 *-*-mingw* ) # actually msys
5315 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5318 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5320 * ) # otherwise, assume *nix
5321 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5327 *-*-mingw* ) # actually msys
5328 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5331 lt_cv_to_host_file_cmd=func_convert_file_noop
5333 * ) # otherwise, assume *nix
5334 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5338 * ) # unhandled hosts (and "normal" native builds)
5339 lt_cv_to_host_file_cmd=func_convert_file_noop
5345 to_host_file_cmd=$lt_cv_to_host_file_cmd
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5347 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5354 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5355 if ${lt_cv_to_tool_file_cmd+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 #assume ordinary cross tools, or native build.
5359 lt_cv_to_tool_file_cmd=func_convert_file_noop
5363 *-*-mingw* ) # actually msys
5364 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5372 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5374 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5381 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5382 if ${lt_cv_ld_reload_flag+:} false; then :
5383 $as_echo_n "(cached) " >&6
5385 lt_cv_ld_reload_flag='-r'
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5388 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5389 reload_flag=$lt_cv_ld_reload_flag
5390 case $reload_flag in
5392 *) reload_flag=" $reload_flag" ;;
5394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5396 cygwin* | mingw* | pw32* | cegcc*)
5397 if test "$GCC" != yes; then
5402 if test "$GCC" = yes; then
5403 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5405 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5418 if test -n "$ac_tool_prefix"; then
5419 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5420 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_OBJDUMP+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 if test -n "$OBJDUMP"; then
5427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 OBJDUMP=$ac_cv_prog_OBJDUMP
5447 if test -n "$OBJDUMP"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5449 $as_echo "$OBJDUMP" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5457 if test -z "$ac_cv_prog_OBJDUMP"; then
5458 ac_ct_OBJDUMP=$OBJDUMP
5459 # Extract the first word of "objdump", so it can be a program name with args.
5460 set dummy objdump; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5466 if test -n "$ac_ct_OBJDUMP"; then
5467 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5487 if test -n "$ac_ct_OBJDUMP"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5489 $as_echo "$ac_ct_OBJDUMP" >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5495 if test "x$ac_ct_OBJDUMP" = x; then
5498 case $cross_compiling:$ac_tool_warned in
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502 ac_tool_warned=yes ;;
5504 OBJDUMP=$ac_ct_OBJDUMP
5507 OBJDUMP="$ac_cv_prog_OBJDUMP"
5510 test -z "$OBJDUMP" && OBJDUMP=objdump
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5522 if ${lt_cv_deplibs_check_method+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 lt_cv_file_magic_cmd='$MAGIC_CMD'
5526 lt_cv_file_magic_test_file=
5527 lt_cv_deplibs_check_method='unknown'
5528 # Need to set the preceding variable on all platforms that support
5529 # interlibrary dependencies.
5530 # 'none' -- dependencies not supported.
5531 # `unknown' -- same as none, but documents that we really don't know.
5532 # 'pass_all' -- all dependencies passed with no checks.
5533 # 'test_compile' -- check by making test program.
5534 # 'file_magic [[regex]]' -- check by looking for files in library path
5535 # which responds to the $file_magic_cmd with a given extended regex.
5536 # If you have `file' or equivalent on your system and you're not sure
5537 # whether `pass_all' will *always* work, you probably want this one.
5541 lt_cv_deplibs_check_method=pass_all
5545 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5550 lt_cv_file_magic_cmd='/usr/bin/file -L'
5551 lt_cv_file_magic_test_file=/shlib/libc.so
5555 # func_win32_libid is a shell function defined in ltmain.sh
5556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557 lt_cv_file_magic_cmd='func_win32_libid'
5561 # Base MSYS/MinGW do not provide the 'file' command needed by
5562 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5563 # unless we find 'file', for example because we are cross-compiling.
5564 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5565 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5567 lt_cv_file_magic_cmd='func_win32_libid'
5569 # Keep this pattern in sync with the one in func_win32_libid.
5570 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5571 lt_cv_file_magic_cmd='$OBJDUMP -f'
5576 # use the weaker test based on 'objdump'. See mingw*.
5577 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5578 lt_cv_file_magic_cmd='$OBJDUMP -f'
5581 darwin* | rhapsody*)
5582 lt_cv_deplibs_check_method=pass_all
5585 freebsd* | dragonfly*)
5586 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5589 # Not sure whether the presence of OpenBSD here was a mistake.
5590 # Let's accept both of them until this is cleared up.
5591 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5592 lt_cv_file_magic_cmd=/usr/bin/file
5593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5597 lt_cv_deplibs_check_method=pass_all
5602 lt_cv_deplibs_check_method=pass_all
5605 hpux10.20* | hpux11*)
5606 lt_cv_file_magic_cmd=/usr/bin/file
5609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5610 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5613 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]'
5614 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5617 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5618 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5624 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5628 irix5* | irix6* | nonstopux*)
5630 *-32|*"-32 ") libmagic=32-bit;;
5631 *-n32|*"-n32 ") libmagic=N32;;
5632 *-64|*"-64 ") libmagic=64-bit;;
5633 *) libmagic=never-match;;
5635 lt_cv_deplibs_check_method=pass_all
5638 # This must be glibc/ELF.
5639 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5640 lt_cv_deplibs_check_method=pass_all
5643 netbsd* | netbsdelf*-gnu)
5644 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5653 lt_cv_file_magic_cmd=/usr/bin/file
5654 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5658 lt_cv_deplibs_check_method=pass_all
5662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5669 osf3* | osf4* | osf5*)
5670 lt_cv_deplibs_check_method=pass_all
5674 lt_cv_deplibs_check_method=pass_all
5678 lt_cv_deplibs_check_method=pass_all
5681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5682 lt_cv_deplibs_check_method=pass_all
5686 case $host_vendor in
5688 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]'
5689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5692 lt_cv_deplibs_check_method=pass_all
5695 lt_cv_file_magic_cmd='/bin/file'
5696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5699 lt_cv_file_magic_cmd='/bin/file'
5700 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5701 lt_cv_file_magic_test_file=/lib/libc.so
5704 lt_cv_deplibs_check_method=pass_all
5707 lt_cv_deplibs_check_method=pass_all
5713 lt_cv_deplibs_check_method=pass_all
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5719 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5723 if test "$build" = "$host"; then
5726 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5729 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5735 file_magic_cmd=$lt_cv_file_magic_cmd
5736 deplibs_check_method=$lt_cv_deplibs_check_method
5737 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5760 if test -n "$ac_tool_prefix"; then
5761 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5762 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_DLLTOOL+:} false; then :
5766 $as_echo_n "(cached) " >&6
5768 if test -n "$DLLTOOL"; then
5769 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 DLLTOOL=$ac_cv_prog_DLLTOOL
5789 if test -n "$DLLTOOL"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5791 $as_echo "$DLLTOOL" >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5799 if test -z "$ac_cv_prog_DLLTOOL"; then
5800 ac_ct_DLLTOOL=$DLLTOOL
5801 # Extract the first word of "dlltool", so it can be a program name with args.
5802 set dummy dlltool; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5806 $as_echo_n "(cached) " >&6
5808 if test -n "$ac_ct_DLLTOOL"; then
5809 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5829 if test -n "$ac_ct_DLLTOOL"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5831 $as_echo "$ac_ct_DLLTOOL" >&6; }
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5837 if test "x$ac_ct_DLLTOOL" = x; then
5840 case $cross_compiling:$ac_tool_warned in
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844 ac_tool_warned=yes ;;
5846 DLLTOOL=$ac_ct_DLLTOOL
5849 DLLTOOL="$ac_cv_prog_DLLTOOL"
5852 test -z "$DLLTOOL" && DLLTOOL=dlltool
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5864 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5865 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5866 $as_echo_n "(cached) " >&6
5868 lt_cv_sharedlib_from_linklib_cmd='unknown'
5871 cygwin* | mingw* | pw32* | cegcc*)
5872 # two different shell functions defined in ltmain.sh
5873 # decide which to use based on capabilities of $DLLTOOL
5874 case `$DLLTOOL --help 2>&1` in
5875 *--identify-strict*)
5876 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5879 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5884 # fallback: assume linklib IS sharedlib
5885 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5891 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5892 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5893 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5902 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_AR+:} false; then :
5910 $as_echo_n "(cached) " >&6
5912 if test -n "$AR"; then
5913 ac_cv_prog_AR="$AR" # Let the user override the test.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 if test -n "$AR"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5935 $as_echo "$AR" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5942 test -n "$AR" && break
5945 if test -z "$AR"; then
5949 # Extract the first word of "$ac_prog", so it can be a program name with args.
5950 set dummy $ac_prog; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5954 $as_echo_n "(cached) " >&6
5956 if test -n "$ac_ct_AR"; then
5957 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_ac_ct_AR="$ac_prog"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5977 if test -n "$ac_ct_AR"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5979 $as_echo "$ac_ct_AR" >&6; }
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5986 test -n "$ac_ct_AR" && break
5989 if test "x$ac_ct_AR" = x; then
5992 case $cross_compiling:$ac_tool_warned in
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned=yes ;;
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6016 $as_echo_n "checking for archiver @FILE support... " >&6; }
6017 if ${lt_cv_ar_at_file+:} false; then :
6018 $as_echo_n "(cached) " >&6
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6032 if ac_fn_cxx_try_compile "$LINENO"; then :
6033 echo conftest.$ac_objext > conftest.lst
6034 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6036 (eval $lt_ar_try) 2>&5
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }
6040 if test "$ac_status" -eq 0; then
6041 # Ensure the archiver fails upon bogus file names.
6042 rm -f conftest.$ac_objext libconftest.a
6043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6044 (eval $lt_ar_try) 2>&5
6046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047 test $ac_status = 0; }
6048 if test "$ac_status" -ne 0; then
6052 rm -f conftest.* libconftest.a
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6059 $as_echo "$lt_cv_ar_at_file" >&6; }
6061 if test "x$lt_cv_ar_at_file" = xno; then
6064 archiver_list_spec=$lt_cv_ar_at_file
6073 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6075 set dummy ${ac_tool_prefix}strip; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_STRIP+:} false; then :
6079 $as_echo_n "(cached) " >&6
6081 if test -n "$STRIP"; then
6082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 STRIP=$ac_cv_prog_STRIP
6102 if test -n "$STRIP"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6104 $as_echo "$STRIP" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6112 if test -z "$ac_cv_prog_STRIP"; then
6114 # Extract the first word of "strip", so it can be a program name with args.
6115 set dummy strip; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6119 $as_echo_n "(cached) " >&6
6121 if test -n "$ac_ct_STRIP"; then
6122 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_ac_ct_STRIP="strip"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6142 if test -n "$ac_ct_STRIP"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6144 $as_echo "$ac_ct_STRIP" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6150 if test "x$ac_ct_STRIP" = x; then
6153 case $cross_compiling:$ac_tool_warned in
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned=yes ;;
6162 STRIP="$ac_cv_prog_STRIP"
6165 test -z "$STRIP" && STRIP=:
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_RANLIB+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$RANLIB"; then
6181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 RANLIB=$ac_cv_prog_RANLIB
6201 if test -n "$RANLIB"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6203 $as_echo "$RANLIB" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6211 if test -z "$ac_cv_prog_RANLIB"; then
6212 ac_ct_RANLIB=$RANLIB
6213 # Extract the first word of "ranlib", so it can be a program name with args.
6214 set dummy ranlib; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6218 $as_echo_n "(cached) " >&6
6220 if test -n "$ac_ct_RANLIB"; then
6221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_ac_ct_RANLIB="ranlib"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241 if test -n "$ac_ct_RANLIB"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6243 $as_echo "$ac_ct_RANLIB" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6249 if test "x$ac_ct_RANLIB" = x; then
6252 case $cross_compiling:$ac_tool_warned in
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6258 RANLIB=$ac_ct_RANLIB
6261 RANLIB="$ac_cv_prog_RANLIB"
6264 test -z "$RANLIB" && RANLIB=:
6271 # Determine commands to create old-style static archives.
6272 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6273 old_postinstall_cmds='chmod 644 $oldlib'
6274 old_postuninstall_cmds=
6276 if test -n "$RANLIB"; then
6279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6285 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6290 lock_old_archive_extraction=yes ;;
6292 lock_old_archive_extraction=no ;;
6333 # If no C compiler was specified, use CC.
6336 # If no C compiler flags were specified, use CFLAGS.
6337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6339 # Allow CC to be a program name with arguments.
6343 # Check for command to grab the raw symbol name followed by C symbol from nm.
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6345 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6346 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6347 $as_echo_n "(cached) " >&6
6350 # These are sane defaults that work on at least a few old systems.
6351 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6353 # Character class describing NM global symbol codes.
6354 symcode='[BCDEGRST]'
6356 # Regexp to match symbols that can be accessed directly from C.
6357 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6359 # Define system-specific variables.
6364 cygwin* | mingw* | pw32* | cegcc*)
6365 symcode='[ABCDGISTW]'
6368 if test "$host_cpu" = ia64; then
6369 symcode='[ABCDEGRST]'
6373 symcode='[BCDEGRST]'
6376 symcode='[BCDEGQRST]'
6387 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6395 # If we're using GNU nm, then use its standard symbol codes.
6396 case `$NM -V 2>&1` in
6397 *GNU* | *'with BFD'*)
6398 symcode='[ABCDGIRSTW]' ;;
6401 # Transform an extracted symbol line into a proper C declaration.
6402 # Some systems (esp. on ia64) link data and code symbols differently,
6403 # so use this general approach.
6404 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6406 # Transform an extracted symbol line into symbol name and symbol address
6407 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6408 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'"
6410 # Handle CRLF in mingw tool chain
6414 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6418 # Try without a prefix underscore, then with it.
6419 for ac_symprfx in "" "_"; do
6421 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6422 symxfrm="\\1 $ac_symprfx\\2 \\2"
6424 # Write the raw and C identifiers.
6425 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6426 # Fake it for dumpbin and say T for any non-static function
6427 # and D for any global variable.
6428 # Also find C++ and __fastcall symbols from MSVC++,
6429 # which start with @ or ?.
6430 lt_cv_sys_global_symbol_pipe="$AWK '"\
6431 " {last_section=section; section=\$ 3};"\
6432 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6433 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6434 " \$ 0!~/External *\|/{next};"\
6435 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6436 " {if(hide[section]) next};"\
6437 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6438 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6439 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6440 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6441 " ' prfx=^$ac_symprfx"
6443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6445 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6447 # Check to see that the pipe works correctly.
6451 cat > conftest.$ac_ext <<_LT_EOF
6456 void nm_test_func(void);
6457 void nm_test_func(void){}
6461 int main(){nm_test_var='a';nm_test_func();return(0);}
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465 (eval $ac_compile) 2>&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; then
6469 # Now try to grab the symbols.
6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6472 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; } && test -s "$nlist"; then
6476 # Try sorting and uniquifying the output.
6477 if sort "$nlist" | uniq > "$nlist"T; then
6478 mv -f "$nlist"T "$nlist"
6483 # Make sure that we snagged all the symbols we need.
6484 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6485 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6486 cat <<_LT_EOF > conftest.$ac_ext
6487 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6488 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6489 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6490 relocations are performed -- see ld's documentation on pseudo-relocs. */
6491 # define LT_DLSYM_CONST
6492 #elif defined(__osf__)
6493 /* This system does not cope well with relocations in const data. */
6494 # define LT_DLSYM_CONST
6496 # define LT_DLSYM_CONST const
6504 # Now generate the symbol file.
6505 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6507 cat <<_LT_EOF >> conftest.$ac_ext
6509 /* The mapping between symbol names and symbols. */
6510 LT_DLSYM_CONST struct {
6514 lt__PROGRAM__LTX_preloaded_symbols[] =
6516 { "@PROGRAM@", (void *) 0 },
6518 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6519 cat <<\_LT_EOF >> conftest.$ac_ext
6523 /* This works around a problem in FreeBSD linker */
6524 #ifdef FREEBSD_WORKAROUND
6525 static const void *lt_preloaded_setup() {
6526 return lt__PROGRAM__LTX_preloaded_symbols;
6534 # Now try linking the two files.
6535 mv conftest.$ac_objext conftstm.$ac_objext
6536 lt_globsym_save_LIBS=$LIBS
6537 lt_globsym_save_CFLAGS=$CFLAGS
6538 LIBS="conftstm.$ac_objext"
6539 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6541 (eval $ac_link) 2>&5
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6547 LIBS=$lt_globsym_save_LIBS
6548 CFLAGS=$lt_globsym_save_CFLAGS
6550 echo "cannot find nm_test_func in $nlist" >&5
6553 echo "cannot find nm_test_var in $nlist" >&5
6556 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6559 echo "$progname: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 rm -rf conftest* conftst*
6564 # Do not use the global_symbol_pipe unless it works.
6565 if test "$pipe_works" = yes; then
6568 lt_cv_sys_global_symbol_pipe=
6574 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6575 lt_cv_sys_global_symbol_to_cdecl=
6577 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6579 $as_echo "failed" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6582 $as_echo "ok" >&6; }
6585 # Response file support.
6586 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6587 nm_file_list_spec='@'
6588 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6589 nm_file_list_spec='@'
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6619 $as_echo_n "checking for sysroot... " >&6; }
6621 # Check whether --with-sysroot was given.
6622 if test "${with_sysroot+set}" = set; then :
6623 withval=$with_sysroot;
6630 case ${with_sysroot} in #(
6632 if test "$GCC" = yes; then
6633 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6637 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6643 $as_echo "${with_sysroot}" >&6; }
6644 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6649 $as_echo "${lt_sysroot:-no}" >&6; }
6656 # Check whether --enable-libtool-lock was given.
6657 if test "${enable_libtool_lock+set}" = set; then :
6658 enableval=$enable_libtool_lock;
6661 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6663 # Some flags need to be propagated to the compiler or linker for good
6667 # Find out which ABI we are using.
6668 echo 'int i;' > conftest.$ac_ext
6669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6670 (eval $ac_compile) 2>&5
6672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673 test $ac_status = 0; }; then
6674 case `/usr/bin/file conftest.$ac_objext` in
6686 # Find out which ABI we are using.
6687 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6689 (eval $ac_compile) 2>&5
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; }; then
6693 if test "$lt_cv_prog_gnu_ld" = yes; then
6694 case `/usr/bin/file conftest.$ac_objext` in
6696 LD="${LD-ld} -melf32bsmip"
6699 LD="${LD-ld} -melf32bmipn32"
6702 LD="${LD-ld} -melf64bmip"
6706 case `/usr/bin/file conftest.$ac_objext` in
6722 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6723 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6724 # Find out which ABI we are using.
6725 echo 'int i;' > conftest.$ac_ext
6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6727 (eval $ac_compile) 2>&5
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }; then
6731 case `/usr/bin/file conftest.o` in
6734 x86_64-*kfreebsd*-gnu)
6735 LD="${LD-ld} -m elf_i386_fbsd"
6738 case `/usr/bin/file conftest.o` in
6740 LD="${LD-ld} -m elf32_x86_64"
6743 LD="${LD-ld} -m elf_i386"
6748 LD="${LD-ld} -m elf32lppclinux"
6751 LD="${LD-ld} -m elf32ppclinux"
6754 LD="${LD-ld} -m elf_s390"
6757 LD="${LD-ld} -m elf32_sparc"
6763 x86_64-*kfreebsd*-gnu)
6764 LD="${LD-ld} -m elf_x86_64_fbsd"
6767 LD="${LD-ld} -m elf_x86_64"
6770 LD="${LD-ld} -m elf64lppc"
6773 LD="${LD-ld} -m elf64ppc"
6775 s390*-*linux*|s390*-*tpf*)
6776 LD="${LD-ld} -m elf64_s390"
6779 LD="${LD-ld} -m elf64_sparc"
6789 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6790 SAVE_CFLAGS="$CFLAGS"
6791 CFLAGS="$CFLAGS -belf"
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6793 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6794 if ${lt_cv_cc_needs_belf+:} false; then :
6795 $as_echo_n "(cached) " >&6
6798 ac_cpp='$CPP $CPPFLAGS'
6799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6814 if ac_fn_c_try_link "$LINENO"; then :
6815 lt_cv_cc_needs_belf=yes
6817 lt_cv_cc_needs_belf=no
6819 rm -f core conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
6822 ac_cpp='$CPP $CPPFLAGS'
6823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6829 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6830 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6831 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6832 CFLAGS="$SAVE_CFLAGS"
6836 # Find out which ABI we are using.
6837 echo 'int i;' > conftest.$ac_ext
6838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839 (eval $ac_compile) 2>&5
6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842 test $ac_status = 0; }; then
6843 case `/usr/bin/file conftest.o` in
6845 case $lt_cv_prog_gnu_ld in
6849 LD="${LD-ld} -m elf_x86_64"
6852 LD="${LD-ld} -m elf64_sparc"
6855 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6856 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6861 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6873 need_locks="$enable_libtool_lock"
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}mt; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 if test -n "$MANIFEST_TOOL"; then
6884 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6904 if test -n "$MANIFEST_TOOL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6906 $as_echo "$MANIFEST_TOOL" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6915 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6916 # Extract the first word of "mt", so it can be a program name with args.
6917 set dummy mt; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6921 $as_echo_n "(cached) " >&6
6923 if test -n "$ac_ct_MANIFEST_TOOL"; then
6924 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6944 if test -n "$ac_ct_MANIFEST_TOOL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6946 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6955 case $cross_compiling:$ac_tool_warned in
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6961 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6964 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6967 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6969 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6970 if ${lt_cv_path_mainfest_tool+:} false; then :
6971 $as_echo_n "(cached) " >&6
6973 lt_cv_path_mainfest_tool=no
6974 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6975 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6976 cat conftest.err >&5
6977 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6978 lt_cv_path_mainfest_tool=yes
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6983 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6984 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6994 rhapsody* | darwin*)
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7001 $as_echo_n "(cached) " >&6
7003 if test -n "$DSYMUTIL"; then
7004 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7024 if test -n "$DSYMUTIL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7026 $as_echo "$DSYMUTIL" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7034 if test -z "$ac_cv_prog_DSYMUTIL"; then
7035 ac_ct_DSYMUTIL=$DSYMUTIL
7036 # Extract the first word of "dsymutil", so it can be a program name with args.
7037 set dummy dsymutil; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7041 $as_echo_n "(cached) " >&6
7043 if test -n "$ac_ct_DSYMUTIL"; then
7044 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7064 if test -n "$ac_ct_DSYMUTIL"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7066 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7072 if test "x$ac_ct_DSYMUTIL" = x; then
7075 case $cross_compiling:$ac_tool_warned in
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7081 DSYMUTIL=$ac_ct_DSYMUTIL
7084 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7087 if test -n "$ac_tool_prefix"; then
7088 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7089 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_NMEDIT+:} false; then :
7093 $as_echo_n "(cached) " >&6
7095 if test -n "$NMEDIT"; then
7096 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 NMEDIT=$ac_cv_prog_NMEDIT
7116 if test -n "$NMEDIT"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7118 $as_echo "$NMEDIT" >&6; }
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7126 if test -z "$ac_cv_prog_NMEDIT"; then
7127 ac_ct_NMEDIT=$NMEDIT
7128 # Extract the first word of "nmedit", so it can be a program name with args.
7129 set dummy nmedit; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7133 $as_echo_n "(cached) " >&6
7135 if test -n "$ac_ct_NMEDIT"; then
7136 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7156 if test -n "$ac_ct_NMEDIT"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7158 $as_echo "$ac_ct_NMEDIT" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7164 if test "x$ac_ct_NMEDIT" = x; then
7167 case $cross_compiling:$ac_tool_warned in
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171 ac_tool_warned=yes ;;
7173 NMEDIT=$ac_ct_NMEDIT
7176 NMEDIT="$ac_cv_prog_NMEDIT"
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_LIPO+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$LIPO"; then
7188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 LIPO=$ac_cv_prog_LIPO
7208 if test -n "$LIPO"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7210 $as_echo "$LIPO" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_LIPO"; then
7220 # Extract the first word of "lipo", so it can be a program name with args.
7221 set dummy lipo; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$ac_ct_LIPO"; then
7228 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_LIPO="lipo"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7248 if test -n "$ac_ct_LIPO"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7250 $as_echo "$ac_ct_LIPO" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_ct_LIPO" = x; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7268 LIPO="$ac_cv_prog_LIPO"
7271 if test -n "$ac_tool_prefix"; then
7272 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7273 set dummy ${ac_tool_prefix}otool; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_OTOOL+:} false; then :
7277 $as_echo_n "(cached) " >&6
7279 if test -n "$OTOOL"; then
7280 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 OTOOL=$ac_cv_prog_OTOOL
7300 if test -n "$OTOOL"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7302 $as_echo "$OTOOL" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7310 if test -z "$ac_cv_prog_OTOOL"; then
7312 # Extract the first word of "otool", so it can be a program name with args.
7313 set dummy otool; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$ac_ct_OTOOL"; then
7320 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_ac_ct_OTOOL="otool"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7340 if test -n "$ac_ct_OTOOL"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7342 $as_echo "$ac_ct_OTOOL" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7348 if test "x$ac_ct_OTOOL" = x; then
7351 case $cross_compiling:$ac_tool_warned in
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355 ac_tool_warned=yes ;;
7360 OTOOL="$ac_cv_prog_OTOOL"
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_OTOOL64+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$OTOOL64"; then
7372 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 OTOOL64=$ac_cv_prog_OTOOL64
7392 if test -n "$OTOOL64"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7394 $as_echo "$OTOOL64" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7402 if test -z "$ac_cv_prog_OTOOL64"; then
7403 ac_ct_OTOOL64=$OTOOL64
7404 # Extract the first word of "otool64", so it can be a program name with args.
7405 set dummy otool64; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$ac_ct_OTOOL64"; then
7412 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_ac_ct_OTOOL64="otool64"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7432 if test -n "$ac_ct_OTOOL64"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7434 $as_echo "$ac_ct_OTOOL64" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7440 if test "x$ac_ct_OTOOL64" = x; then
7443 case $cross_compiling:$ac_tool_warned in
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7449 OTOOL64=$ac_ct_OTOOL64
7452 OTOOL64="$ac_cv_prog_OTOOL64"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7482 $as_echo_n "checking for -single_module linker flag... " >&6; }
7483 if ${lt_cv_apple_cc_single_mod+:} false; then :
7484 $as_echo_n "(cached) " >&6
7486 lt_cv_apple_cc_single_mod=no
7487 if test -z "${LT_MULTI_MODULE}"; then
7488 # By default we will add the -single_module flag. You can override
7489 # by either setting the environment variable LT_MULTI_MODULE
7490 # non-empty at configure time, or by adding -multi_module to the
7492 rm -rf libconftest.dylib*
7493 echo "int foo(void){return 1;}" > conftest.c
7494 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7495 -dynamiclib -Wl,-single_module conftest.c" >&5
7496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7497 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7499 # If there is a non-empty error log, and "single_module"
7500 # appears in it, assume the flag caused a linker warning
7501 if test -s conftest.err && $GREP single_module conftest.err; then
7502 cat conftest.err >&5
7503 # Otherwise, if the output was created with a 0 exit code from
7504 # the compiler, it worked.
7505 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7506 lt_cv_apple_cc_single_mod=yes
7508 cat conftest.err >&5
7510 rm -rf libconftest.dylib*
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7515 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7518 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7519 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 lt_cv_ld_exported_symbols_list=no
7523 save_LDFLAGS=$LDFLAGS
7524 echo "_main" > conftest.sym
7525 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7537 if ac_fn_c_try_link "$LINENO"; then :
7538 lt_cv_ld_exported_symbols_list=yes
7540 lt_cv_ld_exported_symbols_list=no
7542 rm -f core conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7544 LDFLAGS="$save_LDFLAGS"
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7548 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7551 $as_echo_n "checking for -force_load linker flag... " >&6; }
7552 if ${lt_cv_ld_force_load+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 lt_cv_ld_force_load=no
7556 cat > conftest.c << _LT_EOF
7557 int forced_loaded() { return 2;}
7559 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7560 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7561 echo "$AR cru libconftest.a conftest.o" >&5
7562 $AR cru libconftest.a conftest.o 2>&5
7563 echo "$RANLIB libconftest.a" >&5
7564 $RANLIB libconftest.a 2>&5
7565 cat > conftest.c << _LT_EOF
7566 int main() { return 0;}
7568 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7569 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7571 if test -s conftest.err && $GREP force_load conftest.err; then
7572 cat conftest.err >&5
7573 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7574 lt_cv_ld_force_load=yes
7576 cat conftest.err >&5
7578 rm -f conftest.err libconftest.a conftest conftest.c
7579 rm -rf conftest.dSYM
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7583 $as_echo "$lt_cv_ld_force_load" >&6; }
7585 rhapsody* | darwin1.[012])
7586 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7588 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7589 darwin*) # darwin 5.x on
7590 # if running on 10.5 or later, the deployment target defaults
7591 # to the OS version, if on x86, and 10.4, the deployment
7592 # target defaults to 10.4. Don't you love it?
7593 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7594 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7603 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7604 _lt_dar_single_mod='$single_module'
7606 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7607 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7609 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7611 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7612 _lt_dsymutil='~$DSYMUTIL $lib || :'
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7625 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7626 # On Suns, sometimes $CPP names a directory.
7627 if test -n "$CPP" && test -d "$CPP"; then
7630 if test -z "$CPP"; then
7631 if ${ac_cv_prog_CPP+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 # Double quotes because CPP needs to be expanded
7635 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7638 for ac_c_preproc_warn_flag in '' yes
7640 # Use a header file that comes with gcc, so configuring glibc
7641 # with a fresh cross-compiler works.
7642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7643 # <limits.h> exists even on freestanding compilers.
7644 # On the NeXT, cc -E runs the code through the compiler's parser,
7645 # not just through cpp. "Syntax error" is here to catch this case.
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7649 # include <limits.h>
7651 # include <assert.h>
7655 if ac_fn_c_try_cpp "$LINENO"; then :
7658 # Broken: fails on valid input.
7661 rm -f conftest.err conftest.i conftest.$ac_ext
7663 # OK, works on sane cases. Now check whether nonexistent headers
7664 # can be detected and how.
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 #include <ac_nonexistent.h>
7669 if ac_fn_c_try_cpp "$LINENO"; then :
7670 # Broken: success on invalid input.
7673 # Passes both tests.
7677 rm -f conftest.err conftest.i conftest.$ac_ext
7680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7681 rm -f conftest.i conftest.err conftest.$ac_ext
7682 if $ac_preproc_ok; then :
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7695 $as_echo "$CPP" >&6; }
7697 for ac_c_preproc_warn_flag in '' yes
7699 # Use a header file that comes with gcc, so configuring glibc
7700 # with a fresh cross-compiler works.
7701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7702 # <limits.h> exists even on freestanding compilers.
7703 # On the NeXT, cc -E runs the code through the compiler's parser,
7704 # not just through cpp. "Syntax error" is here to catch this case.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7708 # include <limits.h>
7710 # include <assert.h>
7714 if ac_fn_c_try_cpp "$LINENO"; then :
7717 # Broken: fails on valid input.
7720 rm -f conftest.err conftest.i conftest.$ac_ext
7722 # OK, works on sane cases. Now check whether nonexistent headers
7723 # can be detected and how.
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 #include <ac_nonexistent.h>
7728 if ac_fn_c_try_cpp "$LINENO"; then :
7729 # Broken: success on invalid input.
7732 # Passes both tests.
7736 rm -f conftest.err conftest.i conftest.$ac_ext
7739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7740 rm -f conftest.i conftest.err conftest.$ac_ext
7741 if $ac_preproc_ok; then :
7744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7746 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7747 See \`config.log' for more details" "$LINENO" 5; }
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7758 $as_echo_n "checking for ANSI C header files... " >&6; }
7759 if ${ac_cv_header_stdc+:} false; then :
7760 $as_echo_n "(cached) " >&6
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778 ac_cv_header_stdc=yes
7780 ac_cv_header_stdc=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 if test $ac_cv_header_stdc = yes; then
7785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7792 $EGREP "memchr" >/dev/null 2>&1; then :
7795 ac_cv_header_stdc=no
7801 if test $ac_cv_header_stdc = yes; then
7802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7809 $EGREP "free" >/dev/null 2>&1; then :
7812 ac_cv_header_stdc=no
7818 if test $ac_cv_header_stdc = yes; then
7819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7820 if test "$cross_compiling" = yes; then :
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7827 #if ((' ' & 0x0FF) == 0x020)
7828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7831 # define ISLOWER(c) \
7832 (('a' <= (c) && (c) <= 'i') \
7833 || ('j' <= (c) && (c) <= 'r') \
7834 || ('s' <= (c) && (c) <= 'z'))
7835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7843 for (i = 0; i < 256; i++)
7844 if (XOR (islower (i), ISLOWER (i))
7845 || toupper (i) != TOUPPER (i))
7850 if ac_fn_c_try_run "$LINENO"; then :
7853 ac_cv_header_stdc=no
7855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7856 conftest.$ac_objext conftest.beam conftest.$ac_ext
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7862 $as_echo "$ac_cv_header_stdc" >&6; }
7863 if test $ac_cv_header_stdc = yes; then
7865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7871 inttypes.h stdint.h unistd.h
7873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7874 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7876 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7877 cat >>confdefs.h <<_ACEOF
7878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7886 for ac_header in dlfcn.h
7888 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7890 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7891 cat >>confdefs.h <<_ACEOF
7892 #define HAVE_DLFCN_H 1
7901 func_stripname_cnf ()
7904 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7905 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7907 } # func_stripname_cnf
7923 # Check whether --enable-shared was given.
7924 if test "${enable_shared+set}" = set; then :
7925 enableval=$enable_shared; p=${PACKAGE-default}
7927 yes) enable_shared=yes ;;
7928 no) enable_shared=no ;;
7931 # Look at the argument we got. We use all the common list separators.
7932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7933 for pkg in $enableval; do
7935 if test "X$pkg" = "X$p"; then
7954 # Check whether --enable-static was given.
7955 if test "${enable_static+set}" = set; then :
7956 enableval=$enable_static; p=${PACKAGE-default}
7958 yes) enable_static=yes ;;
7959 no) enable_static=no ;;
7962 # Look at the argument we got. We use all the common list separators.
7963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7964 for pkg in $enableval; do
7966 if test "X$pkg" = "X$p"; then
7986 # Check whether --with-pic was given.
7987 if test "${with_pic+set}" = set; then :
7988 withval=$with_pic; lt_p=${PACKAGE-default}
7990 yes|no) pic_mode=$withval ;;
7993 # Look at the argument we got. We use all the common list separators.
7994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7995 for lt_pkg in $withval; do
7997 if test "X$lt_pkg" = "X$lt_p"; then
8009 test -z "$pic_mode" && pic_mode=default
8017 # Check whether --enable-fast-install was given.
8018 if test "${enable_fast_install+set}" = set; then :
8019 enableval=$enable_fast_install; p=${PACKAGE-default}
8021 yes) enable_fast_install=yes ;;
8022 no) enable_fast_install=no ;;
8024 enable_fast_install=no
8025 # Look at the argument we got. We use all the common list separators.
8026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8027 for pkg in $enableval; do
8029 if test "X$pkg" = "X$p"; then
8030 enable_fast_install=yes
8037 enable_fast_install=yes
8050 # This can be used to rebuild libtool when needed
8051 LIBTOOL_DEPS="$ltmain"
8053 # Always use our own libtool.
8054 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8085 test -z "$LN_S" && LN_S="ln -s"
8100 if test -n "${ZSH_VERSION+set}" ; then
8101 setopt NO_GLOB_SUBST
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8105 $as_echo_n "checking for objdir... " >&6; }
8106 if ${lt_cv_objdir+:} false; then :
8107 $as_echo_n "(cached) " >&6
8109 rm -f .libs 2>/dev/null
8110 mkdir .libs 2>/dev/null
8111 if test -d .libs; then
8114 # MS-DOS does not allow filenames that begin with a dot.
8117 rmdir .libs 2>/dev/null
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8120 $as_echo "$lt_cv_objdir" >&6; }
8121 objdir=$lt_cv_objdir
8127 cat >>confdefs.h <<_ACEOF
8128 #define LT_OBJDIR "$lt_cv_objdir/"
8136 # AIX sometimes has problems with the GCC collect2 program. For some
8137 # reason, if we set the COLLECT_NAMES environment variable, the problems
8138 # vanish in a puff of smoke.
8139 if test "X${COLLECT_NAMES+set}" != Xset; then
8141 export COLLECT_NAMES
8148 can_build_shared=yes
8150 # All known linkers require a `.a' archive for static linking (except MSVC,
8151 # which needs '.lib').
8154 with_gnu_ld="$lt_cv_prog_gnu_ld"
8157 old_CFLAGS="$CFLAGS"
8159 # Set sane defaults for various variables
8160 test -z "$CC" && CC=cc
8161 test -z "$LTCC" && LTCC=$CC
8162 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8163 test -z "$LD" && LD=ld
8164 test -z "$ac_objext" && ac_objext=o
8166 for cc_temp in $compiler""; do
8168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8174 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8177 # Only perform the check for file, if the check method requires it
8178 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8179 case $deplibs_check_method in
8181 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8183 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8185 $as_echo_n "(cached) " >&6
8189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8192 lt_save_MAGIC_CMD="$MAGIC_CMD"
8193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8195 for ac_dir in $ac_dummy; do
8197 test -z "$ac_dir" && ac_dir=.
8198 if test -f $ac_dir/${ac_tool_prefix}file; then
8199 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8200 if test -n "$file_magic_test_file"; then
8201 case $deplibs_check_method in
8203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8206 $EGREP "$file_magic_regex" > /dev/null; then
8211 *** Warning: the command libtool uses to detect shared libraries,
8212 *** $file_magic_cmd, produces output that libtool cannot recognize.
8213 *** The result is that libtool may fail to recognize shared libraries
8214 *** as such. This will affect the creation of libtool libraries that
8215 *** depend on shared libraries, but programs linked with such libtool
8216 *** libraries will work regardless of this problem. Nevertheless, you
8217 *** may want to report the problem to your system manager and/or to
8218 *** bug-libtool@gnu.org
8228 MAGIC_CMD="$lt_save_MAGIC_CMD"
8233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8234 if test -n "$MAGIC_CMD"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8236 $as_echo "$MAGIC_CMD" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8246 if test -z "$lt_cv_path_MAGIC_CMD"; then
8247 if test -n "$ac_tool_prefix"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8249 $as_echo_n "checking for file... " >&6; }
8250 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8251 $as_echo_n "(cached) " >&6
8255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258 lt_save_MAGIC_CMD="$MAGIC_CMD"
8259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8261 for ac_dir in $ac_dummy; do
8263 test -z "$ac_dir" && ac_dir=.
8264 if test -f $ac_dir/file; then
8265 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8266 if test -n "$file_magic_test_file"; then
8267 case $deplibs_check_method in
8269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272 $EGREP "$file_magic_regex" > /dev/null; then
8277 *** Warning: the command libtool uses to detect shared libraries,
8278 *** $file_magic_cmd, produces output that libtool cannot recognize.
8279 *** The result is that libtool may fail to recognize shared libraries
8280 *** as such. This will affect the creation of libtool libraries that
8281 *** depend on shared libraries, but programs linked with such libtool
8282 *** libraries will work regardless of this problem. Nevertheless, you
8283 *** may want to report the problem to your system manager and/or to
8284 *** bug-libtool@gnu.org
8294 MAGIC_CMD="$lt_save_MAGIC_CMD"
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if test -n "$MAGIC_CMD"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8302 $as_echo "$MAGIC_CMD" >&6; }
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8318 # Use C for the default configuration in the libtool script
8322 ac_cpp='$CPP $CPPFLAGS'
8323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8328 # Source file extension for C test sources.
8331 # Object file extension for compiled C test sources.
8335 # Code to be used in simple compile tests
8336 lt_simple_compile_test_code="int some_variable = 0;"
8338 # Code to be used in simple link tests
8339 lt_simple_link_test_code='int main(){return(0);}'
8347 # If no C compiler was specified, use CC.
8350 # If no C compiler flags were specified, use CFLAGS.
8351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8353 # Allow CC to be a program name with arguments.
8356 # Save the default compiler, since it gets overwritten when the other
8357 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8358 compiler_DEFAULT=$CC
8360 # save warnings/boilerplate of simple test code
8361 ac_outfile=conftest.$ac_objext
8362 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8364 _lt_compiler_boilerplate=`cat conftest.err`
8367 ac_outfile=conftest.$ac_objext
8368 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8370 _lt_linker_boilerplate=`cat conftest.err`
8375 ## There is no encapsulation within the following macros, do not change
8376 ## the running order or otherwise move them around unless you know exactly
8377 ## what you are doing...
8378 if test -n "$compiler"; then
8380 lt_prog_compiler_no_builtin_flag=
8382 if test "$GCC" = yes; then
8383 case $cc_basename in
8385 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8387 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8391 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8392 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8393 $as_echo_n "(cached) " >&6
8395 lt_cv_prog_compiler_rtti_exceptions=no
8396 ac_outfile=conftest.$ac_objext
8397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8398 lt_compiler_flag="-fno-rtti -fno-exceptions"
8399 # Insert the option either (1) after the last *FLAGS variable, or
8400 # (2) before a word containing "conftest.", or (3) at the end.
8401 # Note that $ac_compile itself does not contain backslashes and begins
8402 # with a dollar sign (not a hyphen), so the echo should work correctly.
8403 # The option is referenced via a variable to avoid confusing sed.
8404 lt_compile=`echo "$ac_compile" | $SED \
8405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8407 -e 's:$: $lt_compiler_flag:'`
8408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8409 (eval "$lt_compile" 2>conftest.err)
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 if (exit $ac_status) && test -s "$ac_outfile"; then
8414 # The compiler can only warn and ignore the option if not recognized
8415 # So say no if there are warnings other than the usual output.
8416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8419 lt_cv_prog_compiler_rtti_exceptions=yes
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8426 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8428 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8429 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8441 lt_prog_compiler_wl=
8442 lt_prog_compiler_pic=
8443 lt_prog_compiler_static=
8446 if test "$GCC" = yes; then
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_static='-static'
8452 # All AIX code is PIC.
8453 if test "$host_cpu" = ia64; then
8454 # AIX 5 now supports IA64 processor
8455 lt_prog_compiler_static='-Bstatic'
8462 # see comment about AmigaOS4 .so support
8463 lt_prog_compiler_pic='-fPIC'
8466 # FIXME: we need at least 68020 code to build shared libraries, but
8467 # adding the `-m68020' flag to GCC prevents building anything better,
8469 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8474 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8475 # PIC is the default for these OSes.
8478 mingw* | cygwin* | pw32* | os2* | cegcc*)
8479 # This hack is so that the source file can tell whether it is being
8480 # built for inclusion in a dll (and should export symbols for example).
8481 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8482 # (--disable-auto-import) libraries
8483 lt_prog_compiler_pic='-DDLL_EXPORT'
8486 darwin* | rhapsody*)
8487 # PIC is the default on this platform
8488 # Common symbols not allowed in MH_DYLIB files
8489 lt_prog_compiler_pic='-fno-common'
8493 # PIC is the default for Haiku.
8494 # The "-static" flag exists, but is broken.
8495 lt_prog_compiler_static=
8499 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8500 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8501 # sets the default TLS model and affects inlining.
8507 lt_prog_compiler_pic='-fPIC'
8513 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8514 # Instead, we relocate shared libraries at runtime.
8518 # Just because we use GCC doesn't mean we suddenly get shared libraries
8519 # on systems that don't support them.
8520 lt_prog_compiler_can_build_shared=no
8525 # QNX uses GNU C++, but need to define -shared option too, otherwise
8527 lt_prog_compiler_pic='-fPIC -shared'
8531 if test -d /usr/nec; then
8532 lt_prog_compiler_pic=-Kconform_pic
8537 lt_prog_compiler_pic='-fPIC'
8541 case $cc_basename in
8542 nvcc*) # Cuda Compiler Driver 2.2
8543 lt_prog_compiler_wl='-Xlinker '
8544 if test -n "$lt_prog_compiler_pic"; then
8545 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8550 # PORTME Check for flag to pass linker flags through the system compiler.
8553 lt_prog_compiler_wl='-Wl,'
8554 if test "$host_cpu" = ia64; then
8555 # AIX 5 now supports IA64 processor
8556 lt_prog_compiler_static='-Bstatic'
8558 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8562 mingw* | cygwin* | pw32* | os2* | cegcc*)
8563 # This hack is so that the source file can tell whether it is being
8564 # built for inclusion in a dll (and should export symbols for example).
8565 lt_prog_compiler_pic='-DDLL_EXPORT'
8568 hpux9* | hpux10* | hpux11*)
8569 lt_prog_compiler_wl='-Wl,'
8570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8577 lt_prog_compiler_pic='+Z'
8580 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8581 lt_prog_compiler_static='${wl}-a ${wl}archive'
8584 irix5* | irix6* | nonstopux*)
8585 lt_prog_compiler_wl='-Wl,'
8586 # PIC (with -KPIC) is the default.
8587 lt_prog_compiler_static='-non_shared'
8590 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8591 case $cc_basename in
8592 # old Intel for x86_64 which still supported -KPIC.
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_pic='-KPIC'
8596 lt_prog_compiler_static='-static'
8598 # icc used to be incompatible with GCC.
8599 # ICC 10 doesn't accept -KPIC any more.
8601 lt_prog_compiler_wl='-Wl,'
8602 lt_prog_compiler_pic='-fPIC'
8603 lt_prog_compiler_static='-static'
8605 # Lahey Fortran 8.1.
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_pic='--shared'
8609 lt_prog_compiler_static='--static'
8612 # NAG Fortran compiler
8613 lt_prog_compiler_wl='-Wl,-Wl,,'
8614 lt_prog_compiler_pic='-PIC'
8615 lt_prog_compiler_static='-Bstatic'
8617 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8618 # Portland Group compilers (*not* the Pentium gcc compiler,
8619 # which looks to be a dead project)
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-fpic'
8622 lt_prog_compiler_static='-Bstatic'
8625 lt_prog_compiler_wl='-Wl,'
8626 # All Alpha code is PIC.
8627 lt_prog_compiler_static='-non_shared'
8629 xl* | bgxl* | bgf* | mpixl*)
8630 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8631 lt_prog_compiler_wl='-Wl,'
8632 lt_prog_compiler_pic='-qpic'
8633 lt_prog_compiler_static='-qstaticlink'
8636 case `$CC -V 2>&1 | sed 5q` in
8637 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8638 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 lt_prog_compiler_wl=''
8643 *Sun\ F* | *Sun*Fortran*)
8644 lt_prog_compiler_pic='-KPIC'
8645 lt_prog_compiler_static='-Bstatic'
8646 lt_prog_compiler_wl='-Qoption ld '
8650 lt_prog_compiler_pic='-KPIC'
8651 lt_prog_compiler_static='-Bstatic'
8652 lt_prog_compiler_wl='-Wl,'
8654 *Intel*\ [CF]*Compiler*)
8655 lt_prog_compiler_wl='-Wl,'
8656 lt_prog_compiler_pic='-fPIC'
8657 lt_prog_compiler_static='-static'
8660 lt_prog_compiler_wl='-Wl,'
8661 lt_prog_compiler_pic='-fpic'
8662 lt_prog_compiler_static='-Bstatic'
8670 lt_prog_compiler_pic='-KPIC'
8671 lt_prog_compiler_static='-Bstatic'
8675 # QNX uses GNU C++, but need to define -shared option too, otherwise
8677 lt_prog_compiler_pic='-fPIC -shared'
8680 osf3* | osf4* | osf5*)
8681 lt_prog_compiler_wl='-Wl,'
8682 # All OSF/1 code is PIC.
8683 lt_prog_compiler_static='-non_shared'
8687 lt_prog_compiler_static='-non_shared'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8693 case $cc_basename in
8694 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8695 lt_prog_compiler_wl='-Qoption ld ';;
8697 lt_prog_compiler_wl='-Wl,';;
8702 lt_prog_compiler_wl='-Qoption ld '
8703 lt_prog_compiler_pic='-PIC'
8704 lt_prog_compiler_static='-Bstatic'
8707 sysv4 | sysv4.2uw2* | sysv4.3*)
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_pic='-KPIC'
8710 lt_prog_compiler_static='-Bstatic'
8714 if test -d /usr/nec ;then
8715 lt_prog_compiler_pic='-Kconform_pic'
8716 lt_prog_compiler_static='-Bstatic'
8720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_can_build_shared=no
8732 lt_prog_compiler_pic='-pic'
8733 lt_prog_compiler_static='-Bstatic'
8737 lt_prog_compiler_can_build_shared=no
8743 # For platforms which do not support PIC, -DPIC is meaningless:
8745 lt_prog_compiler_pic=
8748 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8753 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8754 if ${lt_cv_prog_compiler_pic+:} false; then :
8755 $as_echo_n "(cached) " >&6
8757 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8760 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8761 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8764 # Check to make sure the PIC flag actually works.
8766 if test -n "$lt_prog_compiler_pic"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8768 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8769 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8770 $as_echo_n "(cached) " >&6
8772 lt_cv_prog_compiler_pic_works=no
8773 ac_outfile=conftest.$ac_objext
8774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8776 # Insert the option either (1) after the last *FLAGS variable, or
8777 # (2) before a word containing "conftest.", or (3) at the end.
8778 # Note that $ac_compile itself does not contain backslashes and begins
8779 # with a dollar sign (not a hyphen), so the echo should work correctly.
8780 # The option is referenced via a variable to avoid confusing sed.
8781 lt_compile=`echo "$ac_compile" | $SED \
8782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784 -e 's:$: $lt_compiler_flag:'`
8785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786 (eval "$lt_compile" 2>conftest.err)
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 if (exit $ac_status) && test -s "$ac_outfile"; then
8791 # The compiler can only warn and ignore the option if not recognized
8792 # So say no if there are warnings other than the usual output.
8793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8796 lt_cv_prog_compiler_pic_works=yes
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8803 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8805 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8806 case $lt_prog_compiler_pic in
8808 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8811 lt_prog_compiler_pic=
8812 lt_prog_compiler_can_build_shared=no
8828 # Check to make sure the static flag actually works.
8830 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8832 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8833 if ${lt_cv_prog_compiler_static_works+:} false; then :
8834 $as_echo_n "(cached) " >&6
8836 lt_cv_prog_compiler_static_works=no
8837 save_LDFLAGS="$LDFLAGS"
8838 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8839 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8840 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8841 # The linker can only warn and ignore the option if not recognized
8842 # So say no if there are warnings
8843 if test -s conftest.err; then
8844 # Append any errors to the config.log.
8845 cat conftest.err 1>&5
8846 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8848 if diff conftest.exp conftest.er2 >/dev/null; then
8849 lt_cv_prog_compiler_static_works=yes
8852 lt_cv_prog_compiler_static_works=yes
8856 LDFLAGS="$save_LDFLAGS"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8860 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8862 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8865 lt_prog_compiler_static=
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8875 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8876 if ${lt_cv_prog_compiler_c_o+:} false; then :
8877 $as_echo_n "(cached) " >&6
8879 lt_cv_prog_compiler_c_o=no
8880 $RM -r conftest 2>/dev/null
8884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8886 lt_compiler_flag="-o out/conftest2.$ac_objext"
8887 # Insert the option either (1) after the last *FLAGS variable, or
8888 # (2) before a word containing "conftest.", or (3) at the end.
8889 # Note that $ac_compile itself does not contain backslashes and begins
8890 # with a dollar sign (not a hyphen), so the echo should work correctly.
8891 lt_compile=`echo "$ac_compile" | $SED \
8892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8894 -e 's:$: $lt_compiler_flag:'`
8895 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8896 (eval "$lt_compile" 2>out/conftest.err)
8898 cat out/conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8902 # The compiler can only warn and ignore the option if not recognized
8903 # So say no if there are warnings
8904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8905 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8906 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8907 lt_cv_prog_compiler_c_o=yes
8912 # SGI C++ compiler will create directory out/ii_files/ for
8913 # template instantiation
8914 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8915 $RM out/* && rmdir out
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8922 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8930 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8931 if ${lt_cv_prog_compiler_c_o+:} false; then :
8932 $as_echo_n "(cached) " >&6
8934 lt_cv_prog_compiler_c_o=no
8935 $RM -r conftest 2>/dev/null
8939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8941 lt_compiler_flag="-o out/conftest2.$ac_objext"
8942 # Insert the option either (1) after the last *FLAGS variable, or
8943 # (2) before a word containing "conftest.", or (3) at the end.
8944 # Note that $ac_compile itself does not contain backslashes and begins
8945 # with a dollar sign (not a hyphen), so the echo should work correctly.
8946 lt_compile=`echo "$ac_compile" | $SED \
8947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8949 -e 's:$: $lt_compiler_flag:'`
8950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8951 (eval "$lt_compile" 2>out/conftest.err)
8953 cat out/conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8957 # The compiler can only warn and ignore the option if not recognized
8958 # So say no if there are warnings
8959 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8960 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8961 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8962 lt_cv_prog_compiler_c_o=yes
8967 # SGI C++ compiler will create directory out/ii_files/ for
8968 # template instantiation
8969 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8970 $RM out/* && rmdir out
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8977 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8982 hard_links="nottested"
8983 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8984 # do not overwrite the value of need_locks provided by the user
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8986 $as_echo_n "checking if we can lock with hard links... " >&6; }
8989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8991 ln conftest.a conftest.b 2>&5 || hard_links=no
8992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8994 $as_echo "$hard_links" >&6; }
8995 if test "$hard_links" = no; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8997 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9013 allow_undefined_flag=
9014 always_export_symbols=no
9016 archive_expsym_cmds=
9017 compiler_needs_object=no
9018 enable_shared_with_static_runtimes=no
9019 export_dynamic_flag_spec=
9020 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9021 hardcode_automatic=no
9023 hardcode_direct_absolute=no
9024 hardcode_libdir_flag_spec=
9025 hardcode_libdir_separator=
9027 hardcode_shlibpath_var=unsupported
9029 link_all_deplibs=unknown
9032 old_archive_from_new_cmds=
9033 old_archive_from_expsyms_cmds=
9034 thread_safe_flag_spec=
9035 whole_archive_flag_spec=
9036 # include_expsyms should be a list of space-separated symbols to be *always*
9037 # included in the symbol list
9039 # exclude_expsyms can be an extended regexp of symbols to exclude
9040 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9041 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9042 # as well as any symbol that contains `d'.
9043 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9044 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9045 # platforms (ab)use it in PIC code, but their linkers get confused if
9046 # the symbol is explicitly referenced. Since portable code cannot
9047 # rely on this symbol name, it's probably fine to never include it in
9048 # preloaded symbol tables.
9049 # Exclude shared library initialization/finalization symbols.
9050 extract_expsyms_cmds=
9053 cygwin* | mingw* | pw32* | cegcc*)
9054 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9055 # When not using gcc, we currently assume that we are using
9056 # Microsoft Visual C++.
9057 if test "$GCC" != yes; then
9062 # we just hope/assume this is gcc and not c89 (= MSVC++)
9068 linux* | k*bsd*-gnu | gnu*)
9075 # On some targets, GNU ld is compatible enough with the native linker
9076 # that we're better off using the native interface for both.
9077 lt_use_gnu_ld_interface=no
9078 if test "$with_gnu_ld" = yes; then
9081 # The AIX port of GNU ld has always aspired to compatibility
9082 # with the native linker. However, as the warning in the GNU ld
9083 # block says, versions before 2.19.5* couldn't really create working
9084 # shared libraries, regardless of the interface used.
9085 case `$LD -v 2>&1` in
9086 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9087 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9088 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9090 lt_use_gnu_ld_interface=yes
9095 lt_use_gnu_ld_interface=yes
9100 if test "$lt_use_gnu_ld_interface" = yes; then
9101 # If archive_cmds runs LD, not CC, wlarc should be empty
9104 # Set some defaults for GNU ld with shared library support. These
9105 # are reset later if shared libraries are not supported. Putting them
9106 # here allows them to be overridden if necessary.
9107 runpath_var=LD_RUN_PATH
9108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9109 export_dynamic_flag_spec='${wl}--export-dynamic'
9110 # ancient GNU ld didn't support --whole-archive et. al.
9111 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9114 whole_archive_flag_spec=
9116 supports_anon_versioning=no
9117 case `$LD -v 2>&1` in
9118 *GNU\ gold*) supports_anon_versioning=yes ;;
9119 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9120 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9121 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9122 *\ 2.11.*) ;; # other 2.11 versions
9123 *) supports_anon_versioning=yes ;;
9126 # See if GNU ld supports shared libraries.
9129 # On AIX/PPC, the GNU linker is very broken
9130 if test "$host_cpu" != ia64; then
9134 *** Warning: the GNU linker, at least up to release 2.19, is reported
9135 *** to be unable to reliably create shared libraries on AIX.
9136 *** Therefore, libtool is disabling shared libraries support. If you
9137 *** really care for shared libraries, you may want to install binutils
9138 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9139 *** You will then need to restart the configuration process.
9148 # see comment about AmigaOS4 .so support
9149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150 archive_expsym_cmds=''
9153 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)'
9154 hardcode_libdir_flag_spec='-L$libdir'
9155 hardcode_minus_L=yes
9161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9162 allow_undefined_flag=unsupported
9163 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9164 # support --undefined. This deserves some investigation. FIXME
9165 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171 cygwin* | mingw* | pw32* | cegcc*)
9172 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9173 # as there is no search path for DLLs.
9174 hardcode_libdir_flag_spec='-L$libdir'
9175 export_dynamic_flag_spec='${wl}--export-all-symbols'
9176 allow_undefined_flag=unsupported
9177 always_export_symbols=no
9178 enable_shared_with_static_runtimes=yes
9179 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'
9180 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9182 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9184 # If the export-symbols file already is a .def file (1st line
9185 # is EXPORTS), use it as is; otherwise, prepend...
9186 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9187 cp $export_symbols $output_objdir/$soname.def;
9189 echo EXPORTS > $output_objdir/$soname.def;
9190 cat $export_symbols >> $output_objdir/$soname.def;
9192 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 link_all_deplibs=yes
9205 hardcode_shlibpath_var=no
9206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207 export_dynamic_flag_spec='${wl}-E'
9208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9209 # Instead, shared libraries are loaded at an image base (0x10000000 by
9210 # default) and relocated if they conflict, which is a slow very memory
9211 # consuming and fragmenting process. To avoid this, we pick a random,
9212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9215 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'
9218 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9220 if test "$host_os" = linux-dietlibc; then
9221 case $cc_basename in
9222 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9225 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9226 && test "$tmp_diet" = no
9228 tmp_addflag=' $pic_flag'
9229 tmp_sharedflag='-shared'
9230 case $cc_basename,$host_cpu in
9231 pgcc*) # Portland Group C compiler
9232 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'
9233 tmp_addflag=' $pic_flag'
9235 pgf77* | pgf90* | pgf95* | pgfortran*)
9236 # Portland Group f77 and f90 compilers
9237 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'
9238 tmp_addflag=' $pic_flag -Mnomain' ;;
9239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9240 tmp_addflag=' -i_dynamic' ;;
9241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9242 tmp_addflag=' -i_dynamic -nofor_main' ;;
9243 ifc* | ifort*) # Intel Fortran compiler
9244 tmp_addflag=' -nofor_main' ;;
9245 lf95*) # Lahey Fortran 8.1
9246 whole_archive_flag_spec=
9247 tmp_sharedflag='--shared' ;;
9248 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9249 tmp_sharedflag='-qmkshrobj'
9251 nvcc*) # Cuda Compiler Driver 2.2
9252 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'
9253 compiler_needs_object=yes
9256 case `$CC -V 2>&1 | sed 5q` in
9257 *Sun\ C*) # Sun C 5.9
9258 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'
9259 compiler_needs_object=yes
9260 tmp_sharedflag='-G' ;;
9261 *Sun\ F*) # Sun Fortran 8.3
9262 tmp_sharedflag='-G' ;;
9264 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 if test "x$supports_anon_versioning" = xyes; then
9267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9269 echo "local: *; };" >> $output_objdir/$libname.ver~
9270 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9273 case $cc_basename in
9274 xlf* | bgf* | bgxlf* | mpixlf*)
9275 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9276 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9279 if test "x$supports_anon_versioning" = xyes; then
9280 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9282 echo "local: *; };" >> $output_objdir/$libname.ver~
9283 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9292 netbsd* | netbsdelf*-gnu)
9293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9303 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9308 *** create shared libraries on Solaris systems. Therefore, libtool
9309 *** is disabling shared libraries support. We urge you to upgrade GNU
9310 *** binutils to release 2.9.1 or newer. Another option is to modify
9311 *** your PATH or compiler configuration so that the native linker is
9312 *** used, and then restart.
9315 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9324 case `$LD -v 2>&1` in
9325 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9329 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9330 *** reliably create shared libraries on SCO systems. Therefore, libtool
9331 *** is disabling shared libraries support. We urge you to upgrade GNU
9332 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9333 *** your PATH or compiler configuration so that the native linker is
9334 *** used, and then restart.
9339 # For security reasons, it is highly recommended that you always
9340 # use absolute paths for naming shared libraries, and exclude the
9341 # DT_RUNPATH tag from executables and libraries. But doing so
9342 # requires that you compile everything twice, which is a pain.
9343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_shlibpath_var=no
9362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9371 if test "$ld_shlibs" = no; then
9373 hardcode_libdir_flag_spec=
9374 export_dynamic_flag_spec=
9375 whole_archive_flag_spec=
9378 # PORTME fill in a description of your system's linker (not GNU ld)
9381 allow_undefined_flag=unsupported
9382 always_export_symbols=yes
9383 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'
9384 # Note: this linker hardcodes the directories in LIBPATH if there
9385 # are no directories specified by -L.
9386 hardcode_minus_L=yes
9387 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9388 # Neither direct hardcoding nor static linking is supported with a
9390 hardcode_direct=unsupported
9395 if test "$host_cpu" = ia64; then
9396 # On IA64, the linker does run time linking by default, so we don't
9397 # have to do anything special.
9398 aix_use_runtimelinking=no
9399 exp_sym_flag='-Bexport'
9402 # If we're using GNU nm, then we don't want the "-C" option.
9403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9404 # Also, AIX nm treats weak defined symbols like other global
9405 # defined symbols, whereas GNU nm marks them as "W".
9406 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9407 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'
9409 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'
9411 aix_use_runtimelinking=no
9413 # Test if we are trying to use run time linking or normal
9414 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9415 # need to do runtime linking.
9416 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9417 for ld_flag in $LDFLAGS; do
9418 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9419 aix_use_runtimelinking=yes
9426 exp_sym_flag='-bexport'
9427 no_entry_flag='-bnoentry'
9430 # When large executables or shared objects are built, AIX ld can
9431 # have problems creating the table of contents. If linking a library
9432 # or program results in "error TOC overflow" add -mminimal-toc to
9433 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9434 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9438 hardcode_direct_absolute=yes
9439 hardcode_libdir_separator=':'
9440 link_all_deplibs=yes
9441 file_list_spec='${wl}-f,'
9443 if test "$GCC" = yes; then
9444 case $host_os in aix4.[012]|aix4.[012].*)
9445 # We only want to do this on AIX 4.2 and lower, the check
9446 # below for broken collect2 doesn't work under 4.3+
9447 collect2name=`${CC} -print-prog-name=collect2`
9448 if test -f "$collect2name" &&
9449 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9451 # We have reworked collect2
9454 # We have old collect2
9455 hardcode_direct=unsupported
9456 # It fails to find uninstalled libraries when the uninstalled
9457 # path is not listed in the libpath. Setting hardcode_minus_L
9458 # to unsupported forces relinking
9459 hardcode_minus_L=yes
9460 hardcode_libdir_flag_spec='-L$libdir'
9461 hardcode_libdir_separator=
9465 shared_flag='-shared'
9466 if test "$aix_use_runtimelinking" = yes; then
9467 shared_flag="$shared_flag "'${wl}-G'
9472 if test "$host_cpu" = ia64; then
9473 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9474 # chokes on -Wl,-G. The following line is correct:
9477 if test "$aix_use_runtimelinking" = yes; then
9478 shared_flag='${wl}-G'
9480 shared_flag='${wl}-bM:SRE'
9485 export_dynamic_flag_spec='${wl}-bexpall'
9486 # It seems that -bexpall does not export symbols beginning with
9487 # underscore (_), so it is better to generate a list of symbols to export.
9488 always_export_symbols=yes
9489 if test "$aix_use_runtimelinking" = yes; then
9490 # Warning - without using the other runtime loading flags (-brtl),
9491 # -berok will link without error, but may produce a broken library.
9492 allow_undefined_flag='-berok'
9493 # Determine the default libpath from the value encoded in an
9495 if test "${lt_cv_aix_libpath+set}" = set; then
9496 aix_libpath=$lt_cv_aix_libpath
9498 if ${lt_cv_aix_libpath_+:} false; then :
9499 $as_echo_n "(cached) " >&6
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9512 if ac_fn_c_try_link "$LINENO"; then :
9514 lt_aix_libpath_sed='
9515 /Import File Strings/,/^$/ {
9517 s/^0 *\([^ ]*\) *$/\1/
9521 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522 # Check for a 64-bit object if we didn't find anything.
9523 if test -z "$lt_cv_aix_libpath_"; then
9524 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9527 rm -f core conftest.err conftest.$ac_objext \
9528 conftest$ac_exeext conftest.$ac_ext
9529 if test -z "$lt_cv_aix_libpath_"; then
9530 lt_cv_aix_libpath_="/usr/lib:/lib"
9535 aix_libpath=$lt_cv_aix_libpath_
9538 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9539 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"
9541 if test "$host_cpu" = ia64; then
9542 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9543 allow_undefined_flag="-z nodefs"
9544 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"
9546 # Determine the default libpath from the value encoded in an
9548 if test "${lt_cv_aix_libpath+set}" = set; then
9549 aix_libpath=$lt_cv_aix_libpath
9551 if ${lt_cv_aix_libpath_+:} false; then :
9552 $as_echo_n "(cached) " >&6
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9565 if ac_fn_c_try_link "$LINENO"; then :
9567 lt_aix_libpath_sed='
9568 /Import File Strings/,/^$/ {
9570 s/^0 *\([^ ]*\) *$/\1/
9574 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9575 # Check for a 64-bit object if we didn't find anything.
9576 if test -z "$lt_cv_aix_libpath_"; then
9577 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580 rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582 if test -z "$lt_cv_aix_libpath_"; then
9583 lt_cv_aix_libpath_="/usr/lib:/lib"
9588 aix_libpath=$lt_cv_aix_libpath_
9591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9592 # Warning - without using the other run time loading flags,
9593 # -berok will link without error, but may produce a broken library.
9594 no_undefined_flag=' ${wl}-bernotok'
9595 allow_undefined_flag=' ${wl}-berok'
9596 if test "$with_gnu_ld" = yes; then
9597 # We only use this code for GNU lds that support --whole-archive.
9598 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9600 # Exported symbols can be pulled into shared objects from archives
9601 whole_archive_flag_spec='$convenience'
9603 archive_cmds_need_lc=yes
9604 # This is similar to how AIX traditionally builds its shared libraries.
9605 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'
9613 # see comment about AmigaOS4 .so support
9614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615 archive_expsym_cmds=''
9618 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)'
9619 hardcode_libdir_flag_spec='-L$libdir'
9620 hardcode_minus_L=yes
9626 export_dynamic_flag_spec=-rdynamic
9629 cygwin* | mingw* | pw32* | cegcc*)
9630 # When not using gcc, we currently assume that we are using
9631 # Microsoft Visual C++.
9632 # hardcode_libdir_flag_spec is actually meaningless, as there is
9633 # no search path for DLLs.
9634 case $cc_basename in
9637 hardcode_libdir_flag_spec=' '
9638 allow_undefined_flag=unsupported
9639 always_export_symbols=yes
9641 # Tell ltmain to make .lib files, not .a files.
9643 # Tell ltmain to make .dll files, not .so files.
9645 # FIXME: Setting linknames here is a bad hack.
9646 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9647 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9648 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9650 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9652 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9654 # The linker will not automatically build a static lib if we build a DLL.
9655 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9656 enable_shared_with_static_runtimes=yes
9657 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9660 old_postinstall_cmds='chmod 644 $oldlib'
9661 postlink_cmds='lt_outputfile="@OUTPUT@"~
9662 lt_tool_outputfile="@TOOL_OUTPUT@"~
9663 case $lt_outputfile in
9666 lt_outputfile="$lt_outputfile.exe"
9667 lt_tool_outputfile="$lt_tool_outputfile.exe"
9670 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9671 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9672 $RM "$lt_outputfile.manifest";
9676 # Assume MSVC wrapper
9677 hardcode_libdir_flag_spec=' '
9678 allow_undefined_flag=unsupported
9679 # Tell ltmain to make .lib files, not .a files.
9681 # Tell ltmain to make .dll files, not .so files.
9683 # FIXME: Setting linknames here is a bad hack.
9684 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9685 # The linker will automatically build a .lib file if we build a DLL.
9686 old_archive_from_new_cmds='true'
9687 # FIXME: Should let the user specify the lib program.
9688 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9689 enable_shared_with_static_runtimes=yes
9694 darwin* | rhapsody*)
9697 archive_cmds_need_lc=no
9699 hardcode_automatic=yes
9700 hardcode_shlibpath_var=unsupported
9701 if test "$lt_cv_ld_force_load" = "yes"; then
9702 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\"`'
9705 whole_archive_flag_spec=''
9707 link_all_deplibs=yes
9708 allow_undefined_flag="$_lt_dar_allow_undefined"
9709 case $cc_basename in
9710 ifort*) _lt_dar_can_shared=yes ;;
9711 *) _lt_dar_can_shared=$GCC ;;
9713 if test "$_lt_dar_can_shared" = "yes"; then
9714 output_verbose_link_cmd=func_echo_all
9715 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9716 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9717 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}"
9718 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}"
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_shlibpath_var=no
9732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9733 # support. Future versions do this automatically, but an explicit c++rt0.o
9734 # does not break anything, and helps significantly (at the cost of a little
9737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9738 hardcode_libdir_flag_spec='-R$libdir'
9740 hardcode_shlibpath_var=no
9743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_minus_L=yes
9748 hardcode_shlibpath_var=no
9751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9752 freebsd* | dragonfly*)
9753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9754 hardcode_libdir_flag_spec='-R$libdir'
9756 hardcode_shlibpath_var=no
9760 if test "$GCC" = yes; then
9761 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'
9763 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'
9765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9766 hardcode_libdir_separator=:
9769 # hardcode_minus_L: Not really in the search PATH,
9770 # but as the default location of the library.
9771 hardcode_minus_L=yes
9772 export_dynamic_flag_spec='${wl}-E'
9776 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9777 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9779 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9781 if test "$with_gnu_ld" = no; then
9782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9783 hardcode_libdir_separator=:
9785 hardcode_direct_absolute=yes
9786 export_dynamic_flag_spec='${wl}-E'
9787 # hardcode_minus_L: Not really in the search PATH,
9788 # but as the default location of the library.
9789 hardcode_minus_L=yes
9794 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9797 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9803 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9809 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9816 # Older versions of the 11.00 compiler do not understand -b yet
9817 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9819 $as_echo_n "checking if $CC understands -b... " >&6; }
9820 if ${lt_cv_prog_compiler__b+:} false; then :
9821 $as_echo_n "(cached) " >&6
9823 lt_cv_prog_compiler__b=no
9824 save_LDFLAGS="$LDFLAGS"
9825 LDFLAGS="$LDFLAGS -b"
9826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9828 # The linker can only warn and ignore the option if not recognized
9829 # So say no if there are warnings
9830 if test -s conftest.err; then
9831 # Append any errors to the config.log.
9832 cat conftest.err 1>&5
9833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9835 if diff conftest.exp conftest.er2 >/dev/null; then
9836 lt_cv_prog_compiler__b=yes
9839 lt_cv_prog_compiler__b=yes
9843 LDFLAGS="$save_LDFLAGS"
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9847 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9849 if test x"$lt_cv_prog_compiler__b" = xyes; then
9850 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9858 if test "$with_gnu_ld" = no; then
9859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860 hardcode_libdir_separator=:
9865 hardcode_shlibpath_var=no
9869 hardcode_direct_absolute=yes
9870 export_dynamic_flag_spec='${wl}-E'
9872 # hardcode_minus_L: Not really in the search PATH,
9873 # but as the default location of the library.
9874 hardcode_minus_L=yes
9880 irix5* | irix6* | nonstopux*)
9881 if test "$GCC" = yes; then
9882 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'
9883 # Try to use the -exported_symbol ld option, if it does not
9884 # work, assume that -exports_file does not work either and
9885 # implicitly export all symbols.
9886 # This should be the same for all languages, so no per-tag cache variable.
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9888 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9889 if ${lt_cv_irix_exported_symbol+:} false; then :
9890 $as_echo_n "(cached) " >&6
9892 save_LDFLAGS="$LDFLAGS"
9893 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 int foo (void) { return 0; }
9898 if ac_fn_c_try_link "$LINENO"; then :
9899 lt_cv_irix_exported_symbol=yes
9901 lt_cv_irix_exported_symbol=no
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905 LDFLAGS="$save_LDFLAGS"
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9908 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9909 if test "$lt_cv_irix_exported_symbol" = yes; then
9910 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'
9913 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'
9914 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'
9916 archive_cmds_need_lc='no'
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918 hardcode_libdir_separator=:
9920 link_all_deplibs=yes
9923 netbsd* | netbsdelf*-gnu)
9924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9927 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9929 hardcode_libdir_flag_spec='-R$libdir'
9931 hardcode_shlibpath_var=no
9935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938 hardcode_libdir_separator=:
9939 hardcode_shlibpath_var=no
9946 if test -f /usr/libexec/ld.so; then
9948 hardcode_shlibpath_var=no
9949 hardcode_direct_absolute=yes
9950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9952 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9954 export_dynamic_flag_spec='${wl}-E'
9957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9959 hardcode_libdir_flag_spec='-R$libdir'
9962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9973 hardcode_libdir_flag_spec='-L$libdir'
9974 hardcode_minus_L=yes
9975 allow_undefined_flag=unsupported
9976 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'
9977 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9981 if test "$GCC" = yes; then
9982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9983 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'
9985 allow_undefined_flag=' -expect_unresolved \*'
9986 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'
9988 archive_cmds_need_lc='no'
9989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990 hardcode_libdir_separator=:
9993 osf4* | osf5*) # as osf3* with the addition of -msym flag
9994 if test "$GCC" = yes; then
9995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9996 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'
9997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999 allow_undefined_flag=' -expect_unresolved \*'
10000 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'
10001 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~
10002 $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'
10004 # Both c and cxx compiler support -rpath directly
10005 hardcode_libdir_flag_spec='-rpath $libdir'
10007 archive_cmds_need_lc='no'
10008 hardcode_libdir_separator=:
10012 no_undefined_flag=' -z defs'
10013 if test "$GCC" = yes; then
10015 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10017 $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'
10019 case `$CC -V 2>&1` in
10022 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10024 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10028 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10030 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10034 hardcode_libdir_flag_spec='-R$libdir'
10035 hardcode_shlibpath_var=no
10037 solaris2.[0-5] | solaris2.[0-5].*) ;;
10039 # The compiler driver will combine and reorder linker options,
10040 # but understands `-z linker_flag'. GCC discards it without `$wl',
10041 # but is careful enough not to reorder.
10042 # Supported since Solaris 2.6 (maybe 2.5.1?)
10043 if test "$GCC" = yes; then
10044 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10046 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10050 link_all_deplibs=yes
10054 if test "x$host_vendor" = xsequent; then
10055 # Use $CC to link under sequent, because it throws in some extra .o
10056 # files that make .init and .fini sections work.
10057 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_libdir_flag_spec='-L$libdir'
10062 hardcode_direct=yes
10063 hardcode_minus_L=yes
10064 hardcode_shlibpath_var=no
10068 case $host_vendor in
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_direct=yes # is this really true???
10074 ## LD is ld it makes a PLAMLIB
10075 ## CC just makes a GrossModule.
10076 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10077 reload_cmds='$CC -r -o $output$reload_objs'
10081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10085 runpath_var='LD_RUN_PATH'
10086 hardcode_shlibpath_var=no
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_shlibpath_var=no
10092 export_dynamic_flag_spec='-Bexport'
10096 if test -d /usr/nec; then
10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_shlibpath_var=no
10099 runpath_var=LD_RUN_PATH
10100 hardcode_runpath_var=yes
10105 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10106 no_undefined_flag='${wl}-z,text'
10107 archive_cmds_need_lc=no
10108 hardcode_shlibpath_var=no
10109 runpath_var='LD_RUN_PATH'
10111 if test "$GCC" = yes; then
10112 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 sysv5* | sco3.2v5* | sco5v6*)
10121 # Note: We can NOT use -z defs as we might desire, because we do not
10122 # link with -lc, and that would cause any symbols used from libc to
10123 # always be unresolved, which means just about no library would
10124 # ever link correctly. If we're not using GNU ld we use -z text
10125 # though, which does catch some bad symbols but isn't as heavy-handed
10127 no_undefined_flag='${wl}-z,text'
10128 allow_undefined_flag='${wl}-z,nodefs'
10129 archive_cmds_need_lc=no
10130 hardcode_shlibpath_var=no
10131 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10132 hardcode_libdir_separator=':'
10133 link_all_deplibs=yes
10134 export_dynamic_flag_spec='${wl}-Bexport'
10135 runpath_var='LD_RUN_PATH'
10137 if test "$GCC" = yes; then
10138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148 hardcode_libdir_flag_spec='-L$libdir'
10149 hardcode_shlibpath_var=no
10157 if test x$host_vendor = xsni; then
10159 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10160 export_dynamic_flag_spec='${wl}-Blargedynsym'
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10167 $as_echo "$ld_shlibs" >&6; }
10168 test "$ld_shlibs" = no && can_build_shared=no
10170 with_gnu_ld=$with_gnu_ld
10187 # Do we need to explicitly link libc?
10189 case "x$archive_cmds_need_lc" in
10191 # Assume -lc should be added
10192 archive_cmds_need_lc=yes
10194 if test "$enable_shared" = yes && test "$GCC" = yes; then
10195 case $archive_cmds in
10197 # FIXME: we may have to deal with multi-command sequences.
10200 # Test whether the compiler implicitly links with -lc since on some
10201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10202 # to ld, don't add -lc before -lgcc.
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10204 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10205 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10206 $as_echo_n "(cached) " >&6
10209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10212 (eval $ac_compile) 2>&5
10214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215 test $ac_status = 0; } 2>conftest.err; then
10218 libobjs=conftest.$ac_objext
10220 wl=$lt_prog_compiler_wl
10221 pic_flag=$lt_prog_compiler_pic
10227 lt_save_allow_undefined_flag=$allow_undefined_flag
10228 allow_undefined_flag=
10229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10230 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10233 test $ac_status = 0; }
10235 lt_cv_archive_cmds_need_lc=no
10237 lt_cv_archive_cmds_need_lc=yes
10239 allow_undefined_flag=$lt_save_allow_undefined_flag
10241 cat conftest.err 1>&5
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10247 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10248 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10407 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10409 if test "$GCC" = yes; then
10411 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10412 *) lt_awk_arg="/^libraries:/" ;;
10415 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10416 *) lt_sed_strip_eq="s,=/,/,g" ;;
10418 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10419 case $lt_search_path_spec in
10421 # if the path contains ";" then we assume it to be the separator
10422 # otherwise default to the standard path separator (i.e. ":") - it is
10423 # assumed that no part of a normal pathname contains ";" but that should
10424 # okay in the real world where ";" in dirpaths is itself problematic.
10425 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10428 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10431 # Ok, now we have the path, separated by spaces, we can step through it
10432 # and add multilib dir if necessary.
10433 lt_tmp_lt_search_path_spec=
10434 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10435 for lt_sys_path in $lt_search_path_spec; do
10436 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10437 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10439 test -d "$lt_sys_path" && \
10440 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10443 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10444 BEGIN {RS=" "; FS="/|\n";} {
10447 for (lt_i = NF; lt_i > 0; lt_i--) {
10448 if ($lt_i != "" && $lt_i != ".") {
10449 if ($lt_i == "..") {
10452 if (lt_count == 0) {
10453 lt_foo="/" $lt_i lt_foo;
10460 if (lt_foo != "") { lt_freq[lt_foo]++; }
10461 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10463 # AWK program above erroneously prepends '/' to C:/dos/paths
10466 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10467 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10469 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10473 library_names_spec=
10474 libname_spec='lib$name'
10478 postuninstall_cmds=
10482 shlibpath_overrides_runpath=unknown
10484 dynamic_linker="$host_os ld.so"
10485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10486 need_lib_prefix=unknown
10487 hardcode_into_libs=no
10489 # when you set need_version to no, make sure it does not cause -set_version
10490 # flags to be left without arguments
10491 need_version=unknown
10495 version_type=linux # correct to gnu/linux during the next big refactor
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10497 shlibpath_var=LIBPATH
10499 # AIX 3 has no versioning support, so we append a major version to the name.
10500 soname_spec='${libname}${release}${shared_ext}$major'
10504 version_type=linux # correct to gnu/linux during the next big refactor
10507 hardcode_into_libs=yes
10508 if test "$host_cpu" = ia64; then
10509 # AIX 5 supports IA64
10510 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10511 shlibpath_var=LD_LIBRARY_PATH
10513 # With GCC up to 2.95.x, collect2 would create an import file
10514 # for dependence libraries. The import file would start with
10515 # the line `#! .'. This would cause the generated library to
10516 # depend on `.', always an invalid library. This was fixed in
10517 # development snapshots of GCC prior to 3.0.
10519 aix4 | aix4.[01] | aix4.[01].*)
10520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10522 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10525 can_build_shared=no
10529 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10530 # soname into executable. Probably we can add versioning support to
10531 # collect2, so additional links can be useful in future.
10532 if test "$aix_use_runtimelinking" = yes; then
10533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10534 # instead of lib<name>.a to let people know that these are not
10535 # typical AIX shared libraries.
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 # We preserve .a as extension for shared libraries through AIX4.2
10539 # and later when we are not doing run time linking.
10540 library_names_spec='${libname}${release}.a $libname.a'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10543 shlibpath_var=LIBPATH
10550 # Since July 2007 AmigaOS4 officially supports .so libraries.
10551 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 library_names_spec='$libname.ixlibrary $libname.a'
10556 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10557 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'
10563 library_names_spec='${libname}${shared_ext}'
10564 dynamic_linker="$host_os ld.so"
10565 shlibpath_var=LIBRARY_PATH
10569 version_type=linux # correct to gnu/linux during the next big refactor
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10576 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10577 # the default ld.so.conf also contains /usr/contrib/lib and
10578 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10579 # libtool to hard-code these into programs
10582 cygwin* | mingw* | pw32* | cegcc*)
10583 version_type=windows
10588 case $GCC,$cc_basename in
10591 library_names_spec='$libname.dll.a'
10592 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10593 postinstall_cmds='base_file=`basename \${file}`~
10594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10595 dldir=$destdir/`dirname \$dlpath`~
10596 test -d \$dldir || mkdir -p \$dldir~
10597 $install_prog $dir/$dlname \$dldir/$dlname~
10598 chmod a+x \$dldir/$dlname~
10599 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10600 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10603 dlpath=$dir/\$dldll~
10605 shlibpath_overrides_runpath=yes
10609 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10612 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10615 # MinGW DLLs use traditional 'lib' prefix
10616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10619 # pw32 DLLs use 'pw' prefix rather than 'lib'
10620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10623 dynamic_linker='Win32 ld.exe'
10628 libname_spec='$name'
10629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10630 library_names_spec='${libname}.dll.lib'
10634 sys_lib_search_path_spec=
10637 for lt_path in $LIB
10640 # Let DOS variable expansion print the short 8.3 style file name.
10641 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10642 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10645 # Convert to MSYS style.
10646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10649 # Convert to unix form, then to dos form, then back to unix form
10650 # but this time dos style (no spaces!) so that the unix form looks
10651 # like /cygdrive/c/PROGRA~1:/cygdr...
10652 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10653 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10654 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10657 sys_lib_search_path_spec="$LIB"
10658 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10659 # It is most probably a Windows format PATH.
10660 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10664 # FIXME: find the short name or the path components, as spaces are
10665 # common. (e.g. "Program Files" -> "PROGRA~1")
10669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10670 postinstall_cmds='base_file=`basename \${file}`~
10671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10672 dldir=$destdir/`dirname \$dlpath`~
10673 test -d \$dldir || mkdir -p \$dldir~
10674 $install_prog $dir/$dlname \$dldir/$dlname'
10675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10676 dlpath=$dir/\$dldll~
10678 shlibpath_overrides_runpath=yes
10679 dynamic_linker='Win32 link.exe'
10683 # Assume MSVC wrapper
10684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10685 dynamic_linker='Win32 ld.exe'
10688 # FIXME: first we should search . and the directory the executable is in
10692 darwin* | rhapsody*)
10693 dynamic_linker="$host_os dyld"
10694 version_type=darwin
10697 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10698 soname_spec='${libname}${release}${major}$shared_ext'
10699 shlibpath_overrides_runpath=yes
10700 shlibpath_var=DYLD_LIBRARY_PATH
10701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10703 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10708 version_type=linux # correct to gnu/linux during the next big refactor
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10716 freebsd* | dragonfly*)
10717 # DragonFly does not have aout. When/if they implement a new
10718 # versioning mechanism, adjust this.
10719 if test -x /usr/bin/objformat; then
10720 objformat=`/usr/bin/objformat`
10723 freebsd[23].*) objformat=aout ;;
10724 *) objformat=elf ;;
10727 version_type=freebsd-$objformat
10728 case $version_type in
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10739 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=yes
10744 freebsd3.[01]* | freebsdelf3.[01]*)
10745 shlibpath_overrides_runpath=yes
10746 hardcode_into_libs=yes
10748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10750 shlibpath_overrides_runpath=no
10751 hardcode_into_libs=yes
10753 *) # from 4.6 on, and DragonFly
10754 shlibpath_overrides_runpath=yes
10755 hardcode_into_libs=yes
10761 version_type=linux # correct to gnu/linux during the next big refactor
10764 dynamic_linker="$host_os runtime_loader"
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 shlibpath_var=LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes
10769 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10770 hardcode_into_libs=yes
10773 hpux9* | hpux10* | hpux11*)
10774 # Give a soname corresponding to the major version so that dld.sl refuses to
10775 # link against other versions.
10782 hardcode_into_libs=yes
10783 dynamic_linker="$host_os dld.so"
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 if test "X$HPUX_IA64_MODE" = X32; then
10789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10797 hardcode_into_libs=yes
10798 dynamic_linker="$host_os dld.sl"
10799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10808 dynamic_linker="$host_os dld.sl"
10809 shlibpath_var=SHLIB_PATH
10810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10815 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10816 postinstall_cmds='chmod 555 $lib'
10817 # or fails outright, so override atomically:
10818 install_override_mode=555
10822 version_type=linux # correct to gnu/linux during the next big refactor
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10826 soname_spec='${libname}${release}${shared_ext}$major'
10827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=no
10830 hardcode_into_libs=yes
10833 irix5* | irix6* | nonstopux*)
10835 nonstopux*) version_type=nonstopux ;;
10837 if test "$lt_cv_prog_gnu_ld" = yes; then
10838 version_type=linux # correct to gnu/linux during the next big refactor
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10848 irix5* | nonstopux*)
10849 libsuff= shlibsuff=
10852 case $LD in # libtool.m4 will add one of these switches to LD
10853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10854 libsuff= shlibsuff= libmagic=32-bit;;
10855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10856 libsuff=32 shlibsuff=N32 libmagic=N32;;
10857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10859 *) libsuff= shlibsuff= libmagic=never-match;;
10863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10864 shlibpath_overrides_runpath=no
10865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10867 hardcode_into_libs=yes
10870 # No shared lib support for Linux oldld, aout, or coff.
10871 linux*oldld* | linux*aout* | linux*coff*)
10875 # This must be glibc/ELF.
10876 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10877 version_type=linux # correct to gnu/linux during the next big refactor
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=no
10886 # Some binutils ld are patched to set DT_RUNPATH
10887 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10888 $as_echo_n "(cached) " >&6
10890 lt_cv_shlibpath_overrides_runpath=no
10891 save_LDFLAGS=$LDFLAGS
10892 save_libdir=$libdir
10893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10908 lt_cv_shlibpath_overrides_runpath=yes
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LDFLAGS=$save_LDFLAGS
10914 libdir=$save_libdir
10918 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10920 # This implies no fast_install, which is unacceptable.
10921 # Some rework will be needed to allow for fast_install
10922 # before this can be enabled.
10923 hardcode_into_libs=yes
10925 # Append ld.so.conf contents to the search path
10926 if test -f /etc/ld.so.conf; then
10927 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' ' '`
10928 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10931 # We used to test for /lib/ld.so.1 and disable shared libraries on
10932 # powerpc, because MkLinux only supported shared libraries with the
10933 # GNU dynamic linker. Since this was broken with cross compilers,
10934 # most powerpc-linux boxes support dynamic linking these days and
10935 # people can always --disable-shared, the test was removed, and we
10936 # assume the GNU/Linux dynamic linker is in use.
10937 dynamic_linker='GNU/Linux ld.so'
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath=no
10948 hardcode_into_libs=yes
10949 dynamic_linker='NetBSD ld.elf_so'
10956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10959 dynamic_linker='NetBSD (a.out) ld.so'
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 dynamic_linker='NetBSD ld.elf_so'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10967 hardcode_into_libs=yes
10971 version_type=linux # correct to gnu/linux during the next big refactor
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=yes
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath=no
10985 hardcode_into_libs=yes
10986 dynamic_linker='ldqnx.so'
10991 sys_lib_dlsearch_path_spec="/usr/lib"
10993 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10995 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10996 *) need_version=no ;;
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11003 openbsd2.[89] | openbsd2.[89].*)
11004 shlibpath_overrides_runpath=no
11007 shlibpath_overrides_runpath=yes
11011 shlibpath_overrides_runpath=yes
11016 libname_spec='$name'
11019 library_names_spec='$libname${shared_ext} $libname.a'
11020 dynamic_linker='OS/2 ld.exe'
11021 shlibpath_var=LIBPATH
11024 osf3* | osf4* | osf5*)
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11032 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11040 version_type=linux # correct to gnu/linux during the next big refactor
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes
11047 hardcode_into_libs=yes
11048 # ldd complains unless libraries are executable
11049 postinstall_cmds='chmod +x $lib'
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 if test "$with_gnu_ld" = yes; then
11065 version_type=linux # correct to gnu/linux during the next big refactor
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 case $host_vendor in
11071 shlibpath_overrides_runpath=no
11073 runpath_var=LD_RUN_PATH
11081 shlibpath_overrides_runpath=no
11082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11088 if test -d /usr/nec ;then
11089 version_type=linux # correct to gnu/linux during the next big refactor
11090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11091 soname_spec='$libname${shared_ext}.$major'
11092 shlibpath_var=LD_LIBRARY_PATH
11096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11097 version_type=freebsd-elf
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11104 hardcode_into_libs=yes
11105 if test "$with_gnu_ld" = yes; then
11106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11115 sys_lib_dlsearch_path_spec='/usr/lib'
11119 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11120 version_type=linux # correct to gnu/linux during the next big refactor
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=no
11126 hardcode_into_libs=yes
11130 version_type=linux # correct to gnu/linux during the next big refactor
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11141 $as_echo "$dynamic_linker" >&6; }
11142 test "$dynamic_linker" = no && can_build_shared=no
11144 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11145 if test "$GCC" = yes; then
11146 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11149 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11150 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11152 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11153 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11248 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11250 if test -n "$hardcode_libdir_flag_spec" ||
11251 test -n "$runpath_var" ||
11252 test "X$hardcode_automatic" = "Xyes" ; then
11254 # We can hardcode non-existent directories.
11255 if test "$hardcode_direct" != no &&
11256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11257 # have to relink, otherwise we might link with an installed library
11258 # when we should be linking with a yet-to-be-installed one
11259 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11260 test "$hardcode_minus_L" != no; then
11261 # Linking always hardcodes the temporary library directory.
11262 hardcode_action=relink
11264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11265 hardcode_action=immediate
11268 # We cannot hardcode anything, or else we can only hardcode existing
11270 hardcode_action=unsupported
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11273 $as_echo "$hardcode_action" >&6; }
11275 if test "$hardcode_action" = relink ||
11276 test "$inherit_rpath" = yes; then
11277 # Fast installation is not supported
11278 enable_fast_install=no
11279 elif test "$shlibpath_overrides_runpath" = yes ||
11280 test "$enable_shared" = no; then
11281 # Fast installation is not necessary
11282 enable_fast_install=needless
11290 if test "x$enable_dlopen" != xyes; then
11291 enable_dlopen=unknown
11292 enable_dlopen_self=unknown
11293 enable_dlopen_self_static=unknown
11300 lt_cv_dlopen="load_add_on"
11302 lt_cv_dlopen_self=yes
11305 mingw* | pw32* | cegcc*)
11306 lt_cv_dlopen="LoadLibrary"
11311 lt_cv_dlopen="dlopen"
11316 # if libdl is installed we need to link against it
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11318 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11319 if ${ac_cv_lib_dl_dlopen+:} false; then :
11320 $as_echo_n "(cached) " >&6
11322 ac_check_lib_save_LIBS=$LIBS
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11327 /* Override any GCC internal prototype to avoid an error.
11328 Use char because int might match the return type of a GCC
11329 builtin and then its argument prototype would still apply. */
11342 if ac_fn_c_try_link "$LINENO"; then :
11343 ac_cv_lib_dl_dlopen=yes
11345 ac_cv_lib_dl_dlopen=no
11347 rm -f core conftest.err conftest.$ac_objext \
11348 conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11352 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11353 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11357 lt_cv_dlopen="dyld"
11359 lt_cv_dlopen_self=yes
11366 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11367 if test "x$ac_cv_func_shl_load" = xyes; then :
11368 lt_cv_dlopen="shl_load"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11371 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11372 if ${ac_cv_lib_dld_shl_load+:} false; then :
11373 $as_echo_n "(cached) " >&6
11375 ac_check_lib_save_LIBS=$LIBS
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11380 /* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11390 return shl_load ();
11395 if ac_fn_c_try_link "$LINENO"; then :
11396 ac_cv_lib_dld_shl_load=yes
11398 ac_cv_lib_dld_shl_load=no
11400 rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11402 LIBS=$ac_check_lib_save_LIBS
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11405 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11406 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11407 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11409 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11410 if test "x$ac_cv_func_dlopen" = xyes; then :
11411 lt_cv_dlopen="dlopen"
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11414 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11415 if ${ac_cv_lib_dl_dlopen+:} false; then :
11416 $as_echo_n "(cached) " >&6
11418 ac_check_lib_save_LIBS=$LIBS
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_lib_dl_dlopen=yes
11441 ac_cv_lib_dl_dlopen=no
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11448 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11449 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11453 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11454 if ${ac_cv_lib_svld_dlopen+:} false; then :
11455 $as_echo_n "(cached) " >&6
11457 ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-lsvld $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11477 if ac_fn_c_try_link "$LINENO"; then :
11478 ac_cv_lib_svld_dlopen=yes
11480 ac_cv_lib_svld_dlopen=no
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11487 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11488 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11489 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11492 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11493 if ${ac_cv_lib_dld_dld_link+:} false; then :
11494 $as_echo_n "(cached) " >&6
11496 ac_check_lib_save_LIBS=$LIBS
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11511 return dld_link ();
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_lib_dld_dld_link=yes
11519 ac_cv_lib_dld_dld_link=no
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11526 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11527 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11528 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11549 if test "x$lt_cv_dlopen" != xno; then
11555 case $lt_cv_dlopen in
11557 save_CPPFLAGS="$CPPFLAGS"
11558 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11560 save_LDFLAGS="$LDFLAGS"
11561 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11564 LIBS="$lt_cv_dlopen_libs $LIBS"
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11567 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11568 if ${lt_cv_dlopen_self+:} false; then :
11569 $as_echo_n "(cached) " >&6
11571 if test "$cross_compiling" = yes; then :
11572 lt_cv_dlopen_self=cross
11574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11575 lt_status=$lt_dlunknown
11576 cat > conftest.$ac_ext <<_LT_EOF
11577 #line $LINENO "configure"
11578 #include "confdefs.h"
11587 # define LT_DLGLOBAL RTLD_GLOBAL
11590 # define LT_DLGLOBAL DL_GLOBAL
11592 # define LT_DLGLOBAL 0
11596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11597 find out it does not work in some platform. */
11598 #ifndef LT_DLLAZY_OR_NOW
11600 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11603 # define LT_DLLAZY_OR_NOW DL_LAZY
11606 # define LT_DLLAZY_OR_NOW RTLD_NOW
11609 # define LT_DLLAZY_OR_NOW DL_NOW
11611 # define LT_DLLAZY_OR_NOW 0
11618 /* When -fvisbility=hidden is used, assume the code has been annotated
11619 correspondingly for the symbols needed. */
11620 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11621 int fnord () __attribute__((visibility("default")));
11624 int fnord () { return 42; }
11627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11628 int status = $lt_dlunknown;
11632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11635 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11636 else puts (dlerror ());
11638 /* dlclose (self); */
11646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11647 (eval $ac_link) 2>&5
11649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11651 (./conftest; exit; ) >&5 2>/dev/null
11653 case x$lt_status in
11654 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11655 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11656 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11659 # compilation failed
11660 lt_cv_dlopen_self=no
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11668 $as_echo "$lt_cv_dlopen_self" >&6; }
11670 if test "x$lt_cv_dlopen_self" = xyes; then
11671 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11673 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11674 if ${lt_cv_dlopen_self_static+:} false; then :
11675 $as_echo_n "(cached) " >&6
11677 if test "$cross_compiling" = yes; then :
11678 lt_cv_dlopen_self_static=cross
11680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11681 lt_status=$lt_dlunknown
11682 cat > conftest.$ac_ext <<_LT_EOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11693 # define LT_DLGLOBAL RTLD_GLOBAL
11696 # define LT_DLGLOBAL DL_GLOBAL
11698 # define LT_DLGLOBAL 0
11702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11703 find out it does not work in some platform. */
11704 #ifndef LT_DLLAZY_OR_NOW
11706 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11709 # define LT_DLLAZY_OR_NOW DL_LAZY
11712 # define LT_DLLAZY_OR_NOW RTLD_NOW
11715 # define LT_DLLAZY_OR_NOW DL_NOW
11717 # define LT_DLLAZY_OR_NOW 0
11724 /* When -fvisbility=hidden is used, assume the code has been annotated
11725 correspondingly for the symbols needed. */
11726 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11727 int fnord () __attribute__((visibility("default")));
11730 int fnord () { return 42; }
11733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11734 int status = $lt_dlunknown;
11738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11741 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11742 else puts (dlerror ());
11744 /* dlclose (self); */
11752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11753 (eval $ac_link) 2>&5
11755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11756 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11757 (./conftest; exit; ) >&5 2>/dev/null
11759 case x$lt_status in
11760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11762 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11765 # compilation failed
11766 lt_cv_dlopen_self_static=no
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11774 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11777 CPPFLAGS="$save_CPPFLAGS"
11778 LDFLAGS="$save_LDFLAGS"
11783 case $lt_cv_dlopen_self in
11784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11785 *) enable_dlopen_self=unknown ;;
11788 case $lt_cv_dlopen_self_static in
11789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11790 *) enable_dlopen_self_static=unknown ;;
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11813 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11814 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11816 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11818 $as_echo "yes" >&6; }
11820 # FIXME - insert some real tests, host_os isn't really good enough
11823 if test -n "$STRIP" ; then
11824 striplib="$STRIP -x"
11825 old_striplib="$STRIP -S"
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827 $as_echo "yes" >&6; }
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11851 # Report which library types will actually be built
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11853 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11855 $as_echo "$can_build_shared" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11858 $as_echo_n "checking whether to build shared libraries... " >&6; }
11859 test "$can_build_shared" = "no" && enable_shared=no
11861 # On AIX, shared libraries and static libraries use the same namespace, and
11862 # are all built from PIC.
11865 test "$enable_shared" = yes && enable_static=no
11866 if test -n "$RANLIB"; then
11867 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11868 postinstall_cmds='$RANLIB $lib'
11873 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11874 test "$enable_shared" = yes && enable_static=no
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11879 $as_echo "$enable_shared" >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11882 $as_echo_n "checking whether to build static libraries... " >&6; }
11883 # Make sure either enable_shared or enable_static is yes.
11884 test "$enable_shared" = yes || enable_static=yes
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11886 $as_echo "$enable_static" >&6; }
11893 ac_cpp='$CXXCPP $CPPFLAGS'
11894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11900 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11901 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11902 (test "X$CXX" != "Xg++"))) ; then
11904 ac_cpp='$CXXCPP $CPPFLAGS'
11905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11909 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11910 if test -z "$CXXCPP"; then
11911 if ${ac_cv_prog_CXXCPP+:} false; then :
11912 $as_echo_n "(cached) " >&6
11914 # Double quotes because CXXCPP needs to be expanded
11915 for CXXCPP in "$CXX -E" "/lib/cpp"
11917 ac_preproc_ok=false
11918 for ac_cxx_preproc_warn_flag in '' yes
11920 # Use a header file that comes with gcc, so configuring glibc
11921 # with a fresh cross-compiler works.
11922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923 # <limits.h> exists even on freestanding compilers.
11924 # On the NeXT, cc -E runs the code through the compiler's parser,
11925 # not just through cpp. "Syntax error" is here to catch this case.
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11929 # include <limits.h>
11931 # include <assert.h>
11935 if ac_fn_cxx_try_cpp "$LINENO"; then :
11938 # Broken: fails on valid input.
11941 rm -f conftest.err conftest.i conftest.$ac_ext
11943 # OK, works on sane cases. Now check whether nonexistent headers
11944 # can be detected and how.
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 #include <ac_nonexistent.h>
11949 if ac_fn_cxx_try_cpp "$LINENO"; then :
11950 # Broken: success on invalid input.
11953 # Passes both tests.
11957 rm -f conftest.err conftest.i conftest.$ac_ext
11960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11961 rm -f conftest.i conftest.err conftest.$ac_ext
11962 if $ac_preproc_ok; then :
11967 ac_cv_prog_CXXCPP=$CXXCPP
11970 CXXCPP=$ac_cv_prog_CXXCPP
11972 ac_cv_prog_CXXCPP=$CXXCPP
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11975 $as_echo "$CXXCPP" >&6; }
11976 ac_preproc_ok=false
11977 for ac_cxx_preproc_warn_flag in '' yes
11979 # Use a header file that comes with gcc, so configuring glibc
11980 # with a fresh cross-compiler works.
11981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982 # <limits.h> exists even on freestanding compilers.
11983 # On the NeXT, cc -E runs the code through the compiler's parser,
11984 # not just through cpp. "Syntax error" is here to catch this case.
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11988 # include <limits.h>
11990 # include <assert.h>
11994 if ac_fn_cxx_try_cpp "$LINENO"; then :
11997 # Broken: fails on valid input.
12000 rm -f conftest.err conftest.i conftest.$ac_ext
12002 # OK, works on sane cases. Now check whether nonexistent headers
12003 # can be detected and how.
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12006 #include <ac_nonexistent.h>
12008 if ac_fn_cxx_try_cpp "$LINENO"; then :
12009 # Broken: success on invalid input.
12012 # Passes both tests.
12016 rm -f conftest.err conftest.i conftest.$ac_ext
12019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12020 rm -f conftest.i conftest.err conftest.$ac_ext
12021 if $ac_preproc_ok; then :
12024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12026 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12027 See \`config.log' for more details" "$LINENO" 5; }
12031 ac_cpp='$CXXCPP $CPPFLAGS'
12032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12037 _lt_caught_CXX_error=yes
12041 ac_cpp='$CXXCPP $CPPFLAGS'
12042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12046 archive_cmds_need_lc_CXX=no
12047 allow_undefined_flag_CXX=
12048 always_export_symbols_CXX=no
12049 archive_expsym_cmds_CXX=
12050 compiler_needs_object_CXX=no
12051 export_dynamic_flag_spec_CXX=
12052 hardcode_direct_CXX=no
12053 hardcode_direct_absolute_CXX=no
12054 hardcode_libdir_flag_spec_CXX=
12055 hardcode_libdir_separator_CXX=
12056 hardcode_minus_L_CXX=no
12057 hardcode_shlibpath_var_CXX=unsupported
12058 hardcode_automatic_CXX=no
12059 inherit_rpath_CXX=no
12061 module_expsym_cmds_CXX=
12062 link_all_deplibs_CXX=unknown
12063 old_archive_cmds_CXX=$old_archive_cmds
12064 reload_flag_CXX=$reload_flag
12065 reload_cmds_CXX=$reload_cmds
12066 no_undefined_flag_CXX=
12067 whole_archive_flag_spec_CXX=
12068 enable_shared_with_static_runtimes_CXX=no
12070 # Source file extension for C++ test sources.
12073 # Object file extension for compiled C++ test sources.
12077 # No sense in running all these tests if we already determined that
12078 # the CXX compiler isn't working. Some variables (like enable_shared)
12079 # are currently assumed to apply to all compilers on this platform,
12080 # and will be corrupted by setting them based on a non-working compiler.
12081 if test "$_lt_caught_CXX_error" != yes; then
12082 # Code to be used in simple compile tests
12083 lt_simple_compile_test_code="int some_variable = 0;"
12085 # Code to be used in simple link tests
12086 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12095 # If no C compiler was specified, use CC.
12098 # If no C compiler flags were specified, use CFLAGS.
12099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12101 # Allow CC to be a program name with arguments.
12105 # save warnings/boilerplate of simple test code
12106 ac_outfile=conftest.$ac_objext
12107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12109 _lt_compiler_boilerplate=`cat conftest.err`
12112 ac_outfile=conftest.$ac_objext
12113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12115 _lt_linker_boilerplate=`cat conftest.err`
12119 # Allow CC to be a program name with arguments.
12121 lt_save_CFLAGS=$CFLAGS
12125 lt_save_with_gnu_ld=$with_gnu_ld
12126 lt_save_path_LD=$lt_cv_path_LD
12127 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12128 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12130 $as_unset lt_cv_prog_gnu_ld
12132 if test -n "${lt_cv_path_LDCXX+set}"; then
12133 lt_cv_path_LD=$lt_cv_path_LDCXX
12135 $as_unset lt_cv_path_LD
12137 test -z "${LDCXX+set}" || LD=$LDCXX
12142 for cc_temp in $compiler""; do
12144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12150 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12153 if test -n "$compiler"; then
12154 # We don't want -fno-exception when compiling C++ code, so set the
12155 # no_builtin_flag separately
12156 if test "$GXX" = yes; then
12157 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12159 lt_prog_compiler_no_builtin_flag_CXX=
12162 if test "$GXX" = yes; then
12163 # Set up default GNU C++ configuration
12167 # Check whether --with-gnu-ld was given.
12168 if test "${with_gnu_ld+set}" = set; then :
12169 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12175 if test "$GCC" = yes; then
12176 # Check if gcc -print-prog-name=ld gives a path.
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12178 $as_echo_n "checking for ld used by $CC... " >&6; }
12181 # gcc leaves a trailing carriage return which upsets mingw
12182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12187 # Accept absolute paths.
12189 re_direlt='/[^/][^/]*/\.\./'
12190 # Canonicalize the pathname of ld
12191 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12192 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12193 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12195 test -z "$LD" && LD="$ac_prog"
12198 # If it fails, then pretend we aren't using GCC.
12202 # If it is relative, then search for the first ld in PATH.
12203 with_gnu_ld=unknown
12206 elif test "$with_gnu_ld" = yes; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12208 $as_echo_n "checking for GNU ld... " >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12211 $as_echo_n "checking for non-GNU ld... " >&6; }
12213 if ${lt_cv_path_LD+:} false; then :
12214 $as_echo_n "(cached) " >&6
12216 if test -z "$LD"; then
12217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12218 for ac_dir in $PATH; do
12220 test -z "$ac_dir" && ac_dir=.
12221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12222 lt_cv_path_LD="$ac_dir/$ac_prog"
12223 # Check to see if the program is GNU ld. I'd rather use --version,
12224 # but apparently some variants of GNU ld only accept -v.
12225 # Break only if it was the GNU/non-GNU ld that we prefer.
12226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12227 *GNU* | *'with BFD'*)
12228 test "$with_gnu_ld" != no && break
12231 test "$with_gnu_ld" != yes && break
12238 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12242 LD="$lt_cv_path_LD"
12243 if test -n "$LD"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12245 $as_echo "$LD" >&6; }
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12250 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12252 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12253 if ${lt_cv_prog_gnu_ld+:} false; then :
12254 $as_echo_n "(cached) " >&6
12256 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12257 case `$LD -v 2>&1 </dev/null` in
12258 *GNU* | *'with BFD'*)
12259 lt_cv_prog_gnu_ld=yes
12262 lt_cv_prog_gnu_ld=no
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12267 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12268 with_gnu_ld=$lt_cv_prog_gnu_ld
12276 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12277 # archiving commands below assume that GNU ld is being used.
12278 if test "$with_gnu_ld" = yes; then
12279 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 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'
12282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12285 # If archive_cmds runs LD, not CC, wlarc should be empty
12286 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12287 # investigate it a little bit more. (MM)
12290 # ancient GNU ld didn't support --whole-archive et. al.
12291 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12292 $GREP 'no-whole-archive' > /dev/null; then
12293 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12295 whole_archive_flag_spec_CXX=
12301 # A generic and very simple default shared library creation
12302 # command for GNU C++ for the case where it uses the native
12303 # linker, instead of GNU ld. If possible, this setting should
12304 # overridden to take advantage of the native linker features on
12305 # the platform it is being used on.
12306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12309 # Commands to make compiler produce verbose output that lists
12310 # what "hidden" libraries, object files and flags are used when
12311 # linking a shared library.
12312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12320 # PORTME: fill in a description of your system's C++ link characteristics
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12322 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12326 # FIXME: insert proper C++ library support
12330 if test "$host_cpu" = ia64; then
12331 # On IA64, the linker does run time linking by default, so we don't
12332 # have to do anything special.
12333 aix_use_runtimelinking=no
12334 exp_sym_flag='-Bexport'
12337 aix_use_runtimelinking=no
12339 # Test if we are trying to use run time linking or normal
12340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12341 # need to do runtime linking.
12342 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12343 for ld_flag in $LDFLAGS; do
12346 aix_use_runtimelinking=yes
12354 exp_sym_flag='-bexport'
12355 no_entry_flag='-bnoentry'
12358 # When large executables or shared objects are built, AIX ld can
12359 # have problems creating the table of contents. If linking a library
12360 # or program results in "error TOC overflow" add -mminimal-toc to
12361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12364 archive_cmds_CXX=''
12365 hardcode_direct_CXX=yes
12366 hardcode_direct_absolute_CXX=yes
12367 hardcode_libdir_separator_CXX=':'
12368 link_all_deplibs_CXX=yes
12369 file_list_spec_CXX='${wl}-f,'
12371 if test "$GXX" = yes; then
12372 case $host_os in aix4.[012]|aix4.[012].*)
12373 # We only want to do this on AIX 4.2 and lower, the check
12374 # below for broken collect2 doesn't work under 4.3+
12375 collect2name=`${CC} -print-prog-name=collect2`
12376 if test -f "$collect2name" &&
12377 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12379 # We have reworked collect2
12382 # We have old collect2
12383 hardcode_direct_CXX=unsupported
12384 # It fails to find uninstalled libraries when the uninstalled
12385 # path is not listed in the libpath. Setting hardcode_minus_L
12386 # to unsupported forces relinking
12387 hardcode_minus_L_CXX=yes
12388 hardcode_libdir_flag_spec_CXX='-L$libdir'
12389 hardcode_libdir_separator_CXX=
12392 shared_flag='-shared'
12393 if test "$aix_use_runtimelinking" = yes; then
12394 shared_flag="$shared_flag "'${wl}-G'
12398 if test "$host_cpu" = ia64; then
12399 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12400 # chokes on -Wl,-G. The following line is correct:
12403 if test "$aix_use_runtimelinking" = yes; then
12404 shared_flag='${wl}-G'
12406 shared_flag='${wl}-bM:SRE'
12411 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12412 # It seems that -bexpall does not export symbols beginning with
12413 # underscore (_), so it is better to generate a list of symbols to
12415 always_export_symbols_CXX=yes
12416 if test "$aix_use_runtimelinking" = yes; then
12417 # Warning - without using the other runtime loading flags (-brtl),
12418 # -berok will link without error, but may produce a broken library.
12419 allow_undefined_flag_CXX='-berok'
12420 # Determine the default libpath from the value encoded in an empty
12422 if test "${lt_cv_aix_libpath+set}" = set; then
12423 aix_libpath=$lt_cv_aix_libpath
12425 if ${lt_cv_aix_libpath__CXX+:} false; then :
12426 $as_echo_n "(cached) " >&6
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12439 if ac_fn_cxx_try_link "$LINENO"; then :
12441 lt_aix_libpath_sed='
12442 /Import File Strings/,/^$/ {
12444 s/^0 *\([^ ]*\) *$/\1/
12448 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12449 # Check for a 64-bit object if we didn't find anything.
12450 if test -z "$lt_cv_aix_libpath__CXX"; then
12451 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 if test -z "$lt_cv_aix_libpath__CXX"; then
12457 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12462 aix_libpath=$lt_cv_aix_libpath__CXX
12465 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12467 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"
12469 if test "$host_cpu" = ia64; then
12470 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12471 allow_undefined_flag_CXX="-z nodefs"
12472 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"
12474 # Determine the default libpath from the value encoded in an
12475 # empty executable.
12476 if test "${lt_cv_aix_libpath+set}" = set; then
12477 aix_libpath=$lt_cv_aix_libpath
12479 if ${lt_cv_aix_libpath__CXX+:} false; then :
12480 $as_echo_n "(cached) " >&6
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12493 if ac_fn_cxx_try_link "$LINENO"; then :
12495 lt_aix_libpath_sed='
12496 /Import File Strings/,/^$/ {
12498 s/^0 *\([^ ]*\) *$/\1/
12502 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12503 # Check for a 64-bit object if we didn't find anything.
12504 if test -z "$lt_cv_aix_libpath__CXX"; then
12505 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12508 rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12510 if test -z "$lt_cv_aix_libpath__CXX"; then
12511 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12516 aix_libpath=$lt_cv_aix_libpath__CXX
12519 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12520 # Warning - without using the other run time loading flags,
12521 # -berok will link without error, but may produce a broken library.
12522 no_undefined_flag_CXX=' ${wl}-bernotok'
12523 allow_undefined_flag_CXX=' ${wl}-berok'
12524 if test "$with_gnu_ld" = yes; then
12525 # We only use this code for GNU lds that support --whole-archive.
12526 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12528 # Exported symbols can be pulled into shared objects from archives
12529 whole_archive_flag_spec_CXX='$convenience'
12531 archive_cmds_need_lc_CXX=yes
12532 # This is similar to how AIX traditionally builds its shared
12534 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'
12540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12541 allow_undefined_flag_CXX=unsupported
12542 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12543 # support --undefined. This deserves some investigation. FIXME
12544 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12551 case $cc_basename in
12553 # FIXME: insert proper C++ library support
12559 cygwin* | mingw* | pw32* | cegcc*)
12560 case $GXX,$cc_basename in
12563 # hardcode_libdir_flag_spec is actually meaningless, as there is
12564 # no search path for DLLs.
12565 hardcode_libdir_flag_spec_CXX=' '
12566 allow_undefined_flag_CXX=unsupported
12567 always_export_symbols_CXX=yes
12568 file_list_spec_CXX='@'
12569 # Tell ltmain to make .lib files, not .a files.
12571 # Tell ltmain to make .dll files, not .so files.
12573 # FIXME: Setting linknames here is a bad hack.
12574 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12575 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12576 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12578 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12580 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12582 # The linker will not automatically build a static lib if we build a DLL.
12583 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12584 enable_shared_with_static_runtimes_CXX=yes
12586 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12587 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12588 lt_tool_outputfile="@TOOL_OUTPUT@"~
12589 case $lt_outputfile in
12592 lt_outputfile="$lt_outputfile.exe"
12593 lt_tool_outputfile="$lt_tool_outputfile.exe"
12596 func_to_tool_file "$lt_outputfile"~
12597 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12598 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12599 $RM "$lt_outputfile.manifest";
12604 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12605 # as there is no search path for DLLs.
12606 hardcode_libdir_flag_spec_CXX='-L$libdir'
12607 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12608 allow_undefined_flag_CXX=unsupported
12609 always_export_symbols_CXX=no
12610 enable_shared_with_static_runtimes_CXX=yes
12612 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12613 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'
12614 # If the export-symbols file already is a .def file (1st line
12615 # is EXPORTS), use it as is; otherwise, prepend...
12616 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12617 cp $export_symbols $output_objdir/$soname.def;
12619 echo EXPORTS > $output_objdir/$soname.def;
12620 cat $export_symbols >> $output_objdir/$soname.def;
12622 $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'
12629 darwin* | rhapsody*)
12632 archive_cmds_need_lc_CXX=no
12633 hardcode_direct_CXX=no
12634 hardcode_automatic_CXX=yes
12635 hardcode_shlibpath_var_CXX=unsupported
12636 if test "$lt_cv_ld_force_load" = "yes"; then
12637 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\"`'
12640 whole_archive_flag_spec_CXX=''
12642 link_all_deplibs_CXX=yes
12643 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12644 case $cc_basename in
12645 ifort*) _lt_dar_can_shared=yes ;;
12646 *) _lt_dar_can_shared=$GCC ;;
12648 if test "$_lt_dar_can_shared" = "yes"; then
12649 output_verbose_link_cmd=func_echo_all
12650 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}"
12651 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12652 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}"
12653 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}"
12654 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12655 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}"
12656 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}"
12666 case $cc_basename in
12668 # FIXME: insert proper C++ library support
12672 # Green Hills C++ Compiler
12673 # FIXME: insert proper C++ library support
12677 # FIXME: insert proper C++ library support
12684 # C++ shared libraries reported to be fairly broken before
12690 archive_cmds_need_lc_CXX=no
12693 freebsd* | dragonfly*)
12694 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12700 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12701 link_all_deplibs_CXX=yes
12705 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12706 hardcode_libdir_separator_CXX=:
12707 export_dynamic_flag_spec_CXX='${wl}-E'
12708 hardcode_direct_CXX=yes
12709 hardcode_minus_L_CXX=yes # Not in the search PATH,
12710 # but as the default
12711 # location of the library.
12713 case $cc_basename in
12715 # FIXME: insert proper C++ library support
12719 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'
12720 # Commands to make compiler produce verbose output that lists
12721 # what "hidden" libraries, object files and flags are used when
12722 # linking a shared library.
12724 # There doesn't appear to be a way to prevent this compiler from
12725 # explicitly linking system object files so we need to strip them
12726 # from the output so that they don't get included in the library
12728 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"'
12731 if test "$GXX" = yes; then
12732 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'
12734 # FIXME: insert proper C++ library support
12742 if test $with_gnu_ld = no; then
12743 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12744 hardcode_libdir_separator_CXX=:
12750 export_dynamic_flag_spec_CXX='${wl}-E'
12756 hardcode_direct_CXX=no
12757 hardcode_shlibpath_var_CXX=no
12760 hardcode_direct_CXX=yes
12761 hardcode_direct_absolute_CXX=yes
12762 hardcode_minus_L_CXX=yes # Not in the search PATH,
12763 # but as the default
12764 # location of the library.
12768 case $cc_basename in
12770 # FIXME: insert proper C++ library support
12776 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12779 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12782 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12785 # Commands to make compiler produce verbose output that lists
12786 # what "hidden" libraries, object files and flags are used when
12787 # linking a shared library.
12789 # There doesn't appear to be a way to prevent this compiler from
12790 # explicitly linking system object files so we need to strip them
12791 # from the output so that they don't get included in the library
12793 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"'
12796 if test "$GXX" = yes; then
12797 if test $with_gnu_ld = no; then
12800 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12803 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12806 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'
12811 # FIXME: insert proper C++ library support
12819 hardcode_direct_CXX=no
12820 hardcode_shlibpath_var_CXX=no
12821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12822 export_dynamic_flag_spec_CXX='${wl}-E'
12823 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12824 # Instead, shared libraries are loaded at an image base (0x10000000 by
12825 # default) and relocated if they conflict, which is a slow very memory
12826 # consuming and fragmenting process. To avoid this, we pick a random,
12827 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12828 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12829 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'
12830 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'
12833 case $cc_basename in
12836 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'
12838 # Archives containing C++ object files must be created using
12839 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12840 # necessary to make sure instantiated templates are included
12842 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12845 if test "$GXX" = yes; then
12846 if test "$with_gnu_ld" = no; then
12847 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'
12849 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'
12852 link_all_deplibs_CXX=yes
12855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12856 hardcode_libdir_separator_CXX=:
12857 inherit_rpath_CXX=yes
12860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12861 case $cc_basename in
12863 # Kuck and Associates, Inc. (KAI) C++ Compiler
12865 # KCC will only create a shared library if the output file
12866 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12867 # to its proper name (with version) after linking.
12868 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'
12869 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'
12870 # Commands to make compiler produce verbose output that lists
12871 # what "hidden" libraries, object files and flags are used when
12872 # linking a shared library.
12874 # There doesn't appear to be a way to prevent this compiler from
12875 # explicitly linking system object files so we need to strip them
12876 # from the output so that they don't get included in the library
12878 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"'
12880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12881 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12883 # Archives containing C++ object files must be created using
12884 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12885 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12890 # version 8.0 and above of icpc choke on multiply defined symbols
12891 # if we add $predep_objects and $postdep_objects, however 7.1 and
12892 # earlier do not add the objects themselves.
12893 case `$CC -V 2>&1` in
12895 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896 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'
12898 *) # Version 8.0 or newer
12901 ia64*) tmp_idyn=' -i_dynamic';;
12903 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904 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'
12907 archive_cmds_need_lc_CXX=no
12908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12909 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12910 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12913 # Portland Group C++ compiler
12915 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12916 prelink_cmds_CXX='tpldir=Template.dir~
12918 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12919 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12920 old_archive_cmds_CXX='tpldir=Template.dir~
12922 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12923 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12925 archive_cmds_CXX='tpldir=Template.dir~
12927 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12928 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12929 archive_expsym_cmds_CXX='tpldir=Template.dir~
12931 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12932 $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'
12934 *) # Version 6 and above use weak symbols
12935 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12936 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'
12940 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12941 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12942 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'
12946 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12947 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'
12949 runpath_var=LD_RUN_PATH
12950 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12951 hardcode_libdir_separator_CXX=:
12953 # Commands to make compiler produce verbose output that lists
12954 # what "hidden" libraries, object files and flags are used when
12955 # linking a shared library.
12957 # There doesn't appear to be a way to prevent this compiler from
12958 # explicitly linking system object files so we need to strip them
12959 # from the output so that they don't get included in the library
12961 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'
12963 xl* | mpixl* | bgxl*)
12964 # IBM XL 8.0 on PPC, with GNU ld
12965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12967 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968 if test "x$supports_anon_versioning" = xyes; then
12969 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12971 echo "local: *; };" >> $output_objdir/$libname.ver~
12972 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12976 case `$CC -V 2>&1 | sed 5q` in
12979 no_undefined_flag_CXX=' -zdefs'
12980 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12981 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'
12982 hardcode_libdir_flag_spec_CXX='-R$libdir'
12983 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'
12984 compiler_needs_object_CXX=yes
12986 # Not sure whether something based on
12987 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12989 output_verbose_link_cmd='func_echo_all'
12991 # Archives containing C++ object files must be created using
12992 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12993 # necessary to make sure instantiated templates are included
12995 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13003 # FIXME: insert proper C++ library support
13008 # FIXME: insert proper C++ library support
13013 case $cc_basename in
13015 # FIXME: insert proper C++ library support
13019 # FIXME: insert proper C++ library support
13026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13027 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13029 hardcode_libdir_flag_spec_CXX='-R$libdir'
13030 hardcode_direct_CXX=yes
13031 hardcode_shlibpath_var_CXX=no
13033 # Workaround some broken pre-1.5 toolchains
13034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13042 # C++ shared libraries are fairly broken
13047 if test -f /usr/libexec/ld.so; then
13048 hardcode_direct_CXX=yes
13049 hardcode_shlibpath_var_CXX=no
13050 hardcode_direct_absolute_CXX=yes
13051 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13052 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13054 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13055 export_dynamic_flag_spec_CXX='${wl}-E'
13056 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13058 output_verbose_link_cmd=func_echo_all
13064 osf3* | osf4* | osf5*)
13065 case $cc_basename in
13067 # Kuck and Associates, Inc. (KAI) C++ Compiler
13069 # KCC will only create a shared library if the output file
13070 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13071 # to its proper name (with version) after linking.
13072 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'
13074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13075 hardcode_libdir_separator_CXX=:
13077 # Archives containing C++ object files must be created using
13078 # the KAI C++ compiler.
13080 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13081 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13085 # Rational C++ 2.4.1
13086 # FIXME: insert proper C++ library support
13092 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13093 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'
13094 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13097 allow_undefined_flag_CXX=' -expect_unresolved \*'
13098 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'
13099 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13100 echo "-hidden">> $lib.exp~
13101 $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~
13103 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13107 hardcode_libdir_separator_CXX=:
13109 # Commands to make compiler produce verbose output that lists
13110 # what "hidden" libraries, object files and flags are used when
13111 # linking a shared library.
13113 # There doesn't appear to be a way to prevent this compiler from
13114 # explicitly linking system object files so we need to strip them
13115 # from the output so that they don't get included in the library
13117 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"'
13120 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13124 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'
13127 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'
13131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13132 hardcode_libdir_separator_CXX=:
13134 # Commands to make compiler produce verbose output that lists
13135 # what "hidden" libraries, object files and flags are used when
13136 # linking a shared library.
13137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13140 # FIXME: insert proper C++ library support
13148 # FIXME: insert proper C++ library support
13153 case $cc_basename in
13156 # FIXME: insert proper C++ library support
13161 # FIXME: insert proper C++ library support
13165 # FIXME: insert proper C++ library support
13172 case $cc_basename in
13174 # Sun C++ 4.2, 5.x and Centerline C++
13175 archive_cmds_need_lc_CXX=yes
13176 no_undefined_flag_CXX=' -zdefs'
13177 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13178 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13179 $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'
13181 hardcode_libdir_flag_spec_CXX='-R$libdir'
13182 hardcode_shlibpath_var_CXX=no
13184 solaris2.[0-5] | solaris2.[0-5].*) ;;
13186 # The compiler driver will combine and reorder linker options,
13187 # but understands `-z linker_flag'.
13188 # Supported since Solaris 2.6 (maybe 2.5.1?)
13189 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13192 link_all_deplibs_CXX=yes
13194 output_verbose_link_cmd='func_echo_all'
13196 # Archives containing C++ object files must be created using
13197 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13198 # necessary to make sure instantiated templates are included
13200 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13203 # Green Hills C++ Compiler
13204 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13206 # The C++ compiler must be used to create the archive.
13207 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13210 # GNU C++ compiler with Solaris linker
13211 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13212 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13213 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13214 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13215 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13216 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13218 # Commands to make compiler produce verbose output that lists
13219 # what "hidden" libraries, object files and flags are used when
13220 # linking a shared library.
13221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13223 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13225 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13226 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13227 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13229 # Commands to make compiler produce verbose output that lists
13230 # what "hidden" libraries, object files and flags are used when
13231 # linking a shared library.
13232 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13235 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13237 solaris2.[0-5] | solaris2.[0-5].*) ;;
13239 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13247 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13248 no_undefined_flag_CXX='${wl}-z,text'
13249 archive_cmds_need_lc_CXX=no
13250 hardcode_shlibpath_var_CXX=no
13251 runpath_var='LD_RUN_PATH'
13253 case $cc_basename in
13255 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13256 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13259 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13260 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13265 sysv5* | sco3.2v5* | sco5v6*)
13266 # Note: We can NOT use -z defs as we might desire, because we do not
13267 # link with -lc, and that would cause any symbols used from libc to
13268 # always be unresolved, which means just about no library would
13269 # ever link correctly. If we're not using GNU ld we use -z text
13270 # though, which does catch some bad symbols but isn't as heavy-handed
13272 no_undefined_flag_CXX='${wl}-z,text'
13273 allow_undefined_flag_CXX='${wl}-z,nodefs'
13274 archive_cmds_need_lc_CXX=no
13275 hardcode_shlibpath_var_CXX=no
13276 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13277 hardcode_libdir_separator_CXX=':'
13278 link_all_deplibs_CXX=yes
13279 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13280 runpath_var='LD_RUN_PATH'
13282 case $cc_basename in
13284 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13285 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13286 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13287 '"$old_archive_cmds_CXX"
13288 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13289 '"$reload_cmds_CXX"
13292 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299 case $cc_basename in
13301 # NonStop-UX NCC 3.20
13302 # FIXME: insert proper C++ library support
13306 # FIXME: insert proper C++ library support
13313 # FIXME: insert proper C++ library support
13318 # FIXME: insert proper C++ library support
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13324 $as_echo "$ld_shlibs_CXX" >&6; }
13325 test "$ld_shlibs_CXX" = no && can_build_shared=no
13331 ## There is no encapsulation within the following macros, do not change
13332 ## the running order or otherwise move them around unless you know exactly
13333 ## what you are doing...
13334 # Dependencies to place before and after the object being linked:
13335 predep_objects_CXX=
13336 postdep_objects_CXX=
13339 compiler_lib_search_path_CXX=
13341 cat > conftest.$ac_ext <<_LT_EOF
13345 Foo (void) { a = 0; }
13352 _lt_libdeps_save_CFLAGS=$CFLAGS
13353 case "$CC $CFLAGS " in #(
13354 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13355 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13356 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13360 (eval $ac_compile) 2>&5
13362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363 test $ac_status = 0; }; then
13364 # Parse the compiler output and extract the necessary
13365 # objects, libraries and library flags.
13367 # Sentinel used to keep track of whether or not we are before
13368 # the conftest object file.
13369 pre_test_object_deps_done=no
13371 for p in `eval "$output_verbose_link_cmd"`; do
13372 case ${prev}${p} in
13375 # Some compilers place space between "-{L,R}" and the path.
13376 # Remove the space.
13377 if test $p = "-L" ||
13378 test $p = "-R"; then
13383 # Expand the sysroot to ease extracting the directories later.
13384 if test -z "$prev"; then
13386 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13387 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13388 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13392 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13394 if test "$pre_test_object_deps_done" = no; then
13397 # Internal compiler library paths should come after those
13398 # provided the user. The postdeps already come after the
13399 # user supplied libs so there is no need to process them.
13400 if test -z "$compiler_lib_search_path_CXX"; then
13401 compiler_lib_search_path_CXX="${prev}${p}"
13403 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13406 # The "-l" case would never come before the object being
13407 # linked, so don't bother handling this case.
13410 if test -z "$postdeps_CXX"; then
13411 postdeps_CXX="${prev}${p}"
13413 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13419 *.lto.$objext) ;; # Ignore GCC LTO objects
13421 # This assumes that the test object file only shows up
13422 # once in the compiler output.
13423 if test "$p" = "conftest.$objext"; then
13424 pre_test_object_deps_done=yes
13428 if test "$pre_test_object_deps_done" = no; then
13429 if test -z "$predep_objects_CXX"; then
13430 predep_objects_CXX="$p"
13432 predep_objects_CXX="$predep_objects_CXX $p"
13435 if test -z "$postdep_objects_CXX"; then
13436 postdep_objects_CXX="$p"
13438 postdep_objects_CXX="$postdep_objects_CXX $p"
13443 *) ;; # Ignore the rest.
13451 echo "libtool.m4: error: problem compiling CXX test program"
13454 $RM -f confest.$objext
13455 CFLAGS=$_lt_libdeps_save_CFLAGS
13457 # PORTME: override above test on systems where it is broken
13460 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13461 # hack all around it, let's just trust "g++" to DTRT.
13462 predep_objects_CXX=
13463 postdep_objects_CXX=
13468 case `$CC -V 2>&1 | sed 5q` in
13472 # The more standards-conforming stlport4 library is
13473 # incompatible with the Cstd library. Avoid specifying
13474 # it if it's in CXXFLAGS. Ignore libCrun as
13475 # -library=stlport4 depends on it.
13476 case " $CXX $CXXFLAGS " in
13477 *" -library=stlport4 "*)
13478 solaris_use_stlport4=yes
13482 if test "$solaris_use_stlport4" != yes; then
13483 postdeps_CXX='-library=Cstd -library=Crun'
13490 case $cc_basename in
13492 # The more standards-conforming stlport4 library is
13493 # incompatible with the Cstd library. Avoid specifying
13494 # it if it's in CXXFLAGS. Ignore libCrun as
13495 # -library=stlport4 depends on it.
13496 case " $CXX $CXXFLAGS " in
13497 *" -library=stlport4 "*)
13498 solaris_use_stlport4=yes
13502 # Adding this requires a known-good setup of shared libraries for
13503 # Sun compiler versions before 5.6, else PIC objects from an old
13504 # archive will be linked into the output, leading to subtle bugs.
13505 if test "$solaris_use_stlport4" != yes; then
13506 postdeps_CXX='-library=Cstd -library=Crun'
13514 case " $postdeps_CXX " in
13515 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13517 compiler_lib_search_dirs_CXX=
13518 if test -n "${compiler_lib_search_path_CXX}"; then
13519 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13552 lt_prog_compiler_wl_CXX=
13553 lt_prog_compiler_pic_CXX=
13554 lt_prog_compiler_static_CXX=
13557 # C++ specific cases for pic, static, wl, etc.
13558 if test "$GXX" = yes; then
13559 lt_prog_compiler_wl_CXX='-Wl,'
13560 lt_prog_compiler_static_CXX='-static'
13564 # All AIX code is PIC.
13565 if test "$host_cpu" = ia64; then
13566 # AIX 5 now supports IA64 processor
13567 lt_prog_compiler_static_CXX='-Bstatic'
13574 # see comment about AmigaOS4 .so support
13575 lt_prog_compiler_pic_CXX='-fPIC'
13578 # FIXME: we need at least 68020 code to build shared libraries, but
13579 # adding the `-m68020' flag to GCC prevents building anything better,
13581 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13586 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13587 # PIC is the default for these OSes.
13589 mingw* | cygwin* | os2* | pw32* | cegcc*)
13590 # This hack is so that the source file can tell whether it is being
13591 # built for inclusion in a dll (and should export symbols for example).
13592 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13593 # (--disable-auto-import) libraries
13594 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13596 darwin* | rhapsody*)
13597 # PIC is the default on this platform
13598 # Common symbols not allowed in MH_DYLIB files
13599 lt_prog_compiler_pic_CXX='-fno-common'
13602 # DJGPP does not support shared libraries at all
13603 lt_prog_compiler_pic_CXX=
13606 # PIC is the default for Haiku.
13607 # The "-static" flag exists, but is broken.
13608 lt_prog_compiler_static_CXX=
13611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13612 # Instead, we relocate shared libraries at runtime.
13615 if test -d /usr/nec; then
13616 lt_prog_compiler_pic_CXX=-Kconform_pic
13620 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13621 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13622 # sets the default TLS model and affects inlining.
13627 lt_prog_compiler_pic_CXX='-fPIC'
13632 # QNX uses GNU C++, but need to define -shared option too, otherwise
13633 # it will coredump.
13634 lt_prog_compiler_pic_CXX='-fPIC -shared'
13637 lt_prog_compiler_pic_CXX='-fPIC'
13643 # All AIX code is PIC.
13644 if test "$host_cpu" = ia64; then
13645 # AIX 5 now supports IA64 processor
13646 lt_prog_compiler_static_CXX='-Bstatic'
13648 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13652 case $cc_basename in
13654 # Green Hills C++ Compiler
13655 # _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"
13659 mingw* | cygwin* | os2* | pw32* | cegcc*)
13660 # This hack is so that the source file can tell whether it is being
13661 # built for inclusion in a dll (and should export symbols for example).
13662 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13665 case $cc_basename in
13667 lt_prog_compiler_pic_CXX='-KPIC'
13670 # Green Hills C++ Compiler
13671 lt_prog_compiler_pic_CXX='-pic'
13677 freebsd* | dragonfly*)
13678 # FreeBSD uses GNU C++
13680 hpux9* | hpux10* | hpux11*)
13681 case $cc_basename in
13683 lt_prog_compiler_wl_CXX='-Wl,'
13684 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13685 if test "$host_cpu" != ia64; then
13686 lt_prog_compiler_pic_CXX='+Z'
13690 lt_prog_compiler_wl_CXX='-Wl,'
13691 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13697 lt_prog_compiler_pic_CXX='+Z'
13706 # This is c89, which is MS Visual C++ (no shared libs)
13707 # Anyone wants to do a port?
13709 irix5* | irix6* | nonstopux*)
13710 case $cc_basename in
13712 lt_prog_compiler_wl_CXX='-Wl,'
13713 lt_prog_compiler_static_CXX='-non_shared'
13714 # CC pic flag -KPIC is the default.
13720 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13721 case $cc_basename in
13724 lt_prog_compiler_wl_CXX='--backend -Wl,'
13725 lt_prog_compiler_pic_CXX='-fPIC'
13728 # old Intel C++ for x86_64 which still supported -KPIC.
13729 lt_prog_compiler_wl_CXX='-Wl,'
13730 lt_prog_compiler_pic_CXX='-KPIC'
13731 lt_prog_compiler_static_CXX='-static'
13734 # Intel C++, used to be incompatible with GCC.
13735 # ICC 10 doesn't accept -KPIC any more.
13736 lt_prog_compiler_wl_CXX='-Wl,'
13737 lt_prog_compiler_pic_CXX='-fPIC'
13738 lt_prog_compiler_static_CXX='-static'
13741 # Portland Group C++ compiler
13742 lt_prog_compiler_wl_CXX='-Wl,'
13743 lt_prog_compiler_pic_CXX='-fpic'
13744 lt_prog_compiler_static_CXX='-Bstatic'
13748 # Make sure the PIC flag is empty. It appears that all Alpha
13749 # Linux and Compaq Tru64 Unix objects are PIC.
13750 lt_prog_compiler_pic_CXX=
13751 lt_prog_compiler_static_CXX='-non_shared'
13753 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13754 # IBM XL 8.0, 9.0 on PPC and BlueGene
13755 lt_prog_compiler_wl_CXX='-Wl,'
13756 lt_prog_compiler_pic_CXX='-qpic'
13757 lt_prog_compiler_static_CXX='-qstaticlink'
13760 case `$CC -V 2>&1 | sed 5q` in
13763 lt_prog_compiler_pic_CXX='-KPIC'
13764 lt_prog_compiler_static_CXX='-Bstatic'
13765 lt_prog_compiler_wl_CXX='-Qoption ld '
13776 case $cc_basename in
13778 lt_prog_compiler_pic_CXX='-W c,exportall'
13784 netbsd* | netbsdelf*-gnu)
13787 # QNX uses GNU C++, but need to define -shared option too, otherwise
13788 # it will coredump.
13789 lt_prog_compiler_pic_CXX='-fPIC -shared'
13791 osf3* | osf4* | osf5*)
13792 case $cc_basename in
13794 lt_prog_compiler_wl_CXX='--backend -Wl,'
13797 # Rational C++ 2.4.1
13798 lt_prog_compiler_pic_CXX='-pic'
13801 # Digital/Compaq C++
13802 lt_prog_compiler_wl_CXX='-Wl,'
13803 # Make sure the PIC flag is empty. It appears that all Alpha
13804 # Linux and Compaq Tru64 Unix objects are PIC.
13805 lt_prog_compiler_pic_CXX=
13806 lt_prog_compiler_static_CXX='-non_shared'
13815 case $cc_basename in
13817 # Sun C++ 4.2, 5.x and Centerline C++
13818 lt_prog_compiler_pic_CXX='-KPIC'
13819 lt_prog_compiler_static_CXX='-Bstatic'
13820 lt_prog_compiler_wl_CXX='-Qoption ld '
13823 # Green Hills C++ Compiler
13824 lt_prog_compiler_pic_CXX='-PIC'
13831 case $cc_basename in
13834 lt_prog_compiler_pic_CXX='-pic'
13835 lt_prog_compiler_static_CXX='-Bstatic'
13839 lt_prog_compiler_pic_CXX='-pic'
13845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13846 case $cc_basename in
13848 lt_prog_compiler_wl_CXX='-Wl,'
13849 lt_prog_compiler_pic_CXX='-KPIC'
13850 lt_prog_compiler_static_CXX='-Bstatic'
13855 case $cc_basename in
13857 # NonStop-UX NCC 3.20
13858 lt_prog_compiler_pic_CXX='-KPIC'
13867 lt_prog_compiler_can_build_shared_CXX=no
13873 # For platforms which do not support PIC, -DPIC is meaningless:
13875 lt_prog_compiler_pic_CXX=
13878 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13883 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13884 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13885 $as_echo_n "(cached) " >&6
13887 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13890 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13891 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13894 # Check to make sure the PIC flag actually works.
13896 if test -n "$lt_prog_compiler_pic_CXX"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13899 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13900 $as_echo_n "(cached) " >&6
13902 lt_cv_prog_compiler_pic_works_CXX=no
13903 ac_outfile=conftest.$ac_objext
13904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13905 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13906 # Insert the option either (1) after the last *FLAGS variable, or
13907 # (2) before a word containing "conftest.", or (3) at the end.
13908 # Note that $ac_compile itself does not contain backslashes and begins
13909 # with a dollar sign (not a hyphen), so the echo should work correctly.
13910 # The option is referenced via a variable to avoid confusing sed.
13911 lt_compile=`echo "$ac_compile" | $SED \
13912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13914 -e 's:$: $lt_compiler_flag:'`
13915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13916 (eval "$lt_compile" 2>conftest.err)
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 if (exit $ac_status) && test -s "$ac_outfile"; then
13921 # The compiler can only warn and ignore the option if not recognized
13922 # So say no if there are warnings other than the usual output.
13923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13926 lt_cv_prog_compiler_pic_works_CXX=yes
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13933 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13935 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13936 case $lt_prog_compiler_pic_CXX in
13938 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13941 lt_prog_compiler_pic_CXX=
13942 lt_prog_compiler_can_build_shared_CXX=no
13952 # Check to make sure the static flag actually works.
13954 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13956 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13957 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13958 $as_echo_n "(cached) " >&6
13960 lt_cv_prog_compiler_static_works_CXX=no
13961 save_LDFLAGS="$LDFLAGS"
13962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13965 # The linker can only warn and ignore the option if not recognized
13966 # So say no if there are warnings
13967 if test -s conftest.err; then
13968 # Append any errors to the config.log.
13969 cat conftest.err 1>&5
13970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13972 if diff conftest.exp conftest.er2 >/dev/null; then
13973 lt_cv_prog_compiler_static_works_CXX=yes
13976 lt_cv_prog_compiler_static_works_CXX=yes
13980 LDFLAGS="$save_LDFLAGS"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13984 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13986 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13989 lt_prog_compiler_static_CXX=
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13996 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13997 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13998 $as_echo_n "(cached) " >&6
14000 lt_cv_prog_compiler_c_o_CXX=no
14001 $RM -r conftest 2>/dev/null
14005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14007 lt_compiler_flag="-o out/conftest2.$ac_objext"
14008 # Insert the option either (1) after the last *FLAGS variable, or
14009 # (2) before a word containing "conftest.", or (3) at the end.
14010 # Note that $ac_compile itself does not contain backslashes and begins
14011 # with a dollar sign (not a hyphen), so the echo should work correctly.
14012 lt_compile=`echo "$ac_compile" | $SED \
14013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015 -e 's:$: $lt_compiler_flag:'`
14016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14017 (eval "$lt_compile" 2>out/conftest.err)
14019 cat out/conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14023 # The compiler can only warn and ignore the option if not recognized
14024 # So say no if there are warnings
14025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14026 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14027 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14028 lt_cv_prog_compiler_c_o_CXX=yes
14033 # SGI C++ compiler will create directory out/ii_files/ for
14034 # template instantiation
14035 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14036 $RM out/* && rmdir out
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14043 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14049 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14050 $as_echo_n "(cached) " >&6
14052 lt_cv_prog_compiler_c_o_CXX=no
14053 $RM -r conftest 2>/dev/null
14057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14059 lt_compiler_flag="-o out/conftest2.$ac_objext"
14060 # Insert the option either (1) after the last *FLAGS variable, or
14061 # (2) before a word containing "conftest.", or (3) at the end.
14062 # Note that $ac_compile itself does not contain backslashes and begins
14063 # with a dollar sign (not a hyphen), so the echo should work correctly.
14064 lt_compile=`echo "$ac_compile" | $SED \
14065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14067 -e 's:$: $lt_compiler_flag:'`
14068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14069 (eval "$lt_compile" 2>out/conftest.err)
14071 cat out/conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14075 # The compiler can only warn and ignore the option if not recognized
14076 # So say no if there are warnings
14077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14080 lt_cv_prog_compiler_c_o_CXX=yes
14085 # SGI C++ compiler will create directory out/ii_files/ for
14086 # template instantiation
14087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14088 $RM out/* && rmdir out
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14095 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14100 hard_links="nottested"
14101 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14102 # do not overwrite the value of need_locks provided by the user
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14104 $as_echo_n "checking if we can lock with hard links... " >&6; }
14107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14109 ln conftest.a conftest.b 2>&5 || hard_links=no
14110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14112 $as_echo "$hard_links" >&6; }
14113 if test "$hard_links" = no; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14115 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14125 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14127 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14128 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14131 # If we're using GNU nm, then we don't want the "-C" option.
14132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14133 # Also, AIX nm treats weak defined symbols like other global defined
14134 # symbols, whereas GNU nm marks them as "W".
14135 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14136 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'
14138 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'
14142 export_symbols_cmds_CXX="$ltdll_cmds"
14144 cygwin* | mingw* | cegcc*)
14145 case $cc_basename in
14147 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14150 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'
14151 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14155 linux* | k*bsd*-gnu | gnu*)
14156 link_all_deplibs_CXX=no
14159 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14164 $as_echo "$ld_shlibs_CXX" >&6; }
14165 test "$ld_shlibs_CXX" = no && can_build_shared=no
14167 with_gnu_ld_CXX=$with_gnu_ld
14175 # Do we need to explicitly link libc?
14177 case "x$archive_cmds_need_lc_CXX" in
14179 # Assume -lc should be added
14180 archive_cmds_need_lc_CXX=yes
14182 if test "$enable_shared" = yes && test "$GCC" = yes; then
14183 case $archive_cmds_CXX in
14185 # FIXME: we may have to deal with multi-command sequences.
14188 # Test whether the compiler implicitly links with -lc since on some
14189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14190 # to ld, don't add -lc before -lgcc.
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14192 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14193 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14194 $as_echo_n "(cached) " >&6
14197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14200 (eval $ac_compile) 2>&5
14202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14203 test $ac_status = 0; } 2>conftest.err; then
14206 libobjs=conftest.$ac_objext
14208 wl=$lt_prog_compiler_wl_CXX
14209 pic_flag=$lt_prog_compiler_pic_CXX
14215 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14216 allow_undefined_flag_CXX=
14217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14218 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14221 test $ac_status = 0; }
14223 lt_cv_archive_cmds_need_lc_CXX=no
14225 lt_cv_archive_cmds_need_lc_CXX=yes
14227 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14229 cat conftest.err 1>&5
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14235 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14236 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14305 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14307 library_names_spec=
14308 libname_spec='lib$name'
14312 postuninstall_cmds=
14316 shlibpath_overrides_runpath=unknown
14318 dynamic_linker="$host_os ld.so"
14319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14320 need_lib_prefix=unknown
14321 hardcode_into_libs=no
14323 # when you set need_version to no, make sure it does not cause -set_version
14324 # flags to be left without arguments
14325 need_version=unknown
14329 version_type=linux # correct to gnu/linux during the next big refactor
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14331 shlibpath_var=LIBPATH
14333 # AIX 3 has no versioning support, so we append a major version to the name.
14334 soname_spec='${libname}${release}${shared_ext}$major'
14338 version_type=linux # correct to gnu/linux during the next big refactor
14341 hardcode_into_libs=yes
14342 if test "$host_cpu" = ia64; then
14343 # AIX 5 supports IA64
14344 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14345 shlibpath_var=LD_LIBRARY_PATH
14347 # With GCC up to 2.95.x, collect2 would create an import file
14348 # for dependence libraries. The import file would start with
14349 # the line `#! .'. This would cause the generated library to
14350 # depend on `.', always an invalid library. This was fixed in
14351 # development snapshots of GCC prior to 3.0.
14353 aix4 | aix4.[01] | aix4.[01].*)
14354 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14356 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14359 can_build_shared=no
14363 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14364 # soname into executable. Probably we can add versioning support to
14365 # collect2, so additional links can be useful in future.
14366 if test "$aix_use_runtimelinking" = yes; then
14367 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14368 # instead of lib<name>.a to let people know that these are not
14369 # typical AIX shared libraries.
14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14372 # We preserve .a as extension for shared libraries through AIX4.2
14373 # and later when we are not doing run time linking.
14374 library_names_spec='${libname}${release}.a $libname.a'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14377 shlibpath_var=LIBPATH
14384 # Since July 2007 AmigaOS4 officially supports .so libraries.
14385 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 library_names_spec='$libname.ixlibrary $libname.a'
14390 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14391 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'
14397 library_names_spec='${libname}${shared_ext}'
14398 dynamic_linker="$host_os ld.so"
14399 shlibpath_var=LIBRARY_PATH
14403 version_type=linux # correct to gnu/linux during the next big refactor
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14408 shlibpath_var=LD_LIBRARY_PATH
14409 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14410 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14411 # the default ld.so.conf also contains /usr/contrib/lib and
14412 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14413 # libtool to hard-code these into programs
14416 cygwin* | mingw* | pw32* | cegcc*)
14417 version_type=windows
14422 case $GCC,$cc_basename in
14425 library_names_spec='$libname.dll.a'
14426 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14427 postinstall_cmds='base_file=`basename \${file}`~
14428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14429 dldir=$destdir/`dirname \$dlpath`~
14430 test -d \$dldir || mkdir -p \$dldir~
14431 $install_prog $dir/$dlname \$dldir/$dlname~
14432 chmod a+x \$dldir/$dlname~
14433 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14434 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14437 dlpath=$dir/\$dldll~
14439 shlibpath_overrides_runpath=yes
14443 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14444 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14448 # MinGW DLLs use traditional 'lib' prefix
14449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14452 # pw32 DLLs use 'pw' prefix rather than 'lib'
14453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14456 dynamic_linker='Win32 ld.exe'
14461 libname_spec='$name'
14462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14463 library_names_spec='${libname}.dll.lib'
14467 sys_lib_search_path_spec=
14470 for lt_path in $LIB
14473 # Let DOS variable expansion print the short 8.3 style file name.
14474 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14475 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14478 # Convert to MSYS style.
14479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14482 # Convert to unix form, then to dos form, then back to unix form
14483 # but this time dos style (no spaces!) so that the unix form looks
14484 # like /cygdrive/c/PROGRA~1:/cygdr...
14485 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14486 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14487 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14490 sys_lib_search_path_spec="$LIB"
14491 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14492 # It is most probably a Windows format PATH.
14493 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14497 # FIXME: find the short name or the path components, as spaces are
14498 # common. (e.g. "Program Files" -> "PROGRA~1")
14502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14503 postinstall_cmds='base_file=`basename \${file}`~
14504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14505 dldir=$destdir/`dirname \$dlpath`~
14506 test -d \$dldir || mkdir -p \$dldir~
14507 $install_prog $dir/$dlname \$dldir/$dlname'
14508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14509 dlpath=$dir/\$dldll~
14511 shlibpath_overrides_runpath=yes
14512 dynamic_linker='Win32 link.exe'
14516 # Assume MSVC wrapper
14517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14518 dynamic_linker='Win32 ld.exe'
14521 # FIXME: first we should search . and the directory the executable is in
14525 darwin* | rhapsody*)
14526 dynamic_linker="$host_os dyld"
14527 version_type=darwin
14530 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14531 soname_spec='${libname}${release}${major}$shared_ext'
14532 shlibpath_overrides_runpath=yes
14533 shlibpath_var=DYLD_LIBRARY_PATH
14534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14536 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14540 version_type=linux # correct to gnu/linux during the next big refactor
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 shlibpath_var=LD_LIBRARY_PATH
14548 freebsd* | dragonfly*)
14549 # DragonFly does not have aout. When/if they implement a new
14550 # versioning mechanism, adjust this.
14551 if test -x /usr/bin/objformat; then
14552 objformat=`/usr/bin/objformat`
14555 freebsd[23].*) objformat=aout ;;
14556 *) objformat=elf ;;
14559 version_type=freebsd-$objformat
14560 case $version_type in
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14571 shlibpath_var=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath=yes
14576 freebsd3.[01]* | freebsdelf3.[01]*)
14577 shlibpath_overrides_runpath=yes
14578 hardcode_into_libs=yes
14580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14582 shlibpath_overrides_runpath=no
14583 hardcode_into_libs=yes
14585 *) # from 4.6 on, and DragonFly
14586 shlibpath_overrides_runpath=yes
14587 hardcode_into_libs=yes
14593 version_type=linux # correct to gnu/linux during the next big refactor
14596 dynamic_linker="$host_os runtime_loader"
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 shlibpath_var=LIBRARY_PATH
14600 shlibpath_overrides_runpath=yes
14601 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14602 hardcode_into_libs=yes
14605 hpux9* | hpux10* | hpux11*)
14606 # Give a soname corresponding to the major version so that dld.sl refuses to
14607 # link against other versions.
14614 hardcode_into_libs=yes
14615 dynamic_linker="$host_os dld.so"
14616 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 if test "X$HPUX_IA64_MODE" = X32; then
14621 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14623 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14629 hardcode_into_libs=yes
14630 dynamic_linker="$host_os dld.sl"
14631 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14640 dynamic_linker="$host_os dld.sl"
14641 shlibpath_var=SHLIB_PATH
14642 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14647 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14648 postinstall_cmds='chmod 555 $lib'
14649 # or fails outright, so override atomically:
14650 install_override_mode=555
14654 version_type=linux # correct to gnu/linux during the next big refactor
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=no
14662 hardcode_into_libs=yes
14665 irix5* | irix6* | nonstopux*)
14667 nonstopux*) version_type=nonstopux ;;
14669 if test "$lt_cv_prog_gnu_ld" = yes; then
14670 version_type=linux # correct to gnu/linux during the next big refactor
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14680 irix5* | nonstopux*)
14681 libsuff= shlibsuff=
14684 case $LD in # libtool.m4 will add one of these switches to LD
14685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14686 libsuff= shlibsuff= libmagic=32-bit;;
14687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14688 libsuff=32 shlibsuff=N32 libmagic=N32;;
14689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14691 *) libsuff= shlibsuff= libmagic=never-match;;
14695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14696 shlibpath_overrides_runpath=no
14697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14699 hardcode_into_libs=yes
14702 # No shared lib support for Linux oldld, aout, or coff.
14703 linux*oldld* | linux*aout* | linux*coff*)
14707 # This must be glibc/ELF.
14708 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14709 version_type=linux # correct to gnu/linux during the next big refactor
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 shlibpath_overrides_runpath=no
14718 # Some binutils ld are patched to set DT_RUNPATH
14719 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14720 $as_echo_n "(cached) " >&6
14722 lt_cv_shlibpath_overrides_runpath=no
14723 save_LDFLAGS=$LDFLAGS
14724 save_libdir=$libdir
14725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14738 if ac_fn_cxx_try_link "$LINENO"; then :
14739 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14740 lt_cv_shlibpath_overrides_runpath=yes
14743 rm -f core conftest.err conftest.$ac_objext \
14744 conftest$ac_exeext conftest.$ac_ext
14745 LDFLAGS=$save_LDFLAGS
14746 libdir=$save_libdir
14750 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14752 # This implies no fast_install, which is unacceptable.
14753 # Some rework will be needed to allow for fast_install
14754 # before this can be enabled.
14755 hardcode_into_libs=yes
14757 # Append ld.so.conf contents to the search path
14758 if test -f /etc/ld.so.conf; then
14759 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' ' '`
14760 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14763 # We used to test for /lib/ld.so.1 and disable shared libraries on
14764 # powerpc, because MkLinux only supported shared libraries with the
14765 # GNU dynamic linker. Since this was broken with cross compilers,
14766 # most powerpc-linux boxes support dynamic linking these days and
14767 # people can always --disable-shared, the test was removed, and we
14768 # assume the GNU/Linux dynamic linker is in use.
14769 dynamic_linker='GNU/Linux ld.so'
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=no
14780 hardcode_into_libs=yes
14781 dynamic_linker='NetBSD ld.elf_so'
14788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14791 dynamic_linker='NetBSD (a.out) ld.so'
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 dynamic_linker='NetBSD ld.elf_so'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 shlibpath_overrides_runpath=yes
14799 hardcode_into_libs=yes
14803 version_type=linux # correct to gnu/linux during the next big refactor
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 shlibpath_overrides_runpath=yes
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=no
14817 hardcode_into_libs=yes
14818 dynamic_linker='ldqnx.so'
14823 sys_lib_dlsearch_path_spec="/usr/lib"
14825 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14827 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14828 *) need_version=no ;;
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14835 openbsd2.[89] | openbsd2.[89].*)
14836 shlibpath_overrides_runpath=no
14839 shlibpath_overrides_runpath=yes
14843 shlibpath_overrides_runpath=yes
14848 libname_spec='$name'
14851 library_names_spec='$libname${shared_ext} $libname.a'
14852 dynamic_linker='OS/2 ld.exe'
14853 shlibpath_var=LIBPATH
14856 osf3* | osf4* | osf5*)
14860 soname_spec='${libname}${release}${shared_ext}$major'
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14864 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14872 version_type=linux # correct to gnu/linux during the next big refactor
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 shlibpath_overrides_runpath=yes
14879 hardcode_into_libs=yes
14880 # ldd complains unless libraries are executable
14881 postinstall_cmds='chmod +x $lib'
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14887 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=yes
14890 if test "$with_gnu_ld" = yes; then
14897 version_type=linux # correct to gnu/linux during the next big refactor
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 case $host_vendor in
14903 shlibpath_overrides_runpath=no
14905 runpath_var=LD_RUN_PATH
14913 shlibpath_overrides_runpath=no
14914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14920 if test -d /usr/nec ;then
14921 version_type=linux # correct to gnu/linux during the next big refactor
14922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14923 soname_spec='$libname${shared_ext}.$major'
14924 shlibpath_var=LD_LIBRARY_PATH
14928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14929 version_type=freebsd-elf
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 shlibpath_overrides_runpath=yes
14936 hardcode_into_libs=yes
14937 if test "$with_gnu_ld" = yes; then
14938 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14940 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14943 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14947 sys_lib_dlsearch_path_spec='/usr/lib'
14951 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14952 version_type=linux # correct to gnu/linux during the next big refactor
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956 shlibpath_var=LD_LIBRARY_PATH
14957 shlibpath_overrides_runpath=no
14958 hardcode_into_libs=yes
14962 version_type=linux # correct to gnu/linux during the next big refactor
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 shlibpath_var=LD_LIBRARY_PATH
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14973 $as_echo "$dynamic_linker" >&6; }
14974 test "$dynamic_linker" = no && can_build_shared=no
14976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14977 if test "$GCC" = yes; then
14978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14982 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14985 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15026 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15027 hardcode_action_CXX=
15028 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15029 test -n "$runpath_var_CXX" ||
15030 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15032 # We can hardcode non-existent directories.
15033 if test "$hardcode_direct_CXX" != no &&
15034 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15035 # have to relink, otherwise we might link with an installed library
15036 # when we should be linking with a yet-to-be-installed one
15037 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15038 test "$hardcode_minus_L_CXX" != no; then
15039 # Linking always hardcodes the temporary library directory.
15040 hardcode_action_CXX=relink
15042 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15043 hardcode_action_CXX=immediate
15046 # We cannot hardcode anything, or else we can only hardcode existing
15048 hardcode_action_CXX=unsupported
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15051 $as_echo "$hardcode_action_CXX" >&6; }
15053 if test "$hardcode_action_CXX" = relink ||
15054 test "$inherit_rpath_CXX" = yes; then
15055 # Fast installation is not supported
15056 enable_fast_install=no
15057 elif test "$shlibpath_overrides_runpath" = yes ||
15058 test "$enable_shared" = no; then
15059 # Fast installation is not necessary
15060 enable_fast_install=needless
15069 fi # test -n "$compiler"
15072 CFLAGS=$lt_save_CFLAGS
15076 with_gnu_ld=$lt_save_with_gnu_ld
15077 lt_cv_path_LDCXX=$lt_cv_path_LD
15078 lt_cv_path_LD=$lt_save_path_LD
15079 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15080 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15081 fi # test "$_lt_caught_CXX_error" != yes
15084 ac_cpp='$CXXCPP $CPPFLAGS'
15085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15103 ac_config_commands="$ac_config_commands libtool"
15108 # Only expand once:
15112 # TODO(chandlerc@google.com): Currently we aren't running the Python tests
15113 # against the interpreter detected by AM_PATH_PYTHON, and so we condition
15114 # HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
15115 # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
15117 PYTHON= # We *do not* allow the user to specify a python interpreter
15118 # Extract the first word of "python", so it can be a program name with args.
15119 set dummy python; ac_word=$2
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15121 $as_echo_n "checking for $ac_word... " >&6; }
15122 if ${ac_cv_path_PYTHON+:} false; then :
15123 $as_echo_n "(cached) " >&6
15127 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15131 for as_dir in $PATH
15134 test -z "$as_dir" && as_dir=.
15135 for ac_exec_ext in '' $ac_executable_extensions; do
15136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15137 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15145 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
15149 PYTHON=$ac_cv_path_PYTHON
15150 if test -n "$PYTHON"; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15152 $as_echo "$PYTHON" >&6; }
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 $as_echo "no" >&6; }
15159 if test "$PYTHON" != ":"; then :
15161 # split strings by '.' and convert to numeric. Append some zeros
15162 # because we need at least 4 digits for the hex conversion.
15163 # map returns an iterator in Python 3.0 and a list in 2.x
15164 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
15166 # xrange is not present in Python 3.0 and range returns an iterator
15167 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15168 sys.exit(sys.hexversion < minverhex)"
15169 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
15170 ($PYTHON -c "$prog") >&5 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; then :
15179 if test "$PYTHON" != ":"; then
15181 HAVE_PYTHON_FALSE='#'
15183 HAVE_PYTHON_TRUE='#'
15188 # Configure pthreads.
15190 # Check whether --with-pthreads was given.
15191 if test "${with_pthreads+set}" = set; then :
15192 withval=$with_pthreads; with_pthreads=$withval
15194 with_pthreads=check
15199 if test "x$with_pthreads" != "xno"; then :
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15211 # We used to check for pthread.h first, but this fails if pthread.h
15212 # requires special compiler flags (e.g. on True64 or Sequent).
15213 # It gets checked for in the link test anyway.
15215 # First of all, check if the user has set any of the PTHREAD_LIBS,
15216 # etcetera environment variables, and if threads linking works using
15218 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15219 save_CFLAGS="$CFLAGS"
15220 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15222 LIBS="$PTHREAD_LIBS $LIBS"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15224 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15228 /* Override any GCC internal prototype to avoid an error.
15229 Use char because int might match the return type of a GCC
15230 builtin and then its argument prototype would still apply. */
15234 char pthread_join ();
15238 return pthread_join ();
15243 if ac_fn_c_try_link "$LINENO"; then :
15246 rm -f core conftest.err conftest.$ac_objext \
15247 conftest$ac_exeext conftest.$ac_ext
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15249 $as_echo "$acx_pthread_ok" >&6; }
15250 if test x"$acx_pthread_ok" = xno; then
15255 CFLAGS="$save_CFLAGS"
15258 # We must check for the threads library under a number of different
15259 # names; the ordering is very important because some systems
15260 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15261 # libraries is broken (non-POSIX).
15263 # Create a list of thread flags to try. Items starting with a "-" are
15264 # C compiler flags, and other items are library names, except for "none"
15265 # which indicates that we try without any flags at all, and "pthread-config"
15266 # which is a program returning the flags for the Pth emulation library.
15268 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15270 # The ordering *is* (sometimes) important. Some notes on the
15271 # individual items follow:
15273 # pthreads: AIX (must check this before -lpthread)
15274 # none: in case threads are in libc; should be tried before -Kthread and
15275 # other compiler flags to prevent continual compiler warnings
15276 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15277 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15278 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15279 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15280 # -pthreads: Solaris/gcc
15281 # -mthreads: Mingw32/gcc, Lynx/gcc
15282 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15283 # doesn't hurt to check since this sometimes defines pthreads too;
15284 # also defines -D_REENTRANT)
15285 # ... -mt is also the pthreads flag for HP/aCC
15286 # pthread: Linux, etcetera
15287 # --thread-safe: KAI C++
15288 # pthread-config: use pthread-config program (for GNU Pth library)
15290 case "${host_cpu}-${host_os}" in
15293 # On Solaris (at least, for some versions), libc contains stubbed
15294 # (non-functional) versions of the pthreads routines, so link-based
15295 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15296 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15297 # a function called by this macro, so we could check for that, but
15298 # who knows whether they'll stub that too in a future libc.) So,
15299 # we'll just look for -pthreads and -lpthread first:
15301 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15305 if test x"$acx_pthread_ok" = xno; then
15306 for flag in $acx_pthread_flags; do
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15311 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15316 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15317 PTHREAD_CFLAGS="$flag"
15321 # Extract the first word of "pthread-config", so it can be a program name with args.
15322 set dummy pthread-config; ac_word=$2
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15324 $as_echo_n "checking for $ac_word... " >&6; }
15325 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15326 $as_echo_n "(cached) " >&6
15328 if test -n "$acx_pthread_config"; then
15329 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15332 for as_dir in $PATH
15335 test -z "$as_dir" && as_dir=.
15336 for ac_exec_ext in '' $ac_executable_extensions; do
15337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15338 ac_cv_prog_acx_pthread_config="yes"
15339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15346 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15349 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15350 if test -n "$acx_pthread_config"; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15352 $as_echo "$acx_pthread_config" >&6; }
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "no" >&6; }
15359 if test x"$acx_pthread_config" = xno; then continue; fi
15360 PTHREAD_CFLAGS="`pthread-config --cflags`"
15361 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15366 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15367 PTHREAD_LIBS="-l$flag"
15372 save_CFLAGS="$CFLAGS"
15373 LIBS="$PTHREAD_LIBS $LIBS"
15374 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15376 # Check for various functions. We must include pthread.h,
15377 # since some functions may be macros. (On the Sequent, we
15378 # need a special flag -Kthread to make this header compile.)
15379 # We check for pthread_join because it is in -lpthread on IRIX
15380 # while pthread_create is in libc. We check for pthread_attr_init
15381 # due to DEC craziness with -lpthreads. We check for
15382 # pthread_cleanup_push because it is one of the few pthread
15383 # functions on Solaris that doesn't have a non-functional libc stub.
15384 # We try pthread_create on general principles.
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387 #include <pthread.h>
15391 pthread_t th; pthread_join(th, 0);
15392 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15393 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15398 if ac_fn_c_try_link "$LINENO"; then :
15401 rm -f core conftest.err conftest.$ac_objext \
15402 conftest$ac_exeext conftest.$ac_ext
15405 CFLAGS="$save_CFLAGS"
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15408 $as_echo "$acx_pthread_ok" >&6; }
15409 if test "x$acx_pthread_ok" = xyes; then
15418 # Various other checks:
15419 if test "x$acx_pthread_ok" = xyes; then
15421 LIBS="$PTHREAD_LIBS $LIBS"
15422 save_CFLAGS="$CFLAGS"
15423 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15425 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15427 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15429 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432 #include <pthread.h>
15436 int attr=$attr; return attr;
15441 if ac_fn_c_try_link "$LINENO"; then :
15442 attr_name=$attr; break
15444 rm -f core conftest.err conftest.$ac_objext \
15445 conftest$ac_exeext conftest.$ac_ext
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15448 $as_echo "$attr_name" >&6; }
15449 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15451 cat >>confdefs.h <<_ACEOF
15452 #define PTHREAD_CREATE_JOINABLE $attr_name
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15458 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15460 case "${host_cpu}-${host_os}" in
15461 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15462 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15465 $as_echo "${flag}" >&6; }
15466 if test "x$flag" != xno; then
15467 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15471 CFLAGS="$save_CFLAGS"
15472 # More AIX lossage: must compile with xlc_r or cc_r
15473 if test x"$GCC" != xyes; then
15474 for ac_prog in xlc_r cc_r
15476 # Extract the first word of "$ac_prog", so it can be a program name with args.
15477 set dummy $ac_prog; ac_word=$2
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15479 $as_echo_n "checking for $ac_word... " >&6; }
15480 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15481 $as_echo_n "(cached) " >&6
15483 if test -n "$PTHREAD_CC"; then
15484 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487 for as_dir in $PATH
15490 test -z "$as_dir" && as_dir=.
15491 for ac_exec_ext in '' $ac_executable_extensions; do
15492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15493 ac_cv_prog_PTHREAD_CC="$ac_prog"
15494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15503 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15504 if test -n "$PTHREAD_CC"; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15506 $as_echo "$PTHREAD_CC" >&6; }
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15513 test -n "$PTHREAD_CC" && break
15515 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15521 # The next part tries to detect GCC inconsistency with -shared on some
15522 # architectures and systems. The problem is that in certain
15523 # configurations, when -shared is specified, GCC "forgets" to
15524 # internally use various flags which are still necessary.
15527 # Prepare the flags
15529 save_CFLAGS="$CFLAGS"
15533 # Try with the flags determined by the earlier checks.
15535 # -Wl,-z,defs forces link-time symbol resolution, so that the
15536 # linking checks with -shared actually have any value
15538 # FIXME: -fPIC is required for -shared on many architectures,
15539 # so we specify it here, but the right way would probably be to
15540 # properly detect whether it is actually required.
15541 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15542 LIBS="$PTHREAD_LIBS $LIBS"
15545 # In order not to create several levels of indentation, we test
15546 # the value of "$done" until we find the cure or run out of ideas.
15549 # First, make sure the CFLAGS we added are actually accepted by our
15550 # compiler. If not (and OS X's ld, for instance, does not accept -z),
15551 # then we can't do this test.
15552 if test x"$done" = xno; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15554 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15566 if ac_fn_c_try_link "$LINENO"; then :
15571 rm -f core conftest.err conftest.$ac_objext \
15572 conftest$ac_exeext conftest.$ac_ext
15574 if test "x$done" = xyes ; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576 $as_echo "no" >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15579 $as_echo "yes" >&6; }
15583 if test x"$done" = xno; then
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15585 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15588 #include <pthread.h>
15592 pthread_t th; pthread_join(th, 0);
15593 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15594 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15599 if ac_fn_c_try_link "$LINENO"; then :
15602 rm -f core conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15605 if test "x$done" = xyes; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607 $as_echo "yes" >&6; }
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15610 $as_echo "no" >&6; }
15615 # Linux gcc on some architectures such as mips/mipsel forgets
15618 if test x"$done" = xno; then
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15620 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
15621 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 #include <pthread.h>
15628 pthread_t th; pthread_join(th, 0);
15629 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15630 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15635 if ac_fn_c_try_link "$LINENO"; then :
15638 rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15641 if test "x$done" = xyes; then
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15643 $as_echo "yes" >&6; }
15644 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15647 $as_echo "no" >&6; }
15651 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15653 if test x"$done" = xno; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15655 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
15656 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15659 #include <pthread.h>
15663 pthread_t th; pthread_join(th, 0);
15664 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15665 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15670 if ac_fn_c_try_link "$LINENO"; then :
15673 rm -f core conftest.err conftest.$ac_objext \
15674 conftest$ac_exeext conftest.$ac_ext
15676 if test "x$done" = xyes; then
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15678 $as_echo "yes" >&6; }
15679 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15685 if test x"$done" = xno; then
15686 # OK, we have run out of ideas
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15688 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15690 # so it's not safe to assume that we may use pthreads
15694 CFLAGS="$save_CFLAGS"
15705 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15706 if test x"$acx_pthread_ok" = xyes; then
15708 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15713 if test "x$with_pthreads" != "xcheck"; then :
15714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15716 as_fn_error $? "--with-pthreads was specified, but unable to be used
15717 See \`config.log' for more details" "$LINENO" 5; }
15721 ac_cpp='$CXXCPP $CPPFLAGS'
15722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15727 have_pthreads="$acx_pthread_ok"
15729 if test "x$have_pthreads" == "xyes"; then
15730 HAVE_PTHREADS_TRUE=
15731 HAVE_PTHREADS_FALSE='#'
15733 HAVE_PTHREADS_TRUE='#'
15734 HAVE_PTHREADS_FALSE=
15740 # TODO(chandlerc@google.com) Check for the necessary system headers.
15742 # TODO(chandlerc@google.com) Check the types, structures, and other compiler
15743 # and architecture characteristics.
15745 # Output the generated files. No further autoconf macros may be used.
15746 cat >confcache <<\_ACEOF
15747 # This file is a shell script that caches the results of configure
15748 # tests run on this system so they can be shared between configure
15749 # scripts and configure runs, see configure's option --config-cache.
15750 # It is not useful on other systems. If it contains results you don't
15751 # want to keep, you may remove or edit it.
15753 # config.status only pays attention to the cache file if you give it
15754 # the --recheck option to rerun configure.
15756 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15757 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15758 # following values.
15762 # The following way of writing the cache mishandles newlines in values,
15763 # but we know of no workaround that is simple, portable, and efficient.
15764 # So, we kill variables containing newlines.
15765 # Ultrix sh set writes to stderr and can't be redirected directly,
15766 # and sets the high bit in the cache file unless we assign to the vars.
15768 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15769 eval ac_val=\$$ac_var
15773 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15774 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15777 _ | IFS | as_nl) ;; #(
15778 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15779 *) { eval $ac_var=; unset $ac_var;} ;;
15785 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15786 *${as_nl}ac_space=\ *)
15787 # `set' does not quote correctly, so add quotes: double-quote
15788 # substitution turns \\\\ into \\, and sed turns \\ into \.
15791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15794 # `set' quotes correctly as required by POSIX, so do not add quotes.
15795 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15804 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15806 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15808 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15809 if test -w "$cache_file"; then
15810 if test "x$cache_file" != "x/dev/null"; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15812 $as_echo "$as_me: updating cache $cache_file" >&6;}
15813 if test ! -f "$cache_file" || test -h "$cache_file"; then
15814 cat confcache >"$cache_file"
15816 case $cache_file in #(
15818 mv -f confcache "$cache_file"$$ &&
15819 mv -f "$cache_file"$$ "$cache_file" ;; #(
15821 mv -f confcache "$cache_file" ;;
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15827 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15832 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15833 # Let make expand exec_prefix.
15834 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15836 DEFS=-DHAVE_CONFIG_H
15841 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15842 # 1. Remove the extension, and $U if already installed.
15843 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15844 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15845 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15846 # will be set to the directory where LIBOBJS objects are built.
15847 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15848 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15850 LIBOBJS=$ac_libobjs
15852 LTLIBOBJS=$ac_ltlibobjs
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15856 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15857 if test -n "$am_sleep_pid"; then
15858 # Hide warnings about reused PIDs.
15859 wait $am_sleep_pid 2>/dev/null
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15862 $as_echo "done" >&6; }
15863 if test -n "$EXEEXT"; then
15865 am__EXEEXT_FALSE='#'
15867 am__EXEEXT_TRUE='#'
15871 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15872 as_fn_error $? "conditional \"AMDEP\" was never defined.
15873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15875 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15876 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15879 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15880 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15883 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15884 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
15885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15887 if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
15888 as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined.
15889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15892 : "${CONFIG_STATUS=./config.status}"
15894 ac_clean_files_save=$ac_clean_files
15895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15901 # Generated by $as_me.
15902 # Run this file to recreate the current configuration.
15903 # Compiler output produced by configure, useful for debugging
15904 # configure, is in config.log if it exists.
15907 ac_cs_recheck=false
15910 SHELL=\${CONFIG_SHELL-$SHELL}
15913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15914 ## -------------------- ##
15915 ## M4sh Initialization. ##
15916 ## -------------------- ##
15918 # Be more Bourne compatible
15919 DUALCASE=1; export DUALCASE # for MKS sh
15920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15924 # is contrary to our usage. Disable this feature.
15925 alias -g '${1+"$@"}'='"$@"'
15926 setopt NO_GLOB_SUBST
15928 case `(set -o) 2>/dev/null` in #(
15940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15944 # Prefer a ksh shell builtin over an external printf program on Solaris,
15945 # but without wasting forks for bash or zsh.
15946 if test -z "$BASH_VERSION$ZSH_VERSION" \
15947 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15948 as_echo='print -r --'
15949 as_echo_n='print -rn --'
15950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15951 as_echo='printf %s\n'
15952 as_echo_n='printf %s'
15954 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15955 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15956 as_echo_n='/usr/ucb/echo -n'
15958 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15959 as_echo_n_body='eval
15963 expr "X$arg" : "X\\(.*\\)$as_nl";
15964 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15966 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15968 export as_echo_n_body
15969 as_echo_n='sh -c $as_echo_n_body as_echo'
15971 export as_echo_body
15972 as_echo='sh -c $as_echo_body as_echo'
15975 # The user is always right.
15976 if test "${PATH_SEPARATOR+set}" != set; then
15978 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15979 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15986 # We need space, tab and new line, in precisely that order. Quoting is
15987 # there to prevent editors from complaining about space-tab.
15988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15989 # splitting by setting IFS to empty value.)
15992 # Find who we are. Look in the path if we contain no directory separator.
15995 *[\\/]* ) as_myself=$0 ;;
15996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15997 for as_dir in $PATH
16000 test -z "$as_dir" && as_dir=.
16001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16007 # We did not find ourselves, most probably we were run as `sh COMMAND'
16008 # in which case we are not to be found in the path.
16009 if test "x$as_myself" = x; then
16012 if test ! -f "$as_myself"; then
16013 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16017 # Unset variables that we do not need and which cause bugs (e.g. in
16018 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16019 # suppresses any "Segmentation fault" message there. '((' could
16020 # trigger a bug in pdksh 5.2.14.
16021 for as_var in BASH_ENV ENV MAIL MAILPATH
16022 do eval test x\${$as_var+set} = xset \
16023 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16040 # ----------------------------------------
16041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16043 # script with STATUS, using 1 if that was 0.
16046 as_status=$1; test $as_status -eq 0 && as_status=1
16048 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16049 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16051 $as_echo "$as_me: error: $2" >&2
16052 as_fn_exit $as_status
16056 # as_fn_set_status STATUS
16057 # -----------------------
16058 # Set $? to STATUS, without forking.
16059 as_fn_set_status ()
16062 } # as_fn_set_status
16064 # as_fn_exit STATUS
16065 # -----------------
16066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16070 as_fn_set_status $1
16076 # Portably unset VAR.
16079 { eval $1=; unset $1;}
16081 as_unset=as_fn_unset
16082 # as_fn_append VAR VALUE
16083 # ----------------------
16084 # Append the text in VALUE to the end of the definition contained in VAR. Take
16085 # advantage of any shell optimizations that allow amortized linear growth over
16086 # repeated appends, instead of the typical quadratic growth present in naive
16088 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16089 eval 'as_fn_append ()
16100 # as_fn_arith ARG...
16101 # ------------------
16102 # Perform arithmetic evaluation on the ARGs, and store the result in the
16103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16104 # must be portable across $(()) and expr.
16105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16106 eval 'as_fn_arith ()
16113 as_val=`expr "$@" || test $? -eq 1`
16118 if expr a : '\(a\)' >/dev/null 2>&1 &&
16119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16126 as_basename=basename
16131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16137 as_me=`$as_basename -- "$0" ||
16138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16139 X"$0" : 'X\(//\)$' \| \
16140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16142 sed '/^.*\/\([^/][^/]*\)\/*$/{
16156 # Avoid depending upon Character Ranges.
16157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16160 as_cr_digits='0123456789'
16161 as_cr_alnum=$as_cr_Letters$as_cr_digits
16163 ECHO_C= ECHO_N= ECHO_T=
16164 case `echo -n x` in #(((((
16166 case `echo 'xy\c'` in
16167 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16169 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16176 rm -f conf$$ conf$$.exe conf$$.file
16177 if test -d conf$$.dir; then
16178 rm -f conf$$.dir/conf$$.file
16181 mkdir conf$$.dir 2>/dev/null
16183 if (echo >conf$$.file) 2>/dev/null; then
16184 if ln -s conf$$.file conf$$ 2>/dev/null; then
16186 # ... but there are two gotchas:
16187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16189 # In both cases, we have to default to `cp -pR'.
16190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16192 elif ln conf$$.file conf$$ 2>/dev/null; then
16200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16201 rmdir conf$$.dir 2>/dev/null
16206 # Create "$as_dir" as a directory, including parents if necessary.
16211 -*) as_dir=./$as_dir;;
16213 test -d "$as_dir" || eval $as_mkdir_p || {
16217 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16218 *) as_qdir=$as_dir;;
16220 as_dirs="'$as_qdir' $as_dirs"
16221 as_dir=`$as_dirname -- "$as_dir" ||
16222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16223 X"$as_dir" : 'X\(//\)[^/]' \| \
16224 X"$as_dir" : 'X\(//\)$' \| \
16225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16226 $as_echo X"$as_dir" |
16227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16231 /^X\(\/\/\)[^/].*/{
16244 test -d "$as_dir" && break
16246 test -z "$as_dirs" || eval "mkdir $as_dirs"
16247 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16251 if mkdir -p . 2>/dev/null; then
16252 as_mkdir_p='mkdir -p "$as_dir"'
16254 test -d ./-p && rmdir ./-p
16259 # as_fn_executable_p FILE
16260 # -----------------------
16261 # Test if FILE is an executable regular file.
16262 as_fn_executable_p ()
16264 test -f "$1" && test -x "$1"
16265 } # as_fn_executable_p
16266 as_test_x='test -x'
16267 as_executable_p=as_fn_executable_p
16269 # Sed expression to map a string onto a valid CPP name.
16270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16272 # Sed expression to map a string onto a valid variable name.
16273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16277 ## ----------------------------------- ##
16278 ## Main body of $CONFIG_STATUS script. ##
16279 ## ----------------------------------- ##
16281 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16284 # Save the log message, to keep $0 and so on meaningful, and to
16285 # report actual input values of CONFIG_FILES etc. instead of their
16286 # values after options handling.
16288 This file was extended by Google C++ Testing Framework $as_me 1.6.0, which was
16289 generated by GNU Autoconf 2.69. Invocation command line was
16291 CONFIG_FILES = $CONFIG_FILES
16292 CONFIG_HEADERS = $CONFIG_HEADERS
16293 CONFIG_LINKS = $CONFIG_LINKS
16294 CONFIG_COMMANDS = $CONFIG_COMMANDS
16297 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16302 case $ac_config_files in *"
16303 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16306 case $ac_config_headers in *"
16307 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16312 # Files that config.status was made for.
16313 config_files="$ac_config_files"
16314 config_headers="$ac_config_headers"
16315 config_commands="$ac_config_commands"
16319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16321 \`$as_me' instantiates files and other configuration actions
16322 from templates according to the current configuration. Unless the files
16323 and actions are specified as TAGs, all are instantiated by default.
16325 Usage: $0 [OPTION]... [TAG]...
16327 -h, --help print this help, then exit
16328 -V, --version print version number and configuration settings, then exit
16329 --config print configuration, then exit
16330 -q, --quiet, --silent
16331 do not print progress messages
16332 -d, --debug don't remove temporary files
16333 --recheck update $as_me by reconfiguring in the same conditions
16334 --file=FILE[:TEMPLATE]
16335 instantiate the configuration file FILE
16336 --header=FILE[:TEMPLATE]
16337 instantiate the configuration header FILE
16339 Configuration files:
16342 Configuration headers:
16345 Configuration commands:
16348 Report bugs to <googletestframework@googlegroups.com>."
16351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16354 Google C++ Testing Framework config.status 1.6.0
16355 configured by $0, generated by GNU Autoconf 2.69,
16356 with options \\"\$ac_cs_config\\"
16358 Copyright (C) 2012 Free Software Foundation, Inc.
16359 This config.status script is free software; the Free Software Foundation
16360 gives unlimited permission to copy, distribute and modify it."
16367 test -n "\$AWK" || AWK=awk
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371 # The default lists apply if the user does not specify any file.
16377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16394 # Handling of the options.
16395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16398 $as_echo "$ac_cs_version"; exit ;;
16399 --config | --confi | --conf | --con | --co | --c )
16400 $as_echo "$ac_cs_config"; exit ;;
16401 --debug | --debu | --deb | --de | --d | -d )
16403 --file | --fil | --fi | --f )
16406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16407 '') as_fn_error $? "missing file argument" ;;
16409 as_fn_append CONFIG_FILES " '$ac_optarg'"
16410 ac_need_defaults=false;;
16411 --header | --heade | --head | --hea )
16414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16416 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16417 ac_need_defaults=false;;
16419 # Conflict between --help and --header
16420 as_fn_error $? "ambiguous option: \`$1'
16421 Try \`$0 --help' for more information.";;
16422 --help | --hel | -h )
16423 $as_echo "$ac_cs_usage"; exit ;;
16424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16425 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16428 # This is an error.
16429 -*) as_fn_error $? "unrecognized option: \`$1'
16430 Try \`$0 --help' for more information." ;;
16432 *) as_fn_append ac_config_targets " $1"
16433 ac_need_defaults=false ;;
16439 ac_configure_extra_args=
16441 if $ac_cs_silent; then
16443 ac_configure_extra_args="$ac_configure_extra_args --silent"
16447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448 if \$ac_cs_recheck; then
16449 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16452 CONFIG_SHELL='$SHELL'
16453 export CONFIG_SHELL
16458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16463 ## Running $as_me. ##
16469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16473 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16476 # The HP-UX ksh and POSIX shell print the target directory to stdout
16477 # if CDPATH is set.
16478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16480 sed_quote_subst='$sed_quote_subst'
16481 double_quote_subst='$double_quote_subst'
16482 delay_variable_subst='$delay_variable_subst'
16483 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16484 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16485 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16486 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16487 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16488 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16489 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16490 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16491 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16492 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16493 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16494 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16495 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16496 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16497 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16498 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16499 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16500 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16501 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16502 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16503 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16504 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16505 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16506 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16507 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16508 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16509 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16510 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16511 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16512 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16513 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16514 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16515 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16519 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16520 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16521 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16522 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16523 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16524 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16525 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16526 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16527 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16528 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16529 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16530 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16531 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16532 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16533 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16534 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16535 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16536 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16537 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16538 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16539 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"`'
16540 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16541 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16542 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16543 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16544 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16545 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16546 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16547 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16548 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16549 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16550 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16551 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16552 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16553 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16554 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16555 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16556 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16557 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16558 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16559 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16560 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16561 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16562 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16563 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16564 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16565 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16566 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16567 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16568 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16569 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16570 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16571 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16572 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16573 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16574 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16575 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16576 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16577 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16578 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16579 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16580 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16581 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16582 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16583 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16584 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16585 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16586 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16587 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16588 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16589 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16590 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16591 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16592 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16593 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16594 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16595 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16596 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16597 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16598 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16599 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16600 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16601 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16602 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16603 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16604 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16605 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16606 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16607 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16608 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16609 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16610 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16611 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16612 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16613 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16614 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16615 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16616 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16617 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16618 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16619 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16620 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16621 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16622 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16623 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16624 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16625 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16626 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16627 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16628 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16629 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16630 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16631 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16632 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16633 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16634 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16635 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16636 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16637 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16638 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16639 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16640 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16641 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16642 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16643 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16644 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16645 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16646 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16647 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16648 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16649 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16650 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16651 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16652 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16653 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16654 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16655 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16656 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16657 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16658 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16659 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16660 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16661 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16662 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16663 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16664 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16665 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16666 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16669 LTCFLAGS='$LTCFLAGS'
16670 compiler='$compiler_DEFAULT'
16672 # A function that is used when there is no print builtin or printf.
16673 func_fallback_echo ()
16675 eval 'cat <<_LTECHO_EOF
16680 # Quote evaled strings.
16695 deplibs_check_method \
16700 sharedlib_from_linklib_cmd \
16703 archiver_list_spec \
16709 lt_cv_sys_global_symbol_pipe \
16710 lt_cv_sys_global_symbol_to_cdecl \
16711 lt_cv_sys_global_symbol_to_c_name_address \
16712 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16713 nm_file_list_spec \
16714 lt_prog_compiler_no_builtin_flag \
16715 lt_prog_compiler_pic \
16716 lt_prog_compiler_wl \
16717 lt_prog_compiler_static \
16718 lt_cv_prog_compiler_c_o \
16727 export_dynamic_flag_spec \
16728 whole_archive_flag_spec \
16729 compiler_needs_object \
16731 allow_undefined_flag \
16732 no_undefined_flag \
16733 hardcode_libdir_flag_spec \
16734 hardcode_libdir_separator \
16738 variables_saved_for_relink \
16740 library_names_spec \
16742 install_override_mode \
16746 compiler_lib_search_dirs \
16751 compiler_lib_search_path \
16755 lt_prog_compiler_no_builtin_flag_CXX \
16756 lt_prog_compiler_pic_CXX \
16757 lt_prog_compiler_wl_CXX \
16758 lt_prog_compiler_static_CXX \
16759 lt_cv_prog_compiler_c_o_CXX \
16760 export_dynamic_flag_spec_CXX \
16761 whole_archive_flag_spec_CXX \
16762 compiler_needs_object_CXX \
16764 allow_undefined_flag_CXX \
16765 no_undefined_flag_CXX \
16766 hardcode_libdir_flag_spec_CXX \
16767 hardcode_libdir_separator_CXX \
16768 exclude_expsyms_CXX \
16769 include_expsyms_CXX \
16770 file_list_spec_CXX \
16771 compiler_lib_search_dirs_CXX \
16772 predep_objects_CXX \
16773 postdep_objects_CXX \
16776 compiler_lib_search_path_CXX; do
16777 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16778 *[\\\\\\\`\\"\\\$]*)
16779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16787 # Double-quote double-evaled strings.
16788 for var in reload_cmds \
16789 old_postinstall_cmds \
16790 old_postuninstall_cmds \
16792 extract_expsyms_cmds \
16793 old_archive_from_new_cmds \
16794 old_archive_from_expsyms_cmds \
16796 archive_expsym_cmds \
16798 module_expsym_cmds \
16799 export_symbols_cmds \
16803 postuninstall_cmds \
16805 sys_lib_search_path_spec \
16806 sys_lib_dlsearch_path_spec \
16808 old_archive_cmds_CXX \
16809 old_archive_from_new_cmds_CXX \
16810 old_archive_from_expsyms_cmds_CXX \
16812 archive_expsym_cmds_CXX \
16814 module_expsym_cmds_CXX \
16815 export_symbols_cmds_CXX \
16817 postlink_cmds_CXX; do
16818 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16819 *[\\\\\\\`\\"\\\$]*)
16820 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16823 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16828 ac_aux_dir='$ac_aux_dir'
16829 xsi_shell='$xsi_shell'
16830 lt_shell_append='$lt_shell_append'
16832 # See if we are running on zsh, and set the options which allow our
16833 # commands through without removal of \ escapes INIT.
16834 if test -n "\${ZSH_VERSION+set}" ; then
16835 setopt NO_GLOB_SUBST
16841 TIMESTAMP='$TIMESTAMP'
16852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854 # Handling of arguments.
16855 for ac_config_target in $ac_config_targets
16857 case $ac_config_target in
16858 "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
16859 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16860 "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
16861 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16862 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16864 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16869 # If the user did not use the arguments to specify the items to instantiate,
16870 # then the envvar interface is used. Set only those that are not.
16871 # We use the long form for the default assignment because of an extremely
16872 # bizarre bug on SunOS 4.1.3.
16873 if $ac_need_defaults; then
16874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16879 # Have a temporary directory for convenience. Make it in the build tree
16880 # simply because there is no reason against having it here, and in addition,
16881 # creating and moving files from /tmp can sometimes cause problems.
16882 # Hook for its removal unless debugging.
16883 # Note that there is a small window in which the directory will not be cleaned:
16884 # after its creation but before its name has been assigned to `$tmp'.
16888 trap 'exit_status=$?
16889 : "${ac_tmp:=$tmp}"
16890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16892 trap 'as_fn_exit 1' 1 2 13 15
16894 # Create a (secure) tmp directory for tmp files.
16897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16901 tmp=./conf$$-$RANDOM
16902 (umask 077 && mkdir "$tmp")
16903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16906 # Set up the scripts for CONFIG_FILES section.
16907 # No need to generate them if there are no CONFIG_FILES.
16908 # This happens for instance with `./config.status config.h'.
16909 if test -n "$CONFIG_FILES"; then
16912 ac_cr=`echo X | tr X '\015'`
16913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16914 # But we know of no other shell where ac_cr would be empty at this
16915 # point, so we can use a bashism as a fallback.
16916 if test "x$ac_cr" = x; then
16917 eval ac_cr=\$\'\\r\'
16919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16923 ac_cs_awk_cr=$ac_cr
16926 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16931 echo "cat >conf$$subs.awk <<_ACEOF" &&
16932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16934 } >conf$$subs.sh ||
16935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16938 for ac_last_try in false false false false false :; do
16939 . ./conf$$subs.sh ||
16940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16943 if test $ac_delim_n = $ac_delim_num; then
16945 elif $ac_last_try; then
16946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16951 rm -f conf$$subs.sh
16953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16954 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16958 s/^/S["/; s/!.*/"]=/
16968 s/\(.\{148\}\)..*/\1/
16970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16982 s/\(.\{148\}\)..*/\1/
16984 s/["\\]/\\&/g; s/^/"/; s/$/"/
16988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16993 ' <conf$$subs.awk | sed '
16998 ' >>$CONFIG_STATUS || ac_write_fail=1
16999 rm -f conf$$subs.awk
17000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17002 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17003 for (key in S) S_is_set[key] = 1
17009 nfields = split(line, field, "@")
17011 len = length(field[1])
17012 for (i = 2; i < nfields; i++) {
17014 keylen = length(key)
17015 if (S_is_set[key]) {
17017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17018 len += length(value) + length(field[++i])
17029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17034 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17038 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17039 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17040 # trailing colons and then remove the whole line if VPATH becomes empty
17041 # (actually we leave an empty line to preserve line numbers).
17042 if test "x$srcdir" = x.; then
17043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17062 fi # test -n "$CONFIG_FILES"
17064 # Set up the scripts for CONFIG_HEADERS section.
17065 # No need to generate them if there are no CONFIG_HEADERS.
17066 # This happens for instance with `./config.status Makefile'.
17067 if test -n "$CONFIG_HEADERS"; then
17068 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17072 # Transform confdefs.h into an awk script `defines.awk', embedded as
17073 # here-document in config.status, that substitutes the proper values into
17074 # config.h.in to produce config.h.
17076 # Create a delimiter string that does not exist in confdefs.h, to ease
17077 # handling of long lines.
17079 for ac_last_try in false false :; do
17080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17081 if test -z "$ac_tt"; then
17083 elif $ac_last_try; then
17084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17090 # For the awk script, D is an array of macro values keyed by name,
17091 # likewise P contains macro parameters if any. Preserve backslash
17092 # newline sequences.
17094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17096 s/.\{148\}/&'"$ac_delim"'/g
17099 s/^[ ]*#[ ]*define[ ][ ]*/ /
17106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17113 D["\1"]=" \3\\\\\\n"\\/p
17115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17120 s/.\{148\}/&'"$ac_delim"'/g
17125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17130 ' <confdefs.h | sed '
17131 s/'"$ac_delim"'/"\\\
17132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17135 for (key in D) D_is_set[key] = 1
17138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17140 split(line, arg, " ")
17141 if (arg[1] == "#") {
17145 defundef = substr(arg[1], 2)
17148 split(mac1, mac2, "(") #)
17150 prefix = substr(line, 1, index(line, defundef) - 1)
17151 if (D_is_set[macro]) {
17152 # Preserve the white space surrounding the "#".
17153 print prefix "define", macro P[macro] D[macro]
17156 # Replace #undef with comments. This is necessary, for example,
17157 # in the case of _POSIX_SOURCE, which is predefined and required
17158 # on some systems where configure will not decide to define it.
17159 if (defundef == "undef") {
17160 print "/*", prefix defundef, macro, "*/"
17168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17170 fi # test -n "$CONFIG_HEADERS"
17173 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17178 :[FHLC]) ac_mode=$ac_tag; continue;;
17180 case $ac_mode$ac_tag in
17182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17183 :[FH]-) ac_tag=-:-;;
17184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17201 -) ac_f="$ac_tmp/stdin";;
17202 *) # Look for the file first in the build tree, then in the source tree
17203 # (if the path is not absolute). The absolute path cannot be DOS-style,
17204 # because $ac_f cannot contain `:'.
17208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17213 as_fn_append ac_file_inputs " '$ac_f'"
17216 # Let's still pretend it is `configure' which instantiates (i.e., don't
17217 # use $as_me), people would be surprised to read:
17218 # /* config.h. Generated by config.status. */
17219 configure_input='Generated from '`
17220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17222 if test x"$ac_file" != x-; then
17223 configure_input="$ac_file. $configure_input"
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17225 $as_echo "$as_me: creating $ac_file" >&6;}
17227 # Neutralize special characters interpreted by sed in replacement strings.
17228 case $configure_input in #(
17229 *\&* | *\|* | *\\* )
17230 ac_sed_conf_input=`$as_echo "$configure_input" |
17231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17232 *) ac_sed_conf_input=$configure_input;;
17236 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17242 ac_dir=`$as_dirname -- "$ac_file" ||
17243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17244 X"$ac_file" : 'X\(//\)[^/]' \| \
17245 X"$ac_file" : 'X\(//\)$' \| \
17246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17247 $as_echo X"$ac_file" |
17248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17252 /^X\(\/\/\)[^/].*/{
17265 as_dir="$ac_dir"; as_fn_mkdir_p
17269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17272 # A ".." for each directory in $ac_dir_suffix.
17273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17274 case $ac_top_builddir_sub in
17275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17279 ac_abs_top_builddir=$ac_pwd
17280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17281 # for backward compatibility:
17282 ac_top_builddir=$ac_top_build_prefix
17285 .) # We are building in place.
17287 ac_top_srcdir=$ac_top_builddir_sub
17288 ac_abs_top_srcdir=$ac_pwd ;;
17289 [\\/]* | ?:[\\/]* ) # Absolute name.
17290 ac_srcdir=$srcdir$ac_dir_suffix;
17291 ac_top_srcdir=$srcdir
17292 ac_abs_top_srcdir=$srcdir ;;
17293 *) # Relative name.
17294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17295 ac_top_srcdir=$ac_top_build_prefix$srcdir
17296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17311 ac_MKDIR_P=$MKDIR_P
17313 [\\/$]* | ?:[\\/]* ) ;;
17314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17319 # If the template does not know about datarootdir, expand it.
17320 # FIXME: This hack should be removed a few years after 2.60.
17321 ac_datarootdir_hack=; ac_datarootdir_seen=
17332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17333 *datarootdir*) ac_datarootdir_seen=yes;;
17334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17339 ac_datarootdir_hack='
17340 s&@datadir@&$datadir&g
17341 s&@docdir@&$docdir&g
17342 s&@infodir@&$infodir&g
17343 s&@localedir@&$localedir&g
17344 s&@mandir@&$mandir&g
17345 s&\\\${datarootdir}&$datarootdir&g' ;;
17349 # Neutralize VPATH when `$srcdir' = `.'.
17350 # Shell code in configure.ac might set extrasub.
17351 # FIXME: do we really want to maintain this feature?
17352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17353 ac_sed_extra="$ac_vpsub
17356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17359 s|@configure_input@|$ac_sed_conf_input|;t t
17360 s&@top_builddir@&$ac_top_builddir_sub&;t t
17361 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17362 s&@srcdir@&$ac_srcdir&;t t
17363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17364 s&@top_srcdir@&$ac_top_srcdir&;t t
17365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17366 s&@builddir@&$ac_builddir&;t t
17367 s&@abs_builddir@&$ac_abs_builddir&;t t
17368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17369 s&@INSTALL@&$ac_INSTALL&;t t
17370 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17371 $ac_datarootdir_hack
17373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17379 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17381 which seems to be undefined. Please make sure it is defined" >&5
17382 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17383 which seems to be undefined. Please make sure it is defined" >&2;}
17385 rm -f "$ac_tmp/stdin"
17387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17396 if test x"$ac_file" != x-; then
17398 $as_echo "/* $configure_input */" \
17399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17400 } >"$ac_tmp/config.h" \
17401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17404 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17407 mv "$ac_tmp/config.h" "$ac_file" \
17408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17411 $as_echo "/* $configure_input */" \
17412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17413 || as_fn_error $? "could not create -" "$LINENO" 5
17415 # Compute "$ac_file"'s index in $config_headers.
17418 for _am_header in $config_headers :; do
17419 case $_am_header in
17420 $_am_arg | $_am_arg:* )
17423 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17426 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17427 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17428 X"$_am_arg" : 'X\(//\)[^/]' \| \
17429 X"$_am_arg" : 'X\(//\)$' \| \
17430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17431 $as_echo X"$_am_arg" |
17432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17436 /^X\(\/\/\)[^/].*/{
17448 s/.*/./; q'`/stamp-h$_am_stamp_count
17451 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17452 $as_echo "$as_me: executing $ac_file commands" >&6;}
17457 case $ac_file$ac_mode in
17458 "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
17459 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17460 # Older Autoconf quotes --file arguments for eval, but not when files
17461 # are listed without --file. Let's play safe and only enable the eval
17462 # if we detect the quoting.
17463 case $CONFIG_FILES in
17464 *\'*) eval set x "$CONFIG_FILES" ;;
17465 *) set x $CONFIG_FILES ;;
17470 # Strip MF so we end up with the name of the file.
17471 mf=`echo "$mf" | sed -e 's/:.*$//'`
17472 # Check whether this is an Automake generated Makefile or not.
17473 # We used to match only the files named 'Makefile.in', but
17474 # some people rename them; so instead we look at the file content.
17475 # Grep'ing the first line is not enough: some people post-process
17476 # each Makefile.in and add a new line on top of each file to say so.
17477 # Grep'ing the whole file is not good either: AIX grep has a line
17478 # limit of 2048, but all sed's we know have understand at least 4000.
17479 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17480 dirpart=`$as_dirname -- "$mf" ||
17481 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17482 X"$mf" : 'X\(//\)[^/]' \| \
17483 X"$mf" : 'X\(//\)$' \| \
17484 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17490 /^X\(\/\/\)[^/].*/{
17506 # Extract the definition of DEPDIR, am__include, and am__quote
17507 # from the Makefile without running 'make'.
17508 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17509 test -z "$DEPDIR" && continue
17510 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17511 test -z "$am__include" && continue
17512 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17513 # Find all dependency output files, they are included files with
17514 # $(DEPDIR) in their names. We invoke sed twice because it is the
17515 # simplest approach to changing $(DEPDIR) to its actual value in the
17517 for file in `sed -n "
17518 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17519 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17520 # Make sure the directory exists.
17521 test -f "$dirpart/$file" && continue
17522 fdir=`$as_dirname -- "$file" ||
17523 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17524 X"$file" : 'X\(//\)[^/]' \| \
17525 X"$file" : 'X\(//\)$' \| \
17526 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17527 $as_echo X"$file" |
17528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17532 /^X\(\/\/\)[^/].*/{
17545 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17546 # echo "creating $dirpart/$file"
17547 echo '# dummy' > "$dirpart/$file"
17554 # See if we are running on zsh, and set the options which allow our
17555 # commands through without removal of \ escapes.
17556 if test -n "${ZSH_VERSION+set}" ; then
17557 setopt NO_GLOB_SUBST
17560 cfgfile="${ofile}T"
17561 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17564 cat <<_LT_EOF >> "$cfgfile"
17567 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17568 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17570 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17572 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17573 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17575 # Written by Gordon Matzigkeit, 1996
17577 # This file is part of GNU Libtool.
17579 # GNU Libtool is free software; you can redistribute it and/or
17580 # modify it under the terms of the GNU General Public License as
17581 # published by the Free Software Foundation; either version 2 of
17582 # the License, or (at your option) any later version.
17584 # As a special exception to the GNU General Public License,
17585 # if you distribute this file as part of a program or library that
17586 # is built using GNU Libtool, you may include this file under the
17587 # same distribution terms that you use for the rest of that program.
17589 # GNU Libtool is distributed in the hope that it will be useful,
17590 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17591 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17592 # GNU General Public License for more details.
17594 # You should have received a copy of the GNU General Public License
17595 # along with GNU Libtool; see the file COPYING. If not, a copy
17596 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17597 # obtained by writing to the Free Software Foundation, Inc.,
17598 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17601 # The names of the tagged configurations supported by this script.
17602 available_tags="CXX "
17604 # ### BEGIN LIBTOOL CONFIG
17606 # Which release of libtool.m4 was used?
17607 macro_version=$macro_version
17608 macro_revision=$macro_revision
17610 # Whether or not to build shared libraries.
17611 build_libtool_libs=$enable_shared
17613 # Whether or not to build static libraries.
17614 build_old_libs=$enable_static
17616 # What type of objects to build.
17619 # Whether or not to optimize for fast installation.
17620 fast_install=$enable_fast_install
17622 # Shell to use when invoking shell scripts.
17625 # An echo program that protects backslashes.
17628 # The PATH separator for the build system.
17629 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17632 host_alias=$host_alias
17636 # The build system.
17637 build_alias=$build_alias
17641 # A sed program that does not truncate output.
17644 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17645 Xsed="\$SED -e 1s/^X//"
17647 # A grep program that handles long lines.
17653 # A literal string matcher.
17656 # A BSD- or MS-compatible name lister.
17659 # Whether we need soft or hard links.
17662 # What is the maximum length of a command?
17663 max_cmd_len=$max_cmd_len
17665 # Object file suffix (normally "o").
17668 # Executable file suffix (normally "").
17671 # whether the shell understands "unset".
17674 # turn spaces into newlines.
17677 # turn newlines into spaces.
17680 # convert \$build file names to \$host format.
17681 to_host_file_cmd=$lt_cv_to_host_file_cmd
17683 # convert \$build files to toolchain format.
17684 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17686 # An object symbol dumper.
17687 OBJDUMP=$lt_OBJDUMP
17689 # Method to check whether dependent libraries are shared objects.
17690 deplibs_check_method=$lt_deplibs_check_method
17692 # Command to use when deplibs_check_method = "file_magic".
17693 file_magic_cmd=$lt_file_magic_cmd
17695 # How to find potential files when deplibs_check_method = "file_magic".
17696 file_magic_glob=$lt_file_magic_glob
17698 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17699 want_nocaseglob=$lt_want_nocaseglob
17701 # DLL creation program.
17702 DLLTOOL=$lt_DLLTOOL
17704 # Command to associate shared and link libraries.
17705 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17710 # Flags to create an archive.
17711 AR_FLAGS=$lt_AR_FLAGS
17713 # How to feed a file listing to the archiver.
17714 archiver_list_spec=$lt_archiver_list_spec
17716 # A symbol stripping program.
17719 # Commands used to install an old-style archive.
17721 old_postinstall_cmds=$lt_old_postinstall_cmds
17722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17724 # Whether to use a lock for old archive extraction.
17725 lock_old_archive_extraction=$lock_old_archive_extraction
17730 # LTCC compiler flags.
17731 LTCFLAGS=$lt_CFLAGS
17733 # Take the output of nm and produce a listing of raw symbols and C names.
17734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17736 # Transform the output of nm in a proper C declaration.
17737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17739 # Transform the output of nm in a C name address pair.
17740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17742 # Transform the output of nm in a C name address pair when lib prefix is needed.
17743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17745 # Specify filename containing input files for \$NM.
17746 nm_file_list_spec=$lt_nm_file_list_spec
17748 # The root where to search for dependent libraries,and in which our libraries should be installed.
17749 lt_sysroot=$lt_sysroot
17751 # The name of the directory that contains temporary libtool files.
17754 # Used to examine libraries when file_magic_cmd begins with "file".
17755 MAGIC_CMD=$MAGIC_CMD
17757 # Must we lock files when doing compilation?
17758 need_locks=$lt_need_locks
17761 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17763 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17764 DSYMUTIL=$lt_DSYMUTIL
17766 # Tool to change global to local symbols on Mac OS X.
17769 # Tool to manipulate fat objects and archives on Mac OS X.
17772 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17775 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17776 OTOOL64=$lt_OTOOL64
17778 # Old archive suffix (normally "a").
17781 # Shared library suffix (normally ".so").
17782 shrext_cmds=$lt_shrext_cmds
17784 # The commands to extract the exported symbol list from a shared archive.
17785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17787 # Variables whose values should be saved in libtool wrapper scripts and
17788 # restored at link time.
17789 variables_saved_for_relink=$lt_variables_saved_for_relink
17791 # Do we need the "lib" prefix for modules?
17792 need_lib_prefix=$need_lib_prefix
17794 # Do we need a version for libraries?
17795 need_version=$need_version
17797 # Library versioning type.
17798 version_type=$version_type
17800 # Shared library runtime path variable.
17801 runpath_var=$runpath_var
17803 # Shared library path variable.
17804 shlibpath_var=$shlibpath_var
17806 # Is shlibpath searched before the hard-coded library search path?
17807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17809 # Format of library name prefix.
17810 libname_spec=$lt_libname_spec
17812 # List of archive names. First name is the real one, the rest are links.
17813 # The last name is the one that the linker finds with -lNAME
17814 library_names_spec=$lt_library_names_spec
17816 # The coded name of the library, if different from the real name.
17817 soname_spec=$lt_soname_spec
17819 # Permission mode override for installation of shared libraries.
17820 install_override_mode=$lt_install_override_mode
17822 # Command to use after installation of a shared archive.
17823 postinstall_cmds=$lt_postinstall_cmds
17825 # Command to use after uninstallation of a shared archive.
17826 postuninstall_cmds=$lt_postuninstall_cmds
17828 # Commands used to finish a libtool library installation in a directory.
17829 finish_cmds=$lt_finish_cmds
17831 # As "finish_cmds", except a single script fragment to be evaled but
17833 finish_eval=$lt_finish_eval
17835 # Whether we should hardcode library paths into libraries.
17836 hardcode_into_libs=$hardcode_into_libs
17838 # Compile-time system search path for libraries.
17839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17841 # Run-time system search path for libraries.
17842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17844 # Whether dlopen is supported.
17845 dlopen_support=$enable_dlopen
17847 # Whether dlopen of programs is supported.
17848 dlopen_self=$enable_dlopen_self
17850 # Whether dlopen of statically linked programs is supported.
17851 dlopen_self_static=$enable_dlopen_self_static
17853 # Commands to strip libraries.
17854 old_striplib=$lt_old_striplib
17855 striplib=$lt_striplib
17858 # The linker used to build libraries.
17861 # How to create reloadable object files.
17862 reload_flag=$lt_reload_flag
17863 reload_cmds=$lt_reload_cmds
17865 # Commands used to build an old-style archive.
17866 old_archive_cmds=$lt_old_archive_cmds
17868 # A language specific compiler.
17871 # Is the compiler the GNU compiler?
17874 # Compiler flag to turn off builtin functions.
17875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17877 # Additional compiler flags for building library objects.
17878 pic_flag=$lt_lt_prog_compiler_pic
17880 # How to pass a linker flag through the compiler.
17881 wl=$lt_lt_prog_compiler_wl
17883 # Compiler flag to prevent dynamic linking.
17884 link_static_flag=$lt_lt_prog_compiler_static
17886 # Does compiler simultaneously support -c and -o options?
17887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17889 # Whether or not to add -lc for building shared libraries.
17890 build_libtool_need_lc=$archive_cmds_need_lc
17892 # Whether or not to disallow shared libs when runtime libs are static.
17893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17895 # Compiler flag to allow reflexive dlopens.
17896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17898 # Compiler flag to generate shared objects directly from archives.
17899 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17901 # Whether the compiler copes with passing no objects directly.
17902 compiler_needs_object=$lt_compiler_needs_object
17904 # Create an old-style archive from a shared archive.
17905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17907 # Create a temporary old-style archive to link instead of a shared archive.
17908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17910 # Commands used to build a shared archive.
17911 archive_cmds=$lt_archive_cmds
17912 archive_expsym_cmds=$lt_archive_expsym_cmds
17914 # Commands used to build a loadable module if different from building
17915 # a shared archive.
17916 module_cmds=$lt_module_cmds
17917 module_expsym_cmds=$lt_module_expsym_cmds
17919 # Whether we are building with GNU ld or not.
17920 with_gnu_ld=$lt_with_gnu_ld
17922 # Flag that allows shared libraries with undefined symbols to be built.
17923 allow_undefined_flag=$lt_allow_undefined_flag
17925 # Flag that enforces no undefined symbols.
17926 no_undefined_flag=$lt_no_undefined_flag
17928 # Flag to hardcode \$libdir into a binary during linking.
17929 # This must work even if \$libdir does not exist
17930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17932 # Whether we need a single "-rpath" flag with a separated argument.
17933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17936 # DIR into the resulting binary.
17937 hardcode_direct=$hardcode_direct
17939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17940 # DIR into the resulting binary and the resulting library dependency is
17941 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17942 # library is relocated.
17943 hardcode_direct_absolute=$hardcode_direct_absolute
17945 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17946 # into the resulting binary.
17947 hardcode_minus_L=$hardcode_minus_L
17949 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17950 # into the resulting binary.
17951 hardcode_shlibpath_var=$hardcode_shlibpath_var
17953 # Set to "yes" if building a shared library automatically hardcodes DIR
17954 # into the library and all subsequent libraries and executables linked
17956 hardcode_automatic=$hardcode_automatic
17958 # Set to yes if linker adds runtime paths of dependent libraries
17959 # to runtime path list.
17960 inherit_rpath=$inherit_rpath
17962 # Whether libtool must link a program against all its dependency libraries.
17963 link_all_deplibs=$link_all_deplibs
17965 # Set to "yes" if exported symbols are required.
17966 always_export_symbols=$always_export_symbols
17968 # The commands to list exported symbols.
17969 export_symbols_cmds=$lt_export_symbols_cmds
17971 # Symbols that should not be listed in the preloaded symbols.
17972 exclude_expsyms=$lt_exclude_expsyms
17974 # Symbols that must always be exported.
17975 include_expsyms=$lt_include_expsyms
17977 # Commands necessary for linking programs (against libraries) with templates.
17978 prelink_cmds=$lt_prelink_cmds
17980 # Commands necessary for finishing linking programs.
17981 postlink_cmds=$lt_postlink_cmds
17983 # Specify filename containing input files.
17984 file_list_spec=$lt_file_list_spec
17986 # How to hardcode a shared library path into an executable.
17987 hardcode_action=$hardcode_action
17989 # The directories searched by this compiler when creating a shared library.
17990 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17992 # Dependencies to place before and after the objects being linked to
17993 # create a shared library.
17994 predep_objects=$lt_predep_objects
17995 postdep_objects=$lt_postdep_objects
17996 predeps=$lt_predeps
17997 postdeps=$lt_postdeps
17999 # The library search path used internally by the compiler when linking
18000 # a shared library.
18001 compiler_lib_search_path=$lt_compiler_lib_search_path
18003 # ### END LIBTOOL CONFIG
18009 cat <<\_LT_EOF >> "$cfgfile"
18010 # AIX sometimes has problems with the GCC collect2 program. For some
18011 # reason, if we set the COLLECT_NAMES environment variable, the problems
18012 # vanish in a puff of smoke.
18013 if test "X${COLLECT_NAMES+set}" != Xset; then
18015 export COLLECT_NAMES
18022 ltmain="$ac_aux_dir/ltmain.sh"
18025 # We use sed instead of cat because bash on DJGPP gets confused if
18026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18027 # text mode, it properly converts lines to CR/LF. This bash problem
18028 # is reportedly fixed, but why not run on old versions too?
18029 sed '$q' "$ltmain" >> "$cfgfile" \
18030 || (rm -f "$cfgfile"; exit 1)
18032 if test x"$xsi_shell" = xyes; then
18033 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18037 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18038 \ * ) func_dirname_result="${3}" ;;\
18040 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18041 && mv -f "$cfgfile.tmp" "$cfgfile" \
18042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18043 test 0 -eq $? || _lt_function_replace_fail=:
18046 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18049 \ func_basename_result="${1##*/}"\
18050 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18051 && mv -f "$cfgfile.tmp" "$cfgfile" \
18052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18053 test 0 -eq $? || _lt_function_replace_fail=:
18056 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18057 func_dirname_and_basename ()\
18060 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18061 \ * ) func_dirname_result="${3}" ;;\
18063 \ func_basename_result="${1##*/}"\
18064 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18065 && mv -f "$cfgfile.tmp" "$cfgfile" \
18066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18067 test 0 -eq $? || _lt_function_replace_fail=:
18070 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18073 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18074 \ # positional parameters, so assign one to ordinary parameter first.\
18075 \ func_stripname_result=${3}\
18076 \ func_stripname_result=${func_stripname_result#"${1}"}\
18077 \ func_stripname_result=${func_stripname_result%"${2}"}\
18078 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18079 && mv -f "$cfgfile.tmp" "$cfgfile" \
18080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18081 test 0 -eq $? || _lt_function_replace_fail=:
18084 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18085 func_split_long_opt ()\
18087 \ func_split_long_opt_name=${1%%=*}\
18088 \ func_split_long_opt_arg=${1#*=}\
18089 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18090 && mv -f "$cfgfile.tmp" "$cfgfile" \
18091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18092 test 0 -eq $? || _lt_function_replace_fail=:
18095 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18096 func_split_short_opt ()\
18098 \ func_split_short_opt_arg=${1#??}\
18099 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18100 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18101 && mv -f "$cfgfile.tmp" "$cfgfile" \
18102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18103 test 0 -eq $? || _lt_function_replace_fail=:
18106 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18110 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18111 \ *) func_lo2o_result=${1} ;;\
18113 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18114 && mv -f "$cfgfile.tmp" "$cfgfile" \
18115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18116 test 0 -eq $? || _lt_function_replace_fail=:
18119 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18122 func_xform_result=${1%.*}.lo\
18123 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18124 && mv -f "$cfgfile.tmp" "$cfgfile" \
18125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18126 test 0 -eq $? || _lt_function_replace_fail=:
18129 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18132 func_arith_result=$(( $* ))\
18133 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18134 && mv -f "$cfgfile.tmp" "$cfgfile" \
18135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18136 test 0 -eq $? || _lt_function_replace_fail=:
18139 sed -e '/^func_len ()$/,/^} # func_len /c\
18142 func_len_result=${#1}\
18143 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18144 && mv -f "$cfgfile.tmp" "$cfgfile" \
18145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18146 test 0 -eq $? || _lt_function_replace_fail=:
18150 if test x"$lt_shell_append" = xyes; then
18151 sed -e '/^func_append ()$/,/^} # func_append /c\
18154 eval "${1}+=\\${2}"\
18155 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18156 && mv -f "$cfgfile.tmp" "$cfgfile" \
18157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18158 test 0 -eq $? || _lt_function_replace_fail=:
18161 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18162 func_append_quoted ()\
18164 \ func_quote_for_eval "${2}"\
18165 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18166 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18167 && mv -f "$cfgfile.tmp" "$cfgfile" \
18168 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18169 test 0 -eq $? || _lt_function_replace_fail=:
18172 # Save a `func_append' function call where possible by direct use of '+='
18173 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18174 && mv -f "$cfgfile.tmp" "$cfgfile" \
18175 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18176 test 0 -eq $? || _lt_function_replace_fail=:
18178 # Save a `func_append' function call even when '+=' is not available
18179 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18180 && mv -f "$cfgfile.tmp" "$cfgfile" \
18181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18182 test 0 -eq $? || _lt_function_replace_fail=:
18185 if test x"$_lt_function_replace_fail" = x":"; then
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18187 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18191 mv -f "$cfgfile" "$ofile" ||
18192 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18196 cat <<_LT_EOF >> "$ofile"
18198 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18200 # The linker used to build libraries.
18203 # How to create reloadable object files.
18204 reload_flag=$lt_reload_flag_CXX
18205 reload_cmds=$lt_reload_cmds_CXX
18207 # Commands used to build an old-style archive.
18208 old_archive_cmds=$lt_old_archive_cmds_CXX
18210 # A language specific compiler.
18211 CC=$lt_compiler_CXX
18213 # Is the compiler the GNU compiler?
18216 # Compiler flag to turn off builtin functions.
18217 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18219 # Additional compiler flags for building library objects.
18220 pic_flag=$lt_lt_prog_compiler_pic_CXX
18222 # How to pass a linker flag through the compiler.
18223 wl=$lt_lt_prog_compiler_wl_CXX
18225 # Compiler flag to prevent dynamic linking.
18226 link_static_flag=$lt_lt_prog_compiler_static_CXX
18228 # Does compiler simultaneously support -c and -o options?
18229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18231 # Whether or not to add -lc for building shared libraries.
18232 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18234 # Whether or not to disallow shared libs when runtime libs are static.
18235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18237 # Compiler flag to allow reflexive dlopens.
18238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18240 # Compiler flag to generate shared objects directly from archives.
18241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18243 # Whether the compiler copes with passing no objects directly.
18244 compiler_needs_object=$lt_compiler_needs_object_CXX
18246 # Create an old-style archive from a shared archive.
18247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18249 # Create a temporary old-style archive to link instead of a shared archive.
18250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18252 # Commands used to build a shared archive.
18253 archive_cmds=$lt_archive_cmds_CXX
18254 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18256 # Commands used to build a loadable module if different from building
18257 # a shared archive.
18258 module_cmds=$lt_module_cmds_CXX
18259 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18261 # Whether we are building with GNU ld or not.
18262 with_gnu_ld=$lt_with_gnu_ld_CXX
18264 # Flag that allows shared libraries with undefined symbols to be built.
18265 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18267 # Flag that enforces no undefined symbols.
18268 no_undefined_flag=$lt_no_undefined_flag_CXX
18270 # Flag to hardcode \$libdir into a binary during linking.
18271 # This must work even if \$libdir does not exist
18272 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18274 # Whether we need a single "-rpath" flag with a separated argument.
18275 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18277 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18278 # DIR into the resulting binary.
18279 hardcode_direct=$hardcode_direct_CXX
18281 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18282 # DIR into the resulting binary and the resulting library dependency is
18283 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18284 # library is relocated.
18285 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18287 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18288 # into the resulting binary.
18289 hardcode_minus_L=$hardcode_minus_L_CXX
18291 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18292 # into the resulting binary.
18293 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18295 # Set to "yes" if building a shared library automatically hardcodes DIR
18296 # into the library and all subsequent libraries and executables linked
18298 hardcode_automatic=$hardcode_automatic_CXX
18300 # Set to yes if linker adds runtime paths of dependent libraries
18301 # to runtime path list.
18302 inherit_rpath=$inherit_rpath_CXX
18304 # Whether libtool must link a program against all its dependency libraries.
18305 link_all_deplibs=$link_all_deplibs_CXX
18307 # Set to "yes" if exported symbols are required.
18308 always_export_symbols=$always_export_symbols_CXX
18310 # The commands to list exported symbols.
18311 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18313 # Symbols that should not be listed in the preloaded symbols.
18314 exclude_expsyms=$lt_exclude_expsyms_CXX
18316 # Symbols that must always be exported.
18317 include_expsyms=$lt_include_expsyms_CXX
18319 # Commands necessary for linking programs (against libraries) with templates.
18320 prelink_cmds=$lt_prelink_cmds_CXX
18322 # Commands necessary for finishing linking programs.
18323 postlink_cmds=$lt_postlink_cmds_CXX
18325 # Specify filename containing input files.
18326 file_list_spec=$lt_file_list_spec_CXX
18328 # How to hardcode a shared library path into an executable.
18329 hardcode_action=$hardcode_action_CXX
18331 # The directories searched by this compiler when creating a shared library.
18332 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18334 # Dependencies to place before and after the objects being linked to
18335 # create a shared library.
18336 predep_objects=$lt_predep_objects_CXX
18337 postdep_objects=$lt_postdep_objects_CXX
18338 predeps=$lt_predeps_CXX
18339 postdeps=$lt_postdeps_CXX
18341 # The library search path used internally by the compiler when linking
18342 # a shared library.
18343 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18345 # ### END LIBTOOL TAG CONFIG: CXX
18356 ac_clean_files=$ac_clean_files_save
18358 test $ac_write_fail = 0 ||
18359 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18362 # configure is writing to config.log, and then calls config.status.
18363 # config.status does its own redirection, appending to config.log.
18364 # Unfortunately, on DOS this fails, as config.log is still kept open
18365 # by configure, so config.status won't be able to write to it; its
18366 # output is simply discarded. So we exec the FD to /dev/null,
18367 # effectively closing config.log, so it can be properly (re)opened and
18368 # appended to by config.status. When coming back to configure, we
18369 # need to make the FD available again.
18370 if test "$no_create" != yes; then
18372 ac_config_status_args=
18373 test "$silent" = yes &&
18374 ac_config_status_args="$ac_config_status_args --quiet"
18376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18379 # would make configure fail if this is the last instruction.
18380 $ac_cs_success || as_fn_exit 1
18382 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18384 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}