2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for c-ares-test -.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and - about your
279 $0: system, 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;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Do nothing but, unlike ":", preserve the value of $?.
334 # Create "$as_dir" as a directory, including parents if necessary.
339 -*) as_dir=./$as_dir;;
341 test -d "$as_dir" || eval $as_mkdir_p || {
345 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 as_dirs="'$as_qdir' $as_dirs"
349 as_dir=`$as_dirname -- "$as_dir" ||
350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
351 X"$as_dir" : 'X\(//\)[^/]' \| \
352 X"$as_dir" : 'X\(//\)$' \| \
353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
354 printf "%s\n" X"$as_dir" |
355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
372 test -d "$as_dir" && break
374 test -z "$as_dirs" || eval "mkdir $as_dirs"
375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
380 # as_fn_executable_p FILE
381 # -----------------------
382 # Test if FILE is an executable regular file.
383 as_fn_executable_p ()
385 test -f "$1" && test -x "$1"
386 } # as_fn_executable_p
387 # as_fn_append VAR VALUE
388 # ----------------------
389 # Append the text in VALUE to the end of the definition contained in VAR. Take
390 # advantage of any shell optimizations that allow amortized linear growth over
391 # repeated appends, instead of the typical quadratic growth present in naive
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 eval 'as_fn_append ()
408 # Perform arithmetic evaluation on the ARGs, and store the result in the
409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
410 # must be portable across $(()) and expr.
411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
420 as_val=`expr "$@" || test $? -eq 1`
426 # Do nothing but, unlike ":", preserve the value of $?.
433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
434 # ----------------------------------------
435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
437 # script with STATUS, using 1 if that was 0.
440 as_status=$1; test $as_status -eq 0 && as_status=1
442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 printf "%s\n" "$as_me: error: $2" >&2
446 as_fn_exit $as_status
449 if expr a : '\(a\)' >/dev/null 2>&1 &&
450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_me=`$as_basename -- "$0" ||
469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470 X"$0" : 'X\(//\)$' \| \
471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
472 printf "%s\n" X/"$0" |
473 sed '/^.*\/\([^/][^/]*\)\/*$/{
487 # Avoid depending upon Character Ranges.
488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
491 as_cr_digits='0123456789'
492 as_cr_alnum=$as_cr_Letters$as_cr_digits
495 as_lineno_1=$LINENO as_lineno_1a=$LINENO
496 as_lineno_2=$LINENO as_lineno_2a=$LINENO
497 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
498 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
499 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
515 chmod +x "$as_me.lineno" ||
516 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519 # already done that, so ensure we don't try to do so again and fall
520 # in an infinite loop. This has already happened in practice.
521 _as_can_reexec=no; export _as_can_reexec
522 # Don't try to exec as it changes $[0], causing all sort of problems
523 # (the dirname of $[0] is not the place where we might find the
524 # original and so on. Autoconf is especially sensitive to this).
526 # Exit status is that of the last command.
531 # Determine whether it's possible to make 'echo' print without a newline.
532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
533 # for compatibility with existing Makefiles.
534 ECHO_C= ECHO_N= ECHO_T=
535 case `echo -n x` in #(((((
537 case `echo 'xy\c'` in
538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
547 # For backward compatibility with old third-party macros, we provide
548 # the shell variables $as_echo and $as_echo_n. New code should use
549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
550 as_echo='printf %s\n'
551 as_echo_n='printf %s'
554 rm -f conf$$ conf$$.exe conf$$.file
555 if test -d conf$$.dir; then
556 rm -f conf$$.dir/conf$$.file
559 mkdir conf$$.dir 2>/dev/null
561 if (echo >conf$$.file) 2>/dev/null; then
562 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 # ... but there are two gotchas:
565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
567 # In both cases, we have to default to `cp -pR'.
568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 elif ln conf$$.file conf$$ 2>/dev/null; then
578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
579 rmdir conf$$.dir 2>/dev/null
581 if mkdir -p . 2>/dev/null; then
582 as_mkdir_p='mkdir -p "$as_dir"'
584 test -d ./-p && rmdir ./-p
589 as_executable_p=as_fn_executable_p
591 # Sed expression to map a string onto a valid CPP name.
592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594 # Sed expression to map a string onto a valid variable name.
595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597 SHELL=${CONFIG_SHELL-/bin/sh}
600 test -n "$DJDIR" || exec 7<&0 </dev/null
604 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
605 # so uname gets run too.
606 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
611 ac_default_prefix=/usr/local
613 ac_config_libobj_dir=.
620 # Identity of this package.
621 PACKAGE_NAME='c-ares-test'
622 PACKAGE_TARNAME='c-ares-test'
624 PACKAGE_STRING='c-ares-test -'
625 PACKAGE_BUGREPORT='-'
628 ac_unique_file="ares-test.cc"
629 # Factoring default headers for most tests.
630 ac_includes_default="\
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
661 ac_subst_vars='am__EXEEXT_FALSE
666 CODE_COVERAGE_CXXFLAGS
668 CODE_COVERAGE_CPPFLAGS
674 CODE_COVERAGE_ENABLED
675 CODE_COVERAGE_ENABLED_FALSE
676 CODE_COVERAGE_ENABLED_TRUE
751 INSTALL_STRIP_PROGRAM
794 program_transform_name
808 enable_option_checking
810 enable_dependency_tracking
822 ac_precious_vars='build_alias
837 # Initialize some variables set by options.
839 ac_init_version=false
840 ac_unrecognized_opts=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
851 program_transform_name=s,x,x,
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 runstatedir='${localstatedir}/run'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 case $ac_dashdash$ac_option in
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: \`$ac_useropt'"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: \`$ac_useropt'"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
994 -help | --help | --hel | --he | -h)
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1124 -runstatedir | --runstatedir | --runstatedi | --runstated \
1125 | --runstate | --runstat | --runsta | --runst | --runs \
1126 | --run | --ru | --r)
1127 ac_prev=runstatedir ;;
1128 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130 | --run=* | --ru=* | --r=*)
1131 runstatedir=$ac_optarg ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1152 -site=* | --site=* | --sit=*)
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: \`$ac_useropt'"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: \`$ac_useropt'"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1208 eval with_$ac_useropt=no ;;
1211 # Obsolete; use --with-x.
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir runstatedir
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1279 # Be sure to have absolute directory names.
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 printf "%s\n" X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures c-ares-test - to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares-test]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 if test -n "$ac_init_help"; then
1453 case $ac_init_help in
1454 short | recursive ) echo "Configuration of c-ares-test -:";;
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --enable-dependency-tracking
1465 do not reject slow dependency extractors
1466 --disable-dependency-tracking
1467 speeds up one-time build
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473 --enable-code-coverage Whether to enable code coverage support
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1480 --with-aix-soname=aix|svr4|both
1481 shared library versioning (aka "SONAME") variant to
1482 provide on AIX, [default=aix].
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1485 compiler's sysroot if not specified).
1486 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1488 Some influential environment variables:
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CC C compiler command
1497 CFLAGS C compiler flags
1499 User-defined run-time library search path.
1500 CXXCPP C++ preprocessor
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1535 .) # We are building in place.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for configure.gnu first; this name is used for a wrapper for
1552 # Metaconfig's "Configure" on case-insensitive file systems.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1560 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1569 c-ares-test configure -
1570 generated by GNU Autoconf 2.71
1572 Copyright (C) 2021 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1583 # ac_fn_cxx_try_compile LINENO
1584 # ----------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_cxx_try_compile ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext conftest.beam
1590 if { { ac_try="$ac_compile"
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 printf "%s\n" "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_cxx_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext
1612 printf "%s\n" "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_cxx_try_compile
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest.beam
1629 if { { ac_try="$ac_compile"
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 printf "%s\n" "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext
1651 printf "%s\n" "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1659 } # ac_fn_c_try_compile
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 printf "%s\n" "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 test -x conftest$ac_exeext
1693 printf "%s\n" "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1706 } # ac_fn_c_try_link
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 printf %s "checking for $2... " >&6; }
1717 if eval test \${$3+y}
1719 printf %s "(cached) " >&6
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1726 if ac_fn_c_try_compile "$LINENO"
1732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 printf "%s\n" "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_header_compile
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 printf %s "checking for $2... " >&6; }
1749 if eval test \${$3+y}
1751 printf %s "(cached) " >&6
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (); below. */
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1787 if ac_fn_c_try_link "$LINENO"
1793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1794 conftest$ac_exeext conftest.$ac_ext
1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 printf "%s\n" "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 } # ac_fn_c_check_func
1803 # ac_fn_cxx_try_cpp LINENO
1804 # ------------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_cxx_try_cpp ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 printf "%s\n" "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } > conftest.i && {
1825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1826 test ! -s conftest.err
1831 printf "%s\n" "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_cxx_try_cpp
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 printf "%s\n" "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 test -x conftest$ac_exeext
1873 printf "%s\n" "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1886 } # ac_fn_cxx_try_link
1888 # ac_fn_c_try_run LINENO
1889 # ----------------------
1890 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1891 # executables *can* be run.
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_link"
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 printf "%s\n" "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>&5
1904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906 { { case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 printf "%s\n" "$ac_try_echo"; } >&5
1912 (eval "$ac_try") 2>&5
1914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; }; }
1919 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1920 printf "%s\n" "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=$ac_status
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1930 ac_configure_args_raw=
1935 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937 as_fn_append ac_configure_args_raw " '$ac_arg'"
1940 case $ac_configure_args_raw in
1944 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1945 ac_unsafe_a="$ac_unsafe_z#~"
1946 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1947 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1954 It was created by c-ares-test $as_me -, which was
1955 generated by GNU Autoconf 2.71. Invocation command line was
1957 $ $0$ac_configure_args_raw
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 case $as_dir in #(((
1993 *) as_dir=$as_dir/ ;;
1995 printf "%s\n" "PATH: $as_dir"
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2019 ac_must_keep_next=false
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2030 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035 as_fn_append ac_configure_args1 " '$ac_arg'"
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 -* ) ac_must_keep_next=true ;;
2051 as_fn_append ac_configure_args " '$ac_arg'"
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log. We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2067 # Save into config.log some information that might help in debugging.
2071 printf "%s\n" "## ---------------- ##
2072 ## Cache variables. ##
2073 ## ---------------- ##"
2075 # The following way of writing the cache mishandles newlines in values,
2077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2078 eval ac_val=\$$ac_var
2082 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2083 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 _ | IFS | as_nl) ;; #(
2087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2088 *) { eval $ac_var=; unset $ac_var;} ;;
2093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2094 *${as_nl}ac_space=\ *)
2096 "s/'\''/'\''\\\\'\'''\''/g;
2097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2107 printf "%s\n" "## ----------------- ##
2108 ## Output variables. ##
2109 ## ----------------- ##"
2111 for ac_var in $ac_subst_vars
2113 eval ac_val=\$$ac_var
2115 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 printf "%s\n" "$ac_var='\''$ac_val'\''"
2121 if test -n "$ac_subst_files"; then
2122 printf "%s\n" "## ------------------- ##
2123 ## File substitutions. ##
2124 ## ------------------- ##"
2126 for ac_var in $ac_subst_files
2128 eval ac_val=\$$ac_var
2130 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 printf "%s\n" "$ac_var='\''$ac_val'\''"
2137 if test -s confdefs.h; then
2138 printf "%s\n" "## ----------- ##
2145 test "$ac_signal" != 0 &&
2146 printf "%s\n" "$as_me: caught signal $ac_signal"
2147 printf "%s\n" "$as_me: exit $exit_status"
2149 rm -f core *.core core.conftest.* &&
2150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153 for ac_signal in 1 2 13 15; do
2154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2159 rm -f -r conftest* confdefs.h
2161 printf "%s\n" "/* confdefs.h */" > confdefs.h
2163 # Predefined preprocessor variables.
2165 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2167 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2169 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2171 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2173 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2175 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2180 if test -n "$CONFIG_SITE"; then
2181 ac_site_files="$CONFIG_SITE"
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2185 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2188 for ac_site_file in $ac_site_files
2190 case $ac_site_file in #(
2194 ac_site_file=./$ac_site_file ;;
2196 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2199 sed 's/^/| /' "$ac_site_file" >&5
2201 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site script $ac_site_file
2204 See \`config.log' for more details" "$LINENO" 5; }
2208 if test -r "$cache_file"; then
2209 # Some versions of bash will fail to source /dev/null (special files
2210 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2215 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216 *) . "./$cache_file";;
2220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2225 # Test code for whether the C++ compiler supports C++98 (global declarations)
2226 ac_cxx_conftest_cxx98_globals='
2227 // Does the compiler advertise C++98 conformance?
2228 #if !defined __cplusplus || __cplusplus < 199711L
2229 # error "Compiler does not advertise C++98 conformance"
2232 // These inclusions are to reject old compilers that
2233 // lack the unsuffixed header files.
2235 #include <exception>
2237 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2238 extern void assert (int);
2240 extern int strcmp (const char *, const char *);
2243 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2244 using std::exception;
2249 void test_exception_syntax()
2253 } catch (const char *s) {
2254 // Extra parentheses suppress a warning when building autoconf itself,
2255 // due to lint rules shared with more typical C programs.
2256 assert (!(strcmp) (s, "test"));
2260 template <typename T> struct test_template
2263 explicit test_template(T t) : val(t) {}
2264 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2267 } // anonymous namespace
2270 # Test code for whether the C++ compiler supports C++98 (body of main)
2271 ac_cxx_conftest_cxx98_main='
2275 test_exception_syntax ();
2276 test_template<double> tt (2.0);
2277 assert (tt.add (4) == 6.0);
2278 assert (true && !false);
2282 # Test code for whether the C++ compiler supports C++11 (global declarations)
2283 ac_cxx_conftest_cxx11_globals='
2284 // Does the compiler advertise C++ 2011 conformance?
2285 #if !defined __cplusplus || __cplusplus < 201103L
2286 # error "Compiler does not advertise C++11 conformance"
2291 constexpr int get_val() { return 20; }
2302 delegate(int n) : n(n) {}
2303 delegate(): delegate(2354) {}
2305 virtual int getval() { return this->n; };
2310 class overridden : public delegate
2313 overridden(int n): delegate(n) {}
2314 virtual int getval() override final { return this->n * 2; }
2320 nocopy(int i): i(i) {}
2322 nocopy(const nocopy&) = delete;
2323 nocopy & operator=(const nocopy&) = delete;
2328 // for testing lambda expressions
2329 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2334 // for testing variadic templates and trailing return types
2335 template <typename V> auto sum(V first) -> V
2339 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2341 return first + sum(rest...);
2346 # Test code for whether the C++ compiler supports C++11 (body of main)
2347 ac_cxx_conftest_cxx11_main='
2349 // Test auto and decltype
2351 auto a2 = 48573953.4;
2352 auto a3 = "String literal";
2355 for (auto i = a3; *i; ++i) { total += *i; }
2357 decltype(a2) a4 = 34895.034;
2361 short sa[cxx11test::get_val()] = { 0 };
2364 // Test initializer lists
2365 cxx11test::testinit il = { 4323, 435234.23544 };
2368 // Test range-based for
2369 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2370 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2371 for (auto &x : array) { x += 23; }
2374 // Test lambda expressions
2375 using cxx11test::eval;
2376 assert (eval ([](int x) { return x*2; }, 21) == 42);
2378 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2380 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2384 // Test use of variadic templates
2385 using cxx11test::sum;
2388 auto c = sum(1.0, 2.0, 3.0);
2391 // Test constructor delegation
2392 cxx11test::delegate d1;
2393 cxx11test::delegate d2();
2394 cxx11test::delegate d3(45);
2397 // Test override and final
2398 cxx11test::overridden o1(55464);
2405 // Test template brackets
2406 test_template<::test_template<int>> v(test_template<int>(12));
2410 char const *utf8 = u8"UTF-8 string \u2500";
2411 char16_t const *utf16 = u"UTF-8 string \u2500";
2412 char32_t const *utf32 = U"UTF-32 string \u2500";
2416 # Test code for whether the C compiler supports C++11 (complete).
2417 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2418 ${ac_cxx_conftest_cxx11_globals}
2421 main (int argc, char **argv)
2424 ${ac_cxx_conftest_cxx98_main}
2425 ${ac_cxx_conftest_cxx11_main}
2430 # Test code for whether the C compiler supports C++98 (complete).
2431 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2433 main (int argc, char **argv)
2436 ${ac_cxx_conftest_cxx98_main}
2441 # Test code for whether the C compiler supports C89 (global declarations)
2442 ac_c_conftest_c89_globals='
2443 /* Does the compiler advertise C89 conformance?
2444 Do not test the value of __STDC__, because some compilers set it to 0
2445 while being otherwise adequately conformant. */
2446 #if !defined __STDC__
2447 # error "Compiler does not advertise C89 conformance"
2453 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2454 struct buf { int x; };
2455 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2456 static char *e (p, i)
2462 static char *f (char * (*g) (char **, int), char **p, ...)
2467 s = g (p, va_arg (v,int));
2472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2473 function prototypes and stuff, but not \xHH hex character constants.
2474 These do not provoke an error unfortunately, instead are silently treated
2475 as an "x". The following induces an error, until -std is added to get
2476 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2477 array size at least. It is necessary to write \x00 == 0 to get something
2478 that is true only with -std. */
2479 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2482 inside strings and character constants. */
2483 #define FOO(x) '\''x'\''
2484 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2486 int test (int i, double x);
2487 struct s1 {int (*f) (int a);};
2488 struct s2 {int (*f) (double a);};
2489 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2492 # Test code for whether the C compiler supports C89 (body of main).
2493 ac_c_conftest_c89_main='
2494 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2497 # Test code for whether the C compiler supports C99 (global declarations)
2498 ac_c_conftest_c99_globals='
2499 // Does the compiler advertise C99 conformance?
2500 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2501 # error "Compiler does not advertise C99 conformance"
2504 #include <stdbool.h>
2505 extern int puts (const char *);
2506 extern int printf (const char *, ...);
2507 extern int dprintf (int, const char *, ...);
2508 extern void *malloc (size_t);
2510 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2511 // dprintf is used instead of fprintf to avoid needing to declare
2513 #define debug(...) dprintf (2, __VA_ARGS__)
2514 #define showlist(...) puts (#__VA_ARGS__)
2515 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2517 test_varargs_macros (void)
2522 debug ("X = %d\n", x);
2523 showlist (The first, second, and third items.);
2524 report (x>y, "x is %d but y is %d", x, y);
2527 // Check long long types.
2528 #define BIG64 18446744073709551615ull
2529 #define BIG32 4294967295ul
2530 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2532 #error "your preprocessor is broken"
2536 #error "your preprocessor is broken"
2538 static long long int bignum = -9223372036854775807LL;
2539 static unsigned long long int ubignum = BIG64;
2541 struct incomplete_array
2549 const wchar_t *name;
2553 typedef const char *ccp;
2556 test_restrict (ccp restrict text)
2558 // See if C++-style comments work.
2559 // Iterate through items via the restricted pointer.
2560 // Also check for declarations in for loops.
2561 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2566 // Check varargs and va_copy.
2568 test_varargs (const char *format, ...)
2571 va_start (args, format);
2573 va_copy (args_copy, args);
2575 const char *str = "";
2583 case '\''s'\'': // string
2584 str = va_arg (args_copy, const char *);
2586 case '\''d'\'': // int
2587 number = va_arg (args_copy, int);
2589 case '\''f'\'': // float
2590 fnumber = va_arg (args_copy, double);
2599 return *str && number && fnumber;
2603 # Test code for whether the C compiler supports C99 (body of main).
2604 ac_c_conftest_c99_main='
2606 _Bool success = false;
2607 success |= (argc != 0);
2610 if (test_restrict ("String literal") == 0)
2612 char *restrict newvar = "Another string";
2615 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2616 test_varargs_macros ();
2618 // Check flexible array members.
2619 struct incomplete_array *ia =
2620 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2622 for (int i = 0; i < ia->datasize; ++i)
2623 ia->data[i] = i * 1.234;
2625 // Check named initializers.
2626 struct named_init ni = {
2628 .name = L"Test wide string",
2629 .average = 543.34343,
2634 int dynamic_array[ni.number];
2635 dynamic_array[0] = argv[0][0];
2636 dynamic_array[ni.number - 1] = 543;
2638 // work around unused variable warnings
2639 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2640 || dynamic_array[ni.number - 1] != 543);
2643 # Test code for whether the C compiler supports C11 (global declarations)
2644 ac_c_conftest_c11_globals='
2645 // Does the compiler advertise C11 conformance?
2646 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2647 # error "Compiler does not advertise C11 conformance"
2651 char _Alignas (double) aligned_as_double;
2652 char _Alignas (0) no_special_alignment;
2653 extern char aligned_as_int;
2654 char _Alignas (0) _Alignas (int) aligned_as_int;
2659 int_alignment = _Alignof (int),
2660 int_array_alignment = _Alignof (int[100]),
2661 char_alignment = _Alignof (char)
2663 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2666 int _Noreturn does_not_return (void) { for (;;) continue; }
2668 // Check _Static_assert.
2669 struct test_static_assert
2672 _Static_assert (sizeof (int) <= sizeof (long int),
2673 "_Static_assert does not work in struct");
2677 // Check UTF-8 literals.
2678 #define u8 syntax error!
2679 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2681 // Check duplicate typedefs.
2682 typedef long *long_ptr;
2683 typedef long int *long_ptr;
2684 typedef long_ptr long_ptr;
2686 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2690 struct { int i; int j; };
2691 struct { int k; long int l; } w;
2697 # Test code for whether the C compiler supports C11 (body of main).
2698 ac_c_conftest_c11_main='
2699 _Static_assert ((offsetof (struct anonymous, i)
2700 == offsetof (struct anonymous, w.k)),
2701 "Anonymous union alignment botch");
2707 # Test code for whether the C compiler supports C11 (complete).
2708 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2709 ${ac_c_conftest_c99_globals}
2710 ${ac_c_conftest_c11_globals}
2713 main (int argc, char **argv)
2716 ${ac_c_conftest_c89_main}
2717 ${ac_c_conftest_c99_main}
2718 ${ac_c_conftest_c11_main}
2723 # Test code for whether the C compiler supports C99 (complete).
2724 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2725 ${ac_c_conftest_c99_globals}
2728 main (int argc, char **argv)
2731 ${ac_c_conftest_c89_main}
2732 ${ac_c_conftest_c99_main}
2737 # Test code for whether the C compiler supports C89 (complete).
2738 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2741 main (int argc, char **argv)
2744 ${ac_c_conftest_c89_main}
2749 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2750 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2751 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2752 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2753 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2754 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2755 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2756 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2757 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2759 # Auxiliary files required by this configure script.
2760 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2762 # Locations in which to look for auxiliary files.
2763 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2765 # Search for a directory containing all of the required auxiliary files,
2766 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2767 # If we don't find one directory that contains all the files we need,
2768 # we report the set of missing files from the *first* directory in
2769 # $ac_aux_dir_candidates and give up.
2770 ac_missing_aux_files=""
2771 ac_first_candidate=:
2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $ac_aux_dir_candidates
2778 case $as_dir in #(((
2781 *) as_dir=$as_dir/ ;;
2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2786 ac_aux_dir_found=yes
2788 for ac_aux in $ac_aux_files
2790 # As a special case, if "install-sh" is required, that requirement
2791 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2792 # and $ac_install_sh is set appropriately for whichever one is found.
2793 if test x"$ac_aux" = x"install-sh"
2795 if test -f "${as_dir}install-sh"; then
2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2797 ac_install_sh="${as_dir}install-sh -c"
2798 elif test -f "${as_dir}install.sh"; then
2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2800 ac_install_sh="${as_dir}install.sh -c"
2801 elif test -f "${as_dir}shtool"; then
2802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2803 ac_install_sh="${as_dir}shtool install -c"
2806 if $ac_first_candidate; then
2807 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2813 if test -f "${as_dir}${ac_aux}"; then
2814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2817 if $ac_first_candidate; then
2818 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2825 if test "$ac_aux_dir_found" = yes; then
2826 ac_aux_dir="$as_dir"
2829 ac_first_candidate=false
2838 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2842 # These three variables are undocumented and unsupported,
2843 # and are intended to be withdrawn in a future Autoconf release.
2844 # They can cause serious problems if a builder's source tree is in a directory
2845 # whose full name contains unusual characters.
2846 if test -f "${ac_aux_dir}config.guess"; then
2847 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2849 if test -f "${ac_aux_dir}config.sub"; then
2850 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2852 if test -f "$ac_aux_dir/configure"; then
2853 ac_configure="$SHELL ${ac_aux_dir}configure"
2856 # Check that the precious variables saved in the cache have kept the same
2858 ac_cache_corrupted=false
2859 for ac_var in $ac_precious_vars; do
2860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2861 eval ac_new_set=\$ac_env_${ac_var}_set
2862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2863 eval ac_new_val=\$ac_env_${ac_var}_value
2864 case $ac_old_set,$ac_new_set in
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2867 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2868 ac_cache_corrupted=: ;;
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2871 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2872 ac_cache_corrupted=: ;;
2875 if test "x$ac_old_val" != "x$ac_new_val"; then
2876 # differences in whitespace do not lead to failure.
2877 ac_old_val_w=`echo x $ac_old_val`
2878 ac_new_val_w=`echo x $ac_new_val`
2879 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2881 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2882 ac_cache_corrupted=:
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2885 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2886 eval $ac_var=\$ac_old_val
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2889 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2891 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2894 # Pass precious variables to config.status.
2895 if test "$ac_new_set" = set; then
2897 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2898 *) ac_arg=$ac_var=$ac_new_val ;;
2900 case " $ac_configure_args " in
2901 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2902 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2906 if $ac_cache_corrupted; then
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2910 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2911 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2912 and start over" "$LINENO" 5
2914 ## -------------------- ##
2915 ## Main body of script. ##
2916 ## -------------------- ##
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 am__api_version='1.16'
2932 # Find a good install program. We prefer a C program (faster),
2933 # so one script is as good as another. But avoid the broken or
2934 # incompatible versions:
2935 # SysV /etc/install, /usr/sbin/install
2936 # SunOS /usr/etc/install
2937 # IRIX /sbin/install
2939 # AmigaOS /C/install, which installs bootblocks on floppy discs
2940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943 # OS/2's system install, which has a completely different semantic
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 # Reject install programs that cannot install multiple files.
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947 printf %s "checking for a BSD-compatible install... " >&6; }
2948 if test -z "$INSTALL"; then
2949 if test ${ac_cv_path_install+y}
2951 printf %s "(cached) " >&6
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 case $as_dir in #(((
2960 *) as_dir=$as_dir/ ;;
2962 # Account for fact that we put trailing slashes in our PATH walk.
2965 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2966 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2969 # OSF1 and SCO ODT 3.0 have their own names for install.
2970 # Don't use installbsd from OSF since it installs stuff as root
2972 for ac_prog in ginstall scoinst install; do
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2975 if test $ac_prog = install &&
2976 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2977 # AIX install. It has an incompatible calling convention.
2979 elif test $ac_prog = install &&
2980 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981 # program-specific install script used by HP pwplus--don't use.
2984 rm -rf conftest.one conftest.two conftest.dir
2985 echo one > conftest.one
2986 echo two > conftest.two
2988 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2989 test -s conftest.one && test -s conftest.two &&
2990 test -s conftest.dir/conftest.one &&
2991 test -s conftest.dir/conftest.two
2993 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3006 rm -rf conftest.one conftest.two conftest.dir
3009 if test ${ac_cv_path_install+y}; then
3010 INSTALL=$ac_cv_path_install
3012 # As a last resort, use the slow shell script. Don't cache a
3013 # value for INSTALL within a source directory, because that will
3014 # break other packages using the cache if that directory is
3015 # removed, or if the value is a relative name.
3016 INSTALL=$ac_install_sh
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3020 printf "%s\n" "$INSTALL" >&6; }
3022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3023 # It thinks the first close brace ends the variable substitution.
3024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3031 printf %s "checking whether build environment is sane... " >&6; }
3032 # Reject unsafe characters in $srcdir or the absolute working directory
3033 # name. Accept space and tab only in the latter.
3037 *[\\\"\#\$\&\'\`$am_lf]*)
3038 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3041 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3042 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3045 # Do 'set' in a subshell so we don't clobber the current shell's
3046 # arguments. Must try -L first in case configure is actually a
3047 # symlink; some systems play weird games with the mod time of symlinks
3048 # (eg FreeBSD returns the mod time of the symlink's containing
3052 for am_try in 1 2; do
3053 echo "timestamp, slept: $am_has_slept" > conftest.file
3054 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3055 if test "$*" = "X"; then
3057 set X `ls -t "$srcdir/configure" conftest.file`
3059 if test "$*" != "X $srcdir/configure conftest.file" \
3060 && test "$*" != "X conftest.file $srcdir/configure"; then
3062 # If neither matched, then we have a broken ls. This can happen
3063 # if, for instance, CONFIG_SHELL is bash and it inherits a
3064 # broken ls alias from the environment. This has actually
3065 # happened. Such a system could not be considered "sane".
3066 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3067 alias in your environment" "$LINENO" 5
3069 if test "$2" = conftest.file || test $am_try -eq 2; then
3076 test "$2" = conftest.file
3082 as_fn_error $? "newly created file is older than distributed files!
3083 Check your system clock" "$LINENO" 5
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 printf "%s\n" "yes" >&6; }
3087 # If we didn't sleep, we still need to ensure time stamps of config.status and
3088 # generated files are strictly newer.
3090 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3097 test "$program_prefix" != NONE &&
3098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3099 # Use a double $ so make ignores it.
3100 test "$program_suffix" != NONE &&
3101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3102 # Double any \ or $.
3103 # By default was `s,x,x', remove it if useless.
3104 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3105 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3108 # Expand $ac_aux_dir to an absolute path.
3109 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3112 if test x"${MISSING+set}" != xset; then
3113 MISSING="\${SHELL} '$am_aux_dir/missing'"
3115 # Use eval to expand $SHELL
3116 if eval "$MISSING --is-lightweight"; then
3117 am_missing_run="$MISSING "
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3121 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3124 if test x"${install_sh+set}" != xset; then
3127 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3129 install_sh="\${SHELL} $am_aux_dir/install-sh"
3133 # Installed binaries are usually stripped using 'strip' when the user
3134 # run "make install-strip". However 'strip' might not be the right
3135 # tool to use in cross-compilation environments, therefore Automake
3136 # will honor the 'STRIP' environment variable to overrule this program.
3137 if test "$cross_compiling" != no; then
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}strip; ac_word=$2
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 printf %s "checking for $ac_word... " >&6; }
3143 if test ${ac_cv_prog_STRIP+y}
3145 printf %s "(cached) " >&6
3147 if test -n "$STRIP"; then
3148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 case $as_dir in #(((
3157 *) as_dir=$as_dir/ ;;
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3171 STRIP=$ac_cv_prog_STRIP
3172 if test -n "$STRIP"; then
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3174 printf "%s\n" "$STRIP" >&6; }
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 printf "%s\n" "no" >&6; }
3182 if test -z "$ac_cv_prog_STRIP"; then
3184 # Extract the first word of "strip", so it can be a program name with args.
3185 set dummy strip; ac_word=$2
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 printf %s "checking for $ac_word... " >&6; }
3188 if test ${ac_cv_prog_ac_ct_STRIP+y}
3190 printf %s "(cached) " >&6
3192 if test -n "$ac_ct_STRIP"; then
3193 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 case $as_dir in #(((
3202 *) as_dir=$as_dir/ ;;
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_ac_ct_STRIP="strip"
3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3217 if test -n "$ac_ct_STRIP"; then
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3219 printf "%s\n" "$ac_ct_STRIP" >&6; }
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 printf "%s\n" "no" >&6; }
3225 if test "x$ac_ct_STRIP" = x; then
3228 case $cross_compiling:$ac_tool_warned in
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3237 STRIP="$ac_cv_prog_STRIP"
3241 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3245 printf %s "checking for a race-free mkdir -p... " >&6; }
3246 if test -z "$MKDIR_P"; then
3247 if test ${ac_cv_path_mkdir+y}
3249 printf %s "(cached) " >&6
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3255 case $as_dir in #(((
3258 *) as_dir=$as_dir/ ;;
3260 for ac_prog in mkdir gmkdir; do
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3263 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3264 'mkdir ('*'coreutils) '* | \
3266 'mkdir (fileutils) '4.1*)
3267 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3277 test -d ./--version && rmdir ./--version
3278 if test ${ac_cv_path_mkdir+y}; then
3279 MKDIR_P="$ac_cv_path_mkdir -p"
3281 # As a last resort, use the slow shell script. Don't cache a
3282 # value for MKDIR_P within a source directory, because that will
3283 # break other packages using the cache if that directory is
3284 # removed, or if the value is a relative name.
3285 MKDIR_P="$ac_install_sh -d"
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3289 printf "%s\n" "$MKDIR_P" >&6; }
3291 for ac_prog in gawk mawk nawk awk
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 printf %s "checking for $ac_word... " >&6; }
3297 if test ${ac_cv_prog_AWK+y}
3299 printf %s "(cached) " >&6
3301 if test -n "$AWK"; then
3302 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 case $as_dir in #(((
3311 *) as_dir=$as_dir/ ;;
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_AWK="$ac_prog"
3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3326 if test -n "$AWK"; then
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3328 printf "%s\n" "$AWK" >&6; }
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 printf "%s\n" "no" >&6; }
3335 test -n "$AWK" && break
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3339 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3341 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3342 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3344 printf %s "(cached) " >&6
3346 cat >conftest.make <<\_ACEOF
3349 @echo '@@@%%%=$(MAKE)=@@@%%%'
3351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3354 eval ac_cv_prog_make_${ac_make}_set=yes;;
3356 eval ac_cv_prog_make_${ac_make}_set=no;;
3360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 printf "%s\n" "yes" >&6; }
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 printf "%s\n" "no" >&6; }
3367 SET_MAKE="MAKE=${MAKE-make}"
3370 rm -rf .tst 2>/dev/null
3371 mkdir .tst 2>/dev/null
3372 if test -d .tst; then
3377 rmdir .tst 2>/dev/null
3379 # Check whether --enable-silent-rules was given.
3380 if test ${enable_silent_rules+y}
3382 enableval=$enable_silent_rules;
3385 case $enable_silent_rules in # (((
3386 yes) AM_DEFAULT_VERBOSITY=0;;
3387 no) AM_DEFAULT_VERBOSITY=1;;
3388 *) AM_DEFAULT_VERBOSITY=1;;
3390 am_make=${MAKE-make}
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3392 printf %s "checking whether $am_make supports nested variables... " >&6; }
3393 if test ${am_cv_make_support_nested_variables+y}
3395 printf %s "(cached) " >&6
3397 if printf "%s\n" 'TRUE=$(BAR$(V))
3403 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3404 am_cv_make_support_nested_variables=yes
3406 am_cv_make_support_nested_variables=no
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3410 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3411 if test $am_cv_make_support_nested_variables = yes; then
3413 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3415 AM_V=$AM_DEFAULT_VERBOSITY
3416 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3421 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3422 # is not polluted with repeated "-I."
3423 am__isrc=' -I$(srcdir)'
3424 # test to see if srcdir already configured
3425 if test -f $srcdir/config.status; then
3426 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3430 # test whether we have cygpath
3431 if test -z "$CYGPATH_W"; then
3432 if (cygpath --version) >/dev/null 2>/dev/null; then
3433 CYGPATH_W='cygpath -w'
3440 # Define the identity of the package.
3441 PACKAGE='c-ares-test'
3445 # Some tools Automake needs.
3447 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3450 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3453 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3456 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3459 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3461 # For better backward compatibility. To be removed once Automake 1.9.x
3462 # dies out for good. For more background, see:
3463 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3464 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3465 mkdir_p='$(MKDIR_P)'
3467 # We need awk for the "check" target (and possibly the TAP driver). The
3468 # system "awk" is bad on some platforms.
3469 # Always define AMTAR for backward compatibility. Yes, it's still used
3470 # in the wild :-( We should find a proper way to deprecate it ...
3474 # We'll loop over all known methods to create a tar archive until one works.
3475 _am_tools='gnutar pax cpio none'
3477 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3483 # Variables for tags utilities; see am/tags.am
3484 if test -z "$CTAGS"; then
3488 if test -z "$ETAGS"; then
3492 if test -z "$CSCOPE"; then
3498 # POSIX will say in a future version that running "rm -f" with no argument
3499 # is OK; and we want to be able to make that assumption in our Makefile
3500 # recipes. So use an aggressive probe to check that the usage we want is
3501 # actually supported "in the wild" to an acceptable degree.
3502 # See automake bug#10828.
3503 # To make any issue more visible, cause the running configure to be aborted
3504 # by default if the 'rm' program in use doesn't match our expectations; the
3505 # user can still override this though.
3506 if rm -f && rm -fr && rm -rf; then : OK; else
3510 Your 'rm' program seems unable to run without file operands specified
3511 on the command line, even when the '-f' option is present. This is contrary
3512 to the behaviour of most rm programs out there, and not conforming with
3513 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3515 Please tell bug-automake@gnu.org about your system, including the value
3516 of your $PATH and any error possibly output before this message. This
3517 can help us improve future automake versions.
3520 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3521 echo 'Configuration will proceed anyway, since you have set the' >&2
3522 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3526 Aborting the configuration process, to ensure you take notice of the issue.
3528 You can download and install GNU coreutils to get an 'rm' implementation
3529 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3531 If you want to complete the configuration process using your problematic
3532 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3533 to "yes", and re-run configure.
3536 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3540 # Check whether --enable-silent-rules was given.
3541 if test ${enable_silent_rules+y}
3543 enableval=$enable_silent_rules;
3546 case $enable_silent_rules in # (((
3547 yes) AM_DEFAULT_VERBOSITY=0;;
3548 no) AM_DEFAULT_VERBOSITY=1;;
3549 *) AM_DEFAULT_VERBOSITY=0;;
3551 am_make=${MAKE-make}
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3553 printf %s "checking whether $am_make supports nested variables... " >&6; }
3554 if test ${am_cv_make_support_nested_variables+y}
3556 printf %s "(cached) " >&6
3558 if printf "%s\n" 'TRUE=$(BAR$(V))
3564 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3565 am_cv_make_support_nested_variables=yes
3567 am_cv_make_support_nested_variables=no
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3571 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3572 if test $am_cv_make_support_nested_variables = yes; then
3574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3576 AM_V=$AM_DEFAULT_VERBOSITY
3577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3594 ac_cpp='$CXXCPP $CPPFLAGS'
3595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3598 if test -z "$CXX"; then
3599 if test -n "$CCC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 printf %s "checking for $ac_word... " >&6; }
3609 if test ${ac_cv_prog_CXX+y}
3611 printf %s "(cached) " >&6
3613 if test -n "$CXX"; then
3614 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 case $as_dir in #(((
3623 *) as_dir=$as_dir/ ;;
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3638 if test -n "$CXX"; then
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3640 printf "%s\n" "$CXX" >&6; }
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3647 test -n "$CXX" && break
3650 if test -z "$CXX"; then
3652 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3654 # Extract the first word of "$ac_prog", so it can be a program name with args.
3655 set dummy $ac_prog; ac_word=$2
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 printf %s "checking for $ac_word... " >&6; }
3658 if test ${ac_cv_prog_ac_ct_CXX+y}
3660 printf %s "(cached) " >&6
3662 if test -n "$ac_ct_CXX"; then
3663 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 case $as_dir in #(((
3672 *) as_dir=$as_dir/ ;;
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_ac_ct_CXX="$ac_prog"
3677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3687 if test -n "$ac_ct_CXX"; then
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3689 printf "%s\n" "$ac_ct_CXX" >&6; }
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 printf "%s\n" "no" >&6; }
3696 test -n "$ac_ct_CXX" && break
3699 if test "x$ac_ct_CXX" = x; then
3702 case $cross_compiling:$ac_tool_warned in
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706 ac_tool_warned=yes ;;
3714 # Provide some information about the compiler.
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3718 for ac_option in --version -v -V -qversion; do
3719 { { ac_try="$ac_compiler $ac_option >&5"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 printf "%s\n" "$ac_try_echo"; } >&5
3726 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3728 if test -s conftest.err; then
3730 ... rest of stderr output deleted ...
3731 10q' conftest.err >conftest.er1
3732 cat conftest.er1 >&5
3734 rm -f conftest.er1 conftest.err
3735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3750 ac_clean_files_save=$ac_clean_files
3751 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3752 # Try to create an executable without -o first, disregard a.out.
3753 # It will help us diagnose broken compilers, and finding out an intuition
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3756 printf %s "checking whether the C++ compiler works... " >&6; }
3757 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3759 # The possible output files:
3760 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3763 for ac_file in $ac_files
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3767 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3772 if { { ac_try="$ac_link_default"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 printf "%s\n" "$ac_try_echo"; } >&5
3779 (eval "$ac_link_default") 2>&5
3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }
3784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3787 # so that the user can short-circuit this test for compilers unknown to
3789 for ac_file in $ac_files ''
3791 test -f "$ac_file" || continue
3793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3796 # We found the default executable, but exeext='' is most
3800 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3804 # We set ac_cv_exeext here because the later test for it is not
3805 # safe: cross compilers may not add the suffix if given an `-o'
3806 # argument, so we may need to know it at that point already.
3807 # Even if this section looks crufty: it has the advantage of
3814 test "$ac_cv_exeext" = no && ac_cv_exeext=
3819 if test -z "$ac_file"
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 printf "%s\n" "no" >&6; }
3823 printf "%s\n" "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error 77 "C++ compiler cannot create executables
3829 See \`config.log' for more details" "$LINENO" 5; }
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832 printf "%s\n" "yes" >&6; }
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3835 printf %s "checking for C++ compiler default output file name... " >&6; }
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837 printf "%s\n" "$ac_file" >&6; }
3838 ac_exeext=$ac_cv_exeext
3840 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3841 ac_clean_files=$ac_clean_files_save
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843 printf %s "checking for suffix of executables... " >&6; }
3844 if { { ac_try="$ac_link"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 printf "%s\n" "$ac_try_echo"; } >&5
3851 (eval "$ac_link") 2>&5
3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3858 # work properly (i.e., refer to `conftest.exe'), while it won't with
3860 for ac_file in conftest.exe conftest conftest.*; do
3861 test -f "$ac_file" || continue
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3873 See \`config.log' for more details" "$LINENO" 5; }
3875 rm -f conftest conftest$ac_cv_exeext
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3877 printf "%s\n" "$ac_cv_exeext" >&6; }
3879 rm -f conftest.$ac_ext
3880 EXEEXT=$ac_cv_exeext
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3888 FILE *f = fopen ("conftest.out", "w");
3889 return ferror (f) || fclose (f) != 0;
3895 ac_clean_files="$ac_clean_files conftest.out"
3896 # Check that the compiler produces executables we can run. If not, either
3897 # the compiler is broken, or we cross compile.
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3899 printf %s "checking whether we are cross compiling... " >&6; }
3900 if test "$cross_compiling" != yes; then
3901 { { ac_try="$ac_link"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 printf "%s\n" "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }
3912 if { ac_try='./conftest$ac_cv_exeext'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 printf "%s\n" "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3925 if test "$cross_compiling" = maybe; then
3928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error 77 "cannot run C++ compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details" "$LINENO" 5; }
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3937 printf "%s\n" "$cross_compiling" >&6; }
3939 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 printf %s "checking for suffix of object files... " >&6; }
3943 if test ${ac_cv_objext+y}
3945 printf %s "(cached) " >&6
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3958 rm -f conftest.o conftest.obj
3959 if { { ac_try="$ac_compile"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 printf "%s\n" "$ac_try_echo"; } >&5
3966 (eval "$ac_compile") 2>&5
3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }
3971 for ac_file in conftest.o conftest.obj conftest.*; do
3972 test -f "$ac_file" || continue;
3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3980 printf "%s\n" "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "cannot compute suffix of object files: cannot compile
3986 See \`config.log' for more details" "$LINENO" 5; }
3988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3991 printf "%s\n" "$ac_cv_objext" >&6; }
3992 OBJEXT=$ac_cv_objext
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3995 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3996 if test ${ac_cv_cxx_compiler_gnu+y}
3998 printf %s "(cached) " >&6
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4014 if ac_fn_cxx_try_compile "$LINENO"
4020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4025 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4028 if test $ac_compiler_gnu = yes; then
4033 ac_test_CXXFLAGS=${CXXFLAGS+y}
4034 ac_save_CXXFLAGS=$CXXFLAGS
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4036 printf %s "checking whether $CXX accepts -g... " >&6; }
4037 if test ${ac_cv_prog_cxx_g+y}
4039 printf %s "(cached) " >&6
4041 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4042 ac_cxx_werror_flag=yes
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_cxx_try_compile "$LINENO"
4058 ac_cv_prog_cxx_g=yes
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4072 if ac_fn_cxx_try_compile "$LINENO"
4076 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4089 if ac_fn_cxx_try_compile "$LINENO"
4091 ac_cv_prog_cxx_g=yes
4093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4101 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4102 if test $ac_test_CXXFLAGS; then
4103 CXXFLAGS=$ac_save_CXXFLAGS
4104 elif test $ac_cv_prog_cxx_g = yes; then
4105 if test "$GXX" = yes; then
4111 if test "$GXX" = yes; then
4117 ac_prog_cxx_stdcxx=no
4118 if test x$ac_prog_cxx_stdcxx = xno
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4121 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4122 if test ${ac_cv_prog_cxx_11+y}
4124 printf %s "(cached) " >&6
4126 ac_cv_prog_cxx_11=no
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 $ac_cxx_conftest_cxx11_program
4132 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4134 CXX="$ac_save_CXX $ac_arg"
4135 if ac_fn_cxx_try_compile "$LINENO"
4137 ac_cv_prog_cxx_cxx11=$ac_arg
4139 rm -f core conftest.err conftest.$ac_objext conftest.beam
4140 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4142 rm -f conftest.$ac_ext
4146 if test "x$ac_cv_prog_cxx_cxx11" = xno
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4149 printf "%s\n" "unsupported" >&6; }
4151 if test "x$ac_cv_prog_cxx_cxx11" = x
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4154 printf "%s\n" "none needed" >&6; }
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4157 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4158 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4160 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4161 ac_prog_cxx_stdcxx=cxx11
4164 if test x$ac_prog_cxx_stdcxx = xno
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4167 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4168 if test ${ac_cv_prog_cxx_98+y}
4170 printf %s "(cached) " >&6
4172 ac_cv_prog_cxx_98=no
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 $ac_cxx_conftest_cxx98_program
4178 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4180 CXX="$ac_save_CXX $ac_arg"
4181 if ac_fn_cxx_try_compile "$LINENO"
4183 ac_cv_prog_cxx_cxx98=$ac_arg
4185 rm -f core conftest.err conftest.$ac_objext conftest.beam
4186 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4188 rm -f conftest.$ac_ext
4192 if test "x$ac_cv_prog_cxx_cxx98" = xno
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 printf "%s\n" "unsupported" >&6; }
4197 if test "x$ac_cv_prog_cxx_cxx98" = x
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4200 printf "%s\n" "none needed" >&6; }
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4203 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4204 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4206 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4207 ac_prog_cxx_stdcxx=cxx98
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 DEPDIR="${am__leading_dot}deps"
4218 ac_config_commands="$ac_config_commands depfiles"
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4221 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4222 cat > confinc.mk << 'END'
4224 @echo this is the am__doit target >confinc.out
4229 # BSD make does it like this.
4230 echo '.include "confinc.mk" # ignored' > confmf.BSD
4231 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4232 echo 'include confinc.mk # ignored' > confmf.GNU
4234 for s in GNU BSD; do
4235 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4236 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }
4240 case $?:`cat confinc.out 2>/dev/null` in #(
4241 '0:this is the am__doit target') :
4244 am__include='.include' am__quote='"' ;; #(
4246 am__include='include' am__quote='' ;;
4251 if test "$am__include" != "#"; then
4252 _am_result="yes ($s style)"
4256 rm -f confinc.* confmf.*
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4258 printf "%s\n" "${_am_result}" >&6; }
4260 # Check whether --enable-dependency-tracking was given.
4261 if test ${enable_dependency_tracking+y}
4263 enableval=$enable_dependency_tracking;
4266 if test "x$enable_dependency_tracking" != xno; then
4267 am_depcomp="$ac_aux_dir/depcomp"
4271 if test "x$enable_dependency_tracking" != xno; then
4281 depcc="$CXX" am_compiler_list=
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4284 printf %s "checking dependency style of $depcc... " >&6; }
4285 if test ${am_cv_CXX_dependencies_compiler_type+y}
4287 printf %s "(cached) " >&6
4289 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4290 # We make a subdir and do the tests there. Otherwise we can end up
4291 # making bogus files that we don't know about and never remove. For
4292 # instance it was reported that on HP-UX the gcc test will end up
4293 # making a dummy file named 'D' -- because '-MD' means "put the output
4297 # Copy depcomp to subdir because otherwise we won't find it if we're
4298 # using a relative directory.
4299 cp "$am_depcomp" conftest.dir
4301 # We will build objects and dependencies in a subdirectory because
4302 # it helps to detect inapplicable dependency modes. For instance
4303 # both Tru64's cc and ICC support -MD to output dependencies as a
4304 # side effect of compilation, but ICC will put the dependencies in
4305 # the current directory while Tru64 will put them in the object
4309 am_cv_CXX_dependencies_compiler_type=none
4310 if test "$am_compiler_list" = ""; then
4311 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4314 case " $depcc " in #(
4315 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4318 for depmode in $am_compiler_list; do
4319 # Setup a source with many dependencies, because some compilers
4320 # like to wrap large dependency lists on column 80 (with \), and
4321 # we should not choose a depcomp mode which is confused by this.
4323 # We need to recreate these files for each test, as the compiler may
4324 # overwrite some of them when testing with obscure command lines.
4325 # This happens at least with the AIX C compiler.
4327 for i in 1 2 3 4 5 6; do
4328 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4329 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4330 # Solaris 10 /bin/sh.
4331 echo '/* dummy */' > sub/conftst$i.h
4333 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4335 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4336 # mode. It turns out that the SunPro C++ compiler does not properly
4337 # handle '-M -o', and we need to detect this. Also, some Intel
4338 # versions had trouble with output in subdirs.
4339 am__obj=sub/conftest.${OBJEXT-o}
4340 am__minus_obj="-o $am__obj"
4343 # This depmode causes a compiler race in universal mode.
4344 test "$am__universal" = false || continue
4347 # After this tag, mechanisms are not by side-effect, so they'll
4348 # only be used when explicitly requested.
4349 if test "x$enable_dependency_tracking" = xyes; then
4355 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4356 # This compiler won't grok '-c -o', but also, the minuso test has
4357 # not run yet. These depmodes are late enough in the game, and
4358 # so weak that their functioning should not be impacted.
4359 am__obj=conftest.${OBJEXT-o}
4364 if depmode=$depmode \
4365 source=sub/conftest.c object=$am__obj \
4366 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4367 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4368 >/dev/null 2>conftest.err &&
4369 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4370 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4371 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4372 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4373 # icc doesn't choke on unknown options, it will just issue warnings
4374 # or remarks (even with -Werror). So we grep stderr for any message
4375 # that says an option was ignored or not supported.
4376 # When given -MP, icc 7.0 and 7.1 complain thusly:
4377 # icc: Command line warning: ignoring option '-M'; no argument required
4378 # The diagnosis changed in icc 8.0:
4379 # icc: Command line remark: option '-MP' not supported
4380 if (grep 'ignoring option' conftest.err ||
4381 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4382 am_cv_CXX_dependencies_compiler_type=$depmode
4391 am_cv_CXX_dependencies_compiler_type=none
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4396 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4397 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4400 test "x$enable_dependency_tracking" != xno \
4401 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4402 am__fastdepCXX_TRUE=
4403 am__fastdepCXX_FALSE='#'
4405 am__fastdepCXX_TRUE='#'
4406 am__fastdepCXX_FALSE=
4411 ax_cxx_compile_cxx11_required=true
4413 ac_cpp='$CXXCPP $CPPFLAGS'
4414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4419 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
4420 if test ${ax_cv_cxx_compile_cxx11+y}
4422 printf %s "(cached) " >&6
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4427 template <typename T>
4430 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4436 struct Child : public Base {
4437 virtual void f() override {}
4440 typedef check<check<bool>> right_angle_brackets;
4445 typedef check<int> check_type;
4447 check_type&& cr = static_cast<check_type&&>(c);
4452 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4453 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
4454 namespace test_template_alias_sfinae {
4457 template<typename T>
4458 using member = typename T::member_type;
4460 template<typename T>
4463 template<typename T>
4464 void func(member<T>*) {}
4474 if ac_fn_cxx_try_compile "$LINENO"
4476 ax_cv_cxx_compile_cxx11=yes
4478 ax_cv_cxx_compile_cxx11=no
4480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
4483 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
4484 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
4490 if test x$ac_success = xno; then
4491 for switch in -std=c++11 -std=c++0x; do
4492 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
4494 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
4495 if eval test \${$cachevar+y}
4497 printf %s "(cached) " >&6
4499 ac_save_CXXFLAGS="$CXXFLAGS"
4500 CXXFLAGS="$CXXFLAGS $switch"
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4504 template <typename T>
4507 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4513 struct Child : public Base {
4514 virtual void f() override {}
4517 typedef check<check<bool>> right_angle_brackets;
4522 typedef check<int> check_type;
4524 check_type&& cr = static_cast<check_type&&>(c);
4529 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4530 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
4531 namespace test_template_alias_sfinae {
4534 template<typename T>
4535 using member = typename T::member_type;
4537 template<typename T>
4540 template<typename T>
4541 void func(member<T>*) {}
4551 if ac_fn_cxx_try_compile "$LINENO"
4557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4558 CXXFLAGS="$ac_save_CXXFLAGS"
4560 eval ac_res=\$$cachevar
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4562 printf "%s\n" "$ac_res" >&6; }
4563 if eval test x\$$cachevar = xyes; then
4564 CXXFLAGS="$CXXFLAGS $switch"
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 if test x$ax_cxx_compile_cxx11_required = xtrue; then
4577 if test x$ac_success = xno; then
4578 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
4581 if test x$ac_success = xno; then
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
4584 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
4588 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4598 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4603 macro_version='2.4.6'
4604 macro_revision='2.4.6'
4619 ltmain=$ac_aux_dir/ltmain.sh
4623 # Make sure we can run config.sub.
4624 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4625 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4628 printf %s "checking build system type... " >&6; }
4629 if test ${ac_cv_build+y}
4631 printf %s "(cached) " >&6
4633 ac_build_alias=$build_alias
4634 test "x$ac_build_alias" = x &&
4635 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4636 test "x$ac_build_alias" = x &&
4637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4638 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4639 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4643 printf "%s\n" "$ac_cv_build" >&6; }
4644 case $ac_cv_build in
4646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4649 ac_save_IFS=$IFS; IFS='-'
4655 # Remember, the first character of IFS is used to create $*,
4656 # except with old shells:
4659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4663 printf %s "checking host system type... " >&6; }
4664 if test ${ac_cv_host+y}
4666 printf %s "(cached) " >&6
4668 if test "x$host_alias" = x; then
4669 ac_cv_host=$ac_cv_build
4671 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4672 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4677 printf "%s\n" "$ac_cv_host" >&6; }
4680 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4683 ac_save_IFS=$IFS; IFS='-'
4689 # Remember, the first character of IFS is used to create $*,
4690 # except with old shells:
4693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4696 # Backslashify metacharacters that are still active within
4697 # double-quoted strings.
4698 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4700 # Same as above, but do not quote variable references.
4701 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4703 # Sed substitution to delay expansion of an escaped shell variable in a
4704 # double_quote_subst'ed string.
4705 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4707 # Sed substitution to delay expansion of an escaped single quote.
4708 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4710 # Sed substitution to avoid accidental globbing in evaled expressions
4711 no_glob_subst='s/\*/\\\*/g'
4713 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4714 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4715 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4718 printf %s "checking how to print strings... " >&6; }
4719 # Test print first, because it will be a builtin if present.
4720 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4721 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4723 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4726 # Use this function as a fallback that always works.
4727 func_fallback_echo ()
4729 eval 'cat <<_LTECHO_EOF
4733 ECHO='func_fallback_echo'
4736 # func_echo_all arg...
4737 # Invoke $ECHO with all args, space-separated.
4744 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4745 printf "%s\n" "printf" >&6; } ;;
4746 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4747 printf "%s\n" "print -r" >&6; } ;;
4748 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4749 printf "%s\n" "cat" >&6; } ;;
4775 ac_cpp='$CPP $CPPFLAGS'
4776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 printf %s "checking for $ac_word... " >&6; }
4784 if test ${ac_cv_prog_CC+y}
4786 printf %s "(cached) " >&6
4788 if test -n "$CC"; then
4789 ac_cv_prog_CC="$CC" # Let the user override the test.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 case $as_dir in #(((
4798 *) as_dir=$as_dir/ ;;
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4813 if test -n "$CC"; then
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4815 printf "%s\n" "$CC" >&6; }
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 printf "%s\n" "no" >&6; }
4823 if test -z "$ac_cv_prog_CC"; then
4825 # Extract the first word of "gcc", so it can be a program name with args.
4826 set dummy gcc; ac_word=$2
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 printf %s "checking for $ac_word... " >&6; }
4829 if test ${ac_cv_prog_ac_ct_CC+y}
4831 printf %s "(cached) " >&6
4833 if test -n "$ac_ct_CC"; then
4834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 case $as_dir in #(((
4843 *) as_dir=$as_dir/ ;;
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4847 ac_cv_prog_ac_ct_CC="gcc"
4848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4858 if test -n "$ac_ct_CC"; then
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4860 printf "%s\n" "$ac_ct_CC" >&6; }
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 printf "%s\n" "no" >&6; }
4866 if test "x$ac_ct_CC" = x; then
4869 case $cross_compiling:$ac_tool_warned in
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4881 if test -z "$CC"; then
4882 if test -n "$ac_tool_prefix"; then
4883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4884 set dummy ${ac_tool_prefix}cc; ac_word=$2
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 printf %s "checking for $ac_word... " >&6; }
4887 if test ${ac_cv_prog_CC+y}
4889 printf %s "(cached) " >&6
4891 if test -n "$CC"; then
4892 ac_cv_prog_CC="$CC" # Let the user override the test.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 case $as_dir in #(((
4901 *) as_dir=$as_dir/ ;;
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_CC="${ac_tool_prefix}cc"
4906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4916 if test -n "$CC"; then
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918 printf "%s\n" "$CC" >&6; }
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 printf "%s\n" "no" >&6; }
4927 if test -z "$CC"; then
4928 # Extract the first word of "cc", so it can be a program name with args.
4929 set dummy cc; ac_word=$2
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 printf %s "checking for $ac_word... " >&6; }
4932 if test ${ac_cv_prog_CC+y}
4934 printf %s "(cached) " >&6
4936 if test -n "$CC"; then
4937 ac_cv_prog_CC="$CC" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 case $as_dir in #(((
4947 *) as_dir=$as_dir/ ;;
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4951 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4952 ac_prog_rejected=yes
4956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4963 if test $ac_prog_rejected = yes; then
4964 # We found a bogon in the path, so make sure we never use it.
4965 set dummy $ac_cv_prog_CC
4967 if test $# != 0; then
4968 # We chose a different compiler from the bogus one.
4969 # However, it has the same basename, so the bogon will be chosen
4970 # first if we set CC to just the basename; use the full file name.
4972 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4978 if test -n "$CC"; then
4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4980 printf "%s\n" "$CC" >&6; }
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 printf "%s\n" "no" >&6; }
4988 if test -z "$CC"; then
4989 if test -n "$ac_tool_prefix"; then
4990 for ac_prog in cl.exe
4992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 printf %s "checking for $ac_word... " >&6; }
4996 if test ${ac_cv_prog_CC+y}
4998 printf %s "(cached) " >&6
5000 if test -n "$CC"; then
5001 ac_cv_prog_CC="$CC" # Let the user override the test.
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 case $as_dir in #(((
5010 *) as_dir=$as_dir/ ;;
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5025 if test -n "$CC"; then
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5027 printf "%s\n" "$CC" >&6; }
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 printf "%s\n" "no" >&6; }
5034 test -n "$CC" && break
5037 if test -z "$CC"; then
5039 for ac_prog in cl.exe
5041 # Extract the first word of "$ac_prog", so it can be a program name with args.
5042 set dummy $ac_prog; ac_word=$2
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 printf %s "checking for $ac_word... " >&6; }
5045 if test ${ac_cv_prog_ac_ct_CC+y}
5047 printf %s "(cached) " >&6
5049 if test -n "$ac_ct_CC"; then
5050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 case $as_dir in #(((
5059 *) as_dir=$as_dir/ ;;
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_ac_ct_CC="$ac_prog"
5064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5074 if test -n "$ac_ct_CC"; then
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5076 printf "%s\n" "$ac_ct_CC" >&6; }
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 printf "%s\n" "no" >&6; }
5083 test -n "$ac_ct_CC" && break
5086 if test "x$ac_ct_CC" = x; then
5089 case $cross_compiling:$ac_tool_warned in
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5100 if test -z "$CC"; then
5101 if test -n "$ac_tool_prefix"; then
5102 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5103 set dummy ${ac_tool_prefix}clang; ac_word=$2
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 printf %s "checking for $ac_word... " >&6; }
5106 if test ${ac_cv_prog_CC+y}
5108 printf %s "(cached) " >&6
5110 if test -n "$CC"; then
5111 ac_cv_prog_CC="$CC" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 case $as_dir in #(((
5120 *) as_dir=$as_dir/ ;;
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_CC="${ac_tool_prefix}clang"
5125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5135 if test -n "$CC"; then
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5137 printf "%s\n" "$CC" >&6; }
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 printf "%s\n" "no" >&6; }
5145 if test -z "$ac_cv_prog_CC"; then
5147 # Extract the first word of "clang", so it can be a program name with args.
5148 set dummy clang; ac_word=$2
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 printf %s "checking for $ac_word... " >&6; }
5151 if test ${ac_cv_prog_ac_ct_CC+y}
5153 printf %s "(cached) " >&6
5155 if test -n "$ac_ct_CC"; then
5156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 case $as_dir in #(((
5165 *) as_dir=$as_dir/ ;;
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_ac_ct_CC="clang"
5170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5180 if test -n "$ac_ct_CC"; then
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5182 printf "%s\n" "$ac_ct_CC" >&6; }
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 printf "%s\n" "no" >&6; }
5188 if test "x$ac_ct_CC" = x; then
5191 case $cross_compiling:$ac_tool_warned in
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5206 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5207 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5208 as_fn_error $? "no acceptable C compiler found in \$PATH
5209 See \`config.log' for more details" "$LINENO" 5; }
5211 # Provide some information about the compiler.
5212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5215 for ac_option in --version -v -V -qversion -version; do
5216 { { ac_try="$ac_compiler $ac_option >&5"
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222 printf "%s\n" "$ac_try_echo"; } >&5
5223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5225 if test -s conftest.err; then
5227 ... rest of stderr output deleted ...
5228 10q' conftest.err >conftest.er1
5229 cat conftest.er1 >&5
5231 rm -f conftest.er1 conftest.err
5232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5237 printf %s "checking whether the compiler supports GNU C... " >&6; }
5238 if test ${ac_cv_c_compiler_gnu+y}
5240 printf %s "(cached) " >&6
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5256 if ac_fn_c_try_compile "$LINENO"
5262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5267 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270 if test $ac_compiler_gnu = yes; then
5275 ac_test_CFLAGS=${CFLAGS+y}
5276 ac_save_CFLAGS=$CFLAGS
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5278 printf %s "checking whether $CC accepts -g... " >&6; }
5279 if test ${ac_cv_prog_cc_g+y}
5281 printf %s "(cached) " >&6
5283 ac_save_c_werror_flag=$ac_c_werror_flag
5284 ac_c_werror_flag=yes
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5298 if ac_fn_c_try_compile "$LINENO"
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5314 if ac_fn_c_try_compile "$LINENO"
5318 ac_c_werror_flag=$ac_save_c_werror_flag
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5331 if ac_fn_c_try_compile "$LINENO"
5335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5340 ac_c_werror_flag=$ac_save_c_werror_flag
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5343 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5344 if test $ac_test_CFLAGS; then
5345 CFLAGS=$ac_save_CFLAGS
5346 elif test $ac_cv_prog_cc_g = yes; then
5347 if test "$GCC" = yes; then
5353 if test "$GCC" = yes; then
5360 if test x$ac_prog_cc_stdc = xno
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5363 printf %s "checking for $CC option to enable C11 features... " >&6; }
5364 if test ${ac_cv_prog_cc_c11+y}
5366 printf %s "(cached) " >&6
5368 ac_cv_prog_cc_c11=no
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 $ac_c_conftest_c11_program
5374 for ac_arg in '' -std=gnu11
5376 CC="$ac_save_CC $ac_arg"
5377 if ac_fn_c_try_compile "$LINENO"
5379 ac_cv_prog_cc_c11=$ac_arg
5381 rm -f core conftest.err conftest.$ac_objext conftest.beam
5382 test "x$ac_cv_prog_cc_c11" != "xno" && break
5384 rm -f conftest.$ac_ext
5388 if test "x$ac_cv_prog_cc_c11" = xno
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5391 printf "%s\n" "unsupported" >&6; }
5393 if test "x$ac_cv_prog_cc_c11" = x
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5396 printf "%s\n" "none needed" >&6; }
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5399 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5400 CC="$CC $ac_cv_prog_cc_c11"
5402 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5406 if test x$ac_prog_cc_stdc = xno
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5409 printf %s "checking for $CC option to enable C99 features... " >&6; }
5410 if test ${ac_cv_prog_cc_c99+y}
5412 printf %s "(cached) " >&6
5414 ac_cv_prog_cc_c99=no
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 $ac_c_conftest_c99_program
5420 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5422 CC="$ac_save_CC $ac_arg"
5423 if ac_fn_c_try_compile "$LINENO"
5425 ac_cv_prog_cc_c99=$ac_arg
5427 rm -f core conftest.err conftest.$ac_objext conftest.beam
5428 test "x$ac_cv_prog_cc_c99" != "xno" && break
5430 rm -f conftest.$ac_ext
5434 if test "x$ac_cv_prog_cc_c99" = xno
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5437 printf "%s\n" "unsupported" >&6; }
5439 if test "x$ac_cv_prog_cc_c99" = x
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5442 printf "%s\n" "none needed" >&6; }
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5445 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5446 CC="$CC $ac_cv_prog_cc_c99"
5448 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5452 if test x$ac_prog_cc_stdc = xno
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5455 printf %s "checking for $CC option to enable C89 features... " >&6; }
5456 if test ${ac_cv_prog_cc_c89+y}
5458 printf %s "(cached) " >&6
5460 ac_cv_prog_cc_c89=no
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 $ac_c_conftest_c89_program
5466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5468 CC="$ac_save_CC $ac_arg"
5469 if ac_fn_c_try_compile "$LINENO"
5471 ac_cv_prog_cc_c89=$ac_arg
5473 rm -f core conftest.err conftest.$ac_objext conftest.beam
5474 test "x$ac_cv_prog_cc_c89" != "xno" && break
5476 rm -f conftest.$ac_ext
5480 if test "x$ac_cv_prog_cc_c89" = xno
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5483 printf "%s\n" "unsupported" >&6; }
5485 if test "x$ac_cv_prog_cc_c89" = x
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5488 printf "%s\n" "none needed" >&6; }
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5491 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5492 CC="$CC $ac_cv_prog_cc_c89"
5494 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5512 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5513 if test ${am_cv_prog_cc_c_o+y}
5515 printf %s "(cached) " >&6
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5528 # Make sure it works both with $CC and with simple cc.
5529 # Following AC_PROG_CC_C_O, we do the test twice because some
5530 # compilers refuse to overwrite an existing .o file with -o,
5531 # though they will create one.
5532 am_cv_prog_cc_c_o=yes
5534 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5535 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } \
5539 && test -f conftest2.$ac_objext; then
5542 am_cv_prog_cc_c_o=no
5546 rm -f core conftest*
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5550 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5551 if test "$am_cv_prog_cc_c_o" != yes; then
5552 # Losing compiler, so override with the script.
5553 # FIXME: It is wrong to rewrite CC.
5554 # But if we don't then we get into trouble of one sort or another.
5555 # A longer-term fix would be to have automake use am__CC in this case,
5556 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5557 CC="$am_aux_dir/compile $CC"
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566 depcc="$CC" am_compiler_list=
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5569 printf %s "checking dependency style of $depcc... " >&6; }
5570 if test ${am_cv_CC_dependencies_compiler_type+y}
5572 printf %s "(cached) " >&6
5574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5575 # We make a subdir and do the tests there. Otherwise we can end up
5576 # making bogus files that we don't know about and never remove. For
5577 # instance it was reported that on HP-UX the gcc test will end up
5578 # making a dummy file named 'D' -- because '-MD' means "put the output
5582 # Copy depcomp to subdir because otherwise we won't find it if we're
5583 # using a relative directory.
5584 cp "$am_depcomp" conftest.dir
5586 # We will build objects and dependencies in a subdirectory because
5587 # it helps to detect inapplicable dependency modes. For instance
5588 # both Tru64's cc and ICC support -MD to output dependencies as a
5589 # side effect of compilation, but ICC will put the dependencies in
5590 # the current directory while Tru64 will put them in the object
5594 am_cv_CC_dependencies_compiler_type=none
5595 if test "$am_compiler_list" = ""; then
5596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5599 case " $depcc " in #(
5600 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5603 for depmode in $am_compiler_list; do
5604 # Setup a source with many dependencies, because some compilers
5605 # like to wrap large dependency lists on column 80 (with \), and
5606 # we should not choose a depcomp mode which is confused by this.
5608 # We need to recreate these files for each test, as the compiler may
5609 # overwrite some of them when testing with obscure command lines.
5610 # This happens at least with the AIX C compiler.
5612 for i in 1 2 3 4 5 6; do
5613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5614 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5615 # Solaris 10 /bin/sh.
5616 echo '/* dummy */' > sub/conftst$i.h
5618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5620 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5621 # mode. It turns out that the SunPro C++ compiler does not properly
5622 # handle '-M -o', and we need to detect this. Also, some Intel
5623 # versions had trouble with output in subdirs.
5624 am__obj=sub/conftest.${OBJEXT-o}
5625 am__minus_obj="-o $am__obj"
5628 # This depmode causes a compiler race in universal mode.
5629 test "$am__universal" = false || continue
5632 # After this tag, mechanisms are not by side-effect, so they'll
5633 # only be used when explicitly requested.
5634 if test "x$enable_dependency_tracking" = xyes; then
5640 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5641 # This compiler won't grok '-c -o', but also, the minuso test has
5642 # not run yet. These depmodes are late enough in the game, and
5643 # so weak that their functioning should not be impacted.
5644 am__obj=conftest.${OBJEXT-o}
5649 if depmode=$depmode \
5650 source=sub/conftest.c object=$am__obj \
5651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5653 >/dev/null 2>conftest.err &&
5654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5658 # icc doesn't choke on unknown options, it will just issue warnings
5659 # or remarks (even with -Werror). So we grep stderr for any message
5660 # that says an option was ignored or not supported.
5661 # When given -MP, icc 7.0 and 7.1 complain thusly:
5662 # icc: Command line warning: ignoring option '-M'; no argument required
5663 # The diagnosis changed in icc 8.0:
5664 # icc: Command line remark: option '-MP' not supported
5665 if (grep 'ignoring option' conftest.err ||
5666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5667 am_cv_CC_dependencies_compiler_type=$depmode
5676 am_cv_CC_dependencies_compiler_type=none
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5681 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5685 test "x$enable_dependency_tracking" != xno \
5686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5688 am__fastdepCC_FALSE='#'
5690 am__fastdepCC_TRUE='#'
5691 am__fastdepCC_FALSE=
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5696 printf %s "checking for a sed that does not truncate output... " >&6; }
5697 if test ${ac_cv_path_SED+y}
5699 printf %s "(cached) " >&6
5701 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5702 for ac_i in 1 2 3 4 5 6 7; do
5703 ac_script="$ac_script$as_nl$ac_script"
5705 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5706 { ac_script=; unset ac_script;}
5707 if test -z "$SED"; then
5708 ac_path_SED_found=false
5709 # Loop through the user's path and test for each of PROGNAME-LIST
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 case $as_dir in #(((
5717 *) as_dir=$as_dir/ ;;
5719 for ac_prog in sed gsed
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5723 as_fn_executable_p "$ac_path_SED" || continue
5724 # Check for GNU ac_path_SED and select it if it is found.
5725 # Check for GNU $ac_path_SED
5726 case `"$ac_path_SED" --version 2>&1` in
5728 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5731 printf %s 0123456789 >"conftest.in"
5734 cat "conftest.in" "conftest.in" >"conftest.tmp"
5735 mv "conftest.tmp" "conftest.in"
5736 cp "conftest.in" "conftest.nl"
5737 printf "%s\n" '' >> "conftest.nl"
5738 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5740 as_fn_arith $ac_count + 1 && ac_count=$as_val
5741 if test $ac_count -gt ${ac_path_SED_max-0}; then
5742 # Best one so far, save it but keep looking for a better one
5743 ac_cv_path_SED="$ac_path_SED"
5744 ac_path_SED_max=$ac_count
5746 # 10*(2^10) chars as input seems more than enough
5747 test $ac_count -gt 10 && break
5749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5752 $ac_path_SED_found && break 3
5757 if test -z "$ac_cv_path_SED"; then
5758 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5766 printf "%s\n" "$ac_cv_path_SED" >&6; }
5767 SED="$ac_cv_path_SED"
5770 test -z "$SED" && SED=sed
5771 Xsed="$SED -e 1s/^X//"
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5784 printf %s "checking for grep that handles long lines and -e... " >&6; }
5785 if test ${ac_cv_path_GREP+y}
5787 printf %s "(cached) " >&6
5789 if test -z "$GREP"; then
5790 ac_path_GREP_found=false
5791 # Loop through the user's path and test for each of PROGNAME-LIST
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5796 case $as_dir in #(((
5799 *) as_dir=$as_dir/ ;;
5801 for ac_prog in grep ggrep
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5805 as_fn_executable_p "$ac_path_GREP" || continue
5806 # Check for GNU ac_path_GREP and select it if it is found.
5807 # Check for GNU $ac_path_GREP
5808 case `"$ac_path_GREP" --version 2>&1` in
5810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5813 printf %s 0123456789 >"conftest.in"
5816 cat "conftest.in" "conftest.in" >"conftest.tmp"
5817 mv "conftest.tmp" "conftest.in"
5818 cp "conftest.in" "conftest.nl"
5819 printf "%s\n" 'GREP' >> "conftest.nl"
5820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5822 as_fn_arith $ac_count + 1 && ac_count=$as_val
5823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5824 # Best one so far, save it but keep looking for a better one
5825 ac_cv_path_GREP="$ac_path_GREP"
5826 ac_path_GREP_max=$ac_count
5828 # 10*(2^10) chars as input seems more than enough
5829 test $ac_count -gt 10 && break
5831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5834 $ac_path_GREP_found && break 3
5839 if test -z "$ac_cv_path_GREP"; then
5840 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5843 ac_cv_path_GREP=$GREP
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5848 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5849 GREP="$ac_cv_path_GREP"
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5853 printf %s "checking for egrep... " >&6; }
5854 if test ${ac_cv_path_EGREP+y}
5856 printf %s "(cached) " >&6
5858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5859 then ac_cv_path_EGREP="$GREP -E"
5861 if test -z "$EGREP"; then
5862 ac_path_EGREP_found=false
5863 # Loop through the user's path and test for each of PROGNAME-LIST
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5868 case $as_dir in #(((
5871 *) as_dir=$as_dir/ ;;
5873 for ac_prog in egrep
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5877 as_fn_executable_p "$ac_path_EGREP" || continue
5878 # Check for GNU ac_path_EGREP and select it if it is found.
5879 # Check for GNU $ac_path_EGREP
5880 case `"$ac_path_EGREP" --version 2>&1` in
5882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5885 printf %s 0123456789 >"conftest.in"
5888 cat "conftest.in" "conftest.in" >"conftest.tmp"
5889 mv "conftest.tmp" "conftest.in"
5890 cp "conftest.in" "conftest.nl"
5891 printf "%s\n" 'EGREP' >> "conftest.nl"
5892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894 as_fn_arith $ac_count + 1 && ac_count=$as_val
5895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5896 # Best one so far, save it but keep looking for a better one
5897 ac_cv_path_EGREP="$ac_path_EGREP"
5898 ac_path_EGREP_max=$ac_count
5900 # 10*(2^10) chars as input seems more than enough
5901 test $ac_count -gt 10 && break
5903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5906 $ac_path_EGREP_found && break 3
5911 if test -z "$ac_cv_path_EGREP"; then
5912 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5915 ac_cv_path_EGREP=$EGREP
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5921 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5922 EGREP="$ac_cv_path_EGREP"
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5926 printf %s "checking for fgrep... " >&6; }
5927 if test ${ac_cv_path_FGREP+y}
5929 printf %s "(cached) " >&6
5931 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5932 then ac_cv_path_FGREP="$GREP -F"
5934 if test -z "$FGREP"; then
5935 ac_path_FGREP_found=false
5936 # Loop through the user's path and test for each of PROGNAME-LIST
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5941 case $as_dir in #(((
5944 *) as_dir=$as_dir/ ;;
5946 for ac_prog in fgrep
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5950 as_fn_executable_p "$ac_path_FGREP" || continue
5951 # Check for GNU ac_path_FGREP and select it if it is found.
5952 # Check for GNU $ac_path_FGREP
5953 case `"$ac_path_FGREP" --version 2>&1` in
5955 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5958 printf %s 0123456789 >"conftest.in"
5961 cat "conftest.in" "conftest.in" >"conftest.tmp"
5962 mv "conftest.tmp" "conftest.in"
5963 cp "conftest.in" "conftest.nl"
5964 printf "%s\n" 'FGREP' >> "conftest.nl"
5965 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5967 as_fn_arith $ac_count + 1 && ac_count=$as_val
5968 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5969 # Best one so far, save it but keep looking for a better one
5970 ac_cv_path_FGREP="$ac_path_FGREP"
5971 ac_path_FGREP_max=$ac_count
5973 # 10*(2^10) chars as input seems more than enough
5974 test $ac_count -gt 10 && break
5976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5979 $ac_path_FGREP_found && break 3
5984 if test -z "$ac_cv_path_FGREP"; then
5985 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5988 ac_cv_path_FGREP=$FGREP
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5994 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5995 FGREP="$ac_cv_path_FGREP"
5998 test -z "$GREP" && GREP=grep
6018 # Check whether --with-gnu-ld was given.
6019 if test ${with_gnu_ld+y}
6021 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6027 if test yes = "$GCC"; then
6028 # Check if gcc -print-prog-name=ld gives a path.
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6030 printf %s "checking for ld used by $CC... " >&6; }
6033 # gcc leaves a trailing carriage return, which upsets mingw
6034 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6036 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6039 # Accept absolute paths.
6041 re_direlt='/[^/][^/]*/\.\./'
6042 # Canonicalize the pathname of ld
6043 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6044 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6045 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6047 test -z "$LD" && LD=$ac_prog
6050 # If it fails, then pretend we aren't using GCC.
6054 # If it is relative, then search for the first ld in PATH.
6058 elif test yes = "$with_gnu_ld"; then
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6060 printf %s "checking for GNU ld... " >&6; }
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6063 printf %s "checking for non-GNU ld... " >&6; }
6065 if test ${lt_cv_path_LD+y}
6067 printf %s "(cached) " >&6
6069 if test -z "$LD"; then
6070 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6071 for ac_dir in $PATH; do
6073 test -z "$ac_dir" && ac_dir=.
6074 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6075 lt_cv_path_LD=$ac_dir/$ac_prog
6076 # Check to see if the program is GNU ld. I'd rather use --version,
6077 # but apparently some variants of GNU ld only accept -v.
6078 # Break only if it was the GNU/non-GNU ld that we prefer.
6079 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6080 *GNU* | *'with BFD'*)
6081 test no != "$with_gnu_ld" && break
6084 test yes != "$with_gnu_ld" && break
6091 lt_cv_path_LD=$LD # Let the user override the test with a path.
6096 if test -n "$LD"; then
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6098 printf "%s\n" "$LD" >&6; }
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 printf "%s\n" "no" >&6; }
6103 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6105 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6106 if test ${lt_cv_prog_gnu_ld+y}
6108 printf %s "(cached) " >&6
6110 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6111 case `$LD -v 2>&1 </dev/null` in
6112 *GNU* | *'with BFD'*)
6113 lt_cv_prog_gnu_ld=yes
6116 lt_cv_prog_gnu_ld=no
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6121 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6122 with_gnu_ld=$lt_cv_prog_gnu_ld
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6133 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6134 if test ${lt_cv_path_NM+y}
6136 printf %s "(cached) " >&6
6138 if test -n "$NM"; then
6139 # Let the user override the test.
6142 lt_nm_to_check=${ac_tool_prefix}nm
6143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6144 lt_nm_to_check="$lt_nm_to_check nm"
6146 for lt_tmp_nm in $lt_nm_to_check; do
6147 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6150 test -z "$ac_dir" && ac_dir=.
6151 tmp_nm=$ac_dir/$lt_tmp_nm
6152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6153 # Check to see if the nm accepts a BSD-compat flag.
6154 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6155 # nm: unknown option "B" ignored
6156 # Tru64's nm complains that /dev/null is an invalid object file
6157 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6159 mingw*) lt_bad_file=conftest.nm/nofile ;;
6160 *) lt_bad_file=/dev/null ;;
6162 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6163 *$lt_bad_file* | *'Invalid file or object type'*)
6164 lt_cv_path_NM="$tmp_nm -B"
6168 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6170 lt_cv_path_NM="$tmp_nm -p"
6174 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6175 continue # so that we can try to find one that supports BSD flags
6184 : ${lt_cv_path_NM=no}
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6188 printf "%s\n" "$lt_cv_path_NM" >&6; }
6189 if test no != "$lt_cv_path_NM"; then
6192 # Didn't find any BSD compatible name lister, look for dumpbin.
6193 if test -n "$DUMPBIN"; then :
6194 # Let the user override the test.
6196 if test -n "$ac_tool_prefix"; then
6197 for ac_prog in dumpbin "link -dump"
6199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 printf %s "checking for $ac_word... " >&6; }
6203 if test ${ac_cv_prog_DUMPBIN+y}
6205 printf %s "(cached) " >&6
6207 if test -n "$DUMPBIN"; then
6208 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 case $as_dir in #(((
6217 *) as_dir=$as_dir/ ;;
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6221 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6231 DUMPBIN=$ac_cv_prog_DUMPBIN
6232 if test -n "$DUMPBIN"; then
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6234 printf "%s\n" "$DUMPBIN" >&6; }
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 printf "%s\n" "no" >&6; }
6241 test -n "$DUMPBIN" && break
6244 if test -z "$DUMPBIN"; then
6245 ac_ct_DUMPBIN=$DUMPBIN
6246 for ac_prog in dumpbin "link -dump"
6248 # Extract the first word of "$ac_prog", so it can be a program name with args.
6249 set dummy $ac_prog; ac_word=$2
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 printf %s "checking for $ac_word... " >&6; }
6252 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6254 printf %s "(cached) " >&6
6256 if test -n "$ac_ct_DUMPBIN"; then
6257 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 case $as_dir in #(((
6266 *) as_dir=$as_dir/ ;;
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6280 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6281 if test -n "$ac_ct_DUMPBIN"; then
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6283 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 printf "%s\n" "no" >&6; }
6290 test -n "$ac_ct_DUMPBIN" && break
6293 if test "x$ac_ct_DUMPBIN" = x; then
6296 case $cross_compiling:$ac_tool_warned in
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6302 DUMPBIN=$ac_ct_DUMPBIN
6306 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6308 DUMPBIN="$DUMPBIN -symbols -headers"
6316 if test : != "$DUMPBIN"; then
6320 test -z "$NM" && NM=nm
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6328 printf %s "checking the name lister ($NM) interface... " >&6; }
6329 if test ${lt_cv_nm_interface+y}
6331 printf %s "(cached) " >&6
6333 lt_cv_nm_interface="BSD nm"
6334 echo "int some_variable = 0;" > conftest.$ac_ext
6335 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6336 (eval "$ac_compile" 2>conftest.err)
6337 cat conftest.err >&5
6338 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6339 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6340 cat conftest.err >&5
6341 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6342 cat conftest.out >&5
6343 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6344 lt_cv_nm_interface="MS dumpbin"
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6349 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6352 printf %s "checking whether ln -s works... " >&6; }
6354 if test "$LN_S" = "ln -s"; then
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6356 printf "%s\n" "yes" >&6; }
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6359 printf "%s\n" "no, using $LN_S" >&6; }
6362 # find the maximum length of command line arguments
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6364 printf %s "checking the maximum length of command line arguments... " >&6; }
6365 if test ${lt_cv_sys_max_cmd_len+y}
6367 printf %s "(cached) " >&6
6374 # On DJGPP, this test can blow up pretty badly due to problems in libc
6375 # (any single argument exceeding 2000 bytes causes a buffer overrun
6376 # during glob expansion). Even if it were fixed, the result of this
6377 # check would be larger than it should be.
6378 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6382 # Under GNU Hurd, this test is not required because there is
6383 # no limit to the length of command line arguments.
6384 # Libtool will interpret -1 as no limit whatsoever
6385 lt_cv_sys_max_cmd_len=-1;
6388 cygwin* | mingw* | cegcc*)
6389 # On Win9x/ME, this test blows up -- it succeeds, but takes
6390 # about 5 minutes as the teststring grows exponentially.
6391 # Worse, since 9x/ME are not pre-emptively multitasking,
6392 # you end up with a "frozen" computer, even though with patience
6393 # the test eventually succeeds (with a max line length of 256k).
6394 # Instead, let's just punt: use the minimum linelength reported by
6395 # all of the supported platforms: 8192 (on NT/2K/XP).
6396 lt_cv_sys_max_cmd_len=8192;
6400 # On MiNT this can take a long time and run out of memory.
6401 lt_cv_sys_max_cmd_len=8192;
6405 # On AmigaOS with pdksh, this test takes hours, literally.
6406 # So we just punt and use a minimum line length of 8192.
6407 lt_cv_sys_max_cmd_len=8192;
6410 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6411 # This has been around since 386BSD, at least. Likely further.
6412 if test -x /sbin/sysctl; then
6413 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6414 elif test -x /usr/sbin/sysctl; then
6415 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6417 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6419 # And add a safety zone
6420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6425 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6426 lt_cv_sys_max_cmd_len=196608
6430 # The test takes a long time on OS/2.
6431 lt_cv_sys_max_cmd_len=8192
6435 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6436 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6437 # nice to cause kernel panics so lets avoid the loop below.
6438 # First set a reasonable default.
6439 lt_cv_sys_max_cmd_len=16384
6441 if test -x /sbin/sysconfig; then
6442 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6443 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6448 lt_cv_sys_max_cmd_len=102400
6450 sysv5* | sco5v6* | sysv4.2uw2*)
6451 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6452 if test -n "$kargmax"; then
6453 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6455 lt_cv_sys_max_cmd_len=32768
6459 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6460 if test -n "$lt_cv_sys_max_cmd_len" && \
6461 test undefined != "$lt_cv_sys_max_cmd_len"; then
6462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6465 # Make teststring a little bigger before we do anything with it.
6466 # a 1K string should be a reasonable start.
6467 for i in 1 2 3 4 5 6 7 8; do
6468 teststring=$teststring$teststring
6470 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6471 # If test is not a shell built-in, we'll probably end up computing a
6472 # maximum length that is only half of the actual maximum length, but
6474 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6475 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6476 test 17 != "$i" # 1/2 MB should be enough
6479 teststring=$teststring$teststring
6481 # Only check the string length outside the loop.
6482 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6484 # Add a significant safety factor because C++ compilers can tack on
6485 # massive amounts of additional arguments before passing them to the
6486 # linker. It appears as though 1/2 is a usable value.
6487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6494 if test -n "$lt_cv_sys_max_cmd_len"; then
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6496 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6499 printf "%s\n" "none" >&6; }
6501 max_cmd_len=$lt_cv_sys_max_cmd_len
6512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6522 # test EBCDIC or ASCII
6523 case `echo X|tr X '\101'` in
6524 A) # ASCII based system
6525 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6526 lt_SP2NL='tr \040 \012'
6527 lt_NL2SP='tr \015\012 \040\040'
6529 *) # EBCDIC based system
6530 lt_SP2NL='tr \100 \n'
6531 lt_NL2SP='tr \r\n \100\100'
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6544 printf %s "checking how to convert $build file names to $host format... " >&6; }
6545 if test ${lt_cv_to_host_file_cmd+y}
6547 printf %s "(cached) " >&6
6552 *-*-mingw* ) # actually msys
6553 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6556 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6558 * ) # otherwise, assume *nix
6559 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6565 *-*-mingw* ) # actually msys
6566 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6569 lt_cv_to_host_file_cmd=func_convert_file_noop
6571 * ) # otherwise, assume *nix
6572 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6576 * ) # unhandled hosts (and "normal" native builds)
6577 lt_cv_to_host_file_cmd=func_convert_file_noop
6583 to_host_file_cmd=$lt_cv_to_host_file_cmd
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6585 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6592 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6593 if test ${lt_cv_to_tool_file_cmd+y}
6595 printf %s "(cached) " >&6
6597 #assume ordinary cross tools, or native build.
6598 lt_cv_to_tool_file_cmd=func_convert_file_noop
6602 *-*-mingw* ) # actually msys
6603 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6611 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6613 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6620 printf %s "checking for $LD option to reload object files... " >&6; }
6621 if test ${lt_cv_ld_reload_flag+y}
6623 printf %s "(cached) " >&6
6625 lt_cv_ld_reload_flag='-r'
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6628 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6629 reload_flag=$lt_cv_ld_reload_flag
6630 case $reload_flag in
6632 *) reload_flag=" $reload_flag" ;;
6634 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6636 cygwin* | mingw* | pw32* | cegcc*)
6637 if test yes != "$GCC"; then
6642 if test yes = "$GCC"; then
6643 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6645 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 printf %s "checking for $ac_word... " >&6; }
6663 if test ${ac_cv_prog_OBJDUMP+y}
6665 printf %s "(cached) " >&6
6667 if test -n "$OBJDUMP"; then
6668 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 case $as_dir in #(((
6677 *) as_dir=$as_dir/ ;;
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6691 OBJDUMP=$ac_cv_prog_OBJDUMP
6692 if test -n "$OBJDUMP"; then
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6694 printf "%s\n" "$OBJDUMP" >&6; }
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 printf "%s\n" "no" >&6; }
6702 if test -z "$ac_cv_prog_OBJDUMP"; then
6703 ac_ct_OBJDUMP=$OBJDUMP
6704 # Extract the first word of "objdump", so it can be a program name with args.
6705 set dummy objdump; ac_word=$2
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 printf %s "checking for $ac_word... " >&6; }
6708 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6710 printf %s "(cached) " >&6
6712 if test -n "$ac_ct_OBJDUMP"; then
6713 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 case $as_dir in #(((
6722 *) as_dir=$as_dir/ ;;
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6736 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6737 if test -n "$ac_ct_OBJDUMP"; then
6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6739 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 printf "%s\n" "no" >&6; }
6745 if test "x$ac_ct_OBJDUMP" = x; then
6748 case $cross_compiling:$ac_tool_warned in
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752 ac_tool_warned=yes ;;
6754 OBJDUMP=$ac_ct_OBJDUMP
6757 OBJDUMP="$ac_cv_prog_OBJDUMP"
6760 test -z "$OBJDUMP" && OBJDUMP=objdump
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6771 printf %s "checking how to recognize dependent libraries... " >&6; }
6772 if test ${lt_cv_deplibs_check_method+y}
6774 printf %s "(cached) " >&6
6776 lt_cv_file_magic_cmd='$MAGIC_CMD'
6777 lt_cv_file_magic_test_file=
6778 lt_cv_deplibs_check_method='unknown'
6779 # Need to set the preceding variable on all platforms that support
6780 # interlibrary dependencies.
6781 # 'none' -- dependencies not supported.
6782 # 'unknown' -- same as none, but documents that we really don't know.
6783 # 'pass_all' -- all dependencies passed with no checks.
6784 # 'test_compile' -- check by making test program.
6785 # 'file_magic [[regex]]' -- check by looking for files in library path
6786 # that responds to the $file_magic_cmd with a given extended regex.
6787 # If you have 'file' or equivalent on your system and you're not sure
6788 # whether 'pass_all' will *always* work, you probably want this one.
6792 lt_cv_deplibs_check_method=pass_all
6796 lt_cv_deplibs_check_method=pass_all
6800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6801 lt_cv_file_magic_cmd='/usr/bin/file -L'
6802 lt_cv_file_magic_test_file=/shlib/libc.so
6806 # func_win32_libid is a shell function defined in ltmain.sh
6807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6808 lt_cv_file_magic_cmd='func_win32_libid'
6812 # Base MSYS/MinGW do not provide the 'file' command needed by
6813 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6814 # unless we find 'file', for example because we are cross-compiling.
6815 if ( file / ) >/dev/null 2>&1; then
6816 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6817 lt_cv_file_magic_cmd='func_win32_libid'
6819 # Keep this pattern in sync with the one in func_win32_libid.
6820 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6821 lt_cv_file_magic_cmd='$OBJDUMP -f'
6826 # use the weaker test based on 'objdump'. See mingw*.
6827 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6828 lt_cv_file_magic_cmd='$OBJDUMP -f'
6831 darwin* | rhapsody*)
6832 lt_cv_deplibs_check_method=pass_all
6835 freebsd* | dragonfly*)
6836 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6839 # Not sure whether the presence of OpenBSD here was a mistake.
6840 # Let's accept both of them until this is cleared up.
6841 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6842 lt_cv_file_magic_cmd=/usr/bin/file
6843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6847 lt_cv_deplibs_check_method=pass_all
6852 lt_cv_deplibs_check_method=pass_all
6855 hpux10.20* | hpux11*)
6856 lt_cv_file_magic_cmd=/usr/bin/file
6859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6860 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6863 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]'
6864 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6868 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6874 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6878 irix5* | irix6* | nonstopux*)
6880 *-32|*"-32 ") libmagic=32-bit;;
6881 *-n32|*"-n32 ") libmagic=N32;;
6882 *-64|*"-64 ") libmagic=64-bit;;
6883 *) libmagic=never-match;;
6885 lt_cv_deplibs_check_method=pass_all
6888 # This must be glibc/ELF.
6889 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6890 lt_cv_deplibs_check_method=pass_all
6893 netbsd* | netbsdelf*-gnu)
6894 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6903 lt_cv_file_magic_cmd=/usr/bin/file
6904 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6908 lt_cv_deplibs_check_method=pass_all
6912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6919 osf3* | osf4* | osf5*)
6920 lt_cv_deplibs_check_method=pass_all
6924 lt_cv_deplibs_check_method=pass_all
6928 lt_cv_deplibs_check_method=pass_all
6931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6932 lt_cv_deplibs_check_method=pass_all
6936 case $host_vendor in
6938 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]'
6939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6942 lt_cv_deplibs_check_method=pass_all
6945 lt_cv_file_magic_cmd='/bin/file'
6946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6949 lt_cv_file_magic_cmd='/bin/file'
6950 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6951 lt_cv_file_magic_test_file=/lib/libc.so
6954 lt_cv_deplibs_check_method=pass_all
6957 lt_cv_deplibs_check_method=pass_all
6963 lt_cv_deplibs_check_method=pass_all
6966 lt_cv_deplibs_check_method=pass_all
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6972 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6976 if test "$build" = "$host"; then
6979 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6982 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6988 file_magic_cmd=$lt_cv_file_magic_cmd
6989 deplibs_check_method=$lt_cv_deplibs_check_method
6990 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 printf %s "checking for $ac_word... " >&6; }
7018 if test ${ac_cv_prog_DLLTOOL+y}
7020 printf %s "(cached) " >&6
7022 if test -n "$DLLTOOL"; then
7023 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 case $as_dir in #(((
7032 *) as_dir=$as_dir/ ;;
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7046 DLLTOOL=$ac_cv_prog_DLLTOOL
7047 if test -n "$DLLTOOL"; then
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7049 printf "%s\n" "$DLLTOOL" >&6; }
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 printf "%s\n" "no" >&6; }
7057 if test -z "$ac_cv_prog_DLLTOOL"; then
7058 ac_ct_DLLTOOL=$DLLTOOL
7059 # Extract the first word of "dlltool", so it can be a program name with args.
7060 set dummy dlltool; ac_word=$2
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 printf %s "checking for $ac_word... " >&6; }
7063 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7065 printf %s "(cached) " >&6
7067 if test -n "$ac_ct_DLLTOOL"; then
7068 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 case $as_dir in #(((
7077 *) as_dir=$as_dir/ ;;
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7091 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7092 if test -n "$ac_ct_DLLTOOL"; then
7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7094 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 printf "%s\n" "no" >&6; }
7100 if test "x$ac_ct_DLLTOOL" = x; then
7103 case $cross_compiling:$ac_tool_warned in
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7109 DLLTOOL=$ac_ct_DLLTOOL
7112 DLLTOOL="$ac_cv_prog_DLLTOOL"
7115 test -z "$DLLTOOL" && DLLTOOL=dlltool
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7127 printf %s "checking how to associate runtime and link libraries... " >&6; }
7128 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7130 printf %s "(cached) " >&6
7132 lt_cv_sharedlib_from_linklib_cmd='unknown'
7135 cygwin* | mingw* | pw32* | cegcc*)
7136 # two different shell functions defined in ltmain.sh;
7137 # decide which one to use based on capabilities of $DLLTOOL
7138 case `$DLLTOOL --help 2>&1` in
7139 *--identify-strict*)
7140 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7143 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7148 # fallback: assume linklib IS sharedlib
7149 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7155 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7156 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7157 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7166 if test -n "$ac_tool_prefix"; then
7169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 printf %s "checking for $ac_word... " >&6; }
7173 if test ${ac_cv_prog_AR+y}
7175 printf %s "(cached) " >&6
7177 if test -n "$AR"; then
7178 ac_cv_prog_AR="$AR" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 case $as_dir in #(((
7187 *) as_dir=$as_dir/ ;;
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7202 if test -n "$AR"; then
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7204 printf "%s\n" "$AR" >&6; }
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 printf "%s\n" "no" >&6; }
7211 test -n "$AR" && break
7214 if test -z "$AR"; then
7218 # Extract the first word of "$ac_prog", so it can be a program name with args.
7219 set dummy $ac_prog; ac_word=$2
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 printf %s "checking for $ac_word... " >&6; }
7222 if test ${ac_cv_prog_ac_ct_AR+y}
7224 printf %s "(cached) " >&6
7226 if test -n "$ac_ct_AR"; then
7227 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 case $as_dir in #(((
7236 *) as_dir=$as_dir/ ;;
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_ac_ct_AR="$ac_prog"
7241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7251 if test -n "$ac_ct_AR"; then
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7253 printf "%s\n" "$ac_ct_AR" >&6; }
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 printf "%s\n" "no" >&6; }
7260 test -n "$ac_ct_AR" && break
7263 if test "x$ac_ct_AR" = x; then
7266 case $cross_compiling:$ac_tool_warned in
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7290 printf %s "checking for archiver @FILE support... " >&6; }
7291 if test ${lt_cv_ar_at_file+y}
7293 printf %s "(cached) " >&6
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7307 if ac_fn_c_try_compile "$LINENO"
7309 echo conftest.$ac_objext > conftest.lst
7310 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7312 (eval $lt_ar_try) 2>&5
7314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315 test $ac_status = 0; }
7316 if test 0 -eq "$ac_status"; then
7317 # Ensure the archiver fails upon bogus file names.
7318 rm -f conftest.$ac_objext libconftest.a
7319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7320 (eval $lt_ar_try) 2>&5
7322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7323 test $ac_status = 0; }
7324 if test 0 -ne "$ac_status"; then
7328 rm -f conftest.* libconftest.a
7331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7335 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7337 if test no = "$lt_cv_ar_at_file"; then
7340 archiver_list_spec=$lt_cv_ar_at_file
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}strip; ac_word=$2
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 printf %s "checking for $ac_word... " >&6; }
7354 if test ${ac_cv_prog_STRIP+y}
7356 printf %s "(cached) " >&6
7358 if test -n "$STRIP"; then
7359 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 case $as_dir in #(((
7368 *) as_dir=$as_dir/ ;;
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7382 STRIP=$ac_cv_prog_STRIP
7383 if test -n "$STRIP"; then
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7385 printf "%s\n" "$STRIP" >&6; }
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 printf "%s\n" "no" >&6; }
7393 if test -z "$ac_cv_prog_STRIP"; then
7395 # Extract the first word of "strip", so it can be a program name with args.
7396 set dummy strip; ac_word=$2
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 printf %s "checking for $ac_word... " >&6; }
7399 if test ${ac_cv_prog_ac_ct_STRIP+y}
7401 printf %s "(cached) " >&6
7403 if test -n "$ac_ct_STRIP"; then
7404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 case $as_dir in #(((
7413 *) as_dir=$as_dir/ ;;
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_ac_ct_STRIP="strip"
7418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7428 if test -n "$ac_ct_STRIP"; then
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7430 printf "%s\n" "$ac_ct_STRIP" >&6; }
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 printf "%s\n" "no" >&6; }
7436 if test "x$ac_ct_STRIP" = x; then
7439 case $cross_compiling:$ac_tool_warned in
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7443 ac_tool_warned=yes ;;
7448 STRIP="$ac_cv_prog_STRIP"
7451 test -z "$STRIP" && STRIP=:
7458 if test -n "$ac_tool_prefix"; then
7459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 printf %s "checking for $ac_word... " >&6; }
7463 if test ${ac_cv_prog_RANLIB+y}
7465 printf %s "(cached) " >&6
7467 if test -n "$RANLIB"; then
7468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 case $as_dir in #(((
7477 *) as_dir=$as_dir/ ;;
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7491 RANLIB=$ac_cv_prog_RANLIB
7492 if test -n "$RANLIB"; then
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7494 printf "%s\n" "$RANLIB" >&6; }
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 printf "%s\n" "no" >&6; }
7502 if test -z "$ac_cv_prog_RANLIB"; then
7503 ac_ct_RANLIB=$RANLIB
7504 # Extract the first word of "ranlib", so it can be a program name with args.
7505 set dummy ranlib; ac_word=$2
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 printf %s "checking for $ac_word... " >&6; }
7508 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7510 printf %s "(cached) " >&6
7512 if test -n "$ac_ct_RANLIB"; then
7513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 case $as_dir in #(((
7522 *) as_dir=$as_dir/ ;;
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_ac_ct_RANLIB="ranlib"
7527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7537 if test -n "$ac_ct_RANLIB"; then
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7539 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 printf "%s\n" "no" >&6; }
7545 if test "x$ac_ct_RANLIB" = x; then
7548 case $cross_compiling:$ac_tool_warned in
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552 ac_tool_warned=yes ;;
7554 RANLIB=$ac_ct_RANLIB
7557 RANLIB="$ac_cv_prog_RANLIB"
7560 test -z "$RANLIB" && RANLIB=:
7567 # Determine commands to create old-style static archives.
7568 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7569 old_postinstall_cmds='chmod 644 $oldlib'
7570 old_postuninstall_cmds=
7572 if test -n "$RANLIB"; then
7575 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7578 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7581 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7586 lock_old_archive_extraction=yes ;;
7588 lock_old_archive_extraction=no ;;
7629 # If no C compiler was specified, use CC.
7632 # If no C compiler flags were specified, use CFLAGS.
7633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7635 # Allow CC to be a program name with arguments.
7639 # Check for command to grab the raw symbol name followed by C symbol from nm.
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7641 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7642 if test ${lt_cv_sys_global_symbol_pipe+y}
7644 printf %s "(cached) " >&6
7647 # These are sane defaults that work on at least a few old systems.
7648 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7650 # Character class describing NM global symbol codes.
7651 symcode='[BCDEGRST]'
7653 # Regexp to match symbols that can be accessed directly from C.
7654 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7656 # Define system-specific variables.
7661 cygwin* | mingw* | pw32* | cegcc*)
7662 symcode='[ABCDGISTW]'
7665 if test ia64 = "$host_cpu"; then
7666 symcode='[ABCDEGRST]'
7670 symcode='[BCDEGRST]'
7673 symcode='[BCDEGQRST]'
7684 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7692 # If we're using GNU nm, then use its standard symbol codes.
7693 case `$NM -V 2>&1` in
7694 *GNU* | *'with BFD'*)
7695 symcode='[ABCDGIRSTW]' ;;
7698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7699 # Gets list of data symbols to import.
7700 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7701 # Adjust the below global symbol transforms to fixup imported variables.
7702 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7703 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7704 lt_c_name_lib_hook="\
7705 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7706 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7708 # Disable hooks by default.
7709 lt_cv_sys_global_symbol_to_import=
7715 # Transform an extracted symbol line into a proper C declaration.
7716 # Some systems (esp. on ia64) link data and code symbols differently,
7717 # so use this general approach.
7718 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7720 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7721 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7723 # Transform an extracted symbol line into symbol name and symbol address
7724 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7726 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7727 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7729 # Transform an extracted symbol line into symbol name with lib prefix and
7731 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7732 $lt_c_name_lib_hook\
7733 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7734 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7735 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7737 # Handle CRLF in mingw tool chain
7741 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7745 # Try without a prefix underscore, then with it.
7746 for ac_symprfx in "" "_"; do
7748 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7749 symxfrm="\\1 $ac_symprfx\\2 \\2"
7751 # Write the raw and C identifiers.
7752 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7753 # Fake it for dumpbin and say T for any non-static function,
7754 # D for any global variable and I for any imported variable.
7755 # Also find C++ and __fastcall symbols from MSVC++,
7756 # which start with @ or ?.
7757 lt_cv_sys_global_symbol_pipe="$AWK '"\
7758 " {last_section=section; section=\$ 3};"\
7759 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7760 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7761 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7762 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7763 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7764 " \$ 0!~/External *\|/{next};"\
7765 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7766 " {if(hide[section]) next};"\
7767 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7768 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7769 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7770 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7771 " ' prfx=^$ac_symprfx"
7773 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7775 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7777 # Check to see that the pipe works correctly.
7781 cat > conftest.$ac_ext <<_LT_EOF
7786 void nm_test_func(void);
7787 void nm_test_func(void){}
7791 int main(){nm_test_var='a';nm_test_func();return(0);}
7794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7795 (eval $ac_compile) 2>&5
7797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798 test $ac_status = 0; }; then
7799 # Now try to grab the symbols.
7801 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7802 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7803 # Try sorting and uniquifying the output.
7804 if sort "$nlist" | uniq > "$nlist"T; then
7805 mv -f "$nlist"T "$nlist"
7810 # Make sure that we snagged all the symbols we need.
7811 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7812 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7813 cat <<_LT_EOF > conftest.$ac_ext
7814 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7815 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7816 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7817 relocations are performed -- see ld's documentation on pseudo-relocs. */
7818 # define LT_DLSYM_CONST
7819 #elif defined __osf__
7820 /* This system does not cope well with relocations in const data. */
7821 # define LT_DLSYM_CONST
7823 # define LT_DLSYM_CONST const
7831 # Now generate the symbol file.
7832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7834 cat <<_LT_EOF >> conftest.$ac_ext
7836 /* The mapping between symbol names and symbols. */
7837 LT_DLSYM_CONST struct {
7841 lt__PROGRAM__LTX_preloaded_symbols[] =
7843 { "@PROGRAM@", (void *) 0 },
7845 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7846 cat <<\_LT_EOF >> conftest.$ac_ext
7850 /* This works around a problem in FreeBSD linker */
7851 #ifdef FREEBSD_WORKAROUND
7852 static const void *lt_preloaded_setup() {
7853 return lt__PROGRAM__LTX_preloaded_symbols;
7861 # Now try linking the two files.
7862 mv conftest.$ac_objext conftstm.$ac_objext
7863 lt_globsym_save_LIBS=$LIBS
7864 lt_globsym_save_CFLAGS=$CFLAGS
7865 LIBS=conftstm.$ac_objext
7866 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7868 (eval $ac_link) 2>&5
7870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7874 LIBS=$lt_globsym_save_LIBS
7875 CFLAGS=$lt_globsym_save_CFLAGS
7877 echo "cannot find nm_test_func in $nlist" >&5
7880 echo "cannot find nm_test_var in $nlist" >&5
7883 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7886 echo "$progname: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7889 rm -rf conftest* conftst*
7891 # Do not use the global_symbol_pipe unless it works.
7892 if test yes = "$pipe_works"; then
7895 lt_cv_sys_global_symbol_pipe=
7901 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7902 lt_cv_sys_global_symbol_to_cdecl=
7904 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7906 printf "%s\n" "failed" >&6; }
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7909 printf "%s\n" "ok" >&6; }
7912 # Response file support.
7913 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7914 nm_file_list_spec='@'
7915 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7916 nm_file_list_spec='@'
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7956 printf %s "checking for sysroot... " >&6; }
7958 # Check whether --with-sysroot was given.
7959 if test ${with_sysroot+y}
7961 withval=$with_sysroot;
7968 case $with_sysroot in #(
7970 if test yes = "$GCC"; then
7971 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7975 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7981 printf "%s\n" "$with_sysroot" >&6; }
7982 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7987 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7994 printf %s "checking for a working dd... " >&6; }
7995 if test ${ac_cv_path_lt_DD+y}
7997 printf %s "(cached) " >&6
7999 printf 0123456789abcdef0123456789abcdef >conftest.i
8000 cat conftest.i conftest.i >conftest2.i
8002 if test -z "$lt_DD"; then
8003 ac_path_lt_DD_found=false
8004 # Loop through the user's path and test for each of PROGNAME-LIST
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 case $as_dir in #(((
8012 *) as_dir=$as_dir/ ;;
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8018 as_fn_executable_p "$ac_path_lt_DD" || continue
8019 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8020 cmp -s conftest.i conftest.out \
8021 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8023 $ac_path_lt_DD_found && break 3
8028 if test -z "$ac_cv_path_lt_DD"; then
8032 ac_cv_path_lt_DD=$lt_DD
8035 rm -f conftest.i conftest2.i conftest.out
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8038 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8042 printf %s "checking how to truncate binary pipes... " >&6; }
8043 if test ${lt_cv_truncate_bin+y}
8045 printf %s "(cached) " >&6
8047 printf 0123456789abcdef0123456789abcdef >conftest.i
8048 cat conftest.i conftest.i >conftest2.i
8050 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8051 cmp -s conftest.i conftest.out \
8052 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8054 rm -f conftest.i conftest2.i conftest.out
8055 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8058 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8066 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8069 for cc_temp in $*""; do
8071 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8072 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8077 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8080 # Check whether --enable-libtool-lock was given.
8081 if test ${enable_libtool_lock+y}
8083 enableval=$enable_libtool_lock;
8086 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8088 # Some flags need to be propagated to the compiler or linker for good
8092 # Find out what ABI is being produced by ac_compile, and set mode
8093 # options accordingly.
8094 echo 'int i;' > conftest.$ac_ext
8095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8096 (eval $ac_compile) 2>&5
8098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8099 test $ac_status = 0; }; then
8100 case `/usr/bin/file conftest.$ac_objext` in
8112 # Find out what ABI is being produced by ac_compile, and set linker
8113 # options accordingly.
8114 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8116 (eval $ac_compile) 2>&5
8118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119 test $ac_status = 0; }; then
8120 if test yes = "$lt_cv_prog_gnu_ld"; then
8121 case `/usr/bin/file conftest.$ac_objext` in
8123 LD="${LD-ld} -melf32bsmip"
8126 LD="${LD-ld} -melf32bmipn32"
8129 LD="${LD-ld} -melf64bmip"
8133 case `/usr/bin/file conftest.$ac_objext` in
8150 # Find out what ABI is being produced by ac_compile, and set linker
8151 # options accordingly.
8152 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8154 (eval $ac_compile) 2>&5
8156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8157 test $ac_status = 0; }; then
8159 case `/usr/bin/file conftest.$ac_objext` in
8167 case `/usr/bin/file conftest.$ac_objext` in
8169 emul="${emul}btsmip"
8172 emul="${emul}ltsmip"
8175 case `/usr/bin/file conftest.$ac_objext` in
8180 LD="${LD-ld} -m $emul"
8185 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8186 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8187 # Find out what ABI is being produced by ac_compile, and set linker
8188 # options accordingly. Note that the listed cases only cover the
8189 # situations where additional linker options are needed (such as when
8190 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8191 # vice versa); the common cases where no linker options are needed do
8192 # not appear in the list.
8193 echo 'int i;' > conftest.$ac_ext
8194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8195 (eval $ac_compile) 2>&5
8197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198 test $ac_status = 0; }; then
8199 case `/usr/bin/file conftest.o` in
8202 x86_64-*kfreebsd*-gnu)
8203 LD="${LD-ld} -m elf_i386_fbsd"
8206 case `/usr/bin/file conftest.o` in
8208 LD="${LD-ld} -m elf32_x86_64"
8211 LD="${LD-ld} -m elf_i386"
8215 powerpc64le-*linux*)
8216 LD="${LD-ld} -m elf32lppclinux"
8219 LD="${LD-ld} -m elf32ppclinux"
8222 LD="${LD-ld} -m elf_s390"
8225 LD="${LD-ld} -m elf32_sparc"
8231 x86_64-*kfreebsd*-gnu)
8232 LD="${LD-ld} -m elf_x86_64_fbsd"
8235 LD="${LD-ld} -m elf_x86_64"
8238 LD="${LD-ld} -m elf64lppc"
8241 LD="${LD-ld} -m elf64ppc"
8243 s390*-*linux*|s390*-*tpf*)
8244 LD="${LD-ld} -m elf64_s390"
8247 LD="${LD-ld} -m elf64_sparc"
8257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8259 CFLAGS="$CFLAGS -belf"
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261 printf %s "checking whether the C compiler needs -belf... " >&6; }
8262 if test ${lt_cv_cc_needs_belf+y}
8264 printf %s "(cached) " >&6
8267 ac_cpp='$CPP $CPPFLAGS'
8268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8283 if ac_fn_c_try_link "$LINENO"
8285 lt_cv_cc_needs_belf=yes
8287 lt_cv_cc_needs_belf=no
8289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8290 conftest$ac_exeext conftest.$ac_ext
8292 ac_cpp='$CPP $CPPFLAGS'
8293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8299 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8300 if test yes != "$lt_cv_cc_needs_belf"; then
8301 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8306 # Find out what ABI is being produced by ac_compile, and set linker
8307 # options accordingly.
8308 echo 'int i;' > conftest.$ac_ext
8309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8310 (eval $ac_compile) 2>&5
8312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8313 test $ac_status = 0; }; then
8314 case `/usr/bin/file conftest.o` in
8316 case $lt_cv_prog_gnu_ld in
8319 i?86-*-solaris*|x86_64-*-solaris*)
8320 LD="${LD-ld} -m elf_x86_64"
8323 LD="${LD-ld} -m elf64_sparc"
8326 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8327 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8332 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8344 need_locks=$enable_libtool_lock
8346 if test -n "$ac_tool_prefix"; then
8347 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8348 set dummy ${ac_tool_prefix}mt; ac_word=$2
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 printf %s "checking for $ac_word... " >&6; }
8351 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8353 printf %s "(cached) " >&6
8355 if test -n "$MANIFEST_TOOL"; then
8356 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 case $as_dir in #(((
8365 *) as_dir=$as_dir/ ;;
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8379 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8380 if test -n "$MANIFEST_TOOL"; then
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8382 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 printf "%s\n" "no" >&6; }
8390 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8391 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8392 # Extract the first word of "mt", so it can be a program name with args.
8393 set dummy mt; ac_word=$2
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 printf %s "checking for $ac_word... " >&6; }
8396 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8398 printf %s "(cached) " >&6
8400 if test -n "$ac_ct_MANIFEST_TOOL"; then
8401 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 case $as_dir in #(((
8410 *) as_dir=$as_dir/ ;;
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8424 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8425 if test -n "$ac_ct_MANIFEST_TOOL"; then
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8427 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 printf "%s\n" "no" >&6; }
8433 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8436 case $cross_compiling:$ac_tool_warned in
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8439 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8440 ac_tool_warned=yes ;;
8442 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8445 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8448 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8450 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8451 if test ${lt_cv_path_mainfest_tool+y}
8453 printf %s "(cached) " >&6
8455 lt_cv_path_mainfest_tool=no
8456 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8457 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8458 cat conftest.err >&5
8459 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8460 lt_cv_path_mainfest_tool=yes
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8465 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8466 if test yes != "$lt_cv_path_mainfest_tool"; then
8476 rhapsody* | darwin*)
8477 if test -n "$ac_tool_prefix"; then
8478 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 printf %s "checking for $ac_word... " >&6; }
8482 if test ${ac_cv_prog_DSYMUTIL+y}
8484 printf %s "(cached) " >&6
8486 if test -n "$DSYMUTIL"; then
8487 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 case $as_dir in #(((
8496 *) as_dir=$as_dir/ ;;
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8510 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8511 if test -n "$DSYMUTIL"; then
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8513 printf "%s\n" "$DSYMUTIL" >&6; }
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 printf "%s\n" "no" >&6; }
8521 if test -z "$ac_cv_prog_DSYMUTIL"; then
8522 ac_ct_DSYMUTIL=$DSYMUTIL
8523 # Extract the first word of "dsymutil", so it can be a program name with args.
8524 set dummy dsymutil; ac_word=$2
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 printf %s "checking for $ac_word... " >&6; }
8527 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8529 printf %s "(cached) " >&6
8531 if test -n "$ac_ct_DSYMUTIL"; then
8532 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 case $as_dir in #(((
8541 *) as_dir=$as_dir/ ;;
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8555 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8556 if test -n "$ac_ct_DSYMUTIL"; then
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8558 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8564 if test "x$ac_ct_DSYMUTIL" = x; then
8567 case $cross_compiling:$ac_tool_warned in
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8571 ac_tool_warned=yes ;;
8573 DSYMUTIL=$ac_ct_DSYMUTIL
8576 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8579 if test -n "$ac_tool_prefix"; then
8580 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 printf %s "checking for $ac_word... " >&6; }
8584 if test ${ac_cv_prog_NMEDIT+y}
8586 printf %s "(cached) " >&6
8588 if test -n "$NMEDIT"; then
8589 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 case $as_dir in #(((
8598 *) as_dir=$as_dir/ ;;
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8612 NMEDIT=$ac_cv_prog_NMEDIT
8613 if test -n "$NMEDIT"; then
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8615 printf "%s\n" "$NMEDIT" >&6; }
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 printf "%s\n" "no" >&6; }
8623 if test -z "$ac_cv_prog_NMEDIT"; then
8624 ac_ct_NMEDIT=$NMEDIT
8625 # Extract the first word of "nmedit", so it can be a program name with args.
8626 set dummy nmedit; ac_word=$2
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 printf %s "checking for $ac_word... " >&6; }
8629 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8631 printf %s "(cached) " >&6
8633 if test -n "$ac_ct_NMEDIT"; then
8634 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 case $as_dir in #(((
8643 *) as_dir=$as_dir/ ;;
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8647 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8657 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8658 if test -n "$ac_ct_NMEDIT"; then
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8660 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 printf "%s\n" "no" >&6; }
8666 if test "x$ac_ct_NMEDIT" = x; then
8669 case $cross_compiling:$ac_tool_warned in
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8675 NMEDIT=$ac_ct_NMEDIT
8678 NMEDIT="$ac_cv_prog_NMEDIT"
8681 if test -n "$ac_tool_prefix"; then
8682 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 printf %s "checking for $ac_word... " >&6; }
8686 if test ${ac_cv_prog_LIPO+y}
8688 printf %s "(cached) " >&6
8690 if test -n "$LIPO"; then
8691 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 case $as_dir in #(((
8700 *) as_dir=$as_dir/ ;;
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8714 LIPO=$ac_cv_prog_LIPO
8715 if test -n "$LIPO"; then
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8717 printf "%s\n" "$LIPO" >&6; }
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 printf "%s\n" "no" >&6; }
8725 if test -z "$ac_cv_prog_LIPO"; then
8727 # Extract the first word of "lipo", so it can be a program name with args.
8728 set dummy lipo; ac_word=$2
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 printf %s "checking for $ac_word... " >&6; }
8731 if test ${ac_cv_prog_ac_ct_LIPO+y}
8733 printf %s "(cached) " >&6
8735 if test -n "$ac_ct_LIPO"; then
8736 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 case $as_dir in #(((
8745 *) as_dir=$as_dir/ ;;
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8749 ac_cv_prog_ac_ct_LIPO="lipo"
8750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8759 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8760 if test -n "$ac_ct_LIPO"; then
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8762 printf "%s\n" "$ac_ct_LIPO" >&6; }
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 printf "%s\n" "no" >&6; }
8768 if test "x$ac_ct_LIPO" = x; then
8771 case $cross_compiling:$ac_tool_warned in
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775 ac_tool_warned=yes ;;
8780 LIPO="$ac_cv_prog_LIPO"
8783 if test -n "$ac_tool_prefix"; then
8784 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8785 set dummy ${ac_tool_prefix}otool; ac_word=$2
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 printf %s "checking for $ac_word... " >&6; }
8788 if test ${ac_cv_prog_OTOOL+y}
8790 printf %s "(cached) " >&6
8792 if test -n "$OTOOL"; then
8793 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 case $as_dir in #(((
8802 *) as_dir=$as_dir/ ;;
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8806 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8816 OTOOL=$ac_cv_prog_OTOOL
8817 if test -n "$OTOOL"; then
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8819 printf "%s\n" "$OTOOL" >&6; }
8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 printf "%s\n" "no" >&6; }
8827 if test -z "$ac_cv_prog_OTOOL"; then
8829 # Extract the first word of "otool", so it can be a program name with args.
8830 set dummy otool; ac_word=$2
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 printf %s "checking for $ac_word... " >&6; }
8833 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8835 printf %s "(cached) " >&6
8837 if test -n "$ac_ct_OTOOL"; then
8838 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 case $as_dir in #(((
8847 *) as_dir=$as_dir/ ;;
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8851 ac_cv_prog_ac_ct_OTOOL="otool"
8852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8861 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8862 if test -n "$ac_ct_OTOOL"; then
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8864 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 printf "%s\n" "no" >&6; }
8870 if test "x$ac_ct_OTOOL" = x; then
8873 case $cross_compiling:$ac_tool_warned in
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8877 ac_tool_warned=yes ;;
8882 OTOOL="$ac_cv_prog_OTOOL"
8885 if test -n "$ac_tool_prefix"; then
8886 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8887 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8889 printf %s "checking for $ac_word... " >&6; }
8890 if test ${ac_cv_prog_OTOOL64+y}
8892 printf %s "(cached) " >&6
8894 if test -n "$OTOOL64"; then
8895 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 case $as_dir in #(((
8904 *) as_dir=$as_dir/ ;;
8906 for ac_exec_ext in '' $ac_executable_extensions; do
8907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8908 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8918 OTOOL64=$ac_cv_prog_OTOOL64
8919 if test -n "$OTOOL64"; then
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8921 printf "%s\n" "$OTOOL64" >&6; }
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 printf "%s\n" "no" >&6; }
8929 if test -z "$ac_cv_prog_OTOOL64"; then
8930 ac_ct_OTOOL64=$OTOOL64
8931 # Extract the first word of "otool64", so it can be a program name with args.
8932 set dummy otool64; ac_word=$2
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 printf %s "checking for $ac_word... " >&6; }
8935 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8937 printf %s "(cached) " >&6
8939 if test -n "$ac_ct_OTOOL64"; then
8940 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 case $as_dir in #(((
8949 *) as_dir=$as_dir/ ;;
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8953 ac_cv_prog_ac_ct_OTOOL64="otool64"
8954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8963 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8964 if test -n "$ac_ct_OTOOL64"; then
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8966 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 printf "%s\n" "no" >&6; }
8972 if test "x$ac_ct_OTOOL64" = x; then
8975 case $cross_compiling:$ac_tool_warned in
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8978 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8979 ac_tool_warned=yes ;;
8981 OTOOL64=$ac_ct_OTOOL64
8984 OTOOL64="$ac_cv_prog_OTOOL64"
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9014 printf %s "checking for -single_module linker flag... " >&6; }
9015 if test ${lt_cv_apple_cc_single_mod+y}
9017 printf %s "(cached) " >&6
9019 lt_cv_apple_cc_single_mod=no
9020 if test -z "$LT_MULTI_MODULE"; then
9021 # By default we will add the -single_module flag. You can override
9022 # by either setting the environment variable LT_MULTI_MODULE
9023 # non-empty at configure time, or by adding -multi_module to the
9025 rm -rf libconftest.dylib*
9026 echo "int foo(void){return 1;}" > conftest.c
9027 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9028 -dynamiclib -Wl,-single_module conftest.c" >&5
9029 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9030 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9032 # If there is a non-empty error log, and "single_module"
9033 # appears in it, assume the flag caused a linker warning
9034 if test -s conftest.err && $GREP single_module conftest.err; then
9035 cat conftest.err >&5
9036 # Otherwise, if the output was created with a 0 exit code from
9037 # the compiler, it worked.
9038 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9039 lt_cv_apple_cc_single_mod=yes
9041 cat conftest.err >&5
9043 rm -rf libconftest.dylib*
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9048 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9051 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9052 if test ${lt_cv_ld_exported_symbols_list+y}
9054 printf %s "(cached) " >&6
9056 lt_cv_ld_exported_symbols_list=no
9057 save_LDFLAGS=$LDFLAGS
9058 echo "_main" > conftest.sym
9059 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9071 if ac_fn_c_try_link "$LINENO"
9073 lt_cv_ld_exported_symbols_list=yes
9075 lt_cv_ld_exported_symbols_list=no
9077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9078 conftest$ac_exeext conftest.$ac_ext
9079 LDFLAGS=$save_LDFLAGS
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9083 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9086 printf %s "checking for -force_load linker flag... " >&6; }
9087 if test ${lt_cv_ld_force_load+y}
9089 printf %s "(cached) " >&6
9091 lt_cv_ld_force_load=no
9092 cat > conftest.c << _LT_EOF
9093 int forced_loaded() { return 2;}
9095 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9096 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9097 echo "$AR cr libconftest.a conftest.o" >&5
9098 $AR cr libconftest.a conftest.o 2>&5
9099 echo "$RANLIB libconftest.a" >&5
9100 $RANLIB libconftest.a 2>&5
9101 cat > conftest.c << _LT_EOF
9102 int main() { return 0;}
9104 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9105 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9107 if test -s conftest.err && $GREP force_load conftest.err; then
9108 cat conftest.err >&5
9109 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9110 lt_cv_ld_force_load=yes
9112 cat conftest.err >&5
9114 rm -f conftest.err libconftest.a conftest conftest.c
9115 rm -rf conftest.dSYM
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9119 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9121 rhapsody* | darwin1.[012])
9122 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9124 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9125 darwin*) # darwin 5.x on
9126 # if running on 10.5 or later, the deployment target defaults
9127 # to the OS version, if on x86, and 10.4, the deployment
9128 # target defaults to 10.4. Don't you love it?
9129 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9130 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9131 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9133 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9135 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9139 if test yes = "$lt_cv_apple_cc_single_mod"; then
9140 _lt_dar_single_mod='$single_module'
9142 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9143 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9145 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9147 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9148 _lt_dsymutil='~$DSYMUTIL $lib || :'
9155 # func_munge_path_list VARIABLE PATH
9156 # -----------------------------------
9157 # VARIABLE is name of variable containing _space_ separated list of
9158 # directories to be munged by the contents of PATH, which is string
9161 # string "DIR[ DIR]" will be prepended to VARIABLE
9163 # string "DIR[ DIR]" will be appended to VARIABLE
9164 # "DIRP[:DIRP]::[DIRA:]DIRA"
9165 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9166 # "DIRA[ DIRA]" will be appended to VARIABLE
9168 # VARIABLE will be replaced by "DIR[ DIR]"
9169 func_munge_path_list ()
9175 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9178 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9181 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9182 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9185 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9190 ac_header= ac_cache=
9191 for ac_item in $ac_header_c_list
9193 if test $ac_cache; then
9194 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9195 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9196 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9198 ac_header= ac_cache=
9199 elif test $ac_header; then
9213 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9216 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9219 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9221 if test "x$ac_cv_header_dlfcn_h" = xyes
9223 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9229 func_stripname_cnf ()
9232 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9233 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9235 } # func_stripname_cnf
9251 # Check whether --enable-shared was given.
9252 if test ${enable_shared+y}
9254 enableval=$enable_shared; p=${PACKAGE-default}
9256 yes) enable_shared=yes ;;
9257 no) enable_shared=no ;;
9260 # Look at the argument we got. We use all the common list separators.
9261 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9262 for pkg in $enableval; do
9264 if test "X$pkg" = "X$p"; then
9283 # Check whether --enable-static was given.
9284 if test ${enable_static+y}
9286 enableval=$enable_static; p=${PACKAGE-default}
9288 yes) enable_static=yes ;;
9289 no) enable_static=no ;;
9292 # Look at the argument we got. We use all the common list separators.
9293 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9294 for pkg in $enableval; do
9296 if test "X$pkg" = "X$p"; then
9316 # Check whether --with-pic was given.
9317 if test ${with_pic+y}
9319 withval=$with_pic; lt_p=${PACKAGE-default}
9321 yes|no) pic_mode=$withval ;;
9324 # Look at the argument we got. We use all the common list separators.
9325 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9326 for lt_pkg in $withval; do
9328 if test "X$lt_pkg" = "X$lt_p"; then
9346 # Check whether --enable-fast-install was given.
9347 if test ${enable_fast_install+y}
9349 enableval=$enable_fast_install; p=${PACKAGE-default}
9351 yes) enable_fast_install=yes ;;
9352 no) enable_fast_install=no ;;
9354 enable_fast_install=no
9355 # Look at the argument we got. We use all the common list separators.
9356 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9357 for pkg in $enableval; do
9359 if test "X$pkg" = "X$p"; then
9360 enable_fast_install=yes
9367 enable_fast_install=yes
9377 shared_archive_member_spec=
9378 case $host,$enable_shared in
9379 power*-*-aix[5-9]*,yes)
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9381 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9383 # Check whether --with-aix-soname was given.
9384 if test ${with_aix_soname+y}
9386 withval=$with_aix_soname; case $withval in
9390 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9393 lt_cv_with_aix_soname=$with_aix_soname
9395 if test ${lt_cv_with_aix_soname+y}
9397 printf %s "(cached) " >&6
9399 lt_cv_with_aix_soname=aix
9402 with_aix_soname=$lt_cv_with_aix_soname
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9406 printf "%s\n" "$with_aix_soname" >&6; }
9407 if test aix != "$with_aix_soname"; then
9408 # For the AIX way of multilib, we name the shared archive member
9409 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9410 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9411 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9412 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9413 if test 64 = "${OBJECT_MODE-32}"; then
9414 shared_archive_member_spec=shr_64
9416 shared_archive_member_spec=shr
9434 # This can be used to rebuild libtool when needed
9435 LIBTOOL_DEPS=$ltmain
9437 # Always use our own libtool.
9438 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9469 test -z "$LN_S" && LN_S="ln -s"
9484 if test -n "${ZSH_VERSION+set}"; then
9485 setopt NO_GLOB_SUBST
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9489 printf %s "checking for objdir... " >&6; }
9490 if test ${lt_cv_objdir+y}
9492 printf %s "(cached) " >&6
9494 rm -f .libs 2>/dev/null
9495 mkdir .libs 2>/dev/null
9496 if test -d .libs; then
9499 # MS-DOS does not allow filenames that begin with a dot.
9502 rmdir .libs 2>/dev/null
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9505 printf "%s\n" "$lt_cv_objdir" >&6; }
9506 objdir=$lt_cv_objdir
9512 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9519 # AIX sometimes has problems with the GCC collect2 program. For some
9520 # reason, if we set the COLLECT_NAMES environment variable, the problems
9521 # vanish in a puff of smoke.
9522 if test set != "${COLLECT_NAMES+set}"; then
9524 export COLLECT_NAMES
9531 can_build_shared=yes
9533 # All known linkers require a '.a' archive for static linking (except MSVC,
9534 # which needs '.lib').
9537 with_gnu_ld=$lt_cv_prog_gnu_ld
9542 # Set sane defaults for various variables
9543 test -z "$CC" && CC=cc
9544 test -z "$LTCC" && LTCC=$CC
9545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9546 test -z "$LD" && LD=ld
9547 test -z "$ac_objext" && ac_objext=o
9549 func_cc_basename $compiler
9550 cc_basename=$func_cc_basename_result
9553 # Only perform the check for file, if the check method requires it
9554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9555 case $deplibs_check_method in
9557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9559 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9560 if test ${lt_cv_path_MAGIC_CMD+y}
9562 printf %s "(cached) " >&6
9566 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9569 lt_save_MAGIC_CMD=$MAGIC_CMD
9570 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9571 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9572 for ac_dir in $ac_dummy; do
9574 test -z "$ac_dir" && ac_dir=.
9575 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9576 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9577 if test -n "$file_magic_test_file"; then
9578 case $deplibs_check_method in
9580 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9581 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9582 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9583 $EGREP "$file_magic_regex" > /dev/null; then
9588 *** Warning: the command libtool uses to detect shared libraries,
9589 *** $file_magic_cmd, produces output that libtool cannot recognize.
9590 *** The result is that libtool may fail to recognize shared libraries
9591 *** as such. This will affect the creation of libtool libraries that
9592 *** depend on shared libraries, but programs linked with such libtool
9593 *** libraries will work regardless of this problem. Nevertheless, you
9594 *** may want to report the problem to your system manager and/or to
9595 *** bug-libtool@gnu.org
9605 MAGIC_CMD=$lt_save_MAGIC_CMD
9610 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9611 if test -n "$MAGIC_CMD"; then
9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9613 printf "%s\n" "$MAGIC_CMD" >&6; }
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 printf "%s\n" "no" >&6; }
9623 if test -z "$lt_cv_path_MAGIC_CMD"; then
9624 if test -n "$ac_tool_prefix"; then
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9626 printf %s "checking for file... " >&6; }
9627 if test ${lt_cv_path_MAGIC_CMD+y}
9629 printf %s "(cached) " >&6
9633 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9636 lt_save_MAGIC_CMD=$MAGIC_CMD
9637 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9638 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9639 for ac_dir in $ac_dummy; do
9641 test -z "$ac_dir" && ac_dir=.
9642 if test -f "$ac_dir/file"; then
9643 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9644 if test -n "$file_magic_test_file"; then
9645 case $deplibs_check_method in
9647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9648 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9650 $EGREP "$file_magic_regex" > /dev/null; then
9655 *** Warning: the command libtool uses to detect shared libraries,
9656 *** $file_magic_cmd, produces output that libtool cannot recognize.
9657 *** The result is that libtool may fail to recognize shared libraries
9658 *** as such. This will affect the creation of libtool libraries that
9659 *** depend on shared libraries, but programs linked with such libtool
9660 *** libraries will work regardless of this problem. Nevertheless, you
9661 *** may want to report the problem to your system manager and/or to
9662 *** bug-libtool@gnu.org
9672 MAGIC_CMD=$lt_save_MAGIC_CMD
9677 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9678 if test -n "$MAGIC_CMD"; then
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9680 printf "%s\n" "$MAGIC_CMD" >&6; }
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 printf "%s\n" "no" >&6; }
9696 # Use C for the default configuration in the libtool script
9700 ac_cpp='$CPP $CPPFLAGS'
9701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9706 # Source file extension for C test sources.
9709 # Object file extension for compiled C test sources.
9713 # Code to be used in simple compile tests
9714 lt_simple_compile_test_code="int some_variable = 0;"
9716 # Code to be used in simple link tests
9717 lt_simple_link_test_code='int main(){return(0);}'
9725 # If no C compiler was specified, use CC.
9728 # If no C compiler flags were specified, use CFLAGS.
9729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9731 # Allow CC to be a program name with arguments.
9734 # Save the default compiler, since it gets overwritten when the other
9735 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9736 compiler_DEFAULT=$CC
9738 # save warnings/boilerplate of simple test code
9739 ac_outfile=conftest.$ac_objext
9740 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9742 _lt_compiler_boilerplate=`cat conftest.err`
9745 ac_outfile=conftest.$ac_objext
9746 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9748 _lt_linker_boilerplate=`cat conftest.err`
9753 ## There is no encapsulation within the following macros, do not change
9754 ## the running order or otherwise move them around unless you know exactly
9755 ## what you are doing...
9756 if test -n "$compiler"; then
9758 lt_prog_compiler_no_builtin_flag=
9760 if test yes = "$GCC"; then
9761 case $cc_basename in
9763 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9765 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9769 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9770 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9772 printf %s "(cached) " >&6
9774 lt_cv_prog_compiler_rtti_exceptions=no
9775 ac_outfile=conftest.$ac_objext
9776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9777 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9778 # Insert the option either (1) after the last *FLAGS variable, or
9779 # (2) before a word containing "conftest.", or (3) at the end.
9780 # Note that $ac_compile itself does not contain backslashes and begins
9781 # with a dollar sign (not a hyphen), so the echo should work correctly.
9782 # The option is referenced via a variable to avoid confusing sed.
9783 lt_compile=`echo "$ac_compile" | $SED \
9784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9786 -e 's:$: $lt_compiler_flag:'`
9787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9788 (eval "$lt_compile" 2>conftest.err)
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 if (exit $ac_status) && test -s "$ac_outfile"; then
9793 # The compiler can only warn and ignore the option if not recognized
9794 # So say no if there are warnings other than the usual output.
9795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9798 lt_cv_prog_compiler_rtti_exceptions=yes
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9805 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9807 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9808 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9820 lt_prog_compiler_wl=
9821 lt_prog_compiler_pic=
9822 lt_prog_compiler_static=
9825 if test yes = "$GCC"; then
9826 lt_prog_compiler_wl='-Wl,'
9827 lt_prog_compiler_static='-static'
9831 # All AIX code is PIC.
9832 if test ia64 = "$host_cpu"; then
9833 # AIX 5 now supports IA64 processor
9834 lt_prog_compiler_static='-Bstatic'
9836 lt_prog_compiler_pic='-fPIC'
9842 # see comment about AmigaOS4 .so support
9843 lt_prog_compiler_pic='-fPIC'
9846 # FIXME: we need at least 68020 code to build shared libraries, but
9847 # adding the '-m68020' flag to GCC prevents building anything better,
9849 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9854 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9855 # PIC is the default for these OSes.
9858 mingw* | cygwin* | pw32* | os2* | cegcc*)
9859 # This hack is so that the source file can tell whether it is being
9860 # built for inclusion in a dll (and should export symbols for example).
9861 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9862 # (--disable-auto-import) libraries
9863 lt_prog_compiler_pic='-DDLL_EXPORT'
9866 lt_prog_compiler_static='$wl-static'
9871 darwin* | rhapsody*)
9872 # PIC is the default on this platform
9873 # Common symbols not allowed in MH_DYLIB files
9874 lt_prog_compiler_pic='-fno-common'
9878 # PIC is the default for Haiku.
9879 # The "-static" flag exists, but is broken.
9880 lt_prog_compiler_static=
9884 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9885 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9886 # sets the default TLS model and affects inlining.
9892 lt_prog_compiler_pic='-fPIC'
9898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9899 # Instead, we relocate shared libraries at runtime.
9903 # Just because we use GCC doesn't mean we suddenly get shared libraries
9904 # on systems that don't support them.
9905 lt_prog_compiler_can_build_shared=no
9910 # QNX uses GNU C++, but need to define -shared option too, otherwise
9912 lt_prog_compiler_pic='-fPIC -shared'
9916 if test -d /usr/nec; then
9917 lt_prog_compiler_pic=-Kconform_pic
9922 lt_prog_compiler_pic='-fPIC'
9926 case $cc_basename in
9927 nvcc*) # Cuda Compiler Driver 2.2
9928 lt_prog_compiler_wl='-Xlinker '
9929 if test -n "$lt_prog_compiler_pic"; then
9930 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9935 # PORTME Check for flag to pass linker flags through the system compiler.
9938 lt_prog_compiler_wl='-Wl,'
9939 if test ia64 = "$host_cpu"; then
9940 # AIX 5 now supports IA64 processor
9941 lt_prog_compiler_static='-Bstatic'
9943 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9947 darwin* | rhapsody*)
9948 # PIC is the default on this platform
9949 # Common symbols not allowed in MH_DYLIB files
9950 lt_prog_compiler_pic='-fno-common'
9951 case $cc_basename in
9953 # NAG Fortran compiler
9954 lt_prog_compiler_wl='-Wl,-Wl,,'
9955 lt_prog_compiler_pic='-PIC'
9956 lt_prog_compiler_static='-Bstatic'
9961 mingw* | cygwin* | pw32* | os2* | cegcc*)
9962 # This hack is so that the source file can tell whether it is being
9963 # built for inclusion in a dll (and should export symbols for example).
9964 lt_prog_compiler_pic='-DDLL_EXPORT'
9967 lt_prog_compiler_static='$wl-static'
9972 hpux9* | hpux10* | hpux11*)
9973 lt_prog_compiler_wl='-Wl,'
9974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9981 lt_prog_compiler_pic='+Z'
9984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9985 lt_prog_compiler_static='$wl-a ${wl}archive'
9988 irix5* | irix6* | nonstopux*)
9989 lt_prog_compiler_wl='-Wl,'
9990 # PIC (with -KPIC) is the default.
9991 lt_prog_compiler_static='-non_shared'
9994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9995 case $cc_basename in
9996 # old Intel for x86_64, which still supported -KPIC.
9998 lt_prog_compiler_wl='-Wl,'
9999 lt_prog_compiler_pic='-KPIC'
10000 lt_prog_compiler_static='-static'
10002 # flang / f18. f95 an alias for gfortran or flang on Debian
10003 flang* | f18* | f95*)
10004 lt_prog_compiler_wl='-Wl,'
10005 lt_prog_compiler_pic='-fPIC'
10006 lt_prog_compiler_static='-static'
10008 # icc used to be incompatible with GCC.
10009 # ICC 10 doesn't accept -KPIC any more.
10011 lt_prog_compiler_wl='-Wl,'
10012 lt_prog_compiler_pic='-fPIC'
10013 lt_prog_compiler_static='-static'
10015 # Lahey Fortran 8.1.
10017 lt_prog_compiler_wl='-Wl,'
10018 lt_prog_compiler_pic='--shared'
10019 lt_prog_compiler_static='--static'
10022 # NAG Fortran compiler
10023 lt_prog_compiler_wl='-Wl,-Wl,,'
10024 lt_prog_compiler_pic='-PIC'
10025 lt_prog_compiler_static='-Bstatic'
10028 # Fabrice Bellard et al's Tiny C Compiler
10029 lt_prog_compiler_wl='-Wl,'
10030 lt_prog_compiler_pic='-fPIC'
10031 lt_prog_compiler_static='-static'
10033 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10034 # Portland Group compilers (*not* the Pentium gcc compiler,
10035 # which looks to be a dead project)
10036 lt_prog_compiler_wl='-Wl,'
10037 lt_prog_compiler_pic='-fpic'
10038 lt_prog_compiler_static='-Bstatic'
10041 lt_prog_compiler_wl='-Wl,'
10042 # All Alpha code is PIC.
10043 lt_prog_compiler_static='-non_shared'
10045 xl* | bgxl* | bgf* | mpixl*)
10046 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10047 lt_prog_compiler_wl='-Wl,'
10048 lt_prog_compiler_pic='-qpic'
10049 lt_prog_compiler_static='-qstaticlink'
10052 case `$CC -V 2>&1 | sed 5q` in
10053 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10055 lt_prog_compiler_pic='-KPIC'
10056 lt_prog_compiler_static='-Bstatic'
10057 lt_prog_compiler_wl=''
10059 *Sun\ F* | *Sun*Fortran*)
10060 lt_prog_compiler_pic='-KPIC'
10061 lt_prog_compiler_static='-Bstatic'
10062 lt_prog_compiler_wl='-Qoption ld '
10066 lt_prog_compiler_pic='-KPIC'
10067 lt_prog_compiler_static='-Bstatic'
10068 lt_prog_compiler_wl='-Wl,'
10070 *Intel*\ [CF]*Compiler*)
10071 lt_prog_compiler_wl='-Wl,'
10072 lt_prog_compiler_pic='-fPIC'
10073 lt_prog_compiler_static='-static'
10076 lt_prog_compiler_wl='-Wl,'
10077 lt_prog_compiler_pic='-fpic'
10078 lt_prog_compiler_static='-Bstatic'
10086 lt_prog_compiler_pic='-KPIC'
10087 lt_prog_compiler_static='-Bstatic'
10091 # QNX uses GNU C++, but need to define -shared option too, otherwise
10092 # it will coredump.
10093 lt_prog_compiler_pic='-fPIC -shared'
10096 osf3* | osf4* | osf5*)
10097 lt_prog_compiler_wl='-Wl,'
10098 # All OSF/1 code is PIC.
10099 lt_prog_compiler_static='-non_shared'
10103 lt_prog_compiler_static='-non_shared'
10107 lt_prog_compiler_pic='-KPIC'
10108 lt_prog_compiler_static='-Bstatic'
10109 case $cc_basename in
10110 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10111 lt_prog_compiler_wl='-Qoption ld ';;
10113 lt_prog_compiler_wl='-Wl,';;
10118 lt_prog_compiler_wl='-Qoption ld '
10119 lt_prog_compiler_pic='-PIC'
10120 lt_prog_compiler_static='-Bstatic'
10123 sysv4 | sysv4.2uw2* | sysv4.3*)
10124 lt_prog_compiler_wl='-Wl,'
10125 lt_prog_compiler_pic='-KPIC'
10126 lt_prog_compiler_static='-Bstatic'
10130 if test -d /usr/nec; then
10131 lt_prog_compiler_pic='-Kconform_pic'
10132 lt_prog_compiler_static='-Bstatic'
10136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10137 lt_prog_compiler_wl='-Wl,'
10138 lt_prog_compiler_pic='-KPIC'
10139 lt_prog_compiler_static='-Bstatic'
10143 lt_prog_compiler_wl='-Wl,'
10144 lt_prog_compiler_can_build_shared=no
10148 lt_prog_compiler_pic='-pic'
10149 lt_prog_compiler_static='-Bstatic'
10153 lt_prog_compiler_can_build_shared=no
10159 # For platforms that do not support PIC, -DPIC is meaningless:
10161 lt_prog_compiler_pic=
10164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10169 printf %s "checking for $compiler option to produce PIC... " >&6; }
10170 if test ${lt_cv_prog_compiler_pic+y}
10172 printf %s "(cached) " >&6
10174 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10177 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10178 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10181 # Check to make sure the PIC flag actually works.
10183 if test -n "$lt_prog_compiler_pic"; then
10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10185 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10186 if test ${lt_cv_prog_compiler_pic_works+y}
10188 printf %s "(cached) " >&6
10190 lt_cv_prog_compiler_pic_works=no
10191 ac_outfile=conftest.$ac_objext
10192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10193 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10194 # Insert the option either (1) after the last *FLAGS variable, or
10195 # (2) before a word containing "conftest.", or (3) at the end.
10196 # Note that $ac_compile itself does not contain backslashes and begins
10197 # with a dollar sign (not a hyphen), so the echo should work correctly.
10198 # The option is referenced via a variable to avoid confusing sed.
10199 lt_compile=`echo "$ac_compile" | $SED \
10200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10202 -e 's:$: $lt_compiler_flag:'`
10203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10204 (eval "$lt_compile" 2>conftest.err)
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 if (exit $ac_status) && test -s "$ac_outfile"; then
10209 # The compiler can only warn and ignore the option if not recognized
10210 # So say no if there are warnings other than the usual output.
10211 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10213 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10214 lt_cv_prog_compiler_pic_works=yes
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10221 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10223 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10224 case $lt_prog_compiler_pic in
10226 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10229 lt_prog_compiler_pic=
10230 lt_prog_compiler_can_build_shared=no
10246 # Check to make sure the static flag actually works.
10248 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10250 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10251 if test ${lt_cv_prog_compiler_static_works+y}
10253 printf %s "(cached) " >&6
10255 lt_cv_prog_compiler_static_works=no
10256 save_LDFLAGS=$LDFLAGS
10257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10260 # The linker can only warn and ignore the option if not recognized
10261 # So say no if there are warnings
10262 if test -s conftest.err; then
10263 # Append any errors to the config.log.
10264 cat conftest.err 1>&5
10265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10267 if diff conftest.exp conftest.er2 >/dev/null; then
10268 lt_cv_prog_compiler_static_works=yes
10271 lt_cv_prog_compiler_static_works=yes
10275 LDFLAGS=$save_LDFLAGS
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10279 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10281 if test yes = "$lt_cv_prog_compiler_static_works"; then
10284 lt_prog_compiler_static=
10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10294 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10295 if test ${lt_cv_prog_compiler_c_o+y}
10297 printf %s "(cached) " >&6
10299 lt_cv_prog_compiler_c_o=no
10300 $RM -r conftest 2>/dev/null
10304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10306 lt_compiler_flag="-o out/conftest2.$ac_objext"
10307 # Insert the option either (1) after the last *FLAGS variable, or
10308 # (2) before a word containing "conftest.", or (3) at the end.
10309 # Note that $ac_compile itself does not contain backslashes and begins
10310 # with a dollar sign (not a hyphen), so the echo should work correctly.
10311 lt_compile=`echo "$ac_compile" | $SED \
10312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314 -e 's:$: $lt_compiler_flag:'`
10315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10316 (eval "$lt_compile" 2>out/conftest.err)
10318 cat out/conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10322 # The compiler can only warn and ignore the option if not recognized
10323 # So say no if there are warnings
10324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10327 lt_cv_prog_compiler_c_o=yes
10332 # SGI C++ compiler will create directory out/ii_files/ for
10333 # template instantiation
10334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10335 $RM out/* && rmdir out
10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10342 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10350 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10351 if test ${lt_cv_prog_compiler_c_o+y}
10353 printf %s "(cached) " >&6
10355 lt_cv_prog_compiler_c_o=no
10356 $RM -r conftest 2>/dev/null
10360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10362 lt_compiler_flag="-o out/conftest2.$ac_objext"
10363 # Insert the option either (1) after the last *FLAGS variable, or
10364 # (2) before a word containing "conftest.", or (3) at the end.
10365 # Note that $ac_compile itself does not contain backslashes and begins
10366 # with a dollar sign (not a hyphen), so the echo should work correctly.
10367 lt_compile=`echo "$ac_compile" | $SED \
10368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10370 -e 's:$: $lt_compiler_flag:'`
10371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10372 (eval "$lt_compile" 2>out/conftest.err)
10374 cat out/conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10378 # The compiler can only warn and ignore the option if not recognized
10379 # So say no if there are warnings
10380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10383 lt_cv_prog_compiler_c_o=yes
10388 # SGI C++ compiler will create directory out/ii_files/ for
10389 # template instantiation
10390 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10391 $RM out/* && rmdir out
10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10398 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10403 hard_links=nottested
10404 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10405 # do not overwrite the value of need_locks provided by the user
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10407 printf %s "checking if we can lock with hard links... " >&6; }
10410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10412 ln conftest.a conftest.b 2>&5 || hard_links=no
10413 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10415 printf "%s\n" "$hard_links" >&6; }
10416 if test no = "$hard_links"; then
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10418 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10431 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10434 allow_undefined_flag=
10435 always_export_symbols=no
10437 archive_expsym_cmds=
10438 compiler_needs_object=no
10439 enable_shared_with_static_runtimes=no
10440 export_dynamic_flag_spec=
10441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10442 hardcode_automatic=no
10444 hardcode_direct_absolute=no
10445 hardcode_libdir_flag_spec=
10446 hardcode_libdir_separator=
10447 hardcode_minus_L=no
10448 hardcode_shlibpath_var=unsupported
10450 link_all_deplibs=unknown
10452 module_expsym_cmds=
10453 old_archive_from_new_cmds=
10454 old_archive_from_expsyms_cmds=
10455 thread_safe_flag_spec=
10456 whole_archive_flag_spec=
10457 # include_expsyms should be a list of space-separated symbols to be *always*
10458 # included in the symbol list
10460 # exclude_expsyms can be an extended regexp of symbols to exclude
10461 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10462 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10463 # as well as any symbol that contains 'd'.
10464 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10465 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10466 # platforms (ab)use it in PIC code, but their linkers get confused if
10467 # the symbol is explicitly referenced. Since portable code cannot
10468 # rely on this symbol name, it's probably fine to never include it in
10469 # preloaded symbol tables.
10470 # Exclude shared library initialization/finalization symbols.
10471 extract_expsyms_cmds=
10474 cygwin* | mingw* | pw32* | cegcc*)
10475 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10476 # When not using gcc, we currently assume that we are using
10477 # Microsoft Visual C++.
10478 if test yes != "$GCC"; then
10483 # we just hope/assume this is gcc and not c89 (= MSVC++)
10486 openbsd* | bitrig*)
10489 linux* | k*bsd*-gnu | gnu*)
10490 link_all_deplibs=no
10496 # On some targets, GNU ld is compatible enough with the native linker
10497 # that we're better off using the native interface for both.
10498 lt_use_gnu_ld_interface=no
10499 if test yes = "$with_gnu_ld"; then
10502 # The AIX port of GNU ld has always aspired to compatibility
10503 # with the native linker. However, as the warning in the GNU ld
10504 # block says, versions before 2.19.5* couldn't really create working
10505 # shared libraries, regardless of the interface used.
10506 case `$LD -v 2>&1` in
10507 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10508 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10509 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10511 lt_use_gnu_ld_interface=yes
10516 lt_use_gnu_ld_interface=yes
10521 if test yes = "$lt_use_gnu_ld_interface"; then
10522 # If archive_cmds runs LD, not CC, wlarc should be empty
10525 # Set some defaults for GNU ld with shared library support. These
10526 # are reset later if shared libraries are not supported. Putting them
10527 # here allows them to be overridden if necessary.
10528 runpath_var=LD_RUN_PATH
10529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10530 export_dynamic_flag_spec='$wl--export-dynamic'
10531 # ancient GNU ld didn't support --whole-archive et. al.
10532 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10533 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10535 whole_archive_flag_spec=
10537 supports_anon_versioning=no
10538 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10539 *GNU\ gold*) supports_anon_versioning=yes ;;
10540 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10541 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10542 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10543 *\ 2.11.*) ;; # other 2.11 versions
10544 *) supports_anon_versioning=yes ;;
10547 # See if GNU ld supports shared libraries.
10550 # On AIX/PPC, the GNU linker is very broken
10551 if test ia64 != "$host_cpu"; then
10555 *** Warning: the GNU linker, at least up to release 2.19, is reported
10556 *** to be unable to reliably create shared libraries on AIX.
10557 *** Therefore, libtool is disabling shared libraries support. If you
10558 *** really care for shared libraries, you may want to install binutils
10559 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10560 *** You will then need to restart the configuration process.
10569 # see comment about AmigaOS4 .so support
10570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10571 archive_expsym_cmds=''
10574 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)'
10575 hardcode_libdir_flag_spec='-L$libdir'
10576 hardcode_minus_L=yes
10582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10583 allow_undefined_flag=unsupported
10584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10585 # support --undefined. This deserves some investigation. FIXME
10586 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10592 cygwin* | mingw* | pw32* | cegcc*)
10593 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10594 # as there is no search path for DLLs.
10595 hardcode_libdir_flag_spec='-L$libdir'
10596 export_dynamic_flag_spec='$wl--export-all-symbols'
10597 allow_undefined_flag=unsupported
10598 always_export_symbols=no
10599 enable_shared_with_static_runtimes=yes
10600 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'
10601 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10603 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10605 # If the export-symbols file already is a .def file, use it as
10606 # is; otherwise, prepend EXPORTS...
10607 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10608 cp $export_symbols $output_objdir/$soname.def;
10610 echo EXPORTS > $output_objdir/$soname.def;
10611 cat $export_symbols >> $output_objdir/$soname.def;
10613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10621 link_all_deplibs=yes
10625 hardcode_libdir_flag_spec='-L$libdir'
10626 hardcode_minus_L=yes
10627 allow_undefined_flag=unsupported
10629 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10630 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10631 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10632 $ECHO EXPORTS >> $output_objdir/$libname.def~
10633 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10634 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10635 emximp -o $lib $output_objdir/$libname.def'
10636 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10637 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10638 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10639 $ECHO EXPORTS >> $output_objdir/$libname.def~
10640 prefix_cmds="$SED"~
10641 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10642 prefix_cmds="$prefix_cmds -e 1d";
10644 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10645 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10646 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10647 emximp -o $lib $output_objdir/$libname.def'
10648 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10649 enable_shared_with_static_runtimes=yes
10654 hardcode_shlibpath_var=no
10655 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10656 export_dynamic_flag_spec='$wl-E'
10657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10658 # Instead, shared libraries are loaded at an image base (0x10000000 by
10659 # default) and relocated if they conflict, which is a slow very memory
10660 # consuming and fragmenting process. To avoid this, we pick a random,
10661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10663 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10664 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'
10667 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10669 if test linux-dietlibc = "$host_os"; then
10670 case $cc_basename in
10671 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10674 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10675 && test no = "$tmp_diet"
10677 tmp_addflag=' $pic_flag'
10678 tmp_sharedflag='-shared'
10679 case $cc_basename,$host_cpu in
10680 pgcc*) # Portland Group C compiler
10681 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'
10682 tmp_addflag=' $pic_flag'
10684 pgf77* | pgf90* | pgf95* | pgfortran*)
10685 # Portland Group f77 and f90 compilers
10686 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'
10687 tmp_addflag=' $pic_flag -Mnomain' ;;
10688 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10689 tmp_addflag=' -i_dynamic' ;;
10690 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10691 tmp_addflag=' -i_dynamic -nofor_main' ;;
10692 ifc* | ifort*) # Intel Fortran compiler
10693 tmp_addflag=' -nofor_main' ;;
10694 lf95*) # Lahey Fortran 8.1
10695 whole_archive_flag_spec=
10696 tmp_sharedflag='--shared' ;;
10697 nagfor*) # NAGFOR 5.3
10698 tmp_sharedflag='-Wl,-shared' ;;
10699 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10700 tmp_sharedflag='-qmkshrobj'
10702 nvcc*) # Cuda Compiler Driver 2.2
10703 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'
10704 compiler_needs_object=yes
10707 case `$CC -V 2>&1 | sed 5q` in
10708 *Sun\ C*) # Sun C 5.9
10709 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'
10710 compiler_needs_object=yes
10711 tmp_sharedflag='-G' ;;
10712 *Sun\ F*) # Sun Fortran 8.3
10713 tmp_sharedflag='-G' ;;
10715 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10717 if test yes = "$supports_anon_versioning"; then
10718 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10720 echo "local: *; };" >> $output_objdir/$libname.ver~
10721 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10724 case $cc_basename in
10726 export_dynamic_flag_spec='-rdynamic'
10728 xlf* | bgf* | bgxlf* | mpixlf*)
10729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10732 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10733 if test yes = "$supports_anon_versioning"; then
10734 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10736 echo "local: *; };" >> $output_objdir/$libname.ver~
10737 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10746 netbsd* | netbsdelf*-gnu)
10747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10748 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10757 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10762 *** create shared libraries on Solaris systems. Therefore, libtool
10763 *** is disabling shared libraries support. We urge you to upgrade GNU
10764 *** binutils to release 2.9.1 or newer. Another option is to modify
10765 *** your PATH or compiler configuration so that the native linker is
10766 *** used, and then restart.
10769 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10770 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10771 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10778 case `$LD -v 2>&1` in
10779 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10784 *** reliably create shared libraries on SCO systems. Therefore, libtool
10785 *** is disabling shared libraries support. We urge you to upgrade GNU
10786 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10787 *** your PATH or compiler configuration so that the native linker is
10788 *** used, and then restart.
10793 # For security reasons, it is highly recommended that you always
10794 # use absolute paths for naming shared libraries, and exclude the
10795 # DT_RUNPATH tag from executables and libraries. But doing so
10796 # requires that you compile everything twice, which is a pain.
10797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10809 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10811 hardcode_direct=yes
10812 hardcode_shlibpath_var=no
10816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10825 if test no = "$ld_shlibs"; then
10827 hardcode_libdir_flag_spec=
10828 export_dynamic_flag_spec=
10829 whole_archive_flag_spec=
10832 # PORTME fill in a description of your system's linker (not GNU ld)
10835 allow_undefined_flag=unsupported
10836 always_export_symbols=yes
10837 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'
10838 # Note: this linker hardcodes the directories in LIBPATH if there
10839 # are no directories specified by -L.
10840 hardcode_minus_L=yes
10841 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10842 # Neither direct hardcoding nor static linking is supported with a
10844 hardcode_direct=unsupported
10849 if test ia64 = "$host_cpu"; then
10850 # On IA64, the linker does run time linking by default, so we don't
10851 # have to do anything special.
10852 aix_use_runtimelinking=no
10853 exp_sym_flag='-Bexport'
10856 # If we're using GNU nm, then we don't want the "-C" option.
10857 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10858 # Without the "-l" option, or with the "-B" option, AIX nm treats
10859 # weak defined symbols like other global defined symbols, whereas
10860 # GNU nm marks them as "W".
10861 # While the 'weak' keyword is ignored in the Export File, we need
10862 # it in the Import File for the 'aix-soname' feature, so we have
10863 # to replace the "-B" option with "-P" for AIX nm.
10864 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10865 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10867 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10869 aix_use_runtimelinking=no
10871 # Test if we are trying to use run time linking or normal
10872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10873 # have runtime linking enabled, and use it for executables.
10874 # For shared libraries, we enable/disable runtime linking
10875 # depending on the kind of the shared library created -
10876 # when "with_aix_soname,aix_use_runtimelinking" is:
10877 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10878 # "aix,yes" lib.so shared, rtl:yes, for executables
10879 # lib.a static archive
10880 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10881 # lib.a(lib.so.V) shared, rtl:no, for executables
10882 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10883 # lib.a(lib.so.V) shared, rtl:no
10884 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10885 # lib.a static archive
10886 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10887 for ld_flag in $LDFLAGS; do
10888 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10889 aix_use_runtimelinking=yes
10893 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10894 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10895 # so we don't have lib.a shared libs to link our executables.
10896 # We have to force runtime linking in this case.
10897 aix_use_runtimelinking=yes
10898 LDFLAGS="$LDFLAGS -Wl,-brtl"
10903 exp_sym_flag='-bexport'
10904 no_entry_flag='-bnoentry'
10907 # When large executables or shared objects are built, AIX ld can
10908 # have problems creating the table of contents. If linking a library
10909 # or program results in "error TOC overflow" add -mminimal-toc to
10910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10914 hardcode_direct=yes
10915 hardcode_direct_absolute=yes
10916 hardcode_libdir_separator=':'
10917 link_all_deplibs=yes
10918 file_list_spec='$wl-f,'
10919 case $with_aix_soname,$aix_use_runtimelinking in
10920 aix,*) ;; # traditional, no import file
10921 svr4,* | *,yes) # use import file
10922 # The Import File defines what to hardcode.
10924 hardcode_direct_absolute=no
10928 if test yes = "$GCC"; then
10929 case $host_os in aix4.[012]|aix4.[012].*)
10930 # We only want to do this on AIX 4.2 and lower, the check
10931 # below for broken collect2 doesn't work under 4.3+
10932 collect2name=`$CC -print-prog-name=collect2`
10933 if test -f "$collect2name" &&
10934 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10936 # We have reworked collect2
10939 # We have old collect2
10940 hardcode_direct=unsupported
10941 # It fails to find uninstalled libraries when the uninstalled
10942 # path is not listed in the libpath. Setting hardcode_minus_L
10943 # to unsupported forces relinking
10944 hardcode_minus_L=yes
10945 hardcode_libdir_flag_spec='-L$libdir'
10946 hardcode_libdir_separator=
10950 shared_flag='-shared'
10951 if test yes = "$aix_use_runtimelinking"; then
10952 shared_flag="$shared_flag "'$wl-G'
10954 # Need to ensure runtime linking is disabled for the traditional
10955 # shared library, or the linker may eventually find shared libraries
10956 # /with/ Import File - we do not want to mix them.
10957 shared_flag_aix='-shared'
10958 shared_flag_svr4='-shared $wl-G'
10961 if test ia64 = "$host_cpu"; then
10962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10963 # chokes on -Wl,-G. The following line is correct:
10966 if test yes = "$aix_use_runtimelinking"; then
10967 shared_flag='$wl-G'
10969 shared_flag='$wl-bM:SRE'
10971 shared_flag_aix='$wl-bM:SRE'
10972 shared_flag_svr4='$wl-G'
10976 export_dynamic_flag_spec='$wl-bexpall'
10977 # It seems that -bexpall does not export symbols beginning with
10978 # underscore (_), so it is better to generate a list of symbols to export.
10979 always_export_symbols=yes
10980 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10981 # Warning - without using the other runtime loading flags (-brtl),
10982 # -berok will link without error, but may produce a broken library.
10983 allow_undefined_flag='-berok'
10984 # Determine the default libpath from the value encoded in an
10985 # empty executable.
10986 if test set = "${lt_cv_aix_libpath+set}"; then
10987 aix_libpath=$lt_cv_aix_libpath
10989 if test ${lt_cv_aix_libpath_+y}
10991 printf %s "(cached) " >&6
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
11004 if ac_fn_c_try_link "$LINENO"
11007 lt_aix_libpath_sed='
11008 /Import File Strings/,/^$/ {
11010 s/^0 *\([^ ]*\) *$/\1/
11014 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11015 # Check for a 64-bit object if we didn't find anything.
11016 if test -z "$lt_cv_aix_libpath_"; then
11017 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11021 conftest$ac_exeext conftest.$ac_ext
11022 if test -z "$lt_cv_aix_libpath_"; then
11023 lt_cv_aix_libpath_=/usr/lib:/lib
11028 aix_libpath=$lt_cv_aix_libpath_
11031 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11032 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11034 if test ia64 = "$host_cpu"; then
11035 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11036 allow_undefined_flag="-z nodefs"
11037 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"
11039 # Determine the default libpath from the value encoded in an
11040 # empty executable.
11041 if test set = "${lt_cv_aix_libpath+set}"; then
11042 aix_libpath=$lt_cv_aix_libpath
11044 if test ${lt_cv_aix_libpath_+y}
11046 printf %s "(cached) " >&6
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11059 if ac_fn_c_try_link "$LINENO"
11062 lt_aix_libpath_sed='
11063 /Import File Strings/,/^$/ {
11065 s/^0 *\([^ ]*\) *$/\1/
11069 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11070 # Check for a 64-bit object if we didn't find anything.
11071 if test -z "$lt_cv_aix_libpath_"; then
11072 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11076 conftest$ac_exeext conftest.$ac_ext
11077 if test -z "$lt_cv_aix_libpath_"; then
11078 lt_cv_aix_libpath_=/usr/lib:/lib
11083 aix_libpath=$lt_cv_aix_libpath_
11086 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11087 # Warning - without using the other run time loading flags,
11088 # -berok will link without error, but may produce a broken library.
11089 no_undefined_flag=' $wl-bernotok'
11090 allow_undefined_flag=' $wl-berok'
11091 if test yes = "$with_gnu_ld"; then
11092 # We only use this code for GNU lds that support --whole-archive.
11093 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11095 # Exported symbols can be pulled into shared objects from archives
11096 whole_archive_flag_spec='$convenience'
11098 archive_cmds_need_lc=yes
11099 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11100 # -brtl affects multiple linker settings, -berok does not and is overridden later
11101 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11102 if test svr4 != "$with_aix_soname"; then
11103 # This is similar to how AIX traditionally builds its shared libraries.
11104 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11106 if test aix != "$with_aix_soname"; then
11107 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11109 # used by -dlpreopen to get the symbols
11110 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11112 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11120 # see comment about AmigaOS4 .so support
11121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11122 archive_expsym_cmds=''
11125 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)'
11126 hardcode_libdir_flag_spec='-L$libdir'
11127 hardcode_minus_L=yes
11133 export_dynamic_flag_spec=-rdynamic
11136 cygwin* | mingw* | pw32* | cegcc*)
11137 # When not using gcc, we currently assume that we are using
11138 # Microsoft Visual C++.
11139 # hardcode_libdir_flag_spec is actually meaningless, as there is
11140 # no search path for DLLs.
11141 case $cc_basename in
11144 hardcode_libdir_flag_spec=' '
11145 allow_undefined_flag=unsupported
11146 always_export_symbols=yes
11148 # Tell ltmain to make .lib files, not .a files.
11150 # Tell ltmain to make .dll files, not .so files.
11152 # FIXME: Setting linknames here is a bad hack.
11153 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11154 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11155 cp "$export_symbols" "$output_objdir/$soname.def";
11156 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11158 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11160 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11162 # The linker will not automatically build a static lib if we build a DLL.
11163 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11164 enable_shared_with_static_runtimes=yes
11165 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11168 old_postinstall_cmds='chmod 644 $oldlib'
11169 postlink_cmds='lt_outputfile="@OUTPUT@"~
11170 lt_tool_outputfile="@TOOL_OUTPUT@"~
11171 case $lt_outputfile in
11174 lt_outputfile=$lt_outputfile.exe
11175 lt_tool_outputfile=$lt_tool_outputfile.exe
11178 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11179 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11180 $RM "$lt_outputfile.manifest";
11184 # Assume MSVC wrapper
11185 hardcode_libdir_flag_spec=' '
11186 allow_undefined_flag=unsupported
11187 # Tell ltmain to make .lib files, not .a files.
11189 # Tell ltmain to make .dll files, not .so files.
11191 # FIXME: Setting linknames here is a bad hack.
11192 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11193 # The linker will automatically build a .lib file if we build a DLL.
11194 old_archive_from_new_cmds='true'
11195 # FIXME: Should let the user specify the lib program.
11196 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11197 enable_shared_with_static_runtimes=yes
11202 darwin* | rhapsody*)
11205 archive_cmds_need_lc=no
11207 hardcode_automatic=yes
11208 hardcode_shlibpath_var=unsupported
11209 if test yes = "$lt_cv_ld_force_load"; then
11210 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\"`'
11213 whole_archive_flag_spec=''
11215 link_all_deplibs=yes
11216 allow_undefined_flag=$_lt_dar_allow_undefined
11217 case $cc_basename in
11218 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11219 *) _lt_dar_can_shared=$GCC ;;
11221 if test yes = "$_lt_dar_can_shared"; then
11222 output_verbose_link_cmd=func_echo_all
11223 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11224 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11225 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"
11226 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"
11235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11236 hardcode_libdir_flag_spec='-L$libdir'
11237 hardcode_shlibpath_var=no
11240 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11241 # support. Future versions do this automatically, but an explicit c++rt0.o
11242 # does not break anything, and helps significantly (at the cost of a little
11245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11246 hardcode_libdir_flag_spec='-R$libdir'
11247 hardcode_direct=yes
11248 hardcode_shlibpath_var=no
11251 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11254 hardcode_direct=yes
11255 hardcode_minus_L=yes
11256 hardcode_shlibpath_var=no
11259 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11260 freebsd* | dragonfly*)
11261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11262 hardcode_libdir_flag_spec='-R$libdir'
11263 hardcode_direct=yes
11264 hardcode_shlibpath_var=no
11268 if test yes = "$GCC"; then
11269 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11271 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11273 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11274 hardcode_libdir_separator=:
11275 hardcode_direct=yes
11277 # hardcode_minus_L: Not really in the search PATH,
11278 # but as the default location of the library.
11279 hardcode_minus_L=yes
11280 export_dynamic_flag_spec='$wl-E'
11284 if test yes,no = "$GCC,$with_gnu_ld"; then
11285 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11287 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11289 if test no = "$with_gnu_ld"; then
11290 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11291 hardcode_libdir_separator=:
11292 hardcode_direct=yes
11293 hardcode_direct_absolute=yes
11294 export_dynamic_flag_spec='$wl-E'
11295 # hardcode_minus_L: Not really in the search PATH,
11296 # but as the default location of the library.
11297 hardcode_minus_L=yes
11302 if test yes,no = "$GCC,$with_gnu_ld"; then
11305 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11308 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11317 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11320 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11324 # Older versions of the 11.00 compiler do not understand -b yet
11325 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11327 printf %s "checking if $CC understands -b... " >&6; }
11328 if test ${lt_cv_prog_compiler__b+y}
11330 printf %s "(cached) " >&6
11332 lt_cv_prog_compiler__b=no
11333 save_LDFLAGS=$LDFLAGS
11334 LDFLAGS="$LDFLAGS -b"
11335 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11337 # The linker can only warn and ignore the option if not recognized
11338 # So say no if there are warnings
11339 if test -s conftest.err; then
11340 # Append any errors to the config.log.
11341 cat conftest.err 1>&5
11342 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11344 if diff conftest.exp conftest.er2 >/dev/null; then
11345 lt_cv_prog_compiler__b=yes
11348 lt_cv_prog_compiler__b=yes
11352 LDFLAGS=$save_LDFLAGS
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11356 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11358 if test yes = "$lt_cv_prog_compiler__b"; then
11359 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11361 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11367 if test no = "$with_gnu_ld"; then
11368 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11369 hardcode_libdir_separator=:
11374 hardcode_shlibpath_var=no
11377 hardcode_direct=yes
11378 hardcode_direct_absolute=yes
11379 export_dynamic_flag_spec='$wl-E'
11381 # hardcode_minus_L: Not really in the search PATH,
11382 # but as the default location of the library.
11383 hardcode_minus_L=yes
11389 irix5* | irix6* | nonstopux*)
11390 if test yes = "$GCC"; then
11391 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'
11392 # Try to use the -exported_symbol ld option, if it does not
11393 # work, assume that -exports_file does not work either and
11394 # implicitly export all symbols.
11395 # This should be the same for all languages, so no per-tag cache variable.
11396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11397 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11398 if test ${lt_cv_irix_exported_symbol+y}
11400 printf %s "(cached) " >&6
11402 save_LDFLAGS=$LDFLAGS
11403 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 int foo (void) { return 0; }
11408 if ac_fn_c_try_link "$LINENO"
11410 lt_cv_irix_exported_symbol=yes
11412 lt_cv_irix_exported_symbol=no
11414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LDFLAGS=$save_LDFLAGS
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11419 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11420 if test yes = "$lt_cv_irix_exported_symbol"; then
11421 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'
11423 link_all_deplibs=no
11425 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'
11426 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'
11428 archive_cmds_need_lc='no'
11429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11430 hardcode_libdir_separator=:
11432 link_all_deplibs=yes
11436 case $cc_basename in
11438 # Fabrice Bellard et al's Tiny C Compiler
11440 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11445 netbsd* | netbsdelf*-gnu)
11446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11449 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11451 hardcode_libdir_flag_spec='-R$libdir'
11452 hardcode_direct=yes
11453 hardcode_shlibpath_var=no
11457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11458 hardcode_direct=yes
11459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11460 hardcode_libdir_separator=:
11461 hardcode_shlibpath_var=no
11467 openbsd* | bitrig*)
11468 if test -f /usr/libexec/ld.so; then
11469 hardcode_direct=yes
11470 hardcode_shlibpath_var=no
11471 hardcode_direct_absolute=yes
11472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11474 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11475 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11476 export_dynamic_flag_spec='$wl-E'
11478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11479 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11487 hardcode_libdir_flag_spec='-L$libdir'
11488 hardcode_minus_L=yes
11489 allow_undefined_flag=unsupported
11491 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11492 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11493 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11494 $ECHO EXPORTS >> $output_objdir/$libname.def~
11495 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11496 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11497 emximp -o $lib $output_objdir/$libname.def'
11498 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11499 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11500 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11501 $ECHO EXPORTS >> $output_objdir/$libname.def~
11502 prefix_cmds="$SED"~
11503 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11504 prefix_cmds="$prefix_cmds -e 1d";
11506 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11507 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11508 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11509 emximp -o $lib $output_objdir/$libname.def'
11510 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11511 enable_shared_with_static_runtimes=yes
11515 if test yes = "$GCC"; then
11516 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11517 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'
11519 allow_undefined_flag=' -expect_unresolved \*'
11520 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'
11522 archive_cmds_need_lc='no'
11523 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11524 hardcode_libdir_separator=:
11527 osf4* | osf5*) # as osf3* with the addition of -msym flag
11528 if test yes = "$GCC"; then
11529 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11530 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'
11531 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11533 allow_undefined_flag=' -expect_unresolved \*'
11534 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'
11535 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~
11536 $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'
11538 # Both c and cxx compiler support -rpath directly
11539 hardcode_libdir_flag_spec='-rpath $libdir'
11541 archive_cmds_need_lc='no'
11542 hardcode_libdir_separator=:
11546 no_undefined_flag=' -z defs'
11547 if test yes = "$GCC"; then
11549 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11551 $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'
11553 case `$CC -V 2>&1` in
11556 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11558 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11562 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11564 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11568 hardcode_libdir_flag_spec='-R$libdir'
11569 hardcode_shlibpath_var=no
11571 solaris2.[0-5] | solaris2.[0-5].*) ;;
11573 # The compiler driver will combine and reorder linker options,
11574 # but understands '-z linker_flag'. GCC discards it without '$wl',
11575 # but is careful enough not to reorder.
11576 # Supported since Solaris 2.6 (maybe 2.5.1?)
11577 if test yes = "$GCC"; then
11578 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11580 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11584 link_all_deplibs=yes
11588 if test sequent = "$host_vendor"; then
11589 # Use $CC to link under sequent, because it throws in some extra .o
11590 # files that make .init and .fini sections work.
11591 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11593 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11595 hardcode_libdir_flag_spec='-L$libdir'
11596 hardcode_direct=yes
11597 hardcode_minus_L=yes
11598 hardcode_shlibpath_var=no
11602 case $host_vendor in
11604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11605 hardcode_direct=yes # is this really true???
11608 ## LD is ld it makes a PLAMLIB
11609 ## CC just makes a GrossModule.
11610 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11611 reload_cmds='$CC -r -o $output$reload_objs'
11615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11616 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11619 runpath_var='LD_RUN_PATH'
11620 hardcode_shlibpath_var=no
11624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11625 hardcode_shlibpath_var=no
11626 export_dynamic_flag_spec='-Bexport'
11630 if test -d /usr/nec; then
11631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11632 hardcode_shlibpath_var=no
11633 runpath_var=LD_RUN_PATH
11634 hardcode_runpath_var=yes
11639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11640 no_undefined_flag='$wl-z,text'
11641 archive_cmds_need_lc=no
11642 hardcode_shlibpath_var=no
11643 runpath_var='LD_RUN_PATH'
11645 if test yes = "$GCC"; then
11646 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11649 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11650 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11654 sysv5* | sco3.2v5* | sco5v6*)
11655 # Note: We CANNOT use -z defs as we might desire, because we do not
11656 # link with -lc, and that would cause any symbols used from libc to
11657 # always be unresolved, which means just about no library would
11658 # ever link correctly. If we're not using GNU ld we use -z text
11659 # though, which does catch some bad symbols but isn't as heavy-handed
11661 no_undefined_flag='$wl-z,text'
11662 allow_undefined_flag='$wl-z,nodefs'
11663 archive_cmds_need_lc=no
11664 hardcode_shlibpath_var=no
11665 hardcode_libdir_flag_spec='$wl-R,$libdir'
11666 hardcode_libdir_separator=':'
11667 link_all_deplibs=yes
11668 export_dynamic_flag_spec='$wl-Bexport'
11669 runpath_var='LD_RUN_PATH'
11671 if test yes = "$GCC"; then
11672 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11673 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11676 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11682 hardcode_libdir_flag_spec='-L$libdir'
11683 hardcode_shlibpath_var=no
11691 if test sni = "$host_vendor"; then
11693 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11694 export_dynamic_flag_spec='$wl-Blargedynsym'
11700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11701 printf "%s\n" "$ld_shlibs" >&6; }
11702 test no = "$ld_shlibs" && can_build_shared=no
11704 with_gnu_ld=$with_gnu_ld
11721 # Do we need to explicitly link libc?
11723 case "x$archive_cmds_need_lc" in
11725 # Assume -lc should be added
11726 archive_cmds_need_lc=yes
11728 if test yes,yes = "$GCC,$enable_shared"; then
11729 case $archive_cmds in
11731 # FIXME: we may have to deal with multi-command sequences.
11734 # Test whether the compiler implicitly links with -lc since on some
11735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11736 # to ld, don't add -lc before -lgcc.
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11738 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11739 if test ${lt_cv_archive_cmds_need_lc+y}
11741 printf %s "(cached) " >&6
11744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11747 (eval $ac_compile) 2>&5
11749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11750 test $ac_status = 0; } 2>conftest.err; then
11753 libobjs=conftest.$ac_objext
11755 wl=$lt_prog_compiler_wl
11756 pic_flag=$lt_prog_compiler_pic
11762 lt_save_allow_undefined_flag=$allow_undefined_flag
11763 allow_undefined_flag=
11764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11765 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11768 test $ac_status = 0; }
11770 lt_cv_archive_cmds_need_lc=no
11772 lt_cv_archive_cmds_need_lc=yes
11774 allow_undefined_flag=$lt_save_allow_undefined_flag
11776 cat conftest.err 1>&5
11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11782 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11783 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11942 printf %s "checking dynamic linker characteristics... " >&6; }
11944 if test yes = "$GCC"; then
11946 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11947 *) lt_awk_arg='/^libraries:/' ;;
11950 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11951 *) lt_sed_strip_eq='s|=/|/|g' ;;
11953 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11954 case $lt_search_path_spec in
11956 # if the path contains ";" then we assume it to be the separator
11957 # otherwise default to the standard path separator (i.e. ":") - it is
11958 # assumed that no part of a normal pathname contains ";" but that should
11959 # okay in the real world where ";" in dirpaths is itself problematic.
11960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11966 # Ok, now we have the path, separated by spaces, we can step through it
11967 # and add multilib dir if necessary...
11968 lt_tmp_lt_search_path_spec=
11969 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11970 # ...but if some path component already ends with the multilib dir we assume
11971 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11972 case "$lt_multi_os_dir; $lt_search_path_spec " in
11973 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11977 for lt_sys_path in $lt_search_path_spec; do
11978 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11979 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11980 elif test -n "$lt_multi_os_dir"; then
11981 test -d "$lt_sys_path" && \
11982 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11985 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11986 BEGIN {RS = " "; FS = "/|\n";} {
11989 for (lt_i = NF; lt_i > 0; lt_i--) {
11990 if ($lt_i != "" && $lt_i != ".") {
11991 if ($lt_i == "..") {
11994 if (lt_count == 0) {
11995 lt_foo = "/" $lt_i lt_foo;
12002 if (lt_foo != "") { lt_freq[lt_foo]++; }
12003 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12005 # AWK program above erroneously prepends '/' to C:/dos/paths
12008 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12009 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12011 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12015 library_names_spec=
12016 libname_spec='lib$name'
12020 postuninstall_cmds=
12024 shlibpath_overrides_runpath=unknown
12026 dynamic_linker="$host_os ld.so"
12027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12028 need_lib_prefix=unknown
12029 hardcode_into_libs=no
12031 # when you set need_version to no, make sure it does not cause -set_version
12032 # flags to be left without arguments
12033 need_version=unknown
12039 version_type=linux # correct to gnu/linux during the next big refactor
12040 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12041 shlibpath_var=LIBPATH
12043 # AIX 3 has no versioning support, so we append a major version to the name.
12044 soname_spec='$libname$release$shared_ext$major'
12048 version_type=linux # correct to gnu/linux during the next big refactor
12051 hardcode_into_libs=yes
12052 if test ia64 = "$host_cpu"; then
12053 # AIX 5 supports IA64
12054 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12055 shlibpath_var=LD_LIBRARY_PATH
12057 # With GCC up to 2.95.x, collect2 would create an import file
12058 # for dependence libraries. The import file would start with
12059 # the line '#! .'. This would cause the generated library to
12060 # depend on '.', always an invalid library. This was fixed in
12061 # development snapshots of GCC prior to 3.0.
12063 aix4 | aix4.[01] | aix4.[01].*)
12064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12066 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12069 can_build_shared=no
12073 # Using Import Files as archive members, it is possible to support
12074 # filename-based versioning of shared library archives on AIX. While
12075 # this would work for both with and without runtime linking, it will
12076 # prevent static linking of such archives. So we do filename-based
12077 # shared library versioning with .so extension only, which is used
12078 # when both runtime linking and shared linking is enabled.
12079 # Unfortunately, runtime linking may impact performance, so we do
12080 # not want this to be the default eventually. Also, we use the
12081 # versioned .so libs for executables only if there is the -brtl
12082 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12083 # To allow for filename-based versioning support, we need to create
12084 # libNAME.so.V as an archive file, containing:
12085 # *) an Import File, referring to the versioned filename of the
12086 # archive as well as the shared archive member, telling the
12087 # bitwidth (32 or 64) of that shared object, and providing the
12088 # list of exported symbols of that shared object, eventually
12089 # decorated with the 'weak' keyword
12090 # *) the shared object with the F_LOADONLY flag set, to really avoid
12091 # it being seen by the linker.
12092 # At run time we better use the real file rather than another symlink,
12093 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12095 case $with_aix_soname,$aix_use_runtimelinking in
12096 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12097 # soname into executable. Probably we can add versioning support to
12098 # collect2, so additional links can be useful in future.
12099 aix,yes) # traditional libtool
12100 dynamic_linker='AIX unversionable lib.so'
12101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12102 # instead of lib<name>.a to let people know that these are not
12103 # typical AIX shared libraries.
12104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12106 aix,no) # traditional AIX only
12107 dynamic_linker='AIX lib.a(lib.so.V)'
12108 # We preserve .a as extension for shared libraries through AIX4.2
12109 # and later when we are not doing run time linking.
12110 library_names_spec='$libname$release.a $libname.a'
12111 soname_spec='$libname$release$shared_ext$major'
12113 svr4,*) # full svr4 only
12114 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12115 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12116 # We do not specify a path in Import Files, so LIBPATH fires.
12117 shlibpath_overrides_runpath=yes
12119 *,yes) # both, prefer svr4
12120 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12121 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12122 # unpreferred sharedlib libNAME.a needs extra handling
12123 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12124 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12125 # We do not specify a path in Import Files, so LIBPATH fires.
12126 shlibpath_overrides_runpath=yes
12128 *,no) # both, prefer aix
12129 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12130 library_names_spec='$libname$release.a $libname.a'
12131 soname_spec='$libname$release$shared_ext$major'
12132 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12133 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12134 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12137 shlibpath_var=LIBPATH
12144 # Since July 2007 AmigaOS4 officially supports .so libraries.
12145 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12149 library_names_spec='$libname.ixlibrary $libname.a'
12150 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12151 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12157 library_names_spec='$libname$shared_ext'
12158 dynamic_linker="$host_os ld.so"
12159 shlibpath_var=LIBRARY_PATH
12163 version_type=linux # correct to gnu/linux during the next big refactor
12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12166 soname_spec='$libname$release$shared_ext$major'
12167 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12170 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12171 # the default ld.so.conf also contains /usr/contrib/lib and
12172 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12173 # libtool to hard-code these into programs
12176 cygwin* | mingw* | pw32* | cegcc*)
12177 version_type=windows
12182 case $GCC,$cc_basename in
12185 library_names_spec='$libname.dll.a'
12186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12187 postinstall_cmds='base_file=`basename \$file`~
12188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12189 dldir=$destdir/`dirname \$dlpath`~
12190 test -d \$dldir || mkdir -p \$dldir~
12191 $install_prog $dir/$dlname \$dldir/$dlname~
12192 chmod a+x \$dldir/$dlname~
12193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12197 dlpath=$dir/\$dldll~
12199 shlibpath_overrides_runpath=yes
12203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12204 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12206 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12209 # MinGW DLLs use traditional 'lib' prefix
12210 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12213 # pw32 DLLs use 'pw' prefix rather than 'lib'
12214 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12217 dynamic_linker='Win32 ld.exe'
12222 libname_spec='$name'
12223 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12224 library_names_spec='$libname.dll.lib'
12228 sys_lib_search_path_spec=
12231 for lt_path in $LIB
12234 # Let DOS variable expansion print the short 8.3 style file name.
12235 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12236 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12239 # Convert to MSYS style.
12240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12243 # Convert to unix form, then to dos form, then back to unix form
12244 # but this time dos style (no spaces!) so that the unix form looks
12245 # like /cygdrive/c/PROGRA~1:/cygdr...
12246 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12247 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12248 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12251 sys_lib_search_path_spec=$LIB
12252 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12253 # It is most probably a Windows format PATH.
12254 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12258 # FIXME: find the short name or the path components, as spaces are
12259 # common. (e.g. "Program Files" -> "PROGRA~1")
12263 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12264 postinstall_cmds='base_file=`basename \$file`~
12265 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12266 dldir=$destdir/`dirname \$dlpath`~
12267 test -d \$dldir || mkdir -p \$dldir~
12268 $install_prog $dir/$dlname \$dldir/$dlname'
12269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12270 dlpath=$dir/\$dldll~
12272 shlibpath_overrides_runpath=yes
12273 dynamic_linker='Win32 link.exe'
12277 # Assume MSVC wrapper
12278 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12279 dynamic_linker='Win32 ld.exe'
12282 # FIXME: first we should search . and the directory the executable is in
12286 darwin* | rhapsody*)
12287 dynamic_linker="$host_os dyld"
12288 version_type=darwin
12291 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12292 soname_spec='$libname$release$major$shared_ext'
12293 shlibpath_overrides_runpath=yes
12294 shlibpath_var=DYLD_LIBRARY_PATH
12295 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12297 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12298 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12302 version_type=linux # correct to gnu/linux during the next big refactor
12305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12306 soname_spec='$libname$release$shared_ext$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12310 freebsd* | dragonfly*)
12311 # DragonFly does not have aout. When/if they implement a new
12312 # versioning mechanism, adjust this.
12313 if test -x /usr/bin/objformat; then
12314 objformat=`/usr/bin/objformat`
12317 freebsd[23].*) objformat=aout ;;
12318 *) objformat=elf ;;
12321 version_type=freebsd-$objformat
12322 case $version_type in
12324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12325 soname_spec='$libname$release$shared_ext$major'
12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12334 shlibpath_var=LD_LIBRARY_PATH
12337 shlibpath_overrides_runpath=yes
12339 freebsd3.[01]* | freebsdelf3.[01]*)
12340 shlibpath_overrides_runpath=yes
12341 hardcode_into_libs=yes
12343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12345 shlibpath_overrides_runpath=no
12346 hardcode_into_libs=yes
12348 *) # from 4.6 on, and DragonFly
12349 shlibpath_overrides_runpath=yes
12350 hardcode_into_libs=yes
12356 version_type=linux # correct to gnu/linux during the next big refactor
12359 dynamic_linker="$host_os runtime_loader"
12360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12361 soname_spec='$libname$release$shared_ext$major'
12362 shlibpath_var=LIBRARY_PATH
12363 shlibpath_overrides_runpath=no
12364 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12365 hardcode_into_libs=yes
12368 hpux9* | hpux10* | hpux11*)
12369 # Give a soname corresponding to the major version so that dld.sl refuses to
12370 # link against other versions.
12377 hardcode_into_libs=yes
12378 dynamic_linker="$host_os dld.so"
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382 soname_spec='$libname$release$shared_ext$major'
12383 if test 32 = "$HPUX_IA64_MODE"; then
12384 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12385 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12387 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12388 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12393 hardcode_into_libs=yes
12394 dynamic_linker="$host_os dld.sl"
12395 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12398 soname_spec='$libname$release$shared_ext$major'
12399 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12404 dynamic_linker="$host_os dld.sl"
12405 shlibpath_var=SHLIB_PATH
12406 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12408 soname_spec='$libname$release$shared_ext$major'
12411 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12412 postinstall_cmds='chmod 555 $lib'
12413 # or fails outright, so override atomically:
12414 install_override_mode=555
12418 version_type=linux # correct to gnu/linux during the next big refactor
12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422 soname_spec='$libname$release$shared_ext$major'
12423 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12424 shlibpath_var=LD_LIBRARY_PATH
12425 shlibpath_overrides_runpath=no
12426 hardcode_into_libs=yes
12429 irix5* | irix6* | nonstopux*)
12431 nonstopux*) version_type=nonstopux ;;
12433 if test yes = "$lt_cv_prog_gnu_ld"; then
12434 version_type=linux # correct to gnu/linux during the next big refactor
12441 soname_spec='$libname$release$shared_ext$major'
12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12444 irix5* | nonstopux*)
12445 libsuff= shlibsuff=
12448 case $LD in # libtool.m4 will add one of these switches to LD
12449 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12450 libsuff= shlibsuff= libmagic=32-bit;;
12451 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12452 libsuff=32 shlibsuff=N32 libmagic=N32;;
12453 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12454 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12455 *) libsuff= shlibsuff= libmagic=never-match;;
12459 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12460 shlibpath_overrides_runpath=no
12461 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12462 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12463 hardcode_into_libs=yes
12466 # No shared lib support for Linux oldld, aout, or coff.
12467 linux*oldld* | linux*aout* | linux*coff*)
12472 version_type=none # Android doesn't support versioned libraries.
12475 library_names_spec='$libname$release$shared_ext'
12476 soname_spec='$libname$release$shared_ext'
12478 shlibpath_var=LD_LIBRARY_PATH
12479 shlibpath_overrides_runpath=yes
12481 # This implies no fast_install, which is unacceptable.
12482 # Some rework will be needed to allow for fast_install
12483 # before this can be enabled.
12484 hardcode_into_libs=yes
12486 dynamic_linker='Android linker'
12487 # Don't embed -rpath directories since the linker doesn't support them.
12488 hardcode_libdir_flag_spec='-L$libdir'
12491 # This must be glibc/ELF.
12492 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12493 version_type=linux # correct to gnu/linux during the next big refactor
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497 soname_spec='$libname$release$shared_ext$major'
12498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 shlibpath_overrides_runpath=no
12502 # Some binutils ld are patched to set DT_RUNPATH
12503 if test ${lt_cv_shlibpath_overrides_runpath+y}
12505 printf %s "(cached) " >&6
12507 lt_cv_shlibpath_overrides_runpath=no
12508 save_LDFLAGS=$LDFLAGS
12509 save_libdir=$libdir
12510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12523 if ac_fn_c_try_link "$LINENO"
12525 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12527 lt_cv_shlibpath_overrides_runpath=yes
12530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12531 conftest$ac_exeext conftest.$ac_ext
12532 LDFLAGS=$save_LDFLAGS
12533 libdir=$save_libdir
12537 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12539 # This implies no fast_install, which is unacceptable.
12540 # Some rework will be needed to allow for fast_install
12541 # before this can be enabled.
12542 hardcode_into_libs=yes
12544 # Ideally, we could use ldconfig to report *all* directores which are
12545 # searched for libraries, however this is still not possible. Aside from not
12546 # being certain /sbin/ldconfig is available, command
12547 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12548 # even though it is searched at run-time. Try to do the best guess by
12549 # appending ld.so.conf contents (and includes) to the search path.
12550 if test -f /etc/ld.so.conf; then
12551 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' ' '`
12552 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12555 # We used to test for /lib/ld.so.1 and disable shared libraries on
12556 # powerpc, because MkLinux only supported shared libraries with the
12557 # GNU dynamic linker. Since this was broken with cross compilers,
12558 # most powerpc-linux boxes support dynamic linking these days and
12559 # people can always --disable-shared, the test was removed, and we
12560 # assume the GNU/Linux dynamic linker is in use.
12561 dynamic_linker='GNU/Linux ld.so'
12568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12569 soname_spec='${libname}${release}${shared_ext}$major'
12570 shlibpath_var=LD_LIBRARY_PATH
12571 shlibpath_overrides_runpath=no
12572 hardcode_into_libs=yes
12573 dynamic_linker='NetBSD ld.elf_so'
12580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12581 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12583 dynamic_linker='NetBSD (a.out) ld.so'
12585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12586 soname_spec='$libname$release$shared_ext$major'
12587 dynamic_linker='NetBSD ld.elf_so'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 shlibpath_overrides_runpath=yes
12591 hardcode_into_libs=yes
12595 version_type=linux # correct to gnu/linux during the next big refactor
12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 shlibpath_overrides_runpath=yes
12605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12606 soname_spec='$libname$release$shared_ext$major'
12607 shlibpath_var=LD_LIBRARY_PATH
12608 shlibpath_overrides_runpath=no
12609 hardcode_into_libs=yes
12610 dynamic_linker='ldqnx.so'
12613 openbsd* | bitrig*)
12615 sys_lib_dlsearch_path_spec=/usr/lib
12617 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12622 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 shlibpath_overrides_runpath=yes
12629 libname_spec='$name'
12630 version_type=windows
12634 # OS/2 can only load a DLL with a base name of 8 characters or less.
12635 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12636 v=$($ECHO $release$versuffix | tr -d .-);
12637 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12638 $ECHO $n$v`$shared_ext'
12639 library_names_spec='${libname}_dll.$libext'
12640 dynamic_linker='OS/2 ld.exe'
12641 shlibpath_var=BEGINLIBPATH
12642 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12644 postinstall_cmds='base_file=`basename \$file`~
12645 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12646 dldir=$destdir/`dirname \$dlpath`~
12647 test -d \$dldir || mkdir -p \$dldir~
12648 $install_prog $dir/$dlname \$dldir/$dlname~
12649 chmod a+x \$dldir/$dlname~
12650 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12651 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12654 dlpath=$dir/\$dldll~
12658 osf3* | osf4* | osf5*)
12662 soname_spec='$libname$release$shared_ext$major'
12663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12664 shlibpath_var=LD_LIBRARY_PATH
12665 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12674 version_type=linux # correct to gnu/linux during the next big refactor
12677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12678 soname_spec='$libname$release$shared_ext$major'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=yes
12681 hardcode_into_libs=yes
12682 # ldd complains unless libraries are executable
12683 postinstall_cmds='chmod +x $lib'
12688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12689 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12690 shlibpath_var=LD_LIBRARY_PATH
12691 shlibpath_overrides_runpath=yes
12692 if test yes = "$with_gnu_ld"; then
12699 version_type=linux # correct to gnu/linux during the next big refactor
12700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12701 soname_spec='$libname$release$shared_ext$major'
12702 shlibpath_var=LD_LIBRARY_PATH
12703 case $host_vendor in
12705 shlibpath_overrides_runpath=no
12707 runpath_var=LD_RUN_PATH
12715 shlibpath_overrides_runpath=no
12716 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12722 if test -d /usr/nec; then
12723 version_type=linux # correct to gnu/linux during the next big refactor
12724 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12725 soname_spec='$libname$shared_ext.$major'
12726 shlibpath_var=LD_LIBRARY_PATH
12730 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12735 soname_spec='$libname$release$shared_ext$major'
12736 shlibpath_var=LD_LIBRARY_PATH
12737 shlibpath_overrides_runpath=yes
12738 hardcode_into_libs=yes
12739 if test yes = "$with_gnu_ld"; then
12740 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12742 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12745 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12749 sys_lib_dlsearch_path_spec='/usr/lib'
12753 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12754 version_type=linux # correct to gnu/linux during the next big refactor
12757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12758 shlibpath_var=LD_LIBRARY_PATH
12759 shlibpath_overrides_runpath=no
12760 hardcode_into_libs=yes
12764 version_type=linux # correct to gnu/linux during the next big refactor
12765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12766 soname_spec='$libname$release$shared_ext$major'
12767 shlibpath_var=LD_LIBRARY_PATH
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12775 printf "%s\n" "$dynamic_linker" >&6; }
12776 test no = "$dynamic_linker" && can_build_shared=no
12778 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12779 if test yes = "$GCC"; then
12780 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12783 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12784 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12787 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12788 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12791 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12792 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12794 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12795 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12797 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12798 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12897 printf %s "checking how to hardcode library paths into programs... " >&6; }
12899 if test -n "$hardcode_libdir_flag_spec" ||
12900 test -n "$runpath_var" ||
12901 test yes = "$hardcode_automatic"; then
12903 # We can hardcode non-existent directories.
12904 if test no != "$hardcode_direct" &&
12905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12906 # have to relink, otherwise we might link with an installed library
12907 # when we should be linking with a yet-to-be-installed one
12908 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12909 test no != "$hardcode_minus_L"; then
12910 # Linking always hardcodes the temporary library directory.
12911 hardcode_action=relink
12913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12914 hardcode_action=immediate
12917 # We cannot hardcode anything, or else we can only hardcode existing
12919 hardcode_action=unsupported
12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12922 printf "%s\n" "$hardcode_action" >&6; }
12924 if test relink = "$hardcode_action" ||
12925 test yes = "$inherit_rpath"; then
12926 # Fast installation is not supported
12927 enable_fast_install=no
12928 elif test yes = "$shlibpath_overrides_runpath" ||
12929 test no = "$enable_shared"; then
12930 # Fast installation is not necessary
12931 enable_fast_install=needless
12939 if test yes != "$enable_dlopen"; then
12940 enable_dlopen=unknown
12941 enable_dlopen_self=unknown
12942 enable_dlopen_self_static=unknown
12949 lt_cv_dlopen=load_add_on
12951 lt_cv_dlopen_self=yes
12954 mingw* | pw32* | cegcc*)
12955 lt_cv_dlopen=LoadLibrary
12960 lt_cv_dlopen=dlopen
12965 # if libdl is installed we need to link against it
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12967 printf %s "checking for dlopen in -ldl... " >&6; }
12968 if test ${ac_cv_lib_dl_dlopen+y}
12970 printf %s "(cached) " >&6
12972 ac_check_lib_save_LIBS=$LIBS
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12989 if ac_fn_c_try_link "$LINENO"
12991 ac_cv_lib_dl_dlopen=yes
12993 ac_cv_lib_dl_dlopen=no
12995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12996 conftest$ac_exeext conftest.$ac_ext
12997 LIBS=$ac_check_lib_save_LIBS
12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13000 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13001 if test "x$ac_cv_lib_dl_dlopen" = xyes
13003 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13008 lt_cv_dlopen_self=yes
13015 # Don't try to run any link tests for TPF. We know it's impossible
13016 # because TPF is a cross-compiler, and we know how we open DSOs.
13017 lt_cv_dlopen=dlopen
13019 lt_cv_dlopen_self=no
13023 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13024 if test "x$ac_cv_func_shl_load" = xyes
13026 lt_cv_dlopen=shl_load
13028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13029 printf %s "checking for shl_load in -ldld... " >&6; }
13030 if test ${ac_cv_lib_dld_shl_load+y}
13032 printf %s "(cached) " >&6
13034 ac_check_lib_save_LIBS=$LIBS
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13039 /* Override any GCC internal prototype to avoid an error.
13040 Use char because int might match the return type of a GCC
13041 builtin and then its argument prototype would still apply. */
13046 return shl_load ();
13051 if ac_fn_c_try_link "$LINENO"
13053 ac_cv_lib_dld_shl_load=yes
13055 ac_cv_lib_dld_shl_load=no
13057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13058 conftest$ac_exeext conftest.$ac_ext
13059 LIBS=$ac_check_lib_save_LIBS
13061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13062 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13063 if test "x$ac_cv_lib_dld_shl_load" = xyes
13065 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13068 if test "x$ac_cv_func_dlopen" = xyes
13070 lt_cv_dlopen=dlopen
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13073 printf %s "checking for dlopen in -ldl... " >&6; }
13074 if test ${ac_cv_lib_dl_dlopen+y}
13076 printf %s "(cached) " >&6
13078 ac_check_lib_save_LIBS=$LIBS
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h. */
13083 /* Override any GCC internal prototype to avoid an error.
13084 Use char because int might match the return type of a GCC
13085 builtin and then its argument prototype would still apply. */
13095 if ac_fn_c_try_link "$LINENO"
13097 ac_cv_lib_dl_dlopen=yes
13099 ac_cv_lib_dl_dlopen=no
13101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13102 conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13106 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13107 if test "x$ac_cv_lib_dl_dlopen" = xyes
13109 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13112 printf %s "checking for dlopen in -lsvld... " >&6; }
13113 if test ${ac_cv_lib_svld_dlopen+y}
13115 printf %s "(cached) " >&6
13117 ac_check_lib_save_LIBS=$LIBS
13118 LIBS="-lsvld $LIBS"
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13122 /* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13134 if ac_fn_c_try_link "$LINENO"
13136 ac_cv_lib_svld_dlopen=yes
13138 ac_cv_lib_svld_dlopen=no
13140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13141 conftest$ac_exeext conftest.$ac_ext
13142 LIBS=$ac_check_lib_save_LIBS
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13145 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13146 if test "x$ac_cv_lib_svld_dlopen" = xyes
13148 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13151 printf %s "checking for dld_link in -ldld... " >&6; }
13152 if test ${ac_cv_lib_dld_dld_link+y}
13154 printf %s "(cached) " >&6
13156 ac_check_lib_save_LIBS=$LIBS
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13161 /* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
13168 return dld_link ();
13173 if ac_fn_c_try_link "$LINENO"
13175 ac_cv_lib_dld_dld_link=yes
13177 ac_cv_lib_dld_dld_link=no
13179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13180 conftest$ac_exeext conftest.$ac_ext
13181 LIBS=$ac_check_lib_save_LIBS
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13184 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13185 if test "x$ac_cv_lib_dld_dld_link" = xyes
13187 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13208 if test no = "$lt_cv_dlopen"; then
13214 case $lt_cv_dlopen in
13216 save_CPPFLAGS=$CPPFLAGS
13217 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13219 save_LDFLAGS=$LDFLAGS
13220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13223 LIBS="$lt_cv_dlopen_libs $LIBS"
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13226 printf %s "checking whether a program can dlopen itself... " >&6; }
13227 if test ${lt_cv_dlopen_self+y}
13229 printf %s "(cached) " >&6
13231 if test yes = "$cross_compiling"; then :
13232 lt_cv_dlopen_self=cross
13234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13235 lt_status=$lt_dlunknown
13236 cat > conftest.$ac_ext <<_LT_EOF
13237 #line $LINENO "configure"
13238 #include "confdefs.h"
13247 # define LT_DLGLOBAL RTLD_GLOBAL
13250 # define LT_DLGLOBAL DL_GLOBAL
13252 # define LT_DLGLOBAL 0
13256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13257 find out it does not work in some platform. */
13258 #ifndef LT_DLLAZY_OR_NOW
13260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13263 # define LT_DLLAZY_OR_NOW DL_LAZY
13266 # define LT_DLLAZY_OR_NOW RTLD_NOW
13269 # define LT_DLLAZY_OR_NOW DL_NOW
13271 # define LT_DLLAZY_OR_NOW 0
13278 /* When -fvisibility=hidden is used, assume the code has been annotated
13279 correspondingly for the symbols needed. */
13280 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13281 int fnord () __attribute__((visibility("default")));
13284 int fnord () { return 42; }
13287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288 int status = $lt_dlunknown;
13292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13295 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13296 else puts (dlerror ());
13298 /* dlclose (self); */
13306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13307 (eval $ac_link) 2>&5
13309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13310 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13311 (./conftest; exit; ) >&5 2>/dev/null
13313 case x$lt_status in
13314 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13315 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13316 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13319 # compilation failed
13320 lt_cv_dlopen_self=no
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13328 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13330 if test yes = "$lt_cv_dlopen_self"; then
13331 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13333 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13334 if test ${lt_cv_dlopen_self_static+y}
13336 printf %s "(cached) " >&6
13338 if test yes = "$cross_compiling"; then :
13339 lt_cv_dlopen_self_static=cross
13341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13342 lt_status=$lt_dlunknown
13343 cat > conftest.$ac_ext <<_LT_EOF
13344 #line $LINENO "configure"
13345 #include "confdefs.h"
13354 # define LT_DLGLOBAL RTLD_GLOBAL
13357 # define LT_DLGLOBAL DL_GLOBAL
13359 # define LT_DLGLOBAL 0
13363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13364 find out it does not work in some platform. */
13365 #ifndef LT_DLLAZY_OR_NOW
13367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13370 # define LT_DLLAZY_OR_NOW DL_LAZY
13373 # define LT_DLLAZY_OR_NOW RTLD_NOW
13376 # define LT_DLLAZY_OR_NOW DL_NOW
13378 # define LT_DLLAZY_OR_NOW 0
13385 /* When -fvisibility=hidden is used, assume the code has been annotated
13386 correspondingly for the symbols needed. */
13387 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13388 int fnord () __attribute__((visibility("default")));
13391 int fnord () { return 42; }
13394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13395 int status = $lt_dlunknown;
13399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13403 else puts (dlerror ());
13405 /* dlclose (self); */
13413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13414 (eval $ac_link) 2>&5
13416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13417 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13418 (./conftest; exit; ) >&5 2>/dev/null
13420 case x$lt_status in
13421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13423 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13426 # compilation failed
13427 lt_cv_dlopen_self_static=no
13434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13435 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13438 CPPFLAGS=$save_CPPFLAGS
13439 LDFLAGS=$save_LDFLAGS
13444 case $lt_cv_dlopen_self in
13445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13446 *) enable_dlopen_self=unknown ;;
13449 case $lt_cv_dlopen_self_static in
13450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13451 *) enable_dlopen_self_static=unknown ;;
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13474 printf %s "checking whether stripping libraries is possible... " >&6; }
13475 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13476 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13477 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13479 printf "%s\n" "yes" >&6; }
13481 # FIXME - insert some real tests, host_os isn't really good enough
13484 if test -n "$STRIP"; then
13485 striplib="$STRIP -x"
13486 old_striplib="$STRIP -S"
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 printf "%s\n" "yes" >&6; }
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 printf "%s\n" "no" >&6; }
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 printf "%s\n" "no" >&6; }
13512 # Report what library types will actually be built
13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13514 printf %s "checking if libtool supports shared libraries... " >&6; }
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13516 printf "%s\n" "$can_build_shared" >&6; }
13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13519 printf %s "checking whether to build shared libraries... " >&6; }
13520 test no = "$can_build_shared" && enable_shared=no
13522 # On AIX, shared libraries and static libraries use the same namespace, and
13523 # are all built from PIC.
13526 test yes = "$enable_shared" && enable_static=no
13527 if test -n "$RANLIB"; then
13528 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13529 postinstall_cmds='$RANLIB $lib'
13534 if test ia64 != "$host_cpu"; then
13535 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13536 yes,aix,yes) ;; # shared object as lib.so file only
13537 yes,svr4,*) ;; # shared object as lib.so archive member only
13538 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13544 printf "%s\n" "$enable_shared" >&6; }
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13547 printf %s "checking whether to build static libraries... " >&6; }
13548 # Make sure either enable_shared or enable_static is yes.
13549 test yes = "$enable_shared" || enable_static=yes
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13551 printf "%s\n" "$enable_static" >&6; }
13558 ac_cpp='$CPP $CPPFLAGS'
13559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13565 if test -n "$CXX" && ( test no != "$CXX" &&
13566 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13567 (test g++ != "$CXX"))); then
13569 ac_cpp='$CXXCPP $CPPFLAGS'
13570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13574 printf %s "checking how to run the C++ preprocessor... " >&6; }
13575 if test -z "$CXXCPP"; then
13576 if test ${ac_cv_prog_CXXCPP+y}
13578 printf %s "(cached) " >&6
13580 # Double quotes because $CXX needs to be expanded
13581 for CXXCPP in "$CXX -E" cpp /lib/cpp
13583 ac_preproc_ok=false
13584 for ac_cxx_preproc_warn_flag in '' yes
13586 # Use a header file that comes with gcc, so configuring glibc
13587 # with a fresh cross-compiler works.
13588 # On the NeXT, cc -E runs the code through the compiler's parser,
13589 # not just through cpp. "Syntax error" is here to catch this case.
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 #include <limits.h>
13595 if ac_fn_cxx_try_cpp "$LINENO"
13599 # Broken: fails on valid input.
13602 rm -f conftest.err conftest.i conftest.$ac_ext
13604 # OK, works on sane cases. Now check whether nonexistent headers
13605 # can be detected and how.
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 #include <ac_nonexistent.h>
13610 if ac_fn_cxx_try_cpp "$LINENO"
13612 # Broken: success on invalid input.
13615 # Passes both tests.
13619 rm -f conftest.err conftest.i conftest.$ac_ext
13622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13623 rm -f conftest.i conftest.err conftest.$ac_ext
13630 ac_cv_prog_CXXCPP=$CXXCPP
13633 CXXCPP=$ac_cv_prog_CXXCPP
13635 ac_cv_prog_CXXCPP=$CXXCPP
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13638 printf "%s\n" "$CXXCPP" >&6; }
13639 ac_preproc_ok=false
13640 for ac_cxx_preproc_warn_flag in '' yes
13642 # Use a header file that comes with gcc, so configuring glibc
13643 # with a fresh cross-compiler works.
13644 # On the NeXT, cc -E runs the code through the compiler's parser,
13645 # not just through cpp. "Syntax error" is here to catch this case.
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 #include <limits.h>
13651 if ac_fn_cxx_try_cpp "$LINENO"
13655 # Broken: fails on valid input.
13658 rm -f conftest.err conftest.i conftest.$ac_ext
13660 # OK, works on sane cases. Now check whether nonexistent headers
13661 # can be detected and how.
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include <ac_nonexistent.h>
13666 if ac_fn_cxx_try_cpp "$LINENO"
13668 # Broken: success on invalid input.
13671 # Passes both tests.
13675 rm -f conftest.err conftest.i conftest.$ac_ext
13678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13679 rm -f conftest.i conftest.err conftest.$ac_ext
13684 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13685 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13686 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13687 See \`config.log' for more details" "$LINENO" 5; }
13691 ac_cpp='$CPP $CPPFLAGS'
13692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13697 _lt_caught_CXX_error=yes
13701 ac_cpp='$CXXCPP $CPPFLAGS'
13702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13706 archive_cmds_need_lc_CXX=no
13707 allow_undefined_flag_CXX=
13708 always_export_symbols_CXX=no
13709 archive_expsym_cmds_CXX=
13710 compiler_needs_object_CXX=no
13711 export_dynamic_flag_spec_CXX=
13712 hardcode_direct_CXX=no
13713 hardcode_direct_absolute_CXX=no
13714 hardcode_libdir_flag_spec_CXX=
13715 hardcode_libdir_separator_CXX=
13716 hardcode_minus_L_CXX=no
13717 hardcode_shlibpath_var_CXX=unsupported
13718 hardcode_automatic_CXX=no
13719 inherit_rpath_CXX=no
13721 module_expsym_cmds_CXX=
13722 link_all_deplibs_CXX=unknown
13723 old_archive_cmds_CXX=$old_archive_cmds
13724 reload_flag_CXX=$reload_flag
13725 reload_cmds_CXX=$reload_cmds
13726 no_undefined_flag_CXX=
13727 whole_archive_flag_spec_CXX=
13728 enable_shared_with_static_runtimes_CXX=no
13730 # Source file extension for C++ test sources.
13733 # Object file extension for compiled C++ test sources.
13737 # No sense in running all these tests if we already determined that
13738 # the CXX compiler isn't working. Some variables (like enable_shared)
13739 # are currently assumed to apply to all compilers on this platform,
13740 # and will be corrupted by setting them based on a non-working compiler.
13741 if test yes != "$_lt_caught_CXX_error"; then
13742 # Code to be used in simple compile tests
13743 lt_simple_compile_test_code="int some_variable = 0;"
13745 # Code to be used in simple link tests
13746 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13748 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13755 # If no C compiler was specified, use CC.
13758 # If no C compiler flags were specified, use CFLAGS.
13759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13761 # Allow CC to be a program name with arguments.
13765 # save warnings/boilerplate of simple test code
13766 ac_outfile=conftest.$ac_objext
13767 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13768 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13769 _lt_compiler_boilerplate=`cat conftest.err`
13772 ac_outfile=conftest.$ac_objext
13773 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13774 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13775 _lt_linker_boilerplate=`cat conftest.err`
13779 # Allow CC to be a program name with arguments.
13781 lt_save_CFLAGS=$CFLAGS
13785 lt_save_with_gnu_ld=$with_gnu_ld
13786 lt_save_path_LD=$lt_cv_path_LD
13787 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13788 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13790 $as_unset lt_cv_prog_gnu_ld
13792 if test -n "${lt_cv_path_LDCXX+set}"; then
13793 lt_cv_path_LD=$lt_cv_path_LDCXX
13795 $as_unset lt_cv_path_LD
13797 test -z "${LDCXX+set}" || LD=$LDCXX
13802 func_cc_basename $compiler
13803 cc_basename=$func_cc_basename_result
13806 if test -n "$compiler"; then
13807 # We don't want -fno-exception when compiling C++ code, so set the
13808 # no_builtin_flag separately
13809 if test yes = "$GXX"; then
13810 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13812 lt_prog_compiler_no_builtin_flag_CXX=
13815 if test yes = "$GXX"; then
13816 # Set up default GNU C++ configuration
13820 # Check whether --with-gnu-ld was given.
13821 if test ${with_gnu_ld+y}
13823 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13829 if test yes = "$GCC"; then
13830 # Check if gcc -print-prog-name=ld gives a path.
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13832 printf %s "checking for ld used by $CC... " >&6; }
13835 # gcc leaves a trailing carriage return, which upsets mingw
13836 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13838 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13841 # Accept absolute paths.
13843 re_direlt='/[^/][^/]*/\.\./'
13844 # Canonicalize the pathname of ld
13845 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13846 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13847 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13849 test -z "$LD" && LD=$ac_prog
13852 # If it fails, then pretend we aren't using GCC.
13856 # If it is relative, then search for the first ld in PATH.
13857 with_gnu_ld=unknown
13860 elif test yes = "$with_gnu_ld"; then
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13862 printf %s "checking for GNU ld... " >&6; }
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13865 printf %s "checking for non-GNU ld... " >&6; }
13867 if test ${lt_cv_path_LD+y}
13869 printf %s "(cached) " >&6
13871 if test -z "$LD"; then
13872 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13873 for ac_dir in $PATH; do
13875 test -z "$ac_dir" && ac_dir=.
13876 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13877 lt_cv_path_LD=$ac_dir/$ac_prog
13878 # Check to see if the program is GNU ld. I'd rather use --version,
13879 # but apparently some variants of GNU ld only accept -v.
13880 # Break only if it was the GNU/non-GNU ld that we prefer.
13881 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13882 *GNU* | *'with BFD'*)
13883 test no != "$with_gnu_ld" && break
13886 test yes != "$with_gnu_ld" && break
13893 lt_cv_path_LD=$LD # Let the user override the test with a path.
13898 if test -n "$LD"; then
13899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13900 printf "%s\n" "$LD" >&6; }
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 printf "%s\n" "no" >&6; }
13905 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13907 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13908 if test ${lt_cv_prog_gnu_ld+y}
13910 printf %s "(cached) " >&6
13912 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13913 case `$LD -v 2>&1 </dev/null` in
13914 *GNU* | *'with BFD'*)
13915 lt_cv_prog_gnu_ld=yes
13918 lt_cv_prog_gnu_ld=no
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13923 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
13924 with_gnu_ld=$lt_cv_prog_gnu_ld
13932 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13933 # archiving commands below assume that GNU ld is being used.
13934 if test yes = "$with_gnu_ld"; then
13935 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13936 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'
13938 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13939 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13941 # If archive_cmds runs LD, not CC, wlarc should be empty
13942 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13943 # investigate it a little bit more. (MM)
13946 # ancient GNU ld didn't support --whole-archive et. al.
13947 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13948 $GREP 'no-whole-archive' > /dev/null; then
13949 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13951 whole_archive_flag_spec_CXX=
13957 # A generic and very simple default shared library creation
13958 # command for GNU C++ for the case where it uses the native
13959 # linker, instead of GNU ld. If possible, this setting should
13960 # overridden to take advantage of the native linker features on
13961 # the platform it is being used on.
13962 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13965 # Commands to make compiler produce verbose output that lists
13966 # what "hidden" libraries, object files and flags are used when
13967 # linking a shared library.
13968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13976 # PORTME: fill in a description of your system's C++ link characteristics
13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13978 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13982 # FIXME: insert proper C++ library support
13986 if test ia64 = "$host_cpu"; then
13987 # On IA64, the linker does run time linking by default, so we don't
13988 # have to do anything special.
13989 aix_use_runtimelinking=no
13990 exp_sym_flag='-Bexport'
13993 aix_use_runtimelinking=no
13995 # Test if we are trying to use run time linking or normal
13996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13997 # have runtime linking enabled, and use it for executables.
13998 # For shared libraries, we enable/disable runtime linking
13999 # depending on the kind of the shared library created -
14000 # when "with_aix_soname,aix_use_runtimelinking" is:
14001 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14002 # "aix,yes" lib.so shared, rtl:yes, for executables
14003 # lib.a static archive
14004 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14005 # lib.a(lib.so.V) shared, rtl:no, for executables
14006 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14007 # lib.a(lib.so.V) shared, rtl:no
14008 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14009 # lib.a static archive
14010 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14011 for ld_flag in $LDFLAGS; do
14014 aix_use_runtimelinking=yes
14019 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14020 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14021 # so we don't have lib.a shared libs to link our executables.
14022 # We have to force runtime linking in this case.
14023 aix_use_runtimelinking=yes
14024 LDFLAGS="$LDFLAGS -Wl,-brtl"
14029 exp_sym_flag='-bexport'
14030 no_entry_flag='-bnoentry'
14033 # When large executables or shared objects are built, AIX ld can
14034 # have problems creating the table of contents. If linking a library
14035 # or program results in "error TOC overflow" add -mminimal-toc to
14036 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14037 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14039 archive_cmds_CXX=''
14040 hardcode_direct_CXX=yes
14041 hardcode_direct_absolute_CXX=yes
14042 hardcode_libdir_separator_CXX=':'
14043 link_all_deplibs_CXX=yes
14044 file_list_spec_CXX='$wl-f,'
14045 case $with_aix_soname,$aix_use_runtimelinking in
14046 aix,*) ;; # no import file
14047 svr4,* | *,yes) # use import file
14048 # The Import File defines what to hardcode.
14049 hardcode_direct_CXX=no
14050 hardcode_direct_absolute_CXX=no
14054 if test yes = "$GXX"; then
14055 case $host_os in aix4.[012]|aix4.[012].*)
14056 # We only want to do this on AIX 4.2 and lower, the check
14057 # below for broken collect2 doesn't work under 4.3+
14058 collect2name=`$CC -print-prog-name=collect2`
14059 if test -f "$collect2name" &&
14060 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14062 # We have reworked collect2
14065 # We have old collect2
14066 hardcode_direct_CXX=unsupported
14067 # It fails to find uninstalled libraries when the uninstalled
14068 # path is not listed in the libpath. Setting hardcode_minus_L
14069 # to unsupported forces relinking
14070 hardcode_minus_L_CXX=yes
14071 hardcode_libdir_flag_spec_CXX='-L$libdir'
14072 hardcode_libdir_separator_CXX=
14075 shared_flag='-shared'
14076 if test yes = "$aix_use_runtimelinking"; then
14077 shared_flag=$shared_flag' $wl-G'
14079 # Need to ensure runtime linking is disabled for the traditional
14080 # shared library, or the linker may eventually find shared libraries
14081 # /with/ Import File - we do not want to mix them.
14082 shared_flag_aix='-shared'
14083 shared_flag_svr4='-shared $wl-G'
14086 if test ia64 = "$host_cpu"; then
14087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14088 # chokes on -Wl,-G. The following line is correct:
14091 if test yes = "$aix_use_runtimelinking"; then
14092 shared_flag='$wl-G'
14094 shared_flag='$wl-bM:SRE'
14096 shared_flag_aix='$wl-bM:SRE'
14097 shared_flag_svr4='$wl-G'
14101 export_dynamic_flag_spec_CXX='$wl-bexpall'
14102 # It seems that -bexpall does not export symbols beginning with
14103 # underscore (_), so it is better to generate a list of symbols to
14105 always_export_symbols_CXX=yes
14106 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14107 # Warning - without using the other runtime loading flags (-brtl),
14108 # -berok will link without error, but may produce a broken library.
14109 # The "-G" linker flag allows undefined symbols.
14110 no_undefined_flag_CXX='-bernotok'
14111 # Determine the default libpath from the value encoded in an empty
14113 if test set = "${lt_cv_aix_libpath+set}"; then
14114 aix_libpath=$lt_cv_aix_libpath
14116 if test ${lt_cv_aix_libpath__CXX+y}
14118 printf %s "(cached) " >&6
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14131 if ac_fn_cxx_try_link "$LINENO"
14134 lt_aix_libpath_sed='
14135 /Import File Strings/,/^$/ {
14137 s/^0 *\([^ ]*\) *$/\1/
14141 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14142 # Check for a 64-bit object if we didn't find anything.
14143 if test -z "$lt_cv_aix_libpath__CXX"; then
14144 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14148 conftest$ac_exeext conftest.$ac_ext
14149 if test -z "$lt_cv_aix_libpath__CXX"; then
14150 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14155 aix_libpath=$lt_cv_aix_libpath__CXX
14158 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14160 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14162 if test ia64 = "$host_cpu"; then
14163 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14164 allow_undefined_flag_CXX="-z nodefs"
14165 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"
14167 # Determine the default libpath from the value encoded in an
14168 # empty executable.
14169 if test set = "${lt_cv_aix_libpath+set}"; then
14170 aix_libpath=$lt_cv_aix_libpath
14172 if test ${lt_cv_aix_libpath__CXX+y}
14174 printf %s "(cached) " >&6
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14187 if ac_fn_cxx_try_link "$LINENO"
14190 lt_aix_libpath_sed='
14191 /Import File Strings/,/^$/ {
14193 s/^0 *\([^ ]*\) *$/\1/
14197 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14198 # Check for a 64-bit object if we didn't find anything.
14199 if test -z "$lt_cv_aix_libpath__CXX"; then
14200 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14204 conftest$ac_exeext conftest.$ac_ext
14205 if test -z "$lt_cv_aix_libpath__CXX"; then
14206 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14211 aix_libpath=$lt_cv_aix_libpath__CXX
14214 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14215 # Warning - without using the other run time loading flags,
14216 # -berok will link without error, but may produce a broken library.
14217 no_undefined_flag_CXX=' $wl-bernotok'
14218 allow_undefined_flag_CXX=' $wl-berok'
14219 if test yes = "$with_gnu_ld"; then
14220 # We only use this code for GNU lds that support --whole-archive.
14221 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14223 # Exported symbols can be pulled into shared objects from archives
14224 whole_archive_flag_spec_CXX='$convenience'
14226 archive_cmds_need_lc_CXX=yes
14227 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14228 # -brtl affects multiple linker settings, -berok does not and is overridden later
14229 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14230 if test svr4 != "$with_aix_soname"; then
14231 # This is similar to how AIX traditionally builds its shared
14232 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14233 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14235 if test aix != "$with_aix_soname"; then
14236 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14238 # used by -dlpreopen to get the symbols
14239 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14241 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14248 allow_undefined_flag_CXX=unsupported
14249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14250 # support --undefined. This deserves some investigation. FIXME
14251 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14258 case $cc_basename in
14260 # FIXME: insert proper C++ library support
14266 cygwin* | mingw* | pw32* | cegcc*)
14267 case $GXX,$cc_basename in
14270 # hardcode_libdir_flag_spec is actually meaningless, as there is
14271 # no search path for DLLs.
14272 hardcode_libdir_flag_spec_CXX=' '
14273 allow_undefined_flag_CXX=unsupported
14274 always_export_symbols_CXX=yes
14275 file_list_spec_CXX='@'
14276 # Tell ltmain to make .lib files, not .a files.
14278 # Tell ltmain to make .dll files, not .so files.
14280 # FIXME: Setting linknames here is a bad hack.
14281 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14282 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14283 cp "$export_symbols" "$output_objdir/$soname.def";
14284 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14286 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14288 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14290 # The linker will not automatically build a static lib if we build a DLL.
14291 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14292 enable_shared_with_static_runtimes_CXX=yes
14294 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14295 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14296 lt_tool_outputfile="@TOOL_OUTPUT@"~
14297 case $lt_outputfile in
14300 lt_outputfile=$lt_outputfile.exe
14301 lt_tool_outputfile=$lt_tool_outputfile.exe
14304 func_to_tool_file "$lt_outputfile"~
14305 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14306 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14307 $RM "$lt_outputfile.manifest";
14312 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14313 # as there is no search path for DLLs.
14314 hardcode_libdir_flag_spec_CXX='-L$libdir'
14315 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14316 allow_undefined_flag_CXX=unsupported
14317 always_export_symbols_CXX=no
14318 enable_shared_with_static_runtimes_CXX=yes
14320 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14321 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'
14322 # If the export-symbols file already is a .def file, use it as
14323 # is; otherwise, prepend EXPORTS...
14324 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14325 cp $export_symbols $output_objdir/$soname.def;
14327 echo EXPORTS > $output_objdir/$soname.def;
14328 cat $export_symbols >> $output_objdir/$soname.def;
14330 $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'
14337 darwin* | rhapsody*)
14340 archive_cmds_need_lc_CXX=no
14341 hardcode_direct_CXX=no
14342 hardcode_automatic_CXX=yes
14343 hardcode_shlibpath_var_CXX=unsupported
14344 if test yes = "$lt_cv_ld_force_load"; then
14345 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\"`'
14348 whole_archive_flag_spec_CXX=''
14350 link_all_deplibs_CXX=yes
14351 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14352 case $cc_basename in
14353 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14354 *) _lt_dar_can_shared=$GCC ;;
14356 if test yes = "$_lt_dar_can_shared"; then
14357 output_verbose_link_cmd=func_echo_all
14358 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"
14359 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14360 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"
14361 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"
14362 if test yes != "$lt_cv_apple_cc_single_mod"; then
14363 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"
14364 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"
14374 hardcode_libdir_flag_spec_CXX='-L$libdir'
14375 hardcode_minus_L_CXX=yes
14376 allow_undefined_flag_CXX=unsupported
14378 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14379 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14380 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14381 $ECHO EXPORTS >> $output_objdir/$libname.def~
14382 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14383 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14384 emximp -o $lib $output_objdir/$libname.def'
14385 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14386 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14387 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14388 $ECHO EXPORTS >> $output_objdir/$libname.def~
14389 prefix_cmds="$SED"~
14390 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14391 prefix_cmds="$prefix_cmds -e 1d";
14393 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14394 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14395 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14396 emximp -o $lib $output_objdir/$libname.def'
14397 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14398 enable_shared_with_static_runtimes_CXX=yes
14402 case $cc_basename in
14404 # FIXME: insert proper C++ library support
14408 # Green Hills C++ Compiler
14409 # FIXME: insert proper C++ library support
14413 # FIXME: insert proper C++ library support
14420 # C++ shared libraries reported to be fairly broken before
14426 archive_cmds_need_lc_CXX=no
14429 freebsd* | dragonfly*)
14430 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14436 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14437 link_all_deplibs_CXX=yes
14441 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14442 hardcode_libdir_separator_CXX=:
14443 export_dynamic_flag_spec_CXX='$wl-E'
14444 hardcode_direct_CXX=yes
14445 hardcode_minus_L_CXX=yes # Not in the search PATH,
14446 # but as the default
14447 # location of the library.
14449 case $cc_basename in
14451 # FIXME: insert proper C++ library support
14455 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14456 # Commands to make compiler produce verbose output that lists
14457 # what "hidden" libraries, object files and flags are used when
14458 # linking a shared library.
14460 # There doesn't appear to be a way to prevent this compiler from
14461 # explicitly linking system object files so we need to strip them
14462 # from the output so that they don't get included in the library
14464 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"'
14467 if test yes = "$GXX"; then
14468 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14470 # FIXME: insert proper C++ library support
14478 if test no = "$with_gnu_ld"; then
14479 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14480 hardcode_libdir_separator_CXX=:
14486 export_dynamic_flag_spec_CXX='$wl-E'
14492 hardcode_direct_CXX=no
14493 hardcode_shlibpath_var_CXX=no
14496 hardcode_direct_CXX=yes
14497 hardcode_direct_absolute_CXX=yes
14498 hardcode_minus_L_CXX=yes # Not in the search PATH,
14499 # but as the default
14500 # location of the library.
14504 case $cc_basename in
14506 # FIXME: insert proper C++ library support
14512 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14515 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14518 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14521 # Commands to make compiler produce verbose output that lists
14522 # what "hidden" libraries, object files and flags are used when
14523 # linking a shared library.
14525 # There doesn't appear to be a way to prevent this compiler from
14526 # explicitly linking system object files so we need to strip them
14527 # from the output so that they don't get included in the library
14529 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"'
14532 if test yes = "$GXX"; then
14533 if test no = "$with_gnu_ld"; then
14536 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14539 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14542 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'
14547 # FIXME: insert proper C++ library support
14555 hardcode_direct_CXX=no
14556 hardcode_shlibpath_var_CXX=no
14557 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14558 export_dynamic_flag_spec_CXX='$wl-E'
14559 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14560 # Instead, shared libraries are loaded at an image base (0x10000000 by
14561 # default) and relocated if they conflict, which is a slow very memory
14562 # consuming and fragmenting process. To avoid this, we pick a random,
14563 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14564 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14565 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'
14566 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'
14569 case $cc_basename in
14572 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'
14574 # Archives containing C++ object files must be created using
14575 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14576 # necessary to make sure instantiated templates are included
14578 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14581 if test yes = "$GXX"; then
14582 if test no = "$with_gnu_ld"; then
14583 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'
14585 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'
14588 link_all_deplibs_CXX=yes
14591 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14592 hardcode_libdir_separator_CXX=:
14593 inherit_rpath_CXX=yes
14596 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14597 case $cc_basename in
14599 # Kuck and Associates, Inc. (KAI) C++ Compiler
14601 # KCC will only create a shared library if the output file
14602 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14603 # to its proper name (with version) after linking.
14604 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'
14605 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'
14606 # Commands to make compiler produce verbose output that lists
14607 # what "hidden" libraries, object files and flags are used when
14608 # linking a shared library.
14610 # There doesn't appear to be a way to prevent this compiler from
14611 # explicitly linking system object files so we need to strip them
14612 # from the output so that they don't get included in the library
14614 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"'
14616 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14617 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14619 # Archives containing C++ object files must be created using
14620 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14621 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14626 # version 8.0 and above of icpc choke on multiply defined symbols
14627 # if we add $predep_objects and $postdep_objects, however 7.1 and
14628 # earlier do not add the objects themselves.
14629 case `$CC -V 2>&1` in
14631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14632 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'
14634 *) # Version 8.0 or newer
14637 ia64*) tmp_idyn=' -i_dynamic';;
14639 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14640 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'
14643 archive_cmds_need_lc_CXX=no
14644 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14645 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14646 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14649 # Portland Group C++ compiler
14651 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14652 prelink_cmds_CXX='tpldir=Template.dir~
14654 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14655 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14656 old_archive_cmds_CXX='tpldir=Template.dir~
14658 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14659 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14661 archive_cmds_CXX='tpldir=Template.dir~
14663 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14664 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14665 archive_expsym_cmds_CXX='tpldir=Template.dir~
14667 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14668 $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'
14670 *) # Version 6 and above use weak symbols
14671 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14672 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'
14676 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14677 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14678 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'
14682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14683 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'
14685 runpath_var=LD_RUN_PATH
14686 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14687 hardcode_libdir_separator_CXX=:
14689 # Commands to make compiler produce verbose output that lists
14690 # what "hidden" libraries, object files and flags are used when
14691 # linking a shared library.
14693 # There doesn't appear to be a way to prevent this compiler from
14694 # explicitly linking system object files so we need to strip them
14695 # from the output so that they don't get included in the library
14697 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'
14699 xl* | mpixl* | bgxl*)
14700 # IBM XL 8.0 on PPC, with GNU ld
14701 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14702 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14703 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14704 if test yes = "$supports_anon_versioning"; then
14705 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14707 echo "local: *; };" >> $output_objdir/$libname.ver~
14708 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14712 case `$CC -V 2>&1 | sed 5q` in
14715 no_undefined_flag_CXX=' -zdefs'
14716 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14717 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'
14718 hardcode_libdir_flag_spec_CXX='-R$libdir'
14719 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'
14720 compiler_needs_object_CXX=yes
14722 # Not sure whether something based on
14723 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14725 output_verbose_link_cmd='func_echo_all'
14727 # Archives containing C++ object files must be created using
14728 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14729 # necessary to make sure instantiated templates are included
14731 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14739 # FIXME: insert proper C++ library support
14744 # FIXME: insert proper C++ library support
14749 case $cc_basename in
14751 # FIXME: insert proper C++ library support
14755 # FIXME: insert proper C++ library support
14762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14763 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14765 hardcode_libdir_flag_spec_CXX='-R$libdir'
14766 hardcode_direct_CXX=yes
14767 hardcode_shlibpath_var_CXX=no
14769 # Workaround some broken pre-1.5 toolchains
14770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14777 openbsd* | bitrig*)
14778 if test -f /usr/libexec/ld.so; then
14779 hardcode_direct_CXX=yes
14780 hardcode_shlibpath_var_CXX=no
14781 hardcode_direct_absolute_CXX=yes
14782 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14783 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14785 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14786 export_dynamic_flag_spec_CXX='$wl-E'
14787 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14789 output_verbose_link_cmd=func_echo_all
14795 osf3* | osf4* | osf5*)
14796 case $cc_basename in
14798 # Kuck and Associates, Inc. (KAI) C++ Compiler
14800 # KCC will only create a shared library if the output file
14801 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14802 # to its proper name (with version) after linking.
14803 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'
14805 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14806 hardcode_libdir_separator_CXX=:
14808 # Archives containing C++ object files must be created using
14809 # the KAI C++ compiler.
14811 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14812 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14816 # Rational C++ 2.4.1
14817 # FIXME: insert proper C++ library support
14823 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14824 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'
14825 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14828 allow_undefined_flag_CXX=' -expect_unresolved \*'
14829 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'
14830 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14831 echo "-hidden">> $lib.exp~
14832 $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~
14834 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14838 hardcode_libdir_separator_CXX=:
14840 # Commands to make compiler produce verbose output that lists
14841 # what "hidden" libraries, object files and flags are used when
14842 # linking a shared library.
14844 # There doesn't appear to be a way to prevent this compiler from
14845 # explicitly linking system object files so we need to strip them
14846 # from the output so that they don't get included in the library
14848 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"'
14851 if test yes,no = "$GXX,$with_gnu_ld"; then
14852 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14855 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'
14858 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'
14862 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14863 hardcode_libdir_separator_CXX=:
14865 # Commands to make compiler produce verbose output that lists
14866 # what "hidden" libraries, object files and flags are used when
14867 # linking a shared library.
14868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14871 # FIXME: insert proper C++ library support
14879 # FIXME: insert proper C++ library support
14884 case $cc_basename in
14887 # FIXME: insert proper C++ library support
14892 # FIXME: insert proper C++ library support
14896 # FIXME: insert proper C++ library support
14903 case $cc_basename in
14905 # Sun C++ 4.2, 5.x and Centerline C++
14906 archive_cmds_need_lc_CXX=yes
14907 no_undefined_flag_CXX=' -zdefs'
14908 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14909 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14910 $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'
14912 hardcode_libdir_flag_spec_CXX='-R$libdir'
14913 hardcode_shlibpath_var_CXX=no
14915 solaris2.[0-5] | solaris2.[0-5].*) ;;
14917 # The compiler driver will combine and reorder linker options,
14918 # but understands '-z linker_flag'.
14919 # Supported since Solaris 2.6 (maybe 2.5.1?)
14920 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14923 link_all_deplibs_CXX=yes
14925 output_verbose_link_cmd='func_echo_all'
14927 # Archives containing C++ object files must be created using
14928 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14929 # necessary to make sure instantiated templates are included
14931 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14934 # Green Hills C++ Compiler
14935 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14937 # The C++ compiler must be used to create the archive.
14938 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14941 # GNU C++ compiler with Solaris linker
14942 if test yes,no = "$GXX,$with_gnu_ld"; then
14943 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14944 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14945 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14946 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14947 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14949 # Commands to make compiler produce verbose output that lists
14950 # what "hidden" libraries, object files and flags are used when
14951 # linking a shared library.
14952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14954 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14956 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14957 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14958 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14960 # Commands to make compiler produce verbose output that lists
14961 # what "hidden" libraries, object files and flags are used when
14962 # linking a shared library.
14963 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14966 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14968 solaris2.[0-5] | solaris2.[0-5].*) ;;
14970 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14978 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14979 no_undefined_flag_CXX='$wl-z,text'
14980 archive_cmds_need_lc_CXX=no
14981 hardcode_shlibpath_var_CXX=no
14982 runpath_var='LD_RUN_PATH'
14984 case $cc_basename in
14986 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14987 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14990 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996 sysv5* | sco3.2v5* | sco5v6*)
14997 # Note: We CANNOT use -z defs as we might desire, because we do not
14998 # link with -lc, and that would cause any symbols used from libc to
14999 # always be unresolved, which means just about no library would
15000 # ever link correctly. If we're not using GNU ld we use -z text
15001 # though, which does catch some bad symbols but isn't as heavy-handed
15003 no_undefined_flag_CXX='$wl-z,text'
15004 allow_undefined_flag_CXX='$wl-z,nodefs'
15005 archive_cmds_need_lc_CXX=no
15006 hardcode_shlibpath_var_CXX=no
15007 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15008 hardcode_libdir_separator_CXX=':'
15009 link_all_deplibs_CXX=yes
15010 export_dynamic_flag_spec_CXX='$wl-Bexport'
15011 runpath_var='LD_RUN_PATH'
15013 case $cc_basename in
15015 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15016 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15018 '"$old_archive_cmds_CXX"
15019 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15020 '"$reload_cmds_CXX"
15023 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15024 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 case $cc_basename in
15032 # NonStop-UX NCC 3.20
15033 # FIXME: insert proper C++ library support
15037 # FIXME: insert proper C++ library support
15044 # FIXME: insert proper C++ library support
15049 # FIXME: insert proper C++ library support
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15055 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15056 test no = "$ld_shlibs_CXX" && can_build_shared=no
15062 ## There is no encapsulation within the following macros, do not change
15063 ## the running order or otherwise move them around unless you know exactly
15064 ## what you are doing...
15065 # Dependencies to place before and after the object being linked:
15066 predep_objects_CXX=
15067 postdep_objects_CXX=
15070 compiler_lib_search_path_CXX=
15072 cat > conftest.$ac_ext <<_LT_EOF
15076 Foo (void) { a = 0; }
15083 _lt_libdeps_save_CFLAGS=$CFLAGS
15084 case "$CC $CFLAGS " in #(
15085 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15086 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15087 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15091 (eval $ac_compile) 2>&5
15093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15094 test $ac_status = 0; }; then
15095 # Parse the compiler output and extract the necessary
15096 # objects, libraries and library flags.
15098 # Sentinel used to keep track of whether or not we are before
15099 # the conftest object file.
15100 pre_test_object_deps_done=no
15102 for p in `eval "$output_verbose_link_cmd"`; do
15106 # Some compilers place space between "-{L,R}" and the path.
15107 # Remove the space.
15108 if test x-L = "$p" ||
15109 test x-R = "$p"; then
15114 # Expand the sysroot to ease extracting the directories later.
15115 if test -z "$prev"; then
15117 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15118 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15119 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15123 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15125 if test no = "$pre_test_object_deps_done"; then
15128 # Internal compiler library paths should come after those
15129 # provided the user. The postdeps already come after the
15130 # user supplied libs so there is no need to process them.
15131 if test -z "$compiler_lib_search_path_CXX"; then
15132 compiler_lib_search_path_CXX=$prev$p
15134 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15137 # The "-l" case would never come before the object being
15138 # linked, so don't bother handling this case.
15141 if test -z "$postdeps_CXX"; then
15142 postdeps_CXX=$prev$p
15144 postdeps_CXX="${postdeps_CXX} $prev$p"
15150 *.lto.$objext) ;; # Ignore GCC LTO objects
15152 # This assumes that the test object file only shows up
15153 # once in the compiler output.
15154 if test "$p" = "conftest.$objext"; then
15155 pre_test_object_deps_done=yes
15159 if test no = "$pre_test_object_deps_done"; then
15160 if test -z "$predep_objects_CXX"; then
15161 predep_objects_CXX=$p
15163 predep_objects_CXX="$predep_objects_CXX $p"
15166 if test -z "$postdep_objects_CXX"; then
15167 postdep_objects_CXX=$p
15169 postdep_objects_CXX="$postdep_objects_CXX $p"
15174 *) ;; # Ignore the rest.
15182 echo "libtool.m4: error: problem compiling CXX test program"
15185 $RM -f confest.$objext
15186 CFLAGS=$_lt_libdeps_save_CFLAGS
15188 # PORTME: override above test on systems where it is broken
15191 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15192 # hack all around it, let's just trust "g++" to DTRT.
15193 predep_objects_CXX=
15194 postdep_objects_CXX=
15200 case " $postdeps_CXX " in
15201 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15203 compiler_lib_search_dirs_CXX=
15204 if test -n "${compiler_lib_search_path_CXX}"; then
15205 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15238 lt_prog_compiler_wl_CXX=
15239 lt_prog_compiler_pic_CXX=
15240 lt_prog_compiler_static_CXX=
15243 # C++ specific cases for pic, static, wl, etc.
15244 if test yes = "$GXX"; then
15245 lt_prog_compiler_wl_CXX='-Wl,'
15246 lt_prog_compiler_static_CXX='-static'
15250 # All AIX code is PIC.
15251 if test ia64 = "$host_cpu"; then
15252 # AIX 5 now supports IA64 processor
15253 lt_prog_compiler_static_CXX='-Bstatic'
15255 lt_prog_compiler_pic_CXX='-fPIC'
15261 # see comment about AmigaOS4 .so support
15262 lt_prog_compiler_pic_CXX='-fPIC'
15265 # FIXME: we need at least 68020 code to build shared libraries, but
15266 # adding the '-m68020' flag to GCC prevents building anything better,
15268 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15273 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15274 # PIC is the default for these OSes.
15276 mingw* | cygwin* | os2* | pw32* | cegcc*)
15277 # This hack is so that the source file can tell whether it is being
15278 # built for inclusion in a dll (and should export symbols for example).
15279 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15280 # (--disable-auto-import) libraries
15281 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15284 lt_prog_compiler_static_CXX='$wl-static'
15288 darwin* | rhapsody*)
15289 # PIC is the default on this platform
15290 # Common symbols not allowed in MH_DYLIB files
15291 lt_prog_compiler_pic_CXX='-fno-common'
15294 # DJGPP does not support shared libraries at all
15295 lt_prog_compiler_pic_CXX=
15298 # PIC is the default for Haiku.
15299 # The "-static" flag exists, but is broken.
15300 lt_prog_compiler_static_CXX=
15303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15304 # Instead, we relocate shared libraries at runtime.
15307 if test -d /usr/nec; then
15308 lt_prog_compiler_pic_CXX=-Kconform_pic
15312 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15313 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15314 # sets the default TLS model and affects inlining.
15319 lt_prog_compiler_pic_CXX='-fPIC'
15324 # QNX uses GNU C++, but need to define -shared option too, otherwise
15325 # it will coredump.
15326 lt_prog_compiler_pic_CXX='-fPIC -shared'
15329 lt_prog_compiler_pic_CXX='-fPIC'
15335 # All AIX code is PIC.
15336 if test ia64 = "$host_cpu"; then
15337 # AIX 5 now supports IA64 processor
15338 lt_prog_compiler_static_CXX='-Bstatic'
15340 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15344 case $cc_basename in
15346 # Green Hills C++ Compiler
15347 # _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"
15351 mingw* | cygwin* | os2* | pw32* | cegcc*)
15352 # This hack is so that the source file can tell whether it is being
15353 # built for inclusion in a dll (and should export symbols for example).
15354 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15357 case $cc_basename in
15359 lt_prog_compiler_pic_CXX='-KPIC'
15362 # Green Hills C++ Compiler
15363 lt_prog_compiler_pic_CXX='-pic'
15369 freebsd* | dragonfly*)
15370 # FreeBSD uses GNU C++
15372 hpux9* | hpux10* | hpux11*)
15373 case $cc_basename in
15375 lt_prog_compiler_wl_CXX='-Wl,'
15376 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15377 if test ia64 != "$host_cpu"; then
15378 lt_prog_compiler_pic_CXX='+Z'
15382 lt_prog_compiler_wl_CXX='-Wl,'
15383 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15389 lt_prog_compiler_pic_CXX='+Z'
15398 # This is c89, which is MS Visual C++ (no shared libs)
15399 # Anyone wants to do a port?
15401 irix5* | irix6* | nonstopux*)
15402 case $cc_basename in
15404 lt_prog_compiler_wl_CXX='-Wl,'
15405 lt_prog_compiler_static_CXX='-non_shared'
15406 # CC pic flag -KPIC is the default.
15412 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15413 case $cc_basename in
15416 lt_prog_compiler_wl_CXX='--backend -Wl,'
15417 lt_prog_compiler_pic_CXX='-fPIC'
15420 # old Intel C++ for x86_64, which still supported -KPIC.
15421 lt_prog_compiler_wl_CXX='-Wl,'
15422 lt_prog_compiler_pic_CXX='-KPIC'
15423 lt_prog_compiler_static_CXX='-static'
15426 # Intel C++, used to be incompatible with GCC.
15427 # ICC 10 doesn't accept -KPIC any more.
15428 lt_prog_compiler_wl_CXX='-Wl,'
15429 lt_prog_compiler_pic_CXX='-fPIC'
15430 lt_prog_compiler_static_CXX='-static'
15433 # Portland Group C++ compiler
15434 lt_prog_compiler_wl_CXX='-Wl,'
15435 lt_prog_compiler_pic_CXX='-fpic'
15436 lt_prog_compiler_static_CXX='-Bstatic'
15440 # Make sure the PIC flag is empty. It appears that all Alpha
15441 # Linux and Compaq Tru64 Unix objects are PIC.
15442 lt_prog_compiler_pic_CXX=
15443 lt_prog_compiler_static_CXX='-non_shared'
15445 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15446 # IBM XL 8.0, 9.0 on PPC and BlueGene
15447 lt_prog_compiler_wl_CXX='-Wl,'
15448 lt_prog_compiler_pic_CXX='-qpic'
15449 lt_prog_compiler_static_CXX='-qstaticlink'
15452 case `$CC -V 2>&1 | sed 5q` in
15455 lt_prog_compiler_pic_CXX='-KPIC'
15456 lt_prog_compiler_static_CXX='-Bstatic'
15457 lt_prog_compiler_wl_CXX='-Qoption ld '
15468 case $cc_basename in
15470 lt_prog_compiler_pic_CXX='-W c,exportall'
15476 netbsd* | netbsdelf*-gnu)
15479 # QNX uses GNU C++, but need to define -shared option too, otherwise
15480 # it will coredump.
15481 lt_prog_compiler_pic_CXX='-fPIC -shared'
15483 osf3* | osf4* | osf5*)
15484 case $cc_basename in
15486 lt_prog_compiler_wl_CXX='--backend -Wl,'
15489 # Rational C++ 2.4.1
15490 lt_prog_compiler_pic_CXX='-pic'
15493 # Digital/Compaq C++
15494 lt_prog_compiler_wl_CXX='-Wl,'
15495 # Make sure the PIC flag is empty. It appears that all Alpha
15496 # Linux and Compaq Tru64 Unix objects are PIC.
15497 lt_prog_compiler_pic_CXX=
15498 lt_prog_compiler_static_CXX='-non_shared'
15507 case $cc_basename in
15509 # Sun C++ 4.2, 5.x and Centerline C++
15510 lt_prog_compiler_pic_CXX='-KPIC'
15511 lt_prog_compiler_static_CXX='-Bstatic'
15512 lt_prog_compiler_wl_CXX='-Qoption ld '
15515 # Green Hills C++ Compiler
15516 lt_prog_compiler_pic_CXX='-PIC'
15523 case $cc_basename in
15526 lt_prog_compiler_pic_CXX='-pic'
15527 lt_prog_compiler_static_CXX='-Bstatic'
15531 lt_prog_compiler_pic_CXX='-pic'
15537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15538 case $cc_basename in
15540 lt_prog_compiler_wl_CXX='-Wl,'
15541 lt_prog_compiler_pic_CXX='-KPIC'
15542 lt_prog_compiler_static_CXX='-Bstatic'
15547 case $cc_basename in
15549 # NonStop-UX NCC 3.20
15550 lt_prog_compiler_pic_CXX='-KPIC'
15559 lt_prog_compiler_can_build_shared_CXX=no
15565 # For platforms that do not support PIC, -DPIC is meaningless:
15567 lt_prog_compiler_pic_CXX=
15570 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15575 printf %s "checking for $compiler option to produce PIC... " >&6; }
15576 if test ${lt_cv_prog_compiler_pic_CXX+y}
15578 printf %s "(cached) " >&6
15580 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15583 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15584 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15587 # Check to make sure the PIC flag actually works.
15589 if test -n "$lt_prog_compiler_pic_CXX"; then
15590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15591 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15592 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15594 printf %s "(cached) " >&6
15596 lt_cv_prog_compiler_pic_works_CXX=no
15597 ac_outfile=conftest.$ac_objext
15598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15599 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15600 # Insert the option either (1) after the last *FLAGS variable, or
15601 # (2) before a word containing "conftest.", or (3) at the end.
15602 # Note that $ac_compile itself does not contain backslashes and begins
15603 # with a dollar sign (not a hyphen), so the echo should work correctly.
15604 # The option is referenced via a variable to avoid confusing sed.
15605 lt_compile=`echo "$ac_compile" | $SED \
15606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608 -e 's:$: $lt_compiler_flag:'`
15609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15610 (eval "$lt_compile" 2>conftest.err)
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 if (exit $ac_status) && test -s "$ac_outfile"; then
15615 # The compiler can only warn and ignore the option if not recognized
15616 # So say no if there are warnings other than the usual output.
15617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15619 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15620 lt_cv_prog_compiler_pic_works_CXX=yes
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15627 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15629 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15630 case $lt_prog_compiler_pic_CXX in
15632 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15635 lt_prog_compiler_pic_CXX=
15636 lt_prog_compiler_can_build_shared_CXX=no
15646 # Check to make sure the static flag actually works.
15648 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15650 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15651 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15653 printf %s "(cached) " >&6
15655 lt_cv_prog_compiler_static_works_CXX=no
15656 save_LDFLAGS=$LDFLAGS
15657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15660 # The linker can only warn and ignore the option if not recognized
15661 # So say no if there are warnings
15662 if test -s conftest.err; then
15663 # Append any errors to the config.log.
15664 cat conftest.err 1>&5
15665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15667 if diff conftest.exp conftest.er2 >/dev/null; then
15668 lt_cv_prog_compiler_static_works_CXX=yes
15671 lt_cv_prog_compiler_static_works_CXX=yes
15675 LDFLAGS=$save_LDFLAGS
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15679 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15681 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15684 lt_prog_compiler_static_CXX=
15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15691 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15692 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15694 printf %s "(cached) " >&6
15696 lt_cv_prog_compiler_c_o_CXX=no
15697 $RM -r conftest 2>/dev/null
15701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15703 lt_compiler_flag="-o out/conftest2.$ac_objext"
15704 # Insert the option either (1) after the last *FLAGS variable, or
15705 # (2) before a word containing "conftest.", or (3) at the end.
15706 # Note that $ac_compile itself does not contain backslashes and begins
15707 # with a dollar sign (not a hyphen), so the echo should work correctly.
15708 lt_compile=`echo "$ac_compile" | $SED \
15709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15711 -e 's:$: $lt_compiler_flag:'`
15712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15713 (eval "$lt_compile" 2>out/conftest.err)
15715 cat out/conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15719 # The compiler can only warn and ignore the option if not recognized
15720 # So say no if there are warnings
15721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15724 lt_cv_prog_compiler_c_o_CXX=yes
15729 # SGI C++ compiler will create directory out/ii_files/ for
15730 # template instantiation
15731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15732 $RM out/* && rmdir out
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15739 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15744 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15745 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15747 printf %s "(cached) " >&6
15749 lt_cv_prog_compiler_c_o_CXX=no
15750 $RM -r conftest 2>/dev/null
15754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15756 lt_compiler_flag="-o out/conftest2.$ac_objext"
15757 # Insert the option either (1) after the last *FLAGS variable, or
15758 # (2) before a word containing "conftest.", or (3) at the end.
15759 # Note that $ac_compile itself does not contain backslashes and begins
15760 # with a dollar sign (not a hyphen), so the echo should work correctly.
15761 lt_compile=`echo "$ac_compile" | $SED \
15762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15764 -e 's:$: $lt_compiler_flag:'`
15765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15766 (eval "$lt_compile" 2>out/conftest.err)
15768 cat out/conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15772 # The compiler can only warn and ignore the option if not recognized
15773 # So say no if there are warnings
15774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15777 lt_cv_prog_compiler_c_o_CXX=yes
15782 # SGI C++ compiler will create directory out/ii_files/ for
15783 # template instantiation
15784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15785 $RM out/* && rmdir out
15791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15792 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15797 hard_links=nottested
15798 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15799 # do not overwrite the value of need_locks provided by the user
15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15801 printf %s "checking if we can lock with hard links... " >&6; }
15804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15806 ln conftest.a conftest.b 2>&5 || hard_links=no
15807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15809 printf "%s\n" "$hard_links" >&6; }
15810 if test no = "$hard_links"; then
15811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15812 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15822 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15824 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15825 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15828 # If we're using GNU nm, then we don't want the "-C" option.
15829 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15830 # Without the "-l" option, or with the "-B" option, AIX nm treats
15831 # weak defined symbols like other global defined symbols, whereas
15832 # GNU nm marks them as "W".
15833 # While the 'weak' keyword is ignored in the Export File, we need
15834 # it in the Import File for the 'aix-soname' feature, so we have
15835 # to replace the "-B" option with "-P" for AIX nm.
15836 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15837 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15839 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15843 export_symbols_cmds_CXX=$ltdll_cmds
15845 cygwin* | mingw* | cegcc*)
15846 case $cc_basename in
15848 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15851 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'
15852 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15856 linux* | k*bsd*-gnu | gnu*)
15857 link_all_deplibs_CXX=no
15860 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15865 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15866 test no = "$ld_shlibs_CXX" && can_build_shared=no
15868 with_gnu_ld_CXX=$with_gnu_ld
15876 # Do we need to explicitly link libc?
15878 case "x$archive_cmds_need_lc_CXX" in
15880 # Assume -lc should be added
15881 archive_cmds_need_lc_CXX=yes
15883 if test yes,yes = "$GCC,$enable_shared"; then
15884 case $archive_cmds_CXX in
15886 # FIXME: we may have to deal with multi-command sequences.
15889 # Test whether the compiler implicitly links with -lc since on some
15890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15891 # to ld, don't add -lc before -lgcc.
15892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15893 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15894 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15896 printf %s "(cached) " >&6
15899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15902 (eval $ac_compile) 2>&5
15904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15905 test $ac_status = 0; } 2>conftest.err; then
15908 libobjs=conftest.$ac_objext
15910 wl=$lt_prog_compiler_wl_CXX
15911 pic_flag=$lt_prog_compiler_pic_CXX
15917 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15918 allow_undefined_flag_CXX=
15919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15920 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15923 test $ac_status = 0; }
15925 lt_cv_archive_cmds_need_lc_CXX=no
15927 lt_cv_archive_cmds_need_lc_CXX=yes
15929 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15931 cat conftest.err 1>&5
15936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15937 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15938 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16007 printf %s "checking dynamic linker characteristics... " >&6; }
16009 library_names_spec=
16010 libname_spec='lib$name'
16014 postuninstall_cmds=
16018 shlibpath_overrides_runpath=unknown
16020 dynamic_linker="$host_os ld.so"
16021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16022 need_lib_prefix=unknown
16023 hardcode_into_libs=no
16025 # when you set need_version to no, make sure it does not cause -set_version
16026 # flags to be left without arguments
16027 need_version=unknown
16033 version_type=linux # correct to gnu/linux during the next big refactor
16034 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16035 shlibpath_var=LIBPATH
16037 # AIX 3 has no versioning support, so we append a major version to the name.
16038 soname_spec='$libname$release$shared_ext$major'
16042 version_type=linux # correct to gnu/linux during the next big refactor
16045 hardcode_into_libs=yes
16046 if test ia64 = "$host_cpu"; then
16047 # AIX 5 supports IA64
16048 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16049 shlibpath_var=LD_LIBRARY_PATH
16051 # With GCC up to 2.95.x, collect2 would create an import file
16052 # for dependence libraries. The import file would start with
16053 # the line '#! .'. This would cause the generated library to
16054 # depend on '.', always an invalid library. This was fixed in
16055 # development snapshots of GCC prior to 3.0.
16057 aix4 | aix4.[01] | aix4.[01].*)
16058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16060 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16063 can_build_shared=no
16067 # Using Import Files as archive members, it is possible to support
16068 # filename-based versioning of shared library archives on AIX. While
16069 # this would work for both with and without runtime linking, it will
16070 # prevent static linking of such archives. So we do filename-based
16071 # shared library versioning with .so extension only, which is used
16072 # when both runtime linking and shared linking is enabled.
16073 # Unfortunately, runtime linking may impact performance, so we do
16074 # not want this to be the default eventually. Also, we use the
16075 # versioned .so libs for executables only if there is the -brtl
16076 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16077 # To allow for filename-based versioning support, we need to create
16078 # libNAME.so.V as an archive file, containing:
16079 # *) an Import File, referring to the versioned filename of the
16080 # archive as well as the shared archive member, telling the
16081 # bitwidth (32 or 64) of that shared object, and providing the
16082 # list of exported symbols of that shared object, eventually
16083 # decorated with the 'weak' keyword
16084 # *) the shared object with the F_LOADONLY flag set, to really avoid
16085 # it being seen by the linker.
16086 # At run time we better use the real file rather than another symlink,
16087 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16089 case $with_aix_soname,$aix_use_runtimelinking in
16090 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16091 # soname into executable. Probably we can add versioning support to
16092 # collect2, so additional links can be useful in future.
16093 aix,yes) # traditional libtool
16094 dynamic_linker='AIX unversionable lib.so'
16095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16096 # instead of lib<name>.a to let people know that these are not
16097 # typical AIX shared libraries.
16098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16100 aix,no) # traditional AIX only
16101 dynamic_linker='AIX lib.a(lib.so.V)'
16102 # We preserve .a as extension for shared libraries through AIX4.2
16103 # and later when we are not doing run time linking.
16104 library_names_spec='$libname$release.a $libname.a'
16105 soname_spec='$libname$release$shared_ext$major'
16107 svr4,*) # full svr4 only
16108 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16109 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16110 # We do not specify a path in Import Files, so LIBPATH fires.
16111 shlibpath_overrides_runpath=yes
16113 *,yes) # both, prefer svr4
16114 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16115 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16116 # unpreferred sharedlib libNAME.a needs extra handling
16117 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16118 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16119 # We do not specify a path in Import Files, so LIBPATH fires.
16120 shlibpath_overrides_runpath=yes
16122 *,no) # both, prefer aix
16123 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16124 library_names_spec='$libname$release.a $libname.a'
16125 soname_spec='$libname$release$shared_ext$major'
16126 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16127 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16128 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16131 shlibpath_var=LIBPATH
16138 # Since July 2007 AmigaOS4 officially supports .so libraries.
16139 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16143 library_names_spec='$libname.ixlibrary $libname.a'
16144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16145 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16151 library_names_spec='$libname$shared_ext'
16152 dynamic_linker="$host_os ld.so"
16153 shlibpath_var=LIBRARY_PATH
16157 version_type=linux # correct to gnu/linux during the next big refactor
16159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16160 soname_spec='$libname$release$shared_ext$major'
16161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16162 shlibpath_var=LD_LIBRARY_PATH
16163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16165 # the default ld.so.conf also contains /usr/contrib/lib and
16166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16167 # libtool to hard-code these into programs
16170 cygwin* | mingw* | pw32* | cegcc*)
16171 version_type=windows
16176 case $GCC,$cc_basename in
16179 library_names_spec='$libname.dll.a'
16180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16181 postinstall_cmds='base_file=`basename \$file`~
16182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16183 dldir=$destdir/`dirname \$dlpath`~
16184 test -d \$dldir || mkdir -p \$dldir~
16185 $install_prog $dir/$dlname \$dldir/$dlname~
16186 chmod a+x \$dldir/$dlname~
16187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16191 dlpath=$dir/\$dldll~
16193 shlibpath_overrides_runpath=yes
16197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16198 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16202 # MinGW DLLs use traditional 'lib' prefix
16203 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16206 # pw32 DLLs use 'pw' prefix rather than 'lib'
16207 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16210 dynamic_linker='Win32 ld.exe'
16215 libname_spec='$name'
16216 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16217 library_names_spec='$libname.dll.lib'
16221 sys_lib_search_path_spec=
16224 for lt_path in $LIB
16227 # Let DOS variable expansion print the short 8.3 style file name.
16228 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16229 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16232 # Convert to MSYS style.
16233 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16236 # Convert to unix form, then to dos form, then back to unix form
16237 # but this time dos style (no spaces!) so that the unix form looks
16238 # like /cygdrive/c/PROGRA~1:/cygdr...
16239 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16240 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16241 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16244 sys_lib_search_path_spec=$LIB
16245 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16246 # It is most probably a Windows format PATH.
16247 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16249 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16251 # FIXME: find the short name or the path components, as spaces are
16252 # common. (e.g. "Program Files" -> "PROGRA~1")
16256 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16257 postinstall_cmds='base_file=`basename \$file`~
16258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16259 dldir=$destdir/`dirname \$dlpath`~
16260 test -d \$dldir || mkdir -p \$dldir~
16261 $install_prog $dir/$dlname \$dldir/$dlname'
16262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16263 dlpath=$dir/\$dldll~
16265 shlibpath_overrides_runpath=yes
16266 dynamic_linker='Win32 link.exe'
16270 # Assume MSVC wrapper
16271 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16272 dynamic_linker='Win32 ld.exe'
16275 # FIXME: first we should search . and the directory the executable is in
16279 darwin* | rhapsody*)
16280 dynamic_linker="$host_os dyld"
16281 version_type=darwin
16284 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16285 soname_spec='$libname$release$major$shared_ext'
16286 shlibpath_overrides_runpath=yes
16287 shlibpath_var=DYLD_LIBRARY_PATH
16288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16294 version_type=linux # correct to gnu/linux during the next big refactor
16297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16298 soname_spec='$libname$release$shared_ext$major'
16299 shlibpath_var=LD_LIBRARY_PATH
16302 freebsd* | dragonfly*)
16303 # DragonFly does not have aout. When/if they implement a new
16304 # versioning mechanism, adjust this.
16305 if test -x /usr/bin/objformat; then
16306 objformat=`/usr/bin/objformat`
16309 freebsd[23].*) objformat=aout ;;
16310 *) objformat=elf ;;
16313 version_type=freebsd-$objformat
16314 case $version_type in
16316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16317 soname_spec='$libname$release$shared_ext$major'
16322 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16326 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16331 freebsd3.[01]* | freebsdelf3.[01]*)
16332 shlibpath_overrides_runpath=yes
16333 hardcode_into_libs=yes
16335 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16336 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16337 shlibpath_overrides_runpath=no
16338 hardcode_into_libs=yes
16340 *) # from 4.6 on, and DragonFly
16341 shlibpath_overrides_runpath=yes
16342 hardcode_into_libs=yes
16348 version_type=linux # correct to gnu/linux during the next big refactor
16351 dynamic_linker="$host_os runtime_loader"
16352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16353 soname_spec='$libname$release$shared_ext$major'
16354 shlibpath_var=LIBRARY_PATH
16355 shlibpath_overrides_runpath=no
16356 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16357 hardcode_into_libs=yes
16360 hpux9* | hpux10* | hpux11*)
16361 # Give a soname corresponding to the major version so that dld.sl refuses to
16362 # link against other versions.
16369 hardcode_into_libs=yes
16370 dynamic_linker="$host_os dld.so"
16371 shlibpath_var=LD_LIBRARY_PATH
16372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16374 soname_spec='$libname$release$shared_ext$major'
16375 if test 32 = "$HPUX_IA64_MODE"; then
16376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16377 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16380 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16385 hardcode_into_libs=yes
16386 dynamic_linker="$host_os dld.sl"
16387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16390 soname_spec='$libname$release$shared_ext$major'
16391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16396 dynamic_linker="$host_os dld.sl"
16397 shlibpath_var=SHLIB_PATH
16398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16400 soname_spec='$libname$release$shared_ext$major'
16403 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16404 postinstall_cmds='chmod 555 $lib'
16405 # or fails outright, so override atomically:
16406 install_override_mode=555
16410 version_type=linux # correct to gnu/linux during the next big refactor
16413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16414 soname_spec='$libname$release$shared_ext$major'
16415 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath=no
16418 hardcode_into_libs=yes
16421 irix5* | irix6* | nonstopux*)
16423 nonstopux*) version_type=nonstopux ;;
16425 if test yes = "$lt_cv_prog_gnu_ld"; then
16426 version_type=linux # correct to gnu/linux during the next big refactor
16433 soname_spec='$libname$release$shared_ext$major'
16434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16436 irix5* | nonstopux*)
16437 libsuff= shlibsuff=
16440 case $LD in # libtool.m4 will add one of these switches to LD
16441 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16442 libsuff= shlibsuff= libmagic=32-bit;;
16443 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16444 libsuff=32 shlibsuff=N32 libmagic=N32;;
16445 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16446 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16447 *) libsuff= shlibsuff= libmagic=never-match;;
16451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16452 shlibpath_overrides_runpath=no
16453 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16454 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16455 hardcode_into_libs=yes
16458 # No shared lib support for Linux oldld, aout, or coff.
16459 linux*oldld* | linux*aout* | linux*coff*)
16464 version_type=none # Android doesn't support versioned libraries.
16467 library_names_spec='$libname$release$shared_ext'
16468 soname_spec='$libname$release$shared_ext'
16470 shlibpath_var=LD_LIBRARY_PATH
16471 shlibpath_overrides_runpath=yes
16473 # This implies no fast_install, which is unacceptable.
16474 # Some rework will be needed to allow for fast_install
16475 # before this can be enabled.
16476 hardcode_into_libs=yes
16478 dynamic_linker='Android linker'
16479 # Don't embed -rpath directories since the linker doesn't support them.
16480 hardcode_libdir_flag_spec_CXX='-L$libdir'
16483 # This must be glibc/ELF.
16484 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16485 version_type=linux # correct to gnu/linux during the next big refactor
16488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16489 soname_spec='$libname$release$shared_ext$major'
16490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=no
16494 # Some binutils ld are patched to set DT_RUNPATH
16495 if test ${lt_cv_shlibpath_overrides_runpath+y}
16497 printf %s "(cached) " >&6
16499 lt_cv_shlibpath_overrides_runpath=no
16500 save_LDFLAGS=$LDFLAGS
16501 save_libdir=$libdir
16502 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16503 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16515 if ac_fn_cxx_try_link "$LINENO"
16517 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16519 lt_cv_shlibpath_overrides_runpath=yes
16522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LDFLAGS=$save_LDFLAGS
16525 libdir=$save_libdir
16529 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16531 # This implies no fast_install, which is unacceptable.
16532 # Some rework will be needed to allow for fast_install
16533 # before this can be enabled.
16534 hardcode_into_libs=yes
16536 # Ideally, we could use ldconfig to report *all* directores which are
16537 # searched for libraries, however this is still not possible. Aside from not
16538 # being certain /sbin/ldconfig is available, command
16539 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16540 # even though it is searched at run-time. Try to do the best guess by
16541 # appending ld.so.conf contents (and includes) to the search path.
16542 if test -f /etc/ld.so.conf; then
16543 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' ' '`
16544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16547 # We used to test for /lib/ld.so.1 and disable shared libraries on
16548 # powerpc, because MkLinux only supported shared libraries with the
16549 # GNU dynamic linker. Since this was broken with cross compilers,
16550 # most powerpc-linux boxes support dynamic linking these days and
16551 # people can always --disable-shared, the test was removed, and we
16552 # assume the GNU/Linux dynamic linker is in use.
16553 dynamic_linker='GNU/Linux ld.so'
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16561 soname_spec='${libname}${release}${shared_ext}$major'
16562 shlibpath_var=LD_LIBRARY_PATH
16563 shlibpath_overrides_runpath=no
16564 hardcode_into_libs=yes
16565 dynamic_linker='NetBSD ld.elf_so'
16572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16573 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16575 dynamic_linker='NetBSD (a.out) ld.so'
16577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16578 soname_spec='$libname$release$shared_ext$major'
16579 dynamic_linker='NetBSD ld.elf_so'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 shlibpath_overrides_runpath=yes
16583 hardcode_into_libs=yes
16587 version_type=linux # correct to gnu/linux during the next big refactor
16588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath=yes
16597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16598 soname_spec='$libname$release$shared_ext$major'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 shlibpath_overrides_runpath=no
16601 hardcode_into_libs=yes
16602 dynamic_linker='ldqnx.so'
16605 openbsd* | bitrig*)
16607 sys_lib_dlsearch_path_spec=/usr/lib
16609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16614 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16616 shlibpath_var=LD_LIBRARY_PATH
16617 shlibpath_overrides_runpath=yes
16621 libname_spec='$name'
16622 version_type=windows
16626 # OS/2 can only load a DLL with a base name of 8 characters or less.
16627 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16628 v=$($ECHO $release$versuffix | tr -d .-);
16629 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16630 $ECHO $n$v`$shared_ext'
16631 library_names_spec='${libname}_dll.$libext'
16632 dynamic_linker='OS/2 ld.exe'
16633 shlibpath_var=BEGINLIBPATH
16634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16636 postinstall_cmds='base_file=`basename \$file`~
16637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16638 dldir=$destdir/`dirname \$dlpath`~
16639 test -d \$dldir || mkdir -p \$dldir~
16640 $install_prog $dir/$dlname \$dldir/$dlname~
16641 chmod a+x \$dldir/$dlname~
16642 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16643 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16646 dlpath=$dir/\$dldll~
16650 osf3* | osf4* | osf5*)
16654 soname_spec='$libname$release$shared_ext$major'
16655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16656 shlibpath_var=LD_LIBRARY_PATH
16657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16666 version_type=linux # correct to gnu/linux during the next big refactor
16669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16670 soname_spec='$libname$release$shared_ext$major'
16671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=yes
16673 hardcode_into_libs=yes
16674 # ldd complains unless libraries are executable
16675 postinstall_cmds='chmod +x $lib'
16680 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16682 shlibpath_var=LD_LIBRARY_PATH
16683 shlibpath_overrides_runpath=yes
16684 if test yes = "$with_gnu_ld"; then
16691 version_type=linux # correct to gnu/linux during the next big refactor
16692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16693 soname_spec='$libname$release$shared_ext$major'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 case $host_vendor in
16697 shlibpath_overrides_runpath=no
16699 runpath_var=LD_RUN_PATH
16707 shlibpath_overrides_runpath=no
16708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16714 if test -d /usr/nec; then
16715 version_type=linux # correct to gnu/linux during the next big refactor
16716 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16717 soname_spec='$libname$shared_ext.$major'
16718 shlibpath_var=LD_LIBRARY_PATH
16722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16727 soname_spec='$libname$release$shared_ext$major'
16728 shlibpath_var=LD_LIBRARY_PATH
16729 shlibpath_overrides_runpath=yes
16730 hardcode_into_libs=yes
16731 if test yes = "$with_gnu_ld"; then
16732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16737 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16741 sys_lib_dlsearch_path_spec='/usr/lib'
16745 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16746 version_type=linux # correct to gnu/linux during the next big refactor
16749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=no
16752 hardcode_into_libs=yes
16756 version_type=linux # correct to gnu/linux during the next big refactor
16757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16758 soname_spec='$libname$release$shared_ext$major'
16759 shlibpath_var=LD_LIBRARY_PATH
16766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16767 printf "%s\n" "$dynamic_linker" >&6; }
16768 test no = "$dynamic_linker" && can_build_shared=no
16770 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16771 if test yes = "$GCC"; then
16772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16775 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16776 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16779 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16780 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16783 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16784 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16786 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16787 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16789 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16790 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16832 printf %s "checking how to hardcode library paths into programs... " >&6; }
16833 hardcode_action_CXX=
16834 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16835 test -n "$runpath_var_CXX" ||
16836 test yes = "$hardcode_automatic_CXX"; then
16838 # We can hardcode non-existent directories.
16839 if test no != "$hardcode_direct_CXX" &&
16840 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16841 # have to relink, otherwise we might link with an installed library
16842 # when we should be linking with a yet-to-be-installed one
16843 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16844 test no != "$hardcode_minus_L_CXX"; then
16845 # Linking always hardcodes the temporary library directory.
16846 hardcode_action_CXX=relink
16848 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16849 hardcode_action_CXX=immediate
16852 # We cannot hardcode anything, or else we can only hardcode existing
16854 hardcode_action_CXX=unsupported
16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16857 printf "%s\n" "$hardcode_action_CXX" >&6; }
16859 if test relink = "$hardcode_action_CXX" ||
16860 test yes = "$inherit_rpath_CXX"; then
16861 # Fast installation is not supported
16862 enable_fast_install=no
16863 elif test yes = "$shlibpath_overrides_runpath" ||
16864 test no = "$enable_shared"; then
16865 # Fast installation is not necessary
16866 enable_fast_install=needless
16875 fi # test -n "$compiler"
16878 CFLAGS=$lt_save_CFLAGS
16882 with_gnu_ld=$lt_save_with_gnu_ld
16883 lt_cv_path_LDCXX=$lt_cv_path_LD
16884 lt_cv_path_LD=$lt_save_path_LD
16885 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16886 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16887 fi # test yes != "$_lt_caught_CXX_error"
16890 ac_cpp='$CPP $CPPFLAGS'
16891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16909 ac_config_commands="$ac_config_commands libtool"
16914 # Only expand once:
16921 ac_cpp='$CPP $CPPFLAGS'
16922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16928 # We used to check for pthread.h first, but this fails if pthread.h
16929 # requires special compiler flags (e.g. on True64 or Sequent).
16930 # It gets checked for in the link test anyway.
16932 # First of all, check if the user has set any of the PTHREAD_LIBS,
16933 # etcetera environment variables, and if threads linking works using
16935 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16936 save_CFLAGS="$CFLAGS"
16937 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16939 LIBS="$PTHREAD_LIBS $LIBS"
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16941 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h. */
16945 /* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16948 char pthread_join ();
16952 return pthread_join ();
16957 if ac_fn_c_try_link "$LINENO"
16961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16962 conftest$ac_exeext conftest.$ac_ext
16963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16964 printf "%s\n" "$ax_pthread_ok" >&6; }
16965 if test x"$ax_pthread_ok" = xno; then
16970 CFLAGS="$save_CFLAGS"
16973 # We must check for the threads library under a number of different
16974 # names; the ordering is very important because some systems
16975 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16976 # libraries is broken (non-POSIX).
16978 # Create a list of thread flags to try. Items starting with a "-" are
16979 # C compiler flags, and other items are library names, except for "none"
16980 # which indicates that we try without any flags at all, and "pthread-config"
16981 # which is a program returning the flags for the Pth emulation library.
16983 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16985 # The ordering *is* (sometimes) important. Some notes on the
16986 # individual items follow:
16988 # pthreads: AIX (must check this before -lpthread)
16989 # none: in case threads are in libc; should be tried before -Kthread and
16990 # other compiler flags to prevent continual compiler warnings
16991 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16992 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16993 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16994 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16995 # -pthreads: Solaris/gcc
16996 # -mthreads: Mingw32/gcc, Lynx/gcc
16997 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16998 # doesn't hurt to check since this sometimes defines pthreads too;
16999 # also defines -D_REENTRANT)
17000 # ... -mt is also the pthreads flag for HP/aCC
17001 # pthread: Linux, etcetera
17002 # --thread-safe: KAI C++
17003 # pthread-config: use pthread-config program (for GNU Pth library)
17008 # On Solaris (at least, for some versions), libc contains stubbed
17009 # (non-functional) versions of the pthreads routines, so link-based
17010 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17011 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17012 # a function called by this macro, so we could check for that, but
17013 # who knows whether they'll stub that too in a future libc.) So,
17014 # we'll just look for -pthreads and -lpthread first:
17016 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
17020 ax_pthread_flags="-pthread $ax_pthread_flags"
17024 # Clang doesn't consider unrecognized options an error unless we specify
17025 # -Werror. We throw in some extra Clang-specific options to ensure that
17026 # this doesn't happen for GCC, which also accepts -Werror.
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
17029 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
17030 save_CFLAGS="$CFLAGS"
17031 ax_pthread_extra_flags="-Werror"
17032 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17044 if ac_fn_c_try_compile "$LINENO"
17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17047 printf "%s\n" "yes" >&6; }
17049 ax_pthread_extra_flags=
17050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17051 printf "%s\n" "no" >&6; }
17053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17054 CFLAGS="$save_CFLAGS"
17056 if test x"$ax_pthread_ok" = xno; then
17057 for flag in $ax_pthread_flags; do
17061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17062 printf %s "checking whether pthreads work without any flags... " >&6; }
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17067 printf %s "checking whether pthreads work with $flag... " >&6; }
17068 PTHREAD_CFLAGS="$flag"
17072 # Extract the first word of "pthread-config", so it can be a program name with args.
17073 set dummy pthread-config; ac_word=$2
17074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17075 printf %s "checking for $ac_word... " >&6; }
17076 if test ${ac_cv_prog_ax_pthread_config+y}
17078 printf %s "(cached) " >&6
17080 if test -n "$ax_pthread_config"; then
17081 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17084 for as_dir in $PATH
17087 case $as_dir in #(((
17090 *) as_dir=$as_dir/ ;;
17092 for ac_exec_ext in '' $ac_executable_extensions; do
17093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17094 ac_cv_prog_ax_pthread_config="yes"
17095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17102 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17105 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17106 if test -n "$ax_pthread_config"; then
17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17108 printf "%s\n" "$ax_pthread_config" >&6; }
17110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111 printf "%s\n" "no" >&6; }
17115 if test x"$ax_pthread_config" = xno; then continue; fi
17116 PTHREAD_CFLAGS="`pthread-config --cflags`"
17117 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17122 printf %s "checking for the pthreads library -l$flag... " >&6; }
17123 PTHREAD_LIBS="-l$flag"
17128 save_CFLAGS="$CFLAGS"
17129 LIBS="$PTHREAD_LIBS $LIBS"
17130 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
17132 # Check for various functions. We must include pthread.h,
17133 # since some functions may be macros. (On the Sequent, we
17134 # need a special flag -Kthread to make this header compile.)
17135 # We check for pthread_join because it is in -lpthread on IRIX
17136 # while pthread_create is in libc. We check for pthread_attr_init
17137 # due to DEC craziness with -lpthreads. We check for
17138 # pthread_cleanup_push because it is one of the few pthread
17139 # functions on Solaris that doesn't have a non-functional libc stub.
17140 # We try pthread_create on general principles.
17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17143 #include <pthread.h>
17144 static void routine(void *a) { a = 0; }
17145 static void *start_routine(void *a) { return a; }
17149 pthread_t th; pthread_attr_t attr;
17150 pthread_create(&th, 0, start_routine, 0);
17151 pthread_join(th, 0);
17152 pthread_attr_init(&attr);
17153 pthread_cleanup_push(routine, 0);
17154 pthread_cleanup_pop(0) /* ; */
17159 if ac_fn_c_try_link "$LINENO"
17163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17164 conftest$ac_exeext conftest.$ac_ext
17167 CFLAGS="$save_CFLAGS"
17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17170 printf "%s\n" "$ax_pthread_ok" >&6; }
17171 if test "x$ax_pthread_ok" = xyes; then
17180 # Various other checks:
17181 if test "x$ax_pthread_ok" = xyes; then
17183 LIBS="$PTHREAD_LIBS $LIBS"
17184 save_CFLAGS="$CFLAGS"
17185 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17187 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17189 printf %s "checking for joinable pthread attribute... " >&6; }
17191 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194 #include <pthread.h>
17198 int attr = $attr; return attr /* ; */
17203 if ac_fn_c_try_link "$LINENO"
17205 attr_name=$attr; break
17207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17208 conftest$ac_exeext conftest.$ac_ext
17210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17211 printf "%s\n" "$attr_name" >&6; }
17212 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17214 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
17218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17219 printf %s "checking if more special flags are required for pthreads... " >&6; }
17222 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
17223 osf* | hpux*) flag="-D_REENTRANT";;
17225 if test "$GCC" = "yes"; then
17226 flag="-D_REENTRANT"
17228 # TODO: What about Clang on Solaris?
17229 flag="-mt -D_REENTRANT"
17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
17234 printf "%s\n" "$flag" >&6; }
17235 if test "x$flag" != xno; then
17236 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17240 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17241 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
17243 printf %s "(cached) " >&6
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17248 #include <pthread.h>
17252 int i = PTHREAD_PRIO_INHERIT;
17257 if ac_fn_c_try_link "$LINENO"
17259 ax_cv_PTHREAD_PRIO_INHERIT=yes
17261 ax_cv_PTHREAD_PRIO_INHERIT=no
17263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17264 conftest$ac_exeext conftest.$ac_ext
17267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17268 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17269 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
17272 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17277 CFLAGS="$save_CFLAGS"
17279 # More AIX lossage: compile with *_r variant
17280 if test "x$GCC" != xyes; then
17284 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17285 #handle absolute path differently from PATH based program lookup
17288 if as_fn_executable_p ${CC}_r
17290 PTHREAD_CC="${CC}_r"
17293 for ac_prog in ${CC}_r
17295 # Extract the first word of "$ac_prog", so it can be a program name with args.
17296 set dummy $ac_prog; ac_word=$2
17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17298 printf %s "checking for $ac_word... " >&6; }
17299 if test ${ac_cv_prog_PTHREAD_CC+y}
17301 printf %s "(cached) " >&6
17303 if test -n "$PTHREAD_CC"; then
17304 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17307 for as_dir in $PATH
17310 case $as_dir in #(((
17313 *) as_dir=$as_dir/ ;;
17315 for ac_exec_ext in '' $ac_executable_extensions; do
17316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17317 ac_cv_prog_PTHREAD_CC="$ac_prog"
17318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17327 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17328 if test -n "$PTHREAD_CC"; then
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17330 printf "%s\n" "$PTHREAD_CC" >&6; }
17332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 printf "%s\n" "no" >&6; }
17337 test -n "$PTHREAD_CC" && break
17339 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17350 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17356 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17357 if test x"$ax_pthread_ok" = xyes; then
17359 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
17367 ac_cpp='$CPP $CPPFLAGS'
17368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17387 # allow to override gcov location
17389 # Check whether --with-gcov was given.
17390 if test ${with_gcov+y}
17392 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
17394 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
17399 printf %s "checking whether to build with code coverage support... " >&6; }
17400 # Check whether --enable-code-coverage was given.
17401 if test ${enable_code_coverage+y}
17403 enableval=$enable_code_coverage;
17405 enable_code_coverage=no
17409 if test "x$enable_code_coverage" = xyes; then
17410 CODE_COVERAGE_ENABLED_TRUE=
17411 CODE_COVERAGE_ENABLED_FALSE='#'
17413 CODE_COVERAGE_ENABLED_TRUE='#'
17414 CODE_COVERAGE_ENABLED_FALSE=
17417 CODE_COVERAGE_ENABLED=$enable_code_coverage
17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
17420 printf "%s\n" "$enable_code_coverage" >&6; }
17422 if test "x$enable_code_coverage" = xyes
17426 for ac_prog in gawk mawk nawk awk
17428 # Extract the first word of "$ac_prog", so it can be a program name with args.
17429 set dummy $ac_prog; ac_word=$2
17430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17431 printf %s "checking for $ac_word... " >&6; }
17432 if test ${ac_cv_prog_AWK+y}
17434 printf %s "(cached) " >&6
17436 if test -n "$AWK"; then
17437 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17440 for as_dir in $PATH
17443 case $as_dir in #(((
17446 *) as_dir=$as_dir/ ;;
17448 for ac_exec_ext in '' $ac_executable_extensions; do
17449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17450 ac_cv_prog_AWK="$ac_prog"
17451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17460 AWK=$ac_cv_prog_AWK
17461 if test -n "$AWK"; then
17462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17463 printf "%s\n" "$AWK" >&6; }
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466 printf "%s\n" "no" >&6; }
17470 test -n "$AWK" && break
17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
17474 printf %s "checking for GNU make... " >&6; }
17475 if test ${_cv_gnu_make_command+y}
17477 printf %s "(cached) " >&6
17479 _cv_gnu_make_command="" ;
17480 for a in "$MAKE" make gmake gnumake ; do
17481 if test -z "$a" ; then continue ; fi ;
17482 if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
17483 _cv_gnu_make_command=$a ;
17484 AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
17485 ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
17491 printf "%s\n" "$_cv_gnu_make_command" >&6; }
17492 if test "x$_cv_gnu_make_command" = x""
17498 if test "x$_cv_gnu_make_command" = x""
17504 if test "x$_cv_gnu_make_command" = x""
17506 { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
17508 ax_cv_gnu_make_command=${_cv_gnu_make_command}
17510 if test "x$_cv_gnu_make_command" = x""
17512 as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
17519 if test -n "$ac_tool_prefix"; then
17520 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17521 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17523 printf %s "checking for $ac_word... " >&6; }
17524 if test ${ac_cv_prog_GCOV+y}
17526 printf %s "(cached) " >&6
17528 if test -n "$GCOV"; then
17529 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
17531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17532 for as_dir in $PATH
17535 case $as_dir in #(((
17538 *) as_dir=$as_dir/ ;;
17540 for ac_exec_ext in '' $ac_executable_extensions; do
17541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17542 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17552 GCOV=$ac_cv_prog_GCOV
17553 if test -n "$GCOV"; then
17554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
17555 printf "%s\n" "$GCOV" >&6; }
17557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 printf "%s\n" "no" >&6; }
17563 if test -z "$ac_cv_prog_GCOV"; then
17565 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17566 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17568 printf %s "checking for $ac_word... " >&6; }
17569 if test ${ac_cv_prog_ac_ct_GCOV+y}
17571 printf %s "(cached) " >&6
17573 if test -n "$ac_ct_GCOV"; then
17574 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
17576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17577 for as_dir in $PATH
17580 case $as_dir in #(((
17583 *) as_dir=$as_dir/ ;;
17585 for ac_exec_ext in '' $ac_executable_extensions; do
17586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17587 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17597 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
17598 if test -n "$ac_ct_GCOV"; then
17599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
17600 printf "%s\n" "$ac_ct_GCOV" >&6; }
17602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17603 printf "%s\n" "no" >&6; }
17606 if test "x$ac_ct_GCOV" = x; then
17609 case $cross_compiling:$ac_tool_warned in
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17613 ac_tool_warned=yes ;;
17618 GCOV="$ac_cv_prog_GCOV"
17621 if test "X$GCOV" = "X:"
17623 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
17627 if test "$GCC" = "no"
17630 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
17634 # Extract the first word of "lcov", so it can be a program name with args.
17635 set dummy lcov; ac_word=$2
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17637 printf %s "checking for $ac_word... " >&6; }
17638 if test ${ac_cv_prog_LCOV+y}
17640 printf %s "(cached) " >&6
17642 if test -n "$LCOV"; then
17643 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
17645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17646 for as_dir in $PATH
17649 case $as_dir in #(((
17652 *) as_dir=$as_dir/ ;;
17654 for ac_exec_ext in '' $ac_executable_extensions; do
17655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17656 ac_cv_prog_LCOV="lcov"
17657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17666 LCOV=$ac_cv_prog_LCOV
17667 if test -n "$LCOV"; then
17668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
17669 printf "%s\n" "$LCOV" >&6; }
17671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17672 printf "%s\n" "no" >&6; }
17676 # Extract the first word of "genhtml", so it can be a program name with args.
17677 set dummy genhtml; ac_word=$2
17678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17679 printf %s "checking for $ac_word... " >&6; }
17680 if test ${ac_cv_prog_GENHTML+y}
17682 printf %s "(cached) " >&6
17684 if test -n "$GENHTML"; then
17685 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
17687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17688 for as_dir in $PATH
17691 case $as_dir in #(((
17694 *) as_dir=$as_dir/ ;;
17696 for ac_exec_ext in '' $ac_executable_extensions; do
17697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17698 ac_cv_prog_GENHTML="genhtml"
17699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17708 GENHTML=$ac_cv_prog_GENHTML
17709 if test -n "$GENHTML"; then
17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
17711 printf "%s\n" "$GENHTML" >&6; }
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 printf "%s\n" "no" >&6; }
17719 if test x"$LCOV" = x
17722 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
17726 if test x"$GENHTML" = x
17729 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
17733 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
17734 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17735 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17736 CODE_COVERAGE_LIBS="-lgcov"
17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5
17757 printf %s "checking whether user namespaces are supported... " >&6; }
17758 if test ${ax_cv_user_namespace+y}
17760 printf %s "(cached) " >&6
17764 ac_cpp='$CPP $CPPFLAGS'
17765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17769 if test "$cross_compiling" = yes
17771 ax_cv_user_namespace=no
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17776 #define _GNU_SOURCE
17779 #include <signal.h>
17781 #include <string.h>
17782 #include <sys/types.h>
17783 #include <sys/wait.h>
17785 int userfn(void *d) {
17786 usleep(100000); /* synchronize by sleep */
17787 return (getuid() != 0);
17789 char userst[1024*1024];
17792 int rc, status, fd;
17793 pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
17794 if (child < 0) return 1;
17796 sprintf(buffer, "/proc/%d/uid_map", child);
17797 fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
17798 sprintf(buffer, "0 %d 1\n", getuid());
17799 write(fd, buffer, strlen(buffer));
17802 rc = waitpid(child, &status, 0);
17803 if (rc <= 0) return 1;
17804 if (!WIFEXITED(status)) return 1;
17805 return WEXITSTATUS(status);
17809 if ac_fn_c_try_run "$LINENO"
17811 ax_cv_user_namespace=yes
17813 ax_cv_user_namespace=no
17815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17816 conftest.$ac_objext conftest.beam conftest.$ac_ext
17820 ac_cpp='$CPP $CPPFLAGS'
17821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_user_namespace" >&5
17828 printf "%s\n" "$ax_cv_user_namespace" >&6; }
17829 if test "$ax_cv_user_namespace" = yes; then
17831 printf "%s\n" "#define HAVE_USER_NAMESPACE 1" >>confdefs.h
17835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5
17836 printf %s "checking whether UTS namespaces are supported... " >&6; }
17837 if test ${ax_cv_uts_namespace+y}
17839 printf %s "(cached) " >&6
17843 ac_cpp='$CPP $CPPFLAGS'
17844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17848 if test "$cross_compiling" = yes
17850 ax_cv_uts_namespace=no
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17855 #define _GNU_SOURCE
17857 #include <signal.h>
17859 #include <string.h>
17861 #include <unistd.h>
17862 #include <sys/types.h>
17863 #include <sys/wait.h>
17865 int utsfn(void *d) {
17867 const char *name = "autoconftest";
17868 int rc = sethostname(name, strlen(name));
17869 if (rc != 0) return 1;
17870 gethostname(buffer, 1024);
17871 return (strcmp(buffer, name) != 0);
17874 char st2[1024*1024];
17878 usleep(100000); /* synchronize by sleep */
17879 if (getuid() != 0) return 1;
17880 child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0);
17881 if (child < 0) return 1;
17882 rc = waitpid(child, &status, 0);
17883 if (rc <= 0) return 1;
17884 if (!WIFEXITED(status)) return 1;
17885 return WEXITSTATUS(status);
17887 char st[1024*1024];
17890 int rc, status, fd;
17891 pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
17892 if (child < 0) return 1;
17894 sprintf(buffer, "/proc/%d/uid_map", child);
17895 fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
17896 sprintf(buffer, "0 %d 1\n", getuid());
17897 write(fd, buffer, strlen(buffer));
17900 rc = waitpid(child, &status, 0);
17901 if (rc <= 0) return 1;
17902 if (!WIFEXITED(status)) return 1;
17903 return WEXITSTATUS(status);
17908 if ac_fn_c_try_run "$LINENO"
17910 ax_cv_uts_namespace=yes
17912 ax_cv_uts_namespace=no
17914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17915 conftest.$ac_objext conftest.beam conftest.$ac_ext
17919 ac_cpp='$CPP $CPPFLAGS'
17920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uts_namespace" >&5
17927 printf "%s\n" "$ax_cv_uts_namespace" >&6; }
17928 if test "$ax_cv_uts_namespace" = yes; then
17930 printf "%s\n" "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h
17935 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
17936 if test "x$ac_cv_header_netdb_h" = xyes
17938 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
17941 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
17942 if test "x$ac_cv_header_netinet_tcp_h" = xyes
17944 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
17948 ac_config_headers="$ac_config_headers config.h"
17950 ac_config_files="$ac_config_files Makefile"
17952 cat >confcache <<\_ACEOF
17953 # This file is a shell script that caches the results of configure
17954 # tests run on this system so they can be shared between configure
17955 # scripts and configure runs, see configure's option --config-cache.
17956 # It is not useful on other systems. If it contains results you don't
17957 # want to keep, you may remove or edit it.
17959 # config.status only pays attention to the cache file if you give it
17960 # the --recheck option to rerun configure.
17962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17964 # following values.
17968 # The following way of writing the cache mishandles newlines in values,
17969 # but we know of no workaround that is simple, portable, and efficient.
17970 # So, we kill variables containing newlines.
17971 # Ultrix sh set writes to stderr and can't be redirected directly,
17972 # and sets the high bit in the cache file unless we assign to the vars.
17974 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17975 eval ac_val=\$$ac_var
17979 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17980 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17983 _ | IFS | as_nl) ;; #(
17984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17985 *) { eval $ac_var=; unset $ac_var;} ;;
17991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17992 *${as_nl}ac_space=\ *)
17993 # `set' does not quote correctly, so add quotes: double-quote
17994 # substitution turns \\\\ into \\, and sed turns \\ into \.
17997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18000 # `set' quotes correctly as required by POSIX, so do not add quotes.
18001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18010 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18015 if test -w "$cache_file"; then
18016 if test "x$cache_file" != "x/dev/null"; then
18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18018 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18019 if test ! -f "$cache_file" || test -h "$cache_file"; then
18020 cat confcache >"$cache_file"
18022 case $cache_file in #(
18024 mv -f confcache "$cache_file"$$ &&
18025 mv -f "$cache_file"$$ "$cache_file" ;; #(
18027 mv -f confcache "$cache_file" ;;
18032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18033 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18039 # Let make expand exec_prefix.
18040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18042 DEFS=-DHAVE_CONFIG_H
18047 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18048 # 1. Remove the extension, and $U if already installed.
18049 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18050 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18051 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18052 # will be set to the directory where LIBOBJS objects are built.
18053 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18054 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18056 LIBOBJS=$ac_libobjs
18058 LTLIBOBJS=$ac_ltlibobjs
18061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18062 printf %s "checking that generated files are newer than configure... " >&6; }
18063 if test -n "$am_sleep_pid"; then
18064 # Hide warnings about reused PIDs.
18065 wait $am_sleep_pid 2>/dev/null
18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18068 printf "%s\n" "done" >&6; }
18069 if test -n "$EXEEXT"; then
18071 am__EXEEXT_FALSE='#'
18073 am__EXEEXT_TRUE='#'
18077 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18078 as_fn_error $? "conditional \"AMDEP\" was never defined.
18079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18081 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18082 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18085 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18086 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18089 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
18090 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
18091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18094 : "${CONFIG_STATUS=./config.status}"
18096 ac_clean_files_save=$ac_clean_files
18097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18099 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18103 # Generated by $as_me.
18104 # Run this file to recreate the current configuration.
18105 # Compiler output produced by configure, useful for debugging
18106 # configure, is in config.log if it exists.
18109 ac_cs_recheck=false
18112 SHELL=\${CONFIG_SHELL-$SHELL}
18115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18116 ## -------------------- ##
18117 ## M4sh Initialization. ##
18118 ## -------------------- ##
18120 # Be more Bourne compatible
18121 DUALCASE=1; export DUALCASE # for MKS sh
18123 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18127 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18128 # is contrary to our usage. Disable this feature.
18129 alias -g '${1+"$@"}'='"$@"'
18130 setopt NO_GLOB_SUBST
18132 case `(set -o) 2>/dev/null` in #(
18142 # Reset variables that may have inherited troublesome values from
18145 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18146 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18147 # side effect of setting IFS to empty, thus disabling word splitting.)
18148 # Quoting is to prevent editors from complaining about space-tab.
18158 # Ensure predictable behavior from utilities with locale-dependent output.
18164 # We cannot yet rely on "unset" to work, but we need these variables
18165 # to be unset--not just set to an empty or harmless value--now, to
18166 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18167 # also avoids known problems related to "unset" and subshell syntax
18168 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18169 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18170 do eval test \${$as_var+y} \
18171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18174 # Ensure that fds 0, 1, and 2 are open.
18175 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18176 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18177 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18179 # The user is always right.
18180 if ${PATH_SEPARATOR+false} :; then
18182 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18183 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18189 # Find who we are. Look in the path if we contain no directory separator.
18192 *[\\/]* ) as_myself=$0 ;;
18193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18194 for as_dir in $PATH
18197 case $as_dir in #(((
18200 *) as_dir=$as_dir/ ;;
18202 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18208 # We did not find ourselves, most probably we were run as `sh COMMAND'
18209 # in which case we are not to be found in the path.
18210 if test "x$as_myself" = x; then
18213 if test ! -f "$as_myself"; then
18214 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18220 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18221 # ----------------------------------------
18222 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18223 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18224 # script with STATUS, using 1 if that was 0.
18227 as_status=$1; test $as_status -eq 0 && as_status=1
18229 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18232 printf "%s\n" "$as_me: error: $2" >&2
18233 as_fn_exit $as_status
18238 # as_fn_set_status STATUS
18239 # -----------------------
18240 # Set $? to STATUS, without forking.
18241 as_fn_set_status ()
18244 } # as_fn_set_status
18246 # as_fn_exit STATUS
18247 # -----------------
18248 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18252 as_fn_set_status $1
18258 # Portably unset VAR.
18261 { eval $1=; unset $1;}
18263 as_unset=as_fn_unset
18265 # as_fn_append VAR VALUE
18266 # ----------------------
18267 # Append the text in VALUE to the end of the definition contained in VAR. Take
18268 # advantage of any shell optimizations that allow amortized linear growth over
18269 # repeated appends, instead of the typical quadratic growth present in naive
18271 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18273 eval 'as_fn_append ()
18284 # as_fn_arith ARG...
18285 # ------------------
18286 # Perform arithmetic evaluation on the ARGs, and store the result in the
18287 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18288 # must be portable across $(()) and expr.
18289 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18291 eval 'as_fn_arith ()
18298 as_val=`expr "$@" || test $? -eq 1`
18303 if expr a : '\(a\)' >/dev/null 2>&1 &&
18304 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18311 as_basename=basename
18316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18322 as_me=`$as_basename -- "$0" ||
18323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18324 X"$0" : 'X\(//\)$' \| \
18325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18326 printf "%s\n" X/"$0" |
18327 sed '/^.*\/\([^/][^/]*\)\/*$/{
18341 # Avoid depending upon Character Ranges.
18342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18345 as_cr_digits='0123456789'
18346 as_cr_alnum=$as_cr_Letters$as_cr_digits
18349 # Determine whether it's possible to make 'echo' print without a newline.
18350 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18351 # for compatibility with existing Makefiles.
18352 ECHO_C= ECHO_N= ECHO_T=
18353 case `echo -n x` in #(((((
18355 case `echo 'xy\c'` in
18356 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18358 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18365 # For backward compatibility with old third-party macros, we provide
18366 # the shell variables $as_echo and $as_echo_n. New code should use
18367 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18368 as_echo='printf %s\n'
18369 as_echo_n='printf %s'
18371 rm -f conf$$ conf$$.exe conf$$.file
18372 if test -d conf$$.dir; then
18373 rm -f conf$$.dir/conf$$.file
18376 mkdir conf$$.dir 2>/dev/null
18378 if (echo >conf$$.file) 2>/dev/null; then
18379 if ln -s conf$$.file conf$$ 2>/dev/null; then
18381 # ... but there are two gotchas:
18382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18384 # In both cases, we have to default to `cp -pR'.
18385 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18387 elif ln conf$$.file conf$$ 2>/dev/null; then
18395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18396 rmdir conf$$.dir 2>/dev/null
18401 # Create "$as_dir" as a directory, including parents if necessary.
18406 -*) as_dir=./$as_dir;;
18408 test -d "$as_dir" || eval $as_mkdir_p || {
18412 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18413 *) as_qdir=$as_dir;;
18415 as_dirs="'$as_qdir' $as_dirs"
18416 as_dir=`$as_dirname -- "$as_dir" ||
18417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18418 X"$as_dir" : 'X\(//\)[^/]' \| \
18419 X"$as_dir" : 'X\(//\)$' \| \
18420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18421 printf "%s\n" X"$as_dir" |
18422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18426 /^X\(\/\/\)[^/].*/{
18439 test -d "$as_dir" && break
18441 test -z "$as_dirs" || eval "mkdir $as_dirs"
18442 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18446 if mkdir -p . 2>/dev/null; then
18447 as_mkdir_p='mkdir -p "$as_dir"'
18449 test -d ./-p && rmdir ./-p
18454 # as_fn_executable_p FILE
18455 # -----------------------
18456 # Test if FILE is an executable regular file.
18457 as_fn_executable_p ()
18459 test -f "$1" && test -x "$1"
18460 } # as_fn_executable_p
18461 as_test_x='test -x'
18462 as_executable_p=as_fn_executable_p
18464 # Sed expression to map a string onto a valid CPP name.
18465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18467 # Sed expression to map a string onto a valid variable name.
18468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18472 ## ----------------------------------- ##
18473 ## Main body of $CONFIG_STATUS script. ##
18474 ## ----------------------------------- ##
18476 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18479 # Save the log message, to keep $0 and so on meaningful, and to
18480 # report actual input values of CONFIG_FILES etc. instead of their
18481 # values after options handling.
18483 This file was extended by c-ares-test $as_me -, which was
18484 generated by GNU Autoconf 2.71. Invocation command line was
18486 CONFIG_FILES = $CONFIG_FILES
18487 CONFIG_HEADERS = $CONFIG_HEADERS
18488 CONFIG_LINKS = $CONFIG_LINKS
18489 CONFIG_COMMANDS = $CONFIG_COMMANDS
18492 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18497 case $ac_config_files in *"
18498 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18501 case $ac_config_headers in *"
18502 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18507 # Files that config.status was made for.
18508 config_files="$ac_config_files"
18509 config_headers="$ac_config_headers"
18510 config_commands="$ac_config_commands"
18514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18516 \`$as_me' instantiates files and other configuration actions
18517 from templates according to the current configuration. Unless the files
18518 and actions are specified as TAGs, all are instantiated by default.
18520 Usage: $0 [OPTION]... [TAG]...
18522 -h, --help print this help, then exit
18523 -V, --version print version number and configuration settings, then exit
18524 --config print configuration, then exit
18525 -q, --quiet, --silent
18526 do not print progress messages
18527 -d, --debug don't remove temporary files
18528 --recheck update $as_me by reconfiguring in the same conditions
18529 --file=FILE[:TEMPLATE]
18530 instantiate the configuration file FILE
18531 --header=FILE[:TEMPLATE]
18532 instantiate the configuration header FILE
18534 Configuration files:
18537 Configuration headers:
18540 Configuration commands:
18543 Report bugs to <->."
18546 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18547 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 ac_cs_config='$ac_cs_config_escaped'
18551 c-ares-test config.status -
18552 configured by $0, generated by GNU Autoconf 2.71,
18553 with options \\"\$ac_cs_config\\"
18555 Copyright (C) 2021 Free Software Foundation, Inc.
18556 This config.status script is free software; the Free Software Foundation
18557 gives unlimited permission to copy, distribute and modify it."
18564 test -n "\$AWK" || AWK=awk
18567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18568 # The default lists apply if the user does not specify any file.
18574 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18575 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18591 # Handling of the options.
18592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18594 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18595 printf "%s\n" "$ac_cs_version"; exit ;;
18596 --config | --confi | --conf | --con | --co | --c )
18597 printf "%s\n" "$ac_cs_config"; exit ;;
18598 --debug | --debu | --deb | --de | --d | -d )
18600 --file | --fil | --fi | --f )
18603 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18604 '') as_fn_error $? "missing file argument" ;;
18606 as_fn_append CONFIG_FILES " '$ac_optarg'"
18607 ac_need_defaults=false;;
18608 --header | --heade | --head | --hea )
18611 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18613 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18614 ac_need_defaults=false;;
18616 # Conflict between --help and --header
18617 as_fn_error $? "ambiguous option: \`$1'
18618 Try \`$0 --help' for more information.";;
18619 --help | --hel | -h )
18620 printf "%s\n" "$ac_cs_usage"; exit ;;
18621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18625 # This is an error.
18626 -*) as_fn_error $? "unrecognized option: \`$1'
18627 Try \`$0 --help' for more information." ;;
18629 *) as_fn_append ac_config_targets " $1"
18630 ac_need_defaults=false ;;
18636 ac_configure_extra_args=
18638 if $ac_cs_silent; then
18640 ac_configure_extra_args="$ac_configure_extra_args --silent"
18644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18645 if \$ac_cs_recheck; then
18646 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18648 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18649 CONFIG_SHELL='$SHELL'
18650 export CONFIG_SHELL
18655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18660 ## Running $as_me. ##
18662 printf "%s\n" "$ac_log"
18666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18673 # The HP-UX ksh and POSIX shell print the target directory to stdout
18674 # if CDPATH is set.
18675 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18677 sed_quote_subst='$sed_quote_subst'
18678 double_quote_subst='$double_quote_subst'
18679 delay_variable_subst='$delay_variable_subst'
18680 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18681 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18682 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18683 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18684 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18685 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18686 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18687 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18688 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18689 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18690 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18691 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18692 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18693 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18694 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18695 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18696 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18697 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18698 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18699 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18700 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18701 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18702 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18703 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18704 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18705 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18706 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18707 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18708 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18709 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18710 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18711 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18712 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18713 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18714 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18715 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18716 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18717 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18718 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18719 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18720 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18721 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18722 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18723 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18724 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18725 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18726 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18727 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18728 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18729 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18730 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18731 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18732 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18733 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18734 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18735 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18736 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18737 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18738 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"`'
18739 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18740 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18741 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18742 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18743 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18744 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18745 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18746 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18747 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18748 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18749 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18750 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18751 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18752 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18753 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18754 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18755 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18756 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18757 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18758 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18759 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18760 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18761 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18762 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18763 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18764 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18765 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18766 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18767 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18768 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18769 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18770 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18771 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18772 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18773 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18774 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18775 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18776 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18777 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18778 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18779 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18780 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18781 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18782 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18783 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18784 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18785 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18786 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18787 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18788 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18789 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18790 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18791 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18792 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18793 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18794 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18795 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18796 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18797 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18798 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18799 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18800 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18801 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18802 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18803 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18804 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18805 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18806 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18807 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18808 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18809 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18810 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18811 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18812 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18813 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18814 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18815 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18816 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18817 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18818 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18819 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18820 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18821 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18822 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18823 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18824 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18825 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18826 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18827 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18828 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18829 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18830 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18831 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18832 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18833 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18834 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18835 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18836 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18837 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18838 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18839 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18840 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18841 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18842 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18843 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18844 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18845 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18846 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18847 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18848 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18849 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18850 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18851 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18852 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18853 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18854 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18855 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18856 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18857 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18858 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18859 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18860 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18861 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18862 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18863 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18864 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18865 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18866 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18867 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18868 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18871 LTCFLAGS='$LTCFLAGS'
18872 compiler='$compiler_DEFAULT'
18874 # A function that is used when there is no print builtin or printf.
18875 func_fallback_echo ()
18877 eval 'cat <<_LTECHO_EOF
18882 # Quote evaled strings.
18897 deplibs_check_method \
18902 sharedlib_from_linklib_cmd \
18905 archiver_list_spec \
18911 lt_cv_sys_global_symbol_pipe \
18912 lt_cv_sys_global_symbol_to_cdecl \
18913 lt_cv_sys_global_symbol_to_import \
18914 lt_cv_sys_global_symbol_to_c_name_address \
18915 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18916 lt_cv_nm_interface \
18917 nm_file_list_spec \
18918 lt_cv_truncate_bin \
18919 lt_prog_compiler_no_builtin_flag \
18920 lt_prog_compiler_pic \
18921 lt_prog_compiler_wl \
18922 lt_prog_compiler_static \
18923 lt_cv_prog_compiler_c_o \
18932 export_dynamic_flag_spec \
18933 whole_archive_flag_spec \
18934 compiler_needs_object \
18936 allow_undefined_flag \
18937 no_undefined_flag \
18938 hardcode_libdir_flag_spec \
18939 hardcode_libdir_separator \
18943 variables_saved_for_relink \
18945 library_names_spec \
18947 install_override_mode \
18951 compiler_lib_search_dirs \
18956 compiler_lib_search_path \
18960 lt_prog_compiler_no_builtin_flag_CXX \
18961 lt_prog_compiler_pic_CXX \
18962 lt_prog_compiler_wl_CXX \
18963 lt_prog_compiler_static_CXX \
18964 lt_cv_prog_compiler_c_o_CXX \
18965 export_dynamic_flag_spec_CXX \
18966 whole_archive_flag_spec_CXX \
18967 compiler_needs_object_CXX \
18969 allow_undefined_flag_CXX \
18970 no_undefined_flag_CXX \
18971 hardcode_libdir_flag_spec_CXX \
18972 hardcode_libdir_separator_CXX \
18973 exclude_expsyms_CXX \
18974 include_expsyms_CXX \
18975 file_list_spec_CXX \
18976 compiler_lib_search_dirs_CXX \
18977 predep_objects_CXX \
18978 postdep_objects_CXX \
18981 compiler_lib_search_path_CXX; do
18982 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18983 *[\\\\\\\`\\"\\\$]*)
18984 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18987 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18992 # Double-quote double-evaled strings.
18993 for var in reload_cmds \
18994 old_postinstall_cmds \
18995 old_postuninstall_cmds \
18997 extract_expsyms_cmds \
18998 old_archive_from_new_cmds \
18999 old_archive_from_expsyms_cmds \
19001 archive_expsym_cmds \
19003 module_expsym_cmds \
19004 export_symbols_cmds \
19008 postuninstall_cmds \
19010 sys_lib_search_path_spec \
19011 configure_time_dlsearch_path \
19012 configure_time_lt_sys_library_path \
19014 old_archive_cmds_CXX \
19015 old_archive_from_new_cmds_CXX \
19016 old_archive_from_expsyms_cmds_CXX \
19018 archive_expsym_cmds_CXX \
19020 module_expsym_cmds_CXX \
19021 export_symbols_cmds_CXX \
19023 postlink_cmds_CXX; do
19024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19025 *[\\\\\\\`\\"\\\$]*)
19026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19034 ac_aux_dir='$ac_aux_dir'
19036 # See if we are running on zsh, and set the options that allow our
19037 # commands through without removal of \ escapes INIT.
19038 if test -n "\${ZSH_VERSION+set}"; then
19039 setopt NO_GLOB_SUBST
19055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19057 # Handling of arguments.
19058 for ac_config_target in $ac_config_targets
19060 case $ac_config_target in
19061 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19062 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19063 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19064 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19066 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19071 # If the user did not use the arguments to specify the items to instantiate,
19072 # then the envvar interface is used. Set only those that are not.
19073 # We use the long form for the default assignment because of an extremely
19074 # bizarre bug on SunOS 4.1.3.
19075 if $ac_need_defaults; then
19076 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19077 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19078 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19081 # Have a temporary directory for convenience. Make it in the build tree
19082 # simply because there is no reason against having it here, and in addition,
19083 # creating and moving files from /tmp can sometimes cause problems.
19084 # Hook for its removal unless debugging.
19085 # Note that there is a small window in which the directory will not be cleaned:
19086 # after its creation but before its name has been assigned to `$tmp'.
19090 trap 'exit_status=$?
19091 : "${ac_tmp:=$tmp}"
19092 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19094 trap 'as_fn_exit 1' 1 2 13 15
19096 # Create a (secure) tmp directory for tmp files.
19099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19103 tmp=./conf$$-$RANDOM
19104 (umask 077 && mkdir "$tmp")
19105 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19108 # Set up the scripts for CONFIG_FILES section.
19109 # No need to generate them if there are no CONFIG_FILES.
19110 # This happens for instance with `./config.status config.h'.
19111 if test -n "$CONFIG_FILES"; then
19114 ac_cr=`echo X | tr X '\015'`
19115 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19116 # But we know of no other shell where ac_cr would be empty at this
19117 # point, so we can use a bashism as a fallback.
19118 if test "x$ac_cr" = x; then
19119 eval ac_cr=\$\'\\r\'
19121 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19122 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19125 ac_cs_awk_cr=$ac_cr
19128 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19133 echo "cat >conf$$subs.awk <<_ACEOF" &&
19134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19136 } >conf$$subs.sh ||
19137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19140 for ac_last_try in false false false false false :; do
19141 . ./conf$$subs.sh ||
19142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19145 if test $ac_delim_n = $ac_delim_num; then
19147 elif $ac_last_try; then
19148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19153 rm -f conf$$subs.sh
19155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19156 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19160 s/^/S["/; s/!.*/"]=/
19170 s/\(.\{148\}\)..*/\1/
19172 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19184 s/\(.\{148\}\)..*/\1/
19186 s/["\\]/\\&/g; s/^/"/; s/$/"/
19190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19195 ' <conf$$subs.awk | sed '
19200 ' >>$CONFIG_STATUS || ac_write_fail=1
19201 rm -f conf$$subs.awk
19202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19204 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19205 for (key in S) S_is_set[key] = 1
19211 nfields = split(line, field, "@")
19213 len = length(field[1])
19214 for (i = 2; i < nfields; i++) {
19216 keylen = length(key)
19217 if (S_is_set[key]) {
19219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19220 len += length(value) + length(field[++i])
19231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19232 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19233 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19236 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19237 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19240 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19241 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19242 # trailing colons and then remove the whole line if VPATH becomes empty
19243 # (actually we leave an empty line to preserve line numbers).
19244 if test "x$srcdir" = x.; then
19245 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19264 fi # test -n "$CONFIG_FILES"
19266 # Set up the scripts for CONFIG_HEADERS section.
19267 # No need to generate them if there are no CONFIG_HEADERS.
19268 # This happens for instance with `./config.status Makefile'.
19269 if test -n "$CONFIG_HEADERS"; then
19270 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19274 # Transform confdefs.h into an awk script `defines.awk', embedded as
19275 # here-document in config.status, that substitutes the proper values into
19276 # config.h.in to produce config.h.
19278 # Create a delimiter string that does not exist in confdefs.h, to ease
19279 # handling of long lines.
19281 for ac_last_try in false false :; do
19282 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19283 if test -z "$ac_tt"; then
19285 elif $ac_last_try; then
19286 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19292 # For the awk script, D is an array of macro values keyed by name,
19293 # likewise P contains macro parameters if any. Preserve backslash
19294 # newline sequences.
19296 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19298 s/.\{148\}/&'"$ac_delim"'/g
19301 s/^[ ]*#[ ]*define[ ][ ]*/ /
19308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19315 D["\1"]=" \3\\\\\\n"\\/p
19317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19322 s/.\{148\}/&'"$ac_delim"'/g
19327 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19330 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19332 ' <confdefs.h | sed '
19333 s/'"$ac_delim"'/"\\\
19334 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19337 for (key in D) D_is_set[key] = 1
19340 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19342 split(line, arg, " ")
19343 if (arg[1] == "#") {
19347 defundef = substr(arg[1], 2)
19350 split(mac1, mac2, "(") #)
19352 prefix = substr(line, 1, index(line, defundef) - 1)
19353 if (D_is_set[macro]) {
19354 # Preserve the white space surrounding the "#".
19355 print prefix "define", macro P[macro] D[macro]
19358 # Replace #undef with comments. This is necessary, for example,
19359 # in the case of _POSIX_SOURCE, which is predefined and required
19360 # on some systems where configure will not decide to define it.
19361 if (defundef == "undef") {
19362 print "/*", prefix defundef, macro, "*/"
19370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19371 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19372 fi # test -n "$CONFIG_HEADERS"
19375 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19380 :[FHLC]) ac_mode=$ac_tag; continue;;
19382 case $ac_mode$ac_tag in
19384 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19385 :[FH]-) ac_tag=-:-;;
19386 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19403 -) ac_f="$ac_tmp/stdin";;
19404 *) # Look for the file first in the build tree, then in the source tree
19405 # (if the path is not absolute). The absolute path cannot be DOS-style,
19406 # because $ac_f cannot contain `:'.
19410 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19412 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19414 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19415 as_fn_append ac_file_inputs " '$ac_f'"
19418 # Let's still pretend it is `configure' which instantiates (i.e., don't
19419 # use $as_me), people would be surprised to read:
19420 # /* config.h. Generated by config.status. */
19421 configure_input='Generated from '`
19422 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19424 if test x"$ac_file" != x-; then
19425 configure_input="$ac_file. $configure_input"
19426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19427 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19429 # Neutralize special characters interpreted by sed in replacement strings.
19430 case $configure_input in #(
19431 *\&* | *\|* | *\\* )
19432 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19433 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19434 *) ac_sed_conf_input=$configure_input;;
19438 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19444 ac_dir=`$as_dirname -- "$ac_file" ||
19445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19446 X"$ac_file" : 'X\(//\)[^/]' \| \
19447 X"$ac_file" : 'X\(//\)$' \| \
19448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19449 printf "%s\n" X"$ac_file" |
19450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19454 /^X\(\/\/\)[^/].*/{
19467 as_dir="$ac_dir"; as_fn_mkdir_p
19471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19473 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19474 # A ".." for each directory in $ac_dir_suffix.
19475 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19476 case $ac_top_builddir_sub in
19477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19481 ac_abs_top_builddir=$ac_pwd
19482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19483 # for backward compatibility:
19484 ac_top_builddir=$ac_top_build_prefix
19487 .) # We are building in place.
19489 ac_top_srcdir=$ac_top_builddir_sub
19490 ac_abs_top_srcdir=$ac_pwd ;;
19491 [\\/]* | ?:[\\/]* ) # Absolute name.
19492 ac_srcdir=$srcdir$ac_dir_suffix;
19493 ac_top_srcdir=$srcdir
19494 ac_abs_top_srcdir=$srcdir ;;
19495 *) # Relative name.
19496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19497 ac_top_srcdir=$ac_top_build_prefix$srcdir
19498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19510 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19511 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19513 ac_MKDIR_P=$MKDIR_P
19515 [\\/$]* | ?:[\\/]* ) ;;
19516 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19521 # If the template does not know about datarootdir, expand it.
19522 # FIXME: This hack should be removed a few years after 2.60.
19523 ac_datarootdir_hack=; ac_datarootdir_seen=
19534 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19535 *datarootdir*) ac_datarootdir_seen=yes;;
19536 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19538 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19541 ac_datarootdir_hack='
19542 s&@datadir@&$datadir&g
19543 s&@docdir@&$docdir&g
19544 s&@infodir@&$infodir&g
19545 s&@localedir@&$localedir&g
19546 s&@mandir@&$mandir&g
19547 s&\\\${datarootdir}&$datarootdir&g' ;;
19551 # Neutralize VPATH when `$srcdir' = `.'.
19552 # Shell code in configure.ac might set extrasub.
19553 # FIXME: do we really want to maintain this feature?
19554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19555 ac_sed_extra="$ac_vpsub
19558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19561 s|@configure_input@|$ac_sed_conf_input|;t t
19562 s&@top_builddir@&$ac_top_builddir_sub&;t t
19563 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19564 s&@srcdir@&$ac_srcdir&;t t
19565 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19566 s&@top_srcdir@&$ac_top_srcdir&;t t
19567 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19568 s&@builddir@&$ac_builddir&;t t
19569 s&@abs_builddir@&$ac_abs_builddir&;t t
19570 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19571 s&@INSTALL@&$ac_INSTALL&;t t
19572 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19573 $ac_datarootdir_hack
19575 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19576 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19579 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19581 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19583 which seems to be undefined. Please make sure it is defined" >&5
19584 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19585 which seems to be undefined. Please make sure it is defined" >&2;}
19587 rm -f "$ac_tmp/stdin"
19589 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19590 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19598 if test x"$ac_file" != x-; then
19600 printf "%s\n" "/* $configure_input */" >&1 \
19601 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19602 } >"$ac_tmp/config.h" \
19603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19604 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19606 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19609 mv "$ac_tmp/config.h" "$ac_file" \
19610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19613 printf "%s\n" "/* $configure_input */" >&1 \
19614 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19615 || as_fn_error $? "could not create -" "$LINENO" 5
19617 # Compute "$ac_file"'s index in $config_headers.
19620 for _am_header in $config_headers :; do
19621 case $_am_header in
19622 $_am_arg | $_am_arg:* )
19625 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19628 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19629 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19630 X"$_am_arg" : 'X\(//\)[^/]' \| \
19631 X"$_am_arg" : 'X\(//\)$' \| \
19632 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19633 printf "%s\n" X"$_am_arg" |
19634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19638 /^X\(\/\/\)[^/].*/{
19650 s/.*/./; q'`/stamp-h$_am_stamp_count
19653 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19654 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19659 case $ac_file$ac_mode in
19660 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19661 # Older Autoconf quotes --file arguments for eval, but not when files
19662 # are listed without --file. Let's play safe and only enable the eval
19663 # if we detect the quoting.
19664 # TODO: see whether this extra hack can be removed once we start
19665 # requiring Autoconf 2.70 or later.
19666 case $CONFIG_FILES in #(
19668 eval set x "$CONFIG_FILES" ;; #(
19670 set x $CONFIG_FILES ;; #(
19675 # Used to flag and report bootstrapping failures.
19679 # Strip MF so we end up with the name of the file.
19680 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19681 # Check whether this is an Automake generated Makefile which includes
19682 # dependency-tracking related rules and includes.
19683 # Grep'ing the whole file directly is not great: AIX grep has a line
19684 # limit of 2048, but all sed's we know have understand at least 4000.
19685 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19687 am_dirpart=`$as_dirname -- "$am_mf" ||
19688 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19689 X"$am_mf" : 'X\(//\)[^/]' \| \
19690 X"$am_mf" : 'X\(//\)$' \| \
19691 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19692 printf "%s\n" X"$am_mf" |
19693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19697 /^X\(\/\/\)[^/].*/{
19710 am_filepart=`$as_basename -- "$am_mf" ||
19711 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19712 X"$am_mf" : 'X\(//\)$' \| \
19713 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19714 printf "%s\n" X/"$am_mf" |
19715 sed '/^.*\/\([^/][^/]*\)\/*$/{
19728 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19729 && sed -e '/# am--include-marker/d' "$am_filepart" \
19730 | $MAKE -f - am--depfiles" >&5
19731 (cd "$am_dirpart" \
19732 && sed -e '/# am--include-marker/d' "$am_filepart" \
19733 | $MAKE -f - am--depfiles) >&5 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } || am_rc=$?
19738 if test $am_rc -ne 0; then
19739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19740 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19741 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19742 for automatic dependency tracking. If GNU make was not used, consider
19743 re-running the configure script with MAKE=\"gmake\" (or whatever is
19744 necessary). You can also try re-running configure with the
19745 '--disable-dependency-tracking' option to at least be able to build
19746 the package (albeit without support for automatic dependency tracking).
19747 See \`config.log' for more details" "$LINENO" 5; }
19749 { am_dirpart=; unset am_dirpart;}
19750 { am_filepart=; unset am_filepart;}
19751 { am_mf=; unset am_mf;}
19752 { am_rc=; unset am_rc;}
19753 rm -f conftest-deps.mk
19758 # See if we are running on zsh, and set the options that allow our
19759 # commands through without removal of \ escapes.
19760 if test -n "${ZSH_VERSION+set}"; then
19761 setopt NO_GLOB_SUBST
19765 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19768 cat <<_LT_EOF >> "$cfgfile"
19770 # Generated automatically by $as_me ($PACKAGE) $VERSION
19771 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19773 # Provide generalized library-building support services.
19774 # Written by Gordon Matzigkeit, 1996
19776 # Copyright (C) 2014 Free Software Foundation, Inc.
19777 # This is free software; see the source for copying conditions. There is NO
19778 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19780 # GNU Libtool is free software; you can redistribute it and/or modify
19781 # it under the terms of the GNU General Public License as published by
19782 # the Free Software Foundation; either version 2 of of the License, or
19783 # (at your option) any later version.
19785 # As a special exception to the GNU General Public License, if you
19786 # distribute this file as part of a program or library that is built
19787 # using GNU Libtool, you may include this file under the same
19788 # distribution terms that you use for the rest of that program.
19790 # GNU Libtool is distributed in the hope that it will be useful, but
19791 # WITHOUT ANY WARRANTY; without even the implied warranty of
19792 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19793 # GNU General Public License for more details.
19795 # You should have received a copy of the GNU General Public License
19796 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19799 # The names of the tagged configurations supported by this script.
19800 available_tags='CXX '
19802 # Configured defaults for sys_lib_dlsearch_path munging.
19803 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19805 # ### BEGIN LIBTOOL CONFIG
19807 # Which release of libtool.m4 was used?
19808 macro_version=$macro_version
19809 macro_revision=$macro_revision
19811 # Whether or not to build shared libraries.
19812 build_libtool_libs=$enable_shared
19814 # Whether or not to build static libraries.
19815 build_old_libs=$enable_static
19817 # What type of objects to build.
19820 # Whether or not to optimize for fast installation.
19821 fast_install=$enable_fast_install
19823 # Shared archive member basename,for filename based shared library versioning on AIX.
19824 shared_archive_member_spec=$shared_archive_member_spec
19826 # Shell to use when invoking shell scripts.
19829 # An echo program that protects backslashes.
19832 # The PATH separator for the build system.
19833 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19836 host_alias=$host_alias
19840 # The build system.
19841 build_alias=$build_alias
19845 # A sed program that does not truncate output.
19848 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19849 Xsed="\$SED -e 1s/^X//"
19851 # A grep program that handles long lines.
19857 # A literal string matcher.
19860 # A BSD- or MS-compatible name lister.
19863 # Whether we need soft or hard links.
19866 # What is the maximum length of a command?
19867 max_cmd_len=$max_cmd_len
19869 # Object file suffix (normally "o").
19872 # Executable file suffix (normally "").
19875 # whether the shell understands "unset".
19878 # turn spaces into newlines.
19881 # turn newlines into spaces.
19884 # convert \$build file names to \$host format.
19885 to_host_file_cmd=$lt_cv_to_host_file_cmd
19887 # convert \$build files to toolchain format.
19888 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19890 # An object symbol dumper.
19891 OBJDUMP=$lt_OBJDUMP
19893 # Method to check whether dependent libraries are shared objects.
19894 deplibs_check_method=$lt_deplibs_check_method
19896 # Command to use when deplibs_check_method = "file_magic".
19897 file_magic_cmd=$lt_file_magic_cmd
19899 # How to find potential files when deplibs_check_method = "file_magic".
19900 file_magic_glob=$lt_file_magic_glob
19902 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19903 want_nocaseglob=$lt_want_nocaseglob
19905 # DLL creation program.
19906 DLLTOOL=$lt_DLLTOOL
19908 # Command to associate shared and link libraries.
19909 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19914 # Flags to create an archive.
19915 AR_FLAGS=$lt_AR_FLAGS
19917 # How to feed a file listing to the archiver.
19918 archiver_list_spec=$lt_archiver_list_spec
19920 # A symbol stripping program.
19923 # Commands used to install an old-style archive.
19925 old_postinstall_cmds=$lt_old_postinstall_cmds
19926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19928 # Whether to use a lock for old archive extraction.
19929 lock_old_archive_extraction=$lock_old_archive_extraction
19934 # LTCC compiler flags.
19935 LTCFLAGS=$lt_CFLAGS
19937 # Take the output of nm and produce a listing of raw symbols and C names.
19938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19940 # Transform the output of nm in a proper C declaration.
19941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19943 # Transform the output of nm into a list of symbols to manually relocate.
19944 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19946 # Transform the output of nm in a C name address pair.
19947 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19949 # Transform the output of nm in a C name address pair when lib prefix is needed.
19950 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19952 # The name lister interface.
19953 nm_interface=$lt_lt_cv_nm_interface
19955 # Specify filename containing input files for \$NM.
19956 nm_file_list_spec=$lt_nm_file_list_spec
19958 # The root where to search for dependent libraries,and where our libraries should be installed.
19959 lt_sysroot=$lt_sysroot
19961 # Command to truncate a binary pipe.
19962 lt_truncate_bin=$lt_lt_cv_truncate_bin
19964 # The name of the directory that contains temporary libtool files.
19967 # Used to examine libraries when file_magic_cmd begins with "file".
19968 MAGIC_CMD=$MAGIC_CMD
19970 # Must we lock files when doing compilation?
19971 need_locks=$lt_need_locks
19974 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19976 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19977 DSYMUTIL=$lt_DSYMUTIL
19979 # Tool to change global to local symbols on Mac OS X.
19982 # Tool to manipulate fat objects and archives on Mac OS X.
19985 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19988 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19989 OTOOL64=$lt_OTOOL64
19991 # Old archive suffix (normally "a").
19994 # Shared library suffix (normally ".so").
19995 shrext_cmds=$lt_shrext_cmds
19997 # The commands to extract the exported symbol list from a shared archive.
19998 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20000 # Variables whose values should be saved in libtool wrapper scripts and
20001 # restored at link time.
20002 variables_saved_for_relink=$lt_variables_saved_for_relink
20004 # Do we need the "lib" prefix for modules?
20005 need_lib_prefix=$need_lib_prefix
20007 # Do we need a version for libraries?
20008 need_version=$need_version
20010 # Library versioning type.
20011 version_type=$version_type
20013 # Shared library runtime path variable.
20014 runpath_var=$runpath_var
20016 # Shared library path variable.
20017 shlibpath_var=$shlibpath_var
20019 # Is shlibpath searched before the hard-coded library search path?
20020 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20022 # Format of library name prefix.
20023 libname_spec=$lt_libname_spec
20025 # List of archive names. First name is the real one, the rest are links.
20026 # The last name is the one that the linker finds with -lNAME
20027 library_names_spec=$lt_library_names_spec
20029 # The coded name of the library, if different from the real name.
20030 soname_spec=$lt_soname_spec
20032 # Permission mode override for installation of shared libraries.
20033 install_override_mode=$lt_install_override_mode
20035 # Command to use after installation of a shared archive.
20036 postinstall_cmds=$lt_postinstall_cmds
20038 # Command to use after uninstallation of a shared archive.
20039 postuninstall_cmds=$lt_postuninstall_cmds
20041 # Commands used to finish a libtool library installation in a directory.
20042 finish_cmds=$lt_finish_cmds
20044 # As "finish_cmds", except a single script fragment to be evaled but
20046 finish_eval=$lt_finish_eval
20048 # Whether we should hardcode library paths into libraries.
20049 hardcode_into_libs=$hardcode_into_libs
20051 # Compile-time system search path for libraries.
20052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20054 # Detected run-time system search path for libraries.
20055 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20057 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20058 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20060 # Whether dlopen is supported.
20061 dlopen_support=$enable_dlopen
20063 # Whether dlopen of programs is supported.
20064 dlopen_self=$enable_dlopen_self
20066 # Whether dlopen of statically linked programs is supported.
20067 dlopen_self_static=$enable_dlopen_self_static
20069 # Commands to strip libraries.
20070 old_striplib=$lt_old_striplib
20071 striplib=$lt_striplib
20074 # The linker used to build libraries.
20077 # How to create reloadable object files.
20078 reload_flag=$lt_reload_flag
20079 reload_cmds=$lt_reload_cmds
20081 # Commands used to build an old-style archive.
20082 old_archive_cmds=$lt_old_archive_cmds
20084 # A language specific compiler.
20087 # Is the compiler the GNU compiler?
20090 # Compiler flag to turn off builtin functions.
20091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20093 # Additional compiler flags for building library objects.
20094 pic_flag=$lt_lt_prog_compiler_pic
20096 # How to pass a linker flag through the compiler.
20097 wl=$lt_lt_prog_compiler_wl
20099 # Compiler flag to prevent dynamic linking.
20100 link_static_flag=$lt_lt_prog_compiler_static
20102 # Does compiler simultaneously support -c and -o options?
20103 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20105 # Whether or not to add -lc for building shared libraries.
20106 build_libtool_need_lc=$archive_cmds_need_lc
20108 # Whether or not to disallow shared libs when runtime libs are static.
20109 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20111 # Compiler flag to allow reflexive dlopens.
20112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20114 # Compiler flag to generate shared objects directly from archives.
20115 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20117 # Whether the compiler copes with passing no objects directly.
20118 compiler_needs_object=$lt_compiler_needs_object
20120 # Create an old-style archive from a shared archive.
20121 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20123 # Create a temporary old-style archive to link instead of a shared archive.
20124 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20126 # Commands used to build a shared archive.
20127 archive_cmds=$lt_archive_cmds
20128 archive_expsym_cmds=$lt_archive_expsym_cmds
20130 # Commands used to build a loadable module if different from building
20131 # a shared archive.
20132 module_cmds=$lt_module_cmds
20133 module_expsym_cmds=$lt_module_expsym_cmds
20135 # Whether we are building with GNU ld or not.
20136 with_gnu_ld=$lt_with_gnu_ld
20138 # Flag that allows shared libraries with undefined symbols to be built.
20139 allow_undefined_flag=$lt_allow_undefined_flag
20141 # Flag that enforces no undefined symbols.
20142 no_undefined_flag=$lt_no_undefined_flag
20144 # Flag to hardcode \$libdir into a binary during linking.
20145 # This must work even if \$libdir does not exist
20146 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20148 # Whether we need a single "-rpath" flag with a separated argument.
20149 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20151 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20152 # DIR into the resulting binary.
20153 hardcode_direct=$hardcode_direct
20155 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20156 # DIR into the resulting binary and the resulting library dependency is
20157 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20158 # library is relocated.
20159 hardcode_direct_absolute=$hardcode_direct_absolute
20161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20162 # into the resulting binary.
20163 hardcode_minus_L=$hardcode_minus_L
20165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20166 # into the resulting binary.
20167 hardcode_shlibpath_var=$hardcode_shlibpath_var
20169 # Set to "yes" if building a shared library automatically hardcodes DIR
20170 # into the library and all subsequent libraries and executables linked
20172 hardcode_automatic=$hardcode_automatic
20174 # Set to yes if linker adds runtime paths of dependent libraries
20175 # to runtime path list.
20176 inherit_rpath=$inherit_rpath
20178 # Whether libtool must link a program against all its dependency libraries.
20179 link_all_deplibs=$link_all_deplibs
20181 # Set to "yes" if exported symbols are required.
20182 always_export_symbols=$always_export_symbols
20184 # The commands to list exported symbols.
20185 export_symbols_cmds=$lt_export_symbols_cmds
20187 # Symbols that should not be listed in the preloaded symbols.
20188 exclude_expsyms=$lt_exclude_expsyms
20190 # Symbols that must always be exported.
20191 include_expsyms=$lt_include_expsyms
20193 # Commands necessary for linking programs (against libraries) with templates.
20194 prelink_cmds=$lt_prelink_cmds
20196 # Commands necessary for finishing linking programs.
20197 postlink_cmds=$lt_postlink_cmds
20199 # Specify filename containing input files.
20200 file_list_spec=$lt_file_list_spec
20202 # How to hardcode a shared library path into an executable.
20203 hardcode_action=$hardcode_action
20205 # The directories searched by this compiler when creating a shared library.
20206 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20208 # Dependencies to place before and after the objects being linked to
20209 # create a shared library.
20210 predep_objects=$lt_predep_objects
20211 postdep_objects=$lt_postdep_objects
20212 predeps=$lt_predeps
20213 postdeps=$lt_postdeps
20215 # The library search path used internally by the compiler when linking
20216 # a shared library.
20217 compiler_lib_search_path=$lt_compiler_lib_search_path
20219 # ### END LIBTOOL CONFIG
20223 cat <<'_LT_EOF' >> "$cfgfile"
20225 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20227 # func_munge_path_list VARIABLE PATH
20228 # -----------------------------------
20229 # VARIABLE is name of variable containing _space_ separated list of
20230 # directories to be munged by the contents of PATH, which is string
20233 # string "DIR[ DIR]" will be prepended to VARIABLE
20235 # string "DIR[ DIR]" will be appended to VARIABLE
20236 # "DIRP[:DIRP]::[DIRA:]DIRA"
20237 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20238 # "DIRA[ DIRA]" will be appended to VARIABLE
20240 # VARIABLE will be replaced by "DIR[ DIR]"
20241 func_munge_path_list ()
20247 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20250 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20253 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20254 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20257 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20263 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20264 func_cc_basename ()
20266 for cc_temp in $*""; do
20268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20274 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20278 # ### END FUNCTIONS SHARED WITH CONFIGURE
20284 cat <<\_LT_EOF >> "$cfgfile"
20285 # AIX sometimes has problems with the GCC collect2 program. For some
20286 # reason, if we set the COLLECT_NAMES environment variable, the problems
20287 # vanish in a puff of smoke.
20288 if test set != "${COLLECT_NAMES+set}"; then
20290 export COLLECT_NAMES
20298 ltmain=$ac_aux_dir/ltmain.sh
20301 # We use sed instead of cat because bash on DJGPP gets confused if
20302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20303 # text mode, it properly converts lines to CR/LF. This bash problem
20304 # is reportedly fixed, but why not run on old versions too?
20305 sed '$q' "$ltmain" >> "$cfgfile" \
20306 || (rm -f "$cfgfile"; exit 1)
20308 mv -f "$cfgfile" "$ofile" ||
20309 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20313 cat <<_LT_EOF >> "$ofile"
20315 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20317 # The linker used to build libraries.
20320 # How to create reloadable object files.
20321 reload_flag=$lt_reload_flag_CXX
20322 reload_cmds=$lt_reload_cmds_CXX
20324 # Commands used to build an old-style archive.
20325 old_archive_cmds=$lt_old_archive_cmds_CXX
20327 # A language specific compiler.
20328 CC=$lt_compiler_CXX
20330 # Is the compiler the GNU compiler?
20333 # Compiler flag to turn off builtin functions.
20334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20336 # Additional compiler flags for building library objects.
20337 pic_flag=$lt_lt_prog_compiler_pic_CXX
20339 # How to pass a linker flag through the compiler.
20340 wl=$lt_lt_prog_compiler_wl_CXX
20342 # Compiler flag to prevent dynamic linking.
20343 link_static_flag=$lt_lt_prog_compiler_static_CXX
20345 # Does compiler simultaneously support -c and -o options?
20346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20348 # Whether or not to add -lc for building shared libraries.
20349 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20351 # Whether or not to disallow shared libs when runtime libs are static.
20352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20354 # Compiler flag to allow reflexive dlopens.
20355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20357 # Compiler flag to generate shared objects directly from archives.
20358 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20360 # Whether the compiler copes with passing no objects directly.
20361 compiler_needs_object=$lt_compiler_needs_object_CXX
20363 # Create an old-style archive from a shared archive.
20364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20366 # Create a temporary old-style archive to link instead of a shared archive.
20367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20369 # Commands used to build a shared archive.
20370 archive_cmds=$lt_archive_cmds_CXX
20371 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20373 # Commands used to build a loadable module if different from building
20374 # a shared archive.
20375 module_cmds=$lt_module_cmds_CXX
20376 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20378 # Whether we are building with GNU ld or not.
20379 with_gnu_ld=$lt_with_gnu_ld_CXX
20381 # Flag that allows shared libraries with undefined symbols to be built.
20382 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20384 # Flag that enforces no undefined symbols.
20385 no_undefined_flag=$lt_no_undefined_flag_CXX
20387 # Flag to hardcode \$libdir into a binary during linking.
20388 # This must work even if \$libdir does not exist
20389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20391 # Whether we need a single "-rpath" flag with a separated argument.
20392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20394 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20395 # DIR into the resulting binary.
20396 hardcode_direct=$hardcode_direct_CXX
20398 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20399 # DIR into the resulting binary and the resulting library dependency is
20400 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20401 # library is relocated.
20402 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20405 # into the resulting binary.
20406 hardcode_minus_L=$hardcode_minus_L_CXX
20408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20409 # into the resulting binary.
20410 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20412 # Set to "yes" if building a shared library automatically hardcodes DIR
20413 # into the library and all subsequent libraries and executables linked
20415 hardcode_automatic=$hardcode_automatic_CXX
20417 # Set to yes if linker adds runtime paths of dependent libraries
20418 # to runtime path list.
20419 inherit_rpath=$inherit_rpath_CXX
20421 # Whether libtool must link a program against all its dependency libraries.
20422 link_all_deplibs=$link_all_deplibs_CXX
20424 # Set to "yes" if exported symbols are required.
20425 always_export_symbols=$always_export_symbols_CXX
20427 # The commands to list exported symbols.
20428 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20430 # Symbols that should not be listed in the preloaded symbols.
20431 exclude_expsyms=$lt_exclude_expsyms_CXX
20433 # Symbols that must always be exported.
20434 include_expsyms=$lt_include_expsyms_CXX
20436 # Commands necessary for linking programs (against libraries) with templates.
20437 prelink_cmds=$lt_prelink_cmds_CXX
20439 # Commands necessary for finishing linking programs.
20440 postlink_cmds=$lt_postlink_cmds_CXX
20442 # Specify filename containing input files.
20443 file_list_spec=$lt_file_list_spec_CXX
20445 # How to hardcode a shared library path into an executable.
20446 hardcode_action=$hardcode_action_CXX
20448 # The directories searched by this compiler when creating a shared library.
20449 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20451 # Dependencies to place before and after the objects being linked to
20452 # create a shared library.
20453 predep_objects=$lt_predep_objects_CXX
20454 postdep_objects=$lt_postdep_objects_CXX
20455 predeps=$lt_predeps_CXX
20456 postdeps=$lt_postdeps_CXX
20458 # The library search path used internally by the compiler when linking
20459 # a shared library.
20460 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20462 # ### END LIBTOOL TAG CONFIG: CXX
20473 ac_clean_files=$ac_clean_files_save
20475 test $ac_write_fail = 0 ||
20476 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20479 # configure is writing to config.log, and then calls config.status.
20480 # config.status does its own redirection, appending to config.log.
20481 # Unfortunately, on DOS this fails, as config.log is still kept open
20482 # by configure, so config.status won't be able to write to it; its
20483 # output is simply discarded. So we exec the FD to /dev/null,
20484 # effectively closing config.log, so it can be properly (re)opened and
20485 # appended to by config.status. When coming back to configure, we
20486 # need to make the FD available again.
20487 if test "$no_create" != yes; then
20489 ac_config_status_args=
20490 test "$silent" = yes &&
20491 ac_config_status_args="$ac_config_status_args --quiet"
20493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20496 # would make configure fail if this is the last instruction.
20497 $ac_cs_success || as_fn_exit 1
20499 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20501 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}