2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for wolfssl 3.6.0.
5 # Report bugs to <https://github.com/wolfssl/wolfssl/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/wolfssl/wolfssl/issues 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;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='wolfssl'
592 PACKAGE_TARNAME='wolfssl'
593 PACKAGE_VERSION='3.6.0'
594 PACKAGE_STRING='wolfssl 3.6.0'
595 PACKAGE_BUGREPORT='https://github.com/wolfssl/wolfssl/issues'
596 PACKAGE_URL='http://www.wolfssl.com'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
645 IS_VCS_CHECKOUT_FALSE
666 BUILD_CRL_MONITOR_FALSE
667 BUILD_CRL_MONITOR_TRUE
711 BUILD_CURVED25519_SMALL_FALSE
712 BUILD_CURVED25519_SMALL_TRUE
715 BUILD_CURVE25519_FALSE
716 BUILD_CURVE25519_TRUE
737 BUILD_SNIFFTEST_FALSE
753 am__fastdepCCAS_FALSE
806 WOLFSSL_LIBRARY_VERSION
819 INSTALL_STRIP_PROGRAM
869 program_transform_name
882 enable_option_checking
888 enable_dependency_tracking
893 enable_singlethreaded
963 enable_renegotiation_indication
964 enable_secure_renegotiation
965 enable_supportedcurves
966 enable_session_ticket
985 ac_precious_vars='build_alias
1002 # Initialize some variables set by options.
1004 ac_init_version=false
1005 ac_unrecognized_opts=
1006 ac_unrecognized_sep=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1016 program_transform_name=s,x,x,
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1041 infodir='${datarootdir}/info'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1054 # If the previous option needs an argument, assign it.
1055 if test -n "$ac_prev"; then
1056 eval $ac_prev=\$ac_option
1062 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067 # Accept the important Cygnus configure options, so we can diagnose typos.
1069 case $ac_dashdash$ac_option in
1073 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076 bindir=$ac_optarg ;;
1078 -build | --build | --buil | --bui | --bu)
1079 ac_prev=build_alias ;;
1080 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081 build_alias=$ac_optarg ;;
1083 -cache-file | --cache-file | --cache-fil | --cache-fi \
1084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085 ac_prev=cache_file ;;
1086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088 cache_file=$ac_optarg ;;
1090 --config-cache | -C)
1091 cache_file=config.cache ;;
1093 -datadir | --datadir | --datadi | --datad)
1095 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096 datadir=$ac_optarg ;;
1098 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099 | --dataroo | --dataro | --datar)
1100 ac_prev=datarootdir ;;
1101 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103 datarootdir=$ac_optarg ;;
1105 -disable-* | --disable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval enable_$ac_useropt=no ;;
1121 -docdir | --docdir | --docdi | --doc | --do)
1123 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124 docdir=$ac_optarg ;;
1126 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129 dvidir=$ac_optarg ;;
1131 -enable-* | --enable-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid feature name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "enable_$ac_useropt"
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval enable_$ac_useropt=\$ac_optarg ;;
1147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149 | --exec | --exe | --ex)
1150 ac_prev=exec_prefix ;;
1151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153 | --exec=* | --exe=* | --ex=*)
1154 exec_prefix=$ac_optarg ;;
1156 -gas | --gas | --ga | --g)
1157 # Obsolete; use --with-gas.
1160 -help | --help | --hel | --he | -h)
1161 ac_init_help=long ;;
1162 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163 ac_init_help=recursive ;;
1164 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165 ac_init_help=short ;;
1167 -host | --host | --hos | --ho)
1168 ac_prev=host_alias ;;
1169 -host=* | --host=* | --hos=* | --ho=*)
1170 host_alias=$ac_optarg ;;
1172 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176 htmldir=$ac_optarg ;;
1178 -includedir | --includedir | --includedi | --included | --include \
1179 | --includ | --inclu | --incl | --inc)
1180 ac_prev=includedir ;;
1181 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182 | --includ=* | --inclu=* | --incl=* | --inc=*)
1183 includedir=$ac_optarg ;;
1185 -infodir | --infodir | --infodi | --infod | --info | --inf)
1187 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188 infodir=$ac_optarg ;;
1190 -libdir | --libdir | --libdi | --libd)
1192 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193 libdir=$ac_optarg ;;
1195 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196 | --libexe | --libex | --libe)
1197 ac_prev=libexecdir ;;
1198 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199 | --libexe=* | --libex=* | --libe=*)
1200 libexecdir=$ac_optarg ;;
1202 -localedir | --localedir | --localedi | --localed | --locale)
1203 ac_prev=localedir ;;
1204 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205 localedir=$ac_optarg ;;
1207 -localstatedir | --localstatedir | --localstatedi | --localstated \
1208 | --localstate | --localstat | --localsta | --localst | --locals)
1209 ac_prev=localstatedir ;;
1210 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212 localstatedir=$ac_optarg ;;
1214 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217 mandir=$ac_optarg ;;
1219 -nfp | --nfp | --nf)
1220 # Obsolete; use --without-fp.
1223 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224 | --no-cr | --no-c | -n)
1227 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233 | --oldin | --oldi | --old | --ol | --o)
1234 ac_prev=oldincludedir ;;
1235 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238 oldincludedir=$ac_optarg ;;
1240 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243 prefix=$ac_optarg ;;
1245 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246 | --program-pre | --program-pr | --program-p)
1247 ac_prev=program_prefix ;;
1248 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250 program_prefix=$ac_optarg ;;
1252 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253 | --program-suf | --program-su | --program-s)
1254 ac_prev=program_suffix ;;
1255 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257 program_suffix=$ac_optarg ;;
1259 -program-transform-name | --program-transform-name \
1260 | --program-transform-nam | --program-transform-na \
1261 | --program-transform-n | --program-transform- \
1262 | --program-transform | --program-transfor \
1263 | --program-transfo | --program-transf \
1264 | --program-trans | --program-tran \
1265 | --progr-tra | --program-tr | --program-t)
1266 ac_prev=program_transform_name ;;
1267 -program-transform-name=* | --program-transform-name=* \
1268 | --program-transform-nam=* | --program-transform-na=* \
1269 | --program-transform-n=* | --program-transform-=* \
1270 | --program-transform=* | --program-transfor=* \
1271 | --program-transfo=* | --program-transf=* \
1272 | --program-trans=* | --program-tran=* \
1273 | --progr-tra=* | --program-tr=* | --program-t=*)
1274 program_transform_name=$ac_optarg ;;
1276 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279 pdfdir=$ac_optarg ;;
1281 -psdir | --psdir | --psdi | --psd | --ps)
1283 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287 | -silent | --silent | --silen | --sile | --sil)
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294 sbindir=$ac_optarg ;;
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305 sharedstatedir=$ac_optarg ;;
1307 -site | --site | --sit)
1309 -site=* | --site=* | --sit=*)
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1349 eval with_$ac_useropt=\$ac_optarg ;;
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1365 eval with_$ac_useropt=no ;;
1368 # Obsolete; use --with-x.
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' | [0-9]* | *[!_$as_cr_alnum]* )
1394 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error $? "missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1418 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423 # Check all directory arguments for consistency.
1424 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir
1429 eval ac_val=\$$ac_var
1430 # Remove trailing slashes.
1433 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\$ac_val;;
1436 # Be sure to have absolute directory names.
1438 [\\/$]* | ?:[\\/]* ) continue;;
1439 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1449 target=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453 if test "x$build_alias" = x; then
1454 cross_compiling=maybe
1455 elif test "x$build_alias" != "x$host_alias"; then
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463 test "$silent" = yes && exec 6>/dev/null
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error $? "pwd does not report name of working directory"
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1506 ac_srcdir_defaulted=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 for ac_var in $ac_precious_vars; do
1527 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_${ac_var}_value=\$${ac_var}
1529 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1540 \`configure' configures wolfssl 3.6.0 to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking ...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --libdir=DIR object code libraries [EPREFIX/lib]
1581 --includedir=DIR C header files [PREFIX/include]
1582 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1583 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1584 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1585 --infodir=DIR info documentation [DATAROOTDIR/info]
1586 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1587 --mandir=DIR man documentation [DATAROOTDIR/man]
1588 --docdir=DIR documentation root [DATAROOTDIR/doc/wolfssl]
1589 --htmldir=DIR html documentation [DOCDIR]
1590 --dvidir=DIR dvi documentation [DOCDIR]
1591 --pdfdir=DIR pdf documentation [DOCDIR]
1592 --psdir=DIR ps documentation [DOCDIR]
1598 --program-prefix=PREFIX prepend PREFIX to installed program names
1599 --program-suffix=SUFFIX append SUFFIX to installed program names
1600 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1603 --build=BUILD configure for building on BUILD [guessed]
1604 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1608 if test -n "$ac_init_help"; then
1609 case $ac_init_help in
1610 short | recursive ) echo "Configuration of wolfssl 3.6.0:";;
1615 --disable-option-checking ignore unrecognized --enable/--with options
1616 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1617 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1618 --enable-silent-rules less verbose build output (undo: "make V=1")
1619 --disable-silent-rules verbose build output (undo: "make V=0")
1620 --enable-static[=PKGS] build static libraries [default=no]
1621 --enable-shared[=PKGS] build shared libraries [default=yes]
1622 --enable-fast-install[=PKGS]
1623 optimize for fast installation [default=yes]
1624 --enable-dependency-tracking
1625 do not reject slow dependency extractors
1626 --disable-dependency-tracking
1627 speeds up one-time build
1628 --disable-libtool-lock avoid locking (might break parallel builds)
1629 --enable-debug Add debug code/turns off optimizations (yes|no)
1631 --enable-singlethreaded Enable wolfSSL single threaded (default: disabled)
1632 --enable-dtls Enable wolfSSL DTLS (default: disabled)
1633 --enable-opensslextra Enable extra OpenSSL API, size+ (default: disabled)
1634 --enable-maxstrength Enable Max Strengh build, allows TLSv1.2-AEAD-PFS
1635 ciphers only (default: disabled)
1636 --enable-ipv6 Enable testing of IPV6 (default: disabled)
1637 --enable-fortress Enable SSL fortress build (default: disabled)
1638 --enable-bump Enable SSL Bump build (default: disabled)
1639 --enable-leanpsk Enable Lean PSK build (default: disabled)
1640 --enable-bigcache Enable big session cache (default: disabled)
1641 --enable-hugecache Enable huge session cache (default: disabled)
1642 --enable-smallcache Enable small session cache (default: disabled)
1643 --enable-savesession Enable persistent session cache (default: disabled)
1644 --enable-savecert Enable persistent cert cache (default: disabled)
1645 --enable-atomicuser Enable Atomic User Record Layer (default: disabled)
1646 --enable-pkcallbacks Enable Public Key Callbacks (default: disabled)
1647 --enable-sniffer Enable wolfSSL sniffer support (default: disabled)
1648 --enable-aesgcm Enable wolfSSL AES-GCM support (default: enabled)
1649 --enable-aesccm Enable wolfSSL AES-CCM support (default: disabled)
1650 --enable-aesni Enable wolfSSL AES-NI support (default: disabled)
1651 --enable-intelasm Enable All Intel ASM speedups (default: disabled)
1652 --enable-camellia Enable wolfSSL Camellia support (default: disabled)
1653 --enable-md2 Enable wolfSSL MD2 support (default: disabled)
1654 --enable-nullcipher Enable wolfSSL NULL cipher support (default: disabled)
1655 --enable-ripemd Enable wolfSSL RIPEMD-160 support (default: disabled)
1656 --enable-blake2 Enable wolfSSL BLAKE2 support (default: disabled)
1657 --enable-sha512 Enable wolfSSL SHA-512 support (default: enabled on
1659 --enable-sessioncerts Enable session cert storing (default: disabled)
1660 --enable-keygen Enable key generation (default: disabled)
1661 --enable-certgen Enable cert generation (default: disabled)
1662 --enable-certreq Enable cert request generation (default: disabled)
1663 --enable-sep Enable sep extensions (default: disabled)
1664 --enable-hkdf Enable HKDF (HMAC-KDF) support (default: disabled)
1665 --enable-dsa Enable DSA (default: disabled)
1666 --enable-ecc Enable ECC (default: enabled on x86_64)
1667 --enable-curve25519 Enable Curve25519 (default: disabled)
1668 --enable-ed25519 Enable ED25519 (default: disabled)
1669 --enable-fpecc Enable Fixed Point cache ECC (default: disabled)
1670 --enable-eccencrypt Enable ECC encrypt (default: disabled)
1671 --enable-psk Enable PSK (default: disabled)
1672 --enable-errorstrings Enable error strings table (default: enabled)
1673 --enable-oldtls Enable old TLS versions < 1.2 (default: enabled)
1674 --enable-stacksize Enable stack size info on examples (default: disabled)
1675 --enable-memory Enable memory callbacks (default: enabled)
1676 --enable-rsa Enable RSA (default: enabled)
1677 --enable-dh Enable DH (default: enabled)
1678 --enable-anon Enable Anonymous (default: disabled)
1679 --enable-asn Enable ASN (default: enabled)
1680 --enable-aes Enable AES (default: enabled)
1681 --enable-coding Enable Coding base 16/64 (default: enabled)
1682 --enable-des3 Enable DES3 (default: enabled)
1683 --enable-arc4 Enable ARC4 (default: disabled)
1684 --enable-md5 Enable MD5 (default: enabled)
1685 --enable-sha Enable SHA (default: enabled)
1686 --enable-md4 Enable MD4 (default: disabled)
1687 --enable-webserver Enable Web Server (default: disabled)
1688 --enable-hc128 Enable HC-128 (default: disabled)
1689 --enable-rabbit Enable RABBIT (default: disabled)
1690 --enable-fips Enable FIPS 140-2, Will NOT work w/o FIPS license
1692 --enable-poly1305 Enable wolfSSL POLY1305 support (default: enabled)
1693 --enable-chacha Enable CHACHA (default: enabled)
1694 --enable-hashdrbg Enable Hash DRBG support (default: enabled)
1695 --enable-filesystem Enable Filesystem support (default: enabled)
1696 --enable-inline Enable inline functions (default: enabled)
1697 --enable-ocsp Enable OCSP (default: disabled)
1698 --enable-crl Enable CRL (default: disabled)
1699 --enable-crl-monitor Enable CRL Monitor (default: disabled)
1700 --enable-sni Enable SNI (default: disabled)
1701 --enable-maxfragment Enable Maximum Fragment Length (default: disabled)
1702 --enable-truncatedhmac Enable Truncated HMAC (default: disabled)
1703 --enable-renegotiation-indication
1704 Enable Renegotiation Indication (default: disabled)
1705 --enable-secure-renegotiation
1706 Enable Secure Renegotiation (default: disabled)
1707 --enable-supportedcurves
1708 Enable Supported Elliptic Curves (default: disabled)
1709 --enable-session-ticket Enable Session Ticket (default: disabled)
1710 --enable-tlsx Enable all TLS Extensions (default: disabled)
1711 --enable-pkcs7 Enable PKCS7 (default: disabled)
1712 --enable-scep Enable wolfSCEP (default: disabled)
1713 --enable-smallstack Enable Small Stack Usage (default: disabled)
1714 --enable-valgrind Enable valgrind for unit tests (default: disabled)
1715 --enable-testcert Enable Test Cert (default: disabled)
1716 --enable-iopool Enable I/O Pool example (default: disabled)
1717 --enable-certservice Enable cert service (default: disabled)
1718 --enable-pwdbased Enable PWDBASED (default: disabled)
1719 --enable-fastmath Enable fast math ops (default: enabled on x86_64)
1720 --enable-fasthugemath Enable fast math + huge code (default: disabled)
1721 --enable-examples Enable Examples (default: enabled)
1722 --enable-mcapi Enable Microchip API (default: disabled)
1723 --enable-jni Enable wolfSSL JNI (default: disabled)
1724 --enable-jobserver[=no/yes/#] default=yes
1725 Enable up to # make jobs
1726 yes: enable one more than CPU count
1730 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1731 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1732 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1734 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1735 --with-sysroot=DIR Search for dependent libraries within DIR
1736 (or the compiler's sysroot if not specified).
1737 --with-ntru=PATH Path to NTRU install (default /usr/)
1738 --with-libz=PATH PATH to libz install (default /usr/)
1739 --with-cavium=PATH PATH to cavium/software dir
1741 Some influential environment variables:
1742 CC C compiler command
1743 CFLAGS C compiler flags
1744 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1745 nonstandard directory <lib dir>
1746 LIBS libraries to pass to the linker, e.g. -l<library>
1747 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1748 you have headers in a nonstandard directory <include dir>
1750 CXX C++ compiler command
1751 CXXFLAGS C++ compiler flags
1752 CXXCPP C++ preprocessor
1753 CCAS assembler compiler command (defaults to CC)
1754 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1759 Report bugs to <https://github.com/wolfssl/wolfssl/issues>.
1760 wolfssl home page: <http://www.wolfssl.com>.
1765 if test "$ac_init_help" = "recursive"; then
1766 # If there are subdirs, report their specific --help.
1767 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1768 test -d "$ac_dir" ||
1769 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1774 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1777 # A ".." for each directory in $ac_dir_suffix.
1778 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1779 case $ac_top_builddir_sub in
1780 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784 ac_abs_top_builddir=$ac_pwd
1785 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1786 # for backward compatibility:
1787 ac_top_builddir=$ac_top_build_prefix
1790 .) # We are building in place.
1792 ac_top_srcdir=$ac_top_builddir_sub
1793 ac_abs_top_srcdir=$ac_pwd ;;
1794 [\\/]* | ?:[\\/]* ) # Absolute name.
1795 ac_srcdir=$srcdir$ac_dir_suffix;
1796 ac_top_srcdir=$srcdir
1797 ac_abs_top_srcdir=$srcdir ;;
1799 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1800 ac_top_srcdir=$ac_top_build_prefix$srcdir
1801 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805 cd "$ac_dir" || { ac_status=$?; continue; }
1806 # Check for guested configure.
1807 if test -f "$ac_srcdir/configure.gnu"; then
1809 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1810 elif test -f "$ac_srcdir/configure"; then
1812 $SHELL "$ac_srcdir/configure" --help=recursive
1814 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1816 cd "$ac_pwd" || { ac_status=$?; break; }
1820 test -n "$ac_init_help" && exit $ac_status
1821 if $ac_init_version; then
1823 wolfssl configure 3.6.0
1824 generated by GNU Autoconf 2.69
1826 Copyright (C) 2012 Free Software Foundation, Inc.
1827 This configure script is free software; the Free Software Foundation
1828 gives unlimited permission to copy, distribute and modify it.
1833 ## ------------------------ ##
1834 ## Autoconf initialization. ##
1835 ## ------------------------ ##
1837 # ac_fn_c_try_compile LINENO
1838 # --------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_compile
1875 # ac_fn_c_try_link LINENO
1876 # -----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_link
1921 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists and can be compiled using the include files in
1924 # INCLUDES, setting the cache variable VAR accordingly.
1925 ac_fn_c_check_header_compile ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1938 if ac_fn_c_try_compile "$LINENO"; then :
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 } # ac_fn_c_check_header_compile
1952 # ac_fn_c_try_cpp LINENO
1953 # ----------------------
1954 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_cpp conftest.$ac_ext"
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } > conftest.i && {
1974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1975 test ! -s conftest.err
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1989 # ac_fn_c_try_run LINENO
1990 # ----------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1992 # that executables *can* be run.
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if { { ac_try="$ac_link"
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>&5
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2007 { { case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_try") 2>&5
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; }; }; then :
2019 $as_echo "$as_me: program exited with status $ac_status" >&5
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2023 ac_retval=$ac_status
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2031 # ac_fn_c_check_func LINENO FUNC VAR
2032 # ----------------------------------
2033 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2034 ac_fn_c_check_func ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2046 #define $2 innocuous_$2
2048 /* System header to define __stub macros and hopefully few prototypes,
2049 which can conflict with char $2 (); below.
2050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2051 <limits.h> exists even on freestanding compilers. */
2054 # include <limits.h>
2056 # include <assert.h>
2061 /* Override any GCC internal prototype to avoid an error.
2062 Use char because int might match the return type of a GCC
2063 builtin and then its argument prototype would still apply. */
2068 /* The GNU C library defines this for functions which it implements
2069 to always fail with ENOSYS. Some functions are actually named
2070 something starting with __ and the normal name is an alias. */
2071 #if defined __stub_$2 || defined __stub___$2
2083 if ac_fn_c_try_link "$LINENO"; then :
2088 rm -f core conftest.err conftest.$ac_objext \
2089 conftest$ac_exeext conftest.$ac_ext
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 } # ac_fn_c_check_func
2098 # ac_fn_cxx_try_compile LINENO
2099 # ----------------------------
2100 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_cxx_try_compile ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 rm -f conftest.$ac_objext
2105 if { { ac_try="$ac_compile"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_compile") 2>conftest.err
2114 if test -s conftest.err; then
2115 grep -v '^ *+' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 mv -f conftest.er1 conftest.err
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && {
2121 test -z "$ac_cxx_werror_flag" ||
2122 test ! -s conftest.err
2123 } && test -s conftest.$ac_objext; then :
2126 $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 as_fn_set_status $ac_retval
2134 } # ac_fn_cxx_try_compile
2136 # ac_fn_cxx_try_cpp LINENO
2137 # ------------------------
2138 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2139 ac_fn_cxx_try_cpp ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if { { ac_try="$ac_cpp conftest.$ac_ext"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } > conftest.i && {
2158 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2159 test ! -s conftest.err
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status $ac_retval
2171 } # ac_fn_cxx_try_cpp
2173 # ac_fn_cxx_try_link LINENO
2174 # -------------------------
2175 # Try to link conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_cxx_try_link ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 rm -f conftest.$ac_objext conftest$ac_exeext
2180 if { { ac_try="$ac_link"
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187 (eval "$ac_link") 2>conftest.err
2189 if test -s conftest.err; then
2190 grep -v '^ *+' conftest.err >conftest.er1
2191 cat conftest.er1 >&5
2192 mv -f conftest.er1 conftest.err
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && {
2196 test -z "$ac_cxx_werror_flag" ||
2197 test ! -s conftest.err
2198 } && test -s conftest$ac_exeext && {
2199 test "$cross_compiling" = yes ||
2200 test -x conftest$ac_exeext
2204 $as_echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2209 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2210 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2211 # interfere with the next link command; also delete a directory that is
2212 # left behind by Apple's compiler. We do this before executing the actions.
2213 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 as_fn_set_status $ac_retval
2217 } # ac_fn_cxx_try_link
2219 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2220 # -------------------------------------------------------
2221 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2222 # the include files in INCLUDES and setting the cache variable VAR
2224 ac_fn_c_check_header_mongrel ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if eval \${$3+:} false; then :
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if eval \${$3+:} false; then :
2231 $as_echo_n "(cached) " >&6
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2237 # Is the header compilable?
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2239 $as_echo_n "checking $2 usability... " >&6; }
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 ac_header_compiler=yes
2248 ac_header_compiler=no
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2252 $as_echo "$ac_header_compiler" >&6; }
2254 # Is the header present?
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2256 $as_echo_n "checking $2 presence... " >&6; }
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2261 if ac_fn_c_try_cpp "$LINENO"; then :
2262 ac_header_preproc=yes
2264 ac_header_preproc=no
2266 rm -f conftest.err conftest.i conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2268 $as_echo "$ac_header_preproc" >&6; }
2270 # So? What about this header?
2271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2274 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2276 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2280 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2282 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2284 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2286 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289 ( $as_echo "## -------------------------------------------------------- ##
2290 ## Report this to https://github.com/wolfssl/wolfssl/issues ##
2291 ## -------------------------------------------------------- ##"
2292 ) | sed "s/^/$as_me: WARNING: /" >&2
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298 $as_echo_n "(cached) " >&6
2300 eval "$3=\$ac_header_compiler"
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308 } # ac_fn_c_check_header_mongrel
2310 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2311 # --------------------------------------------
2312 # Tries to find the compile-time value of EXPR in a program that includes
2313 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2315 ac_fn_c_compute_int ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 if test "$cross_compiling" = yes; then
2319 # Depending upon the size, compute the lo and hi bounds.
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2326 static int test_array [1 - 2 * !(($2) >= 0)];
2328 return test_array [0];
2334 if ac_fn_c_try_compile "$LINENO"; then :
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2345 return test_array [0];
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352 ac_hi=$ac_mid; break
2354 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2355 if test $ac_lo -le $ac_mid; then
2359 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2370 static int test_array [1 - 2 * !(($2) < 0)];
2372 return test_array [0];
2378 if ac_fn_c_try_compile "$LINENO"; then :
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2387 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2389 return test_array [0];
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396 ac_lo=$ac_mid; break
2398 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2399 if test $ac_mid -le $ac_hi; then
2403 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 # Binary search between lo and hi bounds.
2414 while test "x$ac_lo" != "x$ac_hi"; do
2415 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2422 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2424 return test_array [0];
2430 if ac_fn_c_try_compile "$LINENO"; then :
2433 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2445 static long int longval () { return $2; }
2446 static unsigned long int ulongval () { return $2; }
2453 FILE *f = fopen ("conftest.val", "w");
2458 long int i = longval ();
2461 fprintf (f, "%ld", i);
2465 unsigned long int i = ulongval ();
2468 fprintf (f, "%lu", i);
2470 /* Do not output a trailing newline, as this causes \r\n confusion
2471 on some platforms. */
2472 return ferror (f) || fclose (f) != 0;
2478 if ac_fn_c_try_run "$LINENO"; then :
2479 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2484 conftest.$ac_objext conftest.beam conftest.$ac_ext
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489 as_fn_set_status $ac_retval
2491 } # ac_fn_c_compute_int
2493 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2494 # -------------------------------------------
2495 # Tests whether TYPE exists after having included INCLUDES, setting cache
2496 # variable VAR accordingly.
2497 ac_fn_c_check_type ()
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if eval \${$3+:} false; then :
2503 $as_echo_n "(cached) " >&6
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2518 if ac_fn_c_try_compile "$LINENO"; then :
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2531 if ac_fn_c_try_compile "$LINENO"; then :
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2545 } # ac_fn_c_check_type
2547 # ac_fn_c_find_uintX_t LINENO BITS VAR
2548 # ------------------------------------
2549 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2551 ac_fn_c_find_uintX_t ()
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2555 $as_echo_n "checking for uint$2_t... " >&6; }
2556 if eval \${$3+:} false; then :
2557 $as_echo_n "(cached) " >&6
2560 # Order is important - never check a type that is potentially smaller
2561 # than half of the expected target width.
2562 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2563 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2566 $ac_includes_default
2570 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2572 return test_array [0];
2578 if ac_fn_c_try_compile "$LINENO"; then :
2583 eval "$3=\$ac_type" ;;
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 if eval test \"x\$"$3"\" = x"no"; then :
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2599 } # ac_fn_c_find_uintX_t
2600 cat >config.log <<_ACEOF
2601 This file contains any messages produced by compilers while
2602 running configure, to aid debugging if configure makes a mistake.
2604 It was created by wolfssl $as_me 3.6.0, which was
2605 generated by GNU Autoconf 2.69. Invocation command line was
2617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 $as_echo "PATH: $as_dir"
2657 # Keep a trace of the command line.
2658 # Strip out --no-create and --no-recursion so they do not pile up.
2659 # Strip out --silent because we don't want to record it for future runs.
2660 # Also quote any args containing shell meta-characters.
2661 # Make two passes to allow for proper duplicate-argument suppression.
2665 ac_must_keep_next=false
2671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2673 | -silent | --silent | --silen | --sile | --sil)
2676 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2681 as_fn_append ac_configure_args1 " '$ac_arg'"
2682 if test $ac_must_keep_next = true; then
2683 ac_must_keep_next=false # Got value, back to normal.
2686 *=* | --config-cache | -C | -disable-* | --disable-* \
2687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2689 | -with-* | --with-* | -without-* | --without-* | --x)
2690 case "$ac_configure_args0 " in
2691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2694 -* ) ac_must_keep_next=true ;;
2697 as_fn_append ac_configure_args " '$ac_arg'"
2702 { ac_configure_args0=; unset ac_configure_args0;}
2703 { ac_configure_args1=; unset ac_configure_args1;}
2705 # When interrupted or exit'd, cleanup temporary files, and complete
2706 # config.log. We remove comments because anyway the quotes in there
2707 # would cause problems or look ugly.
2708 # WARNING: Use '\'' to represent an apostrophe within the trap.
2709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2710 trap 'exit_status=$?
2711 # Save into config.log some information that might help in debugging.
2715 $as_echo "## ---------------- ##
2716 ## Cache variables. ##
2717 ## ---------------- ##"
2719 # The following way of writing the cache mishandles newlines in values,
2721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2722 eval ac_val=\$$ac_var
2726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2730 _ | IFS | as_nl) ;; #(
2731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2732 *) { eval $ac_var=; unset $ac_var;} ;;
2737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738 *${as_nl}ac_space=\ *)
2740 "s/'\''/'\''\\\\'\'''\''/g;
2741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2751 $as_echo "## ----------------- ##
2752 ## Output variables. ##
2753 ## ----------------- ##"
2755 for ac_var in $ac_subst_vars
2757 eval ac_val=\$$ac_var
2759 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2761 $as_echo "$ac_var='\''$ac_val'\''"
2765 if test -n "$ac_subst_files"; then
2766 $as_echo "## ------------------- ##
2767 ## File substitutions. ##
2768 ## ------------------- ##"
2770 for ac_var in $ac_subst_files
2772 eval ac_val=\$$ac_var
2774 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2776 $as_echo "$ac_var='\''$ac_val'\''"
2781 if test -s confdefs.h; then
2782 $as_echo "## ----------- ##
2789 test "$ac_signal" != 0 &&
2790 $as_echo "$as_me: caught signal $ac_signal"
2791 $as_echo "$as_me: exit $exit_status"
2793 rm -f core *.core core.conftest.* &&
2794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2797 for ac_signal in 1 2 13 15; do
2798 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2803 rm -f -r conftest* confdefs.h
2805 $as_echo "/* confdefs.h */" > confdefs.h
2807 # Predefined preprocessor variables.
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_NAME "$PACKAGE_NAME"
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_STRING "$PACKAGE_STRING"
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_URL "$PACKAGE_URL"
2834 # Let the site file select an alternate cache file if it wants to.
2835 # Prefer an explicitly selected file to automatically selected ones.
2838 if test -n "$CONFIG_SITE"; then
2839 # We do not want a PATH search for config.site.
2840 case $CONFIG_SITE in #((
2841 -*) ac_site_file1=./$CONFIG_SITE;;
2842 */*) ac_site_file1=$CONFIG_SITE;;
2843 *) ac_site_file1=./$CONFIG_SITE;;
2845 elif test "x$prefix" != xNONE; then
2846 ac_site_file1=$prefix/share/config.site
2847 ac_site_file2=$prefix/etc/config.site
2849 ac_site_file1=$ac_default_prefix/share/config.site
2850 ac_site_file2=$ac_default_prefix/etc/config.site
2852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2854 test "x$ac_site_file" = xNONE && continue
2855 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2858 sed 's/^/| /' "$ac_site_file" >&5
2860 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862 as_fn_error $? "failed to load site script $ac_site_file
2863 See \`config.log' for more details" "$LINENO" 5; }
2867 if test -r "$cache_file"; then
2868 # Some versions of bash will fail to source /dev/null (special files
2869 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2870 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2872 $as_echo "$as_me: loading cache $cache_file" >&6;}
2874 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2875 *) . "./$cache_file";;
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2880 $as_echo "$as_me: creating cache $cache_file" >&6;}
2884 # Check that the precious variables saved in the cache have kept the same
2886 ac_cache_corrupted=false
2887 for ac_var in $ac_precious_vars; do
2888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2889 eval ac_new_set=\$ac_env_${ac_var}_set
2890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2891 eval ac_new_val=\$ac_env_${ac_var}_value
2892 case $ac_old_set,$ac_new_set in
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2895 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2896 ac_cache_corrupted=: ;;
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2899 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2900 ac_cache_corrupted=: ;;
2903 if test "x$ac_old_val" != "x$ac_new_val"; then
2904 # differences in whitespace do not lead to failure.
2905 ac_old_val_w=`echo x $ac_old_val`
2906 ac_new_val_w=`echo x $ac_new_val`
2907 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2910 ac_cache_corrupted=:
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2914 eval $ac_var=\$ac_old_val
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2917 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2919 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2922 # Pass precious variables to config.status.
2923 if test "$ac_new_set" = set; then
2925 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2926 *) ac_arg=$ac_var=$ac_new_val ;;
2928 case " $ac_configure_args " in
2929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2930 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2934 if $ac_cache_corrupted; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2939 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2941 ## -------------------- ##
2942 ## Main body of script. ##
2943 ## -------------------- ##
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 for ac_dir in build-aux "$srcdir"/build-aux; do
2955 if test -f "$ac_dir/install-sh"; then
2957 ac_install_sh="$ac_aux_dir/install-sh -c"
2959 elif test -f "$ac_dir/install.sh"; then
2961 ac_install_sh="$ac_aux_dir/install.sh -c"
2963 elif test -f "$ac_dir/shtool"; then
2965 ac_install_sh="$ac_aux_dir/shtool install -c"
2969 if test -z "$ac_aux_dir"; then
2970 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2973 # These three variables are undocumented and unsupported,
2974 # and are intended to be withdrawn in a future Autoconf release.
2975 # They can cause serious problems if a builder's source tree is in a directory
2976 # whose full name contains unusual characters.
2977 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2978 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2979 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2983 # Make sure we can run config.sub.
2984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2985 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2988 $as_echo_n "checking build system type... " >&6; }
2989 if ${ac_cv_build+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 ac_build_alias=$build_alias
2993 test "x$ac_build_alias" = x &&
2994 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2995 test "x$ac_build_alias" = x &&
2996 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2998 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3002 $as_echo "$ac_cv_build" >&6; }
3003 case $ac_cv_build in
3005 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3008 ac_save_IFS=$IFS; IFS='-'
3014 # Remember, the first character of IFS is used to create $*,
3015 # except with old shells:
3018 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3022 $as_echo_n "checking host system type... " >&6; }
3023 if ${ac_cv_host+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test "x$host_alias" = x; then
3027 ac_cv_host=$ac_cv_build
3029 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3030 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3035 $as_echo "$ac_cv_host" >&6; }
3038 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3041 ac_save_IFS=$IFS; IFS='-'
3047 # Remember, the first character of IFS is used to create $*,
3048 # except with old shells:
3051 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3056 am__api_version='1.14'
3058 # Find a good install program. We prefer a C program (faster),
3059 # so one script is as good as another. But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # OS/2's system install, which has a completely different semantic
3070 # ./install, which can be erroneously created by make from ./install.sh.
3071 # Reject install programs that cannot install multiple files.
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3073 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3074 if test -z "$INSTALL"; then
3075 if ${ac_cv_path_install+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 # Account for people who put trailing slashes in PATH elements.
3084 case $as_dir/ in #((
3085 ./ | .// | /[cC]/* | \
3086 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3087 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3090 # OSF1 and SCO ODT 3.0 have their own names for install.
3091 # Don't use installbsd from OSF since it installs stuff as root
3093 for ac_prog in ginstall scoinst install; do
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096 if test $ac_prog = install &&
3097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098 # AIX install. It has an incompatible calling convention.
3100 elif test $ac_prog = install &&
3101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102 # program-specific install script used by HP pwplus--don't use.
3105 rm -rf conftest.one conftest.two conftest.dir
3106 echo one > conftest.one
3107 echo two > conftest.two
3109 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3110 test -s conftest.one && test -s conftest.two &&
3111 test -s conftest.dir/conftest.one &&
3112 test -s conftest.dir/conftest.two
3114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3127 rm -rf conftest.one conftest.two conftest.dir
3130 if test "${ac_cv_path_install+set}" = set; then
3131 INSTALL=$ac_cv_path_install
3133 # As a last resort, use the slow shell script. Don't cache a
3134 # value for INSTALL within a source directory, because that will
3135 # break other packages using the cache if that directory is
3136 # removed, or if the value is a relative name.
3137 INSTALL=$ac_install_sh
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3141 $as_echo "$INSTALL" >&6; }
3143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3144 # It thinks the first close brace ends the variable substitution.
3145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3152 $as_echo_n "checking whether build environment is sane... " >&6; }
3153 # Reject unsafe characters in $srcdir or the absolute working directory
3154 # name. Accept space and tab only in the latter.
3158 *[\\\"\#\$\&\'\`$am_lf]*)
3159 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3162 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3163 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3166 # Do 'set' in a subshell so we don't clobber the current shell's
3167 # arguments. Must try -L first in case configure is actually a
3168 # symlink; some systems play weird games with the mod time of symlinks
3169 # (eg FreeBSD returns the mod time of the symlink's containing
3173 for am_try in 1 2; do
3174 echo "timestamp, slept: $am_has_slept" > conftest.file
3175 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3176 if test "$*" = "X"; then
3178 set X `ls -t "$srcdir/configure" conftest.file`
3180 if test "$*" != "X $srcdir/configure conftest.file" \
3181 && test "$*" != "X conftest.file $srcdir/configure"; then
3183 # If neither matched, then we have a broken ls. This can happen
3184 # if, for instance, CONFIG_SHELL is bash and it inherits a
3185 # broken ls alias from the environment. This has actually
3186 # happened. Such a system could not be considered "sane".
3187 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3188 alias in your environment" "$LINENO" 5
3190 if test "$2" = conftest.file || test $am_try -eq 2; then
3197 test "$2" = conftest.file
3203 as_fn_error $? "newly created file is older than distributed files!
3204 Check your system clock" "$LINENO" 5
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208 # If we didn't sleep, we still need to ensure time stamps of config.status and
3209 # generated files are strictly newer.
3211 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3218 test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s,x,x', remove it if useless.
3225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3228 # expand $ac_aux_dir to an absolute path
3229 am_aux_dir=`cd $ac_aux_dir && pwd`
3231 if test x"${MISSING+set}" != xset; then
3234 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3236 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3239 # Use eval to expand $SHELL
3240 if eval "$MISSING --is-lightweight"; then
3241 am_missing_run="$MISSING "
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3245 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3248 if test x"${install_sh}" != xset; then
3251 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3253 install_sh="\${SHELL} $am_aux_dir/install-sh"
3257 # Installed binaries are usually stripped using 'strip' when the user
3258 # run "make install-strip". However 'strip' might not be the right
3259 # tool to use in cross-compilation environments, therefore Automake
3260 # will honor the 'STRIP' environment variable to overrule this program.
3261 if test "$cross_compiling" != no; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}strip; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_STRIP+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$STRIP"; then
3271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 STRIP=$ac_cv_prog_STRIP
3291 if test -n "$STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3293 $as_echo "$STRIP" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3301 if test -z "$ac_cv_prog_STRIP"; then
3303 # Extract the first word of "strip", so it can be a program name with args.
3304 set dummy strip; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$ac_ct_STRIP"; then
3311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_STRIP="strip"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3331 if test -n "$ac_ct_STRIP"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3333 $as_echo "$ac_ct_STRIP" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3339 if test "x$ac_ct_STRIP" = x; then
3342 case $cross_compiling:$ac_tool_warned in
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3351 STRIP="$ac_cv_prog_STRIP"
3355 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3358 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3359 if test -z "$MKDIR_P"; then
3360 if ${ac_cv_path_mkdir+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in mkdir gmkdir; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3371 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3372 'mkdir (GNU coreutils) '* | \
3373 'mkdir (coreutils) '* | \
3374 'mkdir (fileutils) '4.1*)
3375 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3385 test -d ./--version && rmdir ./--version
3386 if test "${ac_cv_path_mkdir+set}" = set; then
3387 MKDIR_P="$ac_cv_path_mkdir -p"
3389 # As a last resort, use the slow shell script. Don't cache a
3390 # value for MKDIR_P within a source directory, because that will
3391 # break other packages using the cache if that directory is
3392 # removed, or if the value is a relative name.
3393 MKDIR_P="$ac_install_sh -d"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3397 $as_echo "$MKDIR_P" >&6; }
3399 for ac_prog in gawk mawk nawk awk
3401 # Extract the first word of "$ac_prog", so it can be a program name with args.
3402 set dummy $ac_prog; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if ${ac_cv_prog_AWK+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 if test -n "$AWK"; then
3409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_AWK="$ac_prog"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 if test -n "$AWK"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3431 $as_echo "$AWK" >&6; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3438 test -n "$AWK" && break
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3442 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3444 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3445 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 cat >conftest.make <<\_ACEOF
3451 @echo '@@@%%%=$(MAKE)=@@@%%%'
3453 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3454 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3456 eval ac_cv_prog_make_${ac_make}_set=yes;;
3458 eval ac_cv_prog_make_${ac_make}_set=no;;
3462 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3464 $as_echo "yes" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 SET_MAKE="MAKE=${MAKE-make}"
3472 rm -rf .tst 2>/dev/null
3473 mkdir .tst 2>/dev/null
3474 if test -d .tst; then
3479 rmdir .tst 2>/dev/null
3481 # Check whether --enable-silent-rules was given.
3482 if test "${enable_silent_rules+set}" = set; then :
3483 enableval=$enable_silent_rules;
3486 case $enable_silent_rules in # (((
3487 yes) AM_DEFAULT_VERBOSITY=0;;
3488 no) AM_DEFAULT_VERBOSITY=1;;
3489 *) AM_DEFAULT_VERBOSITY=1;;
3491 am_make=${MAKE-make}
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3493 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3494 if ${am_cv_make_support_nested_variables+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 if $as_echo 'TRUE=$(BAR$(V))
3503 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3504 am_cv_make_support_nested_variables=yes
3506 am_cv_make_support_nested_variables=no
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3510 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3511 if test $am_cv_make_support_nested_variables = yes; then
3513 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3515 AM_V=$AM_DEFAULT_VERBOSITY
3516 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3520 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3521 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3522 # is not polluted with repeated "-I."
3523 am__isrc=' -I$(srcdir)'
3524 # test to see if srcdir already configured
3525 if test -f $srcdir/config.status; then
3526 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3530 # test whether we have cygpath
3531 if test -z "$CYGPATH_W"; then
3532 if (cygpath --version) >/dev/null 2>/dev/null; then
3533 CYGPATH_W='cygpath -w'
3540 # Define the identity of the package.
3545 # Some tools Automake needs.
3547 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3550 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3553 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3556 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3559 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3561 # For better backward compatibility. To be removed once Automake 1.9.x
3562 # dies out for good. For more background, see:
3563 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3564 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3565 mkdir_p='$(MKDIR_P)'
3567 # We need awk for the "check" target. The system "awk" is bad on
3569 # Always define AMTAR for backward compatibility. Yes, it's still used
3570 # in the wild :-( We should find a proper way to deprecate it ...
3574 # We'll loop over all known methods to create a tar archive until one works.
3575 _am_tools='gnutar plaintar pax cpio none'
3577 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3578 # There is notably a 21 bits limit for the UID and the GID. In fact,
3579 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3581 am_max_uid=2097151 # 2^21 - 1
3582 am_max_gid=$am_max_uid
3583 # The $UID and $GID variables are not portable, so we need to resort
3584 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3585 # below are definitely unexpected, so allow the users to see them
3586 # (that is, avoid stderr redirection).
3587 am_uid=`id -u || echo unknown`
3588 am_gid=`id -g || echo unknown`
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3590 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3591 if test $am_uid -le $am_max_uid; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593 $as_echo "yes" >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3600 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3601 if test $am_gid -le $am_max_gid; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3603 $as_echo "yes" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3611 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3613 # Go ahead even if we have the value already cached. We do so because we
3614 # need to set the values for the 'am__tar' and 'am__untar' variables.
3615 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3617 for _am_tool in $_am_tools; do
3620 for _am_tar in tar gnutar gtar; do
3621 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3622 ($_am_tar --version) >&5 2>&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && break
3627 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3628 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3629 am__untar="$_am_tar -xf -"
3632 # Must skip GNU tar: if it does not support --format= it doesn't create
3633 # ustar tarball either.
3634 (tar --version) >/dev/null 2>&1 && continue
3635 am__tar='tar chf - "$$tardir"'
3636 am__tar_='tar chf - "$tardir"'
3637 am__untar='tar xf -'
3640 am__tar='pax -L -x ustar -w "$$tardir"'
3641 am__tar_='pax -L -x ustar -w "$tardir"'
3645 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3646 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3647 am__untar='cpio -i -H ustar -d'
3656 # If the value was cached, stop now. We just wanted to have am__tar
3657 # and am__untar set.
3658 test -n "${am_cv_prog_tar_ustar}" && break
3660 # tar/untar a dummy directory, and stop if the command works.
3663 echo GrepMe > conftest.dir/file
3664 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3665 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }
3670 if test -s conftest.tar; then
3671 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3672 ($am__untar <conftest.tar) >&5 2>&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }
3676 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3677 (cat conftest.dir/file) >&5 2>&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }
3681 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3686 if ${am_cv_prog_tar_ustar+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 am_cv_prog_tar_ustar=$_am_tool
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3693 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3700 # POSIX will say in a future version that running "rm -f" with no argument
3701 # is OK; and we want to be able to make that assumption in our Makefile
3702 # recipes. So use an aggressive probe to check that the usage we want is
3703 # actually supported "in the wild" to an acceptable degree.
3704 # See automake bug#10828.
3705 # To make any issue more visible, cause the running configure to be aborted
3706 # by default if the 'rm' program in use doesn't match our expectations; the
3707 # user can still override this though.
3708 if rm -f && rm -fr && rm -rf; then : OK; else
3712 Your 'rm' program seems unable to run without file operands specified
3713 on the command line, even when the '-f' option is present. This is contrary
3714 to the behaviour of most rm programs out there, and not conforming with
3715 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3717 Please tell bug-automake@gnu.org about your system, including the value
3718 of your $PATH and any error possibly output before this message. This
3719 can help us improve future automake versions.
3722 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3723 echo 'Configuration will proceed anyway, since you have set the' >&2
3724 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3728 Aborting the configuration process, to ensure you take notice of the issue.
3730 You can download and install GNU coreutils to get an 'rm' implementation
3731 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3733 If you want to complete the configuration process using your problematic
3734 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3735 to "yes", and re-run configure.
3738 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3745 #PROTECT_AC_USE_SYSTEM_EXTENSIONS
3749 ac_config_headers="$ac_config_headers config.h:config.in"
3751 #shared library versioning
3752 WOLFSSL_LIBRARY_VERSION=0:2:0
3756 # current:revision:age
3758 # | | +- increment if interfaces have been added
3759 # | | set to zero if interfaces have been removed
3761 # | +- increment if source code has changed
3762 # | set to zero if current is incremented
3763 # +- increment if interfaces have been added, removed or changed
3766 # capture user C_EXTRA_FLAGS from ./configure line, CFLAGS may hold -g -O2 even
3767 # if user doesn't override, no way to tell
3768 USER_C_EXTRA_FLAGS="$C_EXTRA_FLAGS"
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3774 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3779 macro_version='2.4.2'
3780 macro_revision='1.3337'
3794 ltmain="$ac_aux_dir/ltmain.sh"
3796 # Backslashify metacharacters that are still active within
3797 # double-quoted strings.
3798 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3800 # Same as above, but do not quote variable references.
3801 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3803 # Sed substitution to delay expansion of an escaped shell variable in a
3804 # double_quote_subst'ed string.
3805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3807 # Sed substitution to delay expansion of an escaped single quote.
3808 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3810 # Sed substitution to avoid accidental globbing in evaled expressions
3811 no_glob_subst='s/\*/\\\*/g'
3813 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3814 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3818 $as_echo_n "checking how to print strings... " >&6; }
3819 # Test print first, because it will be a builtin if present.
3820 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3821 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3823 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3826 # Use this function as a fallback that always works.
3827 func_fallback_echo ()
3829 eval 'cat <<_LTECHO_EOF
3833 ECHO='func_fallback_echo'
3836 # func_echo_all arg...
3837 # Invoke $ECHO with all args, space-separated.
3844 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3845 $as_echo "printf" >&6; } ;;
3846 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3847 $as_echo "print -r" >&6; } ;;
3848 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3849 $as_echo "cat" >&6; } ;;
3865 DEPDIR="${am__leading_dot}deps"
3867 ac_config_commands="$ac_config_commands depfiles"
3870 am_make=${MAKE-make}
3871 cat > confinc << 'END'
3873 @echo this is the am__doit target
3876 # If we don't find an include directive, just comment out the code.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3878 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3882 # First try GNU make style include.
3883 echo "include confinc" > confmf
3884 # Ignore all kinds of additional output from 'make'.
3885 case `$am_make -s -f confmf 2> /dev/null` in #(
3886 *the\ am__doit\ target*)
3892 # Now try BSD make style include.
3893 if test "$am__include" = "#"; then
3894 echo '.include "confinc"' > confmf
3895 case `$am_make -s -f confmf 2> /dev/null` in #(
3896 *the\ am__doit\ target*)
3897 am__include=.include
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3906 $as_echo "$_am_result" >&6; }
3907 rm -f confinc confmf
3909 # Check whether --enable-dependency-tracking was given.
3910 if test "${enable_dependency_tracking+set}" = set; then :
3911 enableval=$enable_dependency_tracking;
3914 if test "x$enable_dependency_tracking" != xno; then
3915 am_depcomp="$ac_aux_dir/depcomp"
3919 if test "x$enable_dependency_tracking" != xno; then
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 if test -n "$ac_tool_prefix"; then
3934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_prog_CC+:} false; then :
3939 $as_echo_n "(cached) " >&6
3941 if test -n "$CC"; then
3942 ac_cv_prog_CC="$CC" # Let the user override the test.
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 if test -n "$CC"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964 $as_echo "$CC" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3972 if test -z "$ac_cv_prog_CC"; then
3974 # Extract the first word of "gcc", so it can be a program name with args.
3975 set dummy gcc; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3979 $as_echo_n "(cached) " >&6
3981 if test -n "$ac_ct_CC"; then
3982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_ac_ct_CC="gcc"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4002 if test -n "$ac_ct_CC"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4004 $as_echo "$ac_ct_CC" >&6; }
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4010 if test "x$ac_ct_CC" = x; then
4013 case $cross_compiling:$ac_tool_warned in
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017 ac_tool_warned=yes ;;
4025 if test -z "$CC"; then
4026 if test -n "$ac_tool_prefix"; then
4027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4028 set dummy ${ac_tool_prefix}cc; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_CC+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 if test -n "$CC"; then
4035 ac_cv_prog_CC="$CC" # Let the user override the test.
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_CC="${ac_tool_prefix}cc"
4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 if test -n "$CC"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4057 $as_echo "$CC" >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4066 if test -z "$CC"; then
4067 # Extract the first word of "cc", so it can be a program name with args.
4068 set dummy cc; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if ${ac_cv_prog_CC+:} false; then :
4072 $as_echo_n "(cached) " >&6
4074 if test -n "$CC"; then
4075 ac_cv_prog_CC="$CC" # Let the user override the test.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4086 ac_prog_rejected=yes
4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 if test $ac_prog_rejected = yes; then
4098 # We found a bogon in the path, so make sure we never use it.
4099 set dummy $ac_cv_prog_CC
4101 if test $# != 0; then
4102 # We chose a different compiler from the bogus one.
4103 # However, it has the same basename, so the bogon will be chosen
4104 # first if we set CC to just the basename; use the full file name.
4106 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4122 if test -z "$CC"; then
4123 if test -n "$ac_tool_prefix"; then
4124 for ac_prog in cl.exe
4126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_CC+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 if test -n "$CC"; then
4134 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 if test -n "$CC"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4156 $as_echo "$CC" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4163 test -n "$CC" && break
4166 if test -z "$CC"; then
4168 for ac_prog in cl.exe
4170 # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4175 $as_echo_n "(cached) " >&6
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_ac_ct_CC="$ac_prog"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4200 $as_echo "$ac_ct_CC" >&6; }
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4207 test -n "$ac_ct_CC" && break
4210 if test "x$ac_ct_CC" = x; then
4213 case $cross_compiling:$ac_tool_warned in
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4217 ac_tool_warned=yes ;;
4226 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error $? "no acceptable C compiler found in \$PATH
4229 See \`config.log' for more details" "$LINENO" 5; }
4231 # Provide some information about the compiler.
4232 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4235 for ac_option in --version -v -V -qversion; do
4236 { { ac_try="$ac_compiler $ac_option >&5"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4245 if test -s conftest.err; then
4247 ... rest of stderr output deleted ...
4248 10q' conftest.err >conftest.er1
4249 cat conftest.er1 >&5
4251 rm -f conftest.er1 conftest.err
4252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253 test $ac_status = 0; }
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4267 ac_clean_files_save=$ac_clean_files
4268 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4269 # Try to create an executable without -o first, disregard a.out.
4270 # It will help us diagnose broken compilers, and finding out an intuition
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4273 $as_echo_n "checking whether the C compiler works... " >&6; }
4274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4276 # The possible output files:
4277 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4280 for ac_file in $ac_files
4283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4284 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4289 if { { ac_try="$ac_link_default"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_link_default") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }; then :
4300 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4301 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4302 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4303 # so that the user can short-circuit this test for compilers unknown to
4305 for ac_file in $ac_files ''
4307 test -f "$ac_file" || continue
4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4312 # We found the default executable, but exeext='' is most
4316 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4318 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4320 # We set ac_cv_exeext here because the later test for it is not
4321 # safe: cross compilers may not add the suffix if given an `-o'
4322 # argument, so we may need to know it at that point already.
4323 # Even if this section looks crufty: it has the advantage of
4330 test "$ac_cv_exeext" = no && ac_cv_exeext=
4335 if test -z "$ac_file"; then :
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338 $as_echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4343 as_fn_error 77 "C compiler cannot create executables
4344 See \`config.log' for more details" "$LINENO" 5; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4347 $as_echo "yes" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4350 $as_echo_n "checking for C compiler default output file name... " >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4352 $as_echo "$ac_file" >&6; }
4353 ac_exeext=$ac_cv_exeext
4355 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4356 ac_clean_files=$ac_clean_files_save
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4358 $as_echo_n "checking for suffix of executables... " >&6; }
4359 if { { ac_try="$ac_link"
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_link") 2>&5
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }; then :
4370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4372 # work properly (i.e., refer to `conftest.exe'), while it won't with
4374 for ac_file in conftest.exe conftest conftest.*; do
4375 test -f "$ac_file" || continue
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4387 See \`config.log' for more details" "$LINENO" 5; }
4389 rm -f conftest conftest$ac_cv_exeext
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4391 $as_echo "$ac_cv_exeext" >&6; }
4393 rm -f conftest.$ac_ext
4394 EXEEXT=$ac_cv_exeext
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4402 FILE *f = fopen ("conftest.out", "w");
4403 return ferror (f) || fclose (f) != 0;
4409 ac_clean_files="$ac_clean_files conftest.out"
4410 # Check that the compiler produces executables we can run. If not, either
4411 # the compiler is broken, or we cross compile.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4413 $as_echo_n "checking whether we are cross compiling... " >&6; }
4414 if test "$cross_compiling" != yes; then
4415 { { ac_try="$ac_link"
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_link") 2>&5
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }
4426 if { ac_try='./conftest$ac_cv_exeext'
4427 { { case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_try") 2>&5
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; }; then
4439 if test "$cross_compiling" = maybe; then
4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error $? "cannot run C compiled programs.
4445 If you meant to cross compile, use \`--host'.
4446 See \`config.log' for more details" "$LINENO" 5; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4451 $as_echo "$cross_compiling" >&6; }
4453 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4454 ac_clean_files=$ac_clean_files_save
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4456 $as_echo_n "checking for suffix of object files... " >&6; }
4457 if ${ac_cv_objext+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4471 rm -f conftest.o conftest.obj
4472 if { { ac_try="$ac_compile"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_compile") 2>&5
4481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }; then :
4483 for ac_file in conftest.o conftest.obj conftest.*; do
4484 test -f "$ac_file" || continue;
4486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4492 $as_echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497 as_fn_error $? "cannot compute suffix of object files: cannot compile
4498 See \`config.log' for more details" "$LINENO" 5; }
4500 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4503 $as_echo "$ac_cv_objext" >&6; }
4504 OBJEXT=$ac_cv_objext
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4507 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4508 if ${ac_cv_c_compiler_gnu+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4525 if ac_fn_c_try_compile "$LINENO"; then :
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4535 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4536 if test $ac_compiler_gnu = yes; then
4541 ac_test_CFLAGS=${CFLAGS+set}
4542 ac_save_CFLAGS=$CFLAGS
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4544 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4545 if ${ac_cv_prog_cc_g+:} false; then :
4546 $as_echo_n "(cached) " >&6
4548 ac_save_c_werror_flag=$ac_c_werror_flag
4549 ac_c_werror_flag=yes
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4563 if ac_fn_c_try_compile "$LINENO"; then :
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4578 if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_c_werror_flag=$ac_save_c_werror_flag
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4594 if ac_fn_c_try_compile "$LINENO"; then :
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 ac_c_werror_flag=$ac_save_c_werror_flag
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4605 $as_echo "$ac_cv_prog_cc_g" >&6; }
4606 if test "$ac_test_CFLAGS" = set; then
4607 CFLAGS=$ac_save_CFLAGS
4608 elif test $ac_cv_prog_cc_g = yes; then
4609 if test "$GCC" = yes; then
4615 if test "$GCC" = yes; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4622 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4623 if ${ac_cv_prog_cc_c89+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 ac_cv_prog_cc_c89=no
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4634 struct buf { int x; };
4635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4636 static char *e (p, i)
4642 static char *f (char * (*g) (char **, int), char **p, ...)
4647 s = g (p, va_arg (v,int));
4652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4653 function prototypes and stuff, but not '\xHH' hex character constants.
4654 These don't provoke an error unfortunately, instead are silently treated
4655 as 'x'. The following induces an error, until -std is added to get
4656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4657 array size at least. It's necessary to write '\x00'==0 to get something
4658 that's true only with -std. */
4659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4662 inside strings and character constants. */
4664 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4666 int test (int i, double x);
4667 struct s1 {int (*f) (int a);};
4668 struct s2 {int (*f) (double a);};
4669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4680 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4683 CC="$ac_save_CC $ac_arg"
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 ac_cv_prog_cc_c89=$ac_arg
4687 rm -f core conftest.err conftest.$ac_objext
4688 test "x$ac_cv_prog_cc_c89" != "xno" && break
4690 rm -f conftest.$ac_ext
4695 case "x$ac_cv_prog_cc_c89" in
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4698 $as_echo "none needed" >&6; } ;;
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4701 $as_echo "unsupported" >&6; } ;;
4703 CC="$CC $ac_cv_prog_cc_c89"
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4705 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4707 if test "x$ac_cv_prog_cc_c89" != xno; then :
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4723 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4724 if ${am_cv_prog_cc_c_o+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 # Make sure it works both with $CC and with simple cc.
4739 # Following AC_PROG_CC_C_O, we do the test twice because some
4740 # compilers refuse to overwrite an existing .o file with -o,
4741 # though they will create one.
4742 am_cv_prog_cc_c_o=yes
4744 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4745 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } \
4749 && test -f conftest2.$ac_objext; then
4752 am_cv_prog_cc_c_o=no
4756 rm -f core conftest*
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4760 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4761 if test "$am_cv_prog_cc_c_o" != yes; then
4762 # Losing compiler, so override with the script.
4763 # FIXME: It is wrong to rewrite CC.
4764 # But if we don't then we get into trouble of one sort or another.
4765 # A longer-term fix would be to have automake use am__CC in this case,
4766 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4767 CC="$am_aux_dir/compile $CC"
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776 depcc="$CC" am_compiler_list=
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4779 $as_echo_n "checking dependency style of $depcc... " >&6; }
4780 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4781 $as_echo_n "(cached) " >&6
4783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4784 # We make a subdir and do the tests there. Otherwise we can end up
4785 # making bogus files that we don't know about and never remove. For
4786 # instance it was reported that on HP-UX the gcc test will end up
4787 # making a dummy file named 'D' -- because '-MD' means "put the output
4791 # Copy depcomp to subdir because otherwise we won't find it if we're
4792 # using a relative directory.
4793 cp "$am_depcomp" conftest.dir
4795 # We will build objects and dependencies in a subdirectory because
4796 # it helps to detect inapplicable dependency modes. For instance
4797 # both Tru64's cc and ICC support -MD to output dependencies as a
4798 # side effect of compilation, but ICC will put the dependencies in
4799 # the current directory while Tru64 will put them in the object
4803 am_cv_CC_dependencies_compiler_type=none
4804 if test "$am_compiler_list" = ""; then
4805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4808 case " $depcc " in #(
4809 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4812 for depmode in $am_compiler_list; do
4813 # Setup a source with many dependencies, because some compilers
4814 # like to wrap large dependency lists on column 80 (with \), and
4815 # we should not choose a depcomp mode which is confused by this.
4817 # We need to recreate these files for each test, as the compiler may
4818 # overwrite some of them when testing with obscure command lines.
4819 # This happens at least with the AIX C compiler.
4821 for i in 1 2 3 4 5 6; do
4822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4823 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4824 # Solaris 10 /bin/sh.
4825 echo '/* dummy */' > sub/conftst$i.h
4827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4829 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4830 # mode. It turns out that the SunPro C++ compiler does not properly
4831 # handle '-M -o', and we need to detect this. Also, some Intel
4832 # versions had trouble with output in subdirs.
4833 am__obj=sub/conftest.${OBJEXT-o}
4834 am__minus_obj="-o $am__obj"
4837 # This depmode causes a compiler race in universal mode.
4838 test "$am__universal" = false || continue
4841 # After this tag, mechanisms are not by side-effect, so they'll
4842 # only be used when explicitly requested.
4843 if test "x$enable_dependency_tracking" = xyes; then
4849 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4850 # This compiler won't grok '-c -o', but also, the minuso test has
4851 # not run yet. These depmodes are late enough in the game, and
4852 # so weak that their functioning should not be impacted.
4853 am__obj=conftest.${OBJEXT-o}
4858 if depmode=$depmode \
4859 source=sub/conftest.c object=$am__obj \
4860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4862 >/dev/null 2>conftest.err &&
4863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4867 # icc doesn't choke on unknown options, it will just issue warnings
4868 # or remarks (even with -Werror). So we grep stderr for any message
4869 # that says an option was ignored or not supported.
4870 # When given -MP, icc 7.0 and 7.1 complain thusly:
4871 # icc: Command line warning: ignoring option '-M'; no argument required
4872 # The diagnosis changed in icc 8.0:
4873 # icc: Command line remark: option '-MP' not supported
4874 if (grep 'ignoring option' conftest.err ||
4875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4876 am_cv_CC_dependencies_compiler_type=$depmode
4885 am_cv_CC_dependencies_compiler_type=none
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4890 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4894 test "x$enable_dependency_tracking" != xno \
4895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4897 am__fastdepCC_FALSE='#'
4899 am__fastdepCC_TRUE='#'
4900 am__fastdepCC_FALSE=
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4906 if ${ac_cv_path_SED+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4910 for ac_i in 1 2 3 4 5 6 7; do
4911 ac_script="$ac_script$as_nl$ac_script"
4913 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4914 { ac_script=; unset ac_script;}
4915 if test -z "$SED"; then
4916 ac_path_SED_found=false
4917 # Loop through the user's path and test for each of PROGNAME-LIST
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_prog in sed gsed; do
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4926 as_fn_executable_p "$ac_path_SED" || continue
4927 # Check for GNU ac_path_SED and select it if it is found.
4928 # Check for GNU $ac_path_SED
4929 case `"$ac_path_SED" --version 2>&1` in
4931 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4934 $as_echo_n 0123456789 >"conftest.in"
4937 cat "conftest.in" "conftest.in" >"conftest.tmp"
4938 mv "conftest.tmp" "conftest.in"
4939 cp "conftest.in" "conftest.nl"
4940 $as_echo '' >> "conftest.nl"
4941 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4943 as_fn_arith $ac_count + 1 && ac_count=$as_val
4944 if test $ac_count -gt ${ac_path_SED_max-0}; then
4945 # Best one so far, save it but keep looking for a better one
4946 ac_cv_path_SED="$ac_path_SED"
4947 ac_path_SED_max=$ac_count
4949 # 10*(2^10) chars as input seems more than enough
4950 test $ac_count -gt 10 && break
4952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4955 $ac_path_SED_found && break 3
4960 if test -z "$ac_cv_path_SED"; then
4961 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4969 $as_echo "$ac_cv_path_SED" >&6; }
4970 SED="$ac_cv_path_SED"
4973 test -z "$SED" && SED=sed
4974 Xsed="$SED -e 1s/^X//"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4987 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4988 if ${ac_cv_path_GREP+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 if test -z "$GREP"; then
4992 ac_path_GREP_found=false
4993 # Loop through the user's path and test for each of PROGNAME-LIST
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4998 test -z "$as_dir" && as_dir=.
4999 for ac_prog in grep ggrep; do
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5002 as_fn_executable_p "$ac_path_GREP" || continue
5003 # Check for GNU ac_path_GREP and select it if it is found.
5004 # Check for GNU $ac_path_GREP
5005 case `"$ac_path_GREP" --version 2>&1` in
5007 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5010 $as_echo_n 0123456789 >"conftest.in"
5013 cat "conftest.in" "conftest.in" >"conftest.tmp"
5014 mv "conftest.tmp" "conftest.in"
5015 cp "conftest.in" "conftest.nl"
5016 $as_echo 'GREP' >> "conftest.nl"
5017 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019 as_fn_arith $ac_count + 1 && ac_count=$as_val
5020 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5021 # Best one so far, save it but keep looking for a better one
5022 ac_cv_path_GREP="$ac_path_GREP"
5023 ac_path_GREP_max=$ac_count
5025 # 10*(2^10) chars as input seems more than enough
5026 test $ac_count -gt 10 && break
5028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5031 $ac_path_GREP_found && break 3
5036 if test -z "$ac_cv_path_GREP"; then
5037 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5040 ac_cv_path_GREP=$GREP
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5045 $as_echo "$ac_cv_path_GREP" >&6; }
5046 GREP="$ac_cv_path_GREP"
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5050 $as_echo_n "checking for egrep... " >&6; }
5051 if ${ac_cv_path_EGREP+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5055 then ac_cv_path_EGREP="$GREP -E"
5057 if test -z "$EGREP"; then
5058 ac_path_EGREP_found=false
5059 # Loop through the user's path and test for each of PROGNAME-LIST
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5064 test -z "$as_dir" && as_dir=.
5065 for ac_prog in egrep; do
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5068 as_fn_executable_p "$ac_path_EGREP" || continue
5069 # Check for GNU ac_path_EGREP and select it if it is found.
5070 # Check for GNU $ac_path_EGREP
5071 case `"$ac_path_EGREP" --version 2>&1` in
5073 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5076 $as_echo_n 0123456789 >"conftest.in"
5079 cat "conftest.in" "conftest.in" >"conftest.tmp"
5080 mv "conftest.tmp" "conftest.in"
5081 cp "conftest.in" "conftest.nl"
5082 $as_echo 'EGREP' >> "conftest.nl"
5083 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5085 as_fn_arith $ac_count + 1 && ac_count=$as_val
5086 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5087 # Best one so far, save it but keep looking for a better one
5088 ac_cv_path_EGREP="$ac_path_EGREP"
5089 ac_path_EGREP_max=$ac_count
5091 # 10*(2^10) chars as input seems more than enough
5092 test $ac_count -gt 10 && break
5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5097 $ac_path_EGREP_found && break 3
5102 if test -z "$ac_cv_path_EGREP"; then
5103 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5106 ac_cv_path_EGREP=$EGREP
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5112 $as_echo "$ac_cv_path_EGREP" >&6; }
5113 EGREP="$ac_cv_path_EGREP"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5117 $as_echo_n "checking for fgrep... " >&6; }
5118 if ${ac_cv_path_FGREP+:} false; then :
5119 $as_echo_n "(cached) " >&6
5121 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5122 then ac_cv_path_FGREP="$GREP -F"
5124 if test -z "$FGREP"; then
5125 ac_path_FGREP_found=false
5126 # Loop through the user's path and test for each of PROGNAME-LIST
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131 test -z "$as_dir" && as_dir=.
5132 for ac_prog in fgrep; do
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5135 as_fn_executable_p "$ac_path_FGREP" || continue
5136 # Check for GNU ac_path_FGREP and select it if it is found.
5137 # Check for GNU $ac_path_FGREP
5138 case `"$ac_path_FGREP" --version 2>&1` in
5140 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5143 $as_echo_n 0123456789 >"conftest.in"
5146 cat "conftest.in" "conftest.in" >"conftest.tmp"
5147 mv "conftest.tmp" "conftest.in"
5148 cp "conftest.in" "conftest.nl"
5149 $as_echo 'FGREP' >> "conftest.nl"
5150 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152 as_fn_arith $ac_count + 1 && ac_count=$as_val
5153 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5154 # Best one so far, save it but keep looking for a better one
5155 ac_cv_path_FGREP="$ac_path_FGREP"
5156 ac_path_FGREP_max=$ac_count
5158 # 10*(2^10) chars as input seems more than enough
5159 test $ac_count -gt 10 && break
5161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5164 $ac_path_FGREP_found && break 3
5169 if test -z "$ac_cv_path_FGREP"; then
5170 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5173 ac_cv_path_FGREP=$FGREP
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5179 $as_echo "$ac_cv_path_FGREP" >&6; }
5180 FGREP="$ac_cv_path_FGREP"
5183 test -z "$GREP" && GREP=grep
5203 # Check whether --with-gnu-ld was given.
5204 if test "${with_gnu_ld+set}" = set; then :
5205 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5211 if test "$GCC" = yes; then
5212 # Check if gcc -print-prog-name=ld gives a path.
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5214 $as_echo_n "checking for ld used by $CC... " >&6; }
5217 # gcc leaves a trailing carriage return which upsets mingw
5218 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5220 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5223 # Accept absolute paths.
5225 re_direlt='/[^/][^/]*/\.\./'
5226 # Canonicalize the pathname of ld
5227 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5228 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5229 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5231 test -z "$LD" && LD="$ac_prog"
5234 # If it fails, then pretend we aren't using GCC.
5238 # If it is relative, then search for the first ld in PATH.
5242 elif test "$with_gnu_ld" = yes; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5244 $as_echo_n "checking for GNU ld... " >&6; }
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5247 $as_echo_n "checking for non-GNU ld... " >&6; }
5249 if ${lt_cv_path_LD+:} false; then :
5250 $as_echo_n "(cached) " >&6
5252 if test -z "$LD"; then
5253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5254 for ac_dir in $PATH; do
5256 test -z "$ac_dir" && ac_dir=.
5257 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5258 lt_cv_path_LD="$ac_dir/$ac_prog"
5259 # Check to see if the program is GNU ld. I'd rather use --version,
5260 # but apparently some variants of GNU ld only accept -v.
5261 # Break only if it was the GNU/non-GNU ld that we prefer.
5262 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5263 *GNU* | *'with BFD'*)
5264 test "$with_gnu_ld" != no && break
5267 test "$with_gnu_ld" != yes && break
5274 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5279 if test -n "$LD"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5281 $as_echo "$LD" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5288 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5289 if ${lt_cv_prog_gnu_ld+:} false; then :
5290 $as_echo_n "(cached) " >&6
5292 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5293 case `$LD -v 2>&1 </dev/null` in
5294 *GNU* | *'with BFD'*)
5295 lt_cv_prog_gnu_ld=yes
5298 lt_cv_prog_gnu_ld=no
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5303 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5304 with_gnu_ld=$lt_cv_prog_gnu_ld
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5315 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5316 if ${lt_cv_path_NM+:} false; then :
5317 $as_echo_n "(cached) " >&6
5319 if test -n "$NM"; then
5320 # Let the user override the test.
5323 lt_nm_to_check="${ac_tool_prefix}nm"
5324 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5325 lt_nm_to_check="$lt_nm_to_check nm"
5327 for lt_tmp_nm in $lt_nm_to_check; do
5328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5329 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5331 test -z "$ac_dir" && ac_dir=.
5332 tmp_nm="$ac_dir/$lt_tmp_nm"
5333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5334 # Check to see if the nm accepts a BSD-compat flag.
5335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5336 # nm: unknown option "B" ignored
5337 # Tru64's nm complains that /dev/null is an invalid object file
5338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5339 */dev/null* | *'Invalid file or object type'*)
5340 lt_cv_path_NM="$tmp_nm -B"
5344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5346 lt_cv_path_NM="$tmp_nm -p"
5350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5351 continue # so that we can try to find one that supports BSD flags
5360 : ${lt_cv_path_NM=no}
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5364 $as_echo "$lt_cv_path_NM" >&6; }
5365 if test "$lt_cv_path_NM" != "no"; then
5368 # Didn't find any BSD compatible name lister, look for dumpbin.
5369 if test -n "$DUMPBIN"; then :
5370 # Let the user override the test.
5372 if test -n "$ac_tool_prefix"; then
5373 for ac_prog in dumpbin "link -dump"
5375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_DUMPBIN+:} false; then :
5380 $as_echo_n "(cached) " >&6
5382 if test -n "$DUMPBIN"; then
5383 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 DUMPBIN=$ac_cv_prog_DUMPBIN
5403 if test -n "$DUMPBIN"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5405 $as_echo "$DUMPBIN" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 test -n "$DUMPBIN" && break
5415 if test -z "$DUMPBIN"; then
5416 ac_ct_DUMPBIN=$DUMPBIN
5417 for ac_prog in dumpbin "link -dump"
5419 # Extract the first word of "$ac_prog", so it can be a program name with args.
5420 set dummy $ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 if test -n "$ac_ct_DUMPBIN"; then
5427 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5447 if test -n "$ac_ct_DUMPBIN"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5449 $as_echo "$ac_ct_DUMPBIN" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5456 test -n "$ac_ct_DUMPBIN" && break
5459 if test "x$ac_ct_DUMPBIN" = x; then
5462 case $cross_compiling:$ac_tool_warned in
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5468 DUMPBIN=$ac_ct_DUMPBIN
5472 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5474 DUMPBIN="$DUMPBIN -symbols"
5482 if test "$DUMPBIN" != ":"; then
5486 test -z "$NM" && NM=nm
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5495 if ${lt_cv_nm_interface+:} false; then :
5496 $as_echo_n "(cached) " >&6
5498 lt_cv_nm_interface="BSD nm"
5499 echo "int some_variable = 0;" > conftest.$ac_ext
5500 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5501 (eval "$ac_compile" 2>conftest.err)
5502 cat conftest.err >&5
5503 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5504 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5505 cat conftest.err >&5
5506 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5507 cat conftest.out >&5
5508 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5509 lt_cv_nm_interface="MS dumpbin"
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5514 $as_echo "$lt_cv_nm_interface" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5517 $as_echo_n "checking whether ln -s works... " >&6; }
5519 if test "$LN_S" = "ln -s"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5524 $as_echo "no, using $LN_S" >&6; }
5527 # find the maximum length of command line arguments
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5530 if ${lt_cv_sys_max_cmd_len+:} false; then :
5531 $as_echo_n "(cached) " >&6
5538 # On DJGPP, this test can blow up pretty badly due to problems in libc
5539 # (any single argument exceeding 2000 bytes causes a buffer overrun
5540 # during glob expansion). Even if it were fixed, the result of this
5541 # check would be larger than it should be.
5542 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5546 # Under GNU Hurd, this test is not required because there is
5547 # no limit to the length of command line arguments.
5548 # Libtool will interpret -1 as no limit whatsoever
5549 lt_cv_sys_max_cmd_len=-1;
5552 cygwin* | mingw* | cegcc*)
5553 # On Win9x/ME, this test blows up -- it succeeds, but takes
5554 # about 5 minutes as the teststring grows exponentially.
5555 # Worse, since 9x/ME are not pre-emptively multitasking,
5556 # you end up with a "frozen" computer, even though with patience
5557 # the test eventually succeeds (with a max line length of 256k).
5558 # Instead, let's just punt: use the minimum linelength reported by
5559 # all of the supported platforms: 8192 (on NT/2K/XP).
5560 lt_cv_sys_max_cmd_len=8192;
5564 # On MiNT this can take a long time and run out of memory.
5565 lt_cv_sys_max_cmd_len=8192;
5569 # On AmigaOS with pdksh, this test takes hours, literally.
5570 # So we just punt and use a minimum line length of 8192.
5571 lt_cv_sys_max_cmd_len=8192;
5574 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5575 # This has been around since 386BSD, at least. Likely further.
5576 if test -x /sbin/sysctl; then
5577 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5578 elif test -x /usr/sbin/sysctl; then
5579 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5581 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5583 # And add a safety zone
5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5590 lt_cv_sys_max_cmd_len=196608
5594 # The test takes a long time on OS/2.
5595 lt_cv_sys_max_cmd_len=8192
5599 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5600 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5601 # nice to cause kernel panics so lets avoid the loop below.
5602 # First set a reasonable default.
5603 lt_cv_sys_max_cmd_len=16384
5605 if test -x /sbin/sysconfig; then
5606 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5607 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5612 lt_cv_sys_max_cmd_len=102400
5614 sysv5* | sco5v6* | sysv4.2uw2*)
5615 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5616 if test -n "$kargmax"; then
5617 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5619 lt_cv_sys_max_cmd_len=32768
5623 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5624 if test -n "$lt_cv_sys_max_cmd_len"; then
5625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5628 # Make teststring a little bigger before we do anything with it.
5629 # a 1K string should be a reasonable start.
5630 for i in 1 2 3 4 5 6 7 8 ; do
5631 teststring=$teststring$teststring
5633 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5634 # If test is not a shell built-in, we'll probably end up computing a
5635 # maximum length that is only half of the actual maximum length, but
5637 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5638 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5639 test $i != 17 # 1/2 MB should be enough
5642 teststring=$teststring$teststring
5644 # Only check the string length outside the loop.
5645 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5647 # Add a significant safety factor because C++ compilers can tack on
5648 # massive amounts of additional arguments before passing them to the
5649 # linker. It appears as though 1/2 is a usable value.
5650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5657 if test -n $lt_cv_sys_max_cmd_len ; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5659 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5662 $as_echo "none" >&6; }
5664 max_cmd_len=$lt_cv_sys_max_cmd_len
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5676 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5677 # Try some XSI features
5680 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5682 && eval 'test $(( 1 + 1 )) -eq 2 \
5683 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5686 $as_echo "$xsi_shell" >&6; }
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5690 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5692 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5694 && lt_shell_append=yes
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5696 $as_echo "$lt_shell_append" >&6; }
5699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5709 # test EBCDIC or ASCII
5710 case `echo X|tr X '\101'` in
5711 A) # ASCII based system
5712 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5713 lt_SP2NL='tr \040 \012'
5714 lt_NL2SP='tr \015\012 \040\040'
5716 *) # EBCDIC based system
5717 lt_SP2NL='tr \100 \n'
5718 lt_NL2SP='tr \r\n \100\100'
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5731 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5732 if ${lt_cv_to_host_file_cmd+:} false; then :
5733 $as_echo_n "(cached) " >&6
5738 *-*-mingw* ) # actually msys
5739 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5742 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5744 * ) # otherwise, assume *nix
5745 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5751 *-*-mingw* ) # actually msys
5752 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5755 lt_cv_to_host_file_cmd=func_convert_file_noop
5757 * ) # otherwise, assume *nix
5758 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5762 * ) # unhandled hosts (and "normal" native builds)
5763 lt_cv_to_host_file_cmd=func_convert_file_noop
5769 to_host_file_cmd=$lt_cv_to_host_file_cmd
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5771 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5778 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5779 if ${lt_cv_to_tool_file_cmd+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 #assume ordinary cross tools, or native build.
5783 lt_cv_to_tool_file_cmd=func_convert_file_noop
5787 *-*-mingw* ) # actually msys
5788 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5796 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5798 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5805 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5806 if ${lt_cv_ld_reload_flag+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 lt_cv_ld_reload_flag='-r'
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5812 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5816 *) reload_flag=" $reload_flag" ;;
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5820 cygwin* | mingw* | pw32* | cegcc*)
5821 if test "$GCC" != yes; then
5826 if test "$GCC" = yes; then
5827 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_OBJDUMP+:} false; then :
5848 $as_echo_n "(cached) " >&6
5850 if test -n "$OBJDUMP"; then
5851 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 OBJDUMP=$ac_cv_prog_OBJDUMP
5871 if test -n "$OBJDUMP"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5873 $as_echo "$OBJDUMP" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5881 if test -z "$ac_cv_prog_OBJDUMP"; then
5882 ac_ct_OBJDUMP=$OBJDUMP
5883 # Extract the first word of "objdump", so it can be a program name with args.
5884 set dummy objdump; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -n "$ac_ct_OBJDUMP"; then
5891 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5911 if test -n "$ac_ct_OBJDUMP"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5913 $as_echo "$ac_ct_OBJDUMP" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5919 if test "x$ac_ct_OBJDUMP" = x; then
5922 case $cross_compiling:$ac_tool_warned in
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5928 OBJDUMP=$ac_ct_OBJDUMP
5931 OBJDUMP="$ac_cv_prog_OBJDUMP"
5934 test -z "$OBJDUMP" && OBJDUMP=objdump
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5945 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5946 if ${lt_cv_deplibs_check_method+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 lt_cv_file_magic_cmd='$MAGIC_CMD'
5950 lt_cv_file_magic_test_file=
5951 lt_cv_deplibs_check_method='unknown'
5952 # Need to set the preceding variable on all platforms that support
5953 # interlibrary dependencies.
5954 # 'none' -- dependencies not supported.
5955 # `unknown' -- same as none, but documents that we really don't know.
5956 # 'pass_all' -- all dependencies passed with no checks.
5957 # 'test_compile' -- check by making test program.
5958 # 'file_magic [[regex]]' -- check by looking for files in library path
5959 # which responds to the $file_magic_cmd with a given extended regex.
5960 # If you have `file' or equivalent on your system and you're not sure
5961 # whether `pass_all' will *always* work, you probably want this one.
5965 lt_cv_deplibs_check_method=pass_all
5969 lt_cv_deplibs_check_method=pass_all
5973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5974 lt_cv_file_magic_cmd='/usr/bin/file -L'
5975 lt_cv_file_magic_test_file=/shlib/libc.so
5979 # func_win32_libid is a shell function defined in ltmain.sh
5980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5981 lt_cv_file_magic_cmd='func_win32_libid'
5985 # Base MSYS/MinGW do not provide the 'file' command needed by
5986 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5987 # unless we find 'file', for example because we are cross-compiling.
5988 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5989 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991 lt_cv_file_magic_cmd='func_win32_libid'
5993 # Keep this pattern in sync with the one in func_win32_libid.
5994 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5995 lt_cv_file_magic_cmd='$OBJDUMP -f'
6000 # use the weaker test based on 'objdump'. See mingw*.
6001 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6002 lt_cv_file_magic_cmd='$OBJDUMP -f'
6005 darwin* | rhapsody*)
6006 lt_cv_deplibs_check_method=pass_all
6009 freebsd* | dragonfly*)
6010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6013 # Not sure whether the presence of OpenBSD here was a mistake.
6014 # Let's accept both of them until this is cleared up.
6015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6016 lt_cv_file_magic_cmd=/usr/bin/file
6017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6021 lt_cv_deplibs_check_method=pass_all
6026 lt_cv_deplibs_check_method=pass_all
6030 lt_cv_deplibs_check_method=pass_all
6033 hpux10.20* | hpux11*)
6034 lt_cv_file_magic_cmd=/usr/bin/file
6037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6041 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]'
6042 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6046 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6056 irix5* | irix6* | nonstopux*)
6058 *-32|*"-32 ") libmagic=32-bit;;
6059 *-n32|*"-n32 ") libmagic=N32;;
6060 *-64|*"-64 ") libmagic=64-bit;;
6061 *) libmagic=never-match;;
6063 lt_cv_deplibs_check_method=pass_all
6066 # This must be glibc/ELF.
6067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6068 lt_cv_deplibs_check_method=pass_all
6072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6081 lt_cv_file_magic_cmd=/usr/bin/file
6082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6086 lt_cv_deplibs_check_method=pass_all
6090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6097 osf3* | osf4* | osf5*)
6098 lt_cv_deplibs_check_method=pass_all
6102 lt_cv_deplibs_check_method=pass_all
6106 lt_cv_deplibs_check_method=pass_all
6109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6110 lt_cv_deplibs_check_method=pass_all
6114 case $host_vendor in
6116 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]'
6117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6120 lt_cv_deplibs_check_method=pass_all
6123 lt_cv_file_magic_cmd='/bin/file'
6124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6127 lt_cv_file_magic_cmd='/bin/file'
6128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6129 lt_cv_file_magic_test_file=/lib/libc.so
6132 lt_cv_deplibs_check_method=pass_all
6135 lt_cv_deplibs_check_method=pass_all
6141 lt_cv_deplibs_check_method=pass_all
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6147 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6151 if test "$build" = "$host"; then
6154 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6157 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6163 file_magic_cmd=$lt_cv_file_magic_cmd
6164 deplibs_check_method=$lt_cv_deplibs_check_method
6165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6188 if test -n "$ac_tool_prefix"; then
6189 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_DLLTOOL+:} false; then :
6194 $as_echo_n "(cached) " >&6
6196 if test -n "$DLLTOOL"; then
6197 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 DLLTOOL=$ac_cv_prog_DLLTOOL
6217 if test -n "$DLLTOOL"; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6219 $as_echo "$DLLTOOL" >&6; }
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6227 if test -z "$ac_cv_prog_DLLTOOL"; then
6228 ac_ct_DLLTOOL=$DLLTOOL
6229 # Extract the first word of "dlltool", so it can be a program name with args.
6230 set dummy dlltool; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6234 $as_echo_n "(cached) " >&6
6236 if test -n "$ac_ct_DLLTOOL"; then
6237 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6257 if test -n "$ac_ct_DLLTOOL"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6259 $as_echo "$ac_ct_DLLTOOL" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6265 if test "x$ac_ct_DLLTOOL" = x; then
6268 case $cross_compiling:$ac_tool_warned in
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6274 DLLTOOL=$ac_ct_DLLTOOL
6277 DLLTOOL="$ac_cv_prog_DLLTOOL"
6280 test -z "$DLLTOOL" && DLLTOOL=dlltool
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6292 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6293 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 lt_cv_sharedlib_from_linklib_cmd='unknown'
6299 cygwin* | mingw* | pw32* | cegcc*)
6300 # two different shell functions defined in ltmain.sh
6301 # decide which to use based on capabilities of $DLLTOOL
6302 case `$DLLTOOL --help 2>&1` in
6303 *--identify-strict*)
6304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6307 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6312 # fallback: assume linklib IS sharedlib
6313 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6319 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6320 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6321 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6330 if test -n "$ac_tool_prefix"; then
6333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_AR+:} false; then :
6338 $as_echo_n "(cached) " >&6
6340 if test -n "$AR"; then
6341 ac_cv_prog_AR="$AR" # Let the user override the test.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 if test -n "$AR"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6363 $as_echo "$AR" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6370 test -n "$AR" && break
6373 if test -z "$AR"; then
6377 # Extract the first word of "$ac_prog", so it can be a program name with args.
6378 set dummy $ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$ac_ct_AR"; then
6385 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_ac_ct_AR="$ac_prog"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6405 if test -n "$ac_ct_AR"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6407 $as_echo "$ac_ct_AR" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6414 test -n "$ac_ct_AR" && break
6417 if test "x$ac_ct_AR" = x; then
6420 case $cross_compiling:$ac_tool_warned in
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6444 $as_echo_n "checking for archiver @FILE support... " >&6; }
6445 if ${lt_cv_ar_at_file+:} false; then :
6446 $as_echo_n "(cached) " >&6
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6460 if ac_fn_c_try_compile "$LINENO"; then :
6461 echo conftest.$ac_objext > conftest.lst
6462 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6464 (eval $lt_ar_try) 2>&5
6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467 test $ac_status = 0; }
6468 if test "$ac_status" -eq 0; then
6469 # Ensure the archiver fails upon bogus file names.
6470 rm -f conftest.$ac_objext libconftest.a
6471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6472 (eval $lt_ar_try) 2>&5
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }
6476 if test "$ac_status" -ne 0; then
6480 rm -f conftest.* libconftest.a
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6487 $as_echo "$lt_cv_ar_at_file" >&6; }
6489 if test "x$lt_cv_ar_at_file" = xno; then
6492 archiver_list_spec=$lt_cv_ar_at_file
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}strip; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_STRIP+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -n "$STRIP"; then
6510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 STRIP=$ac_cv_prog_STRIP
6530 if test -n "$STRIP"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6532 $as_echo "$STRIP" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_prog_STRIP"; then
6542 # Extract the first word of "strip", so it can be a program name with args.
6543 set dummy strip; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 if test -n "$ac_ct_STRIP"; then
6550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_ac_ct_STRIP="strip"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6570 if test -n "$ac_ct_STRIP"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6572 $as_echo "$ac_ct_STRIP" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6578 if test "x$ac_ct_STRIP" = x; then
6581 case $cross_compiling:$ac_tool_warned in
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6590 STRIP="$ac_cv_prog_STRIP"
6593 test -z "$STRIP" && STRIP=:
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_RANLIB+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 if test -n "$RANLIB"; then
6609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 RANLIB=$ac_cv_prog_RANLIB
6629 if test -n "$RANLIB"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6631 $as_echo "$RANLIB" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6639 if test -z "$ac_cv_prog_RANLIB"; then
6640 ac_ct_RANLIB=$RANLIB
6641 # Extract the first word of "ranlib", so it can be a program name with args.
6642 set dummy ranlib; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6646 $as_echo_n "(cached) " >&6
6648 if test -n "$ac_ct_RANLIB"; then
6649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_ac_ct_RANLIB="ranlib"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6669 if test -n "$ac_ct_RANLIB"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6671 $as_echo "$ac_ct_RANLIB" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6677 if test "x$ac_ct_RANLIB" = x; then
6680 case $cross_compiling:$ac_tool_warned in
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6686 RANLIB=$ac_ct_RANLIB
6689 RANLIB="$ac_cv_prog_RANLIB"
6692 test -z "$RANLIB" && RANLIB=:
6699 # Determine commands to create old-style static archives.
6700 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6701 old_postinstall_cmds='chmod 644 $oldlib'
6702 old_postuninstall_cmds=
6704 if test -n "$RANLIB"; then
6707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6710 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6713 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6718 lock_old_archive_extraction=yes ;;
6720 lock_old_archive_extraction=no ;;
6761 # If no C compiler was specified, use CC.
6764 # If no C compiler flags were specified, use CFLAGS.
6765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6767 # Allow CC to be a program name with arguments.
6771 # Check for command to grab the raw symbol name followed by C symbol from nm.
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6773 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6774 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6775 $as_echo_n "(cached) " >&6
6778 # These are sane defaults that work on at least a few old systems.
6779 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6781 # Character class describing NM global symbol codes.
6782 symcode='[BCDEGRST]'
6784 # Regexp to match symbols that can be accessed directly from C.
6785 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6787 # Define system-specific variables.
6792 cygwin* | mingw* | pw32* | cegcc*)
6793 symcode='[ABCDGISTW]'
6796 if test "$host_cpu" = ia64; then
6797 symcode='[ABCDEGRST]'
6801 symcode='[BCDEGRST]'
6804 symcode='[BCDEGQRST]'
6815 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6823 # If we're using GNU nm, then use its standard symbol codes.
6824 case `$NM -V 2>&1` in
6825 *GNU* | *'with BFD'*)
6826 symcode='[ABCDGIRSTW]' ;;
6829 # Transform an extracted symbol line into a proper C declaration.
6830 # Some systems (esp. on ia64) link data and code symbols differently,
6831 # so use this general approach.
6832 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6834 # Transform an extracted symbol line into symbol name and symbol address
6835 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6838 # Handle CRLF in mingw tool chain
6842 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6846 # Try without a prefix underscore, then with it.
6847 for ac_symprfx in "" "_"; do
6849 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6850 symxfrm="\\1 $ac_symprfx\\2 \\2"
6852 # Write the raw and C identifiers.
6853 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6854 # Fake it for dumpbin and say T for any non-static function
6855 # and D for any global variable.
6856 # Also find C++ and __fastcall symbols from MSVC++,
6857 # which start with @ or ?.
6858 lt_cv_sys_global_symbol_pipe="$AWK '"\
6859 " {last_section=section; section=\$ 3};"\
6860 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6861 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6862 " \$ 0!~/External *\|/{next};"\
6863 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6864 " {if(hide[section]) next};"\
6865 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6866 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6867 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6868 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6869 " ' prfx=^$ac_symprfx"
6871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6873 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6875 # Check to see that the pipe works correctly.
6879 cat > conftest.$ac_ext <<_LT_EOF
6884 void nm_test_func(void);
6885 void nm_test_func(void){}
6889 int main(){nm_test_var='a';nm_test_func();return(0);}
6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6893 (eval $ac_compile) 2>&5
6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896 test $ac_status = 0; }; then
6897 # Now try to grab the symbols.
6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6900 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903 test $ac_status = 0; } && test -s "$nlist"; then
6904 # Try sorting and uniquifying the output.
6905 if sort "$nlist" | uniq > "$nlist"T; then
6906 mv -f "$nlist"T "$nlist"
6911 # Make sure that we snagged all the symbols we need.
6912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6914 cat <<_LT_EOF > conftest.$ac_ext
6915 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6916 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6917 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6918 relocations are performed -- see ld's documentation on pseudo-relocs. */
6919 # define LT_DLSYM_CONST
6920 #elif defined(__osf__)
6921 /* This system does not cope well with relocations in const data. */
6922 # define LT_DLSYM_CONST
6924 # define LT_DLSYM_CONST const
6932 # Now generate the symbol file.
6933 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6935 cat <<_LT_EOF >> conftest.$ac_ext
6937 /* The mapping between symbol names and symbols. */
6938 LT_DLSYM_CONST struct {
6942 lt__PROGRAM__LTX_preloaded_symbols[] =
6944 { "@PROGRAM@", (void *) 0 },
6946 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6947 cat <<\_LT_EOF >> conftest.$ac_ext
6951 /* This works around a problem in FreeBSD linker */
6952 #ifdef FREEBSD_WORKAROUND
6953 static const void *lt_preloaded_setup() {
6954 return lt__PROGRAM__LTX_preloaded_symbols;
6962 # Now try linking the two files.
6963 mv conftest.$ac_objext conftstm.$ac_objext
6964 lt_globsym_save_LIBS=$LIBS
6965 lt_globsym_save_CFLAGS=$CFLAGS
6966 LIBS="conftstm.$ac_objext"
6967 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6969 (eval $ac_link) 2>&5
6971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6975 LIBS=$lt_globsym_save_LIBS
6976 CFLAGS=$lt_globsym_save_CFLAGS
6978 echo "cannot find nm_test_func in $nlist" >&5
6981 echo "cannot find nm_test_var in $nlist" >&5
6984 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6987 echo "$progname: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6990 rm -rf conftest* conftst*
6992 # Do not use the global_symbol_pipe unless it works.
6993 if test "$pipe_works" = yes; then
6996 lt_cv_sys_global_symbol_pipe=
7002 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7003 lt_cv_sys_global_symbol_to_cdecl=
7005 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7007 $as_echo "failed" >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7010 $as_echo "ok" >&6; }
7013 # Response file support.
7014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7015 nm_file_list_spec='@'
7016 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7017 nm_file_list_spec='@'
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7047 $as_echo_n "checking for sysroot... " >&6; }
7049 # Check whether --with-sysroot was given.
7050 if test "${with_sysroot+set}" = set; then :
7051 withval=$with_sysroot;
7058 case ${with_sysroot} in #(
7060 if test "$GCC" = yes; then
7061 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7065 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7071 $as_echo "${with_sysroot}" >&6; }
7072 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7077 $as_echo "${lt_sysroot:-no}" >&6; }
7083 # Check whether --enable-libtool-lock was given.
7084 if test "${enable_libtool_lock+set}" = set; then :
7085 enableval=$enable_libtool_lock;
7088 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7090 # Some flags need to be propagated to the compiler or linker for good
7094 # Find out which ABI we are using.
7095 echo 'int i;' > conftest.$ac_ext
7096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7097 (eval $ac_compile) 2>&5
7099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100 test $ac_status = 0; }; then
7101 case `/usr/bin/file conftest.$ac_objext` in
7113 # Find out which ABI we are using.
7114 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7116 (eval $ac_compile) 2>&5
7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119 test $ac_status = 0; }; then
7120 if test "$lt_cv_prog_gnu_ld" = yes; then
7121 case `/usr/bin/file conftest.$ac_objext` in
7123 LD="${LD-ld} -melf32bsmip"
7126 LD="${LD-ld} -melf32bmipn32"
7129 LD="${LD-ld} -melf64bmip"
7133 case `/usr/bin/file conftest.$ac_objext` in
7149 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7150 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7151 # Find out which ABI we are using.
7152 echo 'int i;' > conftest.$ac_ext
7153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154 (eval $ac_compile) 2>&5
7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; }; then
7158 case `/usr/bin/file conftest.o` in
7161 x86_64-*kfreebsd*-gnu)
7162 LD="${LD-ld} -m elf_i386_fbsd"
7165 LD="${LD-ld} -m elf_i386"
7167 ppc64-*linux*|powerpc64-*linux*)
7168 LD="${LD-ld} -m elf32ppclinux"
7171 LD="${LD-ld} -m elf_s390"
7174 LD="${LD-ld} -m elf32_sparc"
7180 x86_64-*kfreebsd*-gnu)
7181 LD="${LD-ld} -m elf_x86_64_fbsd"
7184 LD="${LD-ld} -m elf_x86_64"
7186 ppc*-*linux*|powerpc*-*linux*)
7187 LD="${LD-ld} -m elf64ppc"
7189 s390*-*linux*|s390*-*tpf*)
7190 LD="${LD-ld} -m elf64_s390"
7193 LD="${LD-ld} -m elf64_sparc"
7203 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7204 SAVE_CFLAGS="$CFLAGS"
7205 CFLAGS="$CFLAGS -belf"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7207 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7208 if ${lt_cv_cc_needs_belf+:} false; then :
7209 $as_echo_n "(cached) " >&6
7212 ac_cpp='$CPP $CPPFLAGS'
7213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7228 if ac_fn_c_try_link "$LINENO"; then :
7229 lt_cv_cc_needs_belf=yes
7231 lt_cv_cc_needs_belf=no
7233 rm -f core conftest.err conftest.$ac_objext \
7234 conftest$ac_exeext conftest.$ac_ext
7236 ac_cpp='$CPP $CPPFLAGS'
7237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7243 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7244 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7245 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7246 CFLAGS="$SAVE_CFLAGS"
7250 # Find out which ABI we are using.
7251 echo 'int i;' > conftest.$ac_ext
7252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253 (eval $ac_compile) 2>&5
7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256 test $ac_status = 0; }; then
7257 case `/usr/bin/file conftest.o` in
7259 case $lt_cv_prog_gnu_ld in
7263 LD="${LD-ld} -m elf_x86_64"
7266 LD="${LD-ld} -m elf64_sparc"
7269 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7270 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7275 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7287 need_locks="$enable_libtool_lock"
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}mt; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7295 $as_echo_n "(cached) " >&6
7297 if test -n "$MANIFEST_TOOL"; then
7298 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7318 if test -n "$MANIFEST_TOOL"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7320 $as_echo "$MANIFEST_TOOL" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7328 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7329 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7330 # Extract the first word of "mt", so it can be a program name with args.
7331 set dummy mt; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 if test -n "$ac_ct_MANIFEST_TOOL"; then
7338 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7358 if test -n "$ac_ct_MANIFEST_TOOL"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7360 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7366 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7369 case $cross_compiling:$ac_tool_warned in
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7375 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7378 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7381 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7383 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7384 if ${lt_cv_path_mainfest_tool+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 lt_cv_path_mainfest_tool=no
7388 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7389 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7390 cat conftest.err >&5
7391 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7392 lt_cv_path_mainfest_tool=yes
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7397 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7398 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7408 rhapsody* | darwin*)
7409 if test -n "$ac_tool_prefix"; then
7410 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7415 $as_echo_n "(cached) " >&6
7417 if test -n "$DSYMUTIL"; then
7418 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7438 if test -n "$DSYMUTIL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7440 $as_echo "$DSYMUTIL" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7448 if test -z "$ac_cv_prog_DSYMUTIL"; then
7449 ac_ct_DSYMUTIL=$DSYMUTIL
7450 # Extract the first word of "dsymutil", so it can be a program name with args.
7451 set dummy dsymutil; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7455 $as_echo_n "(cached) " >&6
7457 if test -n "$ac_ct_DSYMUTIL"; then
7458 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7478 if test -n "$ac_ct_DSYMUTIL"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7480 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7486 if test "x$ac_ct_DSYMUTIL" = x; then
7489 case $cross_compiling:$ac_tool_warned in
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned=yes ;;
7495 DSYMUTIL=$ac_ct_DSYMUTIL
7498 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7501 if test -n "$ac_tool_prefix"; then
7502 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7503 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_NMEDIT+:} false; then :
7507 $as_echo_n "(cached) " >&6
7509 if test -n "$NMEDIT"; then
7510 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 NMEDIT=$ac_cv_prog_NMEDIT
7530 if test -n "$NMEDIT"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7532 $as_echo "$NMEDIT" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7540 if test -z "$ac_cv_prog_NMEDIT"; then
7541 ac_ct_NMEDIT=$NMEDIT
7542 # Extract the first word of "nmedit", so it can be a program name with args.
7543 set dummy nmedit; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7547 $as_echo_n "(cached) " >&6
7549 if test -n "$ac_ct_NMEDIT"; then
7550 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7570 if test -n "$ac_ct_NMEDIT"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7572 $as_echo "$ac_ct_NMEDIT" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7578 if test "x$ac_ct_NMEDIT" = x; then
7581 case $cross_compiling:$ac_tool_warned in
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585 ac_tool_warned=yes ;;
7587 NMEDIT=$ac_ct_NMEDIT
7590 NMEDIT="$ac_cv_prog_NMEDIT"
7593 if test -n "$ac_tool_prefix"; then
7594 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7595 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if ${ac_cv_prog_LIPO+:} false; then :
7599 $as_echo_n "(cached) " >&6
7601 if test -n "$LIPO"; then
7602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 LIPO=$ac_cv_prog_LIPO
7622 if test -n "$LIPO"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7624 $as_echo "$LIPO" >&6; }
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7632 if test -z "$ac_cv_prog_LIPO"; then
7634 # Extract the first word of "lipo", so it can be a program name with args.
7635 set dummy lipo; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7639 $as_echo_n "(cached) " >&6
7641 if test -n "$ac_ct_LIPO"; then
7642 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_ac_ct_LIPO="lipo"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7662 if test -n "$ac_ct_LIPO"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7664 $as_echo "$ac_ct_LIPO" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7670 if test "x$ac_ct_LIPO" = x; then
7673 case $cross_compiling:$ac_tool_warned in
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7677 ac_tool_warned=yes ;;
7682 LIPO="$ac_cv_prog_LIPO"
7685 if test -n "$ac_tool_prefix"; then
7686 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7687 set dummy ${ac_tool_prefix}otool; ac_word=$2
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689 $as_echo_n "checking for $ac_word... " >&6; }
7690 if ${ac_cv_prog_OTOOL+:} false; then :
7691 $as_echo_n "(cached) " >&6
7693 if test -n "$OTOOL"; then
7694 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 OTOOL=$ac_cv_prog_OTOOL
7714 if test -n "$OTOOL"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7716 $as_echo "$OTOOL" >&6; }
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7724 if test -z "$ac_cv_prog_OTOOL"; then
7726 # Extract the first word of "otool", so it can be a program name with args.
7727 set dummy otool; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$ac_ct_OTOOL"; then
7734 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_ac_ct_OTOOL="otool"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7754 if test -n "$ac_ct_OTOOL"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7756 $as_echo "$ac_ct_OTOOL" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7762 if test "x$ac_ct_OTOOL" = x; then
7765 case $cross_compiling:$ac_tool_warned in
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769 ac_tool_warned=yes ;;
7774 OTOOL="$ac_cv_prog_OTOOL"
7777 if test -n "$ac_tool_prefix"; then
7778 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7779 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_OTOOL64+:} false; then :
7783 $as_echo_n "(cached) " >&6
7785 if test -n "$OTOOL64"; then
7786 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 OTOOL64=$ac_cv_prog_OTOOL64
7806 if test -n "$OTOOL64"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7808 $as_echo "$OTOOL64" >&6; }
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7816 if test -z "$ac_cv_prog_OTOOL64"; then
7817 ac_ct_OTOOL64=$OTOOL64
7818 # Extract the first word of "otool64", so it can be a program name with args.
7819 set dummy otool64; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7823 $as_echo_n "(cached) " >&6
7825 if test -n "$ac_ct_OTOOL64"; then
7826 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_ac_ct_OTOOL64="otool64"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7846 if test -n "$ac_ct_OTOOL64"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7848 $as_echo "$ac_ct_OTOOL64" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7854 if test "x$ac_ct_OTOOL64" = x; then
7857 case $cross_compiling:$ac_tool_warned in
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7861 ac_tool_warned=yes ;;
7863 OTOOL64=$ac_ct_OTOOL64
7866 OTOOL64="$ac_cv_prog_OTOOL64"
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7896 $as_echo_n "checking for -single_module linker flag... " >&6; }
7897 if ${lt_cv_apple_cc_single_mod+:} false; then :
7898 $as_echo_n "(cached) " >&6
7900 lt_cv_apple_cc_single_mod=no
7901 if test -z "${LT_MULTI_MODULE}"; then
7902 # By default we will add the -single_module flag. You can override
7903 # by either setting the environment variable LT_MULTI_MODULE
7904 # non-empty at configure time, or by adding -multi_module to the
7906 rm -rf libconftest.dylib*
7907 echo "int foo(void){return 1;}" > conftest.c
7908 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7909 -dynamiclib -Wl,-single_module conftest.c" >&5
7910 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7911 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7913 # If there is a non-empty error log, and "single_module"
7914 # appears in it, assume the flag caused a linker warning
7915 if test -s conftest.err && $GREP single_module conftest.err; then
7916 cat conftest.err >&5
7917 # Otherwise, if the output was created with a 0 exit code from
7918 # the compiler, it worked.
7919 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7920 lt_cv_apple_cc_single_mod=yes
7922 cat conftest.err >&5
7924 rm -rf libconftest.dylib*
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7929 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7932 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7933 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7934 $as_echo_n "(cached) " >&6
7936 lt_cv_ld_exported_symbols_list=no
7937 save_LDFLAGS=$LDFLAGS
7938 echo "_main" > conftest.sym
7939 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 lt_cv_ld_exported_symbols_list=yes
7954 lt_cv_ld_exported_symbols_list=no
7956 rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958 LDFLAGS="$save_LDFLAGS"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7962 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7965 $as_echo_n "checking for -force_load linker flag... " >&6; }
7966 if ${lt_cv_ld_force_load+:} false; then :
7967 $as_echo_n "(cached) " >&6
7969 lt_cv_ld_force_load=no
7970 cat > conftest.c << _LT_EOF
7971 int forced_loaded() { return 2;}
7973 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7974 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7975 echo "$AR cru libconftest.a conftest.o" >&5
7976 $AR cru libconftest.a conftest.o 2>&5
7977 echo "$RANLIB libconftest.a" >&5
7978 $RANLIB libconftest.a 2>&5
7979 cat > conftest.c << _LT_EOF
7980 int main() { return 0;}
7982 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7983 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7985 if test -s conftest.err && $GREP force_load conftest.err; then
7986 cat conftest.err >&5
7987 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7988 lt_cv_ld_force_load=yes
7990 cat conftest.err >&5
7992 rm -f conftest.err libconftest.a conftest conftest.c
7993 rm -rf conftest.dSYM
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7997 $as_echo "$lt_cv_ld_force_load" >&6; }
7999 rhapsody* | darwin1.[012])
8000 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8002 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8003 darwin*) # darwin 5.x on
8004 # if running on 10.5 or later, the deployment target defaults
8005 # to the OS version, if on x86, and 10.4, the deployment
8006 # target defaults to 10.4. Don't you love it?
8007 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8008 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8009 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8013 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8018 _lt_dar_single_mod='$single_module'
8020 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8021 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8023 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8026 _lt_dsymutil='~$DSYMUTIL $lib || :'
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8040 # On Suns, sometimes $CPP names a directory.
8041 if test -n "$CPP" && test -d "$CPP"; then
8044 if test -z "$CPP"; then
8045 if ${ac_cv_prog_CPP+:} false; then :
8046 $as_echo_n "(cached) " >&6
8048 # Double quotes because CPP needs to be expanded
8049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8052 for ac_c_preproc_warn_flag in '' yes
8054 # Use a header file that comes with gcc, so configuring glibc
8055 # with a fresh cross-compiler works.
8056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8057 # <limits.h> exists even on freestanding compilers.
8058 # On the NeXT, cc -E runs the code through the compiler's parser,
8059 # not just through cpp. "Syntax error" is here to catch this case.
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8063 # include <limits.h>
8065 # include <assert.h>
8069 if ac_fn_c_try_cpp "$LINENO"; then :
8072 # Broken: fails on valid input.
8075 rm -f conftest.err conftest.i conftest.$ac_ext
8077 # OK, works on sane cases. Now check whether nonexistent headers
8078 # can be detected and how.
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 #include <ac_nonexistent.h>
8083 if ac_fn_c_try_cpp "$LINENO"; then :
8084 # Broken: success on invalid input.
8087 # Passes both tests.
8091 rm -f conftest.err conftest.i conftest.$ac_ext
8094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8095 rm -f conftest.i conftest.err conftest.$ac_ext
8096 if $ac_preproc_ok; then :
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8109 $as_echo "$CPP" >&6; }
8111 for ac_c_preproc_warn_flag in '' yes
8113 # Use a header file that comes with gcc, so configuring glibc
8114 # with a fresh cross-compiler works.
8115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8116 # <limits.h> exists even on freestanding compilers.
8117 # On the NeXT, cc -E runs the code through the compiler's parser,
8118 # not just through cpp. "Syntax error" is here to catch this case.
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8122 # include <limits.h>
8124 # include <assert.h>
8128 if ac_fn_c_try_cpp "$LINENO"; then :
8131 # Broken: fails on valid input.
8134 rm -f conftest.err conftest.i conftest.$ac_ext
8136 # OK, works on sane cases. Now check whether nonexistent headers
8137 # can be detected and how.
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 #include <ac_nonexistent.h>
8142 if ac_fn_c_try_cpp "$LINENO"; then :
8143 # Broken: success on invalid input.
8146 # Passes both tests.
8150 rm -f conftest.err conftest.i conftest.$ac_ext
8153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8154 rm -f conftest.i conftest.err conftest.$ac_ext
8155 if $ac_preproc_ok; then :
8158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8160 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8161 See \`config.log' for more details" "$LINENO" 5; }
8165 ac_cpp='$CPP $CPPFLAGS'
8166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8172 $as_echo_n "checking for ANSI C header files... " >&6; }
8173 if ${ac_cv_header_stdc+:} false; then :
8174 $as_echo_n "(cached) " >&6
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192 ac_cv_header_stdc=yes
8194 ac_cv_header_stdc=no
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 if test $ac_cv_header_stdc = yes; then
8199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8206 $EGREP "memchr" >/dev/null 2>&1; then :
8209 ac_cv_header_stdc=no
8215 if test $ac_cv_header_stdc = yes; then
8216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8223 $EGREP "free" >/dev/null 2>&1; then :
8226 ac_cv_header_stdc=no
8232 if test $ac_cv_header_stdc = yes; then
8233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8234 if test "$cross_compiling" = yes; then :
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8241 #if ((' ' & 0x0FF) == 0x020)
8242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8245 # define ISLOWER(c) \
8246 (('a' <= (c) && (c) <= 'i') \
8247 || ('j' <= (c) && (c) <= 'r') \
8248 || ('s' <= (c) && (c) <= 'z'))
8249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8257 for (i = 0; i < 256; i++)
8258 if (XOR (islower (i), ISLOWER (i))
8259 || toupper (i) != TOUPPER (i))
8264 if ac_fn_c_try_run "$LINENO"; then :
8267 ac_cv_header_stdc=no
8269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8270 conftest.$ac_objext conftest.beam conftest.$ac_ext
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8276 $as_echo "$ac_cv_header_stdc" >&6; }
8277 if test $ac_cv_header_stdc = yes; then
8279 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8283 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8285 inttypes.h stdint.h unistd.h
8287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8290 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8291 cat >>confdefs.h <<_ACEOF
8292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8300 for ac_header in dlfcn.h
8302 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8304 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8305 cat >>confdefs.h <<_ACEOF
8306 #define HAVE_DLFCN_H 1
8318 # Check whether --enable-static was given.
8319 if test "${enable_static+set}" = set; then :
8320 enableval=$enable_static; p=${PACKAGE-default}
8322 yes) enable_static=yes ;;
8323 no) enable_static=no ;;
8326 # Look at the argument we got. We use all the common list separators.
8327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8328 for pkg in $enableval; do
8330 if test "X$pkg" = "X$p"; then
8356 # Check whether --enable-shared was given.
8357 if test "${enable_shared+set}" = set; then :
8358 enableval=$enable_shared; p=${PACKAGE-default}
8360 yes) enable_shared=yes ;;
8361 no) enable_shared=no ;;
8364 # Look at the argument we got. We use all the common list separators.
8365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8366 for pkg in $enableval; do
8368 if test "X$pkg" = "X$p"; then
8389 # Check whether --with-pic was given.
8390 if test "${with_pic+set}" = set; then :
8391 withval=$with_pic; lt_p=${PACKAGE-default}
8393 yes|no) pic_mode=$withval ;;
8396 # Look at the argument we got. We use all the common list separators.
8397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8398 for lt_pkg in $withval; do
8400 if test "X$lt_pkg" = "X$lt_p"; then
8412 test -z "$pic_mode" && pic_mode=default
8420 # Check whether --enable-fast-install was given.
8421 if test "${enable_fast_install+set}" = set; then :
8422 enableval=$enable_fast_install; p=${PACKAGE-default}
8424 yes) enable_fast_install=yes ;;
8425 no) enable_fast_install=no ;;
8427 enable_fast_install=no
8428 # Look at the argument we got. We use all the common list separators.
8429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8430 for pkg in $enableval; do
8432 if test "X$pkg" = "X$p"; then
8433 enable_fast_install=yes
8440 enable_fast_install=yes
8453 # This can be used to rebuild libtool when needed
8454 LIBTOOL_DEPS="$ltmain"
8456 # Always use our own libtool.
8457 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8488 test -z "$LN_S" && LN_S="ln -s"
8503 if test -n "${ZSH_VERSION+set}" ; then
8504 setopt NO_GLOB_SUBST
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8508 $as_echo_n "checking for objdir... " >&6; }
8509 if ${lt_cv_objdir+:} false; then :
8510 $as_echo_n "(cached) " >&6
8512 rm -f .libs 2>/dev/null
8513 mkdir .libs 2>/dev/null
8514 if test -d .libs; then
8517 # MS-DOS does not allow filenames that begin with a dot.
8520 rmdir .libs 2>/dev/null
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8523 $as_echo "$lt_cv_objdir" >&6; }
8524 objdir=$lt_cv_objdir
8530 cat >>confdefs.h <<_ACEOF
8531 #define LT_OBJDIR "$lt_cv_objdir/"
8539 # AIX sometimes has problems with the GCC collect2 program. For some
8540 # reason, if we set the COLLECT_NAMES environment variable, the problems
8541 # vanish in a puff of smoke.
8542 if test "X${COLLECT_NAMES+set}" != Xset; then
8544 export COLLECT_NAMES
8551 can_build_shared=yes
8553 # All known linkers require a `.a' archive for static linking (except MSVC,
8554 # which needs '.lib').
8557 with_gnu_ld="$lt_cv_prog_gnu_ld"
8560 old_CFLAGS="$CFLAGS"
8562 # Set sane defaults for various variables
8563 test -z "$CC" && CC=cc
8564 test -z "$LTCC" && LTCC=$CC
8565 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8566 test -z "$LD" && LD=ld
8567 test -z "$ac_objext" && ac_objext=o
8569 for cc_temp in $compiler""; do
8571 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8572 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8577 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8580 # Only perform the check for file, if the check method requires it
8581 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8582 case $deplibs_check_method in
8584 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8586 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8587 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8588 $as_echo_n "(cached) " >&6
8592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8595 lt_save_MAGIC_CMD="$MAGIC_CMD"
8596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8598 for ac_dir in $ac_dummy; do
8600 test -z "$ac_dir" && ac_dir=.
8601 if test -f $ac_dir/${ac_tool_prefix}file; then
8602 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8603 if test -n "$file_magic_test_file"; then
8604 case $deplibs_check_method in
8606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8609 $EGREP "$file_magic_regex" > /dev/null; then
8614 *** Warning: the command libtool uses to detect shared libraries,
8615 *** $file_magic_cmd, produces output that libtool cannot recognize.
8616 *** The result is that libtool may fail to recognize shared libraries
8617 *** as such. This will affect the creation of libtool libraries that
8618 *** depend on shared libraries, but programs linked with such libtool
8619 *** libraries will work regardless of this problem. Nevertheless, you
8620 *** may want to report the problem to your system manager and/or to
8621 *** bug-libtool@gnu.org
8631 MAGIC_CMD="$lt_save_MAGIC_CMD"
8636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8637 if test -n "$MAGIC_CMD"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8639 $as_echo "$MAGIC_CMD" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8649 if test -z "$lt_cv_path_MAGIC_CMD"; then
8650 if test -n "$ac_tool_prefix"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8652 $as_echo_n "checking for file... " >&6; }
8653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8654 $as_echo_n "(cached) " >&6
8658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8661 lt_save_MAGIC_CMD="$MAGIC_CMD"
8662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8664 for ac_dir in $ac_dummy; do
8666 test -z "$ac_dir" && ac_dir=.
8667 if test -f $ac_dir/file; then
8668 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8669 if test -n "$file_magic_test_file"; then
8670 case $deplibs_check_method in
8672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8675 $EGREP "$file_magic_regex" > /dev/null; then
8680 *** Warning: the command libtool uses to detect shared libraries,
8681 *** $file_magic_cmd, produces output that libtool cannot recognize.
8682 *** The result is that libtool may fail to recognize shared libraries
8683 *** as such. This will affect the creation of libtool libraries that
8684 *** depend on shared libraries, but programs linked with such libtool
8685 *** libraries will work regardless of this problem. Nevertheless, you
8686 *** may want to report the problem to your system manager and/or to
8687 *** bug-libtool@gnu.org
8697 MAGIC_CMD="$lt_save_MAGIC_CMD"
8702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8703 if test -n "$MAGIC_CMD"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8705 $as_echo "$MAGIC_CMD" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8721 # Use C for the default configuration in the libtool script
8725 ac_cpp='$CPP $CPPFLAGS'
8726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8731 # Source file extension for C test sources.
8734 # Object file extension for compiled C test sources.
8738 # Code to be used in simple compile tests
8739 lt_simple_compile_test_code="int some_variable = 0;"
8741 # Code to be used in simple link tests
8742 lt_simple_link_test_code='int main(){return(0);}'
8750 # If no C compiler was specified, use CC.
8753 # If no C compiler flags were specified, use CFLAGS.
8754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8756 # Allow CC to be a program name with arguments.
8759 # Save the default compiler, since it gets overwritten when the other
8760 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8761 compiler_DEFAULT=$CC
8763 # save warnings/boilerplate of simple test code
8764 ac_outfile=conftest.$ac_objext
8765 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8766 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8767 _lt_compiler_boilerplate=`cat conftest.err`
8770 ac_outfile=conftest.$ac_objext
8771 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8772 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8773 _lt_linker_boilerplate=`cat conftest.err`
8778 ## There is no encapsulation within the following macros, do not change
8779 ## the running order or otherwise move them around unless you know exactly
8780 ## what you are doing...
8781 if test -n "$compiler"; then
8783 lt_prog_compiler_no_builtin_flag=
8785 if test "$GCC" = yes; then
8786 case $cc_basename in
8788 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8790 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8794 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8795 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 lt_cv_prog_compiler_rtti_exceptions=no
8799 ac_outfile=conftest.$ac_objext
8800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8801 lt_compiler_flag="-fno-rtti -fno-exceptions"
8802 # Insert the option either (1) after the last *FLAGS variable, or
8803 # (2) before a word containing "conftest.", or (3) at the end.
8804 # Note that $ac_compile itself does not contain backslashes and begins
8805 # with a dollar sign (not a hyphen), so the echo should work correctly.
8806 # The option is referenced via a variable to avoid confusing sed.
8807 lt_compile=`echo "$ac_compile" | $SED \
8808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8810 -e 's:$: $lt_compiler_flag:'`
8811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8812 (eval "$lt_compile" 2>conftest.err)
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 if (exit $ac_status) && test -s "$ac_outfile"; then
8817 # The compiler can only warn and ignore the option if not recognized
8818 # So say no if there are warnings other than the usual output.
8819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8822 lt_cv_prog_compiler_rtti_exceptions=yes
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8829 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8832 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8844 lt_prog_compiler_wl=
8845 lt_prog_compiler_pic=
8846 lt_prog_compiler_static=
8849 if test "$GCC" = yes; then
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_static='-static'
8855 # All AIX code is PIC.
8856 if test "$host_cpu" = ia64; then
8857 # AIX 5 now supports IA64 processor
8858 lt_prog_compiler_static='-Bstatic'
8865 # see comment about AmigaOS4 .so support
8866 lt_prog_compiler_pic='-fPIC'
8869 # FIXME: we need at least 68020 code to build shared libraries, but
8870 # adding the `-m68020' flag to GCC prevents building anything better,
8872 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8877 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8878 # PIC is the default for these OSes.
8881 mingw* | cygwin* | pw32* | os2* | cegcc*)
8882 # This hack is so that the source file can tell whether it is being
8883 # built for inclusion in a dll (and should export symbols for example).
8884 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8885 # (--disable-auto-import) libraries
8886 lt_prog_compiler_pic='-DDLL_EXPORT'
8889 darwin* | rhapsody*)
8890 # PIC is the default on this platform
8891 # Common symbols not allowed in MH_DYLIB files
8892 lt_prog_compiler_pic='-fno-common'
8896 # PIC is the default for Haiku.
8897 # The "-static" flag exists, but is broken.
8898 lt_prog_compiler_static=
8902 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8903 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8904 # sets the default TLS model and affects inlining.
8910 lt_prog_compiler_pic='-fPIC'
8916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8917 # Instead, we relocate shared libraries at runtime.
8921 # Just because we use GCC doesn't mean we suddenly get shared libraries
8922 # on systems that don't support them.
8923 lt_prog_compiler_can_build_shared=no
8928 # QNX uses GNU C++, but need to define -shared option too, otherwise
8930 lt_prog_compiler_pic='-fPIC -shared'
8934 if test -d /usr/nec; then
8935 lt_prog_compiler_pic=-Kconform_pic
8940 lt_prog_compiler_pic='-fPIC'
8944 case $cc_basename in
8945 nvcc*) # Cuda Compiler Driver 2.2
8946 lt_prog_compiler_wl='-Xlinker '
8947 if test -n "$lt_prog_compiler_pic"; then
8948 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8953 # PORTME Check for flag to pass linker flags through the system compiler.
8956 lt_prog_compiler_wl='-Wl,'
8957 if test "$host_cpu" = ia64; then
8958 # AIX 5 now supports IA64 processor
8959 lt_prog_compiler_static='-Bstatic'
8961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8965 mingw* | cygwin* | pw32* | os2* | cegcc*)
8966 # This hack is so that the source file can tell whether it is being
8967 # built for inclusion in a dll (and should export symbols for example).
8968 lt_prog_compiler_pic='-DDLL_EXPORT'
8971 hpux9* | hpux10* | hpux11*)
8972 lt_prog_compiler_wl='-Wl,'
8973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8980 lt_prog_compiler_pic='+Z'
8983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8984 lt_prog_compiler_static='${wl}-a ${wl}archive'
8987 irix5* | irix6* | nonstopux*)
8988 lt_prog_compiler_wl='-Wl,'
8989 # PIC (with -KPIC) is the default.
8990 lt_prog_compiler_static='-non_shared'
8993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8994 case $cc_basename in
8995 # old Intel for x86_64 which still supported -KPIC.
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-KPIC'
8999 lt_prog_compiler_static='-static'
9001 # icc used to be incompatible with GCC.
9002 # ICC 10 doesn't accept -KPIC any more.
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_pic='-fPIC'
9006 lt_prog_compiler_static='-static'
9008 # Lahey Fortran 8.1.
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='--shared'
9012 lt_prog_compiler_static='--static'
9015 # NAG Fortran compiler
9016 lt_prog_compiler_wl='-Wl,-Wl,,'
9017 lt_prog_compiler_pic='-PIC'
9018 lt_prog_compiler_static='-Bstatic'
9020 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9021 # Portland Group compilers (*not* the Pentium gcc compiler,
9022 # which looks to be a dead project)
9023 lt_prog_compiler_wl='-Wl,'
9024 lt_prog_compiler_pic='-fpic'
9025 lt_prog_compiler_static='-Bstatic'
9028 lt_prog_compiler_wl='-Wl,'
9029 # All Alpha code is PIC.
9030 lt_prog_compiler_static='-non_shared'
9032 xl* | bgxl* | bgf* | mpixl*)
9033 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9034 lt_prog_compiler_wl='-Wl,'
9035 lt_prog_compiler_pic='-qpic'
9036 lt_prog_compiler_static='-qstaticlink'
9039 case `$CC -V 2>&1 | sed 5q` in
9040 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9041 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9042 lt_prog_compiler_pic='-KPIC'
9043 lt_prog_compiler_static='-Bstatic'
9044 lt_prog_compiler_wl=''
9046 *Sun\ F* | *Sun*Fortran*)
9047 lt_prog_compiler_pic='-KPIC'
9048 lt_prog_compiler_static='-Bstatic'
9049 lt_prog_compiler_wl='-Qoption ld '
9053 lt_prog_compiler_pic='-KPIC'
9054 lt_prog_compiler_static='-Bstatic'
9055 lt_prog_compiler_wl='-Wl,'
9057 *Intel*\ [CF]*Compiler*)
9058 lt_prog_compiler_wl='-Wl,'
9059 lt_prog_compiler_pic='-fPIC'
9060 lt_prog_compiler_static='-static'
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='-fpic'
9065 lt_prog_compiler_static='-Bstatic'
9073 lt_prog_compiler_pic='-KPIC'
9074 lt_prog_compiler_static='-Bstatic'
9078 # QNX uses GNU C++, but need to define -shared option too, otherwise
9080 lt_prog_compiler_pic='-fPIC -shared'
9083 osf3* | osf4* | osf5*)
9084 lt_prog_compiler_wl='-Wl,'
9085 # All OSF/1 code is PIC.
9086 lt_prog_compiler_static='-non_shared'
9090 lt_prog_compiler_static='-non_shared'
9094 lt_prog_compiler_pic='-KPIC'
9095 lt_prog_compiler_static='-Bstatic'
9096 case $cc_basename in
9097 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9098 lt_prog_compiler_wl='-Qoption ld ';;
9100 lt_prog_compiler_wl='-Wl,';;
9105 lt_prog_compiler_wl='-Qoption ld '
9106 lt_prog_compiler_pic='-PIC'
9107 lt_prog_compiler_static='-Bstatic'
9110 sysv4 | sysv4.2uw2* | sysv4.3*)
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='-KPIC'
9113 lt_prog_compiler_static='-Bstatic'
9117 if test -d /usr/nec ;then
9118 lt_prog_compiler_pic='-Kconform_pic'
9119 lt_prog_compiler_static='-Bstatic'
9123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_pic='-KPIC'
9126 lt_prog_compiler_static='-Bstatic'
9130 lt_prog_compiler_wl='-Wl,'
9131 lt_prog_compiler_can_build_shared=no
9135 lt_prog_compiler_pic='-pic'
9136 lt_prog_compiler_static='-Bstatic'
9140 lt_prog_compiler_can_build_shared=no
9146 # For platforms which do not support PIC, -DPIC is meaningless:
9148 lt_prog_compiler_pic=
9151 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9156 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9157 if ${lt_cv_prog_compiler_pic+:} false; then :
9158 $as_echo_n "(cached) " >&6
9160 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9163 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9164 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9167 # Check to make sure the PIC flag actually works.
9169 if test -n "$lt_prog_compiler_pic"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9171 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9172 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9173 $as_echo_n "(cached) " >&6
9175 lt_cv_prog_compiler_pic_works=no
9176 ac_outfile=conftest.$ac_objext
9177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9178 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9179 # Insert the option either (1) after the last *FLAGS variable, or
9180 # (2) before a word containing "conftest.", or (3) at the end.
9181 # Note that $ac_compile itself does not contain backslashes and begins
9182 # with a dollar sign (not a hyphen), so the echo should work correctly.
9183 # The option is referenced via a variable to avoid confusing sed.
9184 lt_compile=`echo "$ac_compile" | $SED \
9185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9187 -e 's:$: $lt_compiler_flag:'`
9188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9189 (eval "$lt_compile" 2>conftest.err)
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 if (exit $ac_status) && test -s "$ac_outfile"; then
9194 # The compiler can only warn and ignore the option if not recognized
9195 # So say no if there are warnings other than the usual output.
9196 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9199 lt_cv_prog_compiler_pic_works=yes
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9206 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9208 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9209 case $lt_prog_compiler_pic in
9211 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9214 lt_prog_compiler_pic=
9215 lt_prog_compiler_can_build_shared=no
9231 # Check to make sure the static flag actually works.
9233 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9235 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9236 if ${lt_cv_prog_compiler_static_works+:} false; then :
9237 $as_echo_n "(cached) " >&6
9239 lt_cv_prog_compiler_static_works=no
9240 save_LDFLAGS="$LDFLAGS"
9241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9244 # The linker can only warn and ignore the option if not recognized
9245 # So say no if there are warnings
9246 if test -s conftest.err; then
9247 # Append any errors to the config.log.
9248 cat conftest.err 1>&5
9249 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251 if diff conftest.exp conftest.er2 >/dev/null; then
9252 lt_cv_prog_compiler_static_works=yes
9255 lt_cv_prog_compiler_static_works=yes
9259 LDFLAGS="$save_LDFLAGS"
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9263 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9265 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9268 lt_prog_compiler_static=
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9279 if ${lt_cv_prog_compiler_c_o+:} false; then :
9280 $as_echo_n "(cached) " >&6
9282 lt_cv_prog_compiler_c_o=no
9283 $RM -r conftest 2>/dev/null
9287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9289 lt_compiler_flag="-o out/conftest2.$ac_objext"
9290 # Insert the option either (1) after the last *FLAGS variable, or
9291 # (2) before a word containing "conftest.", or (3) at the end.
9292 # Note that $ac_compile itself does not contain backslashes and begins
9293 # with a dollar sign (not a hyphen), so the echo should work correctly.
9294 lt_compile=`echo "$ac_compile" | $SED \
9295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9297 -e 's:$: $lt_compiler_flag:'`
9298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9299 (eval "$lt_compile" 2>out/conftest.err)
9301 cat out/conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9305 # The compiler can only warn and ignore the option if not recognized
9306 # So say no if there are warnings
9307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9310 lt_cv_prog_compiler_c_o=yes
9315 # SGI C++ compiler will create directory out/ii_files/ for
9316 # template instantiation
9317 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9318 $RM out/* && rmdir out
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9325 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9334 if ${lt_cv_prog_compiler_c_o+:} false; then :
9335 $as_echo_n "(cached) " >&6
9337 lt_cv_prog_compiler_c_o=no
9338 $RM -r conftest 2>/dev/null
9342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9344 lt_compiler_flag="-o out/conftest2.$ac_objext"
9345 # Insert the option either (1) after the last *FLAGS variable, or
9346 # (2) before a word containing "conftest.", or (3) at the end.
9347 # Note that $ac_compile itself does not contain backslashes and begins
9348 # with a dollar sign (not a hyphen), so the echo should work correctly.
9349 lt_compile=`echo "$ac_compile" | $SED \
9350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9352 -e 's:$: $lt_compiler_flag:'`
9353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9354 (eval "$lt_compile" 2>out/conftest.err)
9356 cat out/conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9360 # The compiler can only warn and ignore the option if not recognized
9361 # So say no if there are warnings
9362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9365 lt_cv_prog_compiler_c_o=yes
9370 # SGI C++ compiler will create directory out/ii_files/ for
9371 # template instantiation
9372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9373 $RM out/* && rmdir out
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9380 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9385 hard_links="nottested"
9386 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9387 # do not overwrite the value of need_locks provided by the user
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9389 $as_echo_n "checking if we can lock with hard links... " >&6; }
9392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9394 ln conftest.a conftest.b 2>&5 || hard_links=no
9395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9397 $as_echo "$hard_links" >&6; }
9398 if test "$hard_links" = no; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9413 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9416 allow_undefined_flag=
9417 always_export_symbols=no
9419 archive_expsym_cmds=
9420 compiler_needs_object=no
9421 enable_shared_with_static_runtimes=no
9422 export_dynamic_flag_spec=
9423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9424 hardcode_automatic=no
9426 hardcode_direct_absolute=no
9427 hardcode_libdir_flag_spec=
9428 hardcode_libdir_separator=
9430 hardcode_shlibpath_var=unsupported
9432 link_all_deplibs=unknown
9435 old_archive_from_new_cmds=
9436 old_archive_from_expsyms_cmds=
9437 thread_safe_flag_spec=
9438 whole_archive_flag_spec=
9439 # include_expsyms should be a list of space-separated symbols to be *always*
9440 # included in the symbol list
9442 # exclude_expsyms can be an extended regexp of symbols to exclude
9443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9445 # as well as any symbol that contains `d'.
9446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9448 # platforms (ab)use it in PIC code, but their linkers get confused if
9449 # the symbol is explicitly referenced. Since portable code cannot
9450 # rely on this symbol name, it's probably fine to never include it in
9451 # preloaded symbol tables.
9452 # Exclude shared library initialization/finalization symbols.
9453 extract_expsyms_cmds=
9456 cygwin* | mingw* | pw32* | cegcc*)
9457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9458 # When not using gcc, we currently assume that we are using
9459 # Microsoft Visual C++.
9460 if test "$GCC" != yes; then
9465 # we just hope/assume this is gcc and not c89 (= MSVC++)
9475 # On some targets, GNU ld is compatible enough with the native linker
9476 # that we're better off using the native interface for both.
9477 lt_use_gnu_ld_interface=no
9478 if test "$with_gnu_ld" = yes; then
9481 # The AIX port of GNU ld has always aspired to compatibility
9482 # with the native linker. However, as the warning in the GNU ld
9483 # block says, versions before 2.19.5* couldn't really create working
9484 # shared libraries, regardless of the interface used.
9485 case `$LD -v 2>&1` in
9486 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9487 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9488 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9490 lt_use_gnu_ld_interface=yes
9495 lt_use_gnu_ld_interface=yes
9500 if test "$lt_use_gnu_ld_interface" = yes; then
9501 # If archive_cmds runs LD, not CC, wlarc should be empty
9504 # Set some defaults for GNU ld with shared library support. These
9505 # are reset later if shared libraries are not supported. Putting them
9506 # here allows them to be overridden if necessary.
9507 runpath_var=LD_RUN_PATH
9508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9509 export_dynamic_flag_spec='${wl}--export-dynamic'
9510 # ancient GNU ld didn't support --whole-archive et. al.
9511 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9512 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9514 whole_archive_flag_spec=
9516 supports_anon_versioning=no
9517 case `$LD -v 2>&1` in
9518 *GNU\ gold*) supports_anon_versioning=yes ;;
9519 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9522 *\ 2.11.*) ;; # other 2.11 versions
9523 *) supports_anon_versioning=yes ;;
9526 # See if GNU ld supports shared libraries.
9529 # On AIX/PPC, the GNU linker is very broken
9530 if test "$host_cpu" != ia64; then
9534 *** Warning: the GNU linker, at least up to release 2.19, is reported
9535 *** to be unable to reliably create shared libraries on AIX.
9536 *** Therefore, libtool is disabling shared libraries support. If you
9537 *** really care for shared libraries, you may want to install binutils
9538 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9539 *** You will then need to restart the configuration process.
9548 # see comment about AmigaOS4 .so support
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds=''
9553 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)'
9554 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_minus_L=yes
9561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9562 allow_undefined_flag=unsupported
9563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9564 # support --undefined. This deserves some investigation. FIXME
9565 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 cygwin* | mingw* | pw32* | cegcc*)
9572 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9573 # as there is no search path for DLLs.
9574 hardcode_libdir_flag_spec='-L$libdir'
9575 export_dynamic_flag_spec='${wl}--export-all-symbols'
9576 allow_undefined_flag=unsupported
9577 always_export_symbols=no
9578 enable_shared_with_static_runtimes=yes
9579 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'
9580 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9582 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9584 # If the export-symbols file already is a .def file (1st line
9585 # is EXPORTS), use it as is; otherwise, prepend...
9586 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9587 cp $export_symbols $output_objdir/$soname.def;
9589 echo EXPORTS > $output_objdir/$soname.def;
9590 cat $export_symbols >> $output_objdir/$soname.def;
9592 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600 link_all_deplibs=yes
9605 hardcode_shlibpath_var=no
9606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9607 export_dynamic_flag_spec='${wl}-E'
9608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9609 # Instead, shared libraries are loaded at an image base (0x10000000 by
9610 # default) and relocated if they conflict, which is a slow very memory
9611 # consuming and fragmenting process. To avoid this, we pick a random,
9612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9615 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'
9618 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9620 if test "$host_os" = linux-dietlibc; then
9621 case $cc_basename in
9622 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9625 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9626 && test "$tmp_diet" = no
9628 tmp_addflag=' $pic_flag'
9629 tmp_sharedflag='-shared'
9630 case $cc_basename,$host_cpu in
9631 pgcc*) # Portland Group C compiler
9632 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'
9633 tmp_addflag=' $pic_flag'
9635 pgf77* | pgf90* | pgf95* | pgfortran*)
9636 # Portland Group f77 and f90 compilers
9637 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'
9638 tmp_addflag=' $pic_flag -Mnomain' ;;
9639 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9640 tmp_addflag=' -i_dynamic' ;;
9641 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9642 tmp_addflag=' -i_dynamic -nofor_main' ;;
9643 ifc* | ifort*) # Intel Fortran compiler
9644 tmp_addflag=' -nofor_main' ;;
9645 lf95*) # Lahey Fortran 8.1
9646 whole_archive_flag_spec=
9647 tmp_sharedflag='--shared' ;;
9648 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9649 tmp_sharedflag='-qmkshrobj'
9651 nvcc*) # Cuda Compiler Driver 2.2
9652 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'
9653 compiler_needs_object=yes
9656 case `$CC -V 2>&1 | sed 5q` in
9657 *Sun\ C*) # Sun C 5.9
9658 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'
9659 compiler_needs_object=yes
9660 tmp_sharedflag='-G' ;;
9661 *Sun\ F*) # Sun Fortran 8.3
9662 tmp_sharedflag='-G' ;;
9664 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666 if test "x$supports_anon_versioning" = xyes; then
9667 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9669 echo "local: *; };" >> $output_objdir/$libname.ver~
9670 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9673 case $cc_basename in
9674 xlf* | bgf* | bgxlf* | mpixlf*)
9675 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9676 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9679 if test "x$supports_anon_versioning" = xyes; then
9680 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9682 echo "local: *; };" >> $output_objdir/$libname.ver~
9683 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9694 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9697 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9698 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9703 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9707 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9708 *** create shared libraries on Solaris systems. Therefore, libtool
9709 *** is disabling shared libraries support. We urge you to upgrade GNU
9710 *** binutils to release 2.9.1 or newer. Another option is to modify
9711 *** your PATH or compiler configuration so that the native linker is
9712 *** used, and then restart.
9715 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9717 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9724 case `$LD -v 2>&1` in
9725 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9729 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9730 *** reliably create shared libraries on SCO systems. Therefore, libtool
9731 *** is disabling shared libraries support. We urge you to upgrade GNU
9732 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9733 *** your PATH or compiler configuration so that the native linker is
9734 *** used, and then restart.
9739 # For security reasons, it is highly recommended that you always
9740 # use absolute paths for naming shared libraries, and exclude the
9741 # DT_RUNPATH tag from executables and libraries. But doing so
9742 # requires that you compile everything twice, which is a pain.
9743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9755 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9758 hardcode_shlibpath_var=no
9762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9763 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9771 if test "$ld_shlibs" = no; then
9773 hardcode_libdir_flag_spec=
9774 export_dynamic_flag_spec=
9775 whole_archive_flag_spec=
9778 # PORTME fill in a description of your system's linker (not GNU ld)
9781 allow_undefined_flag=unsupported
9782 always_export_symbols=yes
9783 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'
9784 # Note: this linker hardcodes the directories in LIBPATH if there
9785 # are no directories specified by -L.
9786 hardcode_minus_L=yes
9787 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9788 # Neither direct hardcoding nor static linking is supported with a
9790 hardcode_direct=unsupported
9795 if test "$host_cpu" = ia64; then
9796 # On IA64, the linker does run time linking by default, so we don't
9797 # have to do anything special.
9798 aix_use_runtimelinking=no
9799 exp_sym_flag='-Bexport'
9802 # If we're using GNU nm, then we don't want the "-C" option.
9803 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9804 # Also, AIX nm treats weak defined symbols like other global
9805 # defined symbols, whereas GNU nm marks them as "W".
9806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9807 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9809 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9811 aix_use_runtimelinking=no
9813 # Test if we are trying to use run time linking or normal
9814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9815 # need to do runtime linking.
9816 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9817 for ld_flag in $LDFLAGS; do
9818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9819 aix_use_runtimelinking=yes
9826 exp_sym_flag='-bexport'
9827 no_entry_flag='-bnoentry'
9830 # When large executables or shared objects are built, AIX ld can
9831 # have problems creating the table of contents. If linking a library
9832 # or program results in "error TOC overflow" add -mminimal-toc to
9833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9838 hardcode_direct_absolute=yes
9839 hardcode_libdir_separator=':'
9840 link_all_deplibs=yes
9841 file_list_spec='${wl}-f,'
9843 if test "$GCC" = yes; then
9844 case $host_os in aix4.[012]|aix4.[012].*)
9845 # We only want to do this on AIX 4.2 and lower, the check
9846 # below for broken collect2 doesn't work under 4.3+
9847 collect2name=`${CC} -print-prog-name=collect2`
9848 if test -f "$collect2name" &&
9849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9851 # We have reworked collect2
9854 # We have old collect2
9855 hardcode_direct=unsupported
9856 # It fails to find uninstalled libraries when the uninstalled
9857 # path is not listed in the libpath. Setting hardcode_minus_L
9858 # to unsupported forces relinking
9859 hardcode_minus_L=yes
9860 hardcode_libdir_flag_spec='-L$libdir'
9861 hardcode_libdir_separator=
9865 shared_flag='-shared'
9866 if test "$aix_use_runtimelinking" = yes; then
9867 shared_flag="$shared_flag "'${wl}-G'
9871 if test "$host_cpu" = ia64; then
9872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9873 # chokes on -Wl,-G. The following line is correct:
9876 if test "$aix_use_runtimelinking" = yes; then
9877 shared_flag='${wl}-G'
9879 shared_flag='${wl}-bM:SRE'
9884 export_dynamic_flag_spec='${wl}-bexpall'
9885 # It seems that -bexpall does not export symbols beginning with
9886 # underscore (_), so it is better to generate a list of symbols to export.
9887 always_export_symbols=yes
9888 if test "$aix_use_runtimelinking" = yes; then
9889 # Warning - without using the other runtime loading flags (-brtl),
9890 # -berok will link without error, but may produce a broken library.
9891 allow_undefined_flag='-berok'
9892 # Determine the default libpath from the value encoded in an
9894 if test "${lt_cv_aix_libpath+set}" = set; then
9895 aix_libpath=$lt_cv_aix_libpath
9897 if ${lt_cv_aix_libpath_+:} false; then :
9898 $as_echo_n "(cached) " >&6
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9911 if ac_fn_c_try_link "$LINENO"; then :
9913 lt_aix_libpath_sed='
9914 /Import File Strings/,/^$/ {
9916 s/^0 *\([^ ]*\) *$/\1/
9920 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9921 # Check for a 64-bit object if we didn't find anything.
9922 if test -z "$lt_cv_aix_libpath_"; then
9923 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9926 rm -f core conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
9928 if test -z "$lt_cv_aix_libpath_"; then
9929 lt_cv_aix_libpath_="/usr/lib:/lib"
9934 aix_libpath=$lt_cv_aix_libpath_
9937 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9938 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9940 if test "$host_cpu" = ia64; then
9941 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9942 allow_undefined_flag="-z nodefs"
9943 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"
9945 # Determine the default libpath from the value encoded in an
9947 if test "${lt_cv_aix_libpath+set}" = set; then
9948 aix_libpath=$lt_cv_aix_libpath
9950 if ${lt_cv_aix_libpath_+:} false; then :
9951 $as_echo_n "(cached) " >&6
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9964 if ac_fn_c_try_link "$LINENO"; then :
9966 lt_aix_libpath_sed='
9967 /Import File Strings/,/^$/ {
9969 s/^0 *\([^ ]*\) *$/\1/
9973 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9974 # Check for a 64-bit object if we didn't find anything.
9975 if test -z "$lt_cv_aix_libpath_"; then
9976 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 if test -z "$lt_cv_aix_libpath_"; then
9982 lt_cv_aix_libpath_="/usr/lib:/lib"
9987 aix_libpath=$lt_cv_aix_libpath_
9990 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9991 # Warning - without using the other run time loading flags,
9992 # -berok will link without error, but may produce a broken library.
9993 no_undefined_flag=' ${wl}-bernotok'
9994 allow_undefined_flag=' ${wl}-berok'
9995 if test "$with_gnu_ld" = yes; then
9996 # We only use this code for GNU lds that support --whole-archive.
9997 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9999 # Exported symbols can be pulled into shared objects from archives
10000 whole_archive_flag_spec='$convenience'
10002 archive_cmds_need_lc=yes
10003 # This is similar to how AIX traditionally builds its shared libraries.
10004 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10012 # see comment about AmigaOS4 .so support
10013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10014 archive_expsym_cmds=''
10017 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)'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_minus_L=yes
10025 export_dynamic_flag_spec=-rdynamic
10028 cygwin* | mingw* | pw32* | cegcc*)
10029 # When not using gcc, we currently assume that we are using
10030 # Microsoft Visual C++.
10031 # hardcode_libdir_flag_spec is actually meaningless, as there is
10032 # no search path for DLLs.
10033 case $cc_basename in
10036 hardcode_libdir_flag_spec=' '
10037 allow_undefined_flag=unsupported
10038 always_export_symbols=yes
10040 # Tell ltmain to make .lib files, not .a files.
10042 # Tell ltmain to make .dll files, not .so files.
10044 # FIXME: Setting linknames here is a bad hack.
10045 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10046 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10047 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10049 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10051 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10053 # The linker will not automatically build a static lib if we build a DLL.
10054 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10055 enable_shared_with_static_runtimes=yes
10056 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10059 old_postinstall_cmds='chmod 644 $oldlib'
10060 postlink_cmds='lt_outputfile="@OUTPUT@"~
10061 lt_tool_outputfile="@TOOL_OUTPUT@"~
10062 case $lt_outputfile in
10065 lt_outputfile="$lt_outputfile.exe"
10066 lt_tool_outputfile="$lt_tool_outputfile.exe"
10069 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10070 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10071 $RM "$lt_outputfile.manifest";
10075 # Assume MSVC wrapper
10076 hardcode_libdir_flag_spec=' '
10077 allow_undefined_flag=unsupported
10078 # Tell ltmain to make .lib files, not .a files.
10080 # Tell ltmain to make .dll files, not .so files.
10082 # FIXME: Setting linknames here is a bad hack.
10083 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10084 # The linker will automatically build a .lib file if we build a DLL.
10085 old_archive_from_new_cmds='true'
10086 # FIXME: Should let the user specify the lib program.
10087 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10088 enable_shared_with_static_runtimes=yes
10093 darwin* | rhapsody*)
10096 archive_cmds_need_lc=no
10098 hardcode_automatic=yes
10099 hardcode_shlibpath_var=unsupported
10100 if test "$lt_cv_ld_force_load" = "yes"; then
10101 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\"`'
10104 whole_archive_flag_spec=''
10106 link_all_deplibs=yes
10107 allow_undefined_flag="$_lt_dar_allow_undefined"
10108 case $cc_basename in
10109 ifort*) _lt_dar_can_shared=yes ;;
10110 *) _lt_dar_can_shared=$GCC ;;
10112 if test "$_lt_dar_can_shared" = "yes"; then
10113 output_verbose_link_cmd=func_echo_all
10114 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10115 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10116 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}"
10117 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}"
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 hardcode_shlibpath_var=no
10131 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10132 # support. Future versions do this automatically, but an explicit c++rt0.o
10133 # does not break anything, and helps significantly (at the cost of a little
10136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10137 hardcode_libdir_flag_spec='-R$libdir'
10138 hardcode_direct=yes
10139 hardcode_shlibpath_var=no
10142 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_direct=yes
10146 hardcode_minus_L=yes
10147 hardcode_shlibpath_var=no
10150 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10151 freebsd* | dragonfly*)
10152 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10153 hardcode_libdir_flag_spec='-R$libdir'
10154 hardcode_direct=yes
10155 hardcode_shlibpath_var=no
10159 if test "$GCC" = yes; then
10160 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10162 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10165 hardcode_libdir_separator=:
10166 hardcode_direct=yes
10168 # hardcode_minus_L: Not really in the search PATH,
10169 # but as the default location of the library.
10170 hardcode_minus_L=yes
10171 export_dynamic_flag_spec='${wl}-E'
10175 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10176 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10180 if test "$with_gnu_ld" = no; then
10181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10182 hardcode_libdir_separator=:
10183 hardcode_direct=yes
10184 hardcode_direct_absolute=yes
10185 export_dynamic_flag_spec='${wl}-E'
10186 # hardcode_minus_L: Not really in the search PATH,
10187 # but as the default location of the library.
10188 hardcode_minus_L=yes
10193 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10196 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10202 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10208 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10211 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10215 # Older versions of the 11.00 compiler do not understand -b yet
10216 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10218 $as_echo_n "checking if $CC understands -b... " >&6; }
10219 if ${lt_cv_prog_compiler__b+:} false; then :
10220 $as_echo_n "(cached) " >&6
10222 lt_cv_prog_compiler__b=no
10223 save_LDFLAGS="$LDFLAGS"
10224 LDFLAGS="$LDFLAGS -b"
10225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10227 # The linker can only warn and ignore the option if not recognized
10228 # So say no if there are warnings
10229 if test -s conftest.err; then
10230 # Append any errors to the config.log.
10231 cat conftest.err 1>&5
10232 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10234 if diff conftest.exp conftest.er2 >/dev/null; then
10235 lt_cv_prog_compiler__b=yes
10238 lt_cv_prog_compiler__b=yes
10242 LDFLAGS="$save_LDFLAGS"
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10246 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10248 if test x"$lt_cv_prog_compiler__b" = xyes; then
10249 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10257 if test "$with_gnu_ld" = no; then
10258 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10259 hardcode_libdir_separator=:
10264 hardcode_shlibpath_var=no
10267 hardcode_direct=yes
10268 hardcode_direct_absolute=yes
10269 export_dynamic_flag_spec='${wl}-E'
10271 # hardcode_minus_L: Not really in the search PATH,
10272 # but as the default location of the library.
10273 hardcode_minus_L=yes
10279 irix5* | irix6* | nonstopux*)
10280 if test "$GCC" = yes; then
10281 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'
10282 # Try to use the -exported_symbol ld option, if it does not
10283 # work, assume that -exports_file does not work either and
10284 # implicitly export all symbols.
10285 # This should be the same for all languages, so no per-tag cache variable.
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10287 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10288 if ${lt_cv_irix_exported_symbol+:} false; then :
10289 $as_echo_n "(cached) " >&6
10291 save_LDFLAGS="$LDFLAGS"
10292 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10295 int foo (void) { return 0; }
10297 if ac_fn_c_try_link "$LINENO"; then :
10298 lt_cv_irix_exported_symbol=yes
10300 lt_cv_irix_exported_symbol=no
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304 LDFLAGS="$save_LDFLAGS"
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10307 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10308 if test "$lt_cv_irix_exported_symbol" = yes; then
10309 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'
10312 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'
10313 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'
10315 archive_cmds_need_lc='no'
10316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10317 hardcode_libdir_separator=:
10319 link_all_deplibs=yes
10323 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10326 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10328 hardcode_libdir_flag_spec='-R$libdir'
10329 hardcode_direct=yes
10330 hardcode_shlibpath_var=no
10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_direct=yes
10336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10337 hardcode_libdir_separator=:
10338 hardcode_shlibpath_var=no
10345 if test -f /usr/libexec/ld.so; then
10346 hardcode_direct=yes
10347 hardcode_shlibpath_var=no
10348 hardcode_direct_absolute=yes
10349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10351 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10353 export_dynamic_flag_spec='${wl}-E'
10356 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10358 hardcode_libdir_flag_spec='-R$libdir'
10361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10372 hardcode_libdir_flag_spec='-L$libdir'
10373 hardcode_minus_L=yes
10374 allow_undefined_flag=unsupported
10375 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10376 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10380 if test "$GCC" = yes; then
10381 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10382 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'
10384 allow_undefined_flag=' -expect_unresolved \*'
10385 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'
10387 archive_cmds_need_lc='no'
10388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10389 hardcode_libdir_separator=:
10392 osf4* | osf5*) # as osf3* with the addition of -msym flag
10393 if test "$GCC" = yes; then
10394 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10395 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'
10396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10398 allow_undefined_flag=' -expect_unresolved \*'
10399 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'
10400 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~
10401 $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'
10403 # Both c and cxx compiler support -rpath directly
10404 hardcode_libdir_flag_spec='-rpath $libdir'
10406 archive_cmds_need_lc='no'
10407 hardcode_libdir_separator=:
10411 no_undefined_flag=' -z defs'
10412 if test "$GCC" = yes; then
10414 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10415 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10416 $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'
10418 case `$CC -V 2>&1` in
10421 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10422 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10423 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10427 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10429 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10433 hardcode_libdir_flag_spec='-R$libdir'
10434 hardcode_shlibpath_var=no
10436 solaris2.[0-5] | solaris2.[0-5].*) ;;
10438 # The compiler driver will combine and reorder linker options,
10439 # but understands `-z linker_flag'. GCC discards it without `$wl',
10440 # but is careful enough not to reorder.
10441 # Supported since Solaris 2.6 (maybe 2.5.1?)
10442 if test "$GCC" = yes; then
10443 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10445 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10449 link_all_deplibs=yes
10453 if test "x$host_vendor" = xsequent; then
10454 # Use $CC to link under sequent, because it throws in some extra .o
10455 # files that make .init and .fini sections work.
10456 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_libdir_flag_spec='-L$libdir'
10461 hardcode_direct=yes
10462 hardcode_minus_L=yes
10463 hardcode_shlibpath_var=no
10467 case $host_vendor in
10469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470 hardcode_direct=yes # is this really true???
10473 ## LD is ld it makes a PLAMLIB
10474 ## CC just makes a GrossModule.
10475 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10476 reload_cmds='$CC -r -o $output$reload_objs'
10480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10484 runpath_var='LD_RUN_PATH'
10485 hardcode_shlibpath_var=no
10489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490 hardcode_shlibpath_var=no
10491 export_dynamic_flag_spec='-Bexport'
10495 if test -d /usr/nec; then
10496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10497 hardcode_shlibpath_var=no
10498 runpath_var=LD_RUN_PATH
10499 hardcode_runpath_var=yes
10504 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10505 no_undefined_flag='${wl}-z,text'
10506 archive_cmds_need_lc=no
10507 hardcode_shlibpath_var=no
10508 runpath_var='LD_RUN_PATH'
10510 if test "$GCC" = yes; then
10511 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519 sysv5* | sco3.2v5* | sco5v6*)
10520 # Note: We can NOT use -z defs as we might desire, because we do not
10521 # link with -lc, and that would cause any symbols used from libc to
10522 # always be unresolved, which means just about no library would
10523 # ever link correctly. If we're not using GNU ld we use -z text
10524 # though, which does catch some bad symbols but isn't as heavy-handed
10526 no_undefined_flag='${wl}-z,text'
10527 allow_undefined_flag='${wl}-z,nodefs'
10528 archive_cmds_need_lc=no
10529 hardcode_shlibpath_var=no
10530 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10531 hardcode_libdir_separator=':'
10532 link_all_deplibs=yes
10533 export_dynamic_flag_spec='${wl}-Bexport'
10534 runpath_var='LD_RUN_PATH'
10536 if test "$GCC" = yes; then
10537 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10538 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10540 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547 hardcode_libdir_flag_spec='-L$libdir'
10548 hardcode_shlibpath_var=no
10556 if test x$host_vendor = xsni; then
10558 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10559 export_dynamic_flag_spec='${wl}-Blargedynsym'
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10566 $as_echo "$ld_shlibs" >&6; }
10567 test "$ld_shlibs" = no && can_build_shared=no
10569 with_gnu_ld=$with_gnu_ld
10586 # Do we need to explicitly link libc?
10588 case "x$archive_cmds_need_lc" in
10590 # Assume -lc should be added
10591 archive_cmds_need_lc=yes
10593 if test "$enable_shared" = yes && test "$GCC" = yes; then
10594 case $archive_cmds in
10596 # FIXME: we may have to deal with multi-command sequences.
10599 # Test whether the compiler implicitly links with -lc since on some
10600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10601 # to ld, don't add -lc before -lgcc.
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10603 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10604 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10605 $as_echo_n "(cached) " >&6
10608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10611 (eval $ac_compile) 2>&5
10613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10614 test $ac_status = 0; } 2>conftest.err; then
10617 libobjs=conftest.$ac_objext
10619 wl=$lt_prog_compiler_wl
10620 pic_flag=$lt_prog_compiler_pic
10626 lt_save_allow_undefined_flag=$allow_undefined_flag
10627 allow_undefined_flag=
10628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10629 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10632 test $ac_status = 0; }
10634 lt_cv_archive_cmds_need_lc=no
10636 lt_cv_archive_cmds_need_lc=yes
10638 allow_undefined_flag=$lt_save_allow_undefined_flag
10640 cat conftest.err 1>&5
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10646 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10647 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10806 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10808 if test "$GCC" = yes; then
10810 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10811 *) lt_awk_arg="/^libraries:/" ;;
10814 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10815 *) lt_sed_strip_eq="s,=/,/,g" ;;
10817 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10818 case $lt_search_path_spec in
10820 # if the path contains ";" then we assume it to be the separator
10821 # otherwise default to the standard path separator (i.e. ":") - it is
10822 # assumed that no part of a normal pathname contains ";" but that should
10823 # okay in the real world where ";" in dirpaths is itself problematic.
10824 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10827 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10830 # Ok, now we have the path, separated by spaces, we can step through it
10831 # and add multilib dir if necessary.
10832 lt_tmp_lt_search_path_spec=
10833 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10834 for lt_sys_path in $lt_search_path_spec; do
10835 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10836 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10838 test -d "$lt_sys_path" && \
10839 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10842 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10843 BEGIN {RS=" "; FS="/|\n";} {
10846 for (lt_i = NF; lt_i > 0; lt_i--) {
10847 if ($lt_i != "" && $lt_i != ".") {
10848 if ($lt_i == "..") {
10851 if (lt_count == 0) {
10852 lt_foo="/" $lt_i lt_foo;
10859 if (lt_foo != "") { lt_freq[lt_foo]++; }
10860 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10862 # AWK program above erroneously prepends '/' to C:/dos/paths
10865 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10866 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10868 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10872 library_names_spec=
10873 libname_spec='lib$name'
10877 postuninstall_cmds=
10881 shlibpath_overrides_runpath=unknown
10883 dynamic_linker="$host_os ld.so"
10884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10885 need_lib_prefix=unknown
10886 hardcode_into_libs=no
10888 # when you set need_version to no, make sure it does not cause -set_version
10889 # flags to be left without arguments
10890 need_version=unknown
10894 version_type=linux # correct to gnu/linux during the next big refactor
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10896 shlibpath_var=LIBPATH
10898 # AIX 3 has no versioning support, so we append a major version to the name.
10899 soname_spec='${libname}${release}${shared_ext}$major'
10903 version_type=linux # correct to gnu/linux during the next big refactor
10906 hardcode_into_libs=yes
10907 if test "$host_cpu" = ia64; then
10908 # AIX 5 supports IA64
10909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10910 shlibpath_var=LD_LIBRARY_PATH
10912 # With GCC up to 2.95.x, collect2 would create an import file
10913 # for dependence libraries. The import file would start with
10914 # the line `#! .'. This would cause the generated library to
10915 # depend on `.', always an invalid library. This was fixed in
10916 # development snapshots of GCC prior to 3.0.
10918 aix4 | aix4.[01] | aix4.[01].*)
10919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10921 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10924 can_build_shared=no
10928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10929 # soname into executable. Probably we can add versioning support to
10930 # collect2, so additional links can be useful in future.
10931 if test "$aix_use_runtimelinking" = yes; then
10932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10933 # instead of lib<name>.a to let people know that these are not
10934 # typical AIX shared libraries.
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 # We preserve .a as extension for shared libraries through AIX4.2
10938 # and later when we are not doing run time linking.
10939 library_names_spec='${libname}${release}.a $libname.a'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10942 shlibpath_var=LIBPATH
10949 # Since July 2007 AmigaOS4 officially supports .so libraries.
10950 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 library_names_spec='$libname.ixlibrary $libname.a'
10955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10956 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10962 library_names_spec='${libname}${shared_ext}'
10963 dynamic_linker="$host_os ld.so"
10964 shlibpath_var=LIBRARY_PATH
10968 version_type=linux # correct to gnu/linux during the next big refactor
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10975 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10976 # the default ld.so.conf also contains /usr/contrib/lib and
10977 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10978 # libtool to hard-code these into programs
10981 cygwin* | mingw* | pw32* | cegcc*)
10982 version_type=windows
10987 case $GCC,$cc_basename in
10990 library_names_spec='$libname.dll.a'
10991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10992 postinstall_cmds='base_file=`basename \${file}`~
10993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10994 dldir=$destdir/`dirname \$dlpath`~
10995 test -d \$dldir || mkdir -p \$dldir~
10996 $install_prog $dir/$dlname \$dldir/$dlname~
10997 chmod a+x \$dldir/$dlname~
10998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10999 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11002 dlpath=$dir/\$dldll~
11004 shlibpath_overrides_runpath=yes
11008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11014 # MinGW DLLs use traditional 'lib' prefix
11015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11018 # pw32 DLLs use 'pw' prefix rather than 'lib'
11019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11022 dynamic_linker='Win32 ld.exe'
11027 libname_spec='$name'
11028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11029 library_names_spec='${libname}.dll.lib'
11033 sys_lib_search_path_spec=
11036 for lt_path in $LIB
11039 # Let DOS variable expansion print the short 8.3 style file name.
11040 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11041 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11044 # Convert to MSYS style.
11045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11048 # Convert to unix form, then to dos form, then back to unix form
11049 # but this time dos style (no spaces!) so that the unix form looks
11050 # like /cygdrive/c/PROGRA~1:/cygdr...
11051 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11052 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11053 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11056 sys_lib_search_path_spec="$LIB"
11057 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11058 # It is most probably a Windows format PATH.
11059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11063 # FIXME: find the short name or the path components, as spaces are
11064 # common. (e.g. "Program Files" -> "PROGRA~1")
11068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11069 postinstall_cmds='base_file=`basename \${file}`~
11070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11071 dldir=$destdir/`dirname \$dlpath`~
11072 test -d \$dldir || mkdir -p \$dldir~
11073 $install_prog $dir/$dlname \$dldir/$dlname'
11074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11075 dlpath=$dir/\$dldll~
11077 shlibpath_overrides_runpath=yes
11078 dynamic_linker='Win32 link.exe'
11082 # Assume MSVC wrapper
11083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11084 dynamic_linker='Win32 ld.exe'
11087 # FIXME: first we should search . and the directory the executable is in
11091 darwin* | rhapsody*)
11092 dynamic_linker="$host_os dyld"
11093 version_type=darwin
11096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11097 soname_spec='${libname}${release}${major}$shared_ext'
11098 shlibpath_overrides_runpath=yes
11099 shlibpath_var=DYLD_LIBRARY_PATH
11100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11107 version_type=linux # correct to gnu/linux during the next big refactor
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11115 freebsd* | dragonfly*)
11116 # DragonFly does not have aout. When/if they implement a new
11117 # versioning mechanism, adjust this.
11118 if test -x /usr/bin/objformat; then
11119 objformat=`/usr/bin/objformat`
11122 freebsd[23].*) objformat=aout ;;
11123 *) objformat=elf ;;
11126 version_type=freebsd-$objformat
11127 case $version_type in
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11138 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=yes
11143 freebsd3.[01]* | freebsdelf3.[01]*)
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11147 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11148 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11149 shlibpath_overrides_runpath=no
11150 hardcode_into_libs=yes
11152 *) # from 4.6 on, and DragonFly
11153 shlibpath_overrides_runpath=yes
11154 hardcode_into_libs=yes
11160 version_type=linux # correct to gnu/linux during the next big refactor
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=no
11167 hardcode_into_libs=yes
11171 version_type=linux # correct to gnu/linux during the next big refactor
11174 dynamic_linker="$host_os runtime_loader"
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11180 hardcode_into_libs=yes
11183 hpux9* | hpux10* | hpux11*)
11184 # Give a soname corresponding to the major version so that dld.sl refuses to
11185 # link against other versions.
11192 hardcode_into_libs=yes
11193 dynamic_linker="$host_os dld.so"
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 if test "X$HPUX_IA64_MODE" = X32; then
11199 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11201 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11207 hardcode_into_libs=yes
11208 dynamic_linker="$host_os dld.sl"
11209 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11218 dynamic_linker="$host_os dld.sl"
11219 shlibpath_var=SHLIB_PATH
11220 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11225 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11226 postinstall_cmds='chmod 555 $lib'
11227 # or fails outright, so override atomically:
11228 install_override_mode=555
11232 version_type=linux # correct to gnu/linux during the next big refactor
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 shlibpath_overrides_runpath=no
11240 hardcode_into_libs=yes
11243 irix5* | irix6* | nonstopux*)
11245 nonstopux*) version_type=nonstopux ;;
11247 if test "$lt_cv_prog_gnu_ld" = yes; then
11248 version_type=linux # correct to gnu/linux during the next big refactor
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11258 irix5* | nonstopux*)
11259 libsuff= shlibsuff=
11262 case $LD in # libtool.m4 will add one of these switches to LD
11263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11264 libsuff= shlibsuff= libmagic=32-bit;;
11265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11266 libsuff=32 shlibsuff=N32 libmagic=N32;;
11267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11269 *) libsuff= shlibsuff= libmagic=never-match;;
11273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11274 shlibpath_overrides_runpath=no
11275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11277 hardcode_into_libs=yes
11280 # No shared lib support for Linux oldld, aout, or coff.
11281 linux*oldld* | linux*aout* | linux*coff*)
11285 # This must be glibc/ELF.
11286 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11287 version_type=linux # correct to gnu/linux during the next big refactor
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=no
11296 # Some binutils ld are patched to set DT_RUNPATH
11297 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11298 $as_echo_n "(cached) " >&6
11300 lt_cv_shlibpath_overrides_runpath=no
11301 save_LDFLAGS=$LDFLAGS
11302 save_libdir=$libdir
11303 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11304 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11318 lt_cv_shlibpath_overrides_runpath=yes
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11323 LDFLAGS=$save_LDFLAGS
11324 libdir=$save_libdir
11328 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11330 # This implies no fast_install, which is unacceptable.
11331 # Some rework will be needed to allow for fast_install
11332 # before this can be enabled.
11333 hardcode_into_libs=yes
11335 # Append ld.so.conf contents to the search path
11336 if test -f /etc/ld.so.conf; then
11337 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' ' '`
11338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11341 # We used to test for /lib/ld.so.1 and disable shared libraries on
11342 # powerpc, because MkLinux only supported shared libraries with the
11343 # GNU dynamic linker. Since this was broken with cross compilers,
11344 # most powerpc-linux boxes support dynamic linking these days and
11345 # people can always --disable-shared, the test was removed, and we
11346 # assume the GNU/Linux dynamic linker is in use.
11347 dynamic_linker='GNU/Linux ld.so'
11354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11357 dynamic_linker='NetBSD (a.out) ld.so'
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 dynamic_linker='NetBSD ld.elf_so'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=yes
11365 hardcode_into_libs=yes
11369 version_type=linux # correct to gnu/linux during the next big refactor
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath=yes
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 shlibpath_overrides_runpath=no
11383 hardcode_into_libs=yes
11384 dynamic_linker='ldqnx.so'
11389 sys_lib_dlsearch_path_spec="/usr/lib"
11391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11394 *) need_version=no ;;
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11401 openbsd2.[89] | openbsd2.[89].*)
11402 shlibpath_overrides_runpath=no
11405 shlibpath_overrides_runpath=yes
11409 shlibpath_overrides_runpath=yes
11414 libname_spec='$name'
11417 library_names_spec='$libname${shared_ext} $libname.a'
11418 dynamic_linker='OS/2 ld.exe'
11419 shlibpath_var=LIBPATH
11422 osf3* | osf4* | osf5*)
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11438 version_type=linux # correct to gnu/linux during the next big refactor
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 shlibpath_overrides_runpath=yes
11445 hardcode_into_libs=yes
11446 # ldd complains unless libraries are executable
11447 postinstall_cmds='chmod +x $lib'
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 if test "$with_gnu_ld" = yes; then
11463 version_type=linux # correct to gnu/linux during the next big refactor
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 case $host_vendor in
11469 shlibpath_overrides_runpath=no
11471 runpath_var=LD_RUN_PATH
11479 shlibpath_overrides_runpath=no
11480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11486 if test -d /usr/nec ;then
11487 version_type=linux # correct to gnu/linux during the next big refactor
11488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11489 soname_spec='$libname${shared_ext}.$major'
11490 shlibpath_var=LD_LIBRARY_PATH
11494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11495 version_type=freebsd-elf
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11502 hardcode_into_libs=yes
11503 if test "$with_gnu_ld" = yes; then
11504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11513 sys_lib_dlsearch_path_spec='/usr/lib'
11517 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11518 version_type=linux # correct to gnu/linux during the next big refactor
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=no
11524 hardcode_into_libs=yes
11528 version_type=linux # correct to gnu/linux during the next big refactor
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11539 $as_echo "$dynamic_linker" >&6; }
11540 test "$dynamic_linker" = no && can_build_shared=no
11542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11543 if test "$GCC" = yes; then
11544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11547 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11551 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11646 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11648 if test -n "$hardcode_libdir_flag_spec" ||
11649 test -n "$runpath_var" ||
11650 test "X$hardcode_automatic" = "Xyes" ; then
11652 # We can hardcode non-existent directories.
11653 if test "$hardcode_direct" != no &&
11654 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11655 # have to relink, otherwise we might link with an installed library
11656 # when we should be linking with a yet-to-be-installed one
11657 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11658 test "$hardcode_minus_L" != no; then
11659 # Linking always hardcodes the temporary library directory.
11660 hardcode_action=relink
11662 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11663 hardcode_action=immediate
11666 # We cannot hardcode anything, or else we can only hardcode existing
11668 hardcode_action=unsupported
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11671 $as_echo "$hardcode_action" >&6; }
11673 if test "$hardcode_action" = relink ||
11674 test "$inherit_rpath" = yes; then
11675 # Fast installation is not supported
11676 enable_fast_install=no
11677 elif test "$shlibpath_overrides_runpath" = yes ||
11678 test "$enable_shared" = no; then
11679 # Fast installation is not necessary
11680 enable_fast_install=needless
11688 if test "x$enable_dlopen" != xyes; then
11689 enable_dlopen=unknown
11690 enable_dlopen_self=unknown
11691 enable_dlopen_self_static=unknown
11698 lt_cv_dlopen="load_add_on"
11700 lt_cv_dlopen_self=yes
11703 mingw* | pw32* | cegcc*)
11704 lt_cv_dlopen="LoadLibrary"
11709 lt_cv_dlopen="dlopen"
11714 # if libdl is installed we need to link against it
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11716 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11717 if ${ac_cv_lib_dl_dlopen+:} false; then :
11718 $as_echo_n "(cached) " >&6
11720 ac_check_lib_save_LIBS=$LIBS
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dl_dlopen=yes
11743 ac_cv_lib_dl_dlopen=no
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11751 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11755 lt_cv_dlopen="dyld"
11757 lt_cv_dlopen_self=yes
11764 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11765 if test "x$ac_cv_func_shl_load" = xyes; then :
11766 lt_cv_dlopen="shl_load"
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11769 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11770 if ${ac_cv_lib_dld_shl_load+:} false; then :
11771 $as_echo_n "(cached) " >&6
11773 ac_check_lib_save_LIBS=$LIBS
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11778 /* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11788 return shl_load ();
11793 if ac_fn_c_try_link "$LINENO"; then :
11794 ac_cv_lib_dld_shl_load=yes
11796 ac_cv_lib_dld_shl_load=no
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800 LIBS=$ac_check_lib_save_LIBS
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11803 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11804 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11807 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11808 if test "x$ac_cv_func_dlopen" = xyes; then :
11809 lt_cv_dlopen="dlopen"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if ${ac_cv_lib_dl_dlopen+:} false; then :
11814 $as_echo_n "(cached) " >&6
11816 ac_check_lib_save_LIBS=$LIBS
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11836 if ac_fn_c_try_link "$LINENO"; then :
11837 ac_cv_lib_dl_dlopen=yes
11839 ac_cv_lib_dl_dlopen=no
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11851 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11852 if ${ac_cv_lib_svld_dlopen+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lsvld $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 ac_cv_lib_svld_dlopen=yes
11878 ac_cv_lib_svld_dlopen=no
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11885 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11886 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11890 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11891 if ${ac_cv_lib_dld_dld_link+:} false; then :
11892 $as_echo_n "(cached) " >&6
11894 ac_check_lib_save_LIBS=$LIBS
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11909 return dld_link ();
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 ac_cv_lib_dld_dld_link=yes
11917 ac_cv_lib_dld_dld_link=no
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11924 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11925 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11926 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11947 if test "x$lt_cv_dlopen" != xno; then
11953 case $lt_cv_dlopen in
11955 save_CPPFLAGS="$CPPFLAGS"
11956 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11958 save_LDFLAGS="$LDFLAGS"
11959 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11962 LIBS="$lt_cv_dlopen_libs $LIBS"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11965 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11966 if ${lt_cv_dlopen_self+:} false; then :
11967 $as_echo_n "(cached) " >&6
11969 if test "$cross_compiling" = yes; then :
11970 lt_cv_dlopen_self=cross
11972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11973 lt_status=$lt_dlunknown
11974 cat > conftest.$ac_ext <<_LT_EOF
11975 #line $LINENO "configure"
11976 #include "confdefs.h"
11985 # define LT_DLGLOBAL RTLD_GLOBAL
11988 # define LT_DLGLOBAL DL_GLOBAL
11990 # define LT_DLGLOBAL 0
11994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11995 find out it does not work in some platform. */
11996 #ifndef LT_DLLAZY_OR_NOW
11998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12001 # define LT_DLLAZY_OR_NOW DL_LAZY
12004 # define LT_DLLAZY_OR_NOW RTLD_NOW
12007 # define LT_DLLAZY_OR_NOW DL_NOW
12009 # define LT_DLLAZY_OR_NOW 0
12016 /* When -fvisbility=hidden is used, assume the code has been annotated
12017 correspondingly for the symbols needed. */
12018 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12019 int fnord () __attribute__((visibility("default")));
12022 int fnord () { return 42; }
12025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12026 int status = $lt_dlunknown;
12030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12033 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12034 else puts (dlerror ());
12036 /* dlclose (self); */
12044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12045 (eval $ac_link) 2>&5
12047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12049 (./conftest; exit; ) >&5 2>/dev/null
12051 case x$lt_status in
12052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12054 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12057 # compilation failed
12058 lt_cv_dlopen_self=no
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12066 $as_echo "$lt_cv_dlopen_self" >&6; }
12068 if test "x$lt_cv_dlopen_self" = xyes; then
12069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12071 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12072 if ${lt_cv_dlopen_self_static+:} false; then :
12073 $as_echo_n "(cached) " >&6
12075 if test "$cross_compiling" = yes; then :
12076 lt_cv_dlopen_self_static=cross
12078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12079 lt_status=$lt_dlunknown
12080 cat > conftest.$ac_ext <<_LT_EOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12091 # define LT_DLGLOBAL RTLD_GLOBAL
12094 # define LT_DLGLOBAL DL_GLOBAL
12096 # define LT_DLGLOBAL 0
12100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12101 find out it does not work in some platform. */
12102 #ifndef LT_DLLAZY_OR_NOW
12104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12107 # define LT_DLLAZY_OR_NOW DL_LAZY
12110 # define LT_DLLAZY_OR_NOW RTLD_NOW
12113 # define LT_DLLAZY_OR_NOW DL_NOW
12115 # define LT_DLLAZY_OR_NOW 0
12122 /* When -fvisbility=hidden is used, assume the code has been annotated
12123 correspondingly for the symbols needed. */
12124 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12125 int fnord () __attribute__((visibility("default")));
12128 int fnord () { return 42; }
12131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12132 int status = $lt_dlunknown;
12136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12139 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140 else puts (dlerror ());
12142 /* dlclose (self); */
12150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12151 (eval $ac_link) 2>&5
12153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12155 (./conftest; exit; ) >&5 2>/dev/null
12157 case x$lt_status in
12158 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12159 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12160 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12163 # compilation failed
12164 lt_cv_dlopen_self_static=no
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12172 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12175 CPPFLAGS="$save_CPPFLAGS"
12176 LDFLAGS="$save_LDFLAGS"
12181 case $lt_cv_dlopen_self in
12182 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12183 *) enable_dlopen_self=unknown ;;
12186 case $lt_cv_dlopen_self_static in
12187 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12188 *) enable_dlopen_self_static=unknown ;;
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12211 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12212 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12213 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12214 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; }
12218 # FIXME - insert some real tests, host_os isn't really good enough
12221 if test -n "$STRIP" ; then
12222 striplib="$STRIP -x"
12223 old_striplib="$STRIP -S"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12249 # Report which library types will actually be built
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12251 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12253 $as_echo "$can_build_shared" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12256 $as_echo_n "checking whether to build shared libraries... " >&6; }
12257 test "$can_build_shared" = "no" && enable_shared=no
12259 # On AIX, shared libraries and static libraries use the same namespace, and
12260 # are all built from PIC.
12263 test "$enable_shared" = yes && enable_static=no
12264 if test -n "$RANLIB"; then
12265 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12266 postinstall_cmds='$RANLIB $lib'
12271 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12272 test "$enable_shared" = yes && enable_static=no
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12277 $as_echo "$enable_shared" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12280 $as_echo_n "checking whether to build static libraries... " >&6; }
12281 # Make sure either enable_shared or enable_static is yes.
12282 test "$enable_shared" = yes || enable_static=yes
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12284 $as_echo "$enable_static" >&6; }
12291 ac_cpp='$CPP $CPPFLAGS'
12292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12312 ac_config_commands="$ac_config_commands libtool"
12317 # Only expand once:
12321 ac_cpp='$CXXCPP $CPPFLAGS'
12322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12325 if test -z "$CXX"; then
12326 if test -n "$CCC"; then
12329 if test -n "$ac_tool_prefix"; then
12330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_prog_CXX+:} false; then :
12337 $as_echo_n "(cached) " >&6
12339 if test -n "$CXX"; then
12340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 CXX=$ac_cv_prog_CXX
12360 if test -n "$CXX"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12362 $as_echo "$CXX" >&6; }
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12369 test -n "$CXX" && break
12372 if test -z "$CXX"; then
12374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12376 # Extract the first word of "$ac_prog", so it can be a program name with args.
12377 set dummy $ac_prog; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 if test -n "$ac_ct_CXX"; then
12384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393 ac_cv_prog_ac_ct_CXX="$ac_prog"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12404 if test -n "$ac_ct_CXX"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12406 $as_echo "$ac_ct_CXX" >&6; }
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12413 test -n "$ac_ct_CXX" && break
12416 if test "x$ac_ct_CXX" = x; then
12419 case $cross_compiling:$ac_tool_warned in
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12423 ac_tool_warned=yes ;;
12431 # Provide some information about the compiler.
12432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12435 for ac_option in --version -v -V -qversion; do
12436 { { ac_try="$ac_compiler $ac_option >&5"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12442 $as_echo "$ac_try_echo"; } >&5
12443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12445 if test -s conftest.err; then
12447 ... rest of stderr output deleted ...
12448 10q' conftest.err >conftest.er1
12449 cat conftest.er1 >&5
12451 rm -f conftest.er1 conftest.err
12452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12453 test $ac_status = 0; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12457 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12458 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12459 $as_echo_n "(cached) " >&6
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12475 if ac_fn_cxx_try_compile "$LINENO"; then :
12476 ac_compiler_gnu=yes
12480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12485 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12486 if test $ac_compiler_gnu = yes; then
12491 ac_test_CXXFLAGS=${CXXFLAGS+set}
12492 ac_save_CXXFLAGS=$CXXFLAGS
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12494 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12495 if ${ac_cv_prog_cxx_g+:} false; then :
12496 $as_echo_n "(cached) " >&6
12498 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12499 ac_cxx_werror_flag=yes
12500 ac_cv_prog_cxx_g=no
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12513 if ac_fn_cxx_try_compile "$LINENO"; then :
12514 ac_cv_prog_cxx_g=yes
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12528 if ac_fn_cxx_try_compile "$LINENO"; then :
12531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12544 if ac_fn_cxx_try_compile "$LINENO"; then :
12545 ac_cv_prog_cxx_g=yes
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12555 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12556 if test "$ac_test_CXXFLAGS" = set; then
12557 CXXFLAGS=$ac_save_CXXFLAGS
12558 elif test $ac_cv_prog_cxx_g = yes; then
12559 if test "$GXX" = yes; then
12565 if test "$GXX" = yes; then
12572 ac_cpp='$CPP $CPPFLAGS'
12573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12577 depcc="$CXX" am_compiler_list=
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12580 $as_echo_n "checking dependency style of $depcc... " >&6; }
12581 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12582 $as_echo_n "(cached) " >&6
12584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12585 # We make a subdir and do the tests there. Otherwise we can end up
12586 # making bogus files that we don't know about and never remove. For
12587 # instance it was reported that on HP-UX the gcc test will end up
12588 # making a dummy file named 'D' -- because '-MD' means "put the output
12590 rm -rf conftest.dir
12592 # Copy depcomp to subdir because otherwise we won't find it if we're
12593 # using a relative directory.
12594 cp "$am_depcomp" conftest.dir
12596 # We will build objects and dependencies in a subdirectory because
12597 # it helps to detect inapplicable dependency modes. For instance
12598 # both Tru64's cc and ICC support -MD to output dependencies as a
12599 # side effect of compilation, but ICC will put the dependencies in
12600 # the current directory while Tru64 will put them in the object
12604 am_cv_CXX_dependencies_compiler_type=none
12605 if test "$am_compiler_list" = ""; then
12606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12608 am__universal=false
12609 case " $depcc " in #(
12610 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12613 for depmode in $am_compiler_list; do
12614 # Setup a source with many dependencies, because some compilers
12615 # like to wrap large dependency lists on column 80 (with \), and
12616 # we should not choose a depcomp mode which is confused by this.
12618 # We need to recreate these files for each test, as the compiler may
12619 # overwrite some of them when testing with obscure command lines.
12620 # This happens at least with the AIX C compiler.
12622 for i in 1 2 3 4 5 6; do
12623 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12624 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12625 # Solaris 10 /bin/sh.
12626 echo '/* dummy */' > sub/conftst$i.h
12628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12630 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12631 # mode. It turns out that the SunPro C++ compiler does not properly
12632 # handle '-M -o', and we need to detect this. Also, some Intel
12633 # versions had trouble with output in subdirs.
12634 am__obj=sub/conftest.${OBJEXT-o}
12635 am__minus_obj="-o $am__obj"
12638 # This depmode causes a compiler race in universal mode.
12639 test "$am__universal" = false || continue
12642 # After this tag, mechanisms are not by side-effect, so they'll
12643 # only be used when explicitly requested.
12644 if test "x$enable_dependency_tracking" = xyes; then
12650 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12651 # This compiler won't grok '-c -o', but also, the minuso test has
12652 # not run yet. These depmodes are late enough in the game, and
12653 # so weak that their functioning should not be impacted.
12654 am__obj=conftest.${OBJEXT-o}
12659 if depmode=$depmode \
12660 source=sub/conftest.c object=$am__obj \
12661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12662 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12663 >/dev/null 2>conftest.err &&
12664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12666 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12668 # icc doesn't choke on unknown options, it will just issue warnings
12669 # or remarks (even with -Werror). So we grep stderr for any message
12670 # that says an option was ignored or not supported.
12671 # When given -MP, icc 7.0 and 7.1 complain thusly:
12672 # icc: Command line warning: ignoring option '-M'; no argument required
12673 # The diagnosis changed in icc 8.0:
12674 # icc: Command line remark: option '-MP' not supported
12675 if (grep 'ignoring option' conftest.err ||
12676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12677 am_cv_CXX_dependencies_compiler_type=$depmode
12684 rm -rf conftest.dir
12686 am_cv_CXX_dependencies_compiler_type=none
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12691 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12692 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12695 test "x$enable_dependency_tracking" != xno \
12696 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12697 am__fastdepCXX_TRUE=
12698 am__fastdepCXX_FALSE='#'
12700 am__fastdepCXX_TRUE='#'
12701 am__fastdepCXX_FALSE=
12708 func_stripname_cnf ()
12711 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12712 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12714 } # func_stripname_cnf
12716 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12717 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12718 (test "X$CXX" != "Xg++"))) ; then
12720 ac_cpp='$CXXCPP $CPPFLAGS'
12721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12725 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12726 if test -z "$CXXCPP"; then
12727 if ${ac_cv_prog_CXXCPP+:} false; then :
12728 $as_echo_n "(cached) " >&6
12730 # Double quotes because CXXCPP needs to be expanded
12731 for CXXCPP in "$CXX -E" "/lib/cpp"
12733 ac_preproc_ok=false
12734 for ac_cxx_preproc_warn_flag in '' yes
12736 # Use a header file that comes with gcc, so configuring glibc
12737 # with a fresh cross-compiler works.
12738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12739 # <limits.h> exists even on freestanding compilers.
12740 # On the NeXT, cc -E runs the code through the compiler's parser,
12741 # not just through cpp. "Syntax error" is here to catch this case.
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12745 # include <limits.h>
12747 # include <assert.h>
12751 if ac_fn_cxx_try_cpp "$LINENO"; then :
12754 # Broken: fails on valid input.
12757 rm -f conftest.err conftest.i conftest.$ac_ext
12759 # OK, works on sane cases. Now check whether nonexistent headers
12760 # can be detected and how.
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763 #include <ac_nonexistent.h>
12765 if ac_fn_cxx_try_cpp "$LINENO"; then :
12766 # Broken: success on invalid input.
12769 # Passes both tests.
12773 rm -f conftest.err conftest.i conftest.$ac_ext
12776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12777 rm -f conftest.i conftest.err conftest.$ac_ext
12778 if $ac_preproc_ok; then :
12783 ac_cv_prog_CXXCPP=$CXXCPP
12786 CXXCPP=$ac_cv_prog_CXXCPP
12788 ac_cv_prog_CXXCPP=$CXXCPP
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12791 $as_echo "$CXXCPP" >&6; }
12792 ac_preproc_ok=false
12793 for ac_cxx_preproc_warn_flag in '' yes
12795 # Use a header file that comes with gcc, so configuring glibc
12796 # with a fresh cross-compiler works.
12797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12798 # <limits.h> exists even on freestanding compilers.
12799 # On the NeXT, cc -E runs the code through the compiler's parser,
12800 # not just through cpp. "Syntax error" is here to catch this case.
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12804 # include <limits.h>
12806 # include <assert.h>
12810 if ac_fn_cxx_try_cpp "$LINENO"; then :
12813 # Broken: fails on valid input.
12816 rm -f conftest.err conftest.i conftest.$ac_ext
12818 # OK, works on sane cases. Now check whether nonexistent headers
12819 # can be detected and how.
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822 #include <ac_nonexistent.h>
12824 if ac_fn_cxx_try_cpp "$LINENO"; then :
12825 # Broken: success on invalid input.
12828 # Passes both tests.
12832 rm -f conftest.err conftest.i conftest.$ac_ext
12835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12836 rm -f conftest.i conftest.err conftest.$ac_ext
12837 if $ac_preproc_ok; then :
12840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12842 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12843 See \`config.log' for more details" "$LINENO" 5; }
12847 ac_cpp='$CPP $CPPFLAGS'
12848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12853 _lt_caught_CXX_error=yes
12857 ac_cpp='$CXXCPP $CPPFLAGS'
12858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12862 archive_cmds_need_lc_CXX=no
12863 allow_undefined_flag_CXX=
12864 always_export_symbols_CXX=no
12865 archive_expsym_cmds_CXX=
12866 compiler_needs_object_CXX=no
12867 export_dynamic_flag_spec_CXX=
12868 hardcode_direct_CXX=no
12869 hardcode_direct_absolute_CXX=no
12870 hardcode_libdir_flag_spec_CXX=
12871 hardcode_libdir_separator_CXX=
12872 hardcode_minus_L_CXX=no
12873 hardcode_shlibpath_var_CXX=unsupported
12874 hardcode_automatic_CXX=no
12875 inherit_rpath_CXX=no
12877 module_expsym_cmds_CXX=
12878 link_all_deplibs_CXX=unknown
12879 old_archive_cmds_CXX=$old_archive_cmds
12880 reload_flag_CXX=$reload_flag
12881 reload_cmds_CXX=$reload_cmds
12882 no_undefined_flag_CXX=
12883 whole_archive_flag_spec_CXX=
12884 enable_shared_with_static_runtimes_CXX=no
12886 # Source file extension for C++ test sources.
12889 # Object file extension for compiled C++ test sources.
12893 # No sense in running all these tests if we already determined that
12894 # the CXX compiler isn't working. Some variables (like enable_shared)
12895 # are currently assumed to apply to all compilers on this platform,
12896 # and will be corrupted by setting them based on a non-working compiler.
12897 if test "$_lt_caught_CXX_error" != yes; then
12898 # Code to be used in simple compile tests
12899 lt_simple_compile_test_code="int some_variable = 0;"
12901 # Code to be used in simple link tests
12902 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12904 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12911 # If no C compiler was specified, use CC.
12914 # If no C compiler flags were specified, use CFLAGS.
12915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12917 # Allow CC to be a program name with arguments.
12921 # save warnings/boilerplate of simple test code
12922 ac_outfile=conftest.$ac_objext
12923 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12924 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12925 _lt_compiler_boilerplate=`cat conftest.err`
12928 ac_outfile=conftest.$ac_objext
12929 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12930 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12931 _lt_linker_boilerplate=`cat conftest.err`
12935 # Allow CC to be a program name with arguments.
12937 lt_save_CFLAGS=$CFLAGS
12941 lt_save_with_gnu_ld=$with_gnu_ld
12942 lt_save_path_LD=$lt_cv_path_LD
12943 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12944 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12946 $as_unset lt_cv_prog_gnu_ld
12948 if test -n "${lt_cv_path_LDCXX+set}"; then
12949 lt_cv_path_LD=$lt_cv_path_LDCXX
12951 $as_unset lt_cv_path_LD
12953 test -z "${LDCXX+set}" || LD=$LDCXX
12958 for cc_temp in $compiler""; do
12960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12966 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12969 if test -n "$compiler"; then
12970 # We don't want -fno-exception when compiling C++ code, so set the
12971 # no_builtin_flag separately
12972 if test "$GXX" = yes; then
12973 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12975 lt_prog_compiler_no_builtin_flag_CXX=
12978 if test "$GXX" = yes; then
12979 # Set up default GNU C++ configuration
12983 # Check whether --with-gnu-ld was given.
12984 if test "${with_gnu_ld+set}" = set; then :
12985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12991 if test "$GCC" = yes; then
12992 # Check if gcc -print-prog-name=ld gives a path.
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12994 $as_echo_n "checking for ld used by $CC... " >&6; }
12997 # gcc leaves a trailing carriage return which upsets mingw
12998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13003 # Accept absolute paths.
13005 re_direlt='/[^/][^/]*/\.\./'
13006 # Canonicalize the pathname of ld
13007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13011 test -z "$LD" && LD="$ac_prog"
13014 # If it fails, then pretend we aren't using GCC.
13018 # If it is relative, then search for the first ld in PATH.
13019 with_gnu_ld=unknown
13022 elif test "$with_gnu_ld" = yes; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13024 $as_echo_n "checking for GNU ld... " >&6; }
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13027 $as_echo_n "checking for non-GNU ld... " >&6; }
13029 if ${lt_cv_path_LD+:} false; then :
13030 $as_echo_n "(cached) " >&6
13032 if test -z "$LD"; then
13033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13034 for ac_dir in $PATH; do
13036 test -z "$ac_dir" && ac_dir=.
13037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13038 lt_cv_path_LD="$ac_dir/$ac_prog"
13039 # Check to see if the program is GNU ld. I'd rather use --version,
13040 # but apparently some variants of GNU ld only accept -v.
13041 # Break only if it was the GNU/non-GNU ld that we prefer.
13042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13043 *GNU* | *'with BFD'*)
13044 test "$with_gnu_ld" != no && break
13047 test "$with_gnu_ld" != yes && break
13054 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13058 LD="$lt_cv_path_LD"
13059 if test -n "$LD"; then
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13061 $as_echo "$LD" >&6; }
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13066 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13068 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13069 if ${lt_cv_prog_gnu_ld+:} false; then :
13070 $as_echo_n "(cached) " >&6
13072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13073 case `$LD -v 2>&1 </dev/null` in
13074 *GNU* | *'with BFD'*)
13075 lt_cv_prog_gnu_ld=yes
13078 lt_cv_prog_gnu_ld=no
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13083 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13084 with_gnu_ld=$lt_cv_prog_gnu_ld
13092 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13093 # archiving commands below assume that GNU ld is being used.
13094 if test "$with_gnu_ld" = yes; then
13095 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13096 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'
13098 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13101 # If archive_cmds runs LD, not CC, wlarc should be empty
13102 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13103 # investigate it a little bit more. (MM)
13106 # ancient GNU ld didn't support --whole-archive et. al.
13107 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13108 $GREP 'no-whole-archive' > /dev/null; then
13109 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13111 whole_archive_flag_spec_CXX=
13117 # A generic and very simple default shared library creation
13118 # command for GNU C++ for the case where it uses the native
13119 # linker, instead of GNU ld. If possible, this setting should
13120 # overridden to take advantage of the native linker features on
13121 # the platform it is being used on.
13122 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13125 # Commands to make compiler produce verbose output that lists
13126 # what "hidden" libraries, object files and flags are used when
13127 # linking a shared library.
13128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13136 # PORTME: fill in a description of your system's C++ link characteristics
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13142 # FIXME: insert proper C++ library support
13146 if test "$host_cpu" = ia64; then
13147 # On IA64, the linker does run time linking by default, so we don't
13148 # have to do anything special.
13149 aix_use_runtimelinking=no
13150 exp_sym_flag='-Bexport'
13153 aix_use_runtimelinking=no
13155 # Test if we are trying to use run time linking or normal
13156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13157 # need to do runtime linking.
13158 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13159 for ld_flag in $LDFLAGS; do
13162 aix_use_runtimelinking=yes
13170 exp_sym_flag='-bexport'
13171 no_entry_flag='-bnoentry'
13174 # When large executables or shared objects are built, AIX ld can
13175 # have problems creating the table of contents. If linking a library
13176 # or program results in "error TOC overflow" add -mminimal-toc to
13177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13180 archive_cmds_CXX=''
13181 hardcode_direct_CXX=yes
13182 hardcode_direct_absolute_CXX=yes
13183 hardcode_libdir_separator_CXX=':'
13184 link_all_deplibs_CXX=yes
13185 file_list_spec_CXX='${wl}-f,'
13187 if test "$GXX" = yes; then
13188 case $host_os in aix4.[012]|aix4.[012].*)
13189 # We only want to do this on AIX 4.2 and lower, the check
13190 # below for broken collect2 doesn't work under 4.3+
13191 collect2name=`${CC} -print-prog-name=collect2`
13192 if test -f "$collect2name" &&
13193 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13195 # We have reworked collect2
13198 # We have old collect2
13199 hardcode_direct_CXX=unsupported
13200 # It fails to find uninstalled libraries when the uninstalled
13201 # path is not listed in the libpath. Setting hardcode_minus_L
13202 # to unsupported forces relinking
13203 hardcode_minus_L_CXX=yes
13204 hardcode_libdir_flag_spec_CXX='-L$libdir'
13205 hardcode_libdir_separator_CXX=
13208 shared_flag='-shared'
13209 if test "$aix_use_runtimelinking" = yes; then
13210 shared_flag="$shared_flag "'${wl}-G'
13214 if test "$host_cpu" = ia64; then
13215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13216 # chokes on -Wl,-G. The following line is correct:
13219 if test "$aix_use_runtimelinking" = yes; then
13220 shared_flag='${wl}-G'
13222 shared_flag='${wl}-bM:SRE'
13227 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13228 # It seems that -bexpall does not export symbols beginning with
13229 # underscore (_), so it is better to generate a list of symbols to
13231 always_export_symbols_CXX=yes
13232 if test "$aix_use_runtimelinking" = yes; then
13233 # Warning - without using the other runtime loading flags (-brtl),
13234 # -berok will link without error, but may produce a broken library.
13235 allow_undefined_flag_CXX='-berok'
13236 # Determine the default libpath from the value encoded in an empty
13238 if test "${lt_cv_aix_libpath+set}" = set; then
13239 aix_libpath=$lt_cv_aix_libpath
13241 if ${lt_cv_aix_libpath__CXX+:} false; then :
13242 $as_echo_n "(cached) " >&6
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13255 if ac_fn_cxx_try_link "$LINENO"; then :
13257 lt_aix_libpath_sed='
13258 /Import File Strings/,/^$/ {
13260 s/^0 *\([^ ]*\) *$/\1/
13264 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13265 # Check for a 64-bit object if we didn't find anything.
13266 if test -z "$lt_cv_aix_libpath__CXX"; then
13267 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13270 rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 if test -z "$lt_cv_aix_libpath__CXX"; then
13273 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13278 aix_libpath=$lt_cv_aix_libpath__CXX
13281 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13283 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13285 if test "$host_cpu" = ia64; then
13286 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13287 allow_undefined_flag_CXX="-z nodefs"
13288 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"
13290 # Determine the default libpath from the value encoded in an
13291 # empty executable.
13292 if test "${lt_cv_aix_libpath+set}" = set; then
13293 aix_libpath=$lt_cv_aix_libpath
13295 if ${lt_cv_aix_libpath__CXX+:} false; then :
13296 $as_echo_n "(cached) " >&6
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13309 if ac_fn_cxx_try_link "$LINENO"; then :
13311 lt_aix_libpath_sed='
13312 /Import File Strings/,/^$/ {
13314 s/^0 *\([^ ]*\) *$/\1/
13318 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13319 # Check for a 64-bit object if we didn't find anything.
13320 if test -z "$lt_cv_aix_libpath__CXX"; then
13321 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13324 rm -f core conftest.err conftest.$ac_objext \
13325 conftest$ac_exeext conftest.$ac_ext
13326 if test -z "$lt_cv_aix_libpath__CXX"; then
13327 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13332 aix_libpath=$lt_cv_aix_libpath__CXX
13335 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13336 # Warning - without using the other run time loading flags,
13337 # -berok will link without error, but may produce a broken library.
13338 no_undefined_flag_CXX=' ${wl}-bernotok'
13339 allow_undefined_flag_CXX=' ${wl}-berok'
13340 if test "$with_gnu_ld" = yes; then
13341 # We only use this code for GNU lds that support --whole-archive.
13342 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13344 # Exported symbols can be pulled into shared objects from archives
13345 whole_archive_flag_spec_CXX='$convenience'
13347 archive_cmds_need_lc_CXX=yes
13348 # This is similar to how AIX traditionally builds its shared
13350 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13357 allow_undefined_flag_CXX=unsupported
13358 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13359 # support --undefined. This deserves some investigation. FIXME
13360 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367 case $cc_basename in
13369 # FIXME: insert proper C++ library support
13375 cygwin* | mingw* | pw32* | cegcc*)
13376 case $GXX,$cc_basename in
13379 # hardcode_libdir_flag_spec is actually meaningless, as there is
13380 # no search path for DLLs.
13381 hardcode_libdir_flag_spec_CXX=' '
13382 allow_undefined_flag_CXX=unsupported
13383 always_export_symbols_CXX=yes
13384 file_list_spec_CXX='@'
13385 # Tell ltmain to make .lib files, not .a files.
13387 # Tell ltmain to make .dll files, not .so files.
13389 # FIXME: Setting linknames here is a bad hack.
13390 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13391 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13392 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13394 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13396 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13398 # The linker will not automatically build a static lib if we build a DLL.
13399 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13400 enable_shared_with_static_runtimes_CXX=yes
13402 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13403 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13404 lt_tool_outputfile="@TOOL_OUTPUT@"~
13405 case $lt_outputfile in
13408 lt_outputfile="$lt_outputfile.exe"
13409 lt_tool_outputfile="$lt_tool_outputfile.exe"
13412 func_to_tool_file "$lt_outputfile"~
13413 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13414 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13415 $RM "$lt_outputfile.manifest";
13420 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13421 # as there is no search path for DLLs.
13422 hardcode_libdir_flag_spec_CXX='-L$libdir'
13423 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13424 allow_undefined_flag_CXX=unsupported
13425 always_export_symbols_CXX=no
13426 enable_shared_with_static_runtimes_CXX=yes
13428 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13429 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'
13430 # If the export-symbols file already is a .def file (1st line
13431 # is EXPORTS), use it as is; otherwise, prepend...
13432 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13433 cp $export_symbols $output_objdir/$soname.def;
13435 echo EXPORTS > $output_objdir/$soname.def;
13436 cat $export_symbols >> $output_objdir/$soname.def;
13438 $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'
13445 darwin* | rhapsody*)
13448 archive_cmds_need_lc_CXX=no
13449 hardcode_direct_CXX=no
13450 hardcode_automatic_CXX=yes
13451 hardcode_shlibpath_var_CXX=unsupported
13452 if test "$lt_cv_ld_force_load" = "yes"; then
13453 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\"`'
13456 whole_archive_flag_spec_CXX=''
13458 link_all_deplibs_CXX=yes
13459 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13460 case $cc_basename in
13461 ifort*) _lt_dar_can_shared=yes ;;
13462 *) _lt_dar_can_shared=$GCC ;;
13464 if test "$_lt_dar_can_shared" = "yes"; then
13465 output_verbose_link_cmd=func_echo_all
13466 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}"
13467 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13468 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}"
13469 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}"
13470 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13471 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}"
13472 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}"
13482 case $cc_basename in
13484 # FIXME: insert proper C++ library support
13488 # Green Hills C++ Compiler
13489 # FIXME: insert proper C++ library support
13493 # FIXME: insert proper C++ library support
13500 # C++ shared libraries reported to be fairly broken before
13506 archive_cmds_need_lc_CXX=no
13509 freebsd* | dragonfly*)
13510 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13519 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520 link_all_deplibs_CXX=yes
13524 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13525 hardcode_libdir_separator_CXX=:
13526 export_dynamic_flag_spec_CXX='${wl}-E'
13527 hardcode_direct_CXX=yes
13528 hardcode_minus_L_CXX=yes # Not in the search PATH,
13529 # but as the default
13530 # location of the library.
13532 case $cc_basename in
13534 # FIXME: insert proper C++ library support
13538 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13539 # Commands to make compiler produce verbose output that lists
13540 # what "hidden" libraries, object files and flags are used when
13541 # linking a shared library.
13543 # There doesn't appear to be a way to prevent this compiler from
13544 # explicitly linking system object files so we need to strip them
13545 # from the output so that they don't get included in the library
13547 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"'
13550 if test "$GXX" = yes; then
13551 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13553 # FIXME: insert proper C++ library support
13561 if test $with_gnu_ld = no; then
13562 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13563 hardcode_libdir_separator_CXX=:
13569 export_dynamic_flag_spec_CXX='${wl}-E'
13575 hardcode_direct_CXX=no
13576 hardcode_shlibpath_var_CXX=no
13579 hardcode_direct_CXX=yes
13580 hardcode_direct_absolute_CXX=yes
13581 hardcode_minus_L_CXX=yes # Not in the search PATH,
13582 # but as the default
13583 # location of the library.
13587 case $cc_basename in
13589 # FIXME: insert proper C++ library support
13595 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13598 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13601 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13604 # Commands to make compiler produce verbose output that lists
13605 # what "hidden" libraries, object files and flags are used when
13606 # linking a shared library.
13608 # There doesn't appear to be a way to prevent this compiler from
13609 # explicitly linking system object files so we need to strip them
13610 # from the output so that they don't get included in the library
13612 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"'
13615 if test "$GXX" = yes; then
13616 if test $with_gnu_ld = no; then
13619 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13622 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13625 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'
13630 # FIXME: insert proper C++ library support
13638 hardcode_direct_CXX=no
13639 hardcode_shlibpath_var_CXX=no
13640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13641 export_dynamic_flag_spec_CXX='${wl}-E'
13642 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13643 # Instead, shared libraries are loaded at an image base (0x10000000 by
13644 # default) and relocated if they conflict, which is a slow very memory
13645 # consuming and fragmenting process. To avoid this, we pick a random,
13646 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13647 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13648 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'
13649 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'
13652 case $cc_basename in
13655 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'
13657 # Archives containing C++ object files must be created using
13658 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13659 # necessary to make sure instantiated templates are included
13661 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13664 if test "$GXX" = yes; then
13665 if test "$with_gnu_ld" = no; then
13666 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'
13668 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'
13671 link_all_deplibs_CXX=yes
13674 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13675 hardcode_libdir_separator_CXX=:
13676 inherit_rpath_CXX=yes
13679 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13680 case $cc_basename in
13682 # Kuck and Associates, Inc. (KAI) C++ Compiler
13684 # KCC will only create a shared library if the output file
13685 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13686 # to its proper name (with version) after linking.
13687 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'
13688 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'
13689 # Commands to make compiler produce verbose output that lists
13690 # what "hidden" libraries, object files and flags are used when
13691 # linking a shared library.
13693 # There doesn't appear to be a way to prevent this compiler from
13694 # explicitly linking system object files so we need to strip them
13695 # from the output so that they don't get included in the library
13697 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"'
13699 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13700 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13702 # Archives containing C++ object files must be created using
13703 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13704 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13709 # version 8.0 and above of icpc choke on multiply defined symbols
13710 # if we add $predep_objects and $postdep_objects, however 7.1 and
13711 # earlier do not add the objects themselves.
13712 case `$CC -V 2>&1` in
13714 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715 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'
13717 *) # Version 8.0 or newer
13720 ia64*) tmp_idyn=' -i_dynamic';;
13722 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13723 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'
13726 archive_cmds_need_lc_CXX=no
13727 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13728 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13729 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13732 # Portland Group C++ compiler
13734 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13735 prelink_cmds_CXX='tpldir=Template.dir~
13737 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13738 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13739 old_archive_cmds_CXX='tpldir=Template.dir~
13741 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13742 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13744 archive_cmds_CXX='tpldir=Template.dir~
13746 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13747 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13748 archive_expsym_cmds_CXX='tpldir=Template.dir~
13750 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13751 $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'
13753 *) # Version 6 and above use weak symbols
13754 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13755 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'
13759 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13761 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'
13765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13766 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'
13768 runpath_var=LD_RUN_PATH
13769 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13770 hardcode_libdir_separator_CXX=:
13772 # Commands to make compiler produce verbose output that lists
13773 # what "hidden" libraries, object files and flags are used when
13774 # linking a shared library.
13776 # There doesn't appear to be a way to prevent this compiler from
13777 # explicitly linking system object files so we need to strip them
13778 # from the output so that they don't get included in the library
13780 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'
13782 xl* | mpixl* | bgxl*)
13783 # IBM XL 8.0 on PPC, with GNU ld
13784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13785 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13786 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13787 if test "x$supports_anon_versioning" = xyes; then
13788 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13790 echo "local: *; };" >> $output_objdir/$libname.ver~
13791 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13795 case `$CC -V 2>&1 | sed 5q` in
13798 no_undefined_flag_CXX=' -zdefs'
13799 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13800 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'
13801 hardcode_libdir_flag_spec_CXX='-R$libdir'
13802 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'
13803 compiler_needs_object_CXX=yes
13805 # Not sure whether something based on
13806 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13808 output_verbose_link_cmd='func_echo_all'
13810 # Archives containing C++ object files must be created using
13811 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13812 # necessary to make sure instantiated templates are included
13814 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13822 # FIXME: insert proper C++ library support
13827 # FIXME: insert proper C++ library support
13832 case $cc_basename in
13834 # FIXME: insert proper C++ library support
13838 # FIXME: insert proper C++ library support
13845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13846 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13848 hardcode_libdir_flag_spec_CXX='-R$libdir'
13849 hardcode_direct_CXX=yes
13850 hardcode_shlibpath_var_CXX=no
13852 # Workaround some broken pre-1.5 toolchains
13853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13861 # C++ shared libraries are fairly broken
13866 if test -f /usr/libexec/ld.so; then
13867 hardcode_direct_CXX=yes
13868 hardcode_shlibpath_var_CXX=no
13869 hardcode_direct_absolute_CXX=yes
13870 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13873 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13874 export_dynamic_flag_spec_CXX='${wl}-E'
13875 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13877 output_verbose_link_cmd=func_echo_all
13883 osf3* | osf4* | osf5*)
13884 case $cc_basename in
13886 # Kuck and Associates, Inc. (KAI) C++ Compiler
13888 # KCC will only create a shared library if the output file
13889 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13890 # to its proper name (with version) after linking.
13891 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'
13893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13894 hardcode_libdir_separator_CXX=:
13896 # Archives containing C++ object files must be created using
13897 # the KAI C++ compiler.
13899 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13900 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13904 # Rational C++ 2.4.1
13905 # FIXME: insert proper C++ library support
13911 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13912 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'
13913 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13916 allow_undefined_flag_CXX=' -expect_unresolved \*'
13917 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'
13918 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13919 echo "-hidden">> $lib.exp~
13920 $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~
13922 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13926 hardcode_libdir_separator_CXX=:
13928 # Commands to make compiler produce verbose output that lists
13929 # what "hidden" libraries, object files and flags are used when
13930 # linking a shared library.
13932 # There doesn't appear to be a way to prevent this compiler from
13933 # explicitly linking system object files so we need to strip them
13934 # from the output so that they don't get included in the library
13936 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"'
13939 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13940 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13943 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'
13946 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'
13950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13951 hardcode_libdir_separator_CXX=:
13953 # Commands to make compiler produce verbose output that lists
13954 # what "hidden" libraries, object files and flags are used when
13955 # linking a shared library.
13956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13959 # FIXME: insert proper C++ library support
13967 # FIXME: insert proper C++ library support
13972 case $cc_basename in
13975 # FIXME: insert proper C++ library support
13980 # FIXME: insert proper C++ library support
13984 # FIXME: insert proper C++ library support
13991 case $cc_basename in
13993 # Sun C++ 4.2, 5.x and Centerline C++
13994 archive_cmds_need_lc_CXX=yes
13995 no_undefined_flag_CXX=' -zdefs'
13996 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13997 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13998 $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'
14000 hardcode_libdir_flag_spec_CXX='-R$libdir'
14001 hardcode_shlibpath_var_CXX=no
14003 solaris2.[0-5] | solaris2.[0-5].*) ;;
14005 # The compiler driver will combine and reorder linker options,
14006 # but understands `-z linker_flag'.
14007 # Supported since Solaris 2.6 (maybe 2.5.1?)
14008 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14011 link_all_deplibs_CXX=yes
14013 output_verbose_link_cmd='func_echo_all'
14015 # Archives containing C++ object files must be created using
14016 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14017 # necessary to make sure instantiated templates are included
14019 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14022 # Green Hills C++ Compiler
14023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14025 # The C++ compiler must be used to create the archive.
14026 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14029 # GNU C++ compiler with Solaris linker
14030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14031 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14032 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14033 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14034 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14035 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14037 # Commands to make compiler produce verbose output that lists
14038 # what "hidden" libraries, object files and flags are used when
14039 # linking a shared library.
14040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14042 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14044 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14046 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14048 # Commands to make compiler produce verbose output that lists
14049 # what "hidden" libraries, object files and flags are used when
14050 # linking a shared library.
14051 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14054 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14056 solaris2.[0-5] | solaris2.[0-5].*) ;;
14058 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14067 no_undefined_flag_CXX='${wl}-z,text'
14068 archive_cmds_need_lc_CXX=no
14069 hardcode_shlibpath_var_CXX=no
14070 runpath_var='LD_RUN_PATH'
14072 case $cc_basename in
14074 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14075 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14078 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14079 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 sysv5* | sco3.2v5* | sco5v6*)
14085 # Note: We can NOT use -z defs as we might desire, because we do not
14086 # link with -lc, and that would cause any symbols used from libc to
14087 # always be unresolved, which means just about no library would
14088 # ever link correctly. If we're not using GNU ld we use -z text
14089 # though, which does catch some bad symbols but isn't as heavy-handed
14091 no_undefined_flag_CXX='${wl}-z,text'
14092 allow_undefined_flag_CXX='${wl}-z,nodefs'
14093 archive_cmds_need_lc_CXX=no
14094 hardcode_shlibpath_var_CXX=no
14095 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14096 hardcode_libdir_separator_CXX=':'
14097 link_all_deplibs_CXX=yes
14098 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14099 runpath_var='LD_RUN_PATH'
14101 case $cc_basename in
14103 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14105 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14106 '"$old_archive_cmds_CXX"
14107 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14108 '"$reload_cmds_CXX"
14111 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14112 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14118 case $cc_basename in
14120 # NonStop-UX NCC 3.20
14121 # FIXME: insert proper C++ library support
14125 # FIXME: insert proper C++ library support
14132 # FIXME: insert proper C++ library support
14137 # FIXME: insert proper C++ library support
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14143 $as_echo "$ld_shlibs_CXX" >&6; }
14144 test "$ld_shlibs_CXX" = no && can_build_shared=no
14150 ## There is no encapsulation within the following macros, do not change
14151 ## the running order or otherwise move them around unless you know exactly
14152 ## what you are doing...
14153 # Dependencies to place before and after the object being linked:
14154 predep_objects_CXX=
14155 postdep_objects_CXX=
14158 compiler_lib_search_path_CXX=
14160 cat > conftest.$ac_ext <<_LT_EOF
14164 Foo (void) { a = 0; }
14171 _lt_libdeps_save_CFLAGS=$CFLAGS
14172 case "$CC $CFLAGS " in #(
14173 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14174 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14175 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14179 (eval $ac_compile) 2>&5
14181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14182 test $ac_status = 0; }; then
14183 # Parse the compiler output and extract the necessary
14184 # objects, libraries and library flags.
14186 # Sentinel used to keep track of whether or not we are before
14187 # the conftest object file.
14188 pre_test_object_deps_done=no
14190 for p in `eval "$output_verbose_link_cmd"`; do
14191 case ${prev}${p} in
14194 # Some compilers place space between "-{L,R}" and the path.
14195 # Remove the space.
14196 if test $p = "-L" ||
14197 test $p = "-R"; then
14202 # Expand the sysroot to ease extracting the directories later.
14203 if test -z "$prev"; then
14205 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14206 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14207 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14211 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14213 if test "$pre_test_object_deps_done" = no; then
14216 # Internal compiler library paths should come after those
14217 # provided the user. The postdeps already come after the
14218 # user supplied libs so there is no need to process them.
14219 if test -z "$compiler_lib_search_path_CXX"; then
14220 compiler_lib_search_path_CXX="${prev}${p}"
14222 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14225 # The "-l" case would never come before the object being
14226 # linked, so don't bother handling this case.
14229 if test -z "$postdeps_CXX"; then
14230 postdeps_CXX="${prev}${p}"
14232 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14238 *.lto.$objext) ;; # Ignore GCC LTO objects
14240 # This assumes that the test object file only shows up
14241 # once in the compiler output.
14242 if test "$p" = "conftest.$objext"; then
14243 pre_test_object_deps_done=yes
14247 if test "$pre_test_object_deps_done" = no; then
14248 if test -z "$predep_objects_CXX"; then
14249 predep_objects_CXX="$p"
14251 predep_objects_CXX="$predep_objects_CXX $p"
14254 if test -z "$postdep_objects_CXX"; then
14255 postdep_objects_CXX="$p"
14257 postdep_objects_CXX="$postdep_objects_CXX $p"
14262 *) ;; # Ignore the rest.
14270 echo "libtool.m4: error: problem compiling CXX test program"
14273 $RM -f confest.$objext
14274 CFLAGS=$_lt_libdeps_save_CFLAGS
14276 # PORTME: override above test on systems where it is broken
14279 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14280 # hack all around it, let's just trust "g++" to DTRT.
14281 predep_objects_CXX=
14282 postdep_objects_CXX=
14287 case `$CC -V 2>&1 | sed 5q` in
14291 # The more standards-conforming stlport4 library is
14292 # incompatible with the Cstd library. Avoid specifying
14293 # it if it's in CXXFLAGS. Ignore libCrun as
14294 # -library=stlport4 depends on it.
14295 case " $CXX $CXXFLAGS " in
14296 *" -library=stlport4 "*)
14297 solaris_use_stlport4=yes
14301 if test "$solaris_use_stlport4" != yes; then
14302 postdeps_CXX='-library=Cstd -library=Crun'
14309 case $cc_basename in
14311 # The more standards-conforming stlport4 library is
14312 # incompatible with the Cstd library. Avoid specifying
14313 # it if it's in CXXFLAGS. Ignore libCrun as
14314 # -library=stlport4 depends on it.
14315 case " $CXX $CXXFLAGS " in
14316 *" -library=stlport4 "*)
14317 solaris_use_stlport4=yes
14321 # Adding this requires a known-good setup of shared libraries for
14322 # Sun compiler versions before 5.6, else PIC objects from an old
14323 # archive will be linked into the output, leading to subtle bugs.
14324 if test "$solaris_use_stlport4" != yes; then
14325 postdeps_CXX='-library=Cstd -library=Crun'
14333 case " $postdeps_CXX " in
14334 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14336 compiler_lib_search_dirs_CXX=
14337 if test -n "${compiler_lib_search_path_CXX}"; then
14338 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14371 lt_prog_compiler_wl_CXX=
14372 lt_prog_compiler_pic_CXX=
14373 lt_prog_compiler_static_CXX=
14376 # C++ specific cases for pic, static, wl, etc.
14377 if test "$GXX" = yes; then
14378 lt_prog_compiler_wl_CXX='-Wl,'
14379 lt_prog_compiler_static_CXX='-static'
14383 # All AIX code is PIC.
14384 if test "$host_cpu" = ia64; then
14385 # AIX 5 now supports IA64 processor
14386 lt_prog_compiler_static_CXX='-Bstatic'
14393 # see comment about AmigaOS4 .so support
14394 lt_prog_compiler_pic_CXX='-fPIC'
14397 # FIXME: we need at least 68020 code to build shared libraries, but
14398 # adding the `-m68020' flag to GCC prevents building anything better,
14400 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14405 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14406 # PIC is the default for these OSes.
14408 mingw* | cygwin* | os2* | pw32* | cegcc*)
14409 # This hack is so that the source file can tell whether it is being
14410 # built for inclusion in a dll (and should export symbols for example).
14411 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14412 # (--disable-auto-import) libraries
14413 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14415 darwin* | rhapsody*)
14416 # PIC is the default on this platform
14417 # Common symbols not allowed in MH_DYLIB files
14418 lt_prog_compiler_pic_CXX='-fno-common'
14421 # DJGPP does not support shared libraries at all
14422 lt_prog_compiler_pic_CXX=
14425 # PIC is the default for Haiku.
14426 # The "-static" flag exists, but is broken.
14427 lt_prog_compiler_static_CXX=
14430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14431 # Instead, we relocate shared libraries at runtime.
14434 if test -d /usr/nec; then
14435 lt_prog_compiler_pic_CXX=-Kconform_pic
14439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14441 # sets the default TLS model and affects inlining.
14446 lt_prog_compiler_pic_CXX='-fPIC'
14451 # QNX uses GNU C++, but need to define -shared option too, otherwise
14452 # it will coredump.
14453 lt_prog_compiler_pic_CXX='-fPIC -shared'
14456 lt_prog_compiler_pic_CXX='-fPIC'
14462 # All AIX code is PIC.
14463 if test "$host_cpu" = ia64; then
14464 # AIX 5 now supports IA64 processor
14465 lt_prog_compiler_static_CXX='-Bstatic'
14467 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14471 case $cc_basename in
14473 # Green Hills C++ Compiler
14474 # _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"
14478 mingw* | cygwin* | os2* | pw32* | cegcc*)
14479 # This hack is so that the source file can tell whether it is being
14480 # built for inclusion in a dll (and should export symbols for example).
14481 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14484 case $cc_basename in
14486 lt_prog_compiler_pic_CXX='-KPIC'
14489 # Green Hills C++ Compiler
14490 lt_prog_compiler_pic_CXX='-pic'
14496 freebsd* | dragonfly*)
14497 # FreeBSD uses GNU C++
14499 hpux9* | hpux10* | hpux11*)
14500 case $cc_basename in
14502 lt_prog_compiler_wl_CXX='-Wl,'
14503 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14504 if test "$host_cpu" != ia64; then
14505 lt_prog_compiler_pic_CXX='+Z'
14509 lt_prog_compiler_wl_CXX='-Wl,'
14510 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14516 lt_prog_compiler_pic_CXX='+Z'
14525 # This is c89, which is MS Visual C++ (no shared libs)
14526 # Anyone wants to do a port?
14528 irix5* | irix6* | nonstopux*)
14529 case $cc_basename in
14531 lt_prog_compiler_wl_CXX='-Wl,'
14532 lt_prog_compiler_static_CXX='-non_shared'
14533 # CC pic flag -KPIC is the default.
14539 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14540 case $cc_basename in
14543 lt_prog_compiler_wl_CXX='--backend -Wl,'
14544 lt_prog_compiler_pic_CXX='-fPIC'
14547 # old Intel C++ for x86_64 which still supported -KPIC.
14548 lt_prog_compiler_wl_CXX='-Wl,'
14549 lt_prog_compiler_pic_CXX='-KPIC'
14550 lt_prog_compiler_static_CXX='-static'
14553 # Intel C++, used to be incompatible with GCC.
14554 # ICC 10 doesn't accept -KPIC any more.
14555 lt_prog_compiler_wl_CXX='-Wl,'
14556 lt_prog_compiler_pic_CXX='-fPIC'
14557 lt_prog_compiler_static_CXX='-static'
14560 # Portland Group C++ compiler
14561 lt_prog_compiler_wl_CXX='-Wl,'
14562 lt_prog_compiler_pic_CXX='-fpic'
14563 lt_prog_compiler_static_CXX='-Bstatic'
14567 # Make sure the PIC flag is empty. It appears that all Alpha
14568 # Linux and Compaq Tru64 Unix objects are PIC.
14569 lt_prog_compiler_pic_CXX=
14570 lt_prog_compiler_static_CXX='-non_shared'
14572 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14573 # IBM XL 8.0, 9.0 on PPC and BlueGene
14574 lt_prog_compiler_wl_CXX='-Wl,'
14575 lt_prog_compiler_pic_CXX='-qpic'
14576 lt_prog_compiler_static_CXX='-qstaticlink'
14579 case `$CC -V 2>&1 | sed 5q` in
14582 lt_prog_compiler_pic_CXX='-KPIC'
14583 lt_prog_compiler_static_CXX='-Bstatic'
14584 lt_prog_compiler_wl_CXX='-Qoption ld '
14595 case $cc_basename in
14597 lt_prog_compiler_pic_CXX='-W c,exportall'
14606 # QNX uses GNU C++, but need to define -shared option too, otherwise
14607 # it will coredump.
14608 lt_prog_compiler_pic_CXX='-fPIC -shared'
14610 osf3* | osf4* | osf5*)
14611 case $cc_basename in
14613 lt_prog_compiler_wl_CXX='--backend -Wl,'
14616 # Rational C++ 2.4.1
14617 lt_prog_compiler_pic_CXX='-pic'
14620 # Digital/Compaq C++
14621 lt_prog_compiler_wl_CXX='-Wl,'
14622 # Make sure the PIC flag is empty. It appears that all Alpha
14623 # Linux and Compaq Tru64 Unix objects are PIC.
14624 lt_prog_compiler_pic_CXX=
14625 lt_prog_compiler_static_CXX='-non_shared'
14634 case $cc_basename in
14636 # Sun C++ 4.2, 5.x and Centerline C++
14637 lt_prog_compiler_pic_CXX='-KPIC'
14638 lt_prog_compiler_static_CXX='-Bstatic'
14639 lt_prog_compiler_wl_CXX='-Qoption ld '
14642 # Green Hills C++ Compiler
14643 lt_prog_compiler_pic_CXX='-PIC'
14650 case $cc_basename in
14653 lt_prog_compiler_pic_CXX='-pic'
14654 lt_prog_compiler_static_CXX='-Bstatic'
14658 lt_prog_compiler_pic_CXX='-pic'
14664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14665 case $cc_basename in
14667 lt_prog_compiler_wl_CXX='-Wl,'
14668 lt_prog_compiler_pic_CXX='-KPIC'
14669 lt_prog_compiler_static_CXX='-Bstatic'
14674 case $cc_basename in
14676 # NonStop-UX NCC 3.20
14677 lt_prog_compiler_pic_CXX='-KPIC'
14686 lt_prog_compiler_can_build_shared_CXX=no
14692 # For platforms which do not support PIC, -DPIC is meaningless:
14694 lt_prog_compiler_pic_CXX=
14697 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14702 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14703 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14704 $as_echo_n "(cached) " >&6
14706 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14709 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14710 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14713 # Check to make sure the PIC flag actually works.
14715 if test -n "$lt_prog_compiler_pic_CXX"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14717 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14718 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14719 $as_echo_n "(cached) " >&6
14721 lt_cv_prog_compiler_pic_works_CXX=no
14722 ac_outfile=conftest.$ac_objext
14723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14724 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14725 # Insert the option either (1) after the last *FLAGS variable, or
14726 # (2) before a word containing "conftest.", or (3) at the end.
14727 # Note that $ac_compile itself does not contain backslashes and begins
14728 # with a dollar sign (not a hyphen), so the echo should work correctly.
14729 # The option is referenced via a variable to avoid confusing sed.
14730 lt_compile=`echo "$ac_compile" | $SED \
14731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14733 -e 's:$: $lt_compiler_flag:'`
14734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14735 (eval "$lt_compile" 2>conftest.err)
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 if (exit $ac_status) && test -s "$ac_outfile"; then
14740 # The compiler can only warn and ignore the option if not recognized
14741 # So say no if there are warnings other than the usual output.
14742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14745 lt_cv_prog_compiler_pic_works_CXX=yes
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14752 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14754 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14755 case $lt_prog_compiler_pic_CXX in
14757 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14760 lt_prog_compiler_pic_CXX=
14761 lt_prog_compiler_can_build_shared_CXX=no
14771 # Check to make sure the static flag actually works.
14773 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14775 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14776 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14777 $as_echo_n "(cached) " >&6
14779 lt_cv_prog_compiler_static_works_CXX=no
14780 save_LDFLAGS="$LDFLAGS"
14781 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14784 # The linker can only warn and ignore the option if not recognized
14785 # So say no if there are warnings
14786 if test -s conftest.err; then
14787 # Append any errors to the config.log.
14788 cat conftest.err 1>&5
14789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14791 if diff conftest.exp conftest.er2 >/dev/null; then
14792 lt_cv_prog_compiler_static_works_CXX=yes
14795 lt_cv_prog_compiler_static_works_CXX=yes
14799 LDFLAGS="$save_LDFLAGS"
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14803 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14805 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14808 lt_prog_compiler_static_CXX=
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14816 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14817 $as_echo_n "(cached) " >&6
14819 lt_cv_prog_compiler_c_o_CXX=no
14820 $RM -r conftest 2>/dev/null
14824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14826 lt_compiler_flag="-o out/conftest2.$ac_objext"
14827 # Insert the option either (1) after the last *FLAGS variable, or
14828 # (2) before a word containing "conftest.", or (3) at the end.
14829 # Note that $ac_compile itself does not contain backslashes and begins
14830 # with a dollar sign (not a hyphen), so the echo should work correctly.
14831 lt_compile=`echo "$ac_compile" | $SED \
14832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14834 -e 's:$: $lt_compiler_flag:'`
14835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14836 (eval "$lt_compile" 2>out/conftest.err)
14838 cat out/conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14842 # The compiler can only warn and ignore the option if not recognized
14843 # So say no if there are warnings
14844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14847 lt_cv_prog_compiler_c_o_CXX=yes
14852 # SGI C++ compiler will create directory out/ii_files/ for
14853 # template instantiation
14854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14855 $RM out/* && rmdir out
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14862 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14868 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14869 $as_echo_n "(cached) " >&6
14871 lt_cv_prog_compiler_c_o_CXX=no
14872 $RM -r conftest 2>/dev/null
14876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14878 lt_compiler_flag="-o out/conftest2.$ac_objext"
14879 # Insert the option either (1) after the last *FLAGS variable, or
14880 # (2) before a word containing "conftest.", or (3) at the end.
14881 # Note that $ac_compile itself does not contain backslashes and begins
14882 # with a dollar sign (not a hyphen), so the echo should work correctly.
14883 lt_compile=`echo "$ac_compile" | $SED \
14884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14886 -e 's:$: $lt_compiler_flag:'`
14887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14888 (eval "$lt_compile" 2>out/conftest.err)
14890 cat out/conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14894 # The compiler can only warn and ignore the option if not recognized
14895 # So say no if there are warnings
14896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14899 lt_cv_prog_compiler_c_o_CXX=yes
14904 # SGI C++ compiler will create directory out/ii_files/ for
14905 # template instantiation
14906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14907 $RM out/* && rmdir out
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14914 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14919 hard_links="nottested"
14920 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14921 # do not overwrite the value of need_locks provided by the user
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14923 $as_echo_n "checking if we can lock with hard links... " >&6; }
14926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14928 ln conftest.a conftest.b 2>&5 || hard_links=no
14929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14931 $as_echo "$hard_links" >&6; }
14932 if test "$hard_links" = no; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14934 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14944 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14947 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14950 # If we're using GNU nm, then we don't want the "-C" option.
14951 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14952 # Also, AIX nm treats weak defined symbols like other global defined
14953 # symbols, whereas GNU nm marks them as "W".
14954 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14955 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14957 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14961 export_symbols_cmds_CXX="$ltdll_cmds"
14963 cygwin* | mingw* | cegcc*)
14964 case $cc_basename in
14966 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14969 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'
14970 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14975 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14980 $as_echo "$ld_shlibs_CXX" >&6; }
14981 test "$ld_shlibs_CXX" = no && can_build_shared=no
14983 with_gnu_ld_CXX=$with_gnu_ld
14991 # Do we need to explicitly link libc?
14993 case "x$archive_cmds_need_lc_CXX" in
14995 # Assume -lc should be added
14996 archive_cmds_need_lc_CXX=yes
14998 if test "$enable_shared" = yes && test "$GCC" = yes; then
14999 case $archive_cmds_CXX in
15001 # FIXME: we may have to deal with multi-command sequences.
15004 # Test whether the compiler implicitly links with -lc since on some
15005 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15006 # to ld, don't add -lc before -lgcc.
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15008 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15009 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15010 $as_echo_n "(cached) " >&6
15013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15016 (eval $ac_compile) 2>&5
15018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15019 test $ac_status = 0; } 2>conftest.err; then
15022 libobjs=conftest.$ac_objext
15024 wl=$lt_prog_compiler_wl_CXX
15025 pic_flag=$lt_prog_compiler_pic_CXX
15031 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15032 allow_undefined_flag_CXX=
15033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15034 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037 test $ac_status = 0; }
15039 lt_cv_archive_cmds_need_lc_CXX=no
15041 lt_cv_archive_cmds_need_lc_CXX=yes
15043 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15045 cat conftest.err 1>&5
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15051 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15052 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15121 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15123 library_names_spec=
15124 libname_spec='lib$name'
15128 postuninstall_cmds=
15132 shlibpath_overrides_runpath=unknown
15134 dynamic_linker="$host_os ld.so"
15135 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15136 need_lib_prefix=unknown
15137 hardcode_into_libs=no
15139 # when you set need_version to no, make sure it does not cause -set_version
15140 # flags to be left without arguments
15141 need_version=unknown
15145 version_type=linux # correct to gnu/linux during the next big refactor
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15147 shlibpath_var=LIBPATH
15149 # AIX 3 has no versioning support, so we append a major version to the name.
15150 soname_spec='${libname}${release}${shared_ext}$major'
15154 version_type=linux # correct to gnu/linux during the next big refactor
15157 hardcode_into_libs=yes
15158 if test "$host_cpu" = ia64; then
15159 # AIX 5 supports IA64
15160 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15161 shlibpath_var=LD_LIBRARY_PATH
15163 # With GCC up to 2.95.x, collect2 would create an import file
15164 # for dependence libraries. The import file would start with
15165 # the line `#! .'. This would cause the generated library to
15166 # depend on `.', always an invalid library. This was fixed in
15167 # development snapshots of GCC prior to 3.0.
15169 aix4 | aix4.[01] | aix4.[01].*)
15170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15172 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15175 can_build_shared=no
15179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15180 # soname into executable. Probably we can add versioning support to
15181 # collect2, so additional links can be useful in future.
15182 if test "$aix_use_runtimelinking" = yes; then
15183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15184 # instead of lib<name>.a to let people know that these are not
15185 # typical AIX shared libraries.
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 # We preserve .a as extension for shared libraries through AIX4.2
15189 # and later when we are not doing run time linking.
15190 library_names_spec='${libname}${release}.a $libname.a'
15191 soname_spec='${libname}${release}${shared_ext}$major'
15193 shlibpath_var=LIBPATH
15200 # Since July 2007 AmigaOS4 officially supports .so libraries.
15201 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 library_names_spec='$libname.ixlibrary $libname.a'
15206 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15207 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15213 library_names_spec='${libname}${shared_ext}'
15214 dynamic_linker="$host_os ld.so"
15215 shlibpath_var=LIBRARY_PATH
15219 version_type=linux # correct to gnu/linux during the next big refactor
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15227 # the default ld.so.conf also contains /usr/contrib/lib and
15228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15229 # libtool to hard-code these into programs
15232 cygwin* | mingw* | pw32* | cegcc*)
15233 version_type=windows
15238 case $GCC,$cc_basename in
15241 library_names_spec='$libname.dll.a'
15242 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15243 postinstall_cmds='base_file=`basename \${file}`~
15244 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15245 dldir=$destdir/`dirname \$dlpath`~
15246 test -d \$dldir || mkdir -p \$dldir~
15247 $install_prog $dir/$dlname \$dldir/$dlname~
15248 chmod a+x \$dldir/$dlname~
15249 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15250 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15252 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15253 dlpath=$dir/\$dldll~
15255 shlibpath_overrides_runpath=yes
15259 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15260 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15264 # MinGW DLLs use traditional 'lib' prefix
15265 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15268 # pw32 DLLs use 'pw' prefix rather than 'lib'
15269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15272 dynamic_linker='Win32 ld.exe'
15277 libname_spec='$name'
15278 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15279 library_names_spec='${libname}.dll.lib'
15283 sys_lib_search_path_spec=
15286 for lt_path in $LIB
15289 # Let DOS variable expansion print the short 8.3 style file name.
15290 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15291 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15294 # Convert to MSYS style.
15295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15298 # Convert to unix form, then to dos form, then back to unix form
15299 # but this time dos style (no spaces!) so that the unix form looks
15300 # like /cygdrive/c/PROGRA~1:/cygdr...
15301 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15302 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15303 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15306 sys_lib_search_path_spec="$LIB"
15307 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15308 # It is most probably a Windows format PATH.
15309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15313 # FIXME: find the short name or the path components, as spaces are
15314 # common. (e.g. "Program Files" -> "PROGRA~1")
15318 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15319 postinstall_cmds='base_file=`basename \${file}`~
15320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15321 dldir=$destdir/`dirname \$dlpath`~
15322 test -d \$dldir || mkdir -p \$dldir~
15323 $install_prog $dir/$dlname \$dldir/$dlname'
15324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15325 dlpath=$dir/\$dldll~
15327 shlibpath_overrides_runpath=yes
15328 dynamic_linker='Win32 link.exe'
15332 # Assume MSVC wrapper
15333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15334 dynamic_linker='Win32 ld.exe'
15337 # FIXME: first we should search . and the directory the executable is in
15341 darwin* | rhapsody*)
15342 dynamic_linker="$host_os dyld"
15343 version_type=darwin
15346 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15347 soname_spec='${libname}${release}${major}$shared_ext'
15348 shlibpath_overrides_runpath=yes
15349 shlibpath_var=DYLD_LIBRARY_PATH
15350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15352 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15356 version_type=linux # correct to gnu/linux during the next big refactor
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15364 freebsd* | dragonfly*)
15365 # DragonFly does not have aout. When/if they implement a new
15366 # versioning mechanism, adjust this.
15367 if test -x /usr/bin/objformat; then
15368 objformat=`/usr/bin/objformat`
15371 freebsd[23].*) objformat=aout ;;
15372 *) objformat=elf ;;
15375 version_type=freebsd-$objformat
15376 case $version_type in
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15387 shlibpath_var=LD_LIBRARY_PATH
15390 shlibpath_overrides_runpath=yes
15392 freebsd3.[01]* | freebsdelf3.[01]*)
15393 shlibpath_overrides_runpath=yes
15394 hardcode_into_libs=yes
15396 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15397 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15398 shlibpath_overrides_runpath=no
15399 hardcode_into_libs=yes
15401 *) # from 4.6 on, and DragonFly
15402 shlibpath_overrides_runpath=yes
15403 hardcode_into_libs=yes
15409 version_type=linux # correct to gnu/linux during the next big refactor
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15413 soname_spec='${libname}${release}${shared_ext}$major'
15414 shlibpath_var=LD_LIBRARY_PATH
15415 shlibpath_overrides_runpath=no
15416 hardcode_into_libs=yes
15420 version_type=linux # correct to gnu/linux during the next big refactor
15423 dynamic_linker="$host_os runtime_loader"
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 shlibpath_var=LIBRARY_PATH
15427 shlibpath_overrides_runpath=yes
15428 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15429 hardcode_into_libs=yes
15432 hpux9* | hpux10* | hpux11*)
15433 # Give a soname corresponding to the major version so that dld.sl refuses to
15434 # link against other versions.
15441 hardcode_into_libs=yes
15442 dynamic_linker="$host_os dld.so"
15443 shlibpath_var=LD_LIBRARY_PATH
15444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 if test "X$HPUX_IA64_MODE" = X32; then
15448 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15450 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 hardcode_into_libs=yes
15457 dynamic_linker="$host_os dld.sl"
15458 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15467 dynamic_linker="$host_os dld.sl"
15468 shlibpath_var=SHLIB_PATH
15469 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15474 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15475 postinstall_cmds='chmod 555 $lib'
15476 # or fails outright, so override atomically:
15477 install_override_mode=555
15481 version_type=linux # correct to gnu/linux during the next big refactor
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=no
15489 hardcode_into_libs=yes
15492 irix5* | irix6* | nonstopux*)
15494 nonstopux*) version_type=nonstopux ;;
15496 if test "$lt_cv_prog_gnu_ld" = yes; then
15497 version_type=linux # correct to gnu/linux during the next big refactor
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15507 irix5* | nonstopux*)
15508 libsuff= shlibsuff=
15511 case $LD in # libtool.m4 will add one of these switches to LD
15512 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15513 libsuff= shlibsuff= libmagic=32-bit;;
15514 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15515 libsuff=32 shlibsuff=N32 libmagic=N32;;
15516 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15517 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15518 *) libsuff= shlibsuff= libmagic=never-match;;
15522 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15523 shlibpath_overrides_runpath=no
15524 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15525 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15526 hardcode_into_libs=yes
15529 # No shared lib support for Linux oldld, aout, or coff.
15530 linux*oldld* | linux*aout* | linux*coff*)
15534 # This must be glibc/ELF.
15535 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15536 version_type=linux # correct to gnu/linux during the next big refactor
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15540 soname_spec='${libname}${release}${shared_ext}$major'
15541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 shlibpath_overrides_runpath=no
15545 # Some binutils ld are patched to set DT_RUNPATH
15546 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15547 $as_echo_n "(cached) " >&6
15549 lt_cv_shlibpath_overrides_runpath=no
15550 save_LDFLAGS=$LDFLAGS
15551 save_libdir=$libdir
15552 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15553 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15565 if ac_fn_cxx_try_link "$LINENO"; then :
15566 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15567 lt_cv_shlibpath_overrides_runpath=yes
15570 rm -f core conftest.err conftest.$ac_objext \
15571 conftest$ac_exeext conftest.$ac_ext
15572 LDFLAGS=$save_LDFLAGS
15573 libdir=$save_libdir
15577 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15579 # This implies no fast_install, which is unacceptable.
15580 # Some rework will be needed to allow for fast_install
15581 # before this can be enabled.
15582 hardcode_into_libs=yes
15584 # Append ld.so.conf contents to the search path
15585 if test -f /etc/ld.so.conf; then
15586 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' ' '`
15587 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15590 # We used to test for /lib/ld.so.1 and disable shared libraries on
15591 # powerpc, because MkLinux only supported shared libraries with the
15592 # GNU dynamic linker. Since this was broken with cross compilers,
15593 # most powerpc-linux boxes support dynamic linking these days and
15594 # people can always --disable-shared, the test was removed, and we
15595 # assume the GNU/Linux dynamic linker is in use.
15596 dynamic_linker='GNU/Linux ld.so'
15603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15606 dynamic_linker='NetBSD (a.out) ld.so'
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 dynamic_linker='NetBSD ld.elf_so'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 shlibpath_overrides_runpath=yes
15614 hardcode_into_libs=yes
15618 version_type=linux # correct to gnu/linux during the next big refactor
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 shlibpath_overrides_runpath=yes
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=no
15632 hardcode_into_libs=yes
15633 dynamic_linker='ldqnx.so'
15638 sys_lib_dlsearch_path_spec="/usr/lib"
15640 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15642 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15643 *) need_version=no ;;
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15650 openbsd2.[89] | openbsd2.[89].*)
15651 shlibpath_overrides_runpath=no
15654 shlibpath_overrides_runpath=yes
15658 shlibpath_overrides_runpath=yes
15663 libname_spec='$name'
15666 library_names_spec='$libname${shared_ext} $libname.a'
15667 dynamic_linker='OS/2 ld.exe'
15668 shlibpath_var=LIBPATH
15671 osf3* | osf4* | osf5*)
15675 soname_spec='${libname}${release}${shared_ext}$major'
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15687 version_type=linux # correct to gnu/linux during the next big refactor
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 shlibpath_overrides_runpath=yes
15694 hardcode_into_libs=yes
15695 # ldd complains unless libraries are executable
15696 postinstall_cmds='chmod +x $lib'
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 if test "$with_gnu_ld" = yes; then
15712 version_type=linux # correct to gnu/linux during the next big refactor
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 case $host_vendor in
15718 shlibpath_overrides_runpath=no
15720 runpath_var=LD_RUN_PATH
15728 shlibpath_overrides_runpath=no
15729 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15735 if test -d /usr/nec ;then
15736 version_type=linux # correct to gnu/linux during the next big refactor
15737 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15738 soname_spec='$libname${shared_ext}.$major'
15739 shlibpath_var=LD_LIBRARY_PATH
15743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15744 version_type=freebsd-elf
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15748 soname_spec='${libname}${release}${shared_ext}$major'
15749 shlibpath_var=LD_LIBRARY_PATH
15750 shlibpath_overrides_runpath=yes
15751 hardcode_into_libs=yes
15752 if test "$with_gnu_ld" = yes; then
15753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15755 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15758 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15762 sys_lib_dlsearch_path_spec='/usr/lib'
15766 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15767 version_type=linux # correct to gnu/linux during the next big refactor
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=no
15773 hardcode_into_libs=yes
15777 version_type=linux # correct to gnu/linux during the next big refactor
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 shlibpath_var=LD_LIBRARY_PATH
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15788 $as_echo "$dynamic_linker" >&6; }
15789 test "$dynamic_linker" = no && can_build_shared=no
15791 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15792 if test "$GCC" = yes; then
15793 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15796 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15797 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15799 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15800 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15841 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15842 hardcode_action_CXX=
15843 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15844 test -n "$runpath_var_CXX" ||
15845 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15847 # We can hardcode non-existent directories.
15848 if test "$hardcode_direct_CXX" != no &&
15849 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15850 # have to relink, otherwise we might link with an installed library
15851 # when we should be linking with a yet-to-be-installed one
15852 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15853 test "$hardcode_minus_L_CXX" != no; then
15854 # Linking always hardcodes the temporary library directory.
15855 hardcode_action_CXX=relink
15857 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15858 hardcode_action_CXX=immediate
15861 # We cannot hardcode anything, or else we can only hardcode existing
15863 hardcode_action_CXX=unsupported
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15866 $as_echo "$hardcode_action_CXX" >&6; }
15868 if test "$hardcode_action_CXX" = relink ||
15869 test "$inherit_rpath_CXX" = yes; then
15870 # Fast installation is not supported
15871 enable_fast_install=no
15872 elif test "$shlibpath_overrides_runpath" = yes ||
15873 test "$enable_shared" = no; then
15874 # Fast installation is not necessary
15875 enable_fast_install=needless
15884 fi # test -n "$compiler"
15887 CFLAGS=$lt_save_CFLAGS
15891 with_gnu_ld=$lt_save_with_gnu_ld
15892 lt_cv_path_LDCXX=$lt_cv_path_LD
15893 lt_cv_path_LD=$lt_save_path_LD
15894 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15895 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15896 fi # test "$_lt_caught_CXX_error" != yes
15899 ac_cpp='$CPP $CPPFLAGS'
15900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15911 if test -n "$GCC"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15913 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15914 if ${gl_cv_cc_vis_werror+:} false; then :
15915 $as_echo_n "(cached) " >&6
15918 gl_save_CFLAGS="$CFLAGS"
15919 CFLAGS="$CFLAGS -Werror"
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h. */
15931 if ac_fn_c_try_compile "$LINENO"; then :
15932 gl_cv_cc_vis_werror=yes
15934 gl_cv_cc_vis_werror=no
15936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 CFLAGS="$gl_save_CFLAGS"
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15941 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15943 $as_echo_n "checking for simple visibility declarations... " >&6; }
15944 if ${gl_cv_cc_visibility+:} false; then :
15945 $as_echo_n "(cached) " >&6
15948 gl_save_CFLAGS="$CFLAGS"
15949 CFLAGS="$CFLAGS -fvisibility=hidden"
15950 if test $gl_cv_cc_vis_werror = yes; then
15951 CFLAGS="$CFLAGS -Werror"
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15956 extern __attribute__((__visibility__("default"))) int exportedvar;
15957 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15958 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15959 void dummyfunc (void) {}
15969 if ac_fn_c_try_compile "$LINENO"; then :
15970 gl_cv_cc_visibility=yes
15972 gl_cv_cc_visibility=no
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 CFLAGS="$gl_save_CFLAGS"
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15979 $as_echo "$gl_cv_cc_visibility" >&6; }
15980 if test $gl_cv_cc_visibility = yes; then
15981 CFLAG_VISIBILITY="-fvisibility=hidden"
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15993 if test -n "$CFLAG_VISIBILITY" ; then :
15995 AM_CPPFLAGS="$AM_CPPFLAGS $CFLAG_VISIBILITY"
15996 CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"
16000 # Check whether --enable-silent-rules was given.
16001 if test "${enable_silent_rules+set}" = set; then :
16002 enableval=$enable_silent_rules;
16005 case $enable_silent_rules in # (((
16006 yes) AM_DEFAULT_VERBOSITY=0;;
16007 no) AM_DEFAULT_VERBOSITY=1;;
16008 *) AM_DEFAULT_VERBOSITY=0;;
16010 am_make=${MAKE-make}
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16012 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16013 if ${am_cv_make_support_nested_variables+:} false; then :
16014 $as_echo_n "(cached) " >&6
16016 if $as_echo 'TRUE=$(BAR$(V))
16022 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16023 am_cv_make_support_nested_variables=yes
16025 am_cv_make_support_nested_variables=no
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16029 $as_echo "$am_cv_make_support_nested_variables" >&6; }
16030 if test $am_cv_make_support_nested_variables = yes; then
16032 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16034 AM_V=$AM_DEFAULT_VERBOSITY
16035 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16040 for ac_func in gethostbyname
16042 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16043 if test "x$ac_cv_func_gethostbyname" = xyes; then :
16044 cat >>confdefs.h <<_ACEOF
16045 #define HAVE_GETHOSTBYNAME 1
16051 for ac_func in getaddrinfo
16053 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16054 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_GETADDRINFO 1
16062 for ac_func in gettimeofday
16064 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16065 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16066 cat >>confdefs.h <<_ACEOF
16067 #define HAVE_GETTIMEOFDAY 1
16073 for ac_func in inet_ntoa
16075 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
16076 if test "x$ac_cv_func_inet_ntoa" = xyes; then :
16077 cat >>confdefs.h <<_ACEOF
16078 #define HAVE_INET_NTOA 1
16084 for ac_func in memset
16086 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
16087 if test "x$ac_cv_func_memset" = xyes; then :
16088 cat >>confdefs.h <<_ACEOF
16089 #define HAVE_MEMSET 1
16095 for ac_func in socket
16097 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16098 if test "x$ac_cv_func_socket" = xyes; then :
16099 cat >>confdefs.h <<_ACEOF
16100 #define HAVE_SOCKET 1
16106 for ac_header in arpa/inet.h
16108 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16109 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16110 cat >>confdefs.h <<_ACEOF
16111 #define HAVE_ARPA_INET_H 1
16118 for ac_header in fcntl.h
16120 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
16121 if test "x$ac_cv_header_fcntl_h" = xyes; then :
16122 cat >>confdefs.h <<_ACEOF
16123 #define HAVE_FCNTL_H 1
16130 for ac_header in limits.h
16132 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16133 if test "x$ac_cv_header_limits_h" = xyes; then :
16134 cat >>confdefs.h <<_ACEOF
16135 #define HAVE_LIMITS_H 1
16142 for ac_header in netdb.h
16144 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
16145 if test "x$ac_cv_header_netdb_h" = xyes; then :
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_NETDB_H 1
16154 for ac_header in netinet/in.h
16156 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16157 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16158 cat >>confdefs.h <<_ACEOF
16159 #define HAVE_NETINET_IN_H 1
16166 for ac_header in stddef.h
16168 ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
16169 if test "x$ac_cv_header_stddef_h" = xyes; then :
16170 cat >>confdefs.h <<_ACEOF
16171 #define HAVE_STDDEF_H 1
16178 for ac_header in sys/ioctl.h
16180 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
16181 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
16182 cat >>confdefs.h <<_ACEOF
16183 #define HAVE_SYS_IOCTL_H 1
16190 for ac_header in sys/socket.h
16192 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
16193 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
16194 cat >>confdefs.h <<_ACEOF
16195 #define HAVE_SYS_SOCKET_H 1
16202 for ac_header in sys/time.h
16204 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16205 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16206 cat >>confdefs.h <<_ACEOF
16207 #define HAVE_SYS_TIME_H 1
16214 for ac_header in errno.h
16216 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
16217 if test "x$ac_cv_header_errno_h" = xyes; then :
16218 cat >>confdefs.h <<_ACEOF
16219 #define HAVE_ERRNO_H 1
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
16227 $as_echo_n "checking for socket in -lnetwork... " >&6; }
16228 if ${ac_cv_lib_network_socket+:} false; then :
16229 $as_echo_n "(cached) " >&6
16231 ac_check_lib_save_LIBS=$LIBS
16232 LIBS="-lnetwork $LIBS"
16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h. */
16236 /* Override any GCC internal prototype to avoid an error.
16237 Use char because int might match the return type of a GCC
16238 builtin and then its argument prototype would still apply. */
16251 if ac_fn_c_try_link "$LINENO"; then :
16252 ac_cv_lib_network_socket=yes
16254 ac_cv_lib_network_socket=no
16256 rm -f core conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
16261 $as_echo "$ac_cv_lib_network_socket" >&6; }
16262 if test "x$ac_cv_lib_network_socket" = xyes; then :
16263 cat >>confdefs.h <<_ACEOF
16264 #define HAVE_LIBNETWORK 1
16267 LIBS="-lnetwork $LIBS"
16271 # The cast to long int works around a bug in the HP C Compiler
16272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16274 # This bug is HP SR number 8606223364.
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16276 $as_echo_n "checking size of long long... " >&6; }
16277 if ${ac_cv_sizeof_long_long+:} false; then :
16278 $as_echo_n "(cached) " >&6
16280 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16283 if test "$ac_cv_type_long_long" = yes; then
16284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16286 as_fn_error 77 "cannot compute sizeof (long long)
16287 See \`config.log' for more details" "$LINENO" 5; }
16289 ac_cv_sizeof_long_long=0
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16295 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16299 cat >>confdefs.h <<_ACEOF
16300 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16304 # The cast to long int works around a bug in the HP C Compiler
16305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16307 # This bug is HP SR number 8606223364.
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16309 $as_echo_n "checking size of long... " >&6; }
16310 if ${ac_cv_sizeof_long+:} false; then :
16311 $as_echo_n "(cached) " >&6
16313 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16316 if test "$ac_cv_type_long" = yes; then
16317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16319 as_fn_error 77 "cannot compute sizeof (long)
16320 See \`config.log' for more details" "$LINENO" 5; }
16322 ac_cv_sizeof_long=0
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16328 $as_echo "$ac_cv_sizeof_long" >&6; }
16332 cat >>confdefs.h <<_ACEOF
16333 #define SIZEOF_LONG $ac_cv_sizeof_long
16337 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
16338 if test "x$ac_cv_type___uint128_t" = xyes; then :
16340 cat >>confdefs.h <<_ACEOF
16341 #define HAVE___UINT128_T 1
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16348 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16349 if ${ac_cv_c_bigendian+:} false; then :
16350 $as_echo_n "(cached) " >&6
16352 ac_cv_c_bigendian=unknown
16353 # See if we're dealing with a universal compiler.
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 #ifndef __APPLE_CC__
16357 not a universal capable compiler
16362 if ac_fn_c_try_compile "$LINENO"; then :
16364 # Check for potential -arch flags. It is not universal unless
16365 # there are at least two -arch flags with different values.
16368 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16369 if test -n "$ac_prev"; then
16371 i?86 | x86_64 | ppc | ppc64)
16372 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16375 ac_cv_c_bigendian=universal
16381 elif test "x$ac_word" = "x-arch"; then
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 if test $ac_cv_c_bigendian = unknown; then
16388 # See if sys/param.h defines the BYTE_ORDER macro.
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 #include <sys/types.h>
16392 #include <sys/param.h>
16397 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16398 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16400 bogus endian macros
16407 if ac_fn_c_try_compile "$LINENO"; then :
16408 # It does; now see whether it defined to BIG_ENDIAN or not.
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16411 #include <sys/types.h>
16412 #include <sys/param.h>
16417 #if BYTE_ORDER != BIG_ENDIAN
16425 if ac_fn_c_try_compile "$LINENO"; then :
16426 ac_cv_c_bigendian=yes
16428 ac_cv_c_bigendian=no
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 if test $ac_cv_c_bigendian = unknown; then
16435 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h. */
16438 #include <limits.h>
16443 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16444 bogus endian macros
16451 if ac_fn_c_try_compile "$LINENO"; then :
16452 # It does; now see whether it defined to _BIG_ENDIAN or not.
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16455 #include <limits.h>
16460 #ifndef _BIG_ENDIAN
16468 if ac_fn_c_try_compile "$LINENO"; then :
16469 ac_cv_c_bigendian=yes
16471 ac_cv_c_bigendian=no
16473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16477 if test $ac_cv_c_bigendian = unknown; then
16478 # Compile a test program.
16479 if test "$cross_compiling" = yes; then :
16480 # Try to guess by grepping values from an object file.
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16483 short int ascii_mm[] =
16484 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16485 short int ascii_ii[] =
16486 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16487 int use_ascii (int i) {
16488 return ascii_mm[i] + ascii_ii[i];
16490 short int ebcdic_ii[] =
16491 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16492 short int ebcdic_mm[] =
16493 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16494 int use_ebcdic (int i) {
16495 return ebcdic_mm[i] + ebcdic_ii[i];
16502 return use_ascii (foo) == use_ebcdic (foo);
16507 if ac_fn_c_try_compile "$LINENO"; then :
16508 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16509 ac_cv_c_bigendian=yes
16511 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16512 if test "$ac_cv_c_bigendian" = unknown; then
16513 ac_cv_c_bigendian=no
16515 # finding both strings is unlikely to happen, but who knows?
16516 ac_cv_c_bigendian=unknown
16520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16524 $ac_includes_default
16529 /* Are we little or big endian? From Harbison&Steele. */
16533 char c[sizeof (long int)];
16536 return u.c[sizeof (long int) - 1] == 1;
16542 if ac_fn_c_try_run "$LINENO"; then :
16543 ac_cv_c_bigendian=no
16545 ac_cv_c_bigendian=yes
16547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16548 conftest.$ac_objext conftest.beam conftest.$ac_ext
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16554 $as_echo "$ac_cv_c_bigendian" >&6; }
16555 case $ac_cv_c_bigendian in #(
16557 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16563 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16567 as_fn_error $? "unknown endianness
16568 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16571 # mktime check takes forever on some systems, if time supported it would be
16572 # highly unusual for mktime to be missing
16576 ac_cpp='$CPP $CPPFLAGS'
16577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16580 if test -n "$ac_tool_prefix"; then
16581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16582 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16584 $as_echo_n "checking for $ac_word... " >&6; }
16585 if ${ac_cv_prog_CC+:} false; then :
16586 $as_echo_n "(cached) " >&6
16588 if test -n "$CC"; then
16589 ac_cv_prog_CC="$CC" # Let the user override the test.
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16609 if test -n "$CC"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16611 $as_echo "$CC" >&6; }
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16619 if test -z "$ac_cv_prog_CC"; then
16621 # Extract the first word of "gcc", so it can be a program name with args.
16622 set dummy gcc; ac_word=$2
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16624 $as_echo_n "checking for $ac_word... " >&6; }
16625 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16626 $as_echo_n "(cached) " >&6
16628 if test -n "$ac_ct_CC"; then
16629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632 for as_dir in $PATH
16635 test -z "$as_dir" && as_dir=.
16636 for ac_exec_ext in '' $ac_executable_extensions; do
16637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16638 ac_cv_prog_ac_ct_CC="gcc"
16639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16649 if test -n "$ac_ct_CC"; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16651 $as_echo "$ac_ct_CC" >&6; }
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654 $as_echo "no" >&6; }
16657 if test "x$ac_ct_CC" = x; then
16660 case $cross_compiling:$ac_tool_warned in
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16664 ac_tool_warned=yes ;;
16669 CC="$ac_cv_prog_CC"
16672 if test -z "$CC"; then
16673 if test -n "$ac_tool_prefix"; then
16674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16675 set dummy ${ac_tool_prefix}cc; ac_word=$2
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16677 $as_echo_n "checking for $ac_word... " >&6; }
16678 if ${ac_cv_prog_CC+:} false; then :
16679 $as_echo_n "(cached) " >&6
16681 if test -n "$CC"; then
16682 ac_cv_prog_CC="$CC" # Let the user override the test.
16684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685 for as_dir in $PATH
16688 test -z "$as_dir" && as_dir=.
16689 for ac_exec_ext in '' $ac_executable_extensions; do
16690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16691 ac_cv_prog_CC="${ac_tool_prefix}cc"
16692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16702 if test -n "$CC"; then
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16704 $as_echo "$CC" >&6; }
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16713 if test -z "$CC"; then
16714 # Extract the first word of "cc", so it can be a program name with args.
16715 set dummy cc; ac_word=$2
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16717 $as_echo_n "checking for $ac_word... " >&6; }
16718 if ${ac_cv_prog_CC+:} false; then :
16719 $as_echo_n "(cached) " >&6
16721 if test -n "$CC"; then
16722 ac_cv_prog_CC="$CC" # Let the user override the test.
16724 ac_prog_rejected=no
16725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16726 for as_dir in $PATH
16729 test -z "$as_dir" && as_dir=.
16730 for ac_exec_ext in '' $ac_executable_extensions; do
16731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16733 ac_prog_rejected=yes
16737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16744 if test $ac_prog_rejected = yes; then
16745 # We found a bogon in the path, so make sure we never use it.
16746 set dummy $ac_cv_prog_CC
16748 if test $# != 0; then
16749 # We chose a different compiler from the bogus one.
16750 # However, it has the same basename, so the bogon will be chosen
16751 # first if we set CC to just the basename; use the full file name.
16753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16759 if test -n "$CC"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16761 $as_echo "$CC" >&6; }
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16769 if test -z "$CC"; then
16770 if test -n "$ac_tool_prefix"; then
16771 for ac_prog in cl.exe
16773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16776 $as_echo_n "checking for $ac_word... " >&6; }
16777 if ${ac_cv_prog_CC+:} false; then :
16778 $as_echo_n "(cached) " >&6
16780 if test -n "$CC"; then
16781 ac_cv_prog_CC="$CC" # Let the user override the test.
16783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784 for as_dir in $PATH
16787 test -z "$as_dir" && as_dir=.
16788 for ac_exec_ext in '' $ac_executable_extensions; do
16789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16801 if test -n "$CC"; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16803 $as_echo "$CC" >&6; }
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16810 test -n "$CC" && break
16813 if test -z "$CC"; then
16815 for ac_prog in cl.exe
16817 # Extract the first word of "$ac_prog", so it can be a program name with args.
16818 set dummy $ac_prog; ac_word=$2
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16820 $as_echo_n "checking for $ac_word... " >&6; }
16821 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16822 $as_echo_n "(cached) " >&6
16824 if test -n "$ac_ct_CC"; then
16825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828 for as_dir in $PATH
16831 test -z "$as_dir" && as_dir=.
16832 for ac_exec_ext in '' $ac_executable_extensions; do
16833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16834 ac_cv_prog_ac_ct_CC="$ac_prog"
16835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16845 if test -n "$ac_ct_CC"; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16847 $as_echo "$ac_ct_CC" >&6; }
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16850 $as_echo "no" >&6; }
16854 test -n "$ac_ct_CC" && break
16857 if test "x$ac_ct_CC" = x; then
16860 case $cross_compiling:$ac_tool_warned in
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16864 ac_tool_warned=yes ;;
16873 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16875 as_fn_error $? "no acceptable C compiler found in \$PATH
16876 See \`config.log' for more details" "$LINENO" 5; }
16878 # Provide some information about the compiler.
16879 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16882 for ac_option in --version -v -V -qversion; do
16883 { { ac_try="$ac_compiler $ac_option >&5"
16884 case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16889 $as_echo "$ac_try_echo"; } >&5
16890 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16892 if test -s conftest.err; then
16894 ... rest of stderr output deleted ...
16895 10q' conftest.err >conftest.er1
16896 cat conftest.er1 >&5
16898 rm -f conftest.er1 conftest.err
16899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16900 test $ac_status = 0; }
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16904 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16905 if ${ac_cv_c_compiler_gnu+:} false; then :
16906 $as_echo_n "(cached) " >&6
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16922 if ac_fn_c_try_compile "$LINENO"; then :
16923 ac_compiler_gnu=yes
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16932 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16933 if test $ac_compiler_gnu = yes; then
16938 ac_test_CFLAGS=${CFLAGS+set}
16939 ac_save_CFLAGS=$CFLAGS
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16942 if ${ac_cv_prog_cc_g+:} false; then :
16943 $as_echo_n "(cached) " >&6
16945 ac_save_c_werror_flag=$ac_c_werror_flag
16946 ac_c_werror_flag=yes
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16960 if ac_fn_c_try_compile "$LINENO"; then :
16961 ac_cv_prog_cc_g=yes
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16975 if ac_fn_c_try_compile "$LINENO"; then :
16978 ac_c_werror_flag=$ac_save_c_werror_flag
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16991 if ac_fn_c_try_compile "$LINENO"; then :
16992 ac_cv_prog_cc_g=yes
16994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999 ac_c_werror_flag=$ac_save_c_werror_flag
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
17002 $as_echo "$ac_cv_prog_cc_g" >&6; }
17003 if test "$ac_test_CFLAGS" = set; then
17004 CFLAGS=$ac_save_CFLAGS
17005 elif test $ac_cv_prog_cc_g = yes; then
17006 if test "$GCC" = yes; then
17012 if test "$GCC" = yes; then
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
17019 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
17020 if ${ac_cv_prog_cc_c89+:} false; then :
17021 $as_echo_n "(cached) " >&6
17023 ac_cv_prog_cc_c89=no
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17027 #include <stdarg.h>
17030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
17031 struct buf { int x; };
17032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
17033 static char *e (p, i)
17039 static char *f (char * (*g) (char **, int), char **p, ...)
17044 s = g (p, va_arg (v,int));
17049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
17050 function prototypes and stuff, but not '\xHH' hex character constants.
17051 These don't provoke an error unfortunately, instead are silently treated
17052 as 'x'. The following induces an error, until -std is added to get
17053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
17054 array size at least. It's necessary to write '\x00'==0 to get something
17055 that's true only with -std. */
17056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17059 inside strings and character constants. */
17061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17063 int test (int i, double x);
17064 struct s1 {int (*f) (int a);};
17065 struct s2 {int (*f) (double a);};
17066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
17077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17080 CC="$ac_save_CC $ac_arg"
17081 if ac_fn_c_try_compile "$LINENO"; then :
17082 ac_cv_prog_cc_c89=$ac_arg
17084 rm -f core conftest.err conftest.$ac_objext
17085 test "x$ac_cv_prog_cc_c89" != "xno" && break
17087 rm -f conftest.$ac_ext
17092 case "x$ac_cv_prog_cc_c89" in
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17095 $as_echo "none needed" >&6; } ;;
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17098 $as_echo "unsupported" >&6; } ;;
17100 CC="$CC $ac_cv_prog_cc_c89"
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17102 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
17104 if test "x$ac_cv_prog_cc_c89" != xno; then :
17109 ac_cpp='$CPP $CPPFLAGS'
17110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17115 ac_cpp='$CPP $CPPFLAGS'
17116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
17120 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
17121 if ${am_cv_prog_cc_c_o+:} false; then :
17122 $as_echo_n "(cached) " >&6
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17135 # Make sure it works both with $CC and with simple cc.
17136 # Following AC_PROG_CC_C_O, we do the test twice because some
17137 # compilers refuse to overwrite an existing .o file with -o,
17138 # though they will create one.
17139 am_cv_prog_cc_c_o=yes
17140 for am_i in 1 2; do
17141 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
17142 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } \
17146 && test -f conftest2.$ac_objext; then
17149 am_cv_prog_cc_c_o=no
17153 rm -f core conftest*
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
17157 $as_echo "$am_cv_prog_cc_c_o" >&6; }
17158 if test "$am_cv_prog_cc_c_o" != yes; then
17159 # Losing compiler, so override with the script.
17160 # FIXME: It is wrong to rewrite CC.
17161 # But if we don't then we get into trouble of one sort or another.
17162 # A longer-term fix would be to have automake use am__CC in this case,
17163 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17164 CC="$am_aux_dir/compile $CC"
17167 ac_cpp='$CPP $CPPFLAGS'
17168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17173 depcc="$CC" am_compiler_list=
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17176 $as_echo_n "checking dependency style of $depcc... " >&6; }
17177 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17178 $as_echo_n "(cached) " >&6
17180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17181 # We make a subdir and do the tests there. Otherwise we can end up
17182 # making bogus files that we don't know about and never remove. For
17183 # instance it was reported that on HP-UX the gcc test will end up
17184 # making a dummy file named 'D' -- because '-MD' means "put the output
17186 rm -rf conftest.dir
17188 # Copy depcomp to subdir because otherwise we won't find it if we're
17189 # using a relative directory.
17190 cp "$am_depcomp" conftest.dir
17192 # We will build objects and dependencies in a subdirectory because
17193 # it helps to detect inapplicable dependency modes. For instance
17194 # both Tru64's cc and ICC support -MD to output dependencies as a
17195 # side effect of compilation, but ICC will put the dependencies in
17196 # the current directory while Tru64 will put them in the object
17200 am_cv_CC_dependencies_compiler_type=none
17201 if test "$am_compiler_list" = ""; then
17202 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17204 am__universal=false
17205 case " $depcc " in #(
17206 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17209 for depmode in $am_compiler_list; do
17210 # Setup a source with many dependencies, because some compilers
17211 # like to wrap large dependency lists on column 80 (with \), and
17212 # we should not choose a depcomp mode which is confused by this.
17214 # We need to recreate these files for each test, as the compiler may
17215 # overwrite some of them when testing with obscure command lines.
17216 # This happens at least with the AIX C compiler.
17218 for i in 1 2 3 4 5 6; do
17219 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17220 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17221 # Solaris 10 /bin/sh.
17222 echo '/* dummy */' > sub/conftst$i.h
17224 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17226 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17227 # mode. It turns out that the SunPro C++ compiler does not properly
17228 # handle '-M -o', and we need to detect this. Also, some Intel
17229 # versions had trouble with output in subdirs.
17230 am__obj=sub/conftest.${OBJEXT-o}
17231 am__minus_obj="-o $am__obj"
17234 # This depmode causes a compiler race in universal mode.
17235 test "$am__universal" = false || continue
17238 # After this tag, mechanisms are not by side-effect, so they'll
17239 # only be used when explicitly requested.
17240 if test "x$enable_dependency_tracking" = xyes; then
17246 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17247 # This compiler won't grok '-c -o', but also, the minuso test has
17248 # not run yet. These depmodes are late enough in the game, and
17249 # so weak that their functioning should not be impacted.
17250 am__obj=conftest.${OBJEXT-o}
17255 if depmode=$depmode \
17256 source=sub/conftest.c object=$am__obj \
17257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17258 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17259 >/dev/null 2>conftest.err &&
17260 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17262 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17264 # icc doesn't choke on unknown options, it will just issue warnings
17265 # or remarks (even with -Werror). So we grep stderr for any message
17266 # that says an option was ignored or not supported.
17267 # When given -MP, icc 7.0 and 7.1 complain thusly:
17268 # icc: Command line warning: ignoring option '-M'; no argument required
17269 # The diagnosis changed in icc 8.0:
17270 # icc: Command line remark: option '-MP' not supported
17271 if (grep 'ignoring option' conftest.err ||
17272 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17273 am_cv_CC_dependencies_compiler_type=$depmode
17280 rm -rf conftest.dir
17282 am_cv_CC_dependencies_compiler_type=none
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17287 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17288 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17291 test "x$enable_dependency_tracking" != xno \
17292 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17293 am__fastdepCC_TRUE=
17294 am__fastdepCC_FALSE='#'
17296 am__fastdepCC_TRUE='#'
17297 am__fastdepCC_FALSE=
17301 if test "x$CC" != xcc; then
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17303 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17306 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17308 set dummy $CC; ac_cc=`$as_echo "$2" |
17309 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17310 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17311 $as_echo_n "(cached) " >&6
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17324 # Make sure it works both with $CC and with simple cc.
17325 # We do the test twice because some compilers refuse to overwrite an
17326 # existing .o file with -o, though they will create one.
17327 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17329 if { { case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17334 $as_echo "$ac_try_echo"; } >&5
17335 (eval "$ac_try") 2>&5
17337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17338 test $ac_status = 0; } &&
17339 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17344 $as_echo "$ac_try_echo"; } >&5
17345 (eval "$ac_try") 2>&5
17347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17348 test $ac_status = 0; };
17350 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17351 if test "x$CC" != xcc; then
17352 # Test first that cc exists at all.
17353 if { ac_try='cc -c conftest.$ac_ext >&5'
17354 { { case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17359 $as_echo "$ac_try_echo"; } >&5
17360 (eval "$ac_try") 2>&5
17362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; }; }; then
17364 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17366 if { { case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17371 $as_echo "$ac_try_echo"; } >&5
17372 (eval "$ac_try") 2>&5
17374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17375 test $ac_status = 0; } &&
17376 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17381 $as_echo "$ac_try_echo"; } >&5
17382 (eval "$ac_try") 2>&5
17384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17385 test $ac_status = 0; };
17390 # cc exists but doesn't like -o.
17391 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17396 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17398 rm -f core conftest*
17401 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17403 $as_echo "yes" >&6; }
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406 $as_echo "no" >&6; }
17408 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17413 ac_cpp='$CXXCPP $CPPFLAGS'
17414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17417 if test -z "$CXX"; then
17418 if test -n "$CCC"; then
17421 if test -n "$ac_tool_prefix"; then
17422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17427 $as_echo_n "checking for $ac_word... " >&6; }
17428 if ${ac_cv_prog_CXX+:} false; then :
17429 $as_echo_n "(cached) " >&6
17431 if test -n "$CXX"; then
17432 ac_cv_prog_CXX="$CXX" # Let the user override the test.
17434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435 for as_dir in $PATH
17438 test -z "$as_dir" && as_dir=.
17439 for ac_exec_ext in '' $ac_executable_extensions; do
17440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17441 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17451 CXX=$ac_cv_prog_CXX
17452 if test -n "$CXX"; then
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
17454 $as_echo "$CXX" >&6; }
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17457 $as_echo "no" >&6; }
17461 test -n "$CXX" && break
17464 if test -z "$CXX"; then
17466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17468 # Extract the first word of "$ac_prog", so it can be a program name with args.
17469 set dummy $ac_prog; ac_word=$2
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17471 $as_echo_n "checking for $ac_word... " >&6; }
17472 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
17473 $as_echo_n "(cached) " >&6
17475 if test -n "$ac_ct_CXX"; then
17476 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17479 for as_dir in $PATH
17482 test -z "$as_dir" && as_dir=.
17483 for ac_exec_ext in '' $ac_executable_extensions; do
17484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17485 ac_cv_prog_ac_ct_CXX="$ac_prog"
17486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17495 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17496 if test -n "$ac_ct_CXX"; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
17498 $as_echo "$ac_ct_CXX" >&6; }
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17501 $as_echo "no" >&6; }
17505 test -n "$ac_ct_CXX" && break
17508 if test "x$ac_ct_CXX" = x; then
17511 case $cross_compiling:$ac_tool_warned in
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17515 ac_tool_warned=yes ;;
17523 # Provide some information about the compiler.
17524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
17527 for ac_option in --version -v -V -qversion; do
17528 { { ac_try="$ac_compiler $ac_option >&5"
17529 case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17534 $as_echo "$ac_try_echo"; } >&5
17535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17537 if test -s conftest.err; then
17539 ... rest of stderr output deleted ...
17540 10q' conftest.err >conftest.er1
17541 cat conftest.er1 >&5
17543 rm -f conftest.er1 conftest.err
17544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17545 test $ac_status = 0; }
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
17549 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
17550 if ${ac_cv_cxx_compiler_gnu+:} false; then :
17551 $as_echo_n "(cached) " >&6
17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h. */
17567 if ac_fn_cxx_try_compile "$LINENO"; then :
17568 ac_compiler_gnu=yes
17572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17577 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
17578 if test $ac_compiler_gnu = yes; then
17583 ac_test_CXXFLAGS=${CXXFLAGS+set}
17584 ac_save_CXXFLAGS=$CXXFLAGS
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17586 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
17587 if ${ac_cv_prog_cxx_g+:} false; then :
17588 $as_echo_n "(cached) " >&6
17590 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17591 ac_cxx_werror_flag=yes
17592 ac_cv_prog_cxx_g=no
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h. */
17605 if ac_fn_cxx_try_compile "$LINENO"; then :
17606 ac_cv_prog_cxx_g=yes
17609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610 /* end confdefs.h. */
17620 if ac_fn_cxx_try_compile "$LINENO"; then :
17623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17636 if ac_fn_cxx_try_compile "$LINENO"; then :
17637 ac_cv_prog_cxx_g=yes
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
17647 $as_echo "$ac_cv_prog_cxx_g" >&6; }
17648 if test "$ac_test_CXXFLAGS" = set; then
17649 CXXFLAGS=$ac_save_CXXFLAGS
17650 elif test $ac_cv_prog_cxx_g = yes; then
17651 if test "$GXX" = yes; then
17657 if test "$GXX" = yes; then
17664 ac_cpp='$CPP $CPPFLAGS'
17665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669 depcc="$CXX" am_compiler_list=
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17672 $as_echo_n "checking dependency style of $depcc... " >&6; }
17673 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17674 $as_echo_n "(cached) " >&6
17676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17677 # We make a subdir and do the tests there. Otherwise we can end up
17678 # making bogus files that we don't know about and never remove. For
17679 # instance it was reported that on HP-UX the gcc test will end up
17680 # making a dummy file named 'D' -- because '-MD' means "put the output
17682 rm -rf conftest.dir
17684 # Copy depcomp to subdir because otherwise we won't find it if we're
17685 # using a relative directory.
17686 cp "$am_depcomp" conftest.dir
17688 # We will build objects and dependencies in a subdirectory because
17689 # it helps to detect inapplicable dependency modes. For instance
17690 # both Tru64's cc and ICC support -MD to output dependencies as a
17691 # side effect of compilation, but ICC will put the dependencies in
17692 # the current directory while Tru64 will put them in the object
17696 am_cv_CXX_dependencies_compiler_type=none
17697 if test "$am_compiler_list" = ""; then
17698 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17700 am__universal=false
17701 case " $depcc " in #(
17702 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17705 for depmode in $am_compiler_list; do
17706 # Setup a source with many dependencies, because some compilers
17707 # like to wrap large dependency lists on column 80 (with \), and
17708 # we should not choose a depcomp mode which is confused by this.
17710 # We need to recreate these files for each test, as the compiler may
17711 # overwrite some of them when testing with obscure command lines.
17712 # This happens at least with the AIX C compiler.
17714 for i in 1 2 3 4 5 6; do
17715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17716 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17717 # Solaris 10 /bin/sh.
17718 echo '/* dummy */' > sub/conftst$i.h
17720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17722 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17723 # mode. It turns out that the SunPro C++ compiler does not properly
17724 # handle '-M -o', and we need to detect this. Also, some Intel
17725 # versions had trouble with output in subdirs.
17726 am__obj=sub/conftest.${OBJEXT-o}
17727 am__minus_obj="-o $am__obj"
17730 # This depmode causes a compiler race in universal mode.
17731 test "$am__universal" = false || continue
17734 # After this tag, mechanisms are not by side-effect, so they'll
17735 # only be used when explicitly requested.
17736 if test "x$enable_dependency_tracking" = xyes; then
17742 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17743 # This compiler won't grok '-c -o', but also, the minuso test has
17744 # not run yet. These depmodes are late enough in the game, and
17745 # so weak that their functioning should not be impacted.
17746 am__obj=conftest.${OBJEXT-o}
17751 if depmode=$depmode \
17752 source=sub/conftest.c object=$am__obj \
17753 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17754 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17755 >/dev/null 2>conftest.err &&
17756 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17757 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17758 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17759 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17760 # icc doesn't choke on unknown options, it will just issue warnings
17761 # or remarks (even with -Werror). So we grep stderr for any message
17762 # that says an option was ignored or not supported.
17763 # When given -MP, icc 7.0 and 7.1 complain thusly:
17764 # icc: Command line warning: ignoring option '-M'; no argument required
17765 # The diagnosis changed in icc 8.0:
17766 # icc: Command line remark: option '-MP' not supported
17767 if (grep 'ignoring option' conftest.err ||
17768 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17769 am_cv_CXX_dependencies_compiler_type=$depmode
17776 rm -rf conftest.dir
17778 am_cv_CXX_dependencies_compiler_type=none
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17783 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17784 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17787 test "x$enable_dependency_tracking" != xno \
17788 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17789 am__fastdepCXX_TRUE=
17790 am__fastdepCXX_FALSE='#'
17792 am__fastdepCXX_TRUE='#'
17793 am__fastdepCXX_FALSE=
17798 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17799 if test "x$ac_cv_type_size_t" = xyes; then :
17803 cat >>confdefs.h <<_ACEOF
17804 #define size_t unsigned int
17809 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17810 case $ac_cv_c_uint8_t in #(
17814 $as_echo "#define _UINT8_T 1" >>confdefs.h
17817 cat >>confdefs.h <<_ACEOF
17818 #define uint8_t $ac_cv_c_uint8_t
17823 # By default we simply use the C compiler to build assembly code.
17825 test "${CCAS+set}" = set || CCAS=$CC
17826 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
17830 depcc="$CCAS" am_compiler_list=
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17833 $as_echo_n "checking dependency style of $depcc... " >&6; }
17834 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
17835 $as_echo_n "(cached) " >&6
17837 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17838 # We make a subdir and do the tests there. Otherwise we can end up
17839 # making bogus files that we don't know about and never remove. For
17840 # instance it was reported that on HP-UX the gcc test will end up
17841 # making a dummy file named 'D' -- because '-MD' means "put the output
17843 rm -rf conftest.dir
17845 # Copy depcomp to subdir because otherwise we won't find it if we're
17846 # using a relative directory.
17847 cp "$am_depcomp" conftest.dir
17849 # We will build objects and dependencies in a subdirectory because
17850 # it helps to detect inapplicable dependency modes. For instance
17851 # both Tru64's cc and ICC support -MD to output dependencies as a
17852 # side effect of compilation, but ICC will put the dependencies in
17853 # the current directory while Tru64 will put them in the object
17857 am_cv_CCAS_dependencies_compiler_type=none
17858 if test "$am_compiler_list" = ""; then
17859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17861 am__universal=false
17864 for depmode in $am_compiler_list; do
17865 # Setup a source with many dependencies, because some compilers
17866 # like to wrap large dependency lists on column 80 (with \), and
17867 # we should not choose a depcomp mode which is confused by this.
17869 # We need to recreate these files for each test, as the compiler may
17870 # overwrite some of them when testing with obscure command lines.
17871 # This happens at least with the AIX C compiler.
17873 for i in 1 2 3 4 5 6; do
17874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17875 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17876 # Solaris 10 /bin/sh.
17877 echo '/* dummy */' > sub/conftst$i.h
17879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17881 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17882 # mode. It turns out that the SunPro C++ compiler does not properly
17883 # handle '-M -o', and we need to detect this. Also, some Intel
17884 # versions had trouble with output in subdirs.
17885 am__obj=sub/conftest.${OBJEXT-o}
17886 am__minus_obj="-o $am__obj"
17889 # This depmode causes a compiler race in universal mode.
17890 test "$am__universal" = false || continue
17893 # After this tag, mechanisms are not by side-effect, so they'll
17894 # only be used when explicitly requested.
17895 if test "x$enable_dependency_tracking" = xyes; then
17901 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17902 # This compiler won't grok '-c -o', but also, the minuso test has
17903 # not run yet. These depmodes are late enough in the game, and
17904 # so weak that their functioning should not be impacted.
17905 am__obj=conftest.${OBJEXT-o}
17910 if depmode=$depmode \
17911 source=sub/conftest.c object=$am__obj \
17912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17913 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17914 >/dev/null 2>conftest.err &&
17915 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17916 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17917 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17918 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17919 # icc doesn't choke on unknown options, it will just issue warnings
17920 # or remarks (even with -Werror). So we grep stderr for any message
17921 # that says an option was ignored or not supported.
17922 # When given -MP, icc 7.0 and 7.1 complain thusly:
17923 # icc: Command line warning: ignoring option '-M'; no argument required
17924 # The diagnosis changed in icc 8.0:
17925 # icc: Command line remark: option '-MP' not supported
17926 if (grep 'ignoring option' conftest.err ||
17927 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17928 am_cv_CCAS_dependencies_compiler_type=$depmode
17935 rm -rf conftest.dir
17937 am_cv_CCAS_dependencies_compiler_type=none
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
17942 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
17943 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
17946 test "x$enable_dependency_tracking" != xno \
17947 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
17948 am__fastdepCCAS_TRUE=
17949 am__fastdepCCAS_FALSE='#'
17951 am__fastdepCCAS_TRUE='#'
17952 am__fastdepCCAS_FALSE=
17959 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
17960 # These system don't have libm, or don't need it
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
17964 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
17965 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
17966 $as_echo_n "(cached) " >&6
17968 ac_check_lib_save_LIBS=$LIBS
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17979 char _mwvalidcheckl ();
17983 return _mwvalidcheckl ();
17988 if ac_fn_c_try_link "$LINENO"; then :
17989 ac_cv_lib_mw__mwvalidcheckl=yes
17991 ac_cv_lib_mw__mwvalidcheckl=no
17993 rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
17998 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
17999 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18004 $as_echo_n "checking for cos in -lm... " >&6; }
18005 if ${ac_cv_lib_m_cos+:} false; then :
18006 $as_echo_n "(cached) " >&6
18008 ac_check_lib_save_LIBS=$LIBS
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18028 if ac_fn_c_try_link "$LINENO"; then :
18029 ac_cv_lib_m_cos=yes
18033 rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18038 $as_echo "$ac_cv_lib_m_cos" >&6; }
18039 if test "x$ac_cv_lib_m_cos" = xyes; then :
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18046 $as_echo_n "checking for cos in -lm... " >&6; }
18047 if ${ac_cv_lib_m_cos+:} false; then :
18048 $as_echo_n "(cached) " >&6
18050 ac_check_lib_save_LIBS=$LIBS
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18055 /* Override any GCC internal prototype to avoid an error.
18056 Use char because int might match the return type of a GCC
18057 builtin and then its argument prototype would still apply. */
18070 if ac_fn_c_try_link "$LINENO"; then :
18071 ac_cv_lib_m_cos=yes
18075 rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18077 LIBS=$ac_check_lib_save_LIBS
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18080 $as_echo "$ac_cv_lib_m_cos" >&6; }
18081 if test "x$ac_cv_lib_m_cos" = xyes; then :
18090 OPTIMIZE_CFLAGS="-Os -fomit-frame-pointer"
18091 OPTIMIZE_FAST_CFLAGS="-O2 -fomit-frame-pointer"
18092 OPTIMIZE_HUGE_CFLAGS="-funroll-loops -DTFM_SMALL_SET -DTFM_HUGE_SET"
18093 DEBUG_CFLAGS="-g -DDEBUG -DDEBUG_WOLFSSL"
18096 # Thread local storage
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
18099 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
18100 if ${ac_cv_tls+:} false; then :
18101 $as_echo_n "(cached) " >&6
18104 ax_tls_keywords="__thread __declspec(thread) none"
18105 for ax_tls_keyword in $ax_tls_keywords; do
18106 case $ax_tls_keyword in #(
18108 ac_cv_tls=none ; break ;; #(
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18112 #include <stdlib.h>
18115 static $ax_tls_keyword int bar;
18126 if ac_fn_c_try_compile "$LINENO"; then :
18127 ac_cv_tls=$ax_tls_keyword ; break
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
18139 $as_echo "$ac_cv_tls" >&6; }
18141 if test "$ac_cv_tls" != "none"; then :
18143 cat >>confdefs.h <<_ACEOF
18144 #define TLS $ac_cv_tls
18148 AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"
18159 # Check whether --enable-debug was given.
18160 if test "${enable_debug+set}" = set; then :
18161 enableval=$enable_debug; ax_enable_debug=$enableval
18167 if test "x$ax_enable_debug" = xyes; then :
18169 $as_echo "#define DEBUG 1" >>confdefs.h
18174 $as_echo "#define DEBUG 0" >>confdefs.h
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
18179 $as_echo_n "checking for debug... " >&6; }
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_debug" >&5
18181 $as_echo "$ax_enable_debug" >&6; }
18182 if test "x${ax_enable_debug}" = xyes; then
18190 if test "$ax_enable_debug" = "yes"; then :
18191 AM_CFLAGS="$DEBUG_CFLAGS $AM_CFLAGS"
18193 AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
18198 # Check whether --enable-singlethreaded was given.
18199 if test "${enable_singlethreaded+set}" = set; then :
18200 enableval=$enable_singlethreaded; ENABLED_SINGLETHREADED=$enableval
18202 ENABLED_SINGLETHREADED=no
18207 if test x"$CC" = xclang; then
18208 wolfssl_darwin_clang=yes
18209 elif test x"$CC" = x || test x"$CC" = xgcc; then
18210 if /usr/bin/gcc -v 2>&1 | grep 'clang' >/dev/null 2>&1; then
18211 wolfssl_darwin_clang=yes
18215 if test "x$ENABLED_SINGLETHREADED" = "xno" ; then :
18220 ac_cpp='$CPP $CPPFLAGS'
18221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18227 # We used to check for pthread.h first, but this fails if pthread.h
18228 # requires special compiler flags (e.g. on True64 or Sequent).
18229 # It gets checked for in the link test anyway.
18231 # First of all, check if the user has set any of the PTHREAD_LIBS,
18232 # etcetera environment variables, and if threads linking works using
18234 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18235 save_CFLAGS="$CFLAGS"
18236 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18238 LIBS="$PTHREAD_LIBS $LIBS"
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18240 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18244 /* Override any GCC internal prototype to avoid an error.
18245 Use char because int might match the return type of a GCC
18246 builtin and then its argument prototype would still apply. */
18250 char pthread_join ();
18254 return pthread_join ();
18259 if ac_fn_c_try_link "$LINENO"; then :
18262 rm -f core conftest.err conftest.$ac_objext \
18263 conftest$ac_exeext conftest.$ac_ext
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18265 $as_echo "$ax_pthread_ok" >&6; }
18266 if test x"$ax_pthread_ok" = xno; then
18271 CFLAGS="$save_CFLAGS"
18274 # We must check for the threads library under a number of different
18275 # names; the ordering is very important because some systems
18276 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18277 # libraries is broken (non-POSIX).
18279 # Create a list of thread flags to try. Items starting with a "-" are
18280 # C compiler flags, and other items are library names, except for "none"
18281 # which indicates that we try without any flags at all, and "pthread-config"
18282 # which is a program returning the flags for the Pth emulation library.
18284 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18286 # The ordering *is* (sometimes) important. Some notes on the
18287 # individual items follow:
18289 # pthreads: AIX (must check this before -lpthread)
18290 # none: in case threads are in libc; should be tried before -Kthread and
18291 # other compiler flags to prevent continual compiler warnings
18292 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18293 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18294 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18295 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18296 # -pthreads: Solaris/gcc
18297 # -mthreads: Mingw32/gcc, Lynx/gcc
18298 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18299 # doesn't hurt to check since this sometimes defines pthreads too;
18300 # also defines -D_REENTRANT)
18301 # ... -mt is also the pthreads flag for HP/aCC
18302 # pthread: Linux, etcetera
18303 # --thread-safe: KAI C++
18304 # pthread-config: use pthread-config program (for GNU Pth library)
18309 # On Solaris (at least, for some versions), libc contains stubbed
18310 # (non-functional) versions of the pthreads routines, so link-based
18311 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18312 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18313 # a function called by this macro, so we could check for that, but
18314 # who knows whether they'll stub that too in a future libc.) So,
18315 # we'll just look for -pthreads and -lpthread first:
18317 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18322 if test x"$wolfssl_darwin_clang" = x"yes"; then :
18323 ax_pthread_flags="$ax_pthread_flags"
18325 ax_pthread_flags="-pthread $ax_pthread_flags"
18330 if test x"$ax_pthread_ok" = xno; then
18331 for flag in $ax_pthread_flags; do
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18336 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18341 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18342 PTHREAD_CFLAGS="$flag"
18346 # Extract the first word of "pthread-config", so it can be a program name with args.
18347 set dummy pthread-config; ac_word=$2
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18349 $as_echo_n "checking for $ac_word... " >&6; }
18350 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18351 $as_echo_n "(cached) " >&6
18353 if test -n "$ax_pthread_config"; then
18354 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357 for as_dir in $PATH
18360 test -z "$as_dir" && as_dir=.
18361 for ac_exec_ext in '' $ac_executable_extensions; do
18362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363 ac_cv_prog_ax_pthread_config="yes"
18364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18371 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18374 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18375 if test -n "$ax_pthread_config"; then
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18377 $as_echo "$ax_pthread_config" >&6; }
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18384 if test x"$ax_pthread_config" = xno; then continue; fi
18385 PTHREAD_CFLAGS="`pthread-config --cflags`"
18386 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18391 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18392 PTHREAD_LIBS="-l$flag"
18397 save_CFLAGS="$CFLAGS"
18398 LIBS="$PTHREAD_LIBS $LIBS"
18399 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18401 # Check for various functions. We must include pthread.h,
18402 # since some functions may be macros. (On the Sequent, we
18403 # need a special flag -Kthread to make this header compile.)
18404 # We check for pthread_join because it is in -lpthread on IRIX
18405 # while pthread_create is in libc. We check for pthread_attr_init
18406 # due to DEC craziness with -lpthreads. We check for
18407 # pthread_cleanup_push because it is one of the few pthread
18408 # functions on Solaris that doesn't have a non-functional libc stub.
18409 # We try pthread_create on general principles.
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412 #include <pthread.h>
18413 static void routine(void *a) { a = 0; }
18414 static void *start_routine(void *a) { return a; }
18418 pthread_t th; pthread_attr_t attr;
18419 pthread_create(&th, 0, start_routine, 0);
18420 pthread_join(th, 0);
18421 pthread_attr_init(&attr);
18422 pthread_cleanup_push(routine, 0);
18423 pthread_cleanup_pop(0) /* ; */
18428 if ac_fn_c_try_link "$LINENO"; then :
18431 rm -f core conftest.err conftest.$ac_objext \
18432 conftest$ac_exeext conftest.$ac_ext
18435 CFLAGS="$save_CFLAGS"
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18438 $as_echo "$ax_pthread_ok" >&6; }
18439 if test "x$ax_pthread_ok" = xyes; then
18448 # Various other checks:
18449 if test "x$ax_pthread_ok" = xyes; then
18451 LIBS="$PTHREAD_LIBS $LIBS"
18452 save_CFLAGS="$CFLAGS"
18453 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18455 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18457 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18459 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18462 #include <pthread.h>
18466 int attr = $attr; return attr /* ; */
18471 if ac_fn_c_try_link "$LINENO"; then :
18472 attr_name=$attr; break
18474 rm -f core conftest.err conftest.$ac_objext \
18475 conftest$ac_exeext conftest.$ac_ext
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18478 $as_echo "$attr_name" >&6; }
18479 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18481 cat >>confdefs.h <<_ACEOF
18482 #define PTHREAD_CREATE_JOINABLE $attr_name
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18488 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18491 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18492 osf* | hpux*) flag="-D_REENTRANT";;
18494 if test "$GCC" = "yes"; then
18495 flag="-D_REENTRANT"
18497 flag="-mt -D_REENTRANT"
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18502 $as_echo "${flag}" >&6; }
18503 if test "x$flag" != xno; then
18504 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18508 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18509 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18510 $as_echo_n "(cached) " >&6
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h. */
18516 #include <pthread.h>
18520 int i = PTHREAD_PRIO_INHERIT;
18525 if ac_fn_c_try_link "$LINENO"; then :
18526 ax_cv_PTHREAD_PRIO_INHERIT=yes
18528 ax_cv_PTHREAD_PRIO_INHERIT=no
18530 rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18535 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18536 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18538 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18543 CFLAGS="$save_CFLAGS"
18545 # More AIX lossage: compile with *_r variant
18546 if test "x$GCC" != xyes; then
18550 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18551 #handle absolute path differently from PATH based program lookup
18554 if as_fn_executable_p ${CC}_r; then :
18555 PTHREAD_CC="${CC}_r"
18558 for ac_prog in ${CC}_r
18560 # Extract the first word of "$ac_prog", so it can be a program name with args.
18561 set dummy $ac_prog; ac_word=$2
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18563 $as_echo_n "checking for $ac_word... " >&6; }
18564 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18565 $as_echo_n "(cached) " >&6
18567 if test -n "$PTHREAD_CC"; then
18568 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18571 for as_dir in $PATH
18574 test -z "$as_dir" && as_dir=.
18575 for ac_exec_ext in '' $ac_executable_extensions; do
18576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18577 ac_cv_prog_PTHREAD_CC="$ac_prog"
18578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18587 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18588 if test -n "$PTHREAD_CC"; then
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18590 $as_echo "$PTHREAD_CC" >&6; }
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 $as_echo "no" >&6; }
18597 test -n "$PTHREAD_CC" && break
18599 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18610 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18616 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18617 if test x"$ax_pthread_ok" = xyes; then
18620 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18622 AM_CFLAGS="-D_POSIX_THREADS $AM_CFLAGS $PTHREAD_CFLAGS"
18623 LIBS="$LIBS $PTHREAD_LIBS"
18629 ENABLED_SINGLETHREADED=yes
18633 ac_cpp='$CPP $CPPFLAGS'
18634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18642 if test "x$ENABLED_SINGLETHREADED" = "xyes" ; then :
18643 AM_CFLAGS="-DSINGLE_THREADED $AM_CFLAGS"
18648 # Check whether --enable-dtls was given.
18649 if test "${enable_dtls+set}" = set; then :
18650 enableval=$enable_dtls; ENABLED_DTLS=$enableval
18656 if test "$ENABLED_DTLS" = "yes"
18658 AM_CFLAGS="-DWOLFSSL_DTLS $AM_CFLAGS"
18662 # OPENSSL Extra Compatibility
18663 # Check whether --enable-opensslextra was given.
18664 if test "${enable_opensslextra+set}" = set; then :
18665 enableval=$enable_opensslextra; ENABLED_OPENSSLEXTRA=$enableval
18667 ENABLED_OPENSSLEXTRA=no
18671 if test "$ENABLED_OPENSSLEXTRA" = "yes"
18673 AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
18676 if test "$ENABLED_OPENSSLEXTRA" = "yes" && test "$ENABLED_SMALL" = "yes"
18678 as_fn_error $? "cannot enable small and opensslextra, only one or the other." "$LINENO" 5
18682 # High Strength Build
18683 # Check whether --enable-maxstrength was given.
18684 if test "${enable_maxstrength+set}" = set; then :
18685 enableval=$enable_maxstrength; ENABLED_MAXSTRENGTH=$enableval
18687 ENABLED_MAXSTRENGTH=no
18693 # Check whether --enable-ipv6 was given.
18694 if test "${enable_ipv6+set}" = set; then :
18695 enableval=$enable_ipv6; ENABLED_IPV6=$enableval
18702 if test "$ENABLED_IPV6" = "yes"
18704 AM_CFLAGS="$AM_CFLAGS -DTEST_IPV6"
18707 if test "x$ENABLED_IPV6" = "xyes"; then
18709 BUILD_IPV6_FALSE='#'
18711 BUILD_IPV6_TRUE='#'
18718 # Check whether --enable-fortress was given.
18719 if test "${enable_fortress+set}" = set; then :
18720 enableval=$enable_fortress; ENABLED_FORTRESS=$enableval
18722 ENABLED_FORTRESS=no
18727 if test "$ENABLED_FORTRESS" = "yes"
18729 AM_CFLAGS="$AM_CFLAGS -DFORTRESS -DWOLFSSL_ALWAYS_VERIFY_CB -DOPENSSL_EXTRA -DWOLFSSL_DES_ECB -DWOLFSSL_AES_COUNTER -DWOLFSSL_AES_DIRECT -DWOLFSSL_DER_LOAD -DWOLFSSL_SHA512 -DWOLFSSL_SHA384 -DWOLFSSL_KEY_GEN"
18734 # Check whether --enable-bump was given.
18735 if test "${enable_bump+set}" = set; then :
18736 enableval=$enable_bump; ENABLED_BUMP=$enableval
18743 if test "$ENABLED_BUMP" = "yes"
18745 AM_CFLAGS="$AM_CFLAGS -DLARGE_STATIC_BUFFERS -DWOLFSSL_CERT_GEN -DWOLFSSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DWOLFSSL_DER_LOAD -DWOLFSSL_ALT_NAMES -DWOLFSSL_TEST_CERT"
18748 ENABLED_SLOWMATH="yes"
18751 # Check whether --enable-leanpsk was given.
18752 if test "${enable_leanpsk+set}" = set; then :
18753 enableval=$enable_leanpsk; ENABLED_LEANPSK=$enableval
18760 if test "$ENABLED_LEANPSK" = "yes"
18762 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_LEANPSK -DHAVE_NULL_CIPHER -DSINGLE_THREADED -DNO_AES -DNO_FILESYSTEM -DNO_RABBIT -DNO_RSA -DNO_DSA -DNO_DH -DNO_CERTS -DNO_PWDBASED -DNO_DES3 -DNO_MD4 -DNO_MD5 -DNO_ERROR_STRINGS -DNO_OLD_TLS -DNO_RC4 -DNO_WRITEV -DNO_SESSION_CACHE -DNO_DEV_RANDOM -DWOLFSSL_USER_IO -DNO_SHA -DUSE_SLOW_SHA"
18763 ENABLED_SLOWMATH="no"
18764 ENABLED_SINGLETHREADED="yes"
18767 if test "x$ENABLED_LEANPSK" = "xyes"; then
18768 BUILD_LEANPSK_TRUE=
18769 BUILD_LEANPSK_FALSE='#'
18771 BUILD_LEANPSK_TRUE='#'
18772 BUILD_LEANPSK_FALSE=
18778 # Check whether --enable-bigcache was given.
18779 if test "${enable_bigcache+set}" = set; then :
18780 enableval=$enable_bigcache; ENABLED_BIGCACHE=$enableval
18782 ENABLED_BIGCACHE=no
18787 if test "$ENABLED_BIGCACHE" = "yes"
18789 AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
18794 # Check whether --enable-hugecache was given.
18795 if test "${enable_hugecache+set}" = set; then :
18796 enableval=$enable_hugecache; ENABLED_HUGECACHE=$enableval
18798 ENABLED_HUGECACHE=no
18803 if test "$ENABLED_HUGECACHE" = "yes"
18805 AM_CFLAGS="$AM_CFLAGS -DHUGE_SESSION_CACHE"
18810 # Check whether --enable-smallcache was given.
18811 if test "${enable_smallcache+set}" = set; then :
18812 enableval=$enable_smallcache; ENABLED_SMALLCACHE=$enableval
18814 ENABLED_SMALLCACHE=no
18819 if test "$ENABLED_SMALLCACHE" = "yes"
18821 AM_CFLAGS="$AM_CFLAGS -DSMALL_SESSION_CACHE"
18825 # Persistent session cache
18826 # Check whether --enable-savesession was given.
18827 if test "${enable_savesession+set}" = set; then :
18828 enableval=$enable_savesession; ENABLED_SAVESESSION=$enableval
18830 ENABLED_SAVESESSION=no
18835 if test "$ENABLED_SAVESESSION" = "yes"
18837 AM_CFLAGS="$AM_CFLAGS -DPERSIST_SESSION_CACHE"
18841 # Persistent cert cache
18842 # Check whether --enable-savecert was given.
18843 if test "${enable_savecert+set}" = set; then :
18844 enableval=$enable_savecert; ENABLED_SAVECERT=$enableval
18846 ENABLED_SAVECERT=no
18851 if test "$ENABLED_SAVECERT" = "yes"
18853 AM_CFLAGS="$AM_CFLAGS -DPERSIST_CERT_CACHE"
18857 # Atomic User Record Layer
18858 # Check whether --enable-atomicuser was given.
18859 if test "${enable_atomicuser+set}" = set; then :
18860 enableval=$enable_atomicuser; ENABLED_ATOMICUSER=$enableval
18862 ENABLED_ATOMICUSER=no
18867 if test "$ENABLED_ATOMICUSER" = "yes"
18869 AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
18873 # Public Key Callbacks
18874 # Check whether --enable-pkcallbacks was given.
18875 if test "${enable_pkcallbacks+set}" = set; then :
18876 enableval=$enable_pkcallbacks; ENABLED_PKCALLBACKS=$enableval
18878 ENABLED_PKCALLBACKS=no
18883 if test "$ENABLED_PKCALLBACKS" = "yes"
18885 AM_CFLAGS="$AM_CFLAGS -DHAVE_PK_CALLBACKS"
18890 # Check whether --enable-sniffer was given.
18891 if test "${enable_sniffer+set}" = set; then :
18892 enableval=$enable_sniffer; ENABLED_SNIFFER=$enableval
18899 # sniffer does't work in maxstrength mode
18900 if test "$ENABLED_SNIFFER" = "yes" && test "$ENABLED_MAXSTRENGTH" = "yes"
18902 as_fn_error $? "cannot enable maxstrength in sniffer mode." "$LINENO" 5
18905 ENABLED_SNIFFTEST=no
18906 if test "x$ENABLED_SNIFFER" = "xyes" ; then :
18908 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SNIFFER -DOPENSSL_EXTRA"
18909 for ac_header in pcap/pcap.h
18911 ac_fn_c_check_header_mongrel "$LINENO" "pcap/pcap.h" "ac_cv_header_pcap_pcap_h" "$ac_includes_default"
18912 if test "x$ac_cv_header_pcap_pcap_h" = xyes; then :
18913 cat >>confdefs.h <<_ACEOF
18914 #define HAVE_PCAP_PCAP_H 1
18916 ENABLED_SNIFFTEST=yes
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable sniffer test without having libpcap available." >&5
18919 $as_echo "$as_me: WARNING: cannot enable sniffer test without having libpcap available." >&2;}
18928 if test "x$ENABLED_SNIFFER" = "xyes" ; then
18929 BUILD_SNIFFER_TRUE=
18930 BUILD_SNIFFER_FALSE='#'
18932 BUILD_SNIFFER_TRUE='#'
18933 BUILD_SNIFFER_FALSE=
18936 if test "x$ENABLED_SNIFFTEST" = "xyes" ; then
18937 BUILD_SNIFFTEST_TRUE=
18938 BUILD_SNIFFTEST_FALSE='#'
18940 BUILD_SNIFFTEST_TRUE='#'
18941 BUILD_SNIFFTEST_FALSE=
18946 # Check whether --enable-aesgcm was given.
18947 if test "${enable_aesgcm+set}" = set; then :
18948 enableval=$enable_aesgcm; ENABLED_AESGCM=$enableval
18955 # lean psk does't need gcm
18956 if test "$ENABLED_LEANPSK" = "yes"
18961 if test "$ENABLED_AESGCM" = "word32"
18963 AM_CFLAGS="$AM_CFLAGS -DGCM_WORD32"
18967 if test "$ENABLED_AESGCM" = "small"
18969 AM_CFLAGS="$AM_CFLAGS -DGCM_SMALL"
18973 if test "$ENABLED_AESGCM" = "table"
18975 AM_CFLAGS="$AM_CFLAGS -DGCM_TABLE"
18979 if test "$ENABLED_AESGCM" = "yes"
18981 AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"
18984 if test "x$ENABLED_AESGCM" = "xyes"; then
18986 BUILD_AESGCM_FALSE='#'
18988 BUILD_AESGCM_TRUE='#'
18989 BUILD_AESGCM_FALSE=
18995 # Check whether --enable-aesccm was given.
18996 if test "${enable_aesccm+set}" = set; then :
18997 enableval=$enable_aesccm; ENABLED_AESCCM=$enableval
19004 if test "$ENABLED_AESCCM" = "yes"
19006 AM_CFLAGS="$AM_CFLAGS -DHAVE_AESCCM"
19009 if test "x$ENABLED_AESCCM" = "xyes"; then
19011 BUILD_AESCCM_FALSE='#'
19013 BUILD_AESCCM_TRUE='#'
19014 BUILD_AESCCM_FALSE=
19020 # Check whether --enable-aesni was given.
19021 if test "${enable_aesni+set}" = set; then :
19022 enableval=$enable_aesni; ENABLED_AESNI=$enableval
19030 # Check whether --enable-intelasm was given.
19031 if test "${enable_intelasm+set}" = set; then :
19032 enableval=$enable_intelasm; ENABLED_INTELASM=$enableval
19034 ENABLED_INTELASM=no
19039 if test "$ENABLED_AESNI" = "yes" || test "$ENABLED_INTELASM" = "yes"
19041 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AESNI"
19042 if test "$GCC" = "yes"
19044 # GCC needs these flags, icc doesn't
19045 # opt levels greater than 2 may cause problems on systems w/o aesni
19046 if test "$CC" != "icc"
19048 AM_CFLAGS="$AM_CFLAGS -maes -msse4"
19053 if test "$ENABLED_INTELASM" = "yes"
19055 AM_CFLAGS="$AM_CFLAGS -DHAVE_INTEL_RDGEN -DUSE_INTEL_SPEEDUP"
19059 if test "x$ENABLED_AESNI" = "xyes"; then
19061 BUILD_AESNI_FALSE='#'
19063 BUILD_AESNI_TRUE='#'
19070 # Check whether --enable-camellia was given.
19071 if test "${enable_camellia+set}" = set; then :
19072 enableval=$enable_camellia; ENABLED_CAMELLIA=$enableval
19074 ENABLED_CAMELLIA=no
19079 if test "$ENABLED_CAMELLIA" = "yes"
19081 AM_CFLAGS="$AM_CFLAGS -DHAVE_CAMELLIA"
19084 if test "x$ENABLED_CAMELLIA" = "xyes"; then
19085 BUILD_CAMELLIA_TRUE=
19086 BUILD_CAMELLIA_FALSE='#'
19088 BUILD_CAMELLIA_TRUE='#'
19089 BUILD_CAMELLIA_FALSE=
19095 # Check whether --enable-md2 was given.
19096 if test "${enable_md2+set}" = set; then :
19097 enableval=$enable_md2; ENABLED_MD2=$enableval
19104 if test "$ENABLED_BUMP" = "yes"
19109 if test "$ENABLED_MD2" = "yes"
19111 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_MD2"
19114 if test "x$ENABLED_MD2" = "xyes"; then
19116 BUILD_MD2_FALSE='#'
19125 # Check whether --enable-nullcipher was given.
19126 if test "${enable_nullcipher+set}" = set; then :
19127 enableval=$enable_nullcipher; ENABLED_NULL_CIPHER=$enableval
19129 ENABLED_NULL_CIPHER=no
19134 if test "$ENABLED_NULL_CIPHER" = "yes"
19136 AM_CFLAGS="$AM_CFLAGS -DHAVE_NULL_CIPHER"
19140 # Check whether --enable-ripemd was given.
19141 if test "${enable_ripemd+set}" = set; then :
19142 enableval=$enable_ripemd; ENABLED_RIPEMD=$enableval
19149 if test "$ENABLED_RIPEMD" = "yes"
19151 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_RIPEMD"
19154 if test "x$ENABLED_RIPEMD" = "xyes"; then
19156 BUILD_RIPEMD_FALSE='#'
19158 BUILD_RIPEMD_TRUE='#'
19159 BUILD_RIPEMD_FALSE=
19165 # Check whether --enable-blake2 was given.
19166 if test "${enable_blake2+set}" = set; then :
19167 enableval=$enable_blake2; ENABLED_BLAKE2=$enableval
19174 if test "$ENABLED_BLAKE2" = "yes"
19176 AM_CFLAGS="$AM_CFLAGS -DHAVE_BLAKE2"
19179 if test "x$ENABLED_BLAKE2" = "xyes"; then
19181 BUILD_BLAKE2_FALSE='#'
19183 BUILD_BLAKE2_TRUE='#'
19184 BUILD_BLAKE2_FALSE=
19189 # set sha512 default
19191 if test "$host_cpu" = "x86_64"
19197 # Check whether --enable-sha512 was given.
19198 if test "${enable_sha512+set}" = set; then :
19199 enableval=$enable_sha512; ENABLED_SHA512=$enableval
19201 ENABLED_SHA512=$SHA512_DEFAULT
19206 # lean psk does't need sha512
19207 if test "$ENABLED_LEANPSK" = "yes"
19212 if test "$ENABLED_SHA512" = "yes"
19214 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHA512 -DWOLFSSL_SHA384"
19217 if test "$ENABLED_FORTRESS" = "yes"
19219 ENABLED_SHA512="yes"
19223 if test "x$ENABLED_SHA512" = "xyes"; then
19225 BUILD_SHA512_FALSE='#'
19227 BUILD_SHA512_TRUE='#'
19228 BUILD_SHA512_FALSE=
19234 # Check whether --enable-sessioncerts was given.
19235 if test "${enable_sessioncerts+set}" = set; then :
19236 enableval=$enable_sessioncerts; ENABLED_SESSIONCERTS=$enableval
19238 ENABLED_SESSIONCERTS=no
19243 if test "$ENABLED_SESSIONCERTS" = "yes"
19245 AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
19250 # Check whether --enable-keygen was given.
19251 if test "${enable_keygen+set}" = set; then :
19252 enableval=$enable_keygen; ENABLED_KEYGEN=$enableval
19259 if test "$ENABLED_KEYGEN" = "yes"
19261 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KEY_GEN"
19266 # Check whether --enable-certgen was given.
19267 if test "${enable_certgen+set}" = set; then :
19268 enableval=$enable_certgen; ENABLED_CERTGEN=$enableval
19275 if test "$ENABLED_CERTGEN" = "yes"
19277 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
19281 # CERT REQUEST GENERATION
19282 # Check whether --enable-certreq was given.
19283 if test "${enable_certreq+set}" = set; then :
19284 enableval=$enable_certreq; ENABLED_CERTREQ=$enableval
19291 if test "$ENABLED_CERTREQ" = "yes"
19293 if test "$ENABLED_CERTGEN" = "no"
19295 as_fn_error $? "cannot enable certreq without enabling certgen." "$LINENO" 5
19297 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_REQ"
19302 # Check whether --enable-sep was given.
19303 if test "${enable_sep+set}" = set; then :
19304 enableval=$enable_sep; ENABLED_SEP=$enableval
19310 if test "$ENABLED_SEP" = "yes"
19312 AM_CFLAGS="-DWOLFSSL_SEP -DKEEP_PEER_CERT $AM_CFLAGS"
19317 # Check whether --enable-hkdf was given.
19318 if test "${enable_hkdf+set}" = set; then :
19319 enableval=$enable_hkdf; ENABLED_HKDF=$enableval
19325 if test "$ENABLED_HKDF" = "yes"
19327 AM_CFLAGS="$AM_CFLAGS -DHAVE_HKDF"
19332 # Check whether --enable-dsa was given.
19333 if test "${enable_dsa+set}" = set; then :
19334 enableval=$enable_dsa; ENABLED_DSA=$enableval
19341 if test "$ENABLED_DSA" = "no"
19343 AM_CFLAGS="$AM_CFLAGS -DNO_DSA"
19346 if test "x$ENABLED_DSA" = "xyes"; then
19348 BUILD_DSA_FALSE='#'
19359 if test "$host_cpu" = "x86_64"
19365 # Check whether --enable-ecc was given.
19366 if test "${enable_ecc+set}" = set; then :
19367 enableval=$enable_ecc; ENABLED_ECC=$enableval
19369 ENABLED_ECC=$ECC_DEFAULT
19374 # lean psk does't need ecc
19375 if test "$ENABLED_LEANPSK" = "yes"
19380 if test "$ENABLED_ECC" = "yes"
19382 AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
19385 if test "x$ENABLED_ECC" = "xyes"; then
19387 BUILD_ECC_FALSE='#'
19395 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_SMALL" = "yes"
19397 as_fn_error $? "cannot enable ecc and small, ecc requires TLS which small turns off." "$LINENO" 5
19401 # for using memory optimization setting on both curve25519 and ed25519
19402 ENABLED_CURVED25519_SMALL=no
19405 # Check whether --enable-curve25519 was given.
19406 if test "${enable_curve25519+set}" = set; then :
19407 enableval=$enable_curve25519; ENABLED_CURVE25519=$enableval
19409 ENABLED_CURVE25519=no
19415 if test "$ENABLED_CURVE25519" = "small"
19417 AM_CFLAGS="$AM_CFLAGS -DCURVED25519_SMALL"
19418 ENABLED_CURVED25519_SMALL=yes
19419 ENABLED_CURVE25519=yes
19422 if test "$ENABLED_CURVE25519" = "yes"
19424 AM_CFLAGS="$AM_CFLAGS -DHAVE_CURVE25519"
19429 if test "x$ENABLED_CURVE25519" = "xyes"; then
19430 BUILD_CURVE25519_TRUE=
19431 BUILD_CURVE25519_FALSE='#'
19433 BUILD_CURVE25519_TRUE='#'
19434 BUILD_CURVE25519_FALSE=
19440 # Check whether --enable-ed25519 was given.
19441 if test "${enable_ed25519+set}" = set; then :
19442 enableval=$enable_ed25519; ENABLED_ED25519=$enableval
19450 if test "$ENABLED_ED25519" = "small"
19452 AM_CFLAGS="$AM_CFLAGS -DCURVED25519_SMALL"
19453 ENABLED_CURVED25519_SMALL=yes
19454 ENABLED_ED25519=yes
19457 if test "$ENABLED_ED25519" = "yes"
19459 if test "$ENABLED_SHA512" = "no"
19461 as_fn_error $? "cannot enable ed25519 without enabling sha512." "$LINENO" 5
19465 AM_CFLAGS="$AM_CFLAGS -DHAVE_ED25519"
19468 if test "x$ENABLED_ED25519" = "xyes"; then
19469 BUILD_ED25519_TRUE=
19470 BUILD_ED25519_FALSE='#'
19472 BUILD_ED25519_TRUE='#'
19473 BUILD_ED25519_FALSE=
19476 if test "x$ENABLED_CURVED25519_SMALL" = "xyes"; then
19477 BUILD_CURVED25519_SMALL_TRUE=
19478 BUILD_CURVED25519_SMALL_FALSE='#'
19480 BUILD_CURVED25519_SMALL_TRUE='#'
19481 BUILD_CURVED25519_SMALL_FALSE=
19484 if test "x$ENABLED_FEMATH" = "xyes"; then
19486 BUILD_FEMATH_FALSE='#'
19488 BUILD_FEMATH_TRUE='#'
19489 BUILD_FEMATH_FALSE=
19492 if test "x$ENABLED_GEMATH" = "xyes"; then
19494 BUILD_GEMATH_FALSE='#'
19496 BUILD_GEMATH_TRUE='#'
19497 BUILD_GEMATH_FALSE=
19501 # FP ECC, Fixed Point cache ECC
19502 # Check whether --enable-fpecc was given.
19503 if test "${enable_fpecc+set}" = set; then :
19504 enableval=$enable_fpecc; ENABLED_FPECC=$enableval
19511 if test "$ENABLED_FPECC" = "yes"
19513 if test "$ENABLED_ECC" = "no"
19515 as_fn_error $? "cannot enable fpecc without enabling ecc." "$LINENO" 5
19517 AM_CFLAGS="$AM_CFLAGS -DFP_ECC"
19522 # Check whether --enable-eccencrypt was given.
19523 if test "${enable_eccencrypt+set}" = set; then :
19524 enableval=$enable_eccencrypt; ENABLED_ECC_ENCRYPT=$enableval
19526 ENABLED_ECC_ENCRYPT=no
19531 if test "$ENABLED_ECC_ENCRYPT" = "yes"
19533 if test "$ENABLED_ECC" = "no"
19535 as_fn_error $? "cannot enable eccencrypt without enabling ecc." "$LINENO" 5
19537 if test "$ENABLED_HKDF" = "no"
19539 as_fn_error $? "cannot enable eccencrypt without enabling hkdf." "$LINENO" 5
19541 AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_ENCRYPT"
19546 # Check whether --enable-psk was given.
19547 if test "${enable_psk+set}" = set; then :
19548 enableval=$enable_psk; ENABLED_PSK=$enableval
19555 if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no"
19557 AM_CFLAGS="$AM_CFLAGS -DNO_PSK"
19560 if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "yes"
19567 # Check whether --enable-errorstrings was given.
19568 if test "${enable_errorstrings+set}" = set; then :
19569 enableval=$enable_errorstrings; ENABLED_ERROR_STRINGS=$enableval
19571 ENABLED_ERROR_STRINGS=yes
19576 if test "$ENABLED_ERROR_STRINGS" = "no"
19578 AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
19580 # turn off error strings if leanpsk on
19581 if test "$ENABLED_LEANPSK" = "yes"
19583 AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
19584 ENABLED_ERROR_STRINGS=no
19590 # Check whether --enable-oldtls was given.
19591 if test "${enable_oldtls+set}" = set; then :
19592 enableval=$enable_oldtls; ENABLED_OLD_TLS=$enableval
19594 ENABLED_OLD_TLS=yes
19599 if test "$ENABLED_OLD_TLS" = "no"
19601 AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
19603 # turn off old if leanpsk on
19604 if test "$ENABLED_LEANPSK" = "yes"
19606 AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
19612 # STACK SIZE info for examples
19613 # Check whether --enable-stacksize was given.
19614 if test "${enable_stacksize+set}" = set; then :
19615 enableval=$enable_stacksize; ENABLED_STACKSIZE=$enableval
19617 ENABLED_STACKSIZE=no
19622 if test "$ENABLED_STACKSIZE" = "yes"
19624 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
19625 if test "x$ac_cv_func_posix_memalign" = xyes; then :
19628 as_fn_error $? "stacksize needs posix_memalign" "$LINENO" 5
19631 ac_fn_c_check_func "$LINENO" "pthread_attr_setstack" "ac_cv_func_pthread_attr_setstack"
19632 if test "x$ac_cv_func_pthread_attr_setstack" = xyes; then :
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstack in -lpthread" >&5
19636 $as_echo_n "checking for pthread_attr_setstack in -lpthread... " >&6; }
19637 if ${ac_cv_lib_pthread_pthread_attr_setstack+:} false; then :
19638 $as_echo_n "(cached) " >&6
19640 ac_check_lib_save_LIBS=$LIBS
19641 LIBS="-lpthread $LIBS"
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19645 /* Override any GCC internal prototype to avoid an error.
19646 Use char because int might match the return type of a GCC
19647 builtin and then its argument prototype would still apply. */
19651 char pthread_attr_setstack ();
19655 return pthread_attr_setstack ();
19660 if ac_fn_c_try_link "$LINENO"; then :
19661 ac_cv_lib_pthread_pthread_attr_setstack=yes
19663 ac_cv_lib_pthread_pthread_attr_setstack=no
19665 rm -f core conftest.err conftest.$ac_objext \
19666 conftest$ac_exeext conftest.$ac_ext
19667 LIBS=$ac_check_lib_save_LIBS
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_setstack" >&5
19670 $as_echo "$ac_cv_lib_pthread_pthread_attr_setstack" >&6; }
19671 if test "x$ac_cv_lib_pthread_pthread_attr_setstack" = xyes; then :
19672 cat >>confdefs.h <<_ACEOF
19673 #define HAVE_LIBPTHREAD 1
19676 LIBS="-lpthread $LIBS"
19682 AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE -DWOLFSSL_LOW_MEMORY"
19687 # Check whether --enable-memory was given.
19688 if test "${enable_memory+set}" = set; then :
19689 enableval=$enable_memory; ENABLED_MEMORY=$enableval
19696 if test "$ENABLED_MEMORY" = "no"
19698 AM_CFLAGS="$AM_CFLAGS -DNO_WOLFSSL_MEMORY"
19700 # turn off memory cb if leanpsk on
19701 if test "$ENABLED_LEANPSK" = "yes"
19703 # but don't turn on NO_WOLFSSL_MEMORY because using own
19708 if test "x$ENABLED_MEMORY" = "xyes"; then
19710 BUILD_MEMORY_FALSE='#'
19712 BUILD_MEMORY_TRUE='#'
19713 BUILD_MEMORY_FALSE=
19719 # Check whether --enable-rsa was given.
19720 if test "${enable_rsa+set}" = set; then :
19721 enableval=$enable_rsa; ENABLED_RSA=$enableval
19728 if test "$ENABLED_RSA" = "no"
19730 AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
19732 # turn off RSA if leanpsk on
19733 if test "$ENABLED_LEANPSK" = "yes"
19735 AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
19740 if test "x$ENABLED_RSA" = "xyes"; then
19742 BUILD_RSA_FALSE='#'
19751 # Check whether --enable-dh was given.
19752 if test "${enable_dh+set}" = set; then :
19753 enableval=$enable_dh; ENABLED_DH=$enableval
19760 if test "$ENABLED_DH" = "no"
19762 AM_CFLAGS="$AM_CFLAGS -DNO_DH"
19764 # turn off DH if leanpsk on
19765 if test "$ENABLED_LEANPSK" = "yes"
19767 AM_CFLAGS="$AM_CFLAGS -DNO_DH"
19772 if test "x$ENABLED_DH" = "xyes"; then
19783 # Check whether --enable-anon was given.
19784 if test "${enable_anon+set}" = set; then :
19785 enableval=$enable_anon; ENABLED_ANON=$enableval
19793 if test "x$ENABLED_ANON" = "xyes"
19795 if test "x$ENABLED_DH" != "xyes"
19797 as_fn_error $? "Anonymous suite requires DH." "$LINENO" 5
19799 AM_CFLAGS="$AM_CFLAGS -DHAVE_ANON"
19804 # turn off asn, which means no certs, no rsa, no dsa, no ecc,
19805 # and no big int (unless dh is on)
19806 # Check whether --enable-asn was given.
19807 if test "${enable_asn+set}" = set; then :
19808 enableval=$enable_asn; ENABLED_ASN=$enableval
19815 if test "$ENABLED_ASN" = "no"
19817 AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS"
19818 if test "$ENABLED_DH" = "no"
19821 AM_CFLAGS="$AM_CFLAGS -DNO_BIG_INT"
19824 # turn off ASN if leanpsk on
19825 if test "$ENABLED_LEANPSK" = "yes"
19827 AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS -DNO_BIG_INT"
19832 if test "$ENABLED_RSA" = "yes" && test "$ENABLED_ASN" = "no"
19834 as_fn_error $? "please disable rsa if disabling asn." "$LINENO" 5
19837 if test "$ENABLED_DSA" = "yes" && test "$ENABLED_ASN" = "no"
19839 as_fn_error $? "please disable dsa if disabling asn." "$LINENO" 5
19842 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_ASN" = "no"
19844 as_fn_error $? "please disable ecc if disabling asn." "$LINENO" 5
19847 if test "$ENABLED_PSK" = "no" && test "$ENABLED_ASN" = "no"
19849 as_fn_error $? "please enable psk if disabling asn." "$LINENO" 5
19853 if test "$ENABLED_ASN" = "no" && test "$ENABLED_DH" = "no"
19855 ENABLED_FASTMATH=no
19856 ENABLED_SLOWMATH=no
19859 if test "x$ENABLED_ASN" = "xyes"; then
19861 BUILD_ASN_FALSE='#'
19870 # Check whether --enable-aes was given.
19871 if test "${enable_aes+set}" = set; then :
19872 enableval=$enable_aes; ENABLED_AES=$enableval
19879 if test "$ENABLED_AES" = "no"
19881 AM_CFLAGS="$AM_CFLAGS -DNO_AES"
19882 if test "$ENABLED_AESGCM" = "yes"
19884 as_fn_error $? "AESGCM requires AES." "$LINENO" 5
19886 if test "$ENABLED_AESCCM" = "yes"
19888 as_fn_error $? "AESCCM requires AES." "$LINENO" 5
19891 # turn off AES if leanpsk on
19892 if test "$ENABLED_LEANPSK" = "yes"
19894 AM_CFLAGS="$AM_CFLAGS -DNO_AES"
19899 if test "x$ENABLED_AES" = "xyes"; then
19901 BUILD_AES_FALSE='#'
19910 # Check whether --enable-coding was given.
19911 if test "${enable_coding+set}" = set; then :
19912 enableval=$enable_coding; ENABLED_CODING=$enableval
19919 if test "$ENABLED_CODING" = "no"
19921 AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
19923 # turn off CODING if leanpsk on
19924 if test "$ENABLED_LEANPSK" = "yes"
19926 AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
19931 if test "x$ENABLED_CODING" = "xyes"; then
19933 BUILD_CODING_FALSE='#'
19935 BUILD_CODING_TRUE='#'
19936 BUILD_CODING_FALSE=
19942 # Check whether --enable-des3 was given.
19943 if test "${enable_des3+set}" = set; then :
19944 enableval=$enable_des3; ENABLED_DES3=$enableval
19951 if test "$ENABLED_DES3" = "no"
19953 AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
19955 # turn off DES3 if leanpsk on
19956 if test "$ENABLED_LEANPSK" = "yes"
19958 AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
19963 if test "x$ENABLED_DES3" = "xyes"; then
19965 BUILD_DES3_FALSE='#'
19967 BUILD_DES3_TRUE='#'
19974 # Check whether --enable-arc4 was given.
19975 if test "${enable_arc4+set}" = set; then :
19976 enableval=$enable_arc4; ENABLED_ARC4=$enableval
19983 if test "$ENABLED_ARC4" = "no"
19985 AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
19987 # turn off ARC4 if leanpsk on
19988 if test "$ENABLED_LEANPSK" = "yes"
19990 AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
19995 if test "x$ENABLED_ARC4" = "xyes"; then
19997 BUILD_RC4_FALSE='#'
20006 # Check whether --enable-md5 was given.
20007 if test "${enable_md5+set}" = set; then :
20008 enableval=$enable_md5; ENABLED_MD5=$enableval
20015 if test "$ENABLED_MD5" = "no"
20017 AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
20019 # turn off MD5 if leanpsk on
20020 if test "$ENABLED_LEANPSK" = "yes"
20022 AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
20027 if test "x$ENABLED_MD5" = "xyes"; then
20029 BUILD_MD5_FALSE='#'
20038 # Check whether --enable-sha was given.
20039 if test "${enable_sha+set}" = set; then :
20040 enableval=$enable_sha; ENABLED_SHA=$enableval
20047 if test "$ENABLED_SHA" = "no"
20049 AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
20051 # turn off SHA if leanpsk on
20052 if test "$ENABLED_LEANPSK" = "yes"
20054 AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
20059 if test "x$ENABLED_SHA" = "xyes"; then
20061 BUILD_SHA_FALSE='#'
20070 # Check whether --enable-md4 was given.
20071 if test "${enable_md4+set}" = set; then :
20072 enableval=$enable_md4; ENABLED_MD4=$enableval
20079 if test "$ENABLED_MD4" = "no"
20081 AM_CFLAGS="$AM_CFLAGS -DNO_MD4"
20084 if test "x$ENABLED_MD4" = "xyes"; then
20086 BUILD_MD4_FALSE='#'
20095 # Check whether --enable-webserver was given.
20096 if test "${enable_webserver+set}" = set; then :
20097 enableval=$enable_webserver; ENABLED_WEBSERVER=$enableval
20099 ENABLED_WEBSERVER=no
20104 if test "$ENABLED_WEBSERVER" = "yes"
20106 AM_CFLAGS="$AM_CFLAGS -DHAVE_WEBSERVER"
20112 # Check whether --enable-hc128 was given.
20113 if test "${enable_hc128+set}" = set; then :
20114 enableval=$enable_hc128; ENABLED_HC128=$enableval
20121 if test "$ENABLED_HC128" = "no"
20123 AM_CFLAGS="$AM_CFLAGS -DNO_HC128"
20125 AM_CFLAGS="$AM_CFLAGS -DHAVE_HC128"
20128 if test "x$ENABLED_HC128" = "xyes"; then
20130 BUILD_HC128_FALSE='#'
20132 BUILD_HC128_TRUE='#'
20139 # Check whether --enable-rabbit was given.
20140 if test "${enable_rabbit+set}" = set; then :
20141 enableval=$enable_rabbit; ENABLED_RABBIT=$enableval
20148 if test "$ENABLED_RABBIT" = "no"
20150 AM_CFLAGS="$AM_CFLAGS -DNO_RABBIT"
20152 AM_CFLAGS="$AM_CFLAGS -DHAVE_RABBIT"
20155 if test "x$ENABLED_RABBIT" = "xyes"; then
20157 BUILD_RABBIT_FALSE='#'
20159 BUILD_RABBIT_TRUE='#'
20160 BUILD_RABBIT_FALSE=
20166 # Check whether --enable-fips was given.
20167 if test "${enable_fips+set}" = set; then :
20168 enableval=$enable_fips; ENABLED_FIPS=$enableval
20175 if test "x$ENABLED_FIPS" = "xyes"
20177 # requires thread local storage
20178 if test "$thread_ls_on" = "no"
20180 as_fn_error $? "FIPS requires Thread Local Storage" "$LINENO" 5
20183 if test "x$ENABLED_SHA512" = "xno"
20185 ENABLED_SHA512="yes"
20186 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHA512 -DWOLFSSL_SHA384"
20187 if test "x$ENABLED_SHA512" = "xyes"; then
20189 BUILD_SHA512_FALSE='#'
20191 BUILD_SHA512_TRUE='#'
20192 BUILD_SHA512_FALSE=
20197 if test "x$ENABLED_AESGCM" != "xyes"
20199 ENABLED_AESGCM="yes"
20200 AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"
20201 if test "x$ENABLED_SHA512" = "xyes"; then
20203 BUILD_SHA512_FALSE='#'
20205 BUILD_SHA512_TRUE='#'
20206 BUILD_SHA512_FALSE=
20210 AM_CFLAGS="$AM_CFLAGS -DHAVE_FIPS"
20213 if test "x$ENABLED_FIPS" = "xyes"; then
20215 BUILD_FIPS_FALSE='#'
20217 BUILD_FIPS_TRUE='#'
20223 # set POLY1305 default
20224 POLY1305_DEFAULT=yes
20226 if test "x$ENABLED_FIPS" = "xyes"
20228 POLY1305_DEFAULT=no
20232 # Check whether --enable-poly1305 was given.
20233 if test "${enable_poly1305+set}" = set; then :
20234 enableval=$enable_poly1305; ENABLED_POLY1305=$enableval
20236 ENABLED_POLY1305=$POLY1305_DEFAULT
20241 # lean psk does't need poly1305
20242 if test "$ENABLED_LEANPSK" = "yes"
20244 ENABLED_POLY1305=no
20247 if test "$ENABLED_POLY1305" = "yes"
20249 AM_CFLAGS="$AM_CFLAGS -DHAVE_POLY1305 -DHAVE_ONE_TIME_AUTH"
20252 if test "x$ENABLED_POLY1305" = "xyes"; then
20253 BUILD_POLY1305_TRUE=
20254 BUILD_POLY1305_FALSE='#'
20256 BUILD_POLY1305_TRUE='#'
20257 BUILD_POLY1305_FALSE=
20262 # set CHACHA default
20265 if test "x$ENABLED_FIPS" = "xyes"
20271 # Check whether --enable-chacha was given.
20272 if test "${enable_chacha+set}" = set; then :
20273 enableval=$enable_chacha; ENABLED_CHACHA=$enableval
20275 ENABLED_CHACHA=$CHACHA_DEFAULT
20280 # lean psk does't need chacha
20281 if test "$ENABLED_LEANPSK" = "yes"
20286 if test "$ENABLED_CHACHA" = "yes"
20288 AM_CFLAGS="$AM_CFLAGS -DHAVE_CHACHA"
20291 if test "x$ENABLED_CHACHA" = "xyes"; then
20293 BUILD_CHACHA_FALSE='#'
20295 BUILD_CHACHA_TRUE='#'
20296 BUILD_CHACHA_FALSE=
20302 # Check whether --enable-hashdrbg was given.
20303 if test "${enable_hashdrbg+set}" = set; then :
20304 enableval=$enable_hashdrbg; ENABLED_HASHDRBG=$enableval
20306 ENABLED_HASHDRBG=yes
20311 if test "x$ENABLED_HASHDRBG" = "xyes"
20313 AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
20315 # turn on Hash DRBG if FIPS is on or ARC4 is off
20316 if test "x$ENABLED_FIPS" = "xyes" || test "x$ENABLED_ARC4" = "xno"
20318 AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
20319 ENABLED_HASHDRBG=yes
20325 # Check whether --enable-filesystem was given.
20326 if test "${enable_filesystem+set}" = set; then :
20327 enableval=$enable_filesystem; ENABLED_FILESYSTEM=$enableval
20329 ENABLED_FILESYSTEM=yes
20334 if test "$ENABLED_FILESYSTEM" = "no"
20336 AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
20338 # turn off filesystem if leanpsk on
20339 if test "$ENABLED_LEANPSK" = "yes"
20341 AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
20342 ENABLED_FILESYSTEM=no
20348 # Check whether --enable-inline was given.
20349 if test "${enable_inline+set}" = set; then :
20350 enableval=$enable_inline; ENABLED_INLINE=$enableval
20357 if test "$ENABLED_INLINE" = "no"
20359 AM_CFLAGS="$AM_CFLAGS -DNO_INLINE"
20362 if test "x$ENABLED_INLINE" = "xyes"; then
20364 BUILD_INLINE_FALSE='#'
20366 BUILD_INLINE_TRUE='#'
20367 BUILD_INLINE_FALSE=
20373 # Check whether --enable-ocsp was given.
20374 if test "${enable_ocsp+set}" = set; then :
20375 enableval=$enable_ocsp; ENABLED_OCSP=$enableval
20381 if test "$ENABLED_OCSP" = "yes"
20383 AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
20386 if test "x$ENABLED_OCSP" = "xyes"; then
20388 BUILD_OCSP_FALSE='#'
20390 BUILD_OCSP_TRUE='#'
20396 if test "$ENABLED_OCSP" = "yes"
20398 # check openssl command tool for testing ocsp
20399 # Extract the first word of "openssl", so it can be a program name with args.
20400 set dummy openssl; ac_word=$2
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20402 $as_echo_n "checking for $ac_word... " >&6; }
20403 if ${ac_cv_prog_HAVE_OPENSSL_CMD+:} false; then :
20404 $as_echo_n "(cached) " >&6
20406 if test -n "$HAVE_OPENSSL_CMD"; then
20407 ac_cv_prog_HAVE_OPENSSL_CMD="$HAVE_OPENSSL_CMD" # Let the user override the test.
20409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20410 for as_dir in $PATH
20413 test -z "$as_dir" && as_dir=.
20414 for ac_exec_ext in '' $ac_executable_extensions; do
20415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20416 ac_cv_prog_HAVE_OPENSSL_CMD="yes"
20417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20424 test -z "$ac_cv_prog_HAVE_OPENSSL_CMD" && ac_cv_prog_HAVE_OPENSSL_CMD="no"
20427 HAVE_OPENSSL_CMD=$ac_cv_prog_HAVE_OPENSSL_CMD
20428 if test -n "$HAVE_OPENSSL_CMD"; then
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPENSSL_CMD" >&5
20430 $as_echo "$HAVE_OPENSSL_CMD" >&6; }
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 $as_echo "no" >&6; }
20438 if test "$HAVE_OPENSSL_CMD" = "yes"
20440 AM_CFLAGS="$AM_CFLAGS -DHAVE_OPENSSL_CMD"
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openssl command line tool not available for testing ocsp" >&5
20443 $as_echo "$as_me: WARNING: openssl command line tool not available for testing ocsp" >&2;}
20449 # Check whether --enable-crl was given.
20450 if test "${enable_crl+set}" = set; then :
20451 enableval=$enable_crl; ENABLED_CRL=$enableval
20457 if test "$ENABLED_CRL" = "yes"
20459 AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
20462 if test "x$ENABLED_CRL" = "xyes"; then
20464 BUILD_CRL_FALSE='#'
20473 # Check whether --enable-crl-monitor was given.
20474 if test "${enable_crl_monitor+set}" = set; then :
20475 enableval=$enable_crl_monitor; ENABLED_CRL_MONITOR=$enableval
20477 ENABLED_CRL_MONITOR=no
20481 if test "$ENABLED_CRL_MONITOR" = "yes"
20484 *linux* | *darwin* | *freebsd*)
20485 AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR" ;;
20487 as_fn_error $? "crl monitor only allowed on linux, OS X, or freebsd" "$LINENO" 5 ;;
20491 if test "x$ENABLED_CRL_MONITOR" = "xyes"; then
20492 BUILD_CRL_MONITOR_TRUE=
20493 BUILD_CRL_MONITOR_FALSE='#'
20495 BUILD_CRL_MONITOR_TRUE='#'
20496 BUILD_CRL_MONITOR_FALSE=
20505 # Check whether --with-ntru was given.
20506 if test "${with_ntru+set}" = set; then :
20507 withval=$with_ntru;
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTRU" >&5
20509 $as_echo_n "checking for NTRU... " >&6; }
20510 CPPFLAGS="$CPPFLAGS -DHAVE_NTRU"
20511 LIBS="$LIBS -lNTRUEncrypt"
20513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514 /* end confdefs.h. */
20515 #include <ntru_crypto_drbg.h>
20519 ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0);
20524 if ac_fn_c_try_link "$LINENO"; then :
20529 rm -f core conftest.err conftest.$ac_objext \
20530 conftest$ac_exeext conftest.$ac_ext
20532 if test "x$ntru_linked" == "xno" ; then
20533 if test "x$withval" != "xno" ; then
20534 tryntrudir=$withval
20536 if test "x$withval" == "xyes" ; then
20540 LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
20541 CPPFLAGS="$CPPFLAGS -I$tryntrudir/include"
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20545 #include <ntru_crypto_drbg.h>
20549 ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0);
20554 if ac_fn_c_try_link "$LINENO"; then :
20559 rm -f core conftest.err conftest.$ac_objext \
20560 conftest$ac_exeext conftest.$ac_ext
20562 if test "x$ntru_linked" == "xno" ; then
20563 as_fn_error $? "NTRU isn't found.
20564 If it's already installed, specify its path using --with-ntru=/dir/" "$LINENO" 5
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20567 $as_echo "yes" >&6; }
20568 AM_LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20571 $as_echo "yes" >&6; }
20574 AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU"
20581 if test "x$ENABLED_NTRU" = "xyes"; then
20583 BUILD_NTRU_FALSE='#'
20585 BUILD_NTRU_TRUE='#'
20590 if test "$ENABLED_NTRU" = "yes" && test "$ENABLED_SMALL" = "yes"
20592 as_fn_error $? "cannot enable ntru and small, ntru requires TLS which small turns off." "$LINENO" 5
20596 # Check whether --enable-sni was given.
20597 if test "${enable_sni+set}" = set; then :
20598 enableval=$enable_sni; ENABLED_SNI=$enableval
20605 if test "x$ENABLED_SNI" = "xyes"
20607 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI"
20610 # Maximum Fragment Length
20611 # Check whether --enable-maxfragment was given.
20612 if test "${enable_maxfragment+set}" = set; then :
20613 enableval=$enable_maxfragment; ENABLED_MAX_FRAGMENT=$enableval
20615 ENABLED_MAX_FRAGMENT=no
20620 if test "x$ENABLED_MAX_FRAGMENT" = "xyes"
20622 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_MAX_FRAGMENT"
20626 # Check whether --enable-truncatedhmac was given.
20627 if test "${enable_truncatedhmac+set}" = set; then :
20628 enableval=$enable_truncatedhmac; ENABLED_TRUNCATED_HMAC=$enableval
20630 ENABLED_TRUNCATED_HMAC=no
20635 if test "x$ENABLED_TRUNCATED_HMAC" = "xyes"
20637 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_TRUNCATED_HMAC"
20640 # Renegotiation Indication - (FAKE Secure Renegotiation)
20641 # Check whether --enable-renegotiation-indication was given.
20642 if test "${enable_renegotiation_indication+set}" = set; then :
20643 enableval=$enable_renegotiation_indication; ENABLED_RENEGOTIATION_INDICATION=$enableval
20645 ENABLED_RENEGOTIATION_INDICATION=no
20650 if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
20652 AM_CFLAGS="$AM_CFLAGS -DHAVE_RENEGOTIATION_INDICATION"
20655 # Secure Renegotiation
20656 # Check whether --enable-secure-renegotiation was given.
20657 if test "${enable_secure_renegotiation+set}" = set; then :
20658 enableval=$enable_secure_renegotiation; ENABLED_SECURE_RENEGOTIATION=$enableval
20660 ENABLED_SECURE_RENEGOTIATION=no
20665 if test "x$ENABLED_SECURE_RENEGOTIATION" = "xyes"
20667 if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
20669 as_fn_error $? "cannot enable renegotiation-indication and secure-renegotiation." "$LINENO" 5
20671 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SECURE_RENEGOTIATION"
20674 # Supported Elliptic Curves Extensions
20675 # Check whether --enable-supportedcurves was given.
20676 if test "${enable_supportedcurves+set}" = set; then :
20677 enableval=$enable_supportedcurves; ENABLED_SUPPORTED_CURVES=$enableval
20679 ENABLED_SUPPORTED_CURVES=no
20684 if test "x$ENABLED_SUPPORTED_CURVES" = "xyes"
20686 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SUPPORTED_CURVES"
20689 # Session Ticket Extension
20690 # Check whether --enable-session-ticket was given.
20691 if test "${enable_session_ticket+set}" = set; then :
20692 enableval=$enable_session_ticket; ENABLED_SESSION_TICKET=$enableval
20694 ENABLED_SESSION_TICKET=no
20699 if test "x$ENABLED_SESSION_TICKET" = "xyes"
20701 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SESSION_TICKET"
20705 # Check whether --enable-tlsx was given.
20706 if test "${enable_tlsx+set}" = set; then :
20707 enableval=$enable_tlsx; ENABLED_TLSX=$enableval
20714 if test "x$ENABLED_TLSX" = "xyes"
20717 ENABLED_MAX_FRAGMENT=yes
20718 ENABLED_TRUNCATED_HMAC=yes
20719 ENABLED_SUPPORTED_CURVES=yes
20720 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI -DHAVE_MAX_FRAGMENT -DHAVE_TRUNCATED_HMAC -DHAVE_SUPPORTED_CURVES"
20724 # Check whether --enable-pkcs7 was given.
20725 if test "${enable_pkcs7+set}" = set; then :
20726 enableval=$enable_pkcs7; ENABLED_PKCS7=$enableval
20732 if test "$ENABLED_PKCS7" = "yes"
20734 AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
20737 if test "x$ENABLED_PKCS7" = "xyes"; then
20739 BUILD_PKCS7_FALSE='#'
20741 BUILD_PKCS7_TRUE='#'
20747 # Simple Certificate Enrollment Protocol (SCEP)
20748 # Check whether --enable-scep was given.
20749 if test "${enable_scep+set}" = set; then :
20750 enableval=$enable_scep; ENABLED_WOLFSCEP=$enableval
20752 ENABLED_WOLFSCEP=no
20756 if test "$ENABLED_WOLFSCEP" = "yes"
20758 # Enable prereqs if not already enabled
20759 if test "x$ENABLED_KEYGEN" = "xno"
20761 ENABLED_KEYGEN="yes"
20762 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KEY_GEN"
20764 if test "x$ENABLED_CERTGEN" = "xno"
20766 ENABLED_CERTGEN="yes"
20767 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
20769 if test "x$ENABLED_CERTREQ" = "xno"
20771 ENABLED_CERTREQ="yes"
20772 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_REQ"
20774 if test "x$ENABLED_PKCS7" = "xno"
20776 ENABLED_PKCS7="yes"
20777 AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
20778 if test "x$ENABLED_PKCS7" = "xyes"; then
20780 BUILD_PKCS7_FALSE='#'
20782 BUILD_PKCS7_TRUE='#'
20787 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_WOLFSCEP"
20792 # Check whether --enable-smallstack was given.
20793 if test "${enable_smallstack+set}" = set; then :
20794 enableval=$enable_smallstack; ENABLED_SMALL_STACK=$enableval
20796 ENABLED_SMALL_STACK=no
20801 if test "x$ENABLED_SMALL_STACK" = "xyes"
20803 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SMALL_STACK"
20808 # Check whether --enable-valgrind was given.
20809 if test "${enable_valgrind+set}" = set; then :
20810 enableval=$enable_valgrind; ENABLED_VALGRIND=$enableval
20812 ENABLED_VALGRIND=no
20817 if test "$ENABLED_VALGRIND" = "yes"
20819 # Extract the first word of "valgrind", so it can be a program name with args.
20820 set dummy valgrind; ac_word=$2
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20822 $as_echo_n "checking for $ac_word... " >&6; }
20823 if ${ac_cv_prog_HAVE_VALGRIND+:} false; then :
20824 $as_echo_n "(cached) " >&6
20826 if test -n "$HAVE_VALGRIND"; then
20827 ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
20829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20830 for as_dir in $PATH
20833 test -z "$as_dir" && as_dir=.
20834 for ac_exec_ext in '' $ac_executable_extensions; do
20835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20836 ac_cv_prog_HAVE_VALGRIND="yes"
20837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20844 test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
20847 HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
20848 if test -n "$HAVE_VALGRIND"; then
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_VALGRIND" >&5
20850 $as_echo "$HAVE_VALGRIND" >&6; }
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20853 $as_echo "no" >&6; }
20858 if test "$HAVE_VALGRIND" = "no"
20860 as_fn_error $? "Valgrind not found." "$LINENO" 5
20864 AM_CFLAGS="$AM_CFLAGS -DHAVE_VALGRIND"
20867 if test "x$ENABLED_VALGRIND" = "xyes"; then
20869 USE_VALGRIND_FALSE='#'
20871 USE_VALGRIND_TRUE='#'
20872 USE_VALGRIND_FALSE=
20877 # Test certs, use internal cert functions for extra testing
20878 # Check whether --enable-testcert was given.
20879 if test "${enable_testcert+set}" = set; then :
20880 enableval=$enable_testcert; ENABLED_TESTCERT=$enableval
20882 ENABLED_TESTCERT=no
20887 if test "$ENABLED_TESTCERT" = "yes"
20889 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TEST_CERT"
20893 # I/O Pool, an example to show user how to override memory handler and use
20894 # a pool for the input/output buffer requests
20895 # Check whether --enable-iopool was given.
20896 if test "${enable_iopool+set}" = set; then :
20897 enableval=$enable_iopool; ENABLED_IOPOOL=$enableval
20904 if test "$ENABLED_IOPOOL" = "yes"
20906 if test "$thread_ls_on" = "no"
20908 as_fn_error $? "I/O Pool example requires Thread Local Storage" "$LINENO" 5
20910 AM_CFLAGS="$AM_CFLAGS -DHAVE_IO_POOL -DXMALLOC_USER"
20914 # Certificate Service Support
20915 # Check whether --enable-certservice was given.
20916 if test "${enable_certservice+set}" = set; then :
20917 enableval=$enable_certservice; ENABLED_CERT_SERVICE=$enableval
20919 ENABLED_CERT_SERVICE=no
20923 if test "$ENABLED_CERT_SERVICE" = "yes"
20925 # Requires ecc,certgen, and opensslextra make sure on
20926 if test "x$ENABLED_CERTGEN" = "xno"
20928 ENABLED_CERTGEN="yes"
20929 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
20931 if test "x$ENABLED_ECC" = "xno"
20934 AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
20935 if test "x$ENABLED_ECC" = "xyes"; then
20937 BUILD_ECC_FALSE='#'
20944 if test "x$ENABLED_OPENSSLEXTRA" = "xno"
20946 ENABLED_OPENSSLEXTRA="yes"
20947 AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
20949 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_CERT_SERVICE"
20953 # PWDBASED has to come after certservice since we want it on w/o explicit on
20955 # Check whether --enable-pwdbased was given.
20956 if test "${enable_pwdbased+set}" = set; then :
20957 enableval=$enable_pwdbased; ENABLED_PWDBASED=$enableval
20959 ENABLED_PWDBASED=no
20964 if test "$ENABLED_PWDBASED" = "no"
20966 if test "$ENABLED_OPENSSLEXTRA" = "yes" || test "$ENABLED_WEBSERVER" = "yes"
20968 # opensslextra and webserver needs pwdbased
20969 ENABLED_PWDBASED=yes
20971 AM_CFLAGS="$AM_CFLAGS -DNO_PWDBASED"
20975 if test "x$ENABLED_PWDBASED" = "xyes"; then
20976 BUILD_PWDBASED_TRUE=
20977 BUILD_PWDBASED_FALSE='#'
20979 BUILD_PWDBASED_TRUE='#'
20980 BUILD_PWDBASED_FALSE=
20985 # set fastmath default
20986 FASTMATH_DEFAULT=no
20988 if test "$host_cpu" = "x86_64"
20990 FASTMATH_DEFAULT=yes
20994 # Check whether --enable-fastmath was given.
20995 if test "${enable_fastmath+set}" = set; then :
20996 enableval=$enable_fastmath; ENABLED_FASTMATH=$enableval
20998 ENABLED_FASTMATH=$FASTMATH_DEFAULT
21003 if test "x$ENABLED_FASTMATH" = "xyes"
21005 # turn off fastmth if leanpsk on or asn off (w/o dh)
21006 if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_ASN" = "no"
21008 if test "$ENABLED_DH" = "no"
21010 ENABLED_FASTMATH=no
21012 AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
21013 ENABLED_SLOWMATH="no"
21016 AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
21017 ENABLED_SLOWMATH="no"
21019 if test "$host_cpu" = "x86_64"
21021 # Have settings.h set FP_MAX_BITS higher if user didn't set directly
21022 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_X86_64_BUILD"
21028 # Check whether --enable-fasthugemath was given.
21029 if test "${enable_fasthugemath+set}" = set; then :
21030 enableval=$enable_fasthugemath; ENABLED_FASTHUGEMATH=$enableval
21032 ENABLED_FASTHUGEMATH=no
21037 if test "$ENABLED_BUMP" = "yes"
21039 ENABLED_FASTHUGEMATH="yes"
21042 if test "$ENABLED_FASTHUGEMATH" = "yes"
21044 ENABLED_FASTMATH="yes"
21045 AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
21046 ENABLED_SLOWMATH="no"
21049 if test "x$ENABLED_FASTMATH" = "xyes"; then
21050 BUILD_FASTMATH_TRUE=
21051 BUILD_FASTMATH_FALSE='#'
21053 BUILD_FASTMATH_TRUE='#'
21054 BUILD_FASTMATH_FALSE=
21057 if test "x$ENABLED_SLOWMATH" = "xyes"; then
21058 BUILD_SLOWMATH_TRUE=
21059 BUILD_SLOWMATH_FALSE='#'
21061 BUILD_SLOWMATH_TRUE='#'
21062 BUILD_SLOWMATH_FALSE=
21067 # Enable Examples, used to disable examples
21068 # Check whether --enable-examples was given.
21069 if test "${enable_examples+set}" = set; then :
21070 enableval=$enable_examples; ENABLED_EXAMPLES=$enableval
21072 ENABLED_EXAMPLES=yes
21077 if test "x$ENABLED_FILESYSTEM" = "xno"; then :
21078 ENABLED_EXAMPLES="no"
21080 if test "x$ENABLED_INLINE" = "xno"; then :
21081 ENABLED_EXAMPLES="no"
21083 if test "x$ENABLED_EXAMPLES" = "xyes"; then
21084 BUILD_EXAMPLES_TRUE=
21085 BUILD_EXAMPLES_FALSE='#'
21087 BUILD_EXAMPLES_TRUE='#'
21088 BUILD_EXAMPLES_FALSE=
21097 # Check whether --with-libz was given.
21098 if test "${with_libz+set}" = set; then :
21099 withval=$with_libz;
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
21101 $as_echo_n "checking for libz... " >&6; }
21102 CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
21105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21106 /* end confdefs.h. */
21116 if ac_fn_c_try_link "$LINENO"; then :
21121 rm -f core conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21124 if test "x$libz_linked" == "xno" ; then
21125 if test "x$withval" != "xno" ; then
21126 trylibzdir=$withval
21128 if test "x$withval" == "xyes" ; then
21132 AM_LDFLAGS="$AM_LDFLAGS -L$trylibzdir/lib"
21133 CPPFLAGS="$CPPFLAGS -I$trylibzdir/include"
21135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21136 /* end confdefs.h. */
21146 if ac_fn_c_try_link "$LINENO"; then :
21151 rm -f core conftest.err conftest.$ac_objext \
21152 conftest$ac_exeext conftest.$ac_ext
21154 if test "x$libz_linked" == "xno" ; then
21155 as_fn_error $? "libz isn't found.
21156 If it's already installed, specify its path using --with-libz=/dir/" "$LINENO" 5
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21159 $as_echo "yes" >&6; }
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21162 $as_echo "yes" >&6; }
21169 if test "x$ENABLED_LIBZ" = "xyes"; then
21171 BUILD_LIBZ_FALSE='#'
21173 BUILD_LIBZ_TRUE='#'
21182 # Check whether --with-cavium was given.
21183 if test "${with_cavium+set}" = set; then :
21184 withval=$with_cavium;
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cavium" >&5
21186 $as_echo_n "checking for cavium... " >&6; }
21187 CPPFLAGS="$CPPFLAGS -DHAVE_CAVIUM"
21189 if test "x$withval" == "xyes" ; then
21190 as_fn_error $? "need a PATH for --with-cavium" "$LINENO" 5
21192 if test "x$withval" != "xno" ; then
21193 trycaviumdir=$withval
21196 LDFLAGS="$AM_LDFLAGS $trycaviumdir/api/cavium_common.o"
21197 CPPFLAGS="$CPPFLAGS -I$trycaviumdir/include"
21199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21201 #include "cavium_common.h"
21205 CspShutdown(CAVIUM_DEV_ID);
21210 if ac_fn_c_try_link "$LINENO"; then :
21215 rm -f core conftest.err conftest.$ac_objext \
21216 conftest$ac_exeext conftest.$ac_ext
21218 if test "x$cavium_linked" == "xno" ; then
21219 as_fn_error $? "cavium isn't found.
21220 If it's already installed, specify its path using --with-cavium=/dir/" "$LINENO" 5
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21223 $as_echo "yes" >&6; }
21233 # Check whether --enable-mcapi was given.
21234 if test "${enable_mcapi+set}" = set; then :
21235 enableval=$enable_mcapi; ENABLED_MCAPI=$enableval
21242 if test "$ENABLED_MCAPI" = "yes"
21244 AM_CFLAGS="$AM_CFLAGS -DHAVE_MCAPI -DWOLFSSL_AES_COUNTER -DWOLFSSL_AES_DIRECT"
21247 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_SHA512" = "no"
21249 as_fn_error $? "please enable sha512 if enabling mcapi." "$LINENO" 5
21252 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_ECC" = "no"
21254 as_fn_error $? "please enable ecc if enabling mcapi." "$LINENO" 5
21257 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_LIBZ" = "no"
21259 as_fn_error $? "please use --with-libz if enabling mcapi." "$LINENO" 5
21262 if test "x$ENABLED_MCAPI" = "xyes"; then
21264 BUILD_MCAPI_FALSE='#'
21266 BUILD_MCAPI_TRUE='#'
21273 # Check whether --enable-jni was given.
21274 if test "${enable_jni+set}" = set; then :
21275 enableval=$enable_jni; ENABLED_JNI=$enableval
21281 if test "$ENABLED_JNI" = "yes"
21283 # Enable prereqs if not already enabled
21284 if test "x$ENABLED_DTLS" = "xno"
21287 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DTLS"
21289 if test "x$ENABLED_OPENSSLEXTRA" = "xno"
21291 ENABLED_OPENSSLEXTRA="yes"
21292 AM_CFLAGS="$AM_CFLAGS -DOPENSSL_EXTRA"
21294 if test "x$ENABLED_CRL" = "xno"
21297 AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
21298 if test "x$ENABLED_CRL" = "xyes"; then
21300 BUILD_CRL_FALSE='#'
21307 if test "x$ENABLED_OCSP" = "xno"
21310 AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
21311 if test "x$ENABLED_OCSP" = "xyes"; then
21313 BUILD_OCSP_FALSE='#'
21315 BUILD_OCSP_TRUE='#'
21320 if test "x$ENABLED_CRL_MONITOR" = "xno"
21322 ENABLED_CRL_MONITOR="yes"
21323 AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR"
21325 if test "x$ENABLED_SAVESESSION" = "xno"
21327 ENABLED_SAVESESSION="yes"
21328 AM_CFLAGS="$AM_CFLAGS -DPERSIST_SESSION_CACHE"
21330 if test "x$ENABLED_SAVECERT" = "xno"
21332 ENABLED_SAVECERT="yes"
21333 AM_CFLAGS="$AM_CFLAGS -DPERSIST_CERT_CACHE"
21335 if test "x$ENABLED_ATOMICUSER" = "xno"
21337 ENABLED_ATOMICUSER="yes"
21338 AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
21340 if test "x$ENABLED_ECC" = "xno"
21343 AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC"
21345 if test "x$ENABLED_PKCALLBACKS" = "xno"
21347 ENABLED_PKCALLBACKS="yes"
21348 AM_CFLAGS="$AM_CFLAGS -DHAVE_PK_CALLBACKS"
21350 if test "x$ENABLED_DH" = "xno"
21353 AM_CFLAGS="$AM_CFLAGS -DHAVE_DH"
21358 # Check for build-type conflicts
21359 if test "x$ENABLED_MAXSTRENGTH" = "xyes" && \
21360 test "x$ENABLED_LEANPSK" = "xyes"; then :
21361 as_fn_error $? "Cannot use Max Strength and Lean PSK at the same time." "$LINENO" 5
21365 # Update CFLAGS based on options
21366 if test "x$ENABLED_MAXSTRENGTH" = "xyes"; then :
21367 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_MAX_STRENGTH"
21370 if test "x$ENABLED_MAXSTRENGTH" = "xyes" && \
21371 test "x$ENABLED_OLD_TLS" = "xyes"; then :
21372 AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
21378 if test "$GCC" = "yes"
21380 AM_CFLAGS="$AM_CFLAGS -Wall -Wno-unused"
21381 if test "$ax_enable_debug" = "no"
21383 if test "$ENABLED_FASTMATH" = "yes"
21385 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_FAST_CFLAGS"
21386 if test "$ENABLED_FASTHUGEMATH" = "yes"
21388 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_HUGE_CFLAGS"
21391 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_CFLAGS"
21396 # ICC command line warning for non supported warning flags
21397 if test "$CC" = "icc"
21399 AM_CFLAGS="$AM_CFLAGS -wd10006"
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21405 $as_echo_n "checking for library containing gethostbyname... " >&6; }
21406 if ${ac_cv_search_gethostbyname+:} false; then :
21407 $as_echo_n "(cached) " >&6
21409 ac_func_search_save_LIBS=$LIBS
21410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21411 /* end confdefs.h. */
21413 /* Override any GCC internal prototype to avoid an error.
21414 Use char because int might match the return type of a GCC
21415 builtin and then its argument prototype would still apply. */
21419 char gethostbyname ();
21423 return gethostbyname ();
21428 for ac_lib in '' nsl; do
21429 if test -z "$ac_lib"; then
21430 ac_res="none required"
21433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21435 if ac_fn_c_try_link "$LINENO"; then :
21436 ac_cv_search_gethostbyname=$ac_res
21438 rm -f core conftest.err conftest.$ac_objext \
21440 if ${ac_cv_search_gethostbyname+:} false; then :
21444 if ${ac_cv_search_gethostbyname+:} false; then :
21447 ac_cv_search_gethostbyname=no
21449 rm conftest.$ac_ext
21450 LIBS=$ac_func_search_save_LIBS
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21453 $as_echo "$ac_cv_search_gethostbyname" >&6; }
21454 ac_res=$ac_cv_search_gethostbyname
21455 if test "$ac_res" != no; then :
21456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21461 $as_echo_n "checking for library containing socket... " >&6; }
21462 if ${ac_cv_search_socket+:} false; then :
21463 $as_echo_n "(cached) " >&6
21465 ac_func_search_save_LIBS=$LIBS
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21469 /* Override any GCC internal prototype to avoid an error.
21470 Use char because int might match the return type of a GCC
21471 builtin and then its argument prototype would still apply. */
21484 for ac_lib in '' socket; do
21485 if test -z "$ac_lib"; then
21486 ac_res="none required"
21489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21491 if ac_fn_c_try_link "$LINENO"; then :
21492 ac_cv_search_socket=$ac_res
21494 rm -f core conftest.err conftest.$ac_objext \
21496 if ${ac_cv_search_socket+:} false; then :
21500 if ${ac_cv_search_socket+:} false; then :
21503 ac_cv_search_socket=no
21505 rm conftest.$ac_ext
21506 LIBS=$ac_func_search_save_LIBS
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21509 $as_echo "$ac_cv_search_socket" >&6; }
21510 ac_res=$ac_cv_search_socket
21511 if test "$ac_res" != no; then :
21512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21517 $as_echo_n "checking for socket in -lsocket... " >&6; }
21518 if ${ac_cv_lib_socket_socket+:} false; then :
21519 $as_echo_n "(cached) " >&6
21521 ac_check_lib_save_LIBS=$LIBS
21522 LIBS="-lsocket -lnsl $LIBS"
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21526 /* Override any GCC internal prototype to avoid an error.
21527 Use char because int might match the return type of a GCC
21528 builtin and then its argument prototype would still apply. */
21541 if ac_fn_c_try_link "$LINENO"; then :
21542 ac_cv_lib_socket_socket=yes
21544 ac_cv_lib_socket_socket=no
21546 rm -f core conftest.err conftest.$ac_objext \
21547 conftest$ac_exeext conftest.$ac_ext
21548 LIBS=$ac_check_lib_save_LIBS
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21551 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21552 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21553 LIBS="-lsocket -lnsl $LIBS"
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs system" >&5
21560 $as_echo_n "checking for vcs system... " >&6; }
21561 if ${ac_cv_vcs_system+:} false; then :
21562 $as_echo_n "(cached) " >&6
21564 ac_cv_vcs_system="none"
21565 if test -d ".bzr"; then :
21566 ac_cv_vcs_system="bazaar"
21568 if test -d ".svn"; then :
21569 ac_cv_vcs_system="svn"
21571 if test -d ".hg"; then :
21572 ac_cv_vcs_system="mercurial"
21574 if test -d ".git"; then :
21575 ac_cv_vcs_system="git"
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_system" >&5
21580 $as_echo "$ac_cv_vcs_system" >&6; }
21582 cat >>confdefs.h <<_ACEOF
21583 #define VCS_SYSTEM "$ac_cv_vcs_system"
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs checkout" >&5
21589 $as_echo_n "checking for vcs checkout... " >&6; }
21590 if ${ac_cv_vcs_checkout+:} false; then :
21591 $as_echo_n "(cached) " >&6
21593 if test "x$ac_cv_vcs_system" != "xnone"; then :
21594 ac_cv_vcs_checkout=yes
21596 ac_cv_vcs_checkout=no
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_checkout" >&5
21601 $as_echo "$ac_cv_vcs_checkout" >&6; }
21603 if test "x$ac_cv_vcs_checkout" = "xyes"; then
21604 IS_VCS_CHECKOUT_TRUE=
21605 IS_VCS_CHECKOUT_FALSE='#'
21607 IS_VCS_CHECKOUT_TRUE='#'
21608 IS_VCS_CHECKOUT_FALSE=
21611 if test "x$ac_cv_vcs_checkout" = "xyes"; then :
21613 $as_echo "#define VCS_CHECKOUT 1" >>confdefs.h
21617 $as_echo "#define VCS_CHECKOUT 0" >>confdefs.h
21626 ax_append_compile_link_flags_extra=
21627 if test "x$ac_cv_vcs_checkout" = "xyes"; then :
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Werror" >&5
21630 $as_echo_n "checking whether the linker accepts -Werror... " >&6; }
21631 if ${ax_cv_check_ldflags___Werror+:} false; then :
21632 $as_echo_n "(cached) " >&6
21635 ax_check_save_flags=$LDFLAGS
21636 LDFLAGS="$LDFLAGS -Werror"
21637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21638 /* end confdefs.h. */
21648 if ac_fn_c_try_link "$LINENO"; then :
21649 ax_cv_check_ldflags___Werror=yes
21651 ax_cv_check_ldflags___Werror=no
21653 rm -f core conftest.err conftest.$ac_objext \
21654 conftest$ac_exeext conftest.$ac_ext
21655 LDFLAGS=$ax_check_save_flags
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Werror" >&5
21658 $as_echo "$ax_cv_check_ldflags___Werror" >&6; }
21659 if test x"$ax_cv_check_ldflags___Werror" = xyes; then :
21661 AX_HARDEN_LIB="-Werror $AX_HARDEN_LIB"
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Werror" >&5
21671 $as_echo_n "checking whether the linker accepts -Werror... " >&6; }
21672 if ${ax_cv_check_ldflags___Werror+:} false; then :
21673 $as_echo_n "(cached) " >&6
21676 ax_check_save_flags=$LDFLAGS
21677 LDFLAGS="$LDFLAGS -Werror"
21678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21679 /* end confdefs.h. */
21689 if ac_fn_c_try_link "$LINENO"; then :
21690 ax_cv_check_ldflags___Werror=yes
21692 ax_cv_check_ldflags___Werror=no
21694 rm -f core conftest.err conftest.$ac_objext \
21695 conftest$ac_exeext conftest.$ac_ext
21696 LDFLAGS=$ax_check_save_flags
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Werror" >&5
21699 $as_echo "$ax_cv_check_ldflags___Werror" >&6; }
21700 if test x"$ax_cv_check_ldflags___Werror" = xyes; then :
21702 ax_append_compile_link_flags_extra='-Werror'
21711 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_append_compile_link_flags_extra_-z relro -z now" | $as_tr_sh`
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -z relro -z now" >&5
21713 $as_echo_n "checking whether the linker accepts -z relro -z now... " >&6; }
21714 if eval \${$as_CACHEVAR+:} false; then :
21715 $as_echo_n "(cached) " >&6
21718 ax_check_save_flags=$LDFLAGS
21719 LDFLAGS="$LDFLAGS $ax_append_compile_link_flags_extra -z relro -z now"
21720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21721 /* end confdefs.h. */
21731 if ac_fn_c_try_link "$LINENO"; then :
21732 eval "$as_CACHEVAR=yes"
21734 eval "$as_CACHEVAR=no"
21736 rm -f core conftest.err conftest.$ac_objext \
21737 conftest$ac_exeext conftest.$ac_ext
21738 LDFLAGS=$ax_check_save_flags
21740 eval ac_res=\$$as_CACHEVAR
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21742 $as_echo "$ac_res" >&6; }
21743 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21745 AX_HARDEN_LIB="-z relro -z now $AX_HARDEN_LIB"
21752 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_append_compile_link_flags_extra_-pie" | $as_tr_sh`
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
21754 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
21755 if eval \${$as_CACHEVAR+:} false; then :
21756 $as_echo_n "(cached) " >&6
21759 ax_check_save_flags=$LDFLAGS
21760 LDFLAGS="$LDFLAGS $ax_append_compile_link_flags_extra -pie"
21761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h. */
21772 if ac_fn_c_try_link "$LINENO"; then :
21773 eval "$as_CACHEVAR=yes"
21775 eval "$as_CACHEVAR=no"
21777 rm -f core conftest.err conftest.$ac_objext \
21778 conftest$ac_exeext conftest.$ac_ext
21779 LDFLAGS=$ax_check_save_flags
21781 eval ac_res=\$$as_CACHEVAR
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21783 $as_echo "$ac_res" >&6; }
21784 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21786 AX_HARDEN_LIB="-pie $AX_HARDEN_LIB"
21793 LIB="$LIB $AX_HARDEN_LIB"
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
21796 $as_echo_n "checking whether C compiler accepts ... " >&6; }
21797 if ${ax_cv_check_cflags__+:} false; then :
21798 $as_echo_n "(cached) " >&6
21801 ax_check_save_flags=$CFLAGS
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h. */
21814 if ac_fn_c_try_compile "$LINENO"; then :
21815 ax_cv_check_cflags__=yes
21817 ax_cv_check_cflags__=no
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 CFLAGS=$ax_check_save_flags
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
21823 $as_echo "$ax_cv_check_cflags__" >&6; }
21824 if test x"$ax_cv_check_cflags__" = xyes; then :
21830 if ${CFLAGS+:} false; then :
21831 case " $CFLAGS " in
21833 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
21834 (: CFLAGS already contains ) 2>&5
21836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21837 test $ac_status = 0; }
21840 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
21841 (: CFLAGS="$CFLAGS ") 2>&5
21843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21844 test $ac_status = 0; }
21856 ac_cpp='$CPP $CPPFLAGS'
21857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21863 ac_cv_warnings_as_errors=no
21864 ax_append_compile_cflags_extra=
21865 if test "$ac_cv_vcs_checkout" = "yes"; then :
21869 for flag in -Werror; do
21870 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21872 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21873 if eval \${$as_CACHEVAR+:} false; then :
21874 $as_echo_n "(cached) " >&6
21877 ax_check_save_flags=$CFLAGS
21878 CFLAGS="$CFLAGS $flag"
21879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21880 /* end confdefs.h. */
21890 if ac_fn_c_try_compile "$LINENO"; then :
21891 eval "$as_CACHEVAR=yes"
21893 eval "$as_CACHEVAR=no"
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896 CFLAGS=$ax_check_save_flags
21898 eval ac_res=\$$as_CACHEVAR
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21900 $as_echo "$ac_res" >&6; }
21901 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21902 if ${CFLAGS+:} false; then :
21903 case " $CFLAGS " in
21905 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21906 (: CFLAGS already contains $flag) 2>&5
21908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21909 test $ac_status = 0; }
21912 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21913 (: CFLAGS="$CFLAGS $flag") 2>&5
21915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916 test $ac_status = 0; }
21917 CFLAGS="$CFLAGS $flag"
21930 ac_cv_warnings_as_errors=yes
21936 for flag in -Werror; do
21937 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21939 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21940 if eval \${$as_CACHEVAR+:} false; then :
21941 $as_echo_n "(cached) " >&6
21944 ax_check_save_flags=$CFLAGS
21945 CFLAGS="$CFLAGS $flag"
21946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947 /* end confdefs.h. */
21957 if ac_fn_c_try_compile "$LINENO"; then :
21958 eval "$as_CACHEVAR=yes"
21960 eval "$as_CACHEVAR=no"
21962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963 CFLAGS=$ax_check_save_flags
21965 eval ac_res=\$$as_CACHEVAR
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21967 $as_echo "$ac_res" >&6; }
21968 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21969 if ${ax_append_compile_cflags_extra+:} false; then :
21970 case " $ax_append_compile_cflags_extra " in
21972 { { $as_echo "$as_me:${as_lineno-$LINENO}: : ax_append_compile_cflags_extra already contains \$flag"; } >&5
21973 (: ax_append_compile_cflags_extra already contains $flag) 2>&5
21975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21976 test $ac_status = 0; }
21979 { { $as_echo "$as_me:${as_lineno-$LINENO}: : ax_append_compile_cflags_extra=\"\$ax_append_compile_cflags_extra \$flag\""; } >&5
21980 (: ax_append_compile_cflags_extra="$ax_append_compile_cflags_extra $flag") 2>&5
21982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21983 test $ac_status = 0; }
21984 ax_append_compile_cflags_extra="$ax_append_compile_cflags_extra $flag"
21988 ax_append_compile_cflags_extra="$flag"
22000 if test "$ax_enable_debug" = "yes"; then :
22005 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22007 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22008 if eval \${$as_CACHEVAR+:} false; then :
22009 $as_echo_n "(cached) " >&6
22012 ax_check_save_flags=$CFLAGS
22013 CFLAGS="$CFLAGS $flag"
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22025 if ac_fn_c_try_compile "$LINENO"; then :
22026 eval "$as_CACHEVAR=yes"
22028 eval "$as_CACHEVAR=no"
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 CFLAGS=$ax_check_save_flags
22033 eval ac_res=\$$as_CACHEVAR
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22035 $as_echo "$ac_res" >&6; }
22036 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22037 if ${CFLAGS+:} false; then :
22038 case " $CFLAGS " in
22040 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22041 (: CFLAGS already contains $flag) 2>&5
22043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22044 test $ac_status = 0; }
22047 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22048 (: CFLAGS="$CFLAGS $flag") 2>&5
22050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22051 test $ac_status = 0; }
22052 CFLAGS="$CFLAGS $flag"
22067 for flag in -ggdb; do
22068 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22070 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22071 if eval \${$as_CACHEVAR+:} false; then :
22072 $as_echo_n "(cached) " >&6
22075 ax_check_save_flags=$CFLAGS
22076 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22088 if ac_fn_c_try_compile "$LINENO"; then :
22089 eval "$as_CACHEVAR=yes"
22091 eval "$as_CACHEVAR=no"
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 CFLAGS=$ax_check_save_flags
22096 eval ac_res=\$$as_CACHEVAR
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22098 $as_echo "$ac_res" >&6; }
22099 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22100 if ${CFLAGS+:} false; then :
22101 case " $CFLAGS " in
22103 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22104 (: CFLAGS already contains $flag) 2>&5
22106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22107 test $ac_status = 0; }
22110 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22111 (: CFLAGS="$CFLAGS $flag") 2>&5
22113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22114 test $ac_status = 0; }
22115 CFLAGS="$CFLAGS $flag"
22130 for flag in -O0; do
22131 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22133 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22134 if eval \${$as_CACHEVAR+:} false; then :
22135 $as_echo_n "(cached) " >&6
22138 ax_check_save_flags=$CFLAGS
22139 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h. */
22151 if ac_fn_c_try_compile "$LINENO"; then :
22152 eval "$as_CACHEVAR=yes"
22154 eval "$as_CACHEVAR=no"
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 CFLAGS=$ax_check_save_flags
22159 eval ac_res=\$$as_CACHEVAR
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22161 $as_echo "$ac_res" >&6; }
22162 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22163 if ${CFLAGS+:} false; then :
22164 case " $CFLAGS " in
22166 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22167 (: CFLAGS already contains $flag) 2>&5
22169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22170 test $ac_status = 0; }
22173 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22174 (: CFLAGS="$CFLAGS $flag") 2>&5
22176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22177 test $ac_status = 0; }
22178 CFLAGS="$CFLAGS $flag"
22196 for flag in -Wno-pragmas; do
22197 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22199 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22200 if eval \${$as_CACHEVAR+:} false; then :
22201 $as_echo_n "(cached) " >&6
22204 ax_check_save_flags=$CFLAGS
22205 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h. */
22217 if ac_fn_c_try_compile "$LINENO"; then :
22218 eval "$as_CACHEVAR=yes"
22220 eval "$as_CACHEVAR=no"
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223 CFLAGS=$ax_check_save_flags
22225 eval ac_res=\$$as_CACHEVAR
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22227 $as_echo "$ac_res" >&6; }
22228 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22229 if ${CFLAGS+:} false; then :
22230 case " $CFLAGS " in
22232 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22233 (: CFLAGS already contains $flag) 2>&5
22235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22236 test $ac_status = 0; }
22239 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22240 (: CFLAGS="$CFLAGS $flag") 2>&5
22242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22243 test $ac_status = 0; }
22244 CFLAGS="$CFLAGS $flag"
22260 for flag in -Wall; do
22261 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22263 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22264 if eval \${$as_CACHEVAR+:} false; then :
22265 $as_echo_n "(cached) " >&6
22268 ax_check_save_flags=$CFLAGS
22269 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h. */
22281 if ac_fn_c_try_compile "$LINENO"; then :
22282 eval "$as_CACHEVAR=yes"
22284 eval "$as_CACHEVAR=no"
22286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287 CFLAGS=$ax_check_save_flags
22289 eval ac_res=\$$as_CACHEVAR
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22291 $as_echo "$ac_res" >&6; }
22292 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22293 if ${CFLAGS+:} false; then :
22294 case " $CFLAGS " in
22296 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22297 (: CFLAGS already contains $flag) 2>&5
22299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22300 test $ac_status = 0; }
22303 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22304 (: CFLAGS="$CFLAGS $flag") 2>&5
22306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22307 test $ac_status = 0; }
22308 CFLAGS="$CFLAGS $flag"
22323 for flag in -Wno-strict-aliasing; do
22324 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22326 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22327 if eval \${$as_CACHEVAR+:} false; then :
22328 $as_echo_n "(cached) " >&6
22331 ax_check_save_flags=$CFLAGS
22332 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22344 if ac_fn_c_try_compile "$LINENO"; then :
22345 eval "$as_CACHEVAR=yes"
22347 eval "$as_CACHEVAR=no"
22349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350 CFLAGS=$ax_check_save_flags
22352 eval ac_res=\$$as_CACHEVAR
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22354 $as_echo "$ac_res" >&6; }
22355 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22356 if ${CFLAGS+:} false; then :
22357 case " $CFLAGS " in
22359 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22360 (: CFLAGS already contains $flag) 2>&5
22362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22363 test $ac_status = 0; }
22366 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22367 (: CFLAGS="$CFLAGS $flag") 2>&5
22369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22370 test $ac_status = 0; }
22371 CFLAGS="$CFLAGS $flag"
22386 for flag in -Wextra; do
22387 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22389 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22390 if eval \${$as_CACHEVAR+:} false; then :
22391 $as_echo_n "(cached) " >&6
22394 ax_check_save_flags=$CFLAGS
22395 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h. */
22407 if ac_fn_c_try_compile "$LINENO"; then :
22408 eval "$as_CACHEVAR=yes"
22410 eval "$as_CACHEVAR=no"
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 CFLAGS=$ax_check_save_flags
22415 eval ac_res=\$$as_CACHEVAR
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22417 $as_echo "$ac_res" >&6; }
22418 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22419 if ${CFLAGS+:} false; then :
22420 case " $CFLAGS " in
22422 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22423 (: CFLAGS already contains $flag) 2>&5
22425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22426 test $ac_status = 0; }
22429 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22430 (: CFLAGS="$CFLAGS $flag") 2>&5
22432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22433 test $ac_status = 0; }
22434 CFLAGS="$CFLAGS $flag"
22449 for flag in -Wunknown-pragmas; do
22450 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22452 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22453 if eval \${$as_CACHEVAR+:} false; then :
22454 $as_echo_n "(cached) " >&6
22457 ax_check_save_flags=$CFLAGS
22458 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22470 if ac_fn_c_try_compile "$LINENO"; then :
22471 eval "$as_CACHEVAR=yes"
22473 eval "$as_CACHEVAR=no"
22475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476 CFLAGS=$ax_check_save_flags
22478 eval ac_res=\$$as_CACHEVAR
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22480 $as_echo "$ac_res" >&6; }
22481 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22482 if ${CFLAGS+:} false; then :
22483 case " $CFLAGS " in
22485 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22486 (: CFLAGS already contains $flag) 2>&5
22488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22489 test $ac_status = 0; }
22492 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22493 (: CFLAGS="$CFLAGS $flag") 2>&5
22495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22496 test $ac_status = 0; }
22497 CFLAGS="$CFLAGS $flag"
22512 for flag in -Wthis-test-should-fail; do
22513 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22515 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22516 if eval \${$as_CACHEVAR+:} false; then :
22517 $as_echo_n "(cached) " >&6
22520 ax_check_save_flags=$CFLAGS
22521 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22523 /* end confdefs.h. */
22533 if ac_fn_c_try_compile "$LINENO"; then :
22534 eval "$as_CACHEVAR=yes"
22536 eval "$as_CACHEVAR=no"
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 CFLAGS=$ax_check_save_flags
22541 eval ac_res=\$$as_CACHEVAR
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22543 $as_echo "$ac_res" >&6; }
22544 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22545 if ${CFLAGS+:} false; then :
22546 case " $CFLAGS " in
22548 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22549 (: CFLAGS already contains $flag) 2>&5
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }
22555 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22556 (: CFLAGS="$CFLAGS $flag") 2>&5
22558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22559 test $ac_status = 0; }
22560 CFLAGS="$CFLAGS $flag"
22573 if test "$CC" = "clang"; then :
22579 for flag in --param=ssp-buffer-size=1; do
22580 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22582 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22583 if eval \${$as_CACHEVAR+:} false; then :
22584 $as_echo_n "(cached) " >&6
22587 ax_check_save_flags=$CFLAGS
22588 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h. */
22600 if ac_fn_c_try_compile "$LINENO"; then :
22601 eval "$as_CACHEVAR=yes"
22603 eval "$as_CACHEVAR=no"
22605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22606 CFLAGS=$ax_check_save_flags
22608 eval ac_res=\$$as_CACHEVAR
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22610 $as_echo "$ac_res" >&6; }
22611 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22612 if ${CFLAGS+:} false; then :
22613 case " $CFLAGS " in
22615 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22616 (: CFLAGS already contains $flag) 2>&5
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }
22622 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22623 (: CFLAGS="$CFLAGS $flag") 2>&5
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }
22627 CFLAGS="$CFLAGS $flag"
22644 for flag in -Waddress; do
22645 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22647 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22648 if eval \${$as_CACHEVAR+:} false; then :
22649 $as_echo_n "(cached) " >&6
22652 ax_check_save_flags=$CFLAGS
22653 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655 /* end confdefs.h. */
22665 if ac_fn_c_try_compile "$LINENO"; then :
22666 eval "$as_CACHEVAR=yes"
22668 eval "$as_CACHEVAR=no"
22670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22671 CFLAGS=$ax_check_save_flags
22673 eval ac_res=\$$as_CACHEVAR
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22675 $as_echo "$ac_res" >&6; }
22676 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22677 if ${CFLAGS+:} false; then :
22678 case " $CFLAGS " in
22680 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22681 (: CFLAGS already contains $flag) 2>&5
22683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22684 test $ac_status = 0; }
22687 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22688 (: CFLAGS="$CFLAGS $flag") 2>&5
22690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22691 test $ac_status = 0; }
22692 CFLAGS="$CFLAGS $flag"
22707 for flag in -Warray-bounds; do
22708 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22710 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22711 if eval \${$as_CACHEVAR+:} false; then :
22712 $as_echo_n "(cached) " >&6
22715 ax_check_save_flags=$CFLAGS
22716 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h. */
22728 if ac_fn_c_try_compile "$LINENO"; then :
22729 eval "$as_CACHEVAR=yes"
22731 eval "$as_CACHEVAR=no"
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22734 CFLAGS=$ax_check_save_flags
22736 eval ac_res=\$$as_CACHEVAR
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22738 $as_echo "$ac_res" >&6; }
22739 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22740 if ${CFLAGS+:} false; then :
22741 case " $CFLAGS " in
22743 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22744 (: CFLAGS already contains $flag) 2>&5
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }
22750 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22751 (: CFLAGS="$CFLAGS $flag") 2>&5
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }
22755 CFLAGS="$CFLAGS $flag"
22770 for flag in -Wbad-function-cast; do
22771 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22773 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22774 if eval \${$as_CACHEVAR+:} false; then :
22775 $as_echo_n "(cached) " >&6
22778 ax_check_save_flags=$CFLAGS
22779 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22781 /* end confdefs.h. */
22791 if ac_fn_c_try_compile "$LINENO"; then :
22792 eval "$as_CACHEVAR=yes"
22794 eval "$as_CACHEVAR=no"
22796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 CFLAGS=$ax_check_save_flags
22799 eval ac_res=\$$as_CACHEVAR
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22801 $as_echo "$ac_res" >&6; }
22802 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22803 if ${CFLAGS+:} false; then :
22804 case " $CFLAGS " in
22806 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22807 (: CFLAGS already contains $flag) 2>&5
22809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22810 test $ac_status = 0; }
22813 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22814 (: CFLAGS="$CFLAGS $flag") 2>&5
22816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22817 test $ac_status = 0; }
22818 CFLAGS="$CFLAGS $flag"
22833 for flag in -Wchar-subscripts; do
22834 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22836 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22837 if eval \${$as_CACHEVAR+:} false; then :
22838 $as_echo_n "(cached) " >&6
22841 ax_check_save_flags=$CFLAGS
22842 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22844 /* end confdefs.h. */
22854 if ac_fn_c_try_compile "$LINENO"; then :
22855 eval "$as_CACHEVAR=yes"
22857 eval "$as_CACHEVAR=no"
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 CFLAGS=$ax_check_save_flags
22862 eval ac_res=\$$as_CACHEVAR
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22864 $as_echo "$ac_res" >&6; }
22865 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22866 if ${CFLAGS+:} false; then :
22867 case " $CFLAGS " in
22869 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22870 (: CFLAGS already contains $flag) 2>&5
22872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873 test $ac_status = 0; }
22876 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22877 (: CFLAGS="$CFLAGS $flag") 2>&5
22879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22880 test $ac_status = 0; }
22881 CFLAGS="$CFLAGS $flag"
22896 for flag in -Wcomment; do
22897 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22899 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22900 if eval \${$as_CACHEVAR+:} false; then :
22901 $as_echo_n "(cached) " >&6
22904 ax_check_save_flags=$CFLAGS
22905 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22907 /* end confdefs.h. */
22917 if ac_fn_c_try_compile "$LINENO"; then :
22918 eval "$as_CACHEVAR=yes"
22920 eval "$as_CACHEVAR=no"
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923 CFLAGS=$ax_check_save_flags
22925 eval ac_res=\$$as_CACHEVAR
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22927 $as_echo "$ac_res" >&6; }
22928 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22929 if ${CFLAGS+:} false; then :
22930 case " $CFLAGS " in
22932 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22933 (: CFLAGS already contains $flag) 2>&5
22935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936 test $ac_status = 0; }
22939 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22940 (: CFLAGS="$CFLAGS $flag") 2>&5
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }
22944 CFLAGS="$CFLAGS $flag"
22959 for flag in -Wfloat-equal; do
22960 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22962 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22963 if eval \${$as_CACHEVAR+:} false; then :
22964 $as_echo_n "(cached) " >&6
22967 ax_check_save_flags=$CFLAGS
22968 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22970 /* end confdefs.h. */
22980 if ac_fn_c_try_compile "$LINENO"; then :
22981 eval "$as_CACHEVAR=yes"
22983 eval "$as_CACHEVAR=no"
22985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986 CFLAGS=$ax_check_save_flags
22988 eval ac_res=\$$as_CACHEVAR
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22990 $as_echo "$ac_res" >&6; }
22991 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22992 if ${CFLAGS+:} false; then :
22993 case " $CFLAGS " in
22995 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22996 (: CFLAGS already contains $flag) 2>&5
22998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999 test $ac_status = 0; }
23002 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23003 (: CFLAGS="$CFLAGS $flag") 2>&5
23005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23006 test $ac_status = 0; }
23007 CFLAGS="$CFLAGS $flag"
23022 for flag in -Wformat-security; do
23023 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23025 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23026 if eval \${$as_CACHEVAR+:} false; then :
23027 $as_echo_n "(cached) " >&6
23030 ax_check_save_flags=$CFLAGS
23031 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033 /* end confdefs.h. */
23043 if ac_fn_c_try_compile "$LINENO"; then :
23044 eval "$as_CACHEVAR=yes"
23046 eval "$as_CACHEVAR=no"
23048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23049 CFLAGS=$ax_check_save_flags
23051 eval ac_res=\$$as_CACHEVAR
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23053 $as_echo "$ac_res" >&6; }
23054 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23055 if ${CFLAGS+:} false; then :
23056 case " $CFLAGS " in
23058 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23059 (: CFLAGS already contains $flag) 2>&5
23061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23062 test $ac_status = 0; }
23065 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23066 (: CFLAGS="$CFLAGS $flag") 2>&5
23068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23069 test $ac_status = 0; }
23070 CFLAGS="$CFLAGS $flag"
23085 for flag in -Wformat=2; do
23086 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23088 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23089 if eval \${$as_CACHEVAR+:} false; then :
23090 $as_echo_n "(cached) " >&6
23093 ax_check_save_flags=$CFLAGS
23094 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23096 /* end confdefs.h. */
23106 if ac_fn_c_try_compile "$LINENO"; then :
23107 eval "$as_CACHEVAR=yes"
23109 eval "$as_CACHEVAR=no"
23111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23112 CFLAGS=$ax_check_save_flags
23114 eval ac_res=\$$as_CACHEVAR
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23116 $as_echo "$ac_res" >&6; }
23117 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23118 if ${CFLAGS+:} false; then :
23119 case " $CFLAGS " in
23121 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23122 (: CFLAGS already contains $flag) 2>&5
23124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23125 test $ac_status = 0; }
23128 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23129 (: CFLAGS="$CFLAGS $flag") 2>&5
23131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132 test $ac_status = 0; }
23133 CFLAGS="$CFLAGS $flag"
23148 for flag in -Wmaybe-uninitialized; do
23149 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23151 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23152 if eval \${$as_CACHEVAR+:} false; then :
23153 $as_echo_n "(cached) " >&6
23156 ax_check_save_flags=$CFLAGS
23157 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23159 /* end confdefs.h. */
23169 if ac_fn_c_try_compile "$LINENO"; then :
23170 eval "$as_CACHEVAR=yes"
23172 eval "$as_CACHEVAR=no"
23174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23175 CFLAGS=$ax_check_save_flags
23177 eval ac_res=\$$as_CACHEVAR
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23179 $as_echo "$ac_res" >&6; }
23180 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23181 if ${CFLAGS+:} false; then :
23182 case " $CFLAGS " in
23184 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23185 (: CFLAGS already contains $flag) 2>&5
23187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23188 test $ac_status = 0; }
23191 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23192 (: CFLAGS="$CFLAGS $flag") 2>&5
23194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23195 test $ac_status = 0; }
23196 CFLAGS="$CFLAGS $flag"
23211 for flag in -Wmissing-field-initializers; do
23212 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23214 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23215 if eval \${$as_CACHEVAR+:} false; then :
23216 $as_echo_n "(cached) " >&6
23219 ax_check_save_flags=$CFLAGS
23220 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23222 /* end confdefs.h. */
23232 if ac_fn_c_try_compile "$LINENO"; then :
23233 eval "$as_CACHEVAR=yes"
23235 eval "$as_CACHEVAR=no"
23237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23238 CFLAGS=$ax_check_save_flags
23240 eval ac_res=\$$as_CACHEVAR
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23242 $as_echo "$ac_res" >&6; }
23243 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23244 if ${CFLAGS+:} false; then :
23245 case " $CFLAGS " in
23247 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23248 (: CFLAGS already contains $flag) 2>&5
23250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23251 test $ac_status = 0; }
23254 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23255 (: CFLAGS="$CFLAGS $flag") 2>&5
23257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23258 test $ac_status = 0; }
23259 CFLAGS="$CFLAGS $flag"
23274 for flag in -Wmissing-noreturn; do
23275 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23277 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23278 if eval \${$as_CACHEVAR+:} false; then :
23279 $as_echo_n "(cached) " >&6
23282 ax_check_save_flags=$CFLAGS
23283 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23285 /* end confdefs.h. */
23295 if ac_fn_c_try_compile "$LINENO"; then :
23296 eval "$as_CACHEVAR=yes"
23298 eval "$as_CACHEVAR=no"
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301 CFLAGS=$ax_check_save_flags
23303 eval ac_res=\$$as_CACHEVAR
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23305 $as_echo "$ac_res" >&6; }
23306 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23307 if ${CFLAGS+:} false; then :
23308 case " $CFLAGS " in
23310 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23311 (: CFLAGS already contains $flag) 2>&5
23313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23314 test $ac_status = 0; }
23317 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23318 (: CFLAGS="$CFLAGS $flag") 2>&5
23320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321 test $ac_status = 0; }
23322 CFLAGS="$CFLAGS $flag"
23337 for flag in -Wmissing-prototypes; do
23338 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23340 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23341 if eval \${$as_CACHEVAR+:} false; then :
23342 $as_echo_n "(cached) " >&6
23345 ax_check_save_flags=$CFLAGS
23346 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348 /* end confdefs.h. */
23358 if ac_fn_c_try_compile "$LINENO"; then :
23359 eval "$as_CACHEVAR=yes"
23361 eval "$as_CACHEVAR=no"
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364 CFLAGS=$ax_check_save_flags
23366 eval ac_res=\$$as_CACHEVAR
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23368 $as_echo "$ac_res" >&6; }
23369 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23370 if ${CFLAGS+:} false; then :
23371 case " $CFLAGS " in
23373 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23374 (: CFLAGS already contains $flag) 2>&5
23376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23377 test $ac_status = 0; }
23380 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23381 (: CFLAGS="$CFLAGS $flag") 2>&5
23383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23384 test $ac_status = 0; }
23385 CFLAGS="$CFLAGS $flag"
23400 for flag in -Wnested-externs; do
23401 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23403 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23404 if eval \${$as_CACHEVAR+:} false; then :
23405 $as_echo_n "(cached) " >&6
23408 ax_check_save_flags=$CFLAGS
23409 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23411 /* end confdefs.h. */
23421 if ac_fn_c_try_compile "$LINENO"; then :
23422 eval "$as_CACHEVAR=yes"
23424 eval "$as_CACHEVAR=no"
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 CFLAGS=$ax_check_save_flags
23429 eval ac_res=\$$as_CACHEVAR
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23431 $as_echo "$ac_res" >&6; }
23432 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23433 if ${CFLAGS+:} false; then :
23434 case " $CFLAGS " in
23436 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23437 (: CFLAGS already contains $flag) 2>&5
23439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23440 test $ac_status = 0; }
23443 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23444 (: CFLAGS="$CFLAGS $flag") 2>&5
23446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23447 test $ac_status = 0; }
23448 CFLAGS="$CFLAGS $flag"
23463 for flag in -Wnormalized=id; do
23464 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23466 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23467 if eval \${$as_CACHEVAR+:} false; then :
23468 $as_echo_n "(cached) " >&6
23471 ax_check_save_flags=$CFLAGS
23472 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23474 /* end confdefs.h. */
23484 if ac_fn_c_try_compile "$LINENO"; then :
23485 eval "$as_CACHEVAR=yes"
23487 eval "$as_CACHEVAR=no"
23489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23490 CFLAGS=$ax_check_save_flags
23492 eval ac_res=\$$as_CACHEVAR
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23495 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23496 if ${CFLAGS+:} false; then :
23497 case " $CFLAGS " in
23499 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23500 (: CFLAGS already contains $flag) 2>&5
23502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23503 test $ac_status = 0; }
23506 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23507 (: CFLAGS="$CFLAGS $flag") 2>&5
23509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23510 test $ac_status = 0; }
23511 CFLAGS="$CFLAGS $flag"
23526 for flag in -Woverride-init; do
23527 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23529 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23530 if eval \${$as_CACHEVAR+:} false; then :
23531 $as_echo_n "(cached) " >&6
23534 ax_check_save_flags=$CFLAGS
23535 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23537 /* end confdefs.h. */
23547 if ac_fn_c_try_compile "$LINENO"; then :
23548 eval "$as_CACHEVAR=yes"
23550 eval "$as_CACHEVAR=no"
23552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553 CFLAGS=$ax_check_save_flags
23555 eval ac_res=\$$as_CACHEVAR
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23557 $as_echo "$ac_res" >&6; }
23558 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23559 if ${CFLAGS+:} false; then :
23560 case " $CFLAGS " in
23562 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23563 (: CFLAGS already contains $flag) 2>&5
23565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23566 test $ac_status = 0; }
23569 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23570 (: CFLAGS="$CFLAGS $flag") 2>&5
23572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23573 test $ac_status = 0; }
23574 CFLAGS="$CFLAGS $flag"
23589 for flag in -Wpointer-arith; do
23590 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23592 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23593 if eval \${$as_CACHEVAR+:} false; then :
23594 $as_echo_n "(cached) " >&6
23597 ax_check_save_flags=$CFLAGS
23598 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23600 /* end confdefs.h. */
23610 if ac_fn_c_try_compile "$LINENO"; then :
23611 eval "$as_CACHEVAR=yes"
23613 eval "$as_CACHEVAR=no"
23615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23616 CFLAGS=$ax_check_save_flags
23618 eval ac_res=\$$as_CACHEVAR
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23620 $as_echo "$ac_res" >&6; }
23621 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23622 if ${CFLAGS+:} false; then :
23623 case " $CFLAGS " in
23625 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23626 (: CFLAGS already contains $flag) 2>&5
23628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23629 test $ac_status = 0; }
23632 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23633 (: CFLAGS="$CFLAGS $flag") 2>&5
23635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23636 test $ac_status = 0; }
23637 CFLAGS="$CFLAGS $flag"
23652 for flag in -Wpointer-sign; do
23653 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23655 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23656 if eval \${$as_CACHEVAR+:} false; then :
23657 $as_echo_n "(cached) " >&6
23660 ax_check_save_flags=$CFLAGS
23661 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23663 /* end confdefs.h. */
23673 if ac_fn_c_try_compile "$LINENO"; then :
23674 eval "$as_CACHEVAR=yes"
23676 eval "$as_CACHEVAR=no"
23678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23679 CFLAGS=$ax_check_save_flags
23681 eval ac_res=\$$as_CACHEVAR
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23683 $as_echo "$ac_res" >&6; }
23684 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23685 if ${CFLAGS+:} false; then :
23686 case " $CFLAGS " in
23688 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23689 (: CFLAGS already contains $flag) 2>&5
23691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23692 test $ac_status = 0; }
23695 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23696 (: CFLAGS="$CFLAGS $flag") 2>&5
23698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23699 test $ac_status = 0; }
23700 CFLAGS="$CFLAGS $flag"
23715 for flag in -Wredundant-decls; do
23716 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23718 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23719 if eval \${$as_CACHEVAR+:} false; then :
23720 $as_echo_n "(cached) " >&6
23723 ax_check_save_flags=$CFLAGS
23724 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h. */
23736 if ac_fn_c_try_compile "$LINENO"; then :
23737 eval "$as_CACHEVAR=yes"
23739 eval "$as_CACHEVAR=no"
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 CFLAGS=$ax_check_save_flags
23744 eval ac_res=\$$as_CACHEVAR
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23746 $as_echo "$ac_res" >&6; }
23747 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23748 if ${CFLAGS+:} false; then :
23749 case " $CFLAGS " in
23751 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23752 (: CFLAGS already contains $flag) 2>&5
23754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23755 test $ac_status = 0; }
23758 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23759 (: CFLAGS="$CFLAGS $flag") 2>&5
23761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23762 test $ac_status = 0; }
23763 CFLAGS="$CFLAGS $flag"
23778 for flag in -Wshadow; do
23779 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23781 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23782 if eval \${$as_CACHEVAR+:} false; then :
23783 $as_echo_n "(cached) " >&6
23786 ax_check_save_flags=$CFLAGS
23787 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23789 /* end confdefs.h. */
23799 if ac_fn_c_try_compile "$LINENO"; then :
23800 eval "$as_CACHEVAR=yes"
23802 eval "$as_CACHEVAR=no"
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 CFLAGS=$ax_check_save_flags
23807 eval ac_res=\$$as_CACHEVAR
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23809 $as_echo "$ac_res" >&6; }
23810 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23811 if ${CFLAGS+:} false; then :
23812 case " $CFLAGS " in
23814 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23815 (: CFLAGS already contains $flag) 2>&5
23817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23818 test $ac_status = 0; }
23821 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23822 (: CFLAGS="$CFLAGS $flag") 2>&5
23824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23825 test $ac_status = 0; }
23826 CFLAGS="$CFLAGS $flag"
23841 for flag in -Wshorten-64-to-32; do
23842 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23844 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23845 if eval \${$as_CACHEVAR+:} false; then :
23846 $as_echo_n "(cached) " >&6
23849 ax_check_save_flags=$CFLAGS
23850 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23852 /* end confdefs.h. */
23862 if ac_fn_c_try_compile "$LINENO"; then :
23863 eval "$as_CACHEVAR=yes"
23865 eval "$as_CACHEVAR=no"
23867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23868 CFLAGS=$ax_check_save_flags
23870 eval ac_res=\$$as_CACHEVAR
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23872 $as_echo "$ac_res" >&6; }
23873 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23874 if ${CFLAGS+:} false; then :
23875 case " $CFLAGS " in
23877 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23878 (: CFLAGS already contains $flag) 2>&5
23880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23881 test $ac_status = 0; }
23884 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23885 (: CFLAGS="$CFLAGS $flag") 2>&5
23887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23888 test $ac_status = 0; }
23889 CFLAGS="$CFLAGS $flag"
23904 for flag in -Wsign-compare; do
23905 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23907 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23908 if eval \${$as_CACHEVAR+:} false; then :
23909 $as_echo_n "(cached) " >&6
23912 ax_check_save_flags=$CFLAGS
23913 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23915 /* end confdefs.h. */
23925 if ac_fn_c_try_compile "$LINENO"; then :
23926 eval "$as_CACHEVAR=yes"
23928 eval "$as_CACHEVAR=no"
23930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23931 CFLAGS=$ax_check_save_flags
23933 eval ac_res=\$$as_CACHEVAR
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23935 $as_echo "$ac_res" >&6; }
23936 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23937 if ${CFLAGS+:} false; then :
23938 case " $CFLAGS " in
23940 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23941 (: CFLAGS already contains $flag) 2>&5
23943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23944 test $ac_status = 0; }
23947 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23948 (: CFLAGS="$CFLAGS $flag") 2>&5
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }
23952 CFLAGS="$CFLAGS $flag"
23967 for flag in -Wstrict-overflow=1; do
23968 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23970 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23971 if eval \${$as_CACHEVAR+:} false; then :
23972 $as_echo_n "(cached) " >&6
23975 ax_check_save_flags=$CFLAGS
23976 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h. */
23988 if ac_fn_c_try_compile "$LINENO"; then :
23989 eval "$as_CACHEVAR=yes"
23991 eval "$as_CACHEVAR=no"
23993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23994 CFLAGS=$ax_check_save_flags
23996 eval ac_res=\$$as_CACHEVAR
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23998 $as_echo "$ac_res" >&6; }
23999 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24000 if ${CFLAGS+:} false; then :
24001 case " $CFLAGS " in
24003 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24004 (: CFLAGS already contains $flag) 2>&5
24006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007 test $ac_status = 0; }
24010 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24011 (: CFLAGS="$CFLAGS $flag") 2>&5
24013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24014 test $ac_status = 0; }
24015 CFLAGS="$CFLAGS $flag"
24030 for flag in -Wstrict-prototypes; do
24031 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24033 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24034 if eval \${$as_CACHEVAR+:} false; then :
24035 $as_echo_n "(cached) " >&6
24038 ax_check_save_flags=$CFLAGS
24039 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h. */
24051 if ac_fn_c_try_compile "$LINENO"; then :
24052 eval "$as_CACHEVAR=yes"
24054 eval "$as_CACHEVAR=no"
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24057 CFLAGS=$ax_check_save_flags
24059 eval ac_res=\$$as_CACHEVAR
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24061 $as_echo "$ac_res" >&6; }
24062 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24063 if ${CFLAGS+:} false; then :
24064 case " $CFLAGS " in
24066 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24067 (: CFLAGS already contains $flag) 2>&5
24069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24070 test $ac_status = 0; }
24073 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24074 (: CFLAGS="$CFLAGS $flag") 2>&5
24076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077 test $ac_status = 0; }
24078 CFLAGS="$CFLAGS $flag"
24093 for flag in -Wswitch-enum; do
24094 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24096 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24097 if eval \${$as_CACHEVAR+:} false; then :
24098 $as_echo_n "(cached) " >&6
24101 ax_check_save_flags=$CFLAGS
24102 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24104 /* end confdefs.h. */
24114 if ac_fn_c_try_compile "$LINENO"; then :
24115 eval "$as_CACHEVAR=yes"
24117 eval "$as_CACHEVAR=no"
24119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120 CFLAGS=$ax_check_save_flags
24122 eval ac_res=\$$as_CACHEVAR
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24124 $as_echo "$ac_res" >&6; }
24125 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24126 if ${CFLAGS+:} false; then :
24127 case " $CFLAGS " in
24129 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24130 (: CFLAGS already contains $flag) 2>&5
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }
24136 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24137 (: CFLAGS="$CFLAGS $flag") 2>&5
24139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24140 test $ac_status = 0; }
24141 CFLAGS="$CFLAGS $flag"
24156 for flag in -Wundef; do
24157 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24159 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24160 if eval \${$as_CACHEVAR+:} false; then :
24161 $as_echo_n "(cached) " >&6
24164 ax_check_save_flags=$CFLAGS
24165 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h. */
24177 if ac_fn_c_try_compile "$LINENO"; then :
24178 eval "$as_CACHEVAR=yes"
24180 eval "$as_CACHEVAR=no"
24182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24183 CFLAGS=$ax_check_save_flags
24185 eval ac_res=\$$as_CACHEVAR
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24187 $as_echo "$ac_res" >&6; }
24188 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24189 if ${CFLAGS+:} false; then :
24190 case " $CFLAGS " in
24192 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24193 (: CFLAGS already contains $flag) 2>&5
24195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24196 test $ac_status = 0; }
24199 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24200 (: CFLAGS="$CFLAGS $flag") 2>&5
24202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203 test $ac_status = 0; }
24204 CFLAGS="$CFLAGS $flag"
24219 for flag in -Wunused; do
24220 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24222 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24223 if eval \${$as_CACHEVAR+:} false; then :
24224 $as_echo_n "(cached) " >&6
24227 ax_check_save_flags=$CFLAGS
24228 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24230 /* end confdefs.h. */
24240 if ac_fn_c_try_compile "$LINENO"; then :
24241 eval "$as_CACHEVAR=yes"
24243 eval "$as_CACHEVAR=no"
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 CFLAGS=$ax_check_save_flags
24248 eval ac_res=\$$as_CACHEVAR
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24250 $as_echo "$ac_res" >&6; }
24251 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24252 if ${CFLAGS+:} false; then :
24253 case " $CFLAGS " in
24255 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24256 (: CFLAGS already contains $flag) 2>&5
24258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24259 test $ac_status = 0; }
24262 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24263 (: CFLAGS="$CFLAGS $flag") 2>&5
24265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266 test $ac_status = 0; }
24267 CFLAGS="$CFLAGS $flag"
24282 for flag in -Wunused-result; do
24283 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24285 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24286 if eval \${$as_CACHEVAR+:} false; then :
24287 $as_echo_n "(cached) " >&6
24290 ax_check_save_flags=$CFLAGS
24291 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24293 /* end confdefs.h. */
24303 if ac_fn_c_try_compile "$LINENO"; then :
24304 eval "$as_CACHEVAR=yes"
24306 eval "$as_CACHEVAR=no"
24308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309 CFLAGS=$ax_check_save_flags
24311 eval ac_res=\$$as_CACHEVAR
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24313 $as_echo "$ac_res" >&6; }
24314 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24315 if ${CFLAGS+:} false; then :
24316 case " $CFLAGS " in
24318 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24319 (: CFLAGS already contains $flag) 2>&5
24321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24322 test $ac_status = 0; }
24325 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24326 (: CFLAGS="$CFLAGS $flag") 2>&5
24328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24329 test $ac_status = 0; }
24330 CFLAGS="$CFLAGS $flag"
24345 for flag in -Wunused-variable; do
24346 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24348 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24349 if eval \${$as_CACHEVAR+:} false; then :
24350 $as_echo_n "(cached) " >&6
24353 ax_check_save_flags=$CFLAGS
24354 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24356 /* end confdefs.h. */
24366 if ac_fn_c_try_compile "$LINENO"; then :
24367 eval "$as_CACHEVAR=yes"
24369 eval "$as_CACHEVAR=no"
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372 CFLAGS=$ax_check_save_flags
24374 eval ac_res=\$$as_CACHEVAR
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24376 $as_echo "$ac_res" >&6; }
24377 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24378 if ${CFLAGS+:} false; then :
24379 case " $CFLAGS " in
24381 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24382 (: CFLAGS already contains $flag) 2>&5
24384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24385 test $ac_status = 0; }
24388 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24389 (: CFLAGS="$CFLAGS $flag") 2>&5
24391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24392 test $ac_status = 0; }
24393 CFLAGS="$CFLAGS $flag"
24408 for flag in -Wwrite-strings; do
24409 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24411 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24412 if eval \${$as_CACHEVAR+:} false; then :
24413 $as_echo_n "(cached) " >&6
24416 ax_check_save_flags=$CFLAGS
24417 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24419 /* end confdefs.h. */
24429 if ac_fn_c_try_compile "$LINENO"; then :
24430 eval "$as_CACHEVAR=yes"
24432 eval "$as_CACHEVAR=no"
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24435 CFLAGS=$ax_check_save_flags
24437 eval ac_res=\$$as_CACHEVAR
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24439 $as_echo "$ac_res" >&6; }
24440 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24441 if ${CFLAGS+:} false; then :
24442 case " $CFLAGS " in
24444 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24445 (: CFLAGS already contains $flag) 2>&5
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }
24451 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24452 (: CFLAGS="$CFLAGS $flag") 2>&5
24454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455 test $ac_status = 0; }
24456 CFLAGS="$CFLAGS $flag"
24471 for flag in -fwrapv; do
24472 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24474 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24475 if eval \${$as_CACHEVAR+:} false; then :
24476 $as_echo_n "(cached) " >&6
24479 ax_check_save_flags=$CFLAGS
24480 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24482 /* end confdefs.h. */
24492 if ac_fn_c_try_compile "$LINENO"; then :
24493 eval "$as_CACHEVAR=yes"
24495 eval "$as_CACHEVAR=no"
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498 CFLAGS=$ax_check_save_flags
24500 eval ac_res=\$$as_CACHEVAR
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24502 $as_echo "$ac_res" >&6; }
24503 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24504 if ${CFLAGS+:} false; then :
24505 case " $CFLAGS " in
24507 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24508 (: CFLAGS already contains $flag) 2>&5
24510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24511 test $ac_status = 0; }
24514 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24515 (: CFLAGS="$CFLAGS $flag") 2>&5
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }
24519 CFLAGS="$CFLAGS $flag"
24534 for flag in -fPIE; do
24535 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24537 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24538 if eval \${$as_CACHEVAR+:} false; then :
24539 $as_echo_n "(cached) " >&6
24542 ax_check_save_flags=$CFLAGS
24543 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24545 /* end confdefs.h. */
24555 if ac_fn_c_try_compile "$LINENO"; then :
24556 eval "$as_CACHEVAR=yes"
24558 eval "$as_CACHEVAR=no"
24560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24561 CFLAGS=$ax_check_save_flags
24563 eval ac_res=\$$as_CACHEVAR
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24565 $as_echo "$ac_res" >&6; }
24566 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24567 if ${CFLAGS+:} false; then :
24568 case " $CFLAGS " in
24570 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24571 (: CFLAGS already contains $flag) 2>&5
24573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574 test $ac_status = 0; }
24577 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24578 (: CFLAGS="$CFLAGS $flag") 2>&5
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }
24582 CFLAGS="$CFLAGS $flag"
24596 ac_cpp='$CPP $CPPFLAGS'
24597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24603 # link to ws2_32 if on mingw
24606 LDFLAGS="$LDFLAGS -lws2_32" ;;
24609 # add user C_EXTRA_FLAGS back
24610 CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
24611 OPTION_FLAGS="$USER_C_EXTRA_FLAGS $AM_CFLAGS"
24615 HEX_VERSION=`echo $VERSION | sed 's|\-a-z0-9*$||' | \
24616 awk -F. '{printf "0x%0.2d%0.3d%0.3d", $1, $2, $3}'`
24624 ac_config_files="$ac_config_files stamp-h"
24626 ac_config_files="$ac_config_files Makefile"
24628 ac_config_files="$ac_config_files wolfssl/version.h"
24630 ac_config_files="$ac_config_files wolfssl/options.h"
24632 #have options.h and version.h for autoconf fips tag and build
24633 #if test "x$ENABLED_FIPS" = "xyes"
24635 # AC_CONFIG_FILES([cyassl/version.h])
24636 # AC_CONFIG_FILES([cyassl/options.h])
24638 ac_config_files="$ac_config_files support/wolfssl.pc"
24640 ac_config_files="$ac_config_files rpm/spec"
24643 # create a generic PACKAGE-config file
24644 L=`echo $PACKAGE $LIBS`
24645 P=`echo $L | sed -e 's/ -.*//'`
24649 L=`echo -l$L | sed -e 's/^-llib/-l/'`
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $F - generic $V for $L" >&5
24651 $as_echo "creating $F - generic $V for $L" >&6; }
24652 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24654 echo '#! /bin/sh' >$F
24656 echo 'package="'$P'"' >>$F
24657 echo 'version="'$V'"' >>$F
24658 echo 'libs="'$L'"' >>$F
24660 # in the order of occurence a standard automake Makefile
24661 echo 'prefix="'$prefix'"' >>$F
24662 echo 'exec_prefix="'$exec_prefix'"' >>$F
24663 echo 'bindir="'$bindir'"' >>$F
24664 echo 'sbindir="'$sbindir'"' >>$F
24665 echo 'libexecdir="'$libexecdir'"' >>$F
24666 echo 'datadir="'$datadir'"' >>$F
24667 echo 'sysconfdir="'$sysconfdir'"' >>$F
24668 echo 'sharedstatedir="'$sharedstatedir'"' >>$F
24669 echo 'localstatedir="'$localstatedir'"' >>$F
24670 echo 'libdir="'$libdir'"' >>$F
24671 echo 'infodir="'$infodir'"' >>$F
24672 echo 'mandir="'$mandir'"' >>$F
24673 echo 'includedir="'$includedir'"' >>$F
24674 echo 'target="'$target'"' >>$F
24675 echo 'host="'$host'"' >>$F
24676 echo 'build="'$build'"' >>$F
24678 echo 'if test "'"\$""#"'" -eq 0; then' >>$F
24679 echo ' cat <<EOF' >>$F
24680 echo 'Usage: $package-config OPTIONS' >>$F
24681 echo 'Options:' >>$F
24682 echo ' --prefix=DIR) : \$prefix' >>$F
24683 echo ' --package) : \$package' >>$F
24684 echo ' --version) : \$version' >>$F
24685 echo ' --cflags) : -I\$includedir' >>$F
24686 echo ' --libs) : -L\$libdir -l\$package' >>$F
24687 echo ' --help) print all the options (not just these)' >>$F
24693 echo 'for i in "$@"; do' >>$F
24694 echo ' case $i in' >>$F
24695 echo ' --prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;' >>$F
24696 echo ' --prefix) o="$o $prefix" ;;' >>$F
24697 echo ' --package) o="$o $package" ;;' >>$F
24698 echo ' --version) o="$o $version" ;;' >>$F
24699 echo ' --cflags) if test "_$includedir" != "_/usr/include"' >>$F
24700 echo ' then o="$o -I$includedir" ; fi' >>$F
24702 echo ' --libs) o="$o -L$libdir $libs" ;;' >>$F
24703 echo ' --exec_prefix|--eprefix) o="$o $exec_prefix" ;;' >>$F
24704 echo ' --bindir) o="$o $bindir" ;;' >>$F
24705 echo ' --sbindir) o="$o $sbindir" ;;' >>$F
24706 echo ' --libexecdir) o="$o $libexecdir" ;;' >>$F
24707 echo ' --datadir) o="$o $datadir" ;;' >>$F
24708 echo ' --datainc) o="$o -I$datadir" ;;' >>$F
24709 echo ' --datalib) o="$o -L$datadir" ;;' >>$F
24710 echo ' --sysconfdir) o="$o $sysconfdir" ;;' >>$F
24711 echo ' --sharedstatedir) o="$o $sharedstatedir" ;;' >>$F
24712 echo ' --localstatedir) o="$o $localstatedir" ;;' >>$F
24713 echo ' --libdir) o="$o $libdir" ;;' >>$F
24714 echo ' --libadd) o="$o -L$libdir" ;;' >>$F
24715 echo ' --infodir) o="$o $infodir" ;;' >>$F
24716 echo ' --mandir) o="$o $mandir" ;;' >>$F
24717 echo ' --target) o="$o $target" ;;' >>$F
24718 echo ' --host) o="$o $host" ;;' >>$F
24719 echo ' --build) o="$o $build" ;;' >>$F
24720 echo ' --data) o="$o -I$datadir/$package" ;;' >>$F
24721 echo ' --pkgdatadir) o="$o $datadir/$package" ;;' >>$F
24722 echo ' --pkgdatainc) o="$o -I$datadir/$package" ;;' >>$F
24723 echo ' --pkgdatalib) o="$o -L$datadir/$package" ;;' >>$F
24724 echo ' --pkglibdir) o="$o $libdir/$package" ;;' >>$F
24725 echo ' --pkglibinc) o="$o -I$libinc/$package" ;;' >>$F
24726 echo ' --pkglibadd) o="$o -L$libadd/$package" ;;' >>$F
24727 echo ' --pkgincludedir) o="$o $includedir/$package" ;;' >>$F
24728 echo ' --help) h="1" ;;' >>$F
24729 echo ' -?//*|-?/*//*|-?./*//*|//*|/*//*|./*//*) ' >>$F
24730 echo ' v=`echo $i | sed -e s://:\$:g`' >>$F
24731 echo ' v=`eval "echo $v"` ' >>$F
24732 echo ' o="$o $v" ;; ' >>$F
24736 echo 'o=`eval "echo $o"`' >>$F
24737 echo 'o=`eval "echo $o"`' >>$F
24738 echo 'eval "echo $o"' >>$F
24740 echo 'if test ! -z "$h" ; then ' >>$F
24741 echo 'cat <<EOF' >>$F
24742 echo ' --prefix=xxx) (what is that for anyway?)' >>$F
24743 echo ' --prefix) \$prefix $prefix' >>$F
24744 echo ' --package) \$package $package' >>$F
24745 echo ' --version) \$version $version' >>$F
24746 echo ' --cflags) -I\$includedir unless it is /usr/include' >>$F
24747 echo ' --libs) -L\$libdir -l\$PACKAGE \$LIBS' >>$F
24748 echo ' --exec_prefix) or... ' >>$F
24749 echo ' --eprefix) \$exec_prefix $exec_prefix' >>$F
24750 echo ' --bindir) \$bindir $bindir' >>$F
24751 echo ' --sbindir) \$sbindir $sbindir' >>$F
24752 echo ' --libexecdir) \$libexecdir $libexecdir' >>$F
24753 echo ' --datadir) \$datadir $datadir' >>$F
24754 echo ' --sysconfdir) \$sysconfdir $sysconfdir' >>$F
24755 echo ' --sharedstatedir) \$sharedstatedir$sharedstatedir' >>$F
24756 echo ' --localstatedir) \$localstatedir $localstatedir' >>$F
24757 echo ' --libdir) \$libdir $libdir' >>$F
24758 echo ' --infodir) \$infodir $infodir' >>$F
24759 echo ' --mandir) \$mandir $mandir' >>$F
24760 echo ' --target) \$target $target' >>$F
24761 echo ' --host) \$host $host' >>$F
24762 echo ' --build) \$build $build' >>$F
24763 echo ' --data) -I\$datadir/\$package' >>$F
24764 echo ' --pkgdatadir) \$datadir/\$package' >>$F
24765 echo ' --pkglibdir) \$libdir/\$package' >>$F
24766 echo ' --pkgincludedir) \$includedir/\$package' >>$F
24767 echo ' --help) generated by ax_create_generic_config.m4' >>$F
24768 echo ' -I//varname and other inc-targets like --pkgdatainc supported' >>$F
24769 echo ' -L//varname and other lib-targets, e.g. --pkgdatalib or --libadd' >>$F
24772 GENERIC_CONFIG="$F"
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
24779 $as_echo_n "checking the number of available CPUs... " >&6; }
24782 case $host_os in #(
24786 if test -x /usr/sbin/sysctl; then :
24788 sysctl_a=`/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.cpu`
24789 if test sysctl_a; then :
24791 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
24799 if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
24801 if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
24803 CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
24813 if test "x$CPU_COUNT" = "x0"; then :
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1) " >&5
24817 $as_echo "unable to detect (assuming 1) " >&6; }
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT " >&5
24822 $as_echo "$CPU_COUNT " >&6; }
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: adding automake macro support" >&5
24835 $as_echo "$as_me: adding automake macro support" >&6;}
24836 AMINCLUDE="aminclude.am"
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $AMINCLUDE" >&5
24839 $as_echo "$as_me: creating $AMINCLUDE" >&6;}
24840 AMINCLUDE_TIME=`date`
24844 # generated automatically by configure from AX_AUTOMAKE_MACROS
24845 # on $AMINCLUDE_TIME
24850 INC_AMINCLUDE="include \$(top_builddir)/$AMINCLUDE"
24856 # Check whether --enable-jobserver was given.
24857 if test "${enable_jobserver+set}" = set; then :
24858 enableval=$enable_jobserver;
24860 enable_jobserver=yes
24863 if test "x$enable_jobserver" = "xyes"; then
24864 let enable_jobserver=$CPU_COUNT+1
24867 if test "x$enable_jobserver" != "xno"; then
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: added jobserver support to make for $enable_jobserver jobs" >&5
24869 $as_echo "$as_me: added jobserver support to make for $enable_jobserver jobs" >&6;}
24874 printf "AM_MAKEFLAGS += -j$enable_jobserver \n" >> "$AMINCLUDE"
24880 cat >confcache <<\_ACEOF
24881 # This file is a shell script that caches the results of configure
24882 # tests run on this system so they can be shared between configure
24883 # scripts and configure runs, see configure's option --config-cache.
24884 # It is not useful on other systems. If it contains results you don't
24885 # want to keep, you may remove or edit it.
24887 # config.status only pays attention to the cache file if you give it
24888 # the --recheck option to rerun configure.
24890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24892 # following values.
24896 # The following way of writing the cache mishandles newlines in values,
24897 # but we know of no workaround that is simple, portable, and efficient.
24898 # So, we kill variables containing newlines.
24899 # Ultrix sh set writes to stderr and can't be redirected directly,
24900 # and sets the high bit in the cache file unless we assign to the vars.
24902 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24903 eval ac_val=\$$ac_var
24907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24908 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24911 _ | IFS | as_nl) ;; #(
24912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24913 *) { eval $ac_var=; unset $ac_var;} ;;
24919 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24920 *${as_nl}ac_space=\ *)
24921 # `set' does not quote correctly, so add quotes: double-quote
24922 # substitution turns \\\\ into \\, and sed turns \\ into \.
24925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24928 # `set' quotes correctly as required by POSIX, so do not add quotes.
24929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24942 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24943 if test -w "$cache_file"; then
24944 if test "x$cache_file" != "x/dev/null"; then
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24946 $as_echo "$as_me: updating cache $cache_file" >&6;}
24947 if test ! -f "$cache_file" || test -h "$cache_file"; then
24948 cat confcache >"$cache_file"
24950 case $cache_file in #(
24952 mv -f confcache "$cache_file"$$ &&
24953 mv -f "$cache_file"$$ "$cache_file" ;; #(
24955 mv -f confcache "$cache_file" ;;
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24961 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24967 # Let make expand exec_prefix.
24968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24970 DEFS=-DHAVE_CONFIG_H
24975 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24976 # 1. Remove the extension, and $U if already installed.
24977 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24978 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24979 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24980 # will be set to the directory where LIBOBJS objects are built.
24981 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24982 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24984 LIBOBJS=$ac_libobjs
24986 LTLIBOBJS=$ac_ltlibobjs
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24990 $as_echo_n "checking that generated files are newer than configure... " >&6; }
24991 if test -n "$am_sleep_pid"; then
24992 # Hide warnings about reused PIDs.
24993 wait $am_sleep_pid 2>/dev/null
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24996 $as_echo "done" >&6; }
24997 if test -n "$EXEEXT"; then
24999 am__EXEEXT_FALSE='#'
25001 am__EXEEXT_TRUE='#'
25005 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25006 as_fn_error $? "conditional \"AMDEP\" was never defined.
25007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25010 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25013 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25014 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25019 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25022 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25023 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25026 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25027 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
25028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25030 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
25031 as_fn_error $? "conditional \"DEBUG\" was never defined.
25032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25034 if test -z "${BUILD_IPV6_TRUE}" && test -z "${BUILD_IPV6_FALSE}"; then
25035 as_fn_error $? "conditional \"BUILD_IPV6\" was never defined.
25036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25038 if test -z "${BUILD_LEANPSK_TRUE}" && test -z "${BUILD_LEANPSK_FALSE}"; then
25039 as_fn_error $? "conditional \"BUILD_LEANPSK\" was never defined.
25040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25042 if test -z "${BUILD_SNIFFER_TRUE}" && test -z "${BUILD_SNIFFER_FALSE}"; then
25043 as_fn_error $? "conditional \"BUILD_SNIFFER\" was never defined.
25044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25046 if test -z "${BUILD_SNIFFTEST_TRUE}" && test -z "${BUILD_SNIFFTEST_FALSE}"; then
25047 as_fn_error $? "conditional \"BUILD_SNIFFTEST\" was never defined.
25048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25050 if test -z "${BUILD_AESGCM_TRUE}" && test -z "${BUILD_AESGCM_FALSE}"; then
25051 as_fn_error $? "conditional \"BUILD_AESGCM\" was never defined.
25052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25054 if test -z "${BUILD_AESCCM_TRUE}" && test -z "${BUILD_AESCCM_FALSE}"; then
25055 as_fn_error $? "conditional \"BUILD_AESCCM\" was never defined.
25056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25058 if test -z "${BUILD_AESNI_TRUE}" && test -z "${BUILD_AESNI_FALSE}"; then
25059 as_fn_error $? "conditional \"BUILD_AESNI\" was never defined.
25060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25062 if test -z "${BUILD_CAMELLIA_TRUE}" && test -z "${BUILD_CAMELLIA_FALSE}"; then
25063 as_fn_error $? "conditional \"BUILD_CAMELLIA\" was never defined.
25064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25066 if test -z "${BUILD_MD2_TRUE}" && test -z "${BUILD_MD2_FALSE}"; then
25067 as_fn_error $? "conditional \"BUILD_MD2\" was never defined.
25068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25070 if test -z "${BUILD_RIPEMD_TRUE}" && test -z "${BUILD_RIPEMD_FALSE}"; then
25071 as_fn_error $? "conditional \"BUILD_RIPEMD\" was never defined.
25072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25074 if test -z "${BUILD_BLAKE2_TRUE}" && test -z "${BUILD_BLAKE2_FALSE}"; then
25075 as_fn_error $? "conditional \"BUILD_BLAKE2\" was never defined.
25076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25078 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
25079 as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
25080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25082 if test -z "${BUILD_DSA_TRUE}" && test -z "${BUILD_DSA_FALSE}"; then
25083 as_fn_error $? "conditional \"BUILD_DSA\" was never defined.
25084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25086 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
25087 as_fn_error $? "conditional \"BUILD_ECC\" was never defined.
25088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25090 if test -z "${BUILD_CURVE25519_TRUE}" && test -z "${BUILD_CURVE25519_FALSE}"; then
25091 as_fn_error $? "conditional \"BUILD_CURVE25519\" was never defined.
25092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25094 if test -z "${BUILD_ED25519_TRUE}" && test -z "${BUILD_ED25519_FALSE}"; then
25095 as_fn_error $? "conditional \"BUILD_ED25519\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25098 if test -z "${BUILD_CURVED25519_SMALL_TRUE}" && test -z "${BUILD_CURVED25519_SMALL_FALSE}"; then
25099 as_fn_error $? "conditional \"BUILD_CURVED25519_SMALL\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25102 if test -z "${BUILD_FEMATH_TRUE}" && test -z "${BUILD_FEMATH_FALSE}"; then
25103 as_fn_error $? "conditional \"BUILD_FEMATH\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25106 if test -z "${BUILD_GEMATH_TRUE}" && test -z "${BUILD_GEMATH_FALSE}"; then
25107 as_fn_error $? "conditional \"BUILD_GEMATH\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25110 if test -z "${BUILD_MEMORY_TRUE}" && test -z "${BUILD_MEMORY_FALSE}"; then
25111 as_fn_error $? "conditional \"BUILD_MEMORY\" was never defined.
25112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25114 if test -z "${BUILD_RSA_TRUE}" && test -z "${BUILD_RSA_FALSE}"; then
25115 as_fn_error $? "conditional \"BUILD_RSA\" was never defined.
25116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25118 if test -z "${BUILD_DH_TRUE}" && test -z "${BUILD_DH_FALSE}"; then
25119 as_fn_error $? "conditional \"BUILD_DH\" was never defined.
25120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25122 if test -z "${BUILD_ASN_TRUE}" && test -z "${BUILD_ASN_FALSE}"; then
25123 as_fn_error $? "conditional \"BUILD_ASN\" was never defined.
25124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25126 if test -z "${BUILD_AES_TRUE}" && test -z "${BUILD_AES_FALSE}"; then
25127 as_fn_error $? "conditional \"BUILD_AES\" was never defined.
25128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25130 if test -z "${BUILD_CODING_TRUE}" && test -z "${BUILD_CODING_FALSE}"; then
25131 as_fn_error $? "conditional \"BUILD_CODING\" was never defined.
25132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25134 if test -z "${BUILD_DES3_TRUE}" && test -z "${BUILD_DES3_FALSE}"; then
25135 as_fn_error $? "conditional \"BUILD_DES3\" was never defined.
25136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25138 if test -z "${BUILD_RC4_TRUE}" && test -z "${BUILD_RC4_FALSE}"; then
25139 as_fn_error $? "conditional \"BUILD_RC4\" was never defined.
25140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25142 if test -z "${BUILD_MD5_TRUE}" && test -z "${BUILD_MD5_FALSE}"; then
25143 as_fn_error $? "conditional \"BUILD_MD5\" was never defined.
25144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25146 if test -z "${BUILD_SHA_TRUE}" && test -z "${BUILD_SHA_FALSE}"; then
25147 as_fn_error $? "conditional \"BUILD_SHA\" was never defined.
25148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25150 if test -z "${BUILD_MD4_TRUE}" && test -z "${BUILD_MD4_FALSE}"; then
25151 as_fn_error $? "conditional \"BUILD_MD4\" was never defined.
25152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25154 if test -z "${BUILD_HC128_TRUE}" && test -z "${BUILD_HC128_FALSE}"; then
25155 as_fn_error $? "conditional \"BUILD_HC128\" was never defined.
25156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25158 if test -z "${BUILD_RABBIT_TRUE}" && test -z "${BUILD_RABBIT_FALSE}"; then
25159 as_fn_error $? "conditional \"BUILD_RABBIT\" was never defined.
25160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25162 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
25163 as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
25164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25166 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
25167 as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
25168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25170 if test -z "${BUILD_FIPS_TRUE}" && test -z "${BUILD_FIPS_FALSE}"; then
25171 as_fn_error $? "conditional \"BUILD_FIPS\" was never defined.
25172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25174 if test -z "${BUILD_POLY1305_TRUE}" && test -z "${BUILD_POLY1305_FALSE}"; then
25175 as_fn_error $? "conditional \"BUILD_POLY1305\" was never defined.
25176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25178 if test -z "${BUILD_CHACHA_TRUE}" && test -z "${BUILD_CHACHA_FALSE}"; then
25179 as_fn_error $? "conditional \"BUILD_CHACHA\" was never defined.
25180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25182 if test -z "${BUILD_INLINE_TRUE}" && test -z "${BUILD_INLINE_FALSE}"; then
25183 as_fn_error $? "conditional \"BUILD_INLINE\" was never defined.
25184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25186 if test -z "${BUILD_OCSP_TRUE}" && test -z "${BUILD_OCSP_FALSE}"; then
25187 as_fn_error $? "conditional \"BUILD_OCSP\" was never defined.
25188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25190 if test -z "${BUILD_CRL_TRUE}" && test -z "${BUILD_CRL_FALSE}"; then
25191 as_fn_error $? "conditional \"BUILD_CRL\" was never defined.
25192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25194 if test -z "${BUILD_CRL_MONITOR_TRUE}" && test -z "${BUILD_CRL_MONITOR_FALSE}"; then
25195 as_fn_error $? "conditional \"BUILD_CRL_MONITOR\" was never defined.
25196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25198 if test -z "${BUILD_NTRU_TRUE}" && test -z "${BUILD_NTRU_FALSE}"; then
25199 as_fn_error $? "conditional \"BUILD_NTRU\" was never defined.
25200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25202 if test -z "${BUILD_PKCS7_TRUE}" && test -z "${BUILD_PKCS7_FALSE}"; then
25203 as_fn_error $? "conditional \"BUILD_PKCS7\" was never defined.
25204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25206 if test -z "${BUILD_PKCS7_TRUE}" && test -z "${BUILD_PKCS7_FALSE}"; then
25207 as_fn_error $? "conditional \"BUILD_PKCS7\" was never defined.
25208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25210 if test -z "${USE_VALGRIND_TRUE}" && test -z "${USE_VALGRIND_FALSE}"; then
25211 as_fn_error $? "conditional \"USE_VALGRIND\" was never defined.
25212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25214 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
25215 as_fn_error $? "conditional \"BUILD_ECC\" was never defined.
25216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25218 if test -z "${BUILD_PWDBASED_TRUE}" && test -z "${BUILD_PWDBASED_FALSE}"; then
25219 as_fn_error $? "conditional \"BUILD_PWDBASED\" was never defined.
25220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25222 if test -z "${BUILD_FASTMATH_TRUE}" && test -z "${BUILD_FASTMATH_FALSE}"; then
25223 as_fn_error $? "conditional \"BUILD_FASTMATH\" was never defined.
25224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25226 if test -z "${BUILD_SLOWMATH_TRUE}" && test -z "${BUILD_SLOWMATH_FALSE}"; then
25227 as_fn_error $? "conditional \"BUILD_SLOWMATH\" was never defined.
25228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25230 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
25231 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
25232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25234 if test -z "${BUILD_LIBZ_TRUE}" && test -z "${BUILD_LIBZ_FALSE}"; then
25235 as_fn_error $? "conditional \"BUILD_LIBZ\" was never defined.
25236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25238 if test -z "${BUILD_MCAPI_TRUE}" && test -z "${BUILD_MCAPI_FALSE}"; then
25239 as_fn_error $? "conditional \"BUILD_MCAPI\" was never defined.
25240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25242 if test -z "${BUILD_CRL_TRUE}" && test -z "${BUILD_CRL_FALSE}"; then
25243 as_fn_error $? "conditional \"BUILD_CRL\" was never defined.
25244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25246 if test -z "${BUILD_OCSP_TRUE}" && test -z "${BUILD_OCSP_FALSE}"; then
25247 as_fn_error $? "conditional \"BUILD_OCSP\" was never defined.
25248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25250 if test -z "${IS_VCS_CHECKOUT_TRUE}" && test -z "${IS_VCS_CHECKOUT_FALSE}"; then
25251 as_fn_error $? "conditional \"IS_VCS_CHECKOUT\" was never defined.
25252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25255 : "${CONFIG_STATUS=./config.status}"
25257 ac_clean_files_save=$ac_clean_files
25258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25260 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25262 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25264 # Generated by $as_me.
25265 # Run this file to recreate the current configuration.
25266 # Compiler output produced by configure, useful for debugging
25267 # configure, is in config.log if it exists.
25270 ac_cs_recheck=false
25273 SHELL=\${CONFIG_SHELL-$SHELL}
25276 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25277 ## -------------------- ##
25278 ## M4sh Initialization. ##
25279 ## -------------------- ##
25281 # Be more Bourne compatible
25282 DUALCASE=1; export DUALCASE # for MKS sh
25283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25287 # is contrary to our usage. Disable this feature.
25288 alias -g '${1+"$@"}'='"$@"'
25289 setopt NO_GLOB_SUBST
25291 case `(set -o) 2>/dev/null` in #(
25303 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25304 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25307 # Prefer a ksh shell builtin over an external printf program on Solaris,
25308 # but without wasting forks for bash or zsh.
25309 if test -z "$BASH_VERSION$ZSH_VERSION" \
25310 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25311 as_echo='print -r --'
25312 as_echo_n='print -rn --'
25313 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25314 as_echo='printf %s\n'
25315 as_echo_n='printf %s'
25317 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25318 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25319 as_echo_n='/usr/ucb/echo -n'
25321 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25322 as_echo_n_body='eval
25326 expr "X$arg" : "X\\(.*\\)$as_nl";
25327 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25329 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25331 export as_echo_n_body
25332 as_echo_n='sh -c $as_echo_n_body as_echo'
25334 export as_echo_body
25335 as_echo='sh -c $as_echo_body as_echo'
25338 # The user is always right.
25339 if test "${PATH_SEPARATOR+set}" != set; then
25341 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25342 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25349 # We need space, tab and new line, in precisely that order. Quoting is
25350 # there to prevent editors from complaining about space-tab.
25351 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25352 # splitting by setting IFS to empty value.)
25355 # Find who we are. Look in the path if we contain no directory separator.
25358 *[\\/]* ) as_myself=$0 ;;
25359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25360 for as_dir in $PATH
25363 test -z "$as_dir" && as_dir=.
25364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25370 # We did not find ourselves, most probably we were run as `sh COMMAND'
25371 # in which case we are not to be found in the path.
25372 if test "x$as_myself" = x; then
25375 if test ! -f "$as_myself"; then
25376 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25380 # Unset variables that we do not need and which cause bugs (e.g. in
25381 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25382 # suppresses any "Segmentation fault" message there. '((' could
25383 # trigger a bug in pdksh 5.2.14.
25384 for as_var in BASH_ENV ENV MAIL MAILPATH
25385 do eval test x\${$as_var+set} = xset \
25386 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25403 # ----------------------------------------
25404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25406 # script with STATUS, using 1 if that was 0.
25409 as_status=$1; test $as_status -eq 0 && as_status=1
25411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25414 $as_echo "$as_me: error: $2" >&2
25415 as_fn_exit $as_status
25419 # as_fn_set_status STATUS
25420 # -----------------------
25421 # Set $? to STATUS, without forking.
25422 as_fn_set_status ()
25425 } # as_fn_set_status
25427 # as_fn_exit STATUS
25428 # -----------------
25429 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25433 as_fn_set_status $1
25439 # Portably unset VAR.
25442 { eval $1=; unset $1;}
25444 as_unset=as_fn_unset
25445 # as_fn_append VAR VALUE
25446 # ----------------------
25447 # Append the text in VALUE to the end of the definition contained in VAR. Take
25448 # advantage of any shell optimizations that allow amortized linear growth over
25449 # repeated appends, instead of the typical quadratic growth present in naive
25451 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25452 eval 'as_fn_append ()
25463 # as_fn_arith ARG...
25464 # ------------------
25465 # Perform arithmetic evaluation on the ARGs, and store the result in the
25466 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25467 # must be portable across $(()) and expr.
25468 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25469 eval 'as_fn_arith ()
25476 as_val=`expr "$@" || test $? -eq 1`
25481 if expr a : '\(a\)' >/dev/null 2>&1 &&
25482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25488 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25489 as_basename=basename
25494 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25500 as_me=`$as_basename -- "$0" ||
25501 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25502 X"$0" : 'X\(//\)$' \| \
25503 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25505 sed '/^.*\/\([^/][^/]*\)\/*$/{
25519 # Avoid depending upon Character Ranges.
25520 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25521 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25522 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25523 as_cr_digits='0123456789'
25524 as_cr_alnum=$as_cr_Letters$as_cr_digits
25526 ECHO_C= ECHO_N= ECHO_T=
25527 case `echo -n x` in #(((((
25529 case `echo 'xy\c'` in
25530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25539 rm -f conf$$ conf$$.exe conf$$.file
25540 if test -d conf$$.dir; then
25541 rm -f conf$$.dir/conf$$.file
25544 mkdir conf$$.dir 2>/dev/null
25546 if (echo >conf$$.file) 2>/dev/null; then
25547 if ln -s conf$$.file conf$$ 2>/dev/null; then
25549 # ... but there are two gotchas:
25550 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25551 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25552 # In both cases, we have to default to `cp -pR'.
25553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25555 elif ln conf$$.file conf$$ 2>/dev/null; then
25563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25564 rmdir conf$$.dir 2>/dev/null
25569 # Create "$as_dir" as a directory, including parents if necessary.
25574 -*) as_dir=./$as_dir;;
25576 test -d "$as_dir" || eval $as_mkdir_p || {
25580 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25581 *) as_qdir=$as_dir;;
25583 as_dirs="'$as_qdir' $as_dirs"
25584 as_dir=`$as_dirname -- "$as_dir" ||
25585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25586 X"$as_dir" : 'X\(//\)[^/]' \| \
25587 X"$as_dir" : 'X\(//\)$' \| \
25588 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25589 $as_echo X"$as_dir" |
25590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25594 /^X\(\/\/\)[^/].*/{
25607 test -d "$as_dir" && break
25609 test -z "$as_dirs" || eval "mkdir $as_dirs"
25610 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25614 if mkdir -p . 2>/dev/null; then
25615 as_mkdir_p='mkdir -p "$as_dir"'
25617 test -d ./-p && rmdir ./-p
25622 # as_fn_executable_p FILE
25623 # -----------------------
25624 # Test if FILE is an executable regular file.
25625 as_fn_executable_p ()
25627 test -f "$1" && test -x "$1"
25628 } # as_fn_executable_p
25629 as_test_x='test -x'
25630 as_executable_p=as_fn_executable_p
25632 # Sed expression to map a string onto a valid CPP name.
25633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25635 # Sed expression to map a string onto a valid variable name.
25636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25640 ## ----------------------------------- ##
25641 ## Main body of $CONFIG_STATUS script. ##
25642 ## ----------------------------------- ##
25644 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25647 # Save the log message, to keep $0 and so on meaningful, and to
25648 # report actual input values of CONFIG_FILES etc. instead of their
25649 # values after options handling.
25651 This file was extended by wolfssl $as_me 3.6.0, which was
25652 generated by GNU Autoconf 2.69. Invocation command line was
25654 CONFIG_FILES = $CONFIG_FILES
25655 CONFIG_HEADERS = $CONFIG_HEADERS
25656 CONFIG_LINKS = $CONFIG_LINKS
25657 CONFIG_COMMANDS = $CONFIG_COMMANDS
25660 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25665 case $ac_config_files in *"
25666 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25669 case $ac_config_headers in *"
25670 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25675 # Files that config.status was made for.
25676 config_files="$ac_config_files"
25677 config_headers="$ac_config_headers"
25678 config_commands="$ac_config_commands"
25682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25684 \`$as_me' instantiates files and other configuration actions
25685 from templates according to the current configuration. Unless the files
25686 and actions are specified as TAGs, all are instantiated by default.
25688 Usage: $0 [OPTION]... [TAG]...
25690 -h, --help print this help, then exit
25691 -V, --version print version number and configuration settings, then exit
25692 --config print configuration, then exit
25693 -q, --quiet, --silent
25694 do not print progress messages
25695 -d, --debug don't remove temporary files
25696 --recheck update $as_me by reconfiguring in the same conditions
25697 --file=FILE[:TEMPLATE]
25698 instantiate the configuration file FILE
25699 --header=FILE[:TEMPLATE]
25700 instantiate the configuration header FILE
25702 Configuration files:
25705 Configuration headers:
25708 Configuration commands:
25711 Report bugs to <https://github.com/wolfssl/wolfssl/issues>.
25712 wolfssl home page: <http://www.wolfssl.com>."
25715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25716 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25718 wolfssl config.status 3.6.0
25719 configured by $0, generated by GNU Autoconf 2.69,
25720 with options \\"\$ac_cs_config\\"
25722 Copyright (C) 2012 Free Software Foundation, Inc.
25723 This config.status script is free software; the Free Software Foundation
25724 gives unlimited permission to copy, distribute and modify it."
25731 test -n "\$AWK" || AWK=awk
25734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25735 # The default lists apply if the user does not specify any file.
25741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25758 # Handling of the options.
25759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25762 $as_echo "$ac_cs_version"; exit ;;
25763 --config | --confi | --conf | --con | --co | --c )
25764 $as_echo "$ac_cs_config"; exit ;;
25765 --debug | --debu | --deb | --de | --d | -d )
25767 --file | --fil | --fi | --f )
25770 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25771 '') as_fn_error $? "missing file argument" ;;
25773 as_fn_append CONFIG_FILES " '$ac_optarg'"
25774 ac_need_defaults=false;;
25775 --header | --heade | --head | --hea )
25778 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25780 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25781 ac_need_defaults=false;;
25783 # Conflict between --help and --header
25784 as_fn_error $? "ambiguous option: \`$1'
25785 Try \`$0 --help' for more information.";;
25786 --help | --hel | -h )
25787 $as_echo "$ac_cs_usage"; exit ;;
25788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25789 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25792 # This is an error.
25793 -*) as_fn_error $? "unrecognized option: \`$1'
25794 Try \`$0 --help' for more information." ;;
25796 *) as_fn_append ac_config_targets " $1"
25797 ac_need_defaults=false ;;
25803 ac_configure_extra_args=
25805 if $ac_cs_silent; then
25807 ac_configure_extra_args="$ac_configure_extra_args --silent"
25811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25812 if \$ac_cs_recheck; then
25813 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25815 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25816 CONFIG_SHELL='$SHELL'
25817 export CONFIG_SHELL
25822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25826 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25827 ## Running $as_me. ##
25833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25837 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25840 # The HP-UX ksh and POSIX shell print the target directory to stdout
25841 # if CDPATH is set.
25842 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25844 sed_quote_subst='$sed_quote_subst'
25845 double_quote_subst='$double_quote_subst'
25846 delay_variable_subst='$delay_variable_subst'
25847 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25848 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25849 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25850 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25851 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25852 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25853 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25854 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25855 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25856 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25857 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25858 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25859 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25860 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25861 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25862 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25863 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25864 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25865 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25866 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25867 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25868 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25869 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25870 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25871 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25872 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25873 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25874 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25875 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25876 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25877 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25878 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25879 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25880 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25881 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25882 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25883 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25884 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25885 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25886 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25887 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25888 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25889 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25890 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25891 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25892 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25893 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25894 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25895 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25896 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25897 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25898 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25899 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25900 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25901 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25902 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25903 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"`'
25904 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25905 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25906 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25907 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25908 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25909 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25910 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25911 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25912 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25913 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25914 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25915 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25916 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25917 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25918 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25919 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25920 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25921 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25922 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25923 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25924 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25925 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25926 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25927 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25928 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25929 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25930 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25931 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25932 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25933 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25934 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25935 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25936 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25937 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25938 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25939 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25940 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25941 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25942 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25943 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25944 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25945 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25946 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25947 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25948 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25949 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25950 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25951 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25952 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25953 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25954 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25955 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25956 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25957 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25958 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25959 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25960 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25961 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25962 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25963 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25964 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25965 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25966 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25967 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25968 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25969 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25970 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25971 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25972 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25973 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25974 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25975 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25976 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25977 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25978 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25979 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25980 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25981 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25982 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25983 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25984 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25985 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25986 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25987 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25988 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25989 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25990 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25991 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25992 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25993 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25994 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25995 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25996 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25997 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25998 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25999 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26000 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26001 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26002 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26003 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26004 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26005 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26006 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26007 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26008 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26009 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26010 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26011 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26012 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26013 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26014 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26015 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26016 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26017 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26018 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26019 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26020 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26021 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26022 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26023 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26024 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26025 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26026 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26027 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26028 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26029 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26030 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26033 LTCFLAGS='$LTCFLAGS'
26034 compiler='$compiler_DEFAULT'
26036 # A function that is used when there is no print builtin or printf.
26037 func_fallback_echo ()
26039 eval 'cat <<_LTECHO_EOF
26044 # Quote evaled strings.
26059 deplibs_check_method \
26064 sharedlib_from_linklib_cmd \
26067 archiver_list_spec \
26073 lt_cv_sys_global_symbol_pipe \
26074 lt_cv_sys_global_symbol_to_cdecl \
26075 lt_cv_sys_global_symbol_to_c_name_address \
26076 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26077 nm_file_list_spec \
26078 lt_prog_compiler_no_builtin_flag \
26079 lt_prog_compiler_pic \
26080 lt_prog_compiler_wl \
26081 lt_prog_compiler_static \
26082 lt_cv_prog_compiler_c_o \
26091 export_dynamic_flag_spec \
26092 whole_archive_flag_spec \
26093 compiler_needs_object \
26095 allow_undefined_flag \
26096 no_undefined_flag \
26097 hardcode_libdir_flag_spec \
26098 hardcode_libdir_separator \
26102 variables_saved_for_relink \
26104 library_names_spec \
26106 install_override_mode \
26110 compiler_lib_search_dirs \
26115 compiler_lib_search_path \
26119 lt_prog_compiler_no_builtin_flag_CXX \
26120 lt_prog_compiler_pic_CXX \
26121 lt_prog_compiler_wl_CXX \
26122 lt_prog_compiler_static_CXX \
26123 lt_cv_prog_compiler_c_o_CXX \
26124 export_dynamic_flag_spec_CXX \
26125 whole_archive_flag_spec_CXX \
26126 compiler_needs_object_CXX \
26128 allow_undefined_flag_CXX \
26129 no_undefined_flag_CXX \
26130 hardcode_libdir_flag_spec_CXX \
26131 hardcode_libdir_separator_CXX \
26132 exclude_expsyms_CXX \
26133 include_expsyms_CXX \
26134 file_list_spec_CXX \
26135 compiler_lib_search_dirs_CXX \
26136 predep_objects_CXX \
26137 postdep_objects_CXX \
26140 compiler_lib_search_path_CXX; do
26141 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26142 *[\\\\\\\`\\"\\\$]*)
26143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26151 # Double-quote double-evaled strings.
26152 for var in reload_cmds \
26153 old_postinstall_cmds \
26154 old_postuninstall_cmds \
26156 extract_expsyms_cmds \
26157 old_archive_from_new_cmds \
26158 old_archive_from_expsyms_cmds \
26160 archive_expsym_cmds \
26162 module_expsym_cmds \
26163 export_symbols_cmds \
26167 postuninstall_cmds \
26169 sys_lib_search_path_spec \
26170 sys_lib_dlsearch_path_spec \
26172 old_archive_cmds_CXX \
26173 old_archive_from_new_cmds_CXX \
26174 old_archive_from_expsyms_cmds_CXX \
26176 archive_expsym_cmds_CXX \
26178 module_expsym_cmds_CXX \
26179 export_symbols_cmds_CXX \
26181 postlink_cmds_CXX; do
26182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26183 *[\\\\\\\`\\"\\\$]*)
26184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26192 ac_aux_dir='$ac_aux_dir'
26193 xsi_shell='$xsi_shell'
26194 lt_shell_append='$lt_shell_append'
26196 # See if we are running on zsh, and set the options which allow our
26197 # commands through without removal of \ escapes INIT.
26198 if test -n "\${ZSH_VERSION+set}" ; then
26199 setopt NO_GLOB_SUBST
26205 TIMESTAMP='$TIMESTAMP'
26216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26218 # Handling of arguments.
26219 for ac_config_target in $ac_config_targets
26221 case $ac_config_target in
26222 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26223 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26224 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26225 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
26226 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26227 "wolfssl/version.h") CONFIG_FILES="$CONFIG_FILES wolfssl/version.h" ;;
26228 "wolfssl/options.h") CONFIG_FILES="$CONFIG_FILES wolfssl/options.h" ;;
26229 "support/wolfssl.pc") CONFIG_FILES="$CONFIG_FILES support/wolfssl.pc" ;;
26230 "rpm/spec") CONFIG_FILES="$CONFIG_FILES rpm/spec" ;;
26232 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26237 # If the user did not use the arguments to specify the items to instantiate,
26238 # then the envvar interface is used. Set only those that are not.
26239 # We use the long form for the default assignment because of an extremely
26240 # bizarre bug on SunOS 4.1.3.
26241 if $ac_need_defaults; then
26242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26247 # Have a temporary directory for convenience. Make it in the build tree
26248 # simply because there is no reason against having it here, and in addition,
26249 # creating and moving files from /tmp can sometimes cause problems.
26250 # Hook for its removal unless debugging.
26251 # Note that there is a small window in which the directory will not be cleaned:
26252 # after its creation but before its name has been assigned to `$tmp'.
26256 trap 'exit_status=$?
26257 : "${ac_tmp:=$tmp}"
26258 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26260 trap 'as_fn_exit 1' 1 2 13 15
26262 # Create a (secure) tmp directory for tmp files.
26265 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26269 tmp=./conf$$-$RANDOM
26270 (umask 077 && mkdir "$tmp")
26271 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26274 # Set up the scripts for CONFIG_FILES section.
26275 # No need to generate them if there are no CONFIG_FILES.
26276 # This happens for instance with `./config.status config.h'.
26277 if test -n "$CONFIG_FILES"; then
26280 ac_cr=`echo X | tr X '\015'`
26281 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26282 # But we know of no other shell where ac_cr would be empty at this
26283 # point, so we can use a bashism as a fallback.
26284 if test "x$ac_cr" = x; then
26285 eval ac_cr=\$\'\\r\'
26287 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26288 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26291 ac_cs_awk_cr=$ac_cr
26294 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26299 echo "cat >conf$$subs.awk <<_ACEOF" &&
26300 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26302 } >conf$$subs.sh ||
26303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26304 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26306 for ac_last_try in false false false false false :; do
26307 . ./conf$$subs.sh ||
26308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26310 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26311 if test $ac_delim_n = $ac_delim_num; then
26313 elif $ac_last_try; then
26314 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26319 rm -f conf$$subs.sh
26321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26322 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26326 s/^/S["/; s/!.*/"]=/
26336 s/\(.\{148\}\)..*/\1/
26338 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26350 s/\(.\{148\}\)..*/\1/
26352 s/["\\]/\\&/g; s/^/"/; s/$/"/
26356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26361 ' <conf$$subs.awk | sed '
26366 ' >>$CONFIG_STATUS || ac_write_fail=1
26367 rm -f conf$$subs.awk
26368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26370 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26371 for (key in S) S_is_set[key] = 1
26377 nfields = split(line, field, "@")
26379 len = length(field[1])
26380 for (i = 2; i < nfields; i++) {
26382 keylen = length(key)
26383 if (S_is_set[key]) {
26385 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26386 len += length(value) + length(field[++i])
26397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26398 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26399 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26402 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26403 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26406 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26407 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26408 # trailing colons and then remove the whole line if VPATH becomes empty
26409 # (actually we leave an empty line to preserve line numbers).
26410 if test "x$srcdir" = x.; then
26411 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26430 fi # test -n "$CONFIG_FILES"
26432 # Set up the scripts for CONFIG_HEADERS section.
26433 # No need to generate them if there are no CONFIG_HEADERS.
26434 # This happens for instance with `./config.status Makefile'.
26435 if test -n "$CONFIG_HEADERS"; then
26436 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26440 # Transform confdefs.h into an awk script `defines.awk', embedded as
26441 # here-document in config.status, that substitutes the proper values into
26442 # config.h.in to produce config.h.
26444 # Create a delimiter string that does not exist in confdefs.h, to ease
26445 # handling of long lines.
26447 for ac_last_try in false false :; do
26448 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26449 if test -z "$ac_tt"; then
26451 elif $ac_last_try; then
26452 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26458 # For the awk script, D is an array of macro values keyed by name,
26459 # likewise P contains macro parameters if any. Preserve backslash
26460 # newline sequences.
26462 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26464 s/.\{148\}/&'"$ac_delim"'/g
26467 s/^[ ]*#[ ]*define[ ][ ]*/ /
26474 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26476 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26480 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26481 D["\1"]=" \3\\\\\\n"\\/p
26483 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26488 s/.\{148\}/&'"$ac_delim"'/g
26493 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26496 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26498 ' <confdefs.h | sed '
26499 s/'"$ac_delim"'/"\\\
26500 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26503 for (key in D) D_is_set[key] = 1
26506 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26508 split(line, arg, " ")
26509 if (arg[1] == "#") {
26513 defundef = substr(arg[1], 2)
26516 split(mac1, mac2, "(") #)
26518 prefix = substr(line, 1, index(line, defundef) - 1)
26519 if (D_is_set[macro]) {
26520 # Preserve the white space surrounding the "#".
26521 print prefix "define", macro P[macro] D[macro]
26524 # Replace #undef with comments. This is necessary, for example,
26525 # in the case of _POSIX_SOURCE, which is predefined and required
26526 # on some systems where configure will not decide to define it.
26527 if (defundef == "undef") {
26528 print "/*", prefix defundef, macro, "*/"
26536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26537 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26538 fi # test -n "$CONFIG_HEADERS"
26541 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26546 :[FHLC]) ac_mode=$ac_tag; continue;;
26548 case $ac_mode$ac_tag in
26550 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26551 :[FH]-) ac_tag=-:-;;
26552 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26569 -) ac_f="$ac_tmp/stdin";;
26570 *) # Look for the file first in the build tree, then in the source tree
26571 # (if the path is not absolute). The absolute path cannot be DOS-style,
26572 # because $ac_f cannot contain `:'.
26576 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26578 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26580 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26581 as_fn_append ac_file_inputs " '$ac_f'"
26584 # Let's still pretend it is `configure' which instantiates (i.e., don't
26585 # use $as_me), people would be surprised to read:
26586 # /* config.h. Generated by config.status. */
26587 configure_input='Generated from '`
26588 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26590 if test x"$ac_file" != x-; then
26591 configure_input="$ac_file. $configure_input"
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26593 $as_echo "$as_me: creating $ac_file" >&6;}
26595 # Neutralize special characters interpreted by sed in replacement strings.
26596 case $configure_input in #(
26597 *\&* | *\|* | *\\* )
26598 ac_sed_conf_input=`$as_echo "$configure_input" |
26599 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26600 *) ac_sed_conf_input=$configure_input;;
26604 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26610 ac_dir=`$as_dirname -- "$ac_file" ||
26611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26612 X"$ac_file" : 'X\(//\)[^/]' \| \
26613 X"$ac_file" : 'X\(//\)$' \| \
26614 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26615 $as_echo X"$ac_file" |
26616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26620 /^X\(\/\/\)[^/].*/{
26633 as_dir="$ac_dir"; as_fn_mkdir_p
26637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26640 # A ".." for each directory in $ac_dir_suffix.
26641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26642 case $ac_top_builddir_sub in
26643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26647 ac_abs_top_builddir=$ac_pwd
26648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26649 # for backward compatibility:
26650 ac_top_builddir=$ac_top_build_prefix
26653 .) # We are building in place.
26655 ac_top_srcdir=$ac_top_builddir_sub
26656 ac_abs_top_srcdir=$ac_pwd ;;
26657 [\\/]* | ?:[\\/]* ) # Absolute name.
26658 ac_srcdir=$srcdir$ac_dir_suffix;
26659 ac_top_srcdir=$srcdir
26660 ac_abs_top_srcdir=$srcdir ;;
26661 *) # Relative name.
26662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26663 ac_top_srcdir=$ac_top_build_prefix$srcdir
26664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26676 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26677 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26679 ac_MKDIR_P=$MKDIR_P
26681 [\\/$]* | ?:[\\/]* ) ;;
26682 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26687 # If the template does not know about datarootdir, expand it.
26688 # FIXME: This hack should be removed a few years after 2.60.
26689 ac_datarootdir_hack=; ac_datarootdir_seen=
26700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26701 *datarootdir*) ac_datarootdir_seen=yes;;
26702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26707 ac_datarootdir_hack='
26708 s&@datadir@&$datadir&g
26709 s&@docdir@&$docdir&g
26710 s&@infodir@&$infodir&g
26711 s&@localedir@&$localedir&g
26712 s&@mandir@&$mandir&g
26713 s&\\\${datarootdir}&$datarootdir&g' ;;
26717 # Neutralize VPATH when `$srcdir' = `.'.
26718 # Shell code in configure.ac might set extrasub.
26719 # FIXME: do we really want to maintain this feature?
26720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26721 ac_sed_extra="$ac_vpsub
26724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26727 s|@configure_input@|$ac_sed_conf_input|;t t
26728 s&@top_builddir@&$ac_top_builddir_sub&;t t
26729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26730 s&@srcdir@&$ac_srcdir&;t t
26731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26732 s&@top_srcdir@&$ac_top_srcdir&;t t
26733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26734 s&@builddir@&$ac_builddir&;t t
26735 s&@abs_builddir@&$ac_abs_builddir&;t t
26736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26737 s&@INSTALL@&$ac_INSTALL&;t t
26738 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26739 $ac_datarootdir_hack
26741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26742 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26745 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26747 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26749 which seems to be undefined. Please make sure it is defined" >&5
26750 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26751 which seems to be undefined. Please make sure it is defined" >&2;}
26753 rm -f "$ac_tmp/stdin"
26755 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26756 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26764 if test x"$ac_file" != x-; then
26766 $as_echo "/* $configure_input */" \
26767 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26768 } >"$ac_tmp/config.h" \
26769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26770 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26772 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26775 mv "$ac_tmp/config.h" "$ac_file" \
26776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26779 $as_echo "/* $configure_input */" \
26780 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26781 || as_fn_error $? "could not create -" "$LINENO" 5
26783 # Compute "$ac_file"'s index in $config_headers.
26786 for _am_header in $config_headers :; do
26787 case $_am_header in
26788 $_am_arg | $_am_arg:* )
26791 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26794 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26795 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26796 X"$_am_arg" : 'X\(//\)[^/]' \| \
26797 X"$_am_arg" : 'X\(//\)$' \| \
26798 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26799 $as_echo X"$_am_arg" |
26800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26804 /^X\(\/\/\)[^/].*/{
26816 s/.*/./; q'`/stamp-h$_am_stamp_count
26819 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26820 $as_echo "$as_me: executing $ac_file commands" >&6;}
26825 case $ac_file$ac_mode in
26826 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26827 # Older Autoconf quotes --file arguments for eval, but not when files
26828 # are listed without --file. Let's play safe and only enable the eval
26829 # if we detect the quoting.
26830 case $CONFIG_FILES in
26831 *\'*) eval set x "$CONFIG_FILES" ;;
26832 *) set x $CONFIG_FILES ;;
26837 # Strip MF so we end up with the name of the file.
26838 mf=`echo "$mf" | sed -e 's/:.*$//'`
26839 # Check whether this is an Automake generated Makefile or not.
26840 # We used to match only the files named 'Makefile.in', but
26841 # some people rename them; so instead we look at the file content.
26842 # Grep'ing the first line is not enough: some people post-process
26843 # each Makefile.in and add a new line on top of each file to say so.
26844 # Grep'ing the whole file is not good either: AIX grep has a line
26845 # limit of 2048, but all sed's we know have understand at least 4000.
26846 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26847 dirpart=`$as_dirname -- "$mf" ||
26848 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26849 X"$mf" : 'X\(//\)[^/]' \| \
26850 X"$mf" : 'X\(//\)$' \| \
26851 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26857 /^X\(\/\/\)[^/].*/{
26873 # Extract the definition of DEPDIR, am__include, and am__quote
26874 # from the Makefile without running 'make'.
26875 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26876 test -z "$DEPDIR" && continue
26877 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26878 test -z "$am__include" && continue
26879 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26880 # Find all dependency output files, they are included files with
26881 # $(DEPDIR) in their names. We invoke sed twice because it is the
26882 # simplest approach to changing $(DEPDIR) to its actual value in the
26884 for file in `sed -n "
26885 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26886 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26887 # Make sure the directory exists.
26888 test -f "$dirpart/$file" && continue
26889 fdir=`$as_dirname -- "$file" ||
26890 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26891 X"$file" : 'X\(//\)[^/]' \| \
26892 X"$file" : 'X\(//\)$' \| \
26893 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26894 $as_echo X"$file" |
26895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26899 /^X\(\/\/\)[^/].*/{
26912 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26913 # echo "creating $dirpart/$file"
26914 echo '# dummy' > "$dirpart/$file"
26921 # See if we are running on zsh, and set the options which allow our
26922 # commands through without removal of \ escapes.
26923 if test -n "${ZSH_VERSION+set}" ; then
26924 setopt NO_GLOB_SUBST
26927 cfgfile="${ofile}T"
26928 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26931 cat <<_LT_EOF >> "$cfgfile"
26934 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26935 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26936 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26937 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26939 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26940 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26942 # Written by Gordon Matzigkeit, 1996
26944 # This file is part of GNU Libtool.
26946 # GNU Libtool is free software; you can redistribute it and/or
26947 # modify it under the terms of the GNU General Public License as
26948 # published by the Free Software Foundation; either version 2 of
26949 # the License, or (at your option) any later version.
26951 # As a special exception to the GNU General Public License,
26952 # if you distribute this file as part of a program or library that
26953 # is built using GNU Libtool, you may include this file under the
26954 # same distribution terms that you use for the rest of that program.
26956 # GNU Libtool is distributed in the hope that it will be useful,
26957 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26958 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26959 # GNU General Public License for more details.
26961 # You should have received a copy of the GNU General Public License
26962 # along with GNU Libtool; see the file COPYING. If not, a copy
26963 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26964 # obtained by writing to the Free Software Foundation, Inc.,
26965 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26968 # The names of the tagged configurations supported by this script.
26969 available_tags="CXX "
26971 # ### BEGIN LIBTOOL CONFIG
26973 # Which release of libtool.m4 was used?
26974 macro_version=$macro_version
26975 macro_revision=$macro_revision
26977 # Whether or not to build static libraries.
26978 build_old_libs=$enable_static
26980 # Whether or not to build shared libraries.
26981 build_libtool_libs=$enable_shared
26983 # What type of objects to build.
26986 # Whether or not to optimize for fast installation.
26987 fast_install=$enable_fast_install
26989 # Shell to use when invoking shell scripts.
26992 # An echo program that protects backslashes.
26995 # The PATH separator for the build system.
26996 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26999 host_alias=$host_alias
27003 # The build system.
27004 build_alias=$build_alias
27008 # A sed program that does not truncate output.
27011 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27012 Xsed="\$SED -e 1s/^X//"
27014 # A grep program that handles long lines.
27020 # A literal string matcher.
27023 # A BSD- or MS-compatible name lister.
27026 # Whether we need soft or hard links.
27029 # What is the maximum length of a command?
27030 max_cmd_len=$max_cmd_len
27032 # Object file suffix (normally "o").
27035 # Executable file suffix (normally "").
27038 # whether the shell understands "unset".
27041 # turn spaces into newlines.
27044 # turn newlines into spaces.
27047 # convert \$build file names to \$host format.
27048 to_host_file_cmd=$lt_cv_to_host_file_cmd
27050 # convert \$build files to toolchain format.
27051 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27053 # An object symbol dumper.
27054 OBJDUMP=$lt_OBJDUMP
27056 # Method to check whether dependent libraries are shared objects.
27057 deplibs_check_method=$lt_deplibs_check_method
27059 # Command to use when deplibs_check_method = "file_magic".
27060 file_magic_cmd=$lt_file_magic_cmd
27062 # How to find potential files when deplibs_check_method = "file_magic".
27063 file_magic_glob=$lt_file_magic_glob
27065 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27066 want_nocaseglob=$lt_want_nocaseglob
27068 # DLL creation program.
27069 DLLTOOL=$lt_DLLTOOL
27071 # Command to associate shared and link libraries.
27072 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27077 # Flags to create an archive.
27078 AR_FLAGS=$lt_AR_FLAGS
27080 # How to feed a file listing to the archiver.
27081 archiver_list_spec=$lt_archiver_list_spec
27083 # A symbol stripping program.
27086 # Commands used to install an old-style archive.
27088 old_postinstall_cmds=$lt_old_postinstall_cmds
27089 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27091 # Whether to use a lock for old archive extraction.
27092 lock_old_archive_extraction=$lock_old_archive_extraction
27097 # LTCC compiler flags.
27098 LTCFLAGS=$lt_CFLAGS
27100 # Take the output of nm and produce a listing of raw symbols and C names.
27101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27103 # Transform the output of nm in a proper C declaration.
27104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27106 # Transform the output of nm in a C name address pair.
27107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27109 # Transform the output of nm in a C name address pair when lib prefix is needed.
27110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27112 # Specify filename containing input files for \$NM.
27113 nm_file_list_spec=$lt_nm_file_list_spec
27115 # The root where to search for dependent libraries,and in which our libraries should be installed.
27116 lt_sysroot=$lt_sysroot
27118 # The name of the directory that contains temporary libtool files.
27121 # Used to examine libraries when file_magic_cmd begins with "file".
27122 MAGIC_CMD=$MAGIC_CMD
27124 # Must we lock files when doing compilation?
27125 need_locks=$lt_need_locks
27128 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27130 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27131 DSYMUTIL=$lt_DSYMUTIL
27133 # Tool to change global to local symbols on Mac OS X.
27136 # Tool to manipulate fat objects and archives on Mac OS X.
27139 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27142 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27143 OTOOL64=$lt_OTOOL64
27145 # Old archive suffix (normally "a").
27148 # Shared library suffix (normally ".so").
27149 shrext_cmds=$lt_shrext_cmds
27151 # The commands to extract the exported symbol list from a shared archive.
27152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27154 # Variables whose values should be saved in libtool wrapper scripts and
27155 # restored at link time.
27156 variables_saved_for_relink=$lt_variables_saved_for_relink
27158 # Do we need the "lib" prefix for modules?
27159 need_lib_prefix=$need_lib_prefix
27161 # Do we need a version for libraries?
27162 need_version=$need_version
27164 # Library versioning type.
27165 version_type=$version_type
27167 # Shared library runtime path variable.
27168 runpath_var=$runpath_var
27170 # Shared library path variable.
27171 shlibpath_var=$shlibpath_var
27173 # Is shlibpath searched before the hard-coded library search path?
27174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27176 # Format of library name prefix.
27177 libname_spec=$lt_libname_spec
27179 # List of archive names. First name is the real one, the rest are links.
27180 # The last name is the one that the linker finds with -lNAME
27181 library_names_spec=$lt_library_names_spec
27183 # The coded name of the library, if different from the real name.
27184 soname_spec=$lt_soname_spec
27186 # Permission mode override for installation of shared libraries.
27187 install_override_mode=$lt_install_override_mode
27189 # Command to use after installation of a shared archive.
27190 postinstall_cmds=$lt_postinstall_cmds
27192 # Command to use after uninstallation of a shared archive.
27193 postuninstall_cmds=$lt_postuninstall_cmds
27195 # Commands used to finish a libtool library installation in a directory.
27196 finish_cmds=$lt_finish_cmds
27198 # As "finish_cmds", except a single script fragment to be evaled but
27200 finish_eval=$lt_finish_eval
27202 # Whether we should hardcode library paths into libraries.
27203 hardcode_into_libs=$hardcode_into_libs
27205 # Compile-time system search path for libraries.
27206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27208 # Run-time system search path for libraries.
27209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27211 # Whether dlopen is supported.
27212 dlopen_support=$enable_dlopen
27214 # Whether dlopen of programs is supported.
27215 dlopen_self=$enable_dlopen_self
27217 # Whether dlopen of statically linked programs is supported.
27218 dlopen_self_static=$enable_dlopen_self_static
27220 # Commands to strip libraries.
27221 old_striplib=$lt_old_striplib
27222 striplib=$lt_striplib
27225 # The linker used to build libraries.
27228 # How to create reloadable object files.
27229 reload_flag=$lt_reload_flag
27230 reload_cmds=$lt_reload_cmds
27232 # Commands used to build an old-style archive.
27233 old_archive_cmds=$lt_old_archive_cmds
27235 # A language specific compiler.
27238 # Is the compiler the GNU compiler?
27241 # Compiler flag to turn off builtin functions.
27242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27244 # Additional compiler flags for building library objects.
27245 pic_flag=$lt_lt_prog_compiler_pic
27247 # How to pass a linker flag through the compiler.
27248 wl=$lt_lt_prog_compiler_wl
27250 # Compiler flag to prevent dynamic linking.
27251 link_static_flag=$lt_lt_prog_compiler_static
27253 # Does compiler simultaneously support -c and -o options?
27254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27256 # Whether or not to add -lc for building shared libraries.
27257 build_libtool_need_lc=$archive_cmds_need_lc
27259 # Whether or not to disallow shared libs when runtime libs are static.
27260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27262 # Compiler flag to allow reflexive dlopens.
27263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27265 # Compiler flag to generate shared objects directly from archives.
27266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27268 # Whether the compiler copes with passing no objects directly.
27269 compiler_needs_object=$lt_compiler_needs_object
27271 # Create an old-style archive from a shared archive.
27272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27274 # Create a temporary old-style archive to link instead of a shared archive.
27275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27277 # Commands used to build a shared archive.
27278 archive_cmds=$lt_archive_cmds
27279 archive_expsym_cmds=$lt_archive_expsym_cmds
27281 # Commands used to build a loadable module if different from building
27282 # a shared archive.
27283 module_cmds=$lt_module_cmds
27284 module_expsym_cmds=$lt_module_expsym_cmds
27286 # Whether we are building with GNU ld or not.
27287 with_gnu_ld=$lt_with_gnu_ld
27289 # Flag that allows shared libraries with undefined symbols to be built.
27290 allow_undefined_flag=$lt_allow_undefined_flag
27292 # Flag that enforces no undefined symbols.
27293 no_undefined_flag=$lt_no_undefined_flag
27295 # Flag to hardcode \$libdir into a binary during linking.
27296 # This must work even if \$libdir does not exist
27297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27299 # Whether we need a single "-rpath" flag with a separated argument.
27300 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27302 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27303 # DIR into the resulting binary.
27304 hardcode_direct=$hardcode_direct
27306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27307 # DIR into the resulting binary and the resulting library dependency is
27308 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27309 # library is relocated.
27310 hardcode_direct_absolute=$hardcode_direct_absolute
27312 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27313 # into the resulting binary.
27314 hardcode_minus_L=$hardcode_minus_L
27316 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27317 # into the resulting binary.
27318 hardcode_shlibpath_var=$hardcode_shlibpath_var
27320 # Set to "yes" if building a shared library automatically hardcodes DIR
27321 # into the library and all subsequent libraries and executables linked
27323 hardcode_automatic=$hardcode_automatic
27325 # Set to yes if linker adds runtime paths of dependent libraries
27326 # to runtime path list.
27327 inherit_rpath=$inherit_rpath
27329 # Whether libtool must link a program against all its dependency libraries.
27330 link_all_deplibs=$link_all_deplibs
27332 # Set to "yes" if exported symbols are required.
27333 always_export_symbols=$always_export_symbols
27335 # The commands to list exported symbols.
27336 export_symbols_cmds=$lt_export_symbols_cmds
27338 # Symbols that should not be listed in the preloaded symbols.
27339 exclude_expsyms=$lt_exclude_expsyms
27341 # Symbols that must always be exported.
27342 include_expsyms=$lt_include_expsyms
27344 # Commands necessary for linking programs (against libraries) with templates.
27345 prelink_cmds=$lt_prelink_cmds
27347 # Commands necessary for finishing linking programs.
27348 postlink_cmds=$lt_postlink_cmds
27350 # Specify filename containing input files.
27351 file_list_spec=$lt_file_list_spec
27353 # How to hardcode a shared library path into an executable.
27354 hardcode_action=$hardcode_action
27356 # The directories searched by this compiler when creating a shared library.
27357 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27359 # Dependencies to place before and after the objects being linked to
27360 # create a shared library.
27361 predep_objects=$lt_predep_objects
27362 postdep_objects=$lt_postdep_objects
27363 predeps=$lt_predeps
27364 postdeps=$lt_postdeps
27366 # The library search path used internally by the compiler when linking
27367 # a shared library.
27368 compiler_lib_search_path=$lt_compiler_lib_search_path
27370 # ### END LIBTOOL CONFIG
27376 cat <<\_LT_EOF >> "$cfgfile"
27377 # AIX sometimes has problems with the GCC collect2 program. For some
27378 # reason, if we set the COLLECT_NAMES environment variable, the problems
27379 # vanish in a puff of smoke.
27380 if test "X${COLLECT_NAMES+set}" != Xset; then
27382 export COLLECT_NAMES
27389 ltmain="$ac_aux_dir/ltmain.sh"
27392 # We use sed instead of cat because bash on DJGPP gets confused if
27393 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27394 # text mode, it properly converts lines to CR/LF. This bash problem
27395 # is reportedly fixed, but why not run on old versions too?
27396 sed '$q' "$ltmain" >> "$cfgfile" \
27397 || (rm -f "$cfgfile"; exit 1)
27399 if test x"$xsi_shell" = xyes; then
27400 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27404 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27405 \ * ) func_dirname_result="${3}" ;;\
27407 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27408 && mv -f "$cfgfile.tmp" "$cfgfile" \
27409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27410 test 0 -eq $? || _lt_function_replace_fail=:
27413 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27416 \ func_basename_result="${1##*/}"\
27417 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27418 && mv -f "$cfgfile.tmp" "$cfgfile" \
27419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27420 test 0 -eq $? || _lt_function_replace_fail=:
27423 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27424 func_dirname_and_basename ()\
27427 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27428 \ * ) func_dirname_result="${3}" ;;\
27430 \ func_basename_result="${1##*/}"\
27431 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27432 && mv -f "$cfgfile.tmp" "$cfgfile" \
27433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27434 test 0 -eq $? || _lt_function_replace_fail=:
27437 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27440 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27441 \ # positional parameters, so assign one to ordinary parameter first.\
27442 \ func_stripname_result=${3}\
27443 \ func_stripname_result=${func_stripname_result#"${1}"}\
27444 \ func_stripname_result=${func_stripname_result%"${2}"}\
27445 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27446 && mv -f "$cfgfile.tmp" "$cfgfile" \
27447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27448 test 0 -eq $? || _lt_function_replace_fail=:
27451 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27452 func_split_long_opt ()\
27454 \ func_split_long_opt_name=${1%%=*}\
27455 \ func_split_long_opt_arg=${1#*=}\
27456 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27457 && mv -f "$cfgfile.tmp" "$cfgfile" \
27458 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27459 test 0 -eq $? || _lt_function_replace_fail=:
27462 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27463 func_split_short_opt ()\
27465 \ func_split_short_opt_arg=${1#??}\
27466 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27467 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27468 && mv -f "$cfgfile.tmp" "$cfgfile" \
27469 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27470 test 0 -eq $? || _lt_function_replace_fail=:
27473 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27477 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27478 \ *) func_lo2o_result=${1} ;;\
27480 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27481 && mv -f "$cfgfile.tmp" "$cfgfile" \
27482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27483 test 0 -eq $? || _lt_function_replace_fail=:
27486 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27489 func_xform_result=${1%.*}.lo\
27490 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27491 && mv -f "$cfgfile.tmp" "$cfgfile" \
27492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27493 test 0 -eq $? || _lt_function_replace_fail=:
27496 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27499 func_arith_result=$(( $* ))\
27500 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27501 && mv -f "$cfgfile.tmp" "$cfgfile" \
27502 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27503 test 0 -eq $? || _lt_function_replace_fail=:
27506 sed -e '/^func_len ()$/,/^} # func_len /c\
27509 func_len_result=${#1}\
27510 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27511 && mv -f "$cfgfile.tmp" "$cfgfile" \
27512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27513 test 0 -eq $? || _lt_function_replace_fail=:
27517 if test x"$lt_shell_append" = xyes; then
27518 sed -e '/^func_append ()$/,/^} # func_append /c\
27521 eval "${1}+=\\${2}"\
27522 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27523 && mv -f "$cfgfile.tmp" "$cfgfile" \
27524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27525 test 0 -eq $? || _lt_function_replace_fail=:
27528 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27529 func_append_quoted ()\
27531 \ func_quote_for_eval "${2}"\
27532 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27533 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27534 && mv -f "$cfgfile.tmp" "$cfgfile" \
27535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27536 test 0 -eq $? || _lt_function_replace_fail=:
27539 # Save a `func_append' function call where possible by direct use of '+='
27540 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27541 && mv -f "$cfgfile.tmp" "$cfgfile" \
27542 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27543 test 0 -eq $? || _lt_function_replace_fail=:
27545 # Save a `func_append' function call even when '+=' is not available
27546 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27547 && mv -f "$cfgfile.tmp" "$cfgfile" \
27548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27549 test 0 -eq $? || _lt_function_replace_fail=:
27552 if test x"$_lt_function_replace_fail" = x":"; then
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27554 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27558 mv -f "$cfgfile" "$ofile" ||
27559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27563 cat <<_LT_EOF >> "$ofile"
27565 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27567 # The linker used to build libraries.
27570 # How to create reloadable object files.
27571 reload_flag=$lt_reload_flag_CXX
27572 reload_cmds=$lt_reload_cmds_CXX
27574 # Commands used to build an old-style archive.
27575 old_archive_cmds=$lt_old_archive_cmds_CXX
27577 # A language specific compiler.
27578 CC=$lt_compiler_CXX
27580 # Is the compiler the GNU compiler?
27583 # Compiler flag to turn off builtin functions.
27584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27586 # Additional compiler flags for building library objects.
27587 pic_flag=$lt_lt_prog_compiler_pic_CXX
27589 # How to pass a linker flag through the compiler.
27590 wl=$lt_lt_prog_compiler_wl_CXX
27592 # Compiler flag to prevent dynamic linking.
27593 link_static_flag=$lt_lt_prog_compiler_static_CXX
27595 # Does compiler simultaneously support -c and -o options?
27596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27598 # Whether or not to add -lc for building shared libraries.
27599 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27601 # Whether or not to disallow shared libs when runtime libs are static.
27602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27604 # Compiler flag to allow reflexive dlopens.
27605 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27607 # Compiler flag to generate shared objects directly from archives.
27608 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27610 # Whether the compiler copes with passing no objects directly.
27611 compiler_needs_object=$lt_compiler_needs_object_CXX
27613 # Create an old-style archive from a shared archive.
27614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27616 # Create a temporary old-style archive to link instead of a shared archive.
27617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27619 # Commands used to build a shared archive.
27620 archive_cmds=$lt_archive_cmds_CXX
27621 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27623 # Commands used to build a loadable module if different from building
27624 # a shared archive.
27625 module_cmds=$lt_module_cmds_CXX
27626 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27628 # Whether we are building with GNU ld or not.
27629 with_gnu_ld=$lt_with_gnu_ld_CXX
27631 # Flag that allows shared libraries with undefined symbols to be built.
27632 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27634 # Flag that enforces no undefined symbols.
27635 no_undefined_flag=$lt_no_undefined_flag_CXX
27637 # Flag to hardcode \$libdir into a binary during linking.
27638 # This must work even if \$libdir does not exist
27639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27641 # Whether we need a single "-rpath" flag with a separated argument.
27642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27645 # DIR into the resulting binary.
27646 hardcode_direct=$hardcode_direct_CXX
27648 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27649 # DIR into the resulting binary and the resulting library dependency is
27650 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27651 # library is relocated.
27652 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27654 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27655 # into the resulting binary.
27656 hardcode_minus_L=$hardcode_minus_L_CXX
27658 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27659 # into the resulting binary.
27660 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27662 # Set to "yes" if building a shared library automatically hardcodes DIR
27663 # into the library and all subsequent libraries and executables linked
27665 hardcode_automatic=$hardcode_automatic_CXX
27667 # Set to yes if linker adds runtime paths of dependent libraries
27668 # to runtime path list.
27669 inherit_rpath=$inherit_rpath_CXX
27671 # Whether libtool must link a program against all its dependency libraries.
27672 link_all_deplibs=$link_all_deplibs_CXX
27674 # Set to "yes" if exported symbols are required.
27675 always_export_symbols=$always_export_symbols_CXX
27677 # The commands to list exported symbols.
27678 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27680 # Symbols that should not be listed in the preloaded symbols.
27681 exclude_expsyms=$lt_exclude_expsyms_CXX
27683 # Symbols that must always be exported.
27684 include_expsyms=$lt_include_expsyms_CXX
27686 # Commands necessary for linking programs (against libraries) with templates.
27687 prelink_cmds=$lt_prelink_cmds_CXX
27689 # Commands necessary for finishing linking programs.
27690 postlink_cmds=$lt_postlink_cmds_CXX
27692 # Specify filename containing input files.
27693 file_list_spec=$lt_file_list_spec_CXX
27695 # How to hardcode a shared library path into an executable.
27696 hardcode_action=$hardcode_action_CXX
27698 # The directories searched by this compiler when creating a shared library.
27699 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27701 # Dependencies to place before and after the objects being linked to
27702 # create a shared library.
27703 predep_objects=$lt_predep_objects_CXX
27704 postdep_objects=$lt_postdep_objects_CXX
27705 predeps=$lt_predeps_CXX
27706 postdeps=$lt_postdeps_CXX
27708 # The library search path used internally by the compiler when linking
27709 # a shared library.
27710 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27712 # ### END LIBTOOL TAG CONFIG: CXX
27716 "stamp-h":F) echo timestamp > stamp-h ;;
27724 ac_clean_files=$ac_clean_files_save
27726 test $ac_write_fail = 0 ||
27727 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27730 # configure is writing to config.log, and then calls config.status.
27731 # config.status does its own redirection, appending to config.log.
27732 # Unfortunately, on DOS this fails, as config.log is still kept open
27733 # by configure, so config.status won't be able to write to it; its
27734 # output is simply discarded. So we exec the FD to /dev/null,
27735 # effectively closing config.log, so it can be properly (re)opened and
27736 # appended to by config.status. When coming back to configure, we
27737 # need to make the FD available again.
27738 if test "$no_create" != yes; then
27740 ac_config_status_args=
27741 test "$silent" = yes &&
27742 ac_config_status_args="$ac_config_status_args --quiet"
27744 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27747 # would make configure fail if this is the last instruction.
27748 $ac_cs_success || as_fn_exit 1
27750 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27752 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27759 echo "Running make clean..."
27760 make clean >/dev/null 2>&1
27761 # Touch files that may not be in repository
27762 echo "Touching File..."
27763 touch ctaocrypt/src/fips.c
27764 touch ctaocrypt/src/fips_test.c
27767 # generate user options header
27769 echo "Generating user options header..."
27771 OPTION_FILE="wolfssl/options.h"
27773 #OPTION_FILE+="cyassl/options.h"
27777 echo "/* wolfssl options.h" > $OPTION_FILE
27778 echo " * generated from configure options" >> $OPTION_FILE
27779 echo " *" >> $OPTION_FILE
27780 echo " * Copyright (C) 2006-2015 wolfSSL Inc." >> $OPTION_FILE
27781 echo " *" >> $OPTION_FILE
27782 echo " * This file is part of wolfSSL. (formerly known as CyaSSL)" >> $OPTION_FILE
27783 echo " *" >> $OPTION_FILE
27784 echo " */" >> $OPTION_FILE
27786 echo "" >> $OPTION_FILE
27787 echo "#pragma once" >> $OPTION_FILE
27788 echo "" >> $OPTION_FILE
27789 echo "#ifdef __cplusplus" >> $OPTION_FILE
27790 echo "extern \"C\" {" >> $OPTION_FILE
27791 echo "#endif" >> $OPTION_FILE
27792 echo "" >> $OPTION_FILE
27794 for option in $OPTION_FLAGS; do
27795 defonly=`echo $option | sed 's/-D//'`
27796 if test "$defonly" != "$option"
27798 noequalsign=`echo $defonly | sed 's/=/ /'`
27799 if test "$noequalsign" = "NDEBUG" || test "$noequalsign" = "DEBUG"
27801 echo "not outputing (N)DEBUG to $OPTION_FILE"
27805 # allow user to igonore system options
27807 if [[ $noequalsign == _* ]] ;
27810 echo "#ifndef WOLFSSL_OPTIONS_IGNORE_SYS" >> $OPTION_FILE
27813 noarg=`echo $defonly | sed 's/=.*//'`
27814 echo "#undef $noarg" >> $OPTION_FILE
27815 echo "#define $noequalsign" >> $OPTION_FILE
27817 if test "$ignoresys" = "yes"
27819 echo "#endif" >> $OPTION_FILE
27822 echo "" >> $OPTION_FILE
27824 echo "option w/o begin -D is $option, not saving to $OPTION_FILE"
27828 echo "" >> $OPTION_FILE
27829 echo "#ifdef __cplusplus" >> $OPTION_FILE
27830 echo "}" >> $OPTION_FILE
27831 echo "#endif" >> $OPTION_FILE
27832 echo "" >> $OPTION_FILE
27835 #backwards compatability for those who have included options or version
27836 touch cyassl/options.h
27837 echo "/* cyassl options.h" > cyassl/options.h
27838 echo " * generated from wolfssl/options.h" >> cyassl/options.h
27839 echo " */" >> cyassl/options.h
27843 echo "$line" >> cyassl/options.h
27844 done < $OPTION_FILE
27846 # output config summary
27848 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
27850 echo " * Installation prefix: $prefix"
27851 echo " * System type: $host_vendor-$host_os"
27852 echo " * Host CPU: $host_cpu"
27853 echo " * C Compiler: $CC"
27854 echo " * C Flags: $CFLAGS"
27855 echo " * C++ Compiler: $CXX"
27856 echo " * C++ Flags: $CXXFLAGS"
27857 echo " * CPP Flags: $CPPFLAGS"
27858 echo " * LIB Flags: $LIB"
27859 echo " * Debug enabled: $ax_enable_debug"
27860 echo " * Warnings as failure: $ac_cv_warnings_as_errors"
27861 echo " * make -j: $enable_jobserver"
27862 echo " * VCS checkout: $ac_cv_vcs_checkout"
27865 echo " * Single threaded: $ENABLED_SINGLETHREADED"
27866 echo " * Filesystem: $ENABLED_FILESYSTEM"
27867 echo " * OpenSSL Extra API: $ENABLED_OPENSSLEXTRA"
27868 echo " * Max Strength Build: $ENABLED_MAXSTRENGTH"
27869 echo " * fastmath: $ENABLED_FASTMATH"
27870 echo " * sniffer: $ENABLED_SNIFFER"
27871 echo " * snifftest: $ENABLED_SNIFFTEST"
27872 echo " * ARC4: $ENABLED_ARC4"
27873 echo " * AES: $ENABLED_AES"
27874 echo " * AES-NI: $ENABLED_AESNI"
27875 echo " * AES-GCM: $ENABLED_AESGCM"
27876 echo " * AES-CCM: $ENABLED_AESCCM"
27877 echo " * DES3: $ENABLED_DES3"
27878 echo " * Camellia: $ENABLED_CAMELLIA"
27879 echo " * NULL Cipher: $ENABLED_NULL_CIPHER"
27880 echo " * MD5: $ENABLED_MD5"
27881 echo " * RIPEMD: $ENABLED_RIPEMD"
27882 echo " * SHA: $ENABLED_SHA"
27883 echo " * SHA-512: $ENABLED_SHA512"
27884 echo " * BLAKE2: $ENABLED_BLAKE2"
27885 echo " * keygen: $ENABLED_KEYGEN"
27886 echo " * certgen: $ENABLED_CERTGEN"
27887 echo " * certreq: $ENABLED_CERTREQ"
27888 echo " * HC-128: $ENABLED_HC128"
27889 echo " * RABBIT: $ENABLED_RABBIT"
27890 echo " * CHACHA: $ENABLED_CHACHA"
27891 echo " * Hash DRBG: $ENABLED_HASHDRBG"
27892 echo " * PWDBASED: $ENABLED_PWDBASED"
27893 echo " * HKDF: $ENABLED_HKDF"
27894 echo " * MD4: $ENABLED_MD4"
27895 echo " * PSK: $ENABLED_PSK"
27896 echo " * Poly1305: $ENABLED_POLY1305"
27897 echo " * LEANPSK: $ENABLED_LEANPSK"
27898 echo " * RSA: $ENABLED_RSA"
27899 echo " * DSA: $ENABLED_DSA"
27900 echo " * DH: $ENABLED_DH"
27901 echo " * ECC: $ENABLED_ECC"
27902 echo " * CURVE25519: $ENABLED_CURVE25519"
27903 echo " * ED25519: $ENABLED_ED25519"
27904 echo " * FPECC: $ENABLED_FPECC"
27905 echo " * ECC_ENCRYPT: $ENABLED_ECC_ENCRYPT"
27906 echo " * ASN: $ENABLED_ASN"
27907 echo " * Anonymous cipher: $ENABLED_ANON"
27908 echo " * CODING: $ENABLED_CODING"
27909 echo " * MEMORY: $ENABLED_MEMORY"
27910 echo " * I/O POOL: $ENABLED_IOPOOL"
27911 echo " * ERROR_STRINGS: $ENABLED_ERROR_STRINGS"
27912 echo " * DTLS: $ENABLED_DTLS"
27913 echo " * Old TLS Versions: $ENABLED_OLD_TLS"
27914 echo " * OCSP: $ENABLED_OCSP"
27915 echo " * CRL: $ENABLED_CRL"
27916 echo " * CRL-MONITOR: $ENABLED_CRL_MONITOR"
27917 echo " * Persistent session cache: $ENABLED_SAVESESSION"
27918 echo " * Persistent cert cache: $ENABLED_SAVECERT"
27919 echo " * Atomic User Record Layer: $ENABLED_ATOMICUSER"
27920 echo " * Public Key Callbacks: $ENABLED_PKCALLBACKS"
27921 echo " * NTRU: $ENABLED_NTRU"
27922 echo " * SNI: $ENABLED_SNI"
27923 echo " * Maximum Fragment Length: $ENABLED_MAX_FRAGMENT"
27924 echo " * Truncated HMAC: $ENABLED_TRUNCATED_HMAC"
27925 echo " * Renegotiation Indication: $ENABLED_RENEGOTIATION_INDICATION"
27926 echo " * Secure Renegotiation: $ENABLED_SECURE_RENEGOTIATION"
27927 echo " * Supported Elliptic Curves: $ENABLED_SUPPORTED_CURVES"
27928 echo " * Session Ticket: $ENABLED_SESSION_TICKET"
27929 echo " * All TLS Extensions: $ENABLED_TLSX"
27930 echo " * PKCS#7 $ENABLED_PKCS7"
27931 echo " * wolfSCEP $ENABLED_WOLFSCEP"
27932 echo " * Small Stack: $ENABLED_SMALL_STACK"
27933 echo " * valgrind unit tests: $ENABLED_VALGRIND"
27934 echo " * LIBZ: $ENABLED_LIBZ"
27935 echo " * Examples: $ENABLED_EXAMPLES"